/* News is deliberately scoped away from legacy article layouts and site chrome. */
.kf-article-page {
  --kf-text: #343c43;
  --kf-muted: #66727c;
  --kf-rule: #dfe4e7;
  padding: calc(var(--header, 78px) + 24px) 0 80px;
  color: var(--kf-text);
  background: #fff;
}
.kf-article-container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.kf-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 32px; font-size: 13px; color: var(--kf-muted); }
.kf-breadcrumb a:hover { color: var(--red); }
.kf-article-header { max-width: 970px; margin: 0 0 32px; }
.kf-eyebrow { display: block; color: #b61d22; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .11em; }
.kf-article-header > .kf-eyebrow { display: flex; align-items: center; gap: 12px; }
.kf-eyebrow i { width: 22px; height: 1px; background: #bdc5ca; }
.kf-article-header h1 { margin: 14px 0 20px; color: #232a30; font-size: clamp(31px, 3.15vw, 44px); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.kf-article-meta { display: flex; align-items: center; gap: 13px; color: var(--kf-muted); font-size: 13px; }
.kf-article-grid { display: grid; grid-template-columns: minmax(0, 790px) minmax(230px, 270px); column-gap: 70px; align-items: start; }
.kf-article-lead { grid-column: 1; grid-row: 1; min-width: 0; }
.kf-article-body { grid-column: 1; grid-row: 2; min-width: 0; }
.kf-copy { color: var(--kf-text); font-size: 17px; line-height: 1.85; overflow-wrap: break-word; }
.kf-copy p { margin: 0 0 22px; }
.kf-copy strong, .kf-copy b { font-weight: 650; color: #28323a; }
.kf-copy h2 { margin: 52px 0 19px; padding: 0; border: 0; color: #202a32; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }
.kf-copy h3 { margin: 32px 0 14px; padding: 0; color: #27343f; font-size: 21px; line-height: 1.4; font-weight: 650; }
.kf-copy h4 { margin: 25px 0 10px; color: #35414b; font-size: 18px; line-height: 1.45; font-weight: 650; }
.kf-copy h2::before, .kf-copy h2::after, .kf-copy h3::before { content: none; }
.kf-copy :is(h2,h3,h4), #article-title { scroll-margin-top: calc(var(--header, 78px) + 24px); }
.kf-copy :is(h2,h3,h4):focus, #article-title:focus { outline: 0; }
.kf-copy :is(h2,h3,h4):target { text-decoration: underline; text-decoration-color: #e6b1b3; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.kf-copy a:not(.kf-cta-button):not(.kf-image-full) { color: #b51e24; text-decoration: underline; text-decoration-color: #d7a3a6; text-underline-offset: 3px; }
.kf-copy a:hover { text-decoration-color: currentColor; }
.kf-copy :is(ul,ol) { margin: 18px 0 26px; padding-left: 25px; }
.kf-copy li { padding-left: 4px; margin: 9px 0; }
.kf-copy li::marker { color: #a7272c; }
.kf-copy li :is(ul,ol) { margin-block: 8px; }
.kf-copy blockquote { margin: 28px 0; padding: 22px 25px; border-left: 3px solid #bac4ca; background: #f5f7f8; }
.kf-intro { margin-top: 30px; }
.kf-copy .kf-deck { margin-bottom: 23px; font-size: 20px; line-height: 1.6; color: #495864; }
.kf-copy .kf-audience { color: #66727c; font-size: 14px; }
.kf-copy .kf-note { margin: 28px 0; padding: 22px 25px; background: #f4f6f7; border-left: 3px solid #acb9c2; font-size: 16px; }
.kf-note > :last-child { margin-bottom: 0; }
.kf-copy .kf-further { margin: 26px 0; padding: 17px 20px; border-left: 2px solid #b9c2c9; color: #66727c; background: #fafbfc; font-size: 15px; }

/* Natural ratios preserve the whole machine. Only card frames have a fixed box. */
.kf-figure { margin: 34px auto; max-width: 740px; }
.kf-figure-frame { display: flex; justify-content: center; align-items: center; overflow: hidden; border: 1px solid #e4e8eb; border-radius: 5px; background: #f7f8f9; }
.kf-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 520px; margin: 0 auto; object-fit: contain; border-radius: 0; }
.kf-figure--hero { margin: 0; max-width: 100%; }
.kf-figure--hero img { max-height: 465px; }
.kf-figure--diagram { max-width: 700px; }
.kf-figure--diagram .kf-figure-frame { padding: 14px; background: #fff; }
.kf-figure--diagram img { max-height: none; }
.kf-figure--component { max-width: 500px; }
.kf-figure--component .kf-figure-frame { padding: 18px; background: #fff; }
.kf-figure--component img { max-height: 370px; }
.kf-figure figcaption { margin: 11px 0 0; color: #68757f; font-size: 13px; font-weight: 400; line-height: 1.6; text-align: left; }
.kf-figure-number { color: #374650; font-weight: 600; }
/* Body uploads follow the available text width and their natural aspect
   ratio. Explicit editor widths still apply to the enclosing figure. */
.kf-copy .kf-figure { width: 100%; max-width: 100%; }
.kf-copy .kf-figure img { width: 100%; height: auto; max-height: none; }
.kf-image-full { display: inline-block; margin-left: 5px; color: #a82a2e; font-size: 12px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

.kf-toc-aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header, 78px) + 25px); padding: 0; min-width: 0; }
.kf-toc { border: 1px solid var(--kf-rule); border-top: 3px solid var(--red); border-radius: 4px; background: #fafbfc; }
.kf-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 18px; cursor: pointer; list-style: none; color: #2b3740; font-size: 16px; font-weight: 700; }
.kf-toc summary::-webkit-details-marker { display: none; }
.kf-toc-toggle { font-size: 21px; line-height: 1; transition: transform .15s; }
.kf-toc[open] .kf-toc-toggle { transform: rotate(180deg); }
.kf-toc nav { max-height: calc(100dvh - var(--header, 78px) - 170px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 8px 14px 10px; border-top: 1px solid #e6eaec; }
.kf-toc ol { list-style: none; margin: 10px 0 0; padding: 0; }
.kf-toc li { padding: 0; margin: 0; }
.kf-toc a { display: block; padding: 7px 9px; color: #4c5963; border-left: 2px solid transparent; font-size: 13px; line-height: 1.5; text-decoration: none; }
.kf-toc .kf-toc-level-3 a { padding-left: 22px; color: #697780; font-size: 12px; }
.kf-toc a:hover, .kf-toc a[aria-current] { color: #b61d22; border-left-color: #d82429; background: #fff; }
.kf-back-top { display: inline-block; margin: 15px 18px; color: #65727b; font-size: 12px; }
.kf-toc a:focus-visible, .kf-toc summary:focus-visible, .kf-article-page a:focus-visible { outline: 2px solid #bd252b; outline-offset: 3px; }

.kf-table-scroll { max-width: 100%; margin: 28px 0 34px; overflow-x: auto; border: 1px solid #d8e0e5; border-radius: 5px; scrollbar-width: thin; }
.kf-table-scroll:focus-visible { outline: 2px solid #b52127; outline-offset: 3px; }
.kf-copy table.kf-data-table { width: 100%; min-width: 560px; margin: 0; border-collapse: collapse; table-layout: auto; font-size: 14px; line-height: 1.65; color: #3b4750; }
.kf-data-table :is(th,td) { padding: 14px 17px; border: 0; border-right: 1px solid #dfe5e9; border-bottom: 1px solid #dfe5e9; text-align: left; vertical-align: top; font-weight: 400; }
.kf-data-table thead th { color: #233440; background: #eaf0f4; font-weight: 650; }
.kf-data-table tbody tr:nth-child(even) { background: #f8fafb; }
.kf-data-table tr:last-child td { border-bottom: 0; }
.kf-data-table tr > :last-child { border-right: 0; }
.kf-data-table :is(p,ul,ol) { margin: 0; }
.kf-data-table caption { padding: 14px 17px; text-align: left; font-weight: 600; }

.kf-copy details { margin: 0; border-bottom: 1px solid var(--kf-rule); background: #fff; }
.kf-copy details:first-child { border-top: 1px solid var(--kf-rule); }
.kf-copy details summary { position: relative; padding: 21px 36px 21px 0; color: #2c3943; font-size: 17px; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.kf-copy details summary::-webkit-details-marker { display: none; }
.kf-copy details summary::after { content: '+'; position: absolute; right: 4px; top: 20px; color: #b5262c; font-size: 23px; font-weight: 400; }
.kf-copy details[open] summary::after { content: '−'; }
.kf-copy details > :not(summary) { margin: 0 0 22px; color: #56646e; }
.kf-copy details summary:focus-visible { outline: 2px solid #c0272d; outline-offset: 2px; }

.kf-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin: 44px 0; padding: 29px 30px; background: #f4f6f7; border-left: 3px solid var(--red); border-radius: 3px; }
.kf-cta > div { flex: 1 1 380px; }
.kf-cta strong { display: block; margin: 9px 0 10px; color: #263741; font-size: 23px; line-height: 1.35; }
.kf-cta p { margin: 0; color: #57666f; font-size: 15px; line-height: 1.75; }
.kf-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 11px 20px; color: #fff; background: #c61f26; border-radius: 3px; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.kf-cta-button:hover { background: #ac1a20; }
.kf-cta--final { margin-top: 56px; margin-bottom: 0; background: #edf2f5; }
.kf-related { margin-top: 75px; padding-top: 35px; border-top: 1px solid var(--kf-rule); }
.kf-related-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.kf-related-heading h2 { margin: 8px 0 0; color: #25323b; font-size: 29px; line-height: 1.3; }
.kf-related-heading > a { color: #56636d; font-size: 14px; }
.kf-related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.kf-related-card { min-width: 0; border: 1px solid #e0e5e8; border-radius: 5px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.kf-related-card:hover { border-color: #c6cfd4; box-shadow: 0 6px 18px #2638420c; }
.kf-related-card > a { display: flex; height: 100%; flex-direction: column; }
.kf-related-image { display: flex; align-items: center; justify-content: center; height: 163px; background: #f1f4f6; }
.kf-related-image img { width: 100%; height: 100%; object-fit: contain; }
.kf-related-card > a > div:last-child { padding: 19px 19px 21px; display: flex; flex: 1; flex-direction: column; }
.kf-related-card .kf-eyebrow { font-size: 10px; }
.kf-related-card h3 { margin: 9px 0 22px; color: #29343d; font-size: 17px; line-height: 1.5; font-weight: 650; }
.kf-read-more { margin-top: auto; color: #af252b; font-size: 12px; font-weight: 600; }

/* Listing images use the exact reviewed hero shown on the destination page. */
.news-list.kf-news-list { height: auto; min-height: 0; overflow: visible; }
.kf-news-list .xz-a015-thumb { background: #eef2f4; }
.kf-news-list .xz-a015-thumb img { object-fit: contain; }
.kf-news-list .xz-a015-tit { color: #27343d; }
.kf-news-list .xz-a015-des { color: #64717b; line-height: 1.7; }
.kf-news-list .news-card.kf-company-card { grid-template-columns: 1fr; }
.kf-news-list .kf-company-card > div { max-width: 800px; }

@media (max-width: 1200px) {
  .kf-article-grid { column-gap: 40px; grid-template-columns: minmax(0,1fr) 250px; }
  .kf-related-grid { gap: 16px; }
}
@media (max-width: 1000px) {
  .kf-article-container { width: min(800px, calc(100% - 48px)); }
  .kf-article-grid { display: flex; flex-direction: column; gap: 0; }
  .kf-article-lead, .kf-article-body, .kf-toc-aside { width: 100%; }
  .kf-toc-aside { position: static; margin: 12px 0 5px; }
  .kf-toc nav { max-height: 420px; padding: 0 15px 15px; }
  .kf-toc a { padding-block: 10px; font-size: 14px; }
  .kf-toc .kf-toc-level-3 a { font-size: 13px; }
  .kf-back-top { display: none; }
  .kf-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kf-related-image { height: 200px; }
  .kf-related-heading > a { white-space: nowrap; }
}
@media (max-width: 600px) {
  .kf-article-page { padding-top: calc(var(--header, 64px) + 21px); padding-bottom: 45px; }
  .kf-article-container { width: calc(100% - 36px); }
  .kf-breadcrumb { gap: 8px; margin-bottom: 27px; font-size: 12px; }
  .kf-article-header { margin-bottom: 25px; }
  .kf-article-header > .kf-eyebrow { font-size: 9px; gap: 8px; letter-spacing: .08em; }
  .kf-article-header h1 { margin-top: 13px; font-size: 30px; line-height: 1.23; text-wrap: pretty; }
  .kf-article-meta { font-size: 12px; }
  .kf-copy { font-size: 16px; line-height: 1.8; }
  .kf-copy p { margin-bottom: 21px; }
  .kf-copy h2 { margin-top: 39px; margin-bottom: 16px; font-size: 24px; }
  .kf-copy h3 { margin-top: 28px; font-size: 20px; }
  .kf-copy h4 { font-size: 17px; }
  .kf-copy .kf-deck { font-size: 18px; }
  .kf-copy :is(ul,ol) { padding-left: 21px; }
  .kf-copy .kf-note { padding: 18px 19px; }
  .kf-figure { margin-block: 28px; }
  .kf-figure--hero { margin: 0; }
  .kf-figure img { max-height: 400px; }
  .kf-figure--diagram img { max-height: none; }
  .kf-figure--diagram .kf-figure-frame { padding: 6px; }
  .kf-figure figcaption { font-size: 12px; line-height: 1.65; }
  .kf-intro { margin-top: 25px; }
  .kf-table-scroll::before { content: 'Scroll sideways to view the full table →'; display: block; width: max-content; padding: 9px 13px; color: #677680; background: #f7f9fa; font-size: 11px; }
  .kf-copy table.kf-data-table { font-size: 13px; min-width: 540px; }
  .kf-data-table :is(th,td) { padding: 12px 13px; }
  .kf-copy details summary { padding-block: 18px; font-size: 16px; }
  .kf-cta { margin-block: 35px; padding: 24px 22px; gap: 19px; }
  .kf-cta strong { font-size: 21px; }
  .kf-cta p { font-size: 14px; }
  .kf-cta--final { margin-top: 39px; margin-bottom: 0; }
  .kf-related { margin-top: 49px; padding-top: 28px; }
  .kf-related-heading { display: block; }
  .kf-related-heading h2 { font-size: 26px; }
  .kf-related-heading > a { display: inline-block; margin-top: 15px; font-size: 13px; }
  .kf-related-grid { grid-template-columns: 1fr; gap: 16px; }
  .kf-related-image { height: 190px; }
  .kf-related-card h3 { font-size: 18px; margin-bottom: 18px; }
  .kf-related-card > a > div:last-child { padding: 19px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .kf-toc-toggle, .kf-related-card { transition: none; }
}
