/* Socient Insights: shared styles. Tokens match the home page. */
:root {
  --bg: #f9f9f8; --surface: #ffffff; --surface-2: #f2f2f0;
  --ink: #1a1a19; --ink-2: #3d3d3a; --muted: #6b6b66;
  --hair: rgba(26, 26, 25, .09); --hair-strong: rgba(26, 26, 25, .18);
  --accent: #b8336a; --on-ink: #ffffff;
  --shadow: 0 1px 2px rgba(26, 26, 25, .05), 0 6px 20px rgba(26, 26, 25, .05);
  --hero-a: rgba(184, 51, 106, .07); --hero-b: #f5eff3;
  --bar: #3d3d3a;
  --good: #2f7a4b; --bad: #b8336a;
  --r: 12px; --r-sm: 8px; --r-xs: 6px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1320; --surface: #231a29; --surface-2: #2d2134;
    --ink: #f3edf2; --ink-2: #d6ccd4; --muted: #a797a4;
    --hair: rgba(243, 237, 242, .08); --hair-strong: rgba(243, 237, 242, .16);
    --accent: #e8829f; --on-ink: #1b1320;
    --shadow: 0 1px 2px rgba(12, 4, 14, .4), 0 8px 24px rgba(12, 4, 14, .35);
    --hero-a: rgba(232, 130, 159, .16); --hero-b: #2a1a31;
    --bar: #cbbfc8; --good: #7fc79a; --bad: #e8829f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1320; --surface: #231a29; --surface-2: #2d2134;
  --ink: #f3edf2; --ink-2: #d6ccd4; --muted: #a797a4;
  --hair: rgba(243, 237, 242, .08); --hair-strong: rgba(243, 237, 242, .16);
  --accent: #e8829f; --on-ink: #1b1320;
  --shadow: 0 1px 2px rgba(12, 4, 14, .4), 0 8px 24px rgba(12, 4, 14, .35);
  --hero-a: rgba(232, 130, 159, .16); --hero-b: #2a1a31;
  --bar: #cbbfc8; --good: #7fc79a; --bad: #e8829f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid var(--hair-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn:hover { background: var(--surface-2); }
.btn-ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.head-cta { display: inline-block; white-space: nowrap; }

/* header */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--hair); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-head { background: var(--bg); } }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.site-head .brand { font-size: 24px; gap: 11px; }
.site-head .brand svg { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .15s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-toggle { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: space-between; width: 54px; height: 28px; padding: 0 7px; border: 1px solid var(--hair-strong); border-radius: 999px; background: var(--surface-2); cursor: pointer; transition: border-color .15s ease; }
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); transition: transform .2s ease; }
.theme-toggle[aria-checked="true"] .knob { transform: translateX(26px); }
.theme-toggle svg { position: relative; z-index: 1; width: 12px; height: 12px; color: var(--muted); }
.theme-toggle[aria-checked="false"] .i-sun, .theme-toggle[aria-checked="true"] .i-moon { color: var(--ink); }

/* segmented control */
.seg { display: inline-flex; flex-wrap: wrap; padding: 2px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--surface-2); }
.seg button { border: 0; background: transparent; padding: 5px 11px; font-size: 13px; font-weight: 500; color: var(--muted); border-radius: var(--r-xs); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* insights index */
.ix-hero { padding: 80px 0 40px; background: radial-gradient(60% 90% at 88% 0%, var(--hero-a) 0%, transparent 70%), linear-gradient(180deg, var(--hero-b) 0%, var(--bg) 100%); }
.ix-hero h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.04em; max-width: 13em; }
.ix-hero .lede { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 36em; }
.ix-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 8px 0 28px; }
.ix-search { width: min(280px, 100%); padding: 9px 12px; font-size: 14px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: var(--r-sm); }
.ix-search:focus { outline: none; border-color: var(--ink); }
.ix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 96px; }
.ix-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); text-align: center; }
.pcard { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: var(--r); overflow: hidden; transition: border-color .15s ease; }
.pcard:hover { border-color: var(--muted); }
.pcard img { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; border-bottom: 1px solid var(--hair); background: var(--surface-2); }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.pcard .tags { font-size: 12.5px; color: var(--muted); }
.pcard h2, .pcard h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; }
.pcard .ex { font-size: 15px; color: var(--muted); }
.pcard .pmeta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.pcard .pmeta b { color: var(--ink); font-weight: 600; }

/* post */
.post { max-width: 720px; margin: 0 auto; padding: 48px 28px 24px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.post .tags { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.post h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.035em; }
.dek { margin-top: 16px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.pmeta-line { margin-top: 16px; font-size: 14px; color: var(--muted); }
.takeaways { margin: 32px 0 8px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: var(--r); }
.post .takeaways h2 { font-size: 15px; letter-spacing: 0; margin: 0 0 10px; }
.takeaways ol { margin: 0; padding-left: 20px; }
.takeaways li { padding: 4px 0; font-size: 16.5px; }
.post h2 { font-size: 25px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.post .body p { font-size: 18px; line-height: 1.7; margin: 0 0 14px; }
.post .body ul { margin: 0 0 14px; padding-left: 22px; font-size: 18px; line-height: 1.7; }
.post .body li { margin: 4px 0; }
.post .body a { text-underline-offset: 3px; }
.post .note { font-size: 15px; color: var(--muted); }
.sources { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hair); }
.post .sources h2 { font-size: 15px; letter-spacing: 0; margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.sources li { padding: 3px 0; }
.sources a { color: var(--ink-2); }
.faq { margin-top: 40px; }
.post .faq h2 { font-size: 25px; letter-spacing: -0.02em; margin: 0 0 8px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.faq summary::after { content: "+"; flex: none; font-size: 18px; line-height: 1; color: var(--muted); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.faq details p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.w-data { margin-top: 12px; border-top: 1px solid var(--hair); padding-top: 10px; }
.w-data summary { cursor: pointer; font-size: 13px; color: var(--muted); width: max-content; }
.w-data summary:hover { color: var(--ink); }
.w-data summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.w-data table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.w-data caption { text-align: left; font-size: 12.5px; color: var(--muted); padding-bottom: 6px; caption-side: top; }
.w-data th, .w-data td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--hair); vertical-align: top; font-weight: 400; }
.w-data thead th { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.w-data tbody th { color: var(--ink-2); }
.w-data td { font-variant-numeric: tabular-nums; }
.w-data { overflow-x: auto; }
.w-data table:not(.wide) tbody th, .w-data table:not(.wide) thead th:first-child { width: 60%; }
.w-data table.wide { min-width: 520px; }

/* widgets */
.post .body .widget p { font-size: 15px; line-height: 1.5; margin: 0; }
.post .body .widget ul { font-size: 15px; line-height: 1.5; margin: 0; padding: 0; }
.post .body .widget .w-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.post .body .widget .chk-post { font-size: 16px; line-height: 1.55; }
.post .body .widget .scn-out p { font-size: 13px; line-height: 1.45; margin-top: 4px; }
.post .body .widget .scn-out .v { font-size: 15px; margin-top: 0; }
.widget { margin: 22px 0 26px; padding: 18px 20px 16px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: var(--r); box-shadow: var(--shadow); font-size: 15px; }
.w-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.w-title { font-weight: 600; font-size: 15px; }
.w-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.bars { position: relative; display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 64px; align-items: center; gap: 12px; padding: 5px 4px; border-radius: var(--r-xs); outline-offset: 0; }
.bar-row:hover, .bar-row:focus-visible { background: var(--surface-2); }
.bar-label { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.bar-track { position: relative; height: 14px; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar); border-radius: 0 4px 4px 0; transition: width .35s ease; }
.bar-fill.hl { background: var(--accent); }
.bar-val { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.tip { position: absolute; z-index: 5; max-width: 260px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; background: var(--ink); color: var(--on-ink); border-radius: var(--r-xs); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; }
.tip.show { opacity: 1; transform: translateY(0); }

/* checker (disclosure) */
.chk-post { padding: 14px 16px; background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r-sm); font-size: 16px; line-height: 1.55; }
.chk-post .who { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.chk-post mark { background: transparent; color: var(--ink); font-weight: 600; }
.chk-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.chk-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.chk-list input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--ink); }
.chk-list small { display: block; color: var(--muted); font-size: 13px; }
.status { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--hair-strong); font-weight: 600; font-size: 14.5px; }
.status.ok { color: var(--good); }
.status.no { color: var(--bad); }

/* calculator */
.calc-grid { display: grid; gap: 14px; }
.calc-row label { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.calc-row label span { color: var(--muted); }
.calc-row label b { font-variant-numeric: tabular-nums; }
.calc-row input[type="range"] { width: 100%; accent-color: var(--ink); margin-top: 6px; }
.calc-row small { display: block; color: var(--muted); font-size: 12.5px; }
.calc-gate { display: flex; gap: 10px; align-items: center; font-size: 14.5px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.calc-gate input { width: 16px; height: 16px; accent-color: var(--ink); }
.calc-out { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.calc-out b { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out span { font-size: 15px; color: var(--muted); text-align: right; }

/* scenario picker */
.scn-list { display: grid; gap: 6px; }
.scn-list button { text-align: left; padding: 9px 12px; font-size: 14.5px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--bg); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.scn-list button:hover { border-color: var(--hair-strong); }
.scn-list button[aria-pressed="true"] { border-color: var(--ink); background: var(--surface); font-weight: 600; }
.scn-out { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hair); border-radius: var(--r-sm); }
.scn-out div { padding: 12px; }
.scn-out div + div { border-left: 1px solid var(--hair); }
.scn-out h4 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.scn-out .v { font-weight: 600; font-size: 15px; }
.scn-out .v.yes { color: var(--bad); }
.scn-out .v.no { color: var(--good); }
.scn-out p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* related + cta + footer */
.related { border-top: 1px solid var(--hair); padding: 56px 0 72px; }
.related h2 { font-size: 26px; margin-bottom: 22px; }
.related .ix-grid { padding-bottom: 0; }
.cta-band { border-top: 1px solid var(--hair); padding: 72px 0; text-align: center; background: var(--surface-2); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 16em; margin: 0 auto 12px; }
.cta-band p { color: var(--muted); max-width: 32em; margin: 0 auto 24px; }
.site-foot { padding: 40px 0 52px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.site-foot .brand { font-size: 16px; color: var(--ink); }
.site-foot .brand svg { width: 22px; height: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; transition: color .15s ease; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .ix-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .post { padding: 36px 18px 16px; }
  .ix-hero { padding: 52px 0 28px; }
  .ix-grid { grid-template-columns: 1fr; }
  .site-head .wrap { gap: 12px; }
  .head-right { gap: 10px; }
  .head-right .btn { padding: 7px 11px; }
  .bar-row { grid-template-columns: 1fr 52px; gap: 4px 10px; }
  .bar-label { grid-column: 1 / -1; }
  .scn-out { grid-template-columns: 1fr; }
  .scn-out div + div { border-left: 0; border-top: 1px solid var(--hair); }
  .post .body p, .post .body ul { font-size: 17px; }
}
@media (max-width: 359px) {
  .brand { font-size: 17px; gap: 8px; }
  .brand svg { width: 24px; height: 24px; }
  .xs-hide { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Drawer: waitlist and gated downloads ---------- */
body.no-scroll { overflow: hidden; }
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); opacity: 0; transition: opacity .2s ease; }
.drawer-scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--hair-strong); box-shadow: -12px 0 40px rgba(0, 0, 0, .12); transform: translateX(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { transform: translateX(0); }
.drawer[hidden], .drawer-scrim[hidden], .drawer [hidden] { display: none !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--hair); }
.drawer-head .brand { font-size: 17px; }
.drawer-head .brand svg { width: 24px; height: 24px; }
.drawer-close { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--hair-strong); border-radius: var(--r-sm); background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .15s ease; }
.drawer-close:hover { background: var(--surface-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 32px 24px; }
.drawer-body h2 { font-size: 30px; margin-bottom: 10px; }
.drawer-intro { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.dl-card { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; padding: 12px; border: 1px solid var(--hair-strong); border-radius: var(--r-sm); background: var(--bg); }
.dl-card img { width: 64px; height: 83px; object-fit: cover; border-radius: 4px; border: 1px solid var(--hair); flex: none; }
.dl-card b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.dl-card span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select { width: 100%; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--hair-strong); border-radius: var(--r-sm); transition: border-color .15s ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field .err { display: none; margin-top: 6px; font-size: 13px; color: var(--accent); }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--accent); }
.opt { display: flex; gap: 10px; align-items: flex-start; margin: -2px 0 20px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.opt input { margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { display: none; margin: 4px 0 16px; padding: 11px 13px; font-size: 14px; border: 1px solid var(--accent); border-radius: var(--r-sm); color: var(--accent); }
.form-err.show { display: block; }
.drawer-form .btn, .done .btn { width: 100%; padding: 13px 18px; font-size: 16px; }
.done .btn + .btn { margin-top: 10px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.powered { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--muted); }
.powered a { color: var(--ink-2); }
.done h2 { margin-bottom: 12px; }
.done p { color: var(--muted); margin-bottom: 24px; }
/* Download box inside a post */
.post .body .get-box { display: grid; grid-template-columns: 118px 1fr; gap: 22px; align-items: center; margin: 30px 0; padding: 20px; border: 1px solid var(--hair-strong); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.get-box img { width: 118px; height: 153px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hair); }
.post .body .get-box h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.post .body .get-box p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.post .body .get-box .btn { text-decoration: none; }
@media (max-width: 640px) {
  .post .body .get-box { grid-template-columns: 1fr; }
  .get-box img { width: 100%; height: 180px; object-position: top; }
}

/* Mobile and tablet: the full nav moves to a second header row of plain text links that scrolls sideways. */
.site-head { --gut: 28px; }
@media (max-width: 640px) { .site-head { --gut: 18px; } }
@media (max-width: 980px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; column-gap: 12px; row-gap: 0; }
  .site-head .brand, .site-head .head-right { height: 58px; }
  .site-nav { position: relative; display: flex; order: 3; flex: 0 0 calc(100% + 2 * var(--gut)); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gut), #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent 0, #000 var(--gut), #000 calc(100% - 40px), transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav::after { content: ""; flex: 0 0 18px; }
  .site-nav a { flex: none; display: inline-flex; align-items: center; height: 36px; font-size: 14px; white-space: nowrap; scroll-snap-align: start; }
  .site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--ink); }
  .site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
  main section[id] { scroll-margin-top: 108px; }
}

/* Stage finder widget */
.stage-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; margin-top: 14px; }
.stage-out { padding: 14px 16px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--bg); }
.post .body .widget .stage-rec { font-size: 15px; margin-bottom: 8px; }
.stage-rec b { color: var(--accent); }
.stage-dl { margin: 0; }
.stage-dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 13.5px; line-height: 1.45; }
.stage-dl dt { color: var(--muted); }
.stage-dl dd { margin: 0; }
@media (max-width: 640px) { .stage-grid { grid-template-columns: 1fr; } }

/* Phones: type at about 80% of the desktop minimum, in proportion with the narrow screen. */
@media (max-width: 640px) {
  .ix-hero h1 { font-size: 32px; }
  .ix-hero .lede { font-size: 16.5px; line-height: 1.55; }
  .pcard h2, .pcard h3 { font-size: 17px; }
  .pcard .ex { font-size: 14.5px; }
  .post h1 { font-size: 27px; letter-spacing: -0.03em; }
  .dek { font-size: 17px; }
  .post h2 { font-size: 21px; margin: 32px 0 10px; }
  .post .body p, .post .body ul { font-size: 16px; line-height: 1.65; }
  .takeaways li { font-size: 15.5px; }
  .post .faq h2 { font-size: 21px; }
  .faq summary h3 { font-size: 15.5px; }
  .faq details p { font-size: 15px; }
  .related h2 { font-size: 22px; }
  .cta-band h2 { font-size: 24px; }
  .site-head .brand { font-size: 21px; gap: 10px; }
  .site-head .brand svg { width: 32px; height: 32px; }
  .drawer-body h2 { font-size: 26px; }
}
@media (max-width: 359px) {
  .site-head .brand { font-size: 19px; gap: 8px; }
  .site-head .brand svg { width: 28px; height: 28px; }
}
