/* ==========================================================
   Our Civic Data — "Fresh" theme
   Palette: #1B3A2D (deep) · #2C6D4F (brand) + neutrals. No accent colours.
   ========================================================== */

:root {
  /* Greens (brand, from the logo) */
  --g900: #1B3A2D;
  --g700: #235A41;
  --g600: #2C6D4F;
  --g100: #DCEDE3;
  --g50:  #EEF6F1;
  /* Blue (data, links) */
  --b900: #17305C;
  --b700: #1F4A8A;
  --b600: #2B5FA8;
  --b100: #DCE8F7;
  --b50:  #EEF4FC;
  /* Purple (editorial highlights) */
  --p900: #2E1F4D;
  --p700: #4C3580;
  --p600: #6A4BA6;
  --p100: #E6DDF5;
  --p50:  #F4F0FA;

  --ink:   #13201A;
  --ink-2: #3D4D45;
  --muted: #5F6F68;
  --line:  #E2E8E4;
  --soft:  #F6F8F7;
  --bg:    #FFFFFF;

  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --wrap:   1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --head:   68px;
  --r:      14px;
  --r-sm:   8px;
  --shadow: 0 1px 2px rgba(19,32,26,.04), 0 8px 24px rgba(19,32,26,.07);
  --ease:   cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 24px); }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--g600); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--g100); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--g900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--g600), var(--b600), var(--p600)); transform: scaleX(0); transform-origin: 0 50%; z-index: 300; pointer-events: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--g900); color: #fff; }
.btn--primary:hover { background: var(--g600); }
.btn--outline { background: #fff; color: var(--g900); border-color: var(--line); }
.btn--outline:hover { border-color: var(--g600); color: var(--g600); }
.btn--light { background: #fff; color: var(--g900); }
.btn--light:hover { background: var(--g100); }
.btn__loading { display: none; }

/* ── Header ── */
.head { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 28px; height: var(--head); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__img { height: 65px; width: auto; }
.brand__name { font: 700 20px/1 var(--serif); letter-spacing: -.01em; color: var(--g900); }

.primary-nav { display: flex; flex: 1; align-items: stretch; height: 100%; }
.primary-nav > ul { display: flex; align-items: stretch; }
.primary-nav > ul a { display: flex; align-items: center; height: var(--head); padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.primary-nav > ul a:hover { color: var(--b600); }
.primary-nav li.nav-current a { color: var(--g900); box-shadow: inset 0 -2px 0 var(--b600); }
.primary-nav__extra { display: none; }
.primary-nav__extra .btn { display: none; }

.head__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.head__link { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 10px; }
.head__link:hover { color: var(--g600); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--ink-2); transition: background .2s; }
.icon-btn:hover { background: var(--g50); color: var(--g600); }
.menu-btn { display: none; width: 40px; height: 40px; background: none; border: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 22px; height: 2px; background: var(--g900); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Typography helpers ── */
.eyebrow { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--tc, var(--g600)); }
.eyebrow:hover { filter: brightness(.7); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.hl { font-style: italic; color: var(--b600); }

/* ── Topics bar ── */
.topics { border-bottom: 1px solid var(--line); background: #fff; overflow-x: auto; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topics__in { display: flex; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.chip { flex-shrink: 0; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; transition: all .2s; }
.chip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--tc, var(--g600)); margin-right: 8px; }
.chip:hover { border-color: var(--tc, var(--g600)); color: var(--g900); }
.chip[aria-current="page"] { background: var(--g900); border-color: var(--g900); color: #fff; }
.chip[aria-current="page"]::before { background: #fff; }
.topics__in > .chip:nth-child(3n+2) { --tc: var(--b600); }
.topics__in > .chip:nth-child(3n+3) { --tc: var(--p600); }

/* ── Sections & grid ── */
.section { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section__title { font: 700 26px/1.2 var(--serif); letter-spacing: -.01em; color: var(--g900); display: flex; align-items: center; gap: 12px; }
.section__title::before { content: ''; width: 22px; height: 22px; flex-shrink: 0; border-radius: 4px; background: linear-gradient(90deg, var(--g600) 0 33.3%, var(--b600) 33.3% 66.6%, var(--p600) 66.6%); }
.section__sub { color: var(--muted); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }

/* ── Cards ── */
.card { display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 3/2; border-radius: var(--r); overflow: hidden; background: var(--g100); margin-bottom: 18px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; background:
  linear-gradient(135deg, var(--g50), var(--g100)); position: relative; }
.ph::after { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 38px; transform: translate(-50%,-50%); opacity: .35;
  background:
    linear-gradient(var(--g600),var(--g600)) 0 62%/6px 38% no-repeat,
    linear-gradient(var(--g900),var(--g900)) 10px 40%/6px 60% no-repeat,
    linear-gradient(var(--g900),var(--g900)) 20px 0/6px 100% no-repeat,
    linear-gradient(var(--g600),var(--g600)) 30px 28%/6px 72% no-repeat; }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__body .eyebrow { margin-bottom: 10px; }
.card__title { font: 700 21px/1.25 var(--serif); letter-spacing: -.01em; color: var(--g900); margin-bottom: 10px; text-wrap: balance; }
.card__title a:hover { color: var(--b600); }
.card__excerpt { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; font-size: 13px; }

/* ── Subscribe CTA ── */
.cta { margin: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); background: var(--g900); color: #fff; border-radius: 20px; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 90% at 100% 0, rgba(43,95,168,.6), transparent 70%), radial-gradient(50% 80% at 0 100%, rgba(106,75,166,.5), transparent 70%); }
.cta__in { padding: clamp(32px, 6vw, 64px); max-width: 680px; margin: 0 auto; text-align: center; }
.cta__title { font: 700 clamp(26px, 3.4vw, 36px)/1.15 var(--serif); letter-spacing: -.02em; margin-bottom: 12px; text-wrap: balance; }
.cta__text { font-size: 17px; color: rgba(255,255,255,.78); margin-bottom: 26px; }
.cta__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta__input { flex: 1 1 260px; max-width: 360px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.28); color: #fff; font: 400 16px var(--sans); padding: 13px 20px; border-radius: 999px; outline: none; transition: border-color .2s, background .2s; }
.cta__input::placeholder { color: rgba(255,255,255,.55); }
.cta__input:focus { border-color: #fff; background: rgba(255,255,255,.16); }
.cta__msg { display: none; flex-basis: 100%; font-size: 14px; margin-top: 4px; }
.cta__form.loading .btn__label { display: none; }
.cta__form.loading .btn__loading { display: inline; }
.cta__form.success .cta__msg--ok, .cta__form.error .cta__msg--err { display: block; }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; }
.pagination__status { font-size: 14px; color: var(--muted); }

/* ── Archive headers ── */
.page-head { background: var(--g50); background: color-mix(in srgb, var(--tc, var(--g600)) 9%, #fff); border-bottom: 1px solid var(--line); }
.page-head__in { padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(32px, 5vw, 52px); }
.page-head__in--author { display: flex; gap: 24px; align-items: center; }
.page-head__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.page-head__label { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--tc, var(--g600)); margin-bottom: 12px; }
.page-head__title { font: 700 clamp(32px, 4.4vw, 48px)/1.1 var(--serif); letter-spacing: -.02em; color: var(--g900); margin-bottom: 10px; }
.page-head__desc { font-size: 18px; color: var(--ink-2); max-width: 640px; margin-bottom: 14px; }

/* ── Article ── */
.article__head { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter) 0; }
.article__head .eyebrow { margin-bottom: 16px; }
.article__title { font: 700 clamp(34px, 5vw, 54px)/1.08 var(--serif); letter-spacing: -.025em; color: var(--g900); margin-bottom: 18px; text-wrap: balance; }
.article__excerpt { font: 400 clamp(19px, 2.2vw, 22px)/1.5 var(--serif); color: var(--ink-2); margin-bottom: 28px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline__authors { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.byline__author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.byline__author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.byline__author:hover { color: var(--b600); }

.article__image { max-width: 1040px; margin: clamp(28px, 4vw, 44px) auto 0; padding: 0 var(--gutter); }
.article__image img { width: 100%; border-radius: var(--r); }
.article__image figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

/* Content grid: main column 700px, wide breakout, full bleed */
.gh-content {
  display: grid; margin-top: clamp(32px, 5vw, 48px);
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [wide-start] minmax(0, 170px)
    [main-start] min(700px, calc(100% - 2 * var(--gutter)))
    [main-end] minmax(0, 170px)
    [wide-end] minmax(var(--gutter), 1fr)
    [full-end];
  font: 400 19px/1.75 var(--serif); color: var(--ink);
}
.gh-content > * { grid-column: main-start / main-end; min-width: 0; }
.gh-content > * + * { margin-top: 1.5em; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.kg-width-wide img, .kg-width-full img { width: 100%; }

.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4 { font-family: var(--serif); color: var(--g900); line-height: 1.2; letter-spacing: -.015em; }
.gh-content h2 { font-size: 30px; margin-top: 2.2em; }
.gh-content h3 { font-size: 23px; margin-top: 1.9em; }
.gh-content h4 { font-size: 19px; margin-top: 1.7em; }
.gh-content h2 + *, .gh-content h3 + *, .gh-content h4 + * { margin-top: .8em; }
.gh-content a { color: var(--b600); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s; }
.gh-content a:hover { color: var(--b900); }
.gh-content strong { font-weight: 600; }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: .5em; }
.gh-content li::marker { color: var(--p600); }
.gh-content blockquote { border-left: 3px solid var(--p600); padding: 2px 0 2px 24px; font-size: 22px; line-height: 1.5; font-style: italic; color: var(--g900); }
.gh-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.gh-content code { font: 400 .85em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--soft); border: 1px solid var(--line); padding: .1em .35em; border-radius: 4px; }
.gh-content pre { background: var(--g900); color: #EAF3EE; padding: 20px 22px; border-radius: var(--r-sm); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.gh-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.gh-content img { border-radius: var(--r-sm); }
.gh-content figcaption { font: 400 13.5px/1.5 var(--sans); color: var(--muted); text-align: center; margin-top: 10px; }
.gh-content iframe { width: 100%; max-width: 100%; border: 0; }
.gh-content table { display: block; overflow-x: auto; border-collapse: collapse; font: 400 15px/1.5 var(--sans); }
.gh-content th { text-align: left; font-weight: 600; font-size: 13px; letter-spacing: .02em; color: #fff; background: var(--b900); padding: 11px 14px; white-space: nowrap; }
.gh-content td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.gh-content tbody tr:nth-child(even) td { background: var(--soft); }

/* Ghost editor cards */
.kg-card { margin-top: 2em; }
.kg-image-card img { width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1 1 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card { display: flex; gap: 14px; padding: 20px 22px; background: var(--p50); border: 1px solid var(--p100); border-radius: var(--r-sm); font: 400 16px/1.65 var(--sans); }
.kg-callout-emoji { font-size: 20px; }
.kg-bookmark-card { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font-family: var(--sans); }
.kg-bookmark-container { display: flex; color: inherit; text-decoration: none; }
.kg-bookmark-content { flex: 1; min-width: 0; padding: 18px 20px; }
.kg-bookmark-title { font: 600 16px/1.4 var(--sans); color: var(--g900); }
.kg-bookmark-description { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.kg-bookmark-icon { width: 18px; height: 18px; border-radius: 3px; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; position: relative; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.kg-toggle-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; font-family: var(--sans); }
.kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.kg-toggle-heading-text { font: 600 16px var(--sans); color: var(--g900); margin: 0; }
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }
.kg-toggle-content { font-size: 16px; margin-top: 12px; }
.kg-toggle-card-icon { background: none; border: 0; width: 24px; }
.kg-toggle-card-icon svg { width: 100%; fill: var(--g900); }
.kg-btn { display: inline-block; background: var(--g900); color: #fff !important; text-decoration: none !important; font: 600 15px var(--sans); padding: 13px 24px; border-radius: 999px; }
.kg-btn:hover { background: var(--g600); }
.kg-button-card { display: flex; }
.kg-button-card.kg-align-center { justify-content: center; }
.kg-embed-card, .kg-html-card { display: flex; flex-direction: column; align-items: center; }

/* Members paywall box */
.gh-post-upgrade-cta a.gh-btn {
    display: inline-block;
    background: #1B3A2D !important;
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 999px;
}

.gh-post-upgrade-cta a.gh-btn:hover {
    background: #2C6D4F !important;
}
.gh-post-upgrade-cta h2 { font: 700 26px/1.2 var(--serif); color: var(--g900); margin: 0 0 10px; border: 0; padding: 0; }
.gh-post-upgrade-cta a.gh-btn { display: inline-block; background: var(--g900); color: #fff !important; text-decoration: none; font-weight: 600; padding: 13px 26px; border-radius: 999px; }


/* Table of contents (injected by JS) */
.toc { background: var(--b50); border: 1px solid var(--b100); border-radius: var(--r); padding: 20px 24px; font-family: var(--sans); }
.toc__title { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a { display: block; font-size: 15px; line-height: 1.4; color: var(--ink-2); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--b600); }
.toc .toc--h3 a { padding-left: 16px; font-size: 14px; color: var(--muted); }

/* Article footer */
.article__foot { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.share__label { font-size: 14px; font-weight: 600; margin-right: 6px; }
.article__foot .cta { margin-top: 40px; }
.comments { margin-top: 48px; }
.comments .section__title { margin-bottom: 20px; }
.comments__gate { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; text-align: center; }
.comments__gate p { margin-bottom: 16px; color: var(--ink-2); }
.related { border-top: 1px solid var(--line); margin-top: 48px; }

/* Error */
.error { text-align: center; padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(64px, 12vw, 140px); }
.error__code { font: 700 clamp(80px, 16vw, 140px)/1 var(--serif); color: var(--g100); }
.error__title { font: 700 32px/1.2 var(--serif); color: var(--g900); margin: 8px 0 12px; }
.error__text { color: var(--ink-2); margin-bottom: 28px; }

/* ── Footer ── */
.foot { background: var(--g900); color: #fff; margin-top: 32px; padding: 56px 0 28px; border-top: 6px solid; border-image: linear-gradient(90deg, var(--g600), var(--b600), var(--p600)) 1; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot__brand { font: 700 22px/1 var(--serif); margin-bottom: 14px; }
.foot__about p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.7); max-width: 340px; }
.foot__col h4 { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.foot__col li + li { margin-top: 10px; }
.foot__col ul.nav { display: block; }
.foot__col a { font-size: 15px; color: rgba(255,255,255,.85); transition: color .2s; }
.foot__col a:hover { color: #fff; text-decoration: underline; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.55); }


/* ── Mega menu ── */
.topics-btn { display: flex; align-items: center; gap: 6px; height: var(--head); padding: 0 14px; background: none; border: 0; font: 500 15px/1 var(--sans); color: var(--ink-2); transition: color .2s; }
.topics-btn:hover { color: var(--b600); }
.topics-btn svg { transition: transform .25s var(--ease); }
.topics-btn[aria-expanded="true"] { color: var(--g900); box-shadow: inset 0 -2px 0 var(--b600); }
.topics-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 28px 40px rgba(19,32,26,.1); }
.mega[hidden] { display: none; }
.mega__in { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 34px; display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.mega__label { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega__topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 20px; }
.mega__topics > :nth-child(3n+1) { --tc: var(--g600); }
.mega__topics > :nth-child(3n+2) { --tc: var(--b600); }
.mega__topics > :nth-child(3n+3) { --tc: var(--p600); }
.mega__topic { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); font-size: 16px; font-weight: 500; color: var(--ink); transition: background .2s; }
.mega__topic::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--tc, var(--g600)); flex-shrink: 0; }
.mega__topic small { margin-left: auto; font-size: 13px; color: var(--muted); }
.mega__topic:hover { background: var(--soft); }
.mega__aside { background: var(--p50); border: 1px solid var(--p100); border-radius: var(--r); padding: 24px; }
.mega__aside p { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.mega__all { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--p700); }
.mega__all:hover { text-decoration: underline; }

/* ── Hero ── */
.hero {
  background:
    radial-gradient(55% 80% at 95% 0, var(--p50), transparent 70%),
    radial-gradient(50% 70% at 0 100%, var(--b50), transparent 70%),
    var(--g50);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--p600); margin-bottom: 20px; }
.hero__kicker::before { content: ''; width: 26px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--g600), var(--b600), var(--p600)); }
.hero__title { font: 700 clamp(38px, 5.4vw, 66px)/1.03 var(--serif); letter-spacing: -.03em; color: var(--g900); margin-bottom: 22px; text-wrap: balance; }
.hero__text { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art svg { width: 100%; max-width: 460px; margin-left: auto; }

/* ── Fast facts (rotating) ── */
.facts { background: linear-gradient(110deg, var(--b900), var(--p900)); color: #fff; }
.facts__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.facts__label { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); padding-right: 32px; border-right: 1px solid rgba(255,255,255,.22); }
.facts__viewport { display: grid; }
.fact { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease), visibility .5s; }
.fact.is-active { opacity: 1; visibility: visible; transform: none; }
.fact__text { font: 600 clamp(21px, 2.5vw, 32px)/1.25 var(--serif); letter-spacing: -.01em; }
.fact__text .num { color: #9DE3BF; white-space: nowrap; }
.fact__link { display: inline-block; margin-top: 12px; font: 600 14px var(--sans); color: #fff; border-bottom: 1.5px solid rgba(255,255,255,.5); padding-bottom: 1px; }
.fact__link:hover { border-color: #fff; }
.facts__controls { display: flex; align-items: center; gap: 6px; }
.facts__controls[hidden] { display: none; }
.facts__btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.38); background: transparent; color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.facts__btn:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.facts__dots { display: flex; margin: 0 6px; }
.facts__dot { width: 20px; height: 28px; background: none; border: 0; display: grid; place-items: center; }
.facts__dot::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.38); transition: width .3s var(--ease), background .3s; }
.facts__dot[aria-current="true"]::before { width: 22px; background: #fff; }

/* ── Featured trio ── */
.featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
.featured__side { display: grid; gap: 28px; align-content: start; }
.feat { display: flex; flex-direction: column; }
.feat__media { display: block; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; background: var(--g100); margin-bottom: 18px; }
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feat:hover .feat__media img { transform: scale(1.03); }
.feat__body .eyebrow { margin-bottom: 10px; }
.feat__title { font: 700 21px/1.25 var(--serif); letter-spacing: -.01em; color: var(--g900); margin-bottom: 10px; text-wrap: balance; }
.feat__title a:hover { color: var(--b600); }
.feat--lead .feat__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.feat__excerpt { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-bottom: 14px; }
.featured__side .feat { flex-direction: row; gap: 18px; align-items: flex-start; }
.featured__side .feat__media { width: 42%; flex-shrink: 0; aspect-ratio: 4/3; margin: 0; }
.featured__side .feat__title { font-size: 18px; }
.feat .meta { font-size: 13px; }

/* ── Topic tiles ── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { --tc: var(--g600); display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 22px; border-radius: var(--r); background: var(--g50); background: color-mix(in srgb, var(--tc) 7%, #fff); border: 1px solid var(--line); border-top: 4px solid var(--tc); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile:nth-child(3n+2) { --tc: var(--b600); }
.tile:nth-child(3n+3) { --tc: var(--p600); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile__name { font: 700 22px/1.2 var(--serif); color: var(--g900); }
.tile__desc { font-size: 15px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__count { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--tc); }
.section--tight { padding-top: 0; }
.section--flush { padding-top: 32px; }
.section--head-only { padding-bottom: 20px; }
.section--head-only .section__head { margin-bottom: 0; }

/* ── Mission band ── */
.mission { background: var(--p50); border-top: 1px solid var(--p100); border-bottom: 1px solid var(--p100); margin-top: clamp(24px, 4vw, 48px); }
.mission__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.mission__title { font: 700 clamp(30px, 4vw, 46px)/1.1 var(--serif); letter-spacing: -.02em; color: var(--g900); margin-bottom: 14px; }
.mission__text { font-size: 18px; color: var(--ink-2); max-width: 520px; margin-bottom: 26px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--p100); border-radius: var(--r); padding: 24px; }
.stat__num { font: 700 clamp(38px, 5vw, 54px)/1 var(--serif); color: var(--p600); }
.stat:nth-child(2) .stat__num { color: var(--b600); }
.stat__label { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature__in { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --head: 60px; }
  .head__in { gap: 12px; }
  .menu-btn { display: flex; }
  .head__link { display: none; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: auto; flex-direction: column; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(19,32,26,.1);
    padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--head)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav > ul { flex-direction: column; }
  .primary-nav > ul a { height: auto; padding: 15px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .primary-nav li.nav-current a { box-shadow: none; font-weight: 600; }
  .primary-nav__extra { display: block; }
  .primary-nav__extra a { display: block; padding: 15px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .primary-nav__extra a.btn { display: none; }
}
@media (max-width: 520px) {
  .head__actions .btn { display: none; }
  .primary-nav__extra .btn { display: flex; margin-top: 14px; padding: 14px; font-size: 16px; color: #fff; border-bottom: 0; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .gh-content { font-size: 18px; }
  .gh-content blockquote { font-size: 20px; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-head__in--author { flex-direction: column; align-items: flex-start; }
  .kg-bookmark-container { flex-direction: column-reverse; }
  .kg-bookmark-thumbnail { width: 100%; height: 150px; }
  .pagination .btn { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .facts__in { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; padding-bottom: 22px; }
  .facts__label { border-right: 0; padding-right: 0; }
  .featured { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .mission__in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topics-btn { height: auto; padding: 15px 2px; font-size: 17px; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .topics-btn[aria-expanded="true"] { box-shadow: none; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega__in { grid-template-columns: 1fr; padding: 6px 0 6px; gap: 0; }
  .mega__topics { grid-template-columns: 1fr 1fr; }
  .mega__topic { font-size: 15px; padding: 10px 6px; }
  .mega__aside, .mega__label { display: none; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .featured__side .feat { flex-direction: column; }
  .featured__side .feat__media { width: 100%; aspect-ratio: 16/10; margin-bottom: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .mega__topics { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fact { transition: none; transform: none; }
}

/* Fix article layout positioning */
.article {
  display: block;
  width: 100%;
  position: relative;
}

.article__head,
.article__image,
.article__foot,
.article > .related {
  position: relative;
  left: auto;
  right: auto;
  transform: none;
  float: none;
}

.article__image {
  display: block;
  width: 100%;
}

.article__foot {
  display: block;
  width: 100%;
}

.gh-content {
  width: 100%;
  position: relative;
}