/* 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.ttf") format("truetype");
  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: #686c75;
  --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(--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 { 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); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu { display: none; 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-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; display: grid; min-width: 230px; padding: 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: var(--surface-2); }
@media (max-width: 900px) {
  .util-nav { display: none; }
  .menu { display: block; }
  .header-actions { margin-left: auto; }
  .topbar { min-height: 58px; }
}
@media (max-width: 480px) { .hide-narrow, .brand-sub { display: none; } }

.section-tabs { position: sticky; top: 0; 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: 16px; margin-bottom: 18px; }
.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); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero-title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.035em; line-height: 1.03; max-width: 15ch; }
.hero-lede { margin: 22px 0 0; font-family: var(--font-read); 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 .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: 40px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .receipt { justify-self: start; transform: none; max-width: 520px; }
}

/* ---------- 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 ---------- */
.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; }
.filter-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filter-label { flex: none; width: 42px; 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; } }

/* ---------- List rows: use cases, setup guides, income automations ---------- */
.uc-list { display: grid; gap: 14px; }
.uc-row, .gd-row, .ia-row { display: grid; grid-template-columns: auto 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); }
.uc-row:hover, .gd-row:hover, .ia-row:hover { border-color: var(--border-2); }
.uc-kicker { margin: 0 0 6px; }
.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-outcome { margin: 8px 0 14px; 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; }
.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); }
@media (max-width: 560px) {
  .uc-row, .gd-row, .ia-row { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .uc-grade { display: flex; }
  .uc-source { margin-left: 0; }
}
.legend-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.legend-note .grade { margin-left: 8px; }
.legend-note a { color: var(--text-2); margin-left: 10px; }

/* ---------- 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-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; }
.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; }
@media (max-width: 560px) { .fit-list li { 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; }
.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(--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; 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-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; }
.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); }
.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; }

/* ---------- 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; 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; }
.similar-name:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }
.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 { position: relative; }
.uc-title a::after, .gd-title a::after, .gp-title a::after, .gb-card-link::after, .issue-title::after,
.similar-name::after, a.ctx-name::after, .verdict-title a::after, .pick-h a::after, .rc-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: 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; }

/* ---------- 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; }
}
@media print {
  .site-header, .section-tabs, .sponsor-block, .site-footer, .post-actions, .btn-copy, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}

/* tool colors (generated) */
.tool-claude{--tool:#E08B6B}.tool-claude-code{--tool:#D9845F}.tool-cursor{--tool:#B9C0CC}.tool-gorgias{--tool:#34B27D}.tool-grok-bot{--tool:#E7E9EE}.tool-hermes-agent{--tool:#9D86F7}.tool-heygen{--tool:#3D8BFF}.tool-lindy{--tool:#4D7CFF}.tool-make{--tool:#A45CFF}.tool-meta-muse{--tool:#6D8BFF}.tool-n8n{--tool:#EA4B71}.tool-openclaw{--tool:#FF7A59}.tool-opus-clip{--tool:#8B5CF6}.tool-zapier{--tool:#FF6A2B}
