@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
  --paper: #f5f2eb;
  --paper-deep: #ece8df;
  --surface: #fffefa;
  --ink: #171714;
  --ink-soft: #4f504c;
  --quiet: #75766f;
  --rule: #d8d4ca;
  --rule-dark: #b9b5aa;
  --editorial-blue: #1557d6;
  --editorial-blue-dark: #0d3f9f;
  --editorial-blue-soft: #e9f0ff;
  --signal: #ec5b32;
  --max: 1320px;
  --reading: 760px;
  --font: 'Manrope', system-ui, sans-serif;
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-editorial: 'Source Serif 4', Georgia, serif;
  --primary: var(--editorial-blue);
  --primary-dark: var(--editorial-blue-dark);
  --secondary: var(--editorial-blue-dark);
  --text: var(--ink);
  --dark-text: var(--ink);
  --muted: var(--quiet);
  --border: var(--rule);
  --card: transparent;
  --shadow: none;
  --radius: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::selection { background: #cdddff; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(100%, var(--max)); margin: 0 auto; padding: 0 32px; }

/* Masthead */
.topbar {
  position: sticky;
  z-index: 70;
  top: 0;
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 254, 250, .94);
  backdrop-filter: blur(16px);
}
.topbar-inner { height: 74px; padding: 0; gap: 28px; }
.brand { gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; overflow: visible; }
.brand-mark path:first-child { fill: #0868f7; }
.brand-mark path:last-child { fill: #10213d; }
.brand-text { gap: 4px; line-height: 1; }
.brand-text b {
  color: var(--ink);
  font: 800 12px/1 var(--font);
  letter-spacing: .13em;
}
.brand-text span { color: var(--quiet); font-size: 10px; letter-spacing: .02em; }
.nav { gap: clamp(16px, 2vw, 30px); flex-wrap: nowrap; }
.nav a { color: #454640; font-size: 12px; font-weight: 700; white-space: nowrap; }
.nav a[aria-current='page'] { color: var(--editorial-blue); }
.nav a::after { display: none; }
.nav a:hover { color: var(--editorial-blue); }
.btn,
.btn.primary,
.nav a.btn.primary {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fffefa;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: background .18s, color .18s, transform .18s;
}
.btn:hover,
.btn.primary:hover,
.nav a.btn.primary:hover {
  background: var(--editorial-blue);
  color: white;
  box-shadow: none;
  transform: translateY(-1px);
}

/* Index masthead */
.hero { padding: 70px 0 52px; border-bottom: 1px solid var(--ink); }
.hero__eyebrow {
  margin: 0 0 22px;
  color: var(--editorial-blue);
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .2em;
}
.hero h1 {
  max-width: 940px;
  margin: 0;
  color: var(--ink);
  font: 600 clamp(58px, 8vw, 108px)/.83 var(--font-heading);
  letter-spacing: -.065em;
}
.hero > .container > p:not(.hero__eyebrow) {
  max-width: 770px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font: 400 clamp(19px, 2vw, 24px)/1.48 var(--font-editorial);
}
.hero__edition {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Discovery */
.filters { padding: 26px 0 8px; }
.discovery-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.article-search { position: relative; display: block; }
.article-search span {
  position: absolute;
  left: 0;
  top: 50%;
  color: var(--editorial-blue);
  font-size: 16px;
  transform: translateY(-50%);
}
.article-search input {
  width: 100%;
  height: 48px;
  padding: 0 12px 0 30px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 15px/1 var(--font);
}
.article-search input::placeholder { color: #8b8b84; }
.article-search input:focus { border-color: var(--editorial-blue); }
.discovery-tools { display: flex; align-items: center; gap: 16px; }
.results-count { color: var(--quiet); font-size: 11px; white-space: nowrap; }
.topics-toggle {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--rule-dark);
  background: transparent;
  color: var(--ink);
  font: 700 11px/1 var(--font);
  cursor: pointer;
}
.topics-toggle:hover { border-color: var(--editorial-blue); color: var(--editorial-blue); }
.quick-topics { display: flex; width: 100%; max-width: 100%; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; overscroll-behavior-inline: contain; }
.quick-topics::-webkit-scrollbar { display: none; }
.quick-topic,
.filter-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: #5d5e58;
  font: 700 10px/1 var(--font);
  cursor: pointer;
}
.quick-topic:hover,
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.quick-topic.is-active,
.filter-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffefa;
}
.filter-row {
  max-height: 0;
  margin-top: 14px;
  overflow: hidden;
  gap: 7px;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
}
.filter-row.is-expanded { max-height: 520px; opacity: 1; }

/* Editorial grid */
.grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 30px 22px; padding: 28px 0 54px; }
.card {
  grid-column: span 4;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}
.card:hover { box-shadow: none; transform: none; }
.card > a { display: block; overflow: hidden; background: var(--paper-deep); }
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .25s;
}
.card:hover img { transform: scale(1.025); filter: saturate(1.06); }
.card-body { padding: 16px 0 0; }
.kicker { gap: 9px; margin-bottom: 12px; }
.chip {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--editorial-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.meta { color: var(--quiet); font-size: 10px; }
.card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 600 clamp(22px, 2.2vw, 30px)/1.08 var(--font-heading);
  letter-spacing: -.035em;
}
.card h2 a:hover { color: var(--editorial-blue); }
.card p { margin: 0; color: var(--ink-soft); font: 400 16px/1.5 var(--font-editorial); }
.card.is-lead { grid-column: span 8; grid-row: span 2; border-top: 0; }
.card.is-lead img { aspect-ratio: 16 / 9; }
.card.is-lead .card-body { padding-top: 20px; }
.card.is-lead h2 { max-width: 900px; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.02; }
.card.is-lead p { max-width: 720px; font-size: 19px; }
.card.is-secondary h2 { font-size: clamp(24px, 2.4vw, 34px); }
.card.is-hidden { display: none; }
.grid-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  border-top: 1px solid var(--ink);
  font: 500 28px/1.25 var(--font-heading);
}
.load-more-wrap { display: flex; justify-content: center; padding: 0 0 86px; }
.load-more-wrap[hidden] { display: none; }
.load-more {
  min-width: 220px;
  min-height: 50px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 800 11px/1 var(--font);
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.load-more:hover { background: var(--ink); color: #fffefa; }

/* Article */
.progress { height: 3px; background: var(--editorial-blue); }
.article.article-card {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 58px 32px 100px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.article-card::before { display: none; }
.article > header { max-width: 1120px; margin: 0 auto; }
.article h1 {
  max-width: 1050px;
  margin: 0 0 24px;
  color: var(--ink);
  font: 600 clamp(50px, 6.2vw, 82px)/.98 var(--font-heading);
  letter-spacing: -.055em;
  hyphens: none;
}
.article .sub {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--ink-soft);
  font: 400 clamp(19px, 2vw, 24px)/1.48 var(--font-editorial);
}
.article .byline { gap: 10px 20px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.article .byline .chip {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--quiet);
  font: 700 10px/1.3 var(--font);
  letter-spacing: .04em;
  text-transform: none;
}
.article .byline .chip:first-child { color: var(--editorial-blue); text-transform: uppercase; letter-spacing: .1em; }
.article .byline .byline-author { order: -1; color: var(--ink); }
.article .byline .byline-author::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--editorial-blue); }
.tags { gap: 7px; margin-top: 14px; }
.tag,
.tag-blue,
.tag-indigo,
.tag-emerald,
.tag-amber,
.tag-rose,
.tag-slate,
.tag-cyan {
  padding: 5px 8px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: #65665f;
  font-size: 9px;
  letter-spacing: .04em;
}
.article-hero {
  margin: 42px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--paper-deep);
}
.article-hero img,
.article-card .article-hero img {
  width: 100%;
  height: clamp(360px, 48vw, 590px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) 280px;
  justify-content: center;
  align-items: start;
  gap: 76px;
  margin-top: 52px;
}
.article-main { grid-column: 1; grid-row: 1; min-width: 0; max-width: none; }
.article-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 104px; }
.prose {
  max-width: none;
  color: #262720;
  font: 400 20px/1.72 var(--font-editorial);
}
.article-main > p,
.article-main > ul:not(.process-flow),
.article-main > ol:not(.process-flow),
.article-main > h2,
.article-main > h3,
.article-main > blockquote { max-width: none; }
.prose p { margin: 0 0 24px; color: #262720; }
.prose h2,
.article-main > h2 {
  margin: 54px 0 20px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font: 600 36px/1.12 var(--font-heading);
  letter-spacing: -.035em;
}
.article-main > h2::before { display: none; }
.prose h3 { margin: 34px 0 14px; color: var(--ink); font: 700 21px/1.3 var(--font); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--editorial-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul,
.prose ol { margin: 0 0 26px; padding-left: 27px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--editorial-blue); }
.article-main > p:first-of-type {
  margin: 0 0 32px;
  padding: 0 0 0 22px;
  border: 0;
  border-left: 3px solid var(--editorial-blue);
  border-radius: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1.58;
}
.prose blockquote {
  margin: 34px 0;
  padding: 24px 0 24px 28px;
  border: 0;
  border-left: 4px solid var(--signal);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.5;
}
.toc-card,
.side-cta {
  padding: 22px;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  background: rgba(255,254,250,.72);
  box-shadow: none;
  font-family: var(--font);
}
.toc-card b,
.side-cta b { font: 800 10px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.toc-card a { padding: 10px 0; color: #5a5b55; font-size: 11px; line-height: 1.4; }
.toc-card a:hover { color: var(--editorial-blue); }
.side-cta { margin-top: 14px; background: var(--ink); color: #fffefa; }
.side-cta p { color: #c8c7bf; font-size: 12px; line-height: 1.55; }
.side-cta a { color: white; background: var(--editorial-blue); border-radius: 0; }

/* Rich editorial blocks */
.prose .quick-summary,
.prose .seo-block,
.prose .decision-block,
.prose .faq-block,
.prose .article-mini-chart,
.prose .related-posts,
.prose .checklist-panel {
  margin: 32px 0;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgba(255,254,250,.72);
  box-shadow: none;
  font-family: var(--font);
}
.prose .summary-item,
.prose .kpi-item,
.prose .related-card,
.prose .process-flow li {
  border-color: var(--rule);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}
.prose .compare-table { border-radius: 0; border-color: var(--rule); box-shadow: none; font-family: var(--font); }
.prose .compare-table th { background: var(--editorial-blue-soft); }
.callout {
  margin-top: 38px;
  padding: 28px;
  border: 0;
  border-left: 4px solid var(--editorial-blue);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  font-family: var(--font);
}

/* Footer */
.footer { padding: 46px 0; border-top: 1px solid var(--ink); background: var(--ink); color: #cbc9c0; font-size: 11px; }
.footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.footer__row > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.footer__row b { color: white; font-size: 12px; letter-spacing: .13em; }
.footer__row i { font-style: normal; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.footer a:hover { color: white; }

@media (max-width: 1080px) {
  .nav { gap: 15px; }
  .nav a { font-size: 11px; }
  .card { grid-column: span 6; }
  .card.is-lead { grid-column: span 12; grid-row: auto; }
  .article-shell { grid-template-columns: minmax(0, var(--reading)) 240px; gap: 42px; }
}

@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .brand-text span { display: none; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 38px; }
  .hero h1 { font-size: clamp(54px, 14vw, 82px); }
  .discovery-panel { grid-template-columns: 1fr; gap: 12px; }
  .discovery-tools { justify-content: space-between; }
  .article.article-card { padding: 40px 22px 76px; }
  .article h1 { font-size: clamp(42px, 9vw, 62px); }
  .article-shell { grid-template-columns: 1fr; gap: 28px; }
  .article-main { grid-column: 1; grid-row: 2; }
  .article-sidebar { grid-column: 1; grid-row: 1; position: static; }
  .side-cta { display: none; }
  .toc-card { padding: 18px; }
  .toc-card a { display: inline-flex; margin-right: 14px; border: 0; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .topbar-inner { height: 66px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text b { font-size: 10px; }
  .nav .btn { min-height: 36px; padding: 0 12px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(50px, 16vw, 72px); }
  .hero > .container > p:not(.hero__eyebrow) { margin-top: 28px; font-size: 19px; }
  .hero__edition { gap: 8px 14px; }
  .results-count { display: none; }
  .quick-topics { margin-right: 0; }
  .filter-row.is-expanded { max-height: 780px; }
  .grid { grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; gap: 36px; padding-top: 22px; }
  .card,
  .card.is-lead { grid-column: 1 / -1; width: 100%; min-width: 0; border-top: 1px solid var(--ink); }
  .card.is-lead img,
  .card img { aspect-ratio: 16 / 10; }
  .card.is-lead h2,
  .card h2 { font-size: 31px; line-height: 1.05; }
  .card.is-lead p,
  .card p { font-size: 17px; }
  .article.article-card { padding: 34px 16px 64px; }
  .article h1 { font-size: 40px; line-height: 1.01; }
  .article .sub { font-size: 19px; }
  .article-hero { margin-top: 30px; }
  .article-hero img,
  .article-card .article-hero img { height: 245px; }
  .article-shell { margin-top: 34px; }
  .prose { font-size: 18px; line-height: 1.68; }
  .prose h2,
  .article-main > h2 { margin-top: 46px; font-size: 31px; }
  .article-main > p:first-of-type { padding-left: 16px; font-size: 19px; }
  .prose .quick-summary,
  .prose .seo-block,
  .prose .decision-block,
  .prose .faq-block,
  .prose .article-mini-chart,
  .prose .related-posts,
  .prose .checklist-panel { padding: 18px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
