/* AI Use Cases for Business — one stylesheet. Light by default, dark on request.
   Design idea: a quiet reading room for "receipts". Paper-gray pages, ink text,
   a serif for anything you read as a paragraph and a sans for everything you
   scan or click. Color carries meaning only: brass for links and the brand,
   semantic tints for evidence, notes and warnings. The sponsor block is the one
   dark, premium object on the page. */

/* ---------- Reading font (Lora 3.008, SIL OFL 1.1, shipped unmodified; see /assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-3.008.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
}

/* ---------- Tokens: light (default) ---------- */
:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --bg-band: #ededea;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --surface-3: #e7e7e2;
  --border: #e3e2dc;
  --border-2: #cdccc5;
  --text: #1c1e24;
  --text-2: #474b54;
  --text-3: #646871; /* v3.2.0: was #686c75 (4.48:1 on --bg-band); now 4.76:1 there, 4.50:1 on --surface-3 */
  --accent: #7e5d19;
  --accent-line: #dcc799;
  --accent-soft: #f7f1e3;
  --gold: #c9a253;
  --btn-bg: #1c1e24;
  --btn-bg-hover: #30333c;
  --btn-text: #ffffff;
  --focus: #1c1e24;
  --grade-a: #1b7a4c;
  --grade-b: #2b5cb3;
  --grade-c: #9a5310;
  --grade-d: #a93838;
  --tint-amber: #fbf1e1;
  --line-amber: #e6c792;
  --tint-blue: #eef3fa;
  --line-blue: #c6d5ee;
  --code-bg: #fcfcfa;
  --code-head: #f0f0ec;
  --code-text: #22252b;
  --shadow-sm: 0 1px 2px rgba(28, 30, 36, 0.05);
  --shadow: 0 1px 2px rgba(28, 30, 36, 0.05), 0 16px 34px -24px rgba(28, 30, 36, 0.3);
  --mark-1: #c79a3e;
  --mark-2: #a27a2c;
  --mark-3: #6f521c;
  --cat-support: #2f6fb2;
  --cat-operations: #2f7f6c;
  --cat-sales: #2e7d4f;
  --cat-marketing: #8a4fa3;
  --cat-content: #b0662a;
  --cat-finance: #6b7a2a;
  --cat-product: #4b5fc1;
}

/* ---------- Tokens: dark (reader's choice) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111318;
  --bg-band: #0d0f13;
  --surface: #171a21;
  --surface-2: #1d212a;
  --surface-3: #262b36;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f3;
  --text-2: #b3b9c4;
  --text-3: #8f97a5;
  --accent: #dcbc74;
  --accent-line: rgba(220, 188, 116, 0.45);
  --accent-soft: rgba(220, 188, 116, 0.09);
  --gold: #dcbc74;
  --btn-bg: #eef0f3;
  --btn-bg-hover: #ffffff;
  --btn-text: #111318;
  --focus: #f4dda2;
  --grade-a: #5fd3a7;
  --grade-b: #8db8ff;
  --grade-c: #f2a65a;
  --grade-d: #ef8f8f;
  --tint-amber: rgba(242, 166, 90, 0.1);
  --line-amber: rgba(242, 166, 90, 0.42);
  --tint-blue: rgba(141, 184, 255, 0.08);
  --line-blue: rgba(141, 184, 255, 0.35);
  --code-bg: #12151b;
  --code-head: #1b1f28;
  --code-text: #e7eaf0;
  --shadow-sm: none;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.75);
  --mark-1: #f4dda2;
  --mark-2: #d5af63;
  --mark-3: #9a7332;
  --cat-support: #7fb0ea;
  --cat-operations: #6cc4ad;
  --cat-sales: #73c99a;
  --cat-marketing: #c69ae0;
  --cat-content: #eba872;
  --cat-finance: #b9c66f;
  --cat-product: #9aa9f5;
}

:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-read: "Lora", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: clamp(2rem, 1.55rem + 1.9vw, 2.75rem);
  --fs-hero: clamp(2.4rem, 1.45rem + 3.8vw, 3.85rem);
  --read-size: 1.125rem;
  --read-lh: 1.75;
  --measure: 65ch;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --gutter: 16px;
  --header-h: 52px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sh-h) + var(--tb-h) + var(--tbm-h) + var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0 0 0.9em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.014em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: rgba(201, 162, 83, 0.32); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 2 * var(--gutter)); }
.wrap.narrow-wide { width: min(980px, 100% - 2 * var(--gutter)); }
.sep { display: inline-block; width: 4px; height: 4px; margin: 0 10px; border-radius: 50%; background: var(--text-3); vertical-align: middle; opacity: 0.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-outline { color: var(--text); border-color: var(--border-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--text-3); }
.btn-outline .icon { color: var(--accent); }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-quiet:hover { border-color: var(--text-3); }
.btn-small { min-height: 36px; padding: 6px 13px; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: var(--fs-md); border-radius: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }
.icon-btn .icon { width: 19px; height: 19px; }
:root:not([data-theme="dark"]) .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--accent); font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header: brand row (scrolls away) + main section tabs (stay put) ---------- */
.site-header { position: relative; z-index: 60; background: var(--bg); }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.brand-mark { width: 28px; height: 28px; }
.bm-s1 { stop-color: var(--mark-1); }
.bm-s2 { stop-color: var(--mark-2); }
.bm-s3 { stop-color: var(--mark-3); }
.brand-name { font-size: 1.02rem; white-space: nowrap; }
.brand-sub { color: var(--text-3); font-weight: 500; }
.util-nav { display: flex; gap: 2px; margin-left: auto; }
.util-nav a { padding: 8px 11px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.util-nav a:hover { color: var(--text); background: var(--surface-2); }
.util-nav a[aria-current] { color: var(--text); font-weight: 600; background: var(--surface-2); }
/* "Become a Sponsor": the one filled tab in the header, in the brand's brass (light) or gold (dark). */
.util-nav a.nav-cta { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 7px 13px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 650; box-shadow: var(--shadow-sm); }
.util-nav a.nav-cta:hover, .util-nav a.nav-cta[aria-current] { background: var(--text); color: var(--bg); }
.nav-cta .icon, .menu-cta .icon { width: 16px; height: 16px; }
.menu-item.menu-cta { margin-bottom: 4px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.menu-item.menu-cta .menu-label { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 700; }
.menu-item.menu-cta:hover, .menu-item.menu-cta[aria-current] { background: var(--accent-soft); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .icon-btn[aria-current] { color: var(--text); border-color: var(--text-3); }
/* The menu lists every section with one line on what's there; on wide screens it sits next to the top links. */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { color: var(--text); border-color: var(--text-3); }
.menu-btn { width: auto; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px 0 10px; font-size: var(--fs-sm); font-weight: 600; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; display: grid; gap: 2px; width: min(330px, calc(100vw - 2 * var(--gutter))); padding: 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.menu-item { display: grid; gap: 1px; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; }
.menu-item:hover, .menu-item[aria-current] { background: var(--surface-2); }
.menu-label { font-weight: 620; line-height: 1.35; }
.menu-desc { color: var(--text-3); font-size: var(--fs-xs); line-height: 1.4; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; padding: 10px 12px 4px; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.menu-foot a { color: var(--text-2); text-decoration: none; }
.menu-foot a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 960px) {
  .util-nav { display: none; }
  .header-actions { margin-left: auto; }
  .topbar { min-height: 58px; }
  .menu-btn { width: 40px; padding: 0; }
  .menu-btn-text { display: none; }
}
@media (max-width: 480px) { .hide-narrow, .brand-sub { display: none; } }
/* Room for the "Become a Sponsor" tab between 961px and 1200px: the Submit button and the
   "for Business" brand suffix step back first (both stay in the menu and footer). */
@media (min-width: 961px) and (max-width: 1200px) { .header-actions .hide-narrow, .brand-sub { display: none; } .topbar { gap: 16px; } }
@media (min-width: 961px) and (max-width: 1060px) { .util-nav a[href="/new/"] { display: none; } }

.section-tabs { position: sticky; top: calc(var(--sh-h) + var(--tb-h) + var(--tbm-h)); z-index: 50; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tabs-inner { display: flex; gap: 6px; min-height: var(--header-h); }
.stab { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-md); white-space: nowrap; }
.stab:first-child { margin-left: -14px; }
.stab:hover { color: var(--text); }
.stab[aria-current] { color: var(--text); }
.stab[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.stab-count { display: inline-grid; place-items: center; min-width: 24px; height: 21px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: 0.75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.stab[aria-current] .stab-count { color: var(--text); border-color: var(--border-2); }
@media (max-width: 640px) {
  :root { --header-h: 54px; }
  .section-tabs-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .stab { flex-direction: column; justify-content: center; gap: 1px; padding: 6px 4px; text-align: center; white-space: normal; font-size: 0.875rem; line-height: 1.2; }
  .stab:first-child { margin-left: 0; }
  .stab-count { display: none; }
  .stab[aria-current]::after { left: 14%; right: 14%; }
}

/* ---------- Page heads & sections ---------- */
.page-head { padding: 44px 0 26px; max-width: 760px; }
.page-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: var(--fs-sm); }
.page-title { font-size: var(--fs-3xl); font-weight: 760; letter-spacing: -0.024em; line-height: 1.1; }
.page-lede { margin: 14px 0 0; font-size: var(--fs-lg); color: var(--text-2); line-height: 1.6; max-width: 66ch; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 16px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.page-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.band { padding: 36px 0; }
.band.tight { padding: 22px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.section-head > div { min-width: 0; }
@media (max-width: 480px) { .section-head { flex-wrap: wrap; } }
.section-title { font-size: var(--fs-xl); font-weight: 740; letter-spacing: -0.018em; }
.section-sub { margin: 6px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.section-link { flex: none; color: var(--accent); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.section-link:hover { text-decoration: underline; }
.crumbs { padding-top: 26px; font-size: var(--fs-sm); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-2); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text-3); display: inline-block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 560px) { .crumbs li:last-child:not(:first-child) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 44px; border-bottom: 1px solid var(--border); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.pager a, .pager [aria-current="page"] { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 650; }
.pager [aria-current="page"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero-title { font-size: calc(var(--fs-hero) * 0.82); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; max-width: 19ch; text-wrap: balance; }
/* System font: this paragraph is the mobile LCP element (PSI 2026-10-24). Lora stays on body copy. */
.hero-lede { margin: 22px 0 0; font-family: var(--font); font-size: 1.2rem; line-height: 1.6; color: var(--text-2); max-width: 54ch; }
.search-box { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-box:focus-within { border-color: var(--text-3); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box > .icon { color: var(--text-3); }
.search-box .input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 4px; outline: none; font-size: var(--fs-md); box-shadow: none; }
.search-box .input:focus { box-shadow: none; } /* the box shows focus, not the field inside it */
.search-box .btn { min-height: 42px; }
.hero-search { margin-top: 28px; max-width: 560px; }
.hero-personas { margin-top: 24px; }
.hero-personas-label { margin: 0 0 10px; color: var(--text-3); font-size: var(--fs-sm); }
.persona-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.persona-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px 8px 14px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; }
.persona-chip:hover { border-color: var(--text-3); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 0.72rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Receipt: the hero's one memorable element */
.receipt { position: relative; padding: 24px 24px 28px; border-radius: 14px 14px 4px 4px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); max-width: 400px; justify-self: end; width: 100%; transform: rotate(1.2deg); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--surface) 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--surface) 0) 0 0 / 14px 10px repeat-x; }
.rc-top { display: flex; justify-content: space-between; color: var(--text-3); font-size: var(--fs-xs); padding-bottom: 12px; border-bottom: 1px dashed var(--border-2); }
.rc-brand { color: var(--accent); font-weight: 650; letter-spacing: 0.02em; }
.rc-title { margin: 14px 0 12px; font-family: var(--font-display); font-size: 1.14rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.rc-title a { text-decoration: none; }
.rc-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); }
.rc-rows { margin: 0; padding: 10px 0; border-top: 1px dashed var(--border-2); border-bottom: 1px dashed var(--border-2); }
.rc-row { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: var(--fs-sm); }
.rc-row dt { color: var(--text-3); flex: none; }
.rc-row dd { margin: 0 0 0 auto; text-align: right; font-weight: 550; }
.rc-result { margin: 12px 0 14px; font-size: var(--fs-sm); color: var(--text-2); }
.rc-k { display: block; color: var(--text-3); font-size: var(--fs-xs); margin-bottom: 2px; }
.rc-foot { display: flex; align-items: center; gap: 10px; }
.rc-grade { font-size: var(--fs-sm); color: var(--text-2); }
.rc-link { margin-left: auto; color: var(--accent); font-weight: 600; font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .hero { padding: 36px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  /* On phones and tablets the goal chooser matters more than the example card */
  .receipt { display: none; }
}

/* ---------- "What do you want AI to do for you?" — the four goals ---------- */
.hero-goals { margin-top: 44px; }
.hero-goals-h { margin: 0 0 14px; font-size: var(--fs-lg); font-weight: 720; letter-spacing: -0.01em; }
.goal-tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.goal-tile { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; height: 100%; padding: 18px 18px 16px; border-radius: var(--r-lg); border: 1px solid var(--border-2); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color 0.15s ease; }
.goal-tile:hover { border-color: var(--text-3); }
.goal-tile:hover .goal-label { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.goal-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.goal-icon .icon { width: 21px; height: 21px; }
.goal-text { display: grid; gap: 4px; align-content: start; }
.goal-label { font-weight: 720; font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.01em; }
.goal-sub { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.goal-count { color: var(--accent); font-size: var(--fs-sm); font-weight: 650; }
@media (max-width: 900px) { .goal-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-goals { margin-top: 30px; } }
@media (max-width: 560px) {
  /* one compact row per goal: icon, name, count */
  .goal-tiles { grid-template-columns: 1fr; gap: 8px; }
  .goal-tile { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; gap: 12px; padding: 12px 14px; }
  .goal-icon { width: 36px; height: 36px; border-radius: 10px; }
  .goal-sub { display: none; }
  .goal-count { white-space: nowrap; }
}

/* ---------- Homepage: Browse ---------- */
.browse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.browse-h { margin: 0 0 10px; font-size: var(--fs-md); font-weight: 700; }
.browse-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; margin-top: 26px; }
.browse-links a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.browse-links a:hover { border-color: var(--border-2); }
.browse-links a:hover .bl-title { text-decoration: underline; text-decoration-color: var(--accent-line); }
.bl-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.bl-title { font-weight: 680; }
.bl-sub { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
@media (max-width: 760px) { .browse-grid { grid-template-columns: 1fr; } }

/* ---------- Grades, modes, tags, chips, categories ---------- */
.grade { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; letter-spacing: 0; color: var(--g); border: 1px solid color-mix(in srgb, var(--g) 40%, transparent); background: color-mix(in srgb, var(--g) 9%, var(--surface)); }
.grade-A { --g: var(--grade-a); }
.grade-B { --g: var(--grade-b); }
.grade-C { --g: var(--grade-c); }
.grade-D { --g: var(--grade-d); }
.grade-lg { width: 48px; height: 48px; border-radius: 12px; font-size: 1.35rem; }
.grade-sm { width: 26px; height: 26px; border-radius: 7px; font-size: 0.8rem; }
.grade-xs { width: 20px; height: 20px; border-radius: 6px; font-size: 0.68rem; }
.mode { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); background: transparent; border: 1px dashed var(--border-2); white-space: nowrap; }
.mode .icon { width: 14px; height: 14px; }
.mode-autopilot .icon { color: var(--grade-a); }
.mode-approve .icon { color: var(--accent); }
.mode-assist .icon { color: var(--grade-b); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid transparent; text-decoration: none; white-space: nowrap; line-height: 1.5; }
a.tag:hover { color: var(--text); border-color: var(--border-2); }
.tag-tool { color: var(--text); }
.tool-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tool, #9aa3b2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tool, #9aa3b2) 62%, #000); flex: none; }
.tags-label { font-size: var(--fs-xs); color: var(--text-3); margin-right: 2px; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.badge-featured { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.role-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.status-documented { color: var(--grade-a); border-color: color-mix(in srgb, var(--grade-a) 40%, transparent); background: color-mix(in srgb, var(--grade-a) 7%, var(--surface)); }
.status-pattern { color: var(--grade-b); border-color: color-mix(in srgb, var(--grade-b) 40%, transparent); background: color-mix(in srgb, var(--grade-b) 7%, var(--surface)); }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 550; white-space: nowrap; text-decoration: none; }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip[aria-pressed="true"] { color: var(--btn-text); background: var(--btn-bg); border-color: var(--btn-bg); }
.chip[aria-pressed="true"] .count { background: color-mix(in srgb, var(--btn-text) 18%, transparent); color: var(--btn-text); }
.cat { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.01em; }
.cat-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--text-3)); flex: none; }
.cat-support { --c: var(--cat-support); }
.cat-operations { --c: var(--cat-operations); }
.cat-sales { --c: var(--cat-sales); }
.cat-marketing { --c: var(--cat-marketing); }
.cat-content { --c: var(--cat-content); }
.cat-finance { --c: var(--cat-finance); }
.cat-product { --c: var(--cat-product); }

/* ---------- Filters ----------
   Search box on top; chip groups below. On phones (with JavaScript) the chips fold away behind a
   "Filter" button that shows how many are on. */
.filters { display: grid; gap: 12px; padding: 16px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.filters .search-box { background: var(--bg); box-shadow: none; }
.filters-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.filters-top .search-box { flex: 1; min-width: 0; }
.filter-toggle { display: none; flex: none; min-height: 50px; padding: 8px 14px; border-radius: 12px; }
.filter-toggle .icon { width: 18px; height: 18px; }
.filter-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.filter-panel { display: grid; gap: 12px; min-width: 0; }
.filter-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.filter-label { flex: none; width: 42px; padding-top: 10px; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; min-width: 0; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.filter-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filter-count { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; mask-image: none; } }
@media (max-width: 720px) {
  .filters { padding: 12px; gap: 10px; }
  .js-collapse .filter-toggle { display: inline-flex; }
  .js-collapse:not(.is-open) .filter-panel { display: none; }
  .js-collapse.is-open .filter-toggle { border-color: var(--text-3); background: var(--surface-2); }
  .filter-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .filter-label { width: auto; padding-top: 0; }
  .chips { width: 100%; }
}

/* ---------- List rows: use cases, setup guides, income automations ---------- */
.uc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.uc-row, .gd-row, .ia-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.gd-row { grid-template-columns: auto minmax(0, 1fr); }
.uc-row:hover, .gd-row:hover, .ia-row:hover { border-color: var(--border-2); }
.uc-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 8px; }
.uc-title { font-size: 1.19rem; font-weight: 720; line-height: 1.3; letter-spacing: -0.012em; }
.uc-title a { text-decoration: none; }
.uc-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.uc-who { margin: 6px 0 0; color: var(--text-3); font-size: var(--fs-sm); line-height: 1.45; }
.uc-outcome { margin: 8px 0 12px; color: var(--text-2); font-size: var(--fs-md); line-height: 1.6; max-width: 76ch; }
.uc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag-other { background: transparent; border-color: var(--border); color: var(--text-2); white-space: normal; max-width: 100%; }
.tag-more { background: transparent; color: var(--text-3); padding-left: 4px; padding-right: 4px; }
.kind-label { color: var(--accent); font-size: var(--fs-xs); font-weight: 650; }
/* Evidence in plain words: a colored dot and the label ("Strong evidence"). */
.ev { display: inline-flex; align-items: center; gap: 6px; color: var(--g); font-size: var(--fs-xs); font-weight: 650; white-space: nowrap; }
.ev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); flex: none; }
.ev-A { --g: var(--grade-a); }
.ev-B { --g: var(--grade-b); }
.ev-C { --g: var(--grade-c); }
.ev-D { --g: var(--grade-d); }
/* What it takes: cost, setup time, skill. */
.effort { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.4; }
.ef { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ef .icon { width: 15px; height: 15px; color: var(--text-3); }
.ef-cost { color: var(--text); font-weight: 600; }
.uc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.uc-source { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--text-3); font-size: var(--fs-xs); text-decoration: none; }
.uc-source:hover { color: var(--text-2); text-decoration: underline; }
.i-ext { width: 0.85em; height: 0.85em; opacity: 0.75; }
.reveal > summary { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 600; list-style: none; cursor: pointer; user-select: none; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary:hover { border-color: var(--text-3); }
.reveal > summary .icon { width: 16px; height: 16px; color: var(--text-3); }
.reveal > summary .i-chev { transition: transform 0.18s ease; }
.reveal[open] > summary { border-color: var(--accent-line); background: var(--accent-soft); }
.reveal[open] > summary .i-chev { transform: rotate(180deg); }
.reveal[open] { flex-basis: 100%; order: 2; }
.reveal-body { margin-top: 12px; }
.reveal-more { margin: 10px 0 0; font-size: var(--fs-sm); }
.reveal-more a { color: var(--accent); }
.is-compact .uc-actions { margin-top: 12px; }
@media (max-width: 560px) {
  .uc-row, .gd-row, .ia-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .uc-source { margin-left: 0; }
  /* keep "How it went" and "View prompt" side by side on a phone */
  .uc-actions { gap: 8px; }
  .reveal > summary { gap: 6px; padding: 6px 10px; font-size: 0.875rem; }
  .reveal > summary .icon { width: 15px; height: 15px; }
}
.legend-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 22px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.legend-note a { color: var(--text-2); }

/* ---------- Prompt card: a framed, easy-to-copy block ---------- */
.prompt-card { margin: 0; border: 1px solid var(--border-2); border-radius: 14px; background: var(--code-bg); overflow: hidden; box-shadow: var(--shadow-sm); }
.prompt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px 9px 9px 16px; border-bottom: 1px solid var(--border); background: var(--code-head); }
.prompt-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: var(--fs-sm); color: var(--text); }
.prompt-label .icon { color: var(--accent); }
.prompt-origin { color: var(--text-3); font-size: var(--fs-xs); }
.btn-copy { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 14px; border-radius: 9px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-text); font-size: var(--fs-sm); font-weight: 650; }
.btn-copy:hover { background: var(--btn-bg-hover); }
.btn-copy .icon { width: 16px; height: 16px; }
.btn-copy .i-check { display: none; }
.btn-copy.is-copied { background: var(--grade-a); border-color: var(--grade-a); color: #fff; }
:root[data-theme="dark"] .btn-copy.is-copied { color: #0d1a13; }
.btn-copy.is-copied .i-copy { display: none; }
.btn-copy.is-copied .i-check { display: block; }
.prompt-body { margin: 0; padding: 18px 20px 20px; max-height: 440px; overflow: auto; font: 0.9rem/1.75 var(--mono); color: var(--code-text); white-space: pre-wrap; word-break: break-word; tab-size: 2; }
.prompt-compact .prompt-body { max-height: 300px; font-size: 0.86rem; }
.prompt-note { margin: 12px 0 0; color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- Callouts ---------- */
.callout { position: relative; padding: 18px 20px 18px 24px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.prompt-card + .callout { margin-top: 16px; }
.callout::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--callout, var(--accent)); }
.callout-result { --callout: var(--accent); }
.callout-warn { --callout: var(--grade-c); background: color-mix(in srgb, var(--tint-amber) 55%, var(--surface)); border-color: var(--line-amber); }
.callout-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); }
.callout-result .callout-kicker { color: var(--accent); }
.callout-warn .callout-kicker .icon { color: var(--grade-c); }
.callout-lead { margin: 0; font-family: var(--font-read); font-size: 1.09rem; font-weight: 500; line-height: 1.65; color: var(--text); }
.callout-points { list-style: none; margin: 12px 0 0; display: grid; gap: 8px; }
.callout-points li { position: relative; padding-left: 18px; color: var(--text-2); font-family: var(--font-read); font-size: 1rem; line-height: 1.65; }
.callout-points li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 2px; background: var(--border-2); }
.callout-warn .callout-points li { color: var(--text); }
.callout-warn .callout-lead { font-weight: 500; }

/* ---------- Article ("post") pages ---------- */
.post { padding-bottom: 40px; }
.post-head { padding: 26px 0 8px; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.byline-text { display: grid; gap: 1px; min-width: 0; }
.byline-strong { font-weight: 650; font-size: var(--fs-sm); }
.byline-sub { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.45; }
.byline-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); flex: none; }
.byline-icon .icon { width: 22px; height: 22px; }
.post-title { font-size: var(--fs-3xl); font-weight: 780; letter-spacing: -0.026em; line-height: 1.12; }
.post-outcome { margin: 18px 0 0; font-family: var(--font-read); font-size: 1.24rem; line-height: 1.58; color: var(--text-2); font-weight: 400; }
.post-plain { margin: 18px 0 0; font-family: var(--font-read); font-size: 1.24rem; line-height: 1.58; color: var(--text); font-weight: 400; max-width: 66ch; }
.post-happened { margin: 10px 0 0; font-family: var(--font-read); font-size: var(--fs-md); line-height: 1.58; color: var(--text-2); max-width: 70ch; }
.happened-label { font-weight: 650; color: var(--text); }
.page-lede.is-plain { color: var(--text); }
.uc-outcome.is-plain, .gd-summary.is-plain, .tool-card-sub.is-plain { color: var(--text); }
.try-it { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line-amber); border-radius: 12px; background: var(--tint-amber); }
.try-it .post-h { margin-bottom: 8px; }
.try-it-lead { margin: 0 0 10px; color: var(--text-2); max-width: 68ch; }
.try-it-list { margin: 0; padding-left: 1.15em; color: var(--text); }
.try-it-list li + li { margin-top: 6px; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; }
.post-who { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 0; color: var(--text-2); line-height: 1.5; }
.post-who .icon { margin-top: 0.2em; color: var(--text-3); }
.byline-grade { color: var(--text-3); font-weight: 500; }
/* "What it takes" box at the top of each article */
.effort-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.effort-grid > div { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.effort-grid dt { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); font-size: var(--fs-xs); font-weight: 650; }
.effort-grid dt .icon { width: 15px; height: 15px; }
.effort-grid dd { display: grid; gap: 4px; margin: 6px 0 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.effort-grid dd strong { color: var(--text); font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
.effort-src { color: var(--text-3); font-size: var(--fs-xs); }
.effort-src a { color: var(--text-2); text-decoration-color: var(--accent-line); }
@media (max-width: 680px) {
  /* one box with three rows on phones */
  .effort-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
  .effort-grid > div { border: 0; border-radius: 0; background: none; }
  .effort-grid > div + div { border-top: 1px solid var(--border); }
}
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 18px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.post-section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--border); }
.post-head + .post-section { margin-top: 28px; }
.post-h { margin: 0 0 16px; font-size: 1.32rem; font-weight: 740; letter-spacing: -0.015em; }
.post-h3 { margin: 26px 0 12px; font-size: 1.04rem; font-weight: 700; color: var(--text-2); }
.prose p { margin: 0 0 1em; font-family: var(--font-read); font-size: var(--read-size); line-height: var(--read-lh); color: var(--text); max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }
.prose-p { color: var(--text-2); max-width: 68ch; line-height: 1.65; }
.post .prose-p { font-family: var(--font-read); font-size: 1.06rem; line-height: 1.7; color: var(--text); }
.lead-prose { margin-top: 8px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; font-family: var(--font-read); font-size: 1.06rem; line-height: 1.7; color: var(--text); max-width: var(--measure); }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.1em; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-family: var(--font); font-size: 0.8rem; font-weight: 700; }
.setup-list { list-style: none; display: grid; gap: 12px; }
.setup-list > li { position: relative; padding-left: 28px; font-family: var(--font-read); font-size: 1.06rem; line-height: 1.7; max-width: var(--measure); }
.setup-list > li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--accent); }
.fit-intro { margin: 0 0 14px; color: var(--text-2); font-size: var(--fs-sm); }
.fit-list { list-style: none; display: grid; gap: 10px; }
.fit-list li { display: grid; grid-template-columns: 10.75rem minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.fit-list .tag { justify-self: start; }
.fit-how { color: var(--text-2); line-height: 1.6; }
/* Fit with a plain label ("Busy restaurants: ..."), and the business type tag after it when there is one. */
.fit-list li.fit-labeled { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.fit-line { margin: 0; line-height: 1.6; }
.fit-who { color: var(--text); font-weight: 650; }
@media (max-width: 560px) { .fit-list li, .fit-list li.fit-labeled { grid-template-columns: 1fr; gap: 8px; } }
.mini-list { list-style: none; display: grid; gap: 8px; }
.mini-item a { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.mini-item a:hover { border-color: var(--border-2); }
.mini-text { display: grid; min-width: 0; }
.mini-title { font-weight: 620; line-height: 1.38; }
.mini-sub { color: var(--text-3); font-size: var(--fs-sm); }
.mini-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); flex: none; }
.mini-icon .icon { width: 15px; height: 15px; }
.post-source { margin-top: 36px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px dashed var(--border-2); }
.source-title { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); }
.source-list { list-style: none; display: grid; gap: 10px; }
.source-item { display: grid; gap: 2px; font-size: var(--fs-sm); }
.source-item a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration-color: var(--accent-line); }
.source-item.is-primary a { color: var(--accent); }
.source-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--text-3); font-size: var(--fs-xs); }
.source-note { color: var(--text-3); font-size: var(--fs-xs); }
.post-fine { margin: 16px 0 0; color: var(--text-3); font-size: var(--fs-sm); line-height: 1.6; }
.post-fine a { color: var(--text-2); }
.prose a, .post-fine a, .prose-p a { text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }

/* ---------- Home sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.issue-list { list-style: none; display: grid; gap: 10px; }
.issue-item { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.issue-kind { display: block; font-size: var(--fs-xs); font-weight: 650; color: var(--accent); margin-bottom: 4px; }
.issue-date { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.issue-title { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 680; text-decoration: none; line-height: 1.38; }
.issue-title:hover { text-decoration: underline; text-decoration-color: var(--accent-line); }
.issue-blurb { margin: 6px 0 0; color: var(--text-2); font-size: 0.97rem; line-height: 1.6; }
.issue-source-note { margin: 6px 0 0; }
.issue-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-sm); color: var(--text-2); }
.issue-note span { display: block; font-weight: 650; color: var(--text); margin-bottom: 2px; }
.issue-list.compact .issue-item { padding: 13px 16px; }
@media (max-width: 560px) {
  .issue-list.compact .issue-blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.issue-h { font-size: var(--fs-xl); font-weight: 750; }
.issue-h a { text-decoration: none; }
.issue-intro { margin: 18px 0; color: var(--text-2); font-family: var(--font-read); font-size: 1.08rem; line-height: 1.7; }
/* "Our sponsor" line: homepage New this week, and each issue */
.sponsor-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 16px 0 12px; padding: 8px 14px 8px 10px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--accent-soft); font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); }
.sponsor-note[hidden] { display: none; }
.section-head + .sponsor-note { margin-top: 0; }
.sponsor-note-mark { flex: none; width: 22px; height: 22px; border-radius: 6px; }
.sponsor-note-label { color: var(--accent); font-weight: 650; }
.sponsor-note a { color: var(--text); font-weight: 650; text-decoration-color: var(--accent-line); }
.sponsor-note-pitch { color: var(--text-2); }
.archive { margin-top: 18px; }
.archive-h { margin: 0 0 8px; font-weight: 700; font-size: var(--fs-sm); }
.archive ul { list-style: none; display: grid; gap: 6px; font-size: var(--fs-sm); }
.nl { padding: 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.nl-panel { position: sticky; top: calc(var(--sh-h) + var(--tb-h) + var(--tbm-h) + var(--header-h) + 18px); }
.nl-title { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 720; font-size: var(--fs-lg); }
.nl-title .icon { color: var(--accent); }
.nl-pitch { color: var(--text-2); font-size: var(--fs-sm); }
.nl-form { display: grid; gap: 10px; margin-top: 12px; }
.input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); }
.input:focus { outline: none; border-color: var(--text-3); box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder { color: var(--text-3); }
.nl-fine { margin: 10px 0 0; color: var(--text-3); font-size: var(--fs-xs); }
.nl-fine a { color: var(--text-2); }
.nl-inline .nl-form { grid-template-columns: 1fr auto; }
@media (max-width: 520px) { .nl-inline .nl-form { grid-template-columns: 1fr; } }
.feature-card { position: relative; display: grid; gap: 10px; padding: 30px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); text-decoration: none; overflow: hidden; box-shadow: var(--shadow-sm); }
.feature-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.feature-card:hover { border-color: var(--border-2); }
.feature-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: var(--fs-sm); font-weight: 650; }
.feature-title { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 780; letter-spacing: -0.022em; line-height: 1.15; max-width: 26ch; }
.feature-sub { color: var(--text-2); max-width: 62ch; font-family: var(--font-read); font-size: 1.06rem; line-height: 1.65; }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; color: var(--text-3); font-size: var(--fs-sm); }
.feature-btn { justify-self: start; margin-top: 6px; }
.feature-card.compact { padding: 24px; }
.feature-card.compact .feature-title { font-size: 1.35rem; }
.playbook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.tab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tab-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.tab-card:hover { border-color: var(--border-2); }
.tab-card > .icon { width: 26px; height: 26px; color: var(--accent); }
.tab-card-title { font-weight: 720; font-size: var(--fs-lg); }
.tab-card-sub { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 760px) { .tab-cards { grid-template-columns: 1fr; } }
.link-list { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.link-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 11px 15px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; }
.link-list a:hover { border-color: var(--border-2); }
.verdict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.verdict-card { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.verdict-title { font-size: 1.05rem; font-weight: 720; margin-bottom: 14px; }
.verdict-title a { text-decoration: none; }
.verdict-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); }
.verdict-picks { list-style: none; display: grid; gap: 12px; }
.verdict-picks li { display: flex; align-items: flex-start; gap: 10px; }
.pick-rank { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-weight: 750; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.verdict-picks li:first-child .pick-rank,
.pick:first-child .pick-rank { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.pick-rank.sm { width: 22px; height: 22px; font-size: 0.72rem; }
.pick-text { display: grid; min-width: 0; }
.pick-tool { font-weight: 650; text-decoration: none; }
.pick-tool:hover { text-decoration: underline; }
.pick-label { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.persona-card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.persona-card:hover { border-color: var(--border-2); }
.persona-name { font-weight: 720; font-size: 1.05rem; }
.persona-intro { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.persona-count { color: var(--accent); font-size: var(--fs-sm); font-weight: 600; }

/* ---------- Tools pages ---------- */
.jump-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.jump-chips .chip { white-space: normal; }
.verdict-section { padding: 32px 0; border-top: 1px solid var(--border); }
.verdict-h { font-size: var(--fs-2xl); font-weight: 760; letter-spacing: -0.02em; }
.verdict-q { margin: 6px 0 0; color: var(--text-2); font-size: var(--fs-lg); }
.verdict-intro { margin: 8px 0 0; color: var(--text-3); max-width: 70ch; }
.pick-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.pick:first-child { border-color: var(--border-2); }
.pick-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 1.1rem; font-weight: 720; }
.pick-h a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pick-h a:hover { text-decoration: underline; }
.pick-h .pick-label { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.pick-because { margin: 8px 0 0; color: var(--text-2); max-width: 75ch; line-height: 1.6; }
.pick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pick-links a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid transparent; font-size: var(--fs-sm); text-decoration: none; color: var(--text); }
.pick-links a:hover { border-color: var(--border-2); }
.pick-links .icon { width: 14px; height: 14px; color: var(--accent); }
.pick-none { margin: 10px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.pick-none a { color: var(--text-2); }
.tool-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.tool-card { display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px; height: 100%; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.tool-card:hover { border-color: var(--border-2); }
.tool-card-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; }
.tool-card-sub { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.tool-card-meta { color: var(--text-3); font-size: var(--fs-xs); margin-top: auto; }
.tool-card-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 2px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.4; }
.tool-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.tool-kind { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--border-2); }
.tool-facts { margin: 18px 0 0; }
.verdicts-intro { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); }
.verdicts-intro .jump-chips { margin-top: 16px; }
.verdicts-intro + .verdict-section { margin-top: 18px; }
.appear-list { list-style: none; display: grid; gap: 10px; }
.appear-list li { display: flex; gap: 10px; align-items: baseline; }
.appear-list a { font-weight: 650; }
.appear-label { display: block; color: var(--text-2); font-size: var(--fs-sm); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); line-height: 1.6; }
.check-list .icon { color: var(--accent); margin-top: 0.22em; }
.check-list.big li { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.check-list strong { font-weight: 650; }
.check-list li > span { min-width: 0; overflow-wrap: anywhere; }
.fact-list { list-style: none; display: grid; gap: 10px; }
.fact-list li { display: grid; gap: 2px; padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.fact-list a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: var(--fs-xs); }
.empty-state { margin-top: 16px; padding: 30px; border-radius: var(--r-lg); border: 1px dashed var(--border-2); text-align: center; }
.empty-state.inline { text-align: left; margin-top: 0; }
.empty-title { font-weight: 700; font-size: var(--fs-lg); margin-bottom: 6px; }
.empty-state p { color: var(--text-2); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

/* ---------- Playbooks and guide steps (a real sequence, so numbered) ---------- */
.target-box { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 26px 0 0; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.target-box dt { color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.target-box dd { margin: 2px 0 0; font-weight: 650; }
.target-note { flex-basis: 100%; margin: 0; color: var(--text-3); font-size: var(--fs-xs); }
.playbook-steps { list-style: none; display: grid; gap: 0; margin-top: 12px; }
.pb-step { padding: 28px 0; border-top: 1px solid var(--border); }
.pb-step:first-child { border-top: 0; padding-top: 8px; }
.pb-step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 1.18rem; font-weight: 740; }
.pb-num { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); font-weight: 750; font-size: 0.9rem; }
.pb-step .prompt-card { margin-top: 16px; }

/* ---------- Grok Bot section ---------- */
.grok-head { padding-bottom: 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-current="page"] { color: var(--btn-text); background: var(--btn-bg); }
.tab[aria-current="page"] .count { background: color-mix(in srgb, var(--btn-text) 18%, transparent); color: var(--btn-text); }
.role-group { margin-top: 30px; }
.role-h { font-size: var(--fs-lg); font-weight: 720; margin-bottom: 12px; color: var(--text); }
.gp-list { display: grid; gap: 12px; }
.gp-row { padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.gp-row:hover { border-color: var(--border-2); }
.gp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gp-origin { margin-left: auto; color: var(--text-3); font-size: var(--fs-xs); }
.gp-title { margin: 12px 0 6px; font-size: 1.15rem; font-weight: 720; line-height: 1.3; }
.gp-title a { text-decoration: none; }
.gp-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); }
.gp-summary { margin: 0 0 12px; color: var(--text-2); line-height: 1.6; }
.gp-row .reveal { margin-top: 12px; }
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.gb-card { display: grid; gap: 14px; align-content: space-between; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.gb-card:hover { border-color: var(--border-2); }
.gb-card-link { display: grid; gap: 10px; text-decoration: none; }
.gb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gb-card-top > .icon { width: 24px; height: 24px; color: var(--accent); }
.gb-card-title { font-weight: 740; font-size: 1.15rem; line-height: 1.3; }
.gb-card-sub { color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }
.prompt-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.prompt-tile { display: grid; gap: 8px; align-content: start; height: 100%; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.prompt-tile:hover { border-color: var(--border-2); }
.prompt-tile .role-pill { justify-self: start; }
.prompt-tile-title { font-weight: 700; line-height: 1.32; }
.prompt-tile-sub { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.faq { display: grid; gap: 8px; }
.faq-item { border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item .i-chev { color: var(--text-3); transition: transform 0.18s ease; }
.faq-item[open] .i-chev { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 17px 17px; color: var(--text-2); max-width: 72ch; line-height: 1.65; }

/* ---------- Sponsor block: the one dark, premium object on a light page ---------- */
.sponsor-block { padding: 56px 0 12px; }
.sp-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 44px; align-items: center;
  padding: 42px 48px; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(130% 160% at 0% 0%, #22262f 0%, #16181e 46%, #111318 100%);
  color: #eef0f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(17, 19, 24, 0.08), 0 34px 64px -40px rgba(17, 19, 24, 0.6);
}
.sp-card::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(216, 183, 108, 0.9), transparent); }
.sp-card::after { content: ""; position: absolute; z-index: -1; right: -140px; top: -170px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 183, 108, 0.16), transparent); pointer-events: none; }
.sp-left { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.sp-entry { display: grid; gap: 10px; min-width: 0; }
.sp-entry + .sp-entry { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.sp-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; min-width: 0; }
.sp-brand:hover .sp-name { text-decoration: underline; text-decoration-color: rgba(216, 183, 108, 0.6); text-decoration-thickness: 1px; }
.sp-mark { display: inline-grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 14px; background: linear-gradient(140deg, #f3dca0 0%, #d8b76c 50%, #a47c36 100%); color: #1c1608; font-family: var(--font-display); font-weight: 850; font-size: 1.2rem; letter-spacing: -0.02em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px -14px rgba(216, 183, 108, 0.7); }
.sp-mark-open { background: rgba(216, 183, 108, 0.06); color: #d8b76c; border: 1px dashed rgba(216, 183, 108, 0.65); box-shadow: none; }
.sp-mark-open .icon { width: 22px; height: 22px; }
.sp-logo { width: 54px; height: 54px; border-radius: 14px; object-fit: contain; background: rgba(255, 255, 255, 0.05); }
.sp-name { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem); letter-spacing: -0.01em; line-height: 1.12; overflow-wrap: anywhere; text-wrap: balance; }
.sp-left.is-open .sp-name { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); color: #f4f5f7; }
.sp-pitch { margin: 0; color: #b5bac4; font-size: 1rem; line-height: 1.55; max-width: 46ch; }
.sp-label { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 440px; margin: 4px 0 0; color: #c9a75e; font-size: 0.74rem; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase; }
.sp-label::before,
.sp-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(216, 183, 108, 0.5)); }
.sp-label::after { background: linear-gradient(90deg, rgba(216, 183, 108, 0.5), transparent); }
.sp-divider { align-self: stretch; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
.sp-right { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; row-gap: 20px; align-items: start; justify-items: start; min-width: 0; }
.sp-right > .sp-icon { grid-row: 1 / span 2; }
.sp-right > .btn { grid-column: 2; }
.sp-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(216, 183, 108, 0.55); background: radial-gradient(closest-side, rgba(216, 183, 108, 0.12), transparent); color: #d8b76c; }
.sp-icon .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.sp-icon-lg { width: 76px; height: 76px; }
.sp-icon-lg .icon { width: 36px; height: 36px; }
.sp-cta-copy { display: grid; gap: 8px; }
.sp-title { margin: 0; font-family: var(--font-read); font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: #fff; }
.sp-text { margin: 0; color: #b5bac4; line-height: 1.6; max-width: 40ch; }
.btn-sponsor { min-height: 50px; padding: 12px 22px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: linear-gradient(180deg, #edd59a 0%, #d8b76c 55%, #c29d50 100%); color: #1c1608; font-size: 0.98rem; font-weight: 680; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px -14px rgba(216, 183, 108, 0.75); }
.btn-sponsor:hover { filter: brightness(1.05); }
.btn-sponsor .icon { color: #5a4413; }
@media (max-width: 820px) {
  .sponsor-block { padding-top: 44px; }
  .sp-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; border-radius: 20px; }
  .sp-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
  .sp-right { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .sp-right > .sp-icon { grid-row: auto; }
  .sp-right > .btn { grid-column: 1 / -1; width: 100%; }
  .sp-icon { width: 52px; height: 52px; }
  .sp-icon .icon { width: 26px; height: 26px; }
  .sp-mark, .sp-logo { width: 46px; height: 46px; border-radius: 12px; font-size: 1rem; }
}

/* Sponsor bar: shown while a site-wide sponsor is booked. Light and quiet, with one gold hairline;
   the sponsor's logo brings its own colors. The whole bar links to the sponsor. */
.sponsor-block.is-active { padding: 44px 0 4px; }
.sp-bar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 28px; padding: 16px 22px 16px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color 0.15s ease; }
.sp-bar::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.sp-bar:hover { border-color: var(--border-2); }
.sp-bar + .sp-bar { margin-top: 12px; }
.sp-bar-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.sp-bar-wordmark { display: block; width: auto; height: 64px; border-radius: 10px; }
.sp-bar-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.sp-bar-badge { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(140deg, #f3dca0 0%, #d8b76c 50%, #a47c36 100%); color: #3b2c0c; font-weight: 800; }
.sp-bar-name { color: var(--text); font-size: 1.15rem; font-weight: 740; }
.sp-bar-copy { min-width: 0; }
.sp-bar-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.sp-bar-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.sp-bar-pitch { margin: 4px 0 0; color: var(--text); font-size: 1.06rem; font-weight: 600; line-height: 1.4; }
.sp-bar-cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.sp-bar-own { margin: 8px 4px 0; text-align: right; font-size: var(--fs-xs); }
.sp-bar-own a { color: var(--text-3); text-decoration: none; }
.sp-bar-own a:hover { color: var(--text-2); text-decoration: underline; }
@media (max-width: 680px) {
  .sp-bar { grid-template-columns: 1fr; justify-items: start; gap: 12px; padding: 16px; }
  .sp-bar-wordmark { height: 56px; }
  .sp-bar-cta { justify-self: stretch; }
}

/* Sponsor page */
.sp-hero { padding: 40px 0 14px; }
.sp-hero-card { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: start; gap: 14px; padding: 40px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08); background: radial-gradient(130% 160% at 0% 0%, #22262f 0%, #16181e 46%, #111318 100%); color: #eef0f3; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 34px 64px -40px rgba(17, 19, 24, 0.6); }
.sp-hero-card::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(216, 183, 108, 0.9), transparent); }
.sp-hero-card .page-title { color: #fff; font-family: var(--font-read); font-weight: 600; letter-spacing: -0.01em; }
.sp-hero-card .page-lede { color: #b5bac4; margin-top: 0; }
.price-row { display: grid; gap: 6px; margin: 6px 0 4px; }
.price { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; color: #edd59a; }
.price-unit { font-size: 1rem; font-weight: 600; color: #b5bac4; letter-spacing: 0; }
.price-note { margin: 0; color: #b5bac4; font-size: var(--fs-sm); }
.availability { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; color: #d3d7de; font-size: var(--fs-sm); }
.availability .icon { color: #d8b76c; }
.sp-hero-fine { margin: 0; color: #959cab; font-size: var(--fs-sm); max-width: 62ch; }
@media (max-width: 560px) {
  .sp-hero-card { padding: 30px 22px; border-radius: 20px; }
  .sp-hero-card .btn, .sp-card .btn-sponsor { width: 100%; white-space: normal; text-align: center; }
}
.sp-preview { margin-top: 4px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; }
.stat-row dt { color: var(--text-3); font-size: var(--fs-sm); }
.stat-row dd { margin: 2px 0 0; font-size: var(--fs-2xl); font-weight: 760; }
.how-steps { margin-bottom: 18px; }
.how-steps > li { font-family: var(--font); font-size: var(--fs-md); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.form > .btn { justify-self: start; min-width: 220px; }
.form .input { background: var(--bg); }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field-label { font-weight: 650; font-size: var(--fs-sm); }
.field-hint { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
textarea.input { resize: vertical; line-height: 1.55; }
.input.mono { font-family: var(--mono); font-size: 0.9rem; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.counter { justify-self: end; color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.counter.is-full { color: var(--grade-c); }
.segmented { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.segmented legend { margin-bottom: 8px; padding: 0; }
.segmented label, .check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--btn-bg); width: 18px; height: 18px; }
.thanks { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 72px 0 40px; }
.thanks-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.thanks-icon .icon { width: 30px; height: 30px; }
.thanks .search-box { width: 100%; max-width: 480px; }

/* ---------- About ---------- */
.grade-table { list-style: none; display: grid; gap: 10px; }
.grade-table li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 17px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); line-height: 1.6; }
.grade-table strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 44px; padding: 44px 0 34px; border-top: 1px solid var(--border); background: var(--bg-band); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-tag { margin: 12px 0 0; color: var(--text-2); font-size: var(--fs-sm); max-width: 36ch; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-h { margin: 0 0 4px; font-weight: 700; font-size: var(--fs-sm); }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-fine { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-xs); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- "Explain it simply" ---------- */
.explain .post-h { display: flex; align-items: center; gap: 10px; }
.explain .post-h .icon { width: 20px; height: 20px; color: var(--grade-b); flex: none; }
.explain-text { margin: 0; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-blue); background: var(--tint-blue); font-family: var(--font-read); font-size: var(--read-size); line-height: 1.72; color: var(--text); }
.prose + .explain, .page-head + .explain { margin-top: 8px; }
.explain-more { margin: 10px 0 0; font-size: var(--fs-sm); }
.explain-more a { color: var(--text-2); text-decoration-color: var(--line-blue); text-decoration-thickness: 2px; }
.explain-more a:hover { color: var(--text); }
/* The same box inside a section (How AI works): a label instead of a heading. */
.explain-inline, .prose + .explain-inline { margin-top: 24px; }
.explain-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; color: var(--text); }
.explain-h .icon { width: 18px; height: 18px; color: var(--grade-b); }

/* ---------- How AI works (/how-ai-works/) and the links to it ---------- */
/* Homepage: the "New to AI?" box under the hero search. The whole box is the link; brass tint, never dark like a sponsor unit. */
.hero-basics { display: flex; align-items: center; gap: 12px; max-width: 560px; margin-top: 14px; padding: 12px 16px 12px 12px; border-radius: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text); text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease; }
.hero-basics:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.hero-basics:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 14px; border-color: var(--accent); }
.hb-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent); }
.hb-icon .icon { width: 18px; height: 18px; }
.hb-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.hb-title { font-weight: 650; font-size: var(--fs-sm); line-height: 1.4; }
.hb-sub { color: var(--text-2); font-size: var(--fs-xs); line-height: 1.45; }
.hb-arrow { flex: none; width: 18px; height: 18px; color: var(--accent); transition: transform 0.15s ease; }
.hero-basics:hover .hb-title { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero-basics:hover .hb-arrow { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .hero-basics:hover .hb-arrow { transform: none; } }
/* End of /how-ai-works/: the "Start here" call to action. */
.hiw-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.hiw-cta-text { margin: 0; max-width: 46ch; font-family: var(--font-read); font-size: 1.06rem; line-height: 1.6; color: var(--text); }
.hiw-cta-text strong { display: block; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 740; letter-spacing: -0.01em; }
.hiw-cta-btn { flex: none; }
.hiw-cta-btn .icon { width: 18px; height: 18px; }
@media (max-width: 560px) { .hiw-cta { flex-direction: column; align-items: stretch; padding: 20px; } .hiw-cta-btn { width: 100%; } }
.xlink-box.start-basics { margin: 0 0 8px; }
@media (max-width: 560px) { .xlink-box.start-basics { grid-template-columns: minmax(0, 1fr); padding: 16px; } .xlink-box.start-basics > .icon { display: none; } }
.page-meta .icon { width: 15px; height: 15px; }
.page-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.hiw-head { padding-top: 22px; }
.hiw-toc { margin-top: 22px; }
.hiw-toc-h { margin: 0 0 10px; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.hiw-toc ul { list-style: none; }
.hiw-toc .persona-chip { min-height: 36px; padding: 6px 13px; }
.hiw-section { scroll-margin-top: calc(var(--sh-h) + var(--tb-h) + var(--tbm-h) + var(--header-h) + 12px); }
.hiw-gap { margin-top: 18px; }
.hiw-section .post-h3 { color: var(--text); }
.hiw-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.hiw-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.hiw-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.hiw-step { color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.hiw-card-title { font-size: 1.15rem; font-weight: 740; }
.hiw-card-title a { text-decoration: none; }
.hiw-card-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.hiw-card-def { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.hiw-card-ex { display: grid; gap: 2px; margin: 6px 0 0; padding-top: 10px; border-top: 1px dashed var(--border-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--text); }
.hiw-ex-label { color: var(--accent); font-size: var(--fs-xs); font-weight: 650; }
@media (max-width: 680px) { .hiw-cards { grid-template-columns: 1fr; } .hiw-card { grid-template-rows: none; } }
.hiw-table { margin-top: 0; }
.hiw-table a { color: var(--text); text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.page-hiw .callout-warn { margin-top: 26px; }
.hiw-glossary { margin: 0; }
.hiw-glossary .qa-a { margin: 0; }
.hiw-next { margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.hiw-next .bl-text { display: grid; gap: 2px; }
/* The diagram: You -> AI tool (model inside) -> connectors -> your apps. HTML and CSS, site colors only. */
.hiw-diagram { margin: 22px 0 0; padding: 22px 20px 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); }
.hiw-flow { --arrow: 26px; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--arrow); align-items: stretch; }
.hiw-node { position: relative; display: grid; align-content: start; justify-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface); text-align: center; box-shadow: var(--shadow-sm); }
.hiw-node + .hiw-node::before { content: ""; position: absolute; top: 50%; left: calc(-1 * var(--arrow) + 4px); width: calc(var(--arrow) - 12px); height: 2px; background: var(--accent); }
.hiw-node + .hiw-node::after { content: ""; position: absolute; top: calc(50% - 5px); left: -9px; border: 6px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
.hiw-node-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.hiw-node-icon .icon { width: 19px; height: 19px; }
.hiw-node-label { font-weight: 720; line-height: 1.3; }
.hiw-node-sub { color: var(--text-3); font-size: var(--fs-xs); line-height: 1.4; }
.hiw-node-tool { border-color: var(--accent-line); background: var(--accent-soft); }
.hiw-node-tool .hiw-node-icon, .hiw-node-conn .hiw-node-icon { background: var(--surface); color: var(--accent); }
.hiw-model { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--surface); color: var(--accent); font-size: var(--fs-xs); font-weight: 650; }
.hiw-model .icon { width: 14px; height: 14px; }
.hiw-node-conn { border-style: dashed; }
.hiw-apps { list-style: none; display: grid; gap: 6px; width: 100%; margin-top: 6px; }
.hiw-apps li { display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; text-align: left; }
.hiw-apps .icon { width: 14px; height: 14px; color: var(--text-3); }
.hiw-fig-cap { margin: 16px 0 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 640px) {
  .hiw-diagram { padding: 16px 14px 14px; }
  .hiw-flow { grid-template-columns: 1fr; --arrow: 24px; }
  .hiw-node { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 14px; text-align: left; }
  .hiw-node-icon { grid-row: span 2; margin: 0; }
  .hiw-model { grid-column: 2; margin-top: 6px; }
  .hiw-node-apps { grid-template-columns: 1fr; }
  .hiw-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw-node + .hiw-node::before { top: calc(-1 * var(--arrow) + 4px); left: 50%; width: 2px; height: calc(var(--arrow) - 12px); }
  .hiw-node + .hiw-node::after { top: -9px; left: calc(50% - 5px); border: 6px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
}

/* ---------- Notes at the top of an article ---------- */
.note-banner { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); line-height: 1.55; }
.note-banner p { margin: 0; font-size: 0.97rem; }
.note-banner .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.note-vendor { border-color: var(--line-blue); background: var(--tint-blue); }
.note-vendor .icon { color: var(--grade-b); }
.note-income { border-color: var(--line-amber); background: var(--tint-amber); }
.note-income .icon { color: var(--grade-c); }
.note-income p { font-weight: 600; color: var(--text); }
.list-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-amber); background: var(--tint-amber); color: var(--text); font-size: var(--fs-sm); max-width: 78ch; }
.list-note .icon { width: 18px; height: 18px; flex: none; color: var(--grade-c); margin-top: 1px; }

/* ---------- Setup Guides ---------- */
.gd-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gd-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.gd-icon .icon { width: 20px; height: 20px; }
.gd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.gd-steps { color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.gd-title { margin: 10px 0 6px; font-size: 1.19rem; font-weight: 720; line-height: 1.3; letter-spacing: -0.012em; }
.gd-title a { text-decoration: none; }
.gd-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.gd-summary { margin: 0 0 14px; color: var(--text-2); max-width: 76ch; line-height: 1.6; }
.level-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-size: var(--fs-xs); font-weight: 650; white-space: nowrap; }
.gd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gd-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.gd-card:hover { border-color: var(--border-2); }
.gd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gd-card-top > .icon { width: 24px; height: 24px; color: var(--accent); }
.gd-card-title { font-weight: 720; font-size: 1.1rem; line-height: 1.32; }
.gd-card-sub { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.gd-card-meta { color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
@media (max-width: 860px) { .gd-grid { grid-template-columns: 1fr; } }

/* ---------- Income Automations ---------- */
.ia-claim { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 14px; color: var(--text); font-size: 0.97rem; }
.claim-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; white-space: nowrap; border: 1px solid var(--border-2); color: var(--text-2); background: var(--surface-2); }
.claim-unverified { color: var(--grade-c); border-color: var(--line-amber); background: var(--tint-amber); }
.claim-verified { color: var(--grade-a); border-color: color-mix(in srgb, var(--grade-a) 40%, transparent); background: color-mix(in srgb, var(--grade-a) 8%, var(--surface)); }
.claim-box { display: grid; gap: 12px; margin: 28px 0 0; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--border-2); background: var(--surface); }
.claim-box > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 10px; align-items: baseline; }
.claim-box dt { color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.claim-box dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; color: var(--text); line-height: 1.55; }
@media (max-width: 560px) { .claim-box > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Similar tools (bottom of every use case) ---------- */
.similar-list { list-style: none; display: grid; gap: 10px; }
.similar-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 16px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.similar-name { grid-row: span 2; align-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; line-height: 1.4; }
a.similar-name:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.similar-name.is-plain { color: var(--text); }
.similar-note { margin: 0; color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }
.similar-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 4px 0 0; color: var(--text-3); font-size: var(--fs-xs); }
.similar-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); text-decoration-color: var(--accent-line); }
@media (max-width: 560px) {
  .similar-item { grid-template-columns: 1fr; }
  .similar-name { grid-row: auto; }
  .similar-links { grid-column: 1; }
}

/* ---------- "Want the setup steps?" and other cross-links ---------- */
.xlink-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-top: 30px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.xlink-box > .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.xlink-h { margin: 0 0 10px; font-weight: 720; }
.xlink .post-h { display: flex; align-items: center; gap: 10px; }
.xlink .post-h .icon { width: 20px; height: 20px; color: var(--accent); }

/* ---------- Category and section sponsor callouts ---------- */
.ctx-wrap { border-top: 0; padding-top: 0; }
.ctx-sponsor { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 32px 0 0; padding: 14px 16px 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); overflow: hidden; }
.ctx-sponsor:not(.is-open)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.ctx-wrap .ctx-sponsor { margin-top: 0; }
.ctx-sponsor.is-open { background: transparent; border-style: dashed; border-color: var(--border-2); }
.ctx-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(140deg, #f3dca0 0%, #d8b76c 50%, #a47c36 100%); color: #1c1608; font-weight: 850; font-size: 0.9rem; flex: none; }
.ctx-mark-open { background: transparent; color: var(--text-3); border: 1px solid var(--border-2); }
.ctx-mark .icon { width: 20px; height: 20px; }
.ctx-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: var(--surface-2); }
.ctx-body { display: grid; gap: 2px; min-width: 0; }
.ctx-body p { margin: 0; }
.ctx-kicker { color: var(--accent); font-size: var(--fs-xs); font-weight: 650; }
.ctx-sponsor.is-open .ctx-kicker { color: var(--text-3); }
.ctx-name { font-weight: 720; font-size: 1.02rem; color: inherit; text-decoration: none; }
a.ctx-name:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.ctx-sponsor.is-open .ctx-name { color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; }
.ctx-pitch { color: var(--text-2); font-size: var(--fs-sm); }
.ctx-sponsor.is-open .ctx-pitch { color: var(--text-3); font-size: var(--fs-xs); }
.ctx-label { align-self: start; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-3); font-size: 0.7rem; font-weight: 650; }
@media (max-width: 560px) { .ctx-sponsor { grid-template-columns: auto minmax(0, 1fr); } .ctx-label { grid-column: 2; justify-self: start; } }

/* Sponsor page: category section */
.sp-audience { margin: 0; color: #edd59a; font-family: var(--font-read); font-weight: 500; font-size: 1.2rem; line-height: 1.5; }
.ctx-explain { display: grid; gap: 16px; }
.ctx-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ctx-previews .ctx-sponsor { margin-top: 0; }
.preview-label { margin: 0 0 8px; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 760px) { .ctx-previews { grid-template-columns: 1fr; } }
.table-wrap { margin-top: 20px; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.ctx-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ctx-table th, .ctx-table td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.ctx-table thead th { color: var(--text-3); font-weight: 650; background: var(--surface-2); }
.ctx-table tbody th { font-weight: 650; }
.ctx-table tbody tr:last-child th, .ctx-table tbody tr:last-child td { border-bottom: 0; }
.ctx-table td { color: var(--text-2); }
.ctx-status { color: var(--grade-a); font-weight: 600; white-space: nowrap; }
.ctx-status.is-booked { color: var(--text-3); }

/* ---------- Whole-card links ----------
   Each card's main link stretches over the whole card (its ::after covers the card), so a tap
   anywhere on the card opens the entry. Tags, source links, "View prompt" and other controls
   inside the card sit above that layer and keep doing their own thing. */
.uc-row, .gd-row, .ia-row, .gp-row, .gb-card, .issue-item, .similar-item, .verdict-card, .pick, .xlink-box, .sr-item { position: relative; }
.uc-title a::after, .gd-title a::after, .gp-title a::after, .gb-card-link::after, .issue-title::after,
a.similar-name::after, a.ctx-name::after, .verdict-title a::after, .pick-h a::after, .rc-title a::after, .sr-title a::after,
.xlink-box .mini-list > li:only-child > a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rc-title a::after { inset: -2px -2px -10px; } /* the receipt is tilted and has a torn bottom edge; cover both */
.uc-tags a, .mode, .badge-featured, .uc-actions > .reveal, .uc-source, .gp-row .reveal, .similar-links a,
.verdict-picks a, .pick-links a, .pick-none a, .rc-link { position: relative; z-index: 2; }
.gb-card-link:hover .gb-card-title { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }

/* ---------- Newsletter signup: Kit's form at the top of the footer ----------
   Kit's script swaps its <script> tag for the form, which brings Kit's own <style> block and inline
   colors. Rules here are scoped to #newsletter, which outranks Kit's class-and-attribute selectors;
   !important appears only where Kit sets inline style attributes. */
.kit-signup, .nl-footer { scroll-margin-top: calc(var(--sh-h) + var(--tb-h) + var(--tbm-h) + 80px); }
.kit-signup:has(form), .nl-footer { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
#newsletter .formkit-form { max-width: 640px; margin: 0; padding: 0; border: 0; overflow: visible; color: var(--text); font-family: var(--font); background: transparent !important; border-radius: 0 !important; }
#newsletter .formkit-background { display: none; }
#newsletter [data-style="minimal"] { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; width: 100%; padding: 0; }
#newsletter [data-style="minimal"] > * { flex: 1 1 100%; min-width: 0; }
#newsletter .formkit-header { margin: 0; text-align: left; color: var(--text) !important; font-size: 1.3rem !important; font-weight: 720 !important; }
#newsletter .formkit-header h2 { margin: 0; font-family: var(--font-display); font-size: inherit; font-weight: inherit; line-height: 1.3; letter-spacing: -0.012em; }
#newsletter .formkit-subheader { margin: 6px 0 0; text-align: left; color: var(--text-2) !important; font-size: 1rem !important; line-height: 1.55; }
#newsletter .formkit-subheader p { margin: 0; }
#newsletter .formkit-fields { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
#newsletter .formkit-field { flex: 1 1 260px; min-width: 0; margin: 0; }
#newsletter .formkit-input { height: 46px; padding: 0 14px; background: var(--surface); transition: border-color 0.15s ease, box-shadow 0.15s ease; color: var(--text) !important; border: 1px solid var(--border-2) !important; border-radius: 10px !important; font: 400 1rem/1.2 var(--font) !important; }
#newsletter .formkit-input::placeholder { color: var(--text-3); opacity: 1; }
#newsletter .formkit-input:focus { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--text-3) !important; }
#newsletter .formkit-submit { flex: 0 0 auto; min-height: 46px; margin: 0; border: 0; transition: background-color 0.15s ease; color: var(--btn-text) !important; background-color: var(--btn-bg) !important; border-radius: 10px !important; font: 600 var(--fs-sm)/1.2 var(--font) !important; }
#newsletter .formkit-submit:hover { background-color: var(--btn-bg-hover) !important; }
#newsletter .formkit-submit > span { padding: 14px 22px; }
#newsletter .formkit-submit:hover > span, #newsletter .formkit-submit:focus > span { background-color: transparent; }
#newsletter .formkit-submit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#newsletter .formkit-spinner > div { background-color: var(--btn-text); }
#newsletter .formkit-guarantee { flex: 1 1 auto; width: auto; margin: 12px 0 0; text-align: left; color: var(--text-3) !important; font-size: var(--fs-xs) !important; }
#newsletter .formkit-powered-by-convertkit-container { flex: 0 0 auto; width: auto; margin: 12px 0 0; }
#newsletter .formkit-powered-by-convertkit { width: 104px; height: 22px; margin: 0; background-color: transparent; background-size: contain; background-position: right center; opacity: 0.5; transform: none; }
#newsletter .formkit-powered-by-convertkit:hover, #newsletter .formkit-powered-by-convertkit:focus { background-color: transparent; opacity: 0.85; transform: none; }
[data-theme="dark"] #newsletter .formkit-powered-by-convertkit { filter: invert(1); }
#newsletter .formkit-alert { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; text-align: left; font-size: var(--fs-sm); line-height: 1.5; }
#newsletter .formkit-alert:empty { display: none; }
#newsletter .formkit-alert-error { color: var(--grade-d); background: color-mix(in srgb, var(--grade-d) 8%, var(--surface)); border-color: color-mix(in srgb, var(--grade-d) 35%, var(--surface)); }
#newsletter .formkit-alert-success { color: var(--grade-a); background: color-mix(in srgb, var(--grade-a) 8%, var(--surface)); border-color: color-mix(in srgb, var(--grade-a) 35%, var(--surface)); }
@media (max-width: 520px) { #newsletter .formkit-submit { flex: 1 1 100%; } }
/* Without JavaScript: a plain form that posts the address straight to Kit */
.kit-noscript { max-width: 640px; }
.kit-ns-title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 720; font-size: 1.3rem; line-height: 1.3; }
.kit-ns-row { display: flex; flex-wrap: wrap; gap: 10px; }
.kit-ns-row .input { flex: 1 1 260px; width: auto; }
@media (max-width: 520px) { .kit-ns-row .btn { flex: 1 1 100%; } }
.nl-footer .nl { max-width: 640px; padding: 0; border: 0; background: none; box-shadow: none; }
/* "Get it by email" links that jump down to the signup */
.nl-jump { margin: 16px 0 0; font-size: var(--fs-sm); }
.nl-jump a { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; text-decoration: none; }
.nl-jump a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); }
.nl-jump .icon { width: 16px; height: 16px; }

/* ---------- Start here and goal pages ---------- */
.start-search { max-width: 560px; }
.goal-section + .goal-section { border-top: 1px solid var(--border); }
.goal-others { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.goal-others .browse-links { margin-top: 14px; }

/* ---------- Site search (/search/) ---------- */
.search-main { margin: 0 0 12px; }
.search-kinds { margin: 2px 0 4px; }
.search-status { min-height: 1.5em; margin: 10px 0 16px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.search-status a { color: var(--accent); font-weight: 650; }
.search-results { display: grid; gap: 12px; }
.sr-item { padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.sr-item:hover { border-color: var(--border-2); }
.sr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 6px; }
.sr-title { font-size: 1.12rem; font-weight: 720; line-height: 1.3; letter-spacing: -0.01em; }
.sr-title a { text-decoration: none; }
.sr-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.sr-sum { margin: 6px 0 10px; color: var(--text-2); line-height: 1.55; max-width: 76ch; }
.sr-item .effort { margin-bottom: 8px; }
.sr-tools { margin: 0; color: var(--text-3); font-size: var(--fs-xs); }
.search-more-wrap { margin: 18px 0 0; text-align: center; }
.search-help { margin-top: 6px; }
.search-popular { margin-top: 12px; }
.search-help .goal-tiles { margin-top: 14px; }

/* ---------- Use Cases hub and department pages (v1.8) ---------- */
.dept-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .dept-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dept-tiles { grid-template-columns: 1fr; } }
.browse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .browse-grid { grid-template-columns: 1fr; } }

.effort-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.effort-legend > div { padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.effort-legend dt { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; }
.effort-legend dt .icon { color: var(--accent); }
.effort-legend dd { margin: 0; }
.effort-legend ul { list-style: none; display: grid; gap: 4px; margin: 0 0 10px; }
.effort-legend li, .effort-legend li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; font-size: var(--fs-sm); }
.effort-legend li a { flex: 1; margin: 0 -8px; padding: 0 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.effort-legend li a span:first-child { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.effort-legend li a:hover { background: var(--surface-2); }
.effort-legend p { margin: 0; color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5; }
@media (max-width: 760px) { .effort-legend { grid-template-columns: 1fr; } }

.signup-band { display: flex; align-items: center; gap: 14px 18px; margin: 28px 0 8px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.signup-band .sb-icon { flex: none; width: 22px; height: 22px; color: var(--accent); }
.sb-text { display: grid; gap: 2px; flex: 1; min-width: 0; margin: 0; }
.sb-text strong { font-weight: 720; line-height: 1.35; }
.sb-text span { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.sb-btn { flex: none; }
@media (max-width: 600px) {
  .signup-band { flex-wrap: wrap; }
  .signup-band .sb-icon { display: none; }
  .sb-btn { width: 100%; justify-content: center; }
}

.results-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.results-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.results-table th, .results-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); line-height: 1.5; }
.results-table thead th { border-top: 0; color: var(--text-2); font-size: var(--fs-xs); font-weight: 650; background: var(--surface-2); }
.results-table tbody th { font-weight: 650; min-width: 14em; }
.results-table tbody th a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.results-table td:last-child { white-space: nowrap; }
.rt-kind { display: block; color: var(--text-3); font-size: var(--fs-xs); font-weight: 650; }
@media (max-width: 640px) {
  /* one stacked block per row: use case, result, label */
  .results-wrap { overflow: visible; }
  .results-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results-table, .results-table tbody, .results-table tr, .results-table th, .results-table td { display: block; }
  .results-table tr { padding: 12px 14px; border-top: 1px solid var(--border); }
  .results-table tbody tr:first-child { border-top: 0; }
  .results-table th, .results-table td { padding: 0; border: 0; min-width: 0; }
  .results-table td { margin-top: 6px; }
  .results-table td:last-child { white-space: normal; }
}

.qa-list { display: grid; gap: 18px; max-width: 76ch; }
.qa-q { margin: 0 0 4px; font-size: var(--fs-md); font-weight: 700; line-height: 1.35; }
.qa-a { margin: 0; color: var(--text-2); line-height: 1.6; }
.how-check { max-width: 76ch; }
.dept-links { align-items: center; margin: 0 0 16px; }
.dept-links-h { color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; margin-right: 4px; }

.check-callout { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.check-callout-h { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 700; line-height: 1.35; }
.check-callout > p { margin: 0; max-width: 76ch; color: var(--text-2); line-height: 1.6; }
.check-callout .legend-note { margin-top: 12px; }

/* ---------- Sponsor placements (v2.0) ---------- */
/* Top banner: Takeover or Partner. Dark strip in the sponsor's own palette, one link, one quiet
   animation cycle (glow, hairline, a 1.2% scale) that never moves layout. */
.top-banner { --tb-bg: #040b17; --tb-ink: #f4ead2; --tb-gold: #e2bd6b; position: sticky; top: var(--sh-h); z-index: 55; overflow: hidden; background: var(--tb-bg); border-bottom: 1px solid rgba(199, 154, 62, 0.45); }
.tb { position: relative; display: block; color: var(--tb-ink); text-decoration: none; }
.tb::before { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(226, 189, 107, 0.55), inset 0 -22px 44px -26px rgba(226, 189, 107, 0.6); opacity: 0; animation: tb-glow 4s ease-in-out 0.6s 1; }
.tb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--tb-gold) 30%, var(--tb-gold) 70%, transparent); opacity: 0.35; animation: tb-line 4s ease-in-out 0.6s 1; }
.tb-in { display: flex; align-items: center; gap: 14px; min-height: 56px; transform-origin: 50% 50%; animation: tb-scale 4s ease-in-out 0.6s 1; }
@keyframes tb-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes tb-line { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes tb-scale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
.tb-label { flex: none; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(226, 189, 107, 0.55); color: var(--tb-gold); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.02em; line-height: 1.4; }
.tb-wordmark { flex: none; display: block; width: auto; height: 26px; }
.tb-logo { flex: none; border-radius: 6px; }
.tb-name { flex: none; font-weight: 750; }
.tb-pitch { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.95rem; font-weight: 550; letter-spacing: 0.005em; }
.tb-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(226, 189, 107, 0.6); color: var(--tb-gold); font-size: var(--fs-sm); font-weight: 650; transition: background-color 0.15s ease; }
.tb-cta .icon { width: 1em; height: 1em; }
.tb:hover .tb-cta { background: rgba(226, 189, 107, 0.14); }
.tb:focus-visible { outline: 2px solid var(--tb-gold); outline-offset: -4px; }
@media (max-width: 640px) {
  .tb-in { min-height: 50px; gap: 10px; }
  .tb-wordmark { height: 22px; }
  .tb-in { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
  .tb-pitch { order: 3; flex: 1 0 100%; font-size: 0.86rem; line-height: 1.35; white-space: normal; overflow: visible; text-overflow: clip; }
  .tb-cta { padding: 7px; }
  .tb-cta-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) { .tb::before, .tb::after, .tb-in { animation: none; } }

/* v2.6.0: the top banner stays in view (sticky, desktop and phone), the main section tabs stick right
   under it, and anchors land below both (scroll-padding-top). --tb-h is the banner's height: app.js
   measures it; these values cover the first paint and browsers without ResizeObserver. --tbm-h is the
   "Your business here" line when it sticks too (wide screens). With no banner both are 0, so the page
   behaves exactly as before. */
:root { --tb-h: 57px; --tbm-h: 26px; }
:root:not(:has(.top-banner:not([hidden]))) { --tb-h: 0px; --tbm-h: 0px; --sh-h: 0px; }
/* v2.6.1: the header row (logo and menu) sticks too, at the very top, above the banner; the banner, the
   "Your business here" line and the tabs move down by --sh-h, the header's height. app.js measures it
   (ResizeObserver; 0 while the banner is hidden); 64px / 58px (960px and below) cover the first paint.
   z-index 60 (already set) keeps the header and its menu panel above the banner (55). With no banner the
   header is not sticky and --sh-h is 0, so the page behaves exactly as before. */
:root { --sh-h: 64px; }
@media (max-width: 960px) { :root { --sh-h: 58px; } }
:root:has(.top-banner:not([hidden])) .site-header { position: sticky; top: 0; }
/* A pinned header can't scroll its open menu into view with the page, so on short screens the menu
   panel scrolls inside itself instead (only when it is taller than the space under the header). */
:root:has(.top-banner:not([hidden])) .menu-panel { max-height: calc(100vh - var(--sh-h) - 8px); max-height: calc(100dvh - var(--sh-h) - 8px); overflow-y: auto; overscroll-behavior: contain; }
.tb-more { position: sticky; top: calc(var(--sh-h) + var(--tb-h)); z-index: 54; margin: 0; background: var(--bg); color: var(--text-3); font-size: var(--fs-xs); line-height: 1.4; }
.top-banner[hidden] + .tb-more { display: none; }
.tb-more-in { display: flex; justify-content: flex-end; align-items: center; min-height: 26px; }
.tb-more-link { display: inline-flex; align-items: center; min-height: 24px; margin-right: -6px; padding-inline: 6px; color: var(--text-2); text-decoration-color: var(--accent-line); }
.tb-more-link:hover { color: var(--text); }
.tb-more-link:focus-visible { outline-offset: -2px; }
@media (max-width: 640px) {
  :root { --tb-h: 71px; --tbm-h: 0px; }
  .tb-more { position: static; }
  .tb-more-in, .tb-more-link { min-height: 44px; }
}

/* Homepage top spot: the banner sponsor, once, under the hero. */
.home-top-wrap { margin-block: 28px 4px; }
.home-top-wrap[hidden] { display: none; }
.home-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; padding: 16px 20px; border-radius: var(--r-lg); border: 1px solid rgba(199, 154, 62, 0.45); background: #040b17; color: #f4ead2; text-decoration: none; }
.ht-label { padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(226, 189, 107, 0.55); color: #e2bd6b; font-size: 0.72rem; font-weight: 650; }
.ht-wordmark { display: block; width: auto; height: 30px; }
.ht-pitch { font-weight: 550; }
.ht-cta { display: inline-flex; align-items: center; gap: 6px; color: #e2bd6b; font-weight: 650; font-size: var(--fs-sm); }
.home-top:hover .ht-cta { text-decoration: underline; text-underline-offset: 3px; }
.home-top:focus-visible { outline: 2px solid #e2bd6b; outline-offset: 2px; }
@media (max-width: 640px) { .home-top { grid-template-columns: auto minmax(0, 1fr); } .ht-pitch, .ht-cta { grid-column: 1 / -1; } }

/* Bottom bar: the house message when no Starter spot is sold (static); the sponsor ticker below otherwise. */
.sbar { margin-top: 48px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.sbar-in { display: flex; align-items: center; gap: 12px 20px; padding-block: 12px; }
.sbar-slots { flex: 1; min-width: 0; }
.sbar-spot { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--text); text-decoration: none; }
.sbar-logo, .sbar-badge, .sbar-house-mark { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.sbar-badge, .sbar-house-mark { display: inline-grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-weight: 750; font-size: 0.85rem; }
.sbar-house-mark { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.sbar-text { display: grid; gap: 1px; min-width: 0; }
.sbar-name { font-weight: 700; }
.sbar-pitch { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); font-size: var(--fs-sm); }
.sbar-label { flex: none; margin-left: auto; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.sbar-spot:hover .sbar-name { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.sbar-own { flex: none; margin: 0; font-size: var(--fs-xs); }
.sbar-own a { color: var(--text-3); }
@media (max-width: 640px) { .sbar-own { display: none; } }

/* Sponsor ticker (v2.4.0, 1-5 Starters): house-bar tokens, one transform loop. The list is drawn twice and moved -50%;
   each list is >= the view (100cqw), so no gap. app.js sets --sbar-dur (~50 px/s). Pauses: focus, touch-hold, off-screen, hover. */
.sbar-tk { gap: 14px; padding-block: 6px; }
.sbar-tk-label { flex: none; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.sbar-tk-view { flex: 1; min-width: 0; overflow: hidden; container-type: inline-size; }
.sbar-tk-track { display: flex; width: max-content; animation: sbar-scroll var(--sbar-dur, 36s) linear infinite; }
.sbar-tk[data-n="2"] { --sbar-dur: 24s; }
.sbar-tk[data-n="3"] { --sbar-dur: 28s; }
.sbar-tk-list { display: flex; flex: none; min-width: 100cqw; margin: 0; padding: 0; list-style: none; }
.sbar-tk-list > li { display: flex; flex: none; padding-inline: 6px; border-left: 1px solid var(--border); }
.sbar-tk-item { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 8px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; white-space: nowrap; }
.sbar-tk-item:focus-visible { outline-offset: -2px; }
.sbar-tk-logo, .sbar-tk-badge { flex: none; width: 24px; height: 24px; border-radius: 6px; object-fit: contain; filter: saturate(0.6); }
.sbar-tk-badge { display: inline-grid; place-items: center; background: var(--surface-2); font-weight: 750; font-size: 0.6875rem; }
.sbar-tk-name { color: var(--text); font-weight: 700; }
.sbar-tk-cta { font-weight: 600; }
.sbar-tk-plus { color: var(--accent); font-weight: 750; }
.sbar-tk-item:hover .sbar-tk-name, .sbar-tk-cta:hover > :last-child { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
@keyframes sbar-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sbar-tk:focus-within .sbar-tk-track, .sbar-tk.is-held .sbar-tk-track, .sbar-tk.is-off .sbar-tk-track { animation-play-state: paused; }
.sbar-tk-view:has(:focus-visible) .sbar-tk-track { animation: none; }
@media (hover: hover) { .sbar-tk:hover .sbar-tk-track { animation-play-state: paused; } }
@media (max-width: 640px) { .sbar-tk { gap: 10px; padding-block: 1px; } .sbar-tk-list > li { padding-inline: 4px; } }
/* Reduced motion: a static row, scrolled by hand, without the copy. */
@media (prefers-reduced-motion: reduce) {
  .sbar-tk-track { animation: none; }
  .sbar-tk-view { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
  .sbar-tk-list { min-width: 0; }
  .sbar-tk-list[aria-hidden] { display: none; }
  .sbar-tk-list > li { scroll-snap-align: start; }
}

.issue-feature { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: var(--fs-sm); }
.issue-feature p { margin: 0; }
.if-label { color: var(--text-3); font-size: var(--fs-xs); font-weight: 650; }

/* /sponsor/ */
.sp-head .page-title { max-width: 20ch; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-top: 28px; }
.tier { display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: var(--r-lg); border: 1px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow-sm); }
.tier-feature { border: 2px solid var(--text); box-shadow: var(--shadow); }
.tier-flag { align-self: flex-start; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: var(--fs-xs); font-weight: 700; }
.tier-name { margin: 0; font-size: 1.05rem; font-weight: 750; }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 6px; }
.tier-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tier-per { color: var(--text-2); font-weight: 600; }
.tier-note { margin: 0 0 10px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.tier-avail { margin: 0 0 10px; font-size: var(--fs-sm); }
.spots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 2px 0 14px; }
.spots span { height: 6px; border-radius: 3px; background: var(--accent-line); }
.spots span.is-taken { background: var(--text-3); }
.tier-list { list-style: none; display: grid; margin: 4px 0 18px; }
.tier-list li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); line-height: 1.5; }
.tier-list li:first-child { border-top: 0; }
.tier-list .icon { flex: none; margin-top: 0.2em; color: var(--accent); }
.tier-list strong { font-weight: 700; }
.tier-foot { display: grid; gap: 10px; margin-top: auto; }
.tier-btn { justify-content: center; width: 100%; min-height: 46px; }
.tier-credit { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); font-size: var(--fs-xs); line-height: 1.5; }
.tier-credit .icon { flex: none; margin-top: 0.15em; color: var(--accent); }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.addon { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: var(--r-lg); border: 1px dashed var(--border-2); background: var(--surface); }
.addon p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.addon-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.addon-name { margin: 0; font-size: 1.05rem; font-weight: 750; }
.addon-price { color: var(--text) !important; font-size: 1.15rem !important; font-weight: 750; }
.addon-price span { color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.addon-flag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent) !important; font-size: var(--fs-xs) !important; font-weight: 700; }
.addon-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; }
.addon-foot .tier-btn { width: auto; }
.link-quiet { color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.trust { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.trust li { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); font-size: var(--fs-sm); line-height: 1.5; }
.trust span { color: var(--text-2); }
.sp-fine { margin: 16px 0 0; color: var(--text-3); font-size: var(--fs-xs); text-align: center; }
.sp-fine a { color: var(--text-2); }
.partner-now { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.pn-link img { display: block; width: auto; height: 52px; border-radius: 8px; }
.pn-term { margin: 0; font-weight: 700; }
.pn-sub { margin: 4px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.preview-label { margin: 14px 0 8px; color: var(--text-3); font-size: var(--fs-xs); font-weight: 650; }
.sp-preview-banner { border-radius: var(--r); overflow: hidden; }
.sp-preview-banner .tb::before, .sp-preview-banner .tb::after, .sp-preview-banner .tb-in { animation: none; }
.sp-preview-banner .tb { background: #040b17; color: #f4ead2; --tb-gold: #e2bd6b; }
.sp-preview-banner .tb-in { width: auto; padding-inline: 16px; }
.sp-preview-banner .tb-name { color: #f4ead2; }
.sp-preview:not(.sp-preview-banner) { padding: 6px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.ctx-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.compare-table td { color: var(--text); }
.compare-table .dash { color: var(--text-3); }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } .tier-feature { order: -1; } }
@media (max-width: 760px) { .addons, .trust { grid-template-columns: 1fr; } }

/* "Best for" list pages: the sponsored block is quieter than the editorial picks. Desktop: above
   the picks. Phones: after pick #1, so the first screen leads with editorial content. */
.best-list { display: flex; flex-direction: column; }
.featured-block { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: var(--fs-xs); }
.fb-label { margin: 0 0 6px; color: var(--text-3); font-weight: 650; }
.featured-block ul { list-style: none; display: grid; gap: 6px; }
.featured-block li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; line-height: 1.45; }
.featured-block img { width: 24px; height: 24px; border-radius: 6px; }
.featured-block a { font-weight: 650; color: var(--text); }
.featured-block span { color: var(--text-2); }
@media (min-width: 641px) { .featured-block { order: -1; } }
/* v2.6.0: the open Featured Tool spot (no sponsored entry booked) sits exactly where the block would. */
.best-list .fb-open { margin: 0 0 18px; }
@media (min-width: 641px) { .fb-open { order: -1; } }
@media (max-width: 640px) { .best-list.has-block .bl-first .pick-list { margin-bottom: 14px; } }

/* /sponsors/ and sponsored spotlights */
.sponsor-list { list-style: none; display: grid; gap: 12px; }
.sponsor-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px 18px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.sr-brand img { display: block; width: auto; height: 44px; border-radius: 8px; }
.sr-body p { margin: 0 0 4px; }
.sr-kind { font-weight: 700; }
.sr-term, .sr-runs { color: var(--text-2); font-size: var(--fs-sm); }
.sr-label { color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
@media (max-width: 640px) { .sponsor-row { grid-template-columns: 1fr; } }
.spot-label { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 700; }
.spot-brand { display: block; margin: 8px 0 18px; }
.spot-brand img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: var(--r); }
.spot-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; margin: 0 0 8px; }
.spot-facts div { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.spot-facts dt { color: var(--text-3); font-size: var(--fs-xs); font-weight: 650; }
.spot-facts dd { margin: 2px 0 0; font-weight: 650; }

/* Featured videos and sponsor clips: a thumbnail facade until the reader clicks. */
.vf { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: #0e1016; }
.vf-btn { position: absolute; inset: 0; display: block; }
.vf-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: rgba(15, 16, 20, 0.82); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); transition: background-color 0.15s ease; }
.vf-play::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.vf-btn:hover .vf-play, .vf-btn:focus-visible .vf-play { background: #c4302b; }
.vf-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.vf-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vids { margin-top: 8px; }
.vids-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.vslot { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.vs-label { margin: 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: 650; }
.vs-brand { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r); background: #040b17; }
.vs-brand img { width: 70%; height: auto; }
.vs-title { margin: 2px 0 0; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.vs-meta { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.vs-actions { margin: 0; }
.vs-watch { font-weight: 650; color: var(--accent); }
.vs-drawer summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.vs-drawer[open] summary .i-chev { transform: rotate(180deg); }
.vs-drawer .prompt-card { margin-top: 8px; }
.vslot-house { border-style: dashed; border-color: var(--border-2); background: transparent; }
.vs-house { display: grid; gap: 8px; align-content: center; justify-items: start; min-height: 100%; padding: 18px 6px; color: var(--text); text-decoration: none; }
.vs-house-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.vs-house-title { font-weight: 700; }
.vs-house-sub { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.vs-house:hover .vs-house-title { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
@media (max-width: 860px) { .vids-grid { grid-template-columns: 1fr; max-width: 520px; } }
.home-top-wrap:has(.ht-clip) { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: stretch; }
@media (max-width: 760px) { .home-top-wrap:has(.ht-clip) { grid-template-columns: 1fr; } }
.spot-clip { margin: 8px 0 18px; }
.pn-label { color: var(--text-3); font-size: var(--fs-xs); font-weight: 650; }
.wf-inventory { margin-top: 14px; }
.wf-inventory summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 650; }
.wf-inventory[open] summary .i-chev { transform: rotate(180deg); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-text); font-weight: 650; font-size: var(--fs-sm); box-shadow: var(--shadow); transition: opacity 0.18s ease, transform 0.18s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .receipt { transform: none; }
}
/* ---------- Phase 4: in-place signup (lead band, copy card) and "book this slot" lines ----------
   Same tokens and parts as the signup band, the toast and the inputs; nothing new to learn. */
.lead-form { display: flex; gap: 8px; flex: 0 1 400px; min-width: 0; margin: 0; }
.lead-form .input { flex: 1 1 auto; min-width: 0; }
.lead-form .btn { flex: none; }
.lead-band { flex-wrap: wrap; }
.lead-band .sb-text { flex: 1 1 260px; }
.lead-band .lead-done { flex: 0 1 400px; }
.lead-band .lead-err { padding-left: 40px; }
.lead-done, .lead-err { flex: 1 1 100%; margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.lead-done:focus { outline: none; }
.lead-done strong { font-weight: 700; }
.lead-pack { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--accent); font-weight: 650; }
.lead-pack .icon { width: 16px; height: 16px; }
.lead-err { color: var(--grade-d); font-weight: 600; }
@media (max-width: 600px) { .lead-form, .lead-band .lead-done { flex-basis: 100%; } .lead-band .lead-err { padding-left: 0; } }
@media (max-width: 420px) { .lead-form { flex-direction: column; } .lead-form .btn { justify-content: center; } }
.toast-capture { position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 89; width: min(380px, calc(100vw - 32px)); display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity 0.18s ease, transform 0.18s ease; }
.toast-capture.at-top { top: calc(var(--sh-h) + var(--tb-h) + var(--tbm-h) + var(--header-h) + 12px); bottom: auto; transform: translateY(-8px); }
.toast-capture.is-visible { opacity: 1; transform: none; }
.tc-close { position: absolute; top: 6px; right: 6px; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); }
.tc-close:hover { background: var(--surface-2); color: var(--text); }
.tc-close .icon { width: 18px; height: 18px; }
.tc-text { display: grid; gap: 2px; margin: 0; padding-right: 36px; }
.tc-text strong { font-weight: 720; line-height: 1.35; }
.tc-text span { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.toast-capture .lead-form { flex: none; }
@media (max-width: 600px) { .toast-capture { left: 12px; right: 12px; width: auto; bottom: calc(68px + env(safe-area-inset-bottom)); gap: 10px; padding: 12px 14px; } .toast-capture .tc-text strong { font-size: var(--fs-sm); } .toast-capture .tc-text span { font-size: var(--fs-xs); } }
@media (prefers-reduced-motion: reduce) { .toast-capture { transition: none; transform: none; } }
.sponsor-more a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.ctx-wrap .sponsor-more { margin-top: 10px; font-size: var(--fs-xs); }
.ctx-wrap .sponsor-more span { margin-right: 6px; }
/* ---------- Phase 5 (v3.2.0): bigger tap areas on phones, same look ----------
   Invisible hit areas (a positioned ::before) so small links and icon buttons take a tap of 44-48 px
   without moving or resizing anything. Each one is sized so it does not reach a neighbouring control
   (tests/phase5_ux.py probes the points). */
@media (max-width: 760px) {
  .uc-source, .crumbs a, .browse-h a, .tc-close, .btn-copy, #newsletter .formkit-powered-by-convertkit { position: relative; }
  .icon-btn { position: relative; }
  .uc-source::before, .crumbs a::before, .browse-h a::before, #newsletter .formkit-powered-by-convertkit::before { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
  .icon-btn::before { content: ""; position: absolute; inset: -5px -4px; } /* 1 px border, so 48 x 46 px; the 8 px gap between header buttons is split, never shared */
  .tc-close::before { content: ""; position: absolute; inset: -4px; }
  .btn-copy::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 48px; transform: translateY(-50%); }
}
@media print { .toast-capture, .lead-band { display: none !important; } }

@media print {
  .site-header, .section-tabs, .tb-more, .sponsor-block, .site-footer, .post-actions, .btn-copy, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Phase 6 (v3.3.0): direct answers, summary tables, the four prompt parts, sponsor anatomy and onboarding.
   Existing parts and tokens only (explain box, results table, tags, steps, previews). Remove this block to revert the look. */
.page-head + .direct-answer { margin-top: 8px; }
.direct-answer .explain-text { max-width: 80ch; }
.summary-table td:last-child { white-space: normal; }
.summary-table tbody th { min-width: 12em; }
.summary-table td { color: var(--text-2); }
@media (max-width: 640px) {
  .summary-table td::before { content: attr(data-label); display: block; color: var(--text-3); font-size: var(--fs-xs); font-weight: 650; }
}
.prompt-parts { display: grid; gap: 14px; margin: 0; }
.prompt-parts dt { margin: 0 0 6px; color: var(--text-2); font-size: var(--fs-xs); font-weight: 650; }
.prompt-parts dd { margin: 0; min-width: 0; }
.pp-text { margin: 0; color: var(--text); font-size: var(--fs-sm); line-height: 1.6; max-width: var(--measure); }
.pp-text + .pp-text { margin-top: 6px; }
.pp-next a { color: var(--accent); }
.pp-vars { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-vars .tag { font-family: var(--mono); font-weight: 500; overflow-wrap: anywhere; }
.anat { margin: 0 0 22px; min-width: 0; }
.anat-stage { position: relative; padding: 30px 12px 12px; border-radius: var(--r-lg); border: 1px dashed var(--border-2); background: var(--surface-2); }
.anat-tag { position: absolute; top: 7px; left: 12px; margin: 0; color: var(--text-3); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; }
.anat-n { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--accent); color: var(--bg); font-family: var(--font); font-size: 0.7rem; font-weight: 750; line-height: 1; vertical-align: middle; letter-spacing: 0; text-transform: none; }
.anat-stage .sp-preview { margin-top: 0; }
.anat-stage .ctx-sponsor { margin: 0; }
.anat-ctx .ctx-mark, .anat-stage .sbar-badge { position: relative; overflow: visible; }
.anat-ctx .ctx-mark .anat-n, .anat-stage .sbar-badge .anat-n, .anat-thumb .anat-n { position: absolute; top: -6px; left: -6px; margin: 0; }
.anat-thumb { position: relative; color: #f4ead2; font-weight: 650; }
.anat-drawer-sum { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.anat-drawer-sum .anat-n { margin-right: 0; }
.anat-legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-width: var(--measure); }
.anat-legend li { display: flex; align-items: flex-start; gap: 4px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.anat-legend .anat-n { margin-top: 1px; }
.anat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .anat-grid { grid-template-columns: 1fr; } }

/* Phase 9 (v3.6.0): footer matrix (department hubs, structures & stacks, sponsor & newsletter) as a second row of the
   footer, aligned under the Browse / Contribute / About columns and styled like them. On phones each link gets a
   48 px tap row (Phase 5 rule). Existing tokens only. Remove this block and footerMatrix() in components.mjs to revert. */
.footer-matrix { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-matrix > :first-child { grid-column: 2; }
@media (max-width: 760px) {
  .footer-matrix { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .footer-matrix > :first-child { grid-column: auto; }
  .footer-matrix .footer-col { gap: 0; }
  .footer-matrix .footer-col a { display: flex; align-items: center; min-height: 48px; line-height: 1.3; }
}

/* tool colors (generated) */
.tool-bland{--tool:#3E4C59}.tool-canva{--tool:#00C4CC}.tool-chatgpt{--tool:#10A37F}.tool-claude{--tool:#E08B6B}.tool-claude-code{--tool:#D9845F}.tool-clay{--tool:#9aa3b2}.tool-codex{--tool:#4B4BC8}.tool-cursor{--tool:#B9C0CC}.tool-descript{--tool:#1A9E6B}.tool-fathom{--tool:#7A5AF8}.tool-fireflies{--tool:#C4479B}.tool-gemini{--tool:#4285F4}.tool-gemini-notebook{--tool:#F2A93B}.tool-gorgias{--tool:#34B27D}.tool-granola{--tool:#9aa3b2}.tool-grok-bot{--tool:#E7E9EE}.tool-hermes-agent{--tool:#9D86F7}.tool-heygen{--tool:#3D8BFF}.tool-intercom-fin{--tool:#9aa3b2}.tool-lindy{--tool:#4D7CFF}.tool-lovable{--tool:#9aa3b2}.tool-make{--tool:#A45CFF}.tool-manus{--tool:#6B5BD6}.tool-meta-muse{--tool:#6D8BFF}.tool-microsoft-365-copilot{--tool:#9aa3b2}.tool-n8n{--tool:#EA4B71}.tool-openclaw{--tool:#FF7A59}.tool-opus-clip{--tool:#8B5CF6}.tool-otter{--tool:#2B7FD8}.tool-photoroom{--tool:#5B3FD9}.tool-retell{--tool:#2F6FEB}.tool-vapi{--tool:#5DD3A6}.tool-zapier{--tool:#FF6A2B}
