/* Article detail only. Shared header, footer and CMS content remain native. */
.kd-main { --kd-anchor-offset: 140px; padding: 27px 0 44px; background: linear-gradient(180deg,#eef5ff 0,#f5f7fa 300px); }
.kd-container { max-width: 1600px; }
.kd-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; color: #6b7d96; font-size: 14px; }
.kd-breadcrumb a:first-child, .kd-breadcrumb a:nth-of-type(2) { color: #3677dd; }
.kd-breadcrumb a:hover { color: #0865f4; }
.kd-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.kd-layout { display: grid; grid-template-columns: minmax(0,1fr) 420px; align-items: start; gap: 24px; }
.kd-article, .kd-side-card, .kd-related-card { min-width: 0; background: #fff; border: 1px solid #e3e9f1; border-radius: 14px; box-shadow: 0 8px 26px #16386903; }
.kd-article { padding: 32px 36px; }
.kd-category { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 6px; background: #eaf3ff; color: #0865e9; font-size: 14px; font-weight: 600; line-height: 1.5; }
.kd-category:hover { background: #dcecff; }
.kd-header h1 { margin: 14px 0 16px; color: #102447; font-size: clamp(28px,2.1vw,38px); line-height: 1.45; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.kd-meta { display: flex; flex-wrap: wrap; gap: 4px 0; color: #71809a; font-size: 14px; line-height: 1.7; }
.kd-meta > span + span::before { content: '·'; margin: 0 9px; }
.kd-meta time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kd-lead-image { margin: 27px 0 0; }
.kd-lead-image img { display: block; width: 100%; height: auto; border: 1px solid #e1eaf6; border-radius: 10px; }
.kd-summary { margin: 27px 0 32px; padding: 22px 25px; border: 1px solid #deebfc; border-radius: 9px; background: linear-gradient(120deg,#edf5ff,#f1f7ff); }
.kd-summary h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 9px; color: #0865ec; font-size: 20px; line-height: 1.5; font-weight: 600; }
.kd-summary h2 svg { width: 23px; height: 23px; flex-shrink: 0; }
.kd-summary p { margin: 0; padding-left: 35px; color: #536b8e; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.kd-body { padding-bottom: 20px; color: #405571; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
.kd-body > :first-child { margin-top: 0; }
.kd-body p { margin: 16px 0; }
.kd-body h2, .kd-body h3, .kd-body h4 { color: #112c4f; scroll-margin-top: var(--kd-anchor-offset); }
.kd-body h2 { display: flex; align-items: baseline; gap: 15px; margin: 36px 0 17px; font-size: 25px; font-weight: 600; line-height: 1.55; }
.kd-body h2[data-section]::before { content: attr(data-section); flex-shrink: 0; color: #1265ff; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kd-body h3 { margin: 26px 0 12px; font-size: 21px; font-weight: 600; line-height: 1.6; }
.kd-body h4 { margin: 22px 0 10px; font-size: 18px; line-height: 1.7; }
.kd-body strong { color: #203e61; font-weight: 600; }
.kd-body ul, .kd-body ol { margin: 16px 0; padding-left: 1.6em; }
.kd-body ul { list-style: disc; }
.kd-body ol { list-style: decimal; }
.kd-body li + li { margin-top: 6px; }
.kd-body a { color: #1465d9; text-decoration: underline; text-underline-offset: 3px; }
.kd-body img { max-width: 100% !important; height: auto !important; margin: 22px auto; border-radius: 8px; }
.kd-body figure { max-width: 100%; margin: 24px 0; }
.kd-body figcaption { margin-top: 8px; color: #75859d; font-size: 14px; text-align: center; }
.kd-body iframe, .kd-body video { max-width: 100%; }
.kd-body blockquote { margin: 22px 0; padding: 15px 20px; border-left: 3px solid #3378ef; background: #f3f7fd; color: #566d8d; }
.kd-body blockquote > :first-child { margin-top: 0; }
.kd-body blockquote > :last-child { margin-bottom: 0; }
.kd-body pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 8px; background: #f4f7fc; font-size: 14px; white-space: pre; }
.kd-body table { display: block; width: 100% !important; max-width: 100%; height: auto !important; overflow-x: auto; border-collapse: collapse; margin: 24px 0; font-size: 16px; line-height: 1.8; }
.kd-body table th, .kd-body table td { min-width: 130px; padding: 14px 20px; border: 1px solid #e0e9f6; text-align: left; vertical-align: top; }
.kd-body table th, .kd-body table tr:first-child > td { color: #1265e9; background: #eaf3ff; font-weight: 600; }
.kd-table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid #e0e9f6; border-radius: 8px; }
.kd-body .kd-table-scroll table { display: table; min-width: 600px; margin: 0; }
.kd-body .kd-table-scroll th, .kd-body .kd-table-scroll td { border-top: 0; }
.kd-body .test-note { margin: 0 0 26px; padding: 12px 16px; border: 1px solid #efdfba; border-radius: 7px; background: #fff9ed; color: #8a6b37; font-size: 13px; line-height: 1.8; }
.kd-article-footer { border-top: 1px solid #e6edf7; padding-top: 24px; }
.kd-article-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 26px; }
.kd-article-topics > span { display: inline-flex; align-items: center; gap: 9px; color: #6b7d96; font-size: 14px; }
.kd-topic { display: inline-flex; align-items: center; justify-content: center; padding: 7px 16px; border-radius: 30px; background: #edf5ff; color: #3478dd; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.kd-topic:hover { background: #dfeeff; color: #075bdc; }
.kd-neighbors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid #e1eafa; border-radius: 9px; margin-bottom: 22px; }
.kd-neighbors > * { min-width: 0; padding: 20px 22px; }
.kd-neighbors > :nth-child(2) { position: relative; text-align: right; }
.kd-neighbors > :nth-child(2)::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px; background: #e7eef8; pointer-events: none; }
.kd-neighbors span { display: block; margin-bottom: 9px; color: #2873e9; font-size: 14px; }
.kd-neighbors strong { display: block; color: #526988; font-size: 15px; line-height: 1.7; font-weight: 400; overflow-wrap: anywhere; }
.kd-neighbors a:hover { background: #f6faff; }
.kd-neighbors a:hover strong { color: #1265ff; }
.kd-neighbors .is-empty { background: #fafcff; }
.kd-neighbors .is-empty span, .kd-neighbors .is-empty strong { color: #8998ae; }
.kd-back { color: #2873e9; font-size: 15px; }
.kd-sidebar { min-width: 0; align-self: stretch; }
.kd-side-stack { display: grid; gap: 22px; }
.kd-side-card { padding: 26px; }
.kd-side-card h2, .kd-toc summary { display: flex; align-items: center; gap: 13px; margin: 0 0 20px; color: #122c4d; font-size: 22px; font-weight: 600; line-height: 1.5; }
.kd-side-card h2 svg, .kd-toc summary svg { width: 27px; height: 27px; color: #1265ff; flex-shrink: 0; }
.kd-toc[hidden], .kd-related[hidden], .kd-desktop-toc:empty { display: none; }
.kd-desktop-toc:not(:has(.kd-toc:not([hidden]))) { display: none; }
.kd-toc summary { margin-bottom: 0; cursor: pointer; list-style: none; }
.kd-toc summary::-webkit-details-marker { display: none; }
.kd-toc-arrow { margin-left: auto; color: #7990af; font-size: 20px; transform: rotate(-90deg); }
.kd-toc[open] .kd-toc-arrow { transform: none; }
.kd-toc nav { margin-top: 20px; max-height: 350px; max-height: min(36vh,350px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.kd-toc ol { padding: 0; margin: 0; list-style: none; border-left: 3px solid #eaf1fc; }
.kd-toc li { margin: 0; }
.kd-toc a { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 10px 0 10px 16px; color: #6a7e9b; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.kd-toc a span { min-width: 22px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.kd-toc a.is-subheading { padding-left: 27px; font-size: 14px; }
.kd-toc a.is-active, .kd-toc a:hover { color: #0966f5; }
.kd-toc a.is-active { font-weight: 600; }
.kd-toc a.is-active::before { content: ''; position: absolute; top: 9px; bottom: 9px; left: -3px; width: 4px; border-radius: 3px; background: #1265ff; }
.kd-contact h2 { gap: 11px; font-size: 21px; margin-bottom: 16px; }
.kd-contact > p { color: #71809a; font-size: 16px; line-height: 1.8; margin: 0 0 23px; }
.kd-contact button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 54px; padding: 10px 16px; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(120deg,#0878ff,#0758f3); font-size: 19px; font-weight: 600; cursor: pointer; }
.kd-contact button:hover { background: #0862e5; }
.kd-contact button svg { width: 28px; height: 28px; }
.kd-phone { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 19px; color: #1265f4; }
.kd-phone svg { width: 24px; height: 24px; }
.kd-phone strong { font-size: 23px; font-weight: 600; }
.kd-contact .kd-phone-note { margin: 4px 0 0; font-size: 14px; text-align: center; color: #7c8ea7; }
.kd-related { margin-top: 36px; }
.kd-related:not(:has(.kd-related-card)) { display: none; }
.kd-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.kd-related-heading h2 { display: flex; align-items: center; gap: 12px; margin: 0; color: #132c4f; font-size: 25px; font-weight: 600; }
.kd-related-heading h2 svg { color: #1265ff; width: 27px; height: 27px; }
.kd-related-heading > a { color: #2975e4; font-size: 15px; white-space: nowrap; }
.kd-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.kd-related-card { display: flex; align-items: flex-start; flex-direction: column; padding: 24px; }
.kd-related-card:nth-child(n+4) { display: none; }
.kd-related-card h3 { width: 100%; min-height: 3.2em; margin: 14px 0 10px; color: #142d4e; font-size: 20px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.kd-related-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kd-related-card h3 a:hover { color: #1265ff; }
.kd-related-card > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 24px; color: #6b7e99; font-size: 16px; line-height: 1.8; }
.kd-related-card > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: auto; font-size: 14px; }
.kd-related-card time { color: #7185a0; font-variant-numeric: tabular-nums; }
.kd-related-card > div a { color: #2873e9; }
body[data-page="news"] .floating-actions { display: none; }
body[data-page="news"] .region-strip > .container { padding-right: 0; }
.kd-side-stack.is-sticky { position: sticky; top: var(--kd-anchor-offset); }
@media (max-width:1199px) {
  .kd-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 20px; }
  .kd-article { padding: 26px; }
  .kd-header h1 { font-size: 30px; }
  .kd-body { font-size: 17px; }
  .kd-summary p { font-size: 16px; }
  .kd-side-card { padding: 22px; }
  .kd-side-card h2, .kd-toc summary { font-size: 20px; gap: 10px; }
  .kd-contact h2 { font-size: 18px; }
  .kd-toc a { font-size: 14px; gap: 8px; }
}
@media (max-width:991px) {
  .kd-layout { grid-template-columns: minmax(0,1fr); }
  .kd-side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .kd-desktop-toc { display: none; }
  .kd-mobile-toc .kd-toc { margin-bottom: 28px; padding: 18px 20px; background: #f7faff; box-shadow: none; }
  .kd-mobile-toc .kd-toc nav { max-height: 320px; }
  .kd-mobile-toc .kd-toc summary { font-size: 18px; }
  .kd-summary p { padding-left: 0; }
  .kd-related-grid { gap: 16px; }
  .kd-related-card { padding: 20px; }
  .kd-related-card h3 { font-size: 18px; }
}
@media (max-width:767px) {
  .kd-main { padding: 20px 0 30px; }
  .kd-breadcrumb { gap: 8px; margin-bottom: 17px; font-size: 12px; }
  .kd-article { padding: 22px 20px; border-radius: 12px; }
  .kd-header h1 { margin: 13px 0; font-size: 26px; line-height: 1.5; }
  .kd-category { min-height: 27px; padding: 4px 10px; font-size: 13px; }
  .kd-meta { font-size: 12px; }
  .kd-meta > span + span::before { margin: 0 6px; }
  .kd-summary { padding: 17px; margin: 23px 0; }
  .kd-summary h2 { font-size: 18px; gap: 9px; }
  .kd-summary p { font-size: 15px; }
  .kd-body { font-size: 16px; line-height: 1.9; padding-bottom: 12px; }
  .kd-body h2 { margin: 28px 0 13px; font-size: 21px; gap: 10px; }
  .kd-body h2[data-section]::before { font-size: 24px; }
  .kd-body h3 { font-size: 18px; }
  .kd-body table { font-size: 14px; }
  .kd-body table th, .kd-body table td { padding: 11px 15px; }
  .kd-body .test-note { padding: 11px 13px; font-size: 12px; }
  .kd-mobile-toc .kd-toc { padding: 14px; margin-bottom: 23px; }
  .kd-toc a { padding-left: 12px; }
  .kd-article-topics { gap: 8px; margin-bottom: 22px; }
  .kd-topic { font-size: 13px; padding: 7px 13px; }
  .kd-neighbors { grid-template-columns: minmax(0,1fr); }
  .kd-neighbors > * { padding: 16px; }
  .kd-neighbors > :nth-child(2) { border-top: 1px solid #e7eef8; text-align: left; }
  .kd-neighbors > :nth-child(2)::before { display: none; }
  .kd-neighbors strong { font-size: 14px; }
  .kd-side-stack { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .kd-side-card { padding: 22px; border-radius: 12px; }
  .kd-contact h2 { font-size: 21px; }
  .kd-related { margin-top: 27px; }
  .kd-related-heading { gap: 10px; margin-bottom: 15px; }
  .kd-related-heading h2 { gap: 8px; font-size: 21px; }
  .kd-related-heading > a { font-size: 13px; }
  .kd-related-grid { grid-template-columns: minmax(0,1fr); }
  .kd-related-card { padding: 21px; }
  .kd-related-card h3 { min-height: 0; }
  .kd-related-card > p { margin-bottom: 20px; font-size: 14px; }
}
@media (max-width:359px) {
  .kd-article { padding: 20px 16px; }
  .kd-header h1 { font-size: 24px; }
  .kd-contact h2 { font-size: 18px; }
  .kd-related-heading h2 { font-size: 19px; }
  .kd-related-heading > a { font-size: 12px; }
}
@media (prefers-reduced-motion:reduce) { html:has(body[data-page="news"]) { scroll-behavior: auto; } }

/* Keep article topic links aligned with their label. */
.kd-article-topics .kd-topic{display:inline-flex}
