:root {
  --page: #f3f6f7;
  --surface: #fbfcfc;
  --ink: #1d2d38;
  --muted: #667783;
  --soft: #dce4e7;
  --line: rgba(29, 45, 56, 0.15);
  --accent: #d93b36;
  --accent-dark: #b92825;
  --radius: 6px;
  --content: min(1320px, calc(100vw - 80px));
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 30; padding: 10px 14px; transform: translateY(-160%); border-radius: var(--radius); color: #fff; background: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.article-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; min-height: 70px; padding: 0 max(40px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid var(--line); background: rgba(251, 252, 252, 0.94); backdrop-filter: blur(14px); }
.article-brand { display: flex; align-items: center; margin-right: auto; }
.article-brand img { width: 122px; }
.article-nav nav { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 30px); color: #5d6f7a; font-size: 14px; white-space: nowrap; }
.article-nav nav a { padding: 9px 0; transition: color 180ms ease; }
.article-nav nav a:hover, .article-nav nav a.active { color: var(--accent); }
.article-cta, .reader-inquiry > a, .article-not-found > a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 19px; border-radius: var(--radius); color: #fff; background: var(--accent); font-size: 13px; font-weight: 800; white-space: nowrap; transition: background 180ms ease, transform 180ms ease; }
.article-cta:hover, .reader-inquiry > a:hover, .article-not-found > a:hover { background: var(--accent-dark); }
.article-cta:active, .reader-inquiry > a:active, .article-not-found > a:active { transform: translateY(1px); }

.reading-progress { position: fixed; top: 70px; right: 0; left: 0; z-index: 21; height: 3px; pointer-events: none; }
.reading-progress-bar { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); }
@supports (animation-timeline: scroll()) {
  .reading-progress-bar { animation: reading-progress linear both; animation-timeline: scroll(root); }
  @keyframes reading-progress { to { transform: scaleX(1); } }
}

.reader-header { width: min(940px, calc(100vw - 48px)); margin-inline: auto; padding: clamp(66px, 7vw, 100px) 0 52px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--accent); font-weight: 800; }
.reader-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.reader-meta .reader-category { color: var(--accent); }
.reader-header h1 { max-width: 900px; margin: 20px 0 23px; font-family: var(--font-industrial); font-size: var(--section-title-size); font-weight: 700; line-height: var(--section-title-line-height); letter-spacing:0; }
.reader-summary { max-width: 730px; margin: 0; color: var(--muted); font-size: var(--section-subtitle-size); font-weight: 600; line-height: var(--section-subtitle-line-height); }
.feature-figure { width: var(--content); margin: 0 auto; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.feature-figure img { width: 100%; aspect-ratio: 16 / 7.2; object-fit: cover; }

.reader-layout { display: grid; grid-template-columns: 220px minmax(0, 720px) 220px; width: min(1180px, calc(100vw - 80px)); gap: 54px; justify-content: center; margin-inline: auto; padding: clamp(76px, 8vw, 116px) 0; }
.desktop-toc-wrap { grid-column: 1; }
.desktop-toc { position: sticky; top: 116px; padding-left: 17px; border-left: 1px solid var(--line); }
.desktop-toc::before { display: block; margin-bottom: 18px; color: var(--ink); content: "In this article"; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.toc-link { display: block; margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.45; transition: color 160ms ease, transform 160ms ease; }
.toc-link:hover, .toc-link.is-active { color: var(--accent); }
.toc-link.is-active { transform: translateX(4px); }
.reader-column { grid-column: 2; min-width: 0; }
.mobile-toc { display: none; }
.article-intro { margin-bottom: 66px; }
.article-intro p { margin: 0 0 1.25em; color: #334a57; font-size: 19px; font-weight: 600; line-height: 1.75; }
.article-body { max-width: 720px; }
.article-section { margin: 0 0 72px; scroll-margin-top: 116px; }
.article-section h2 { margin: 0 0 24px; font-family: var(--font-industrial); font-size: var(--section-title-size); font-weight: 700; line-height: var(--section-title-line-height); letter-spacing:0; }
.article-section p { margin: 0 0 1.3em; color: #405560; font-size: 18px; line-height: 1.78; }
.article-section p:last-child { margin-bottom: 0; }

.checklist-section { margin-top: 98px; padding: clamp(34px, 5vw, 54px); border-radius: var(--radius); background: #e7ecee; }
.checklist-heading > p { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.checklist-heading h2 { margin: 0; font-family: var(--font-industrial); font-size: var(--section-title-size); font-weight: 700; line-height: var(--section-title-line-height); }
.buyer-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 34px 0 0; padding: 0; list-style: none; }
.buyer-checklist li { position: relative; min-height: 44px; padding: 12px 0 12px 24px; border-bottom: 1px solid rgba(29, 45, 56, 0.13); color: #334a57; font-size: 14px; font-weight: 700; }
.buyer-checklist li::before { position: absolute; top: 17px; left: 2px; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; content: ""; }

.related-section { width: var(--content); margin-inline: auto; padding: clamp(70px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.related-heading h2 { max-width: 650px; margin: 0; font-family: var(--font-industrial); font-size: var(--section-title-size); font-weight: 700; line-height: var(--section-title-line-height); }
.related-heading a { color: var(--accent); font-size: 13px; font-weight: 800; white-space: nowrap; }
.related-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.related-entry { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; min-height: 150px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.related-entry img { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); filter: saturate(0.82); }
.related-entry p { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.related-entry h3 { margin: 0; font-family: var(--font-industrial); font-size: 26px; font-weight: 600; line-height: 1.08; }
.related-entry span { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.reader-inquiry { display: flex; width: var(--content); align-items: center; justify-content: space-between; gap: 42px; margin: 0 auto clamp(70px, 8vw, 112px); padding: clamp(36px, 4.5vw, 60px); border-radius: var(--radius); color: #f6f9fa; background: #253943; }
.reader-inquiry h2 { max-width: 760px; margin: 0; font-family: var(--font-industrial); font-size: var(--section-title-size); font-weight: 700; line-height: var(--section-title-line-height); }
.reader-inquiry p { max-width: 660px; margin: 15px 0 0; color: #c5d0d5; font-size: 15px; line-height: 1.65; }

.article-not-found { width: min(720px, calc(100vw - 40px)); min-height: 66vh; margin-inline: auto; padding: clamp(100px, 14vw, 190px) 0; }
.article-not-found > p:first-child { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.article-not-found h1 { margin: 0; font-family: var(--font-industrial); font-size: var(--section-title-size); font-weight: 700; line-height: var(--section-title-line-height); }
.article-not-found h1 + p { max-width: 540px; margin: 24px 0 32px; color: var(--muted); font-size: 16px; line-height: 1.7; }

.article-footer { display: grid; grid-template-columns: 1.3fr 1fr; width: var(--content); align-items: end; gap: 46px; margin-inline: auto; padding: 44px 0 36px; border-top: 1px solid var(--line); }
.footer-brand img { width: 126px; }
.footer-brand p { max-width: 400px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 24px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.site-copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); background: #203b4b; color: #c5d2da; font-size: 13px; }
.site-copyright-inner { display: flex; width: var(--content); min-height: 68px; align-items: center; margin-inline: auto; padding-block: 18px; line-height: 1.55; }
.noscript-message { margin: 20px auto; padding: 16px; color: var(--muted); text-align: center; }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(217, 59, 54, 0.35); outline-offset: 4px; }

@media (max-width: 1100px) {
  :root { --content: min(calc(100vw - 48px), 1320px); }
  .article-nav { gap: 20px; padding-inline: 24px; }
  .article-nav nav { gap: 14px; font-size: 12px; }
  .reader-layout { grid-template-columns: 190px minmax(0, 720px); width: min(970px, calc(100vw - 48px)); gap: 38px; }
  .article-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --content: calc(100vw - 40px); }
  .article-nav { min-height: 64px; padding-inline: 20px; }
  .article-nav nav { display: none; }
  .article-brand img { width: 108px; }
  .article-cta { min-height: 38px; padding-inline: 14px; font-size: 12px; }
  .reading-progress { top: 64px; }
  .reader-header { width: var(--content); padding: 48px 0 34px; }
  .breadcrumb { margin-bottom: 30px; }
  .reader-header h1 { margin-top: 17px; font-size: var(--section-title-size); line-height: var(--section-title-line-height); }
  .reader-summary { font-size: 16px; }
  .feature-figure img { aspect-ratio: 4 / 3; }
  .reader-layout { display: block; width: var(--content); padding: 54px 0 80px; }
  .desktop-toc-wrap { display: none; }
  .mobile-toc { display: block; margin-bottom: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .mobile-toc summary { padding: 16px 18px; cursor: pointer; font-size: 13px; font-weight: 800; }
  .mobile-toc nav { padding: 0 18px 16px; }
  .mobile-toc .toc-link { margin-bottom: 11px; }
  .article-intro { margin-bottom: 54px; }
  .article-intro p { font-size: 17px; }
  .article-section { margin-bottom: 58px; scroll-margin-top: 90px; }
  .article-section h2 { font-size: var(--section-title-size); }
  .article-section p { font-size: 17px; line-height: 1.78; }
  .checklist-section { margin-top: 74px; padding: 30px 22px; }
  .buyer-checklist { grid-template-columns: 1fr; gap: 0; }
  .related-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .related-articles { grid-template-columns: 1fr; }
  .related-entry { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 14px; }
  .related-entry img { width: 90px; }
  .related-entry h3 { font-size: 23px; }
  .reader-inquiry { align-items: flex-start; flex-direction: column; gap: 28px; padding: 32px 24px; }
  .article-footer { grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .site-copyright-inner { min-height: 64px; padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reading-progress-bar { animation: none !important; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
