/* Article, catalog and hub pages built by scripts/lib/shell.mjs. Loads after style.css and reuses its tokens.
   Geist sets every heading, label, table and control. Literata sets long-form body text only (body.longform). */
/* Metric-matched fallbacks, measured against Geist and Literata in Chromium on 20 Nov 2026.
   Text set in the fallback wraps like the web font, so the swap moves nothing (CLS). */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 102.2%; ascent-override: 98.8%; descent-override: 28.4%; line-gap-override: 0%; }
@font-face { font-family: "Literata Fallback"; src: local("Georgia"); size-adjust: 102.5%; ascent-override: 115%; descent-override: 30.2%; line-gap-override: 0%; }
:root {
  --font: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* The site button keeps its 1px inset line and drops the blue blur under it. */
.btn-blue, .btn-primary { box-shadow: 0 1px 0 oklch(1 0 0 / .25) inset; }
.page main { display: block; }
.page-wrap { max-width: 1200px; padding-top: clamp(24px, 4vw, 44px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-wrap > * { max-width: 46rem; margin-inline: auto; }
.page-wrap.has-rail > * { max-width: 42rem; }
.page-wrap.is-wide > * { max-width: 64rem; }
.nav-links a[aria-current="page"] { color: var(--ink); }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* page head */
.page-head { margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.038em; font-weight: 600; margin: 0; text-wrap: balance; }
.page-lede { margin: 16px 0 0; max-width: 40em; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.page-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.page-meta span + span::before { content: "\00b7"; margin: 0 8px; color: var(--faint); }
.page-meta a { color: var(--muted); text-underline-offset: 3px; }
.head-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 24px; align-items: start; }
.head-media img { display: block; width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.head-action { align-self: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 14px 16px 0 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.facts a { color: var(--blue); text-underline-offset: 3px; }
.facts-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* summary block under the lede */
.tldr { margin-top: 24px; padding: 16px 22px 18px; background: var(--sunk); border: 1px solid var(--line); border-radius: 14px; }
.tldr h2 { margin: 0 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.tldr ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 1.55; }
.tldr li::marker { color: var(--blue); }
.tldr a { color: var(--blue); text-underline-offset: 3px; }
.tldr code { font-family: var(--mono); font-size: .88em; }

/* article grid: body column plus a sticky table of contents at 1100px and up */
.art-rail { display: none; }
@media (min-width: 1100px) {
  .page-wrap.has-rail > * { max-width: 62rem; }
  .page-wrap.has-rail .page-head > * { max-width: 46rem; }
  .art { display: grid; grid-template-columns: minmax(0, 42rem) 15rem; column-gap: 5rem; align-items: start; }
  .art-rail { display: block; position: sticky; top: 96px; padding-top: 32px; max-height: calc(100vh - 112px); overflow-y: auto; }
  .toc-m { display: none; }
}
.toc-h { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.toc-rail ol, .toc-m ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; line-height: 1.4; }
.toc-rail a, .toc-m a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; text-wrap: pretty; }
.toc-rail a:hover, .toc-m a:hover { color: var(--blue); }
.rail-meta { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.rail-meta a { color: var(--muted); text-underline-offset: 3px; }
.toc-m { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.toc-m summary { cursor: pointer; padding: 12px 16px; font-size: 15px; font-weight: 600; }
.toc-m ol { padding: 0 16px 12px; }

/* body text */
.prose { margin-top: 28px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.longform .prose { font-family: "Literata", "Literata Fallback", Georgia, serif; font-optical-sizing: auto; font-size: 18px; line-height: 1.7; }
.longform .prose :is(h2, h3, .table-wrap, .code, figcaption) { font-family: var(--font); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .table-wrap, .prose .code { margin: 0 0 22px; }
.prose p, .prose ul, .prose ol, .prose blockquote { max-width: 70ch; }
.prose p, .prose li, .page-lede, .qa dd { text-wrap: pretty; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 56px 0 16px; text-wrap: balance; scroll-margin-top: 96px; }
.prose h3 { font-size: 23px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; margin: 36px 0 10px; scroll-margin-top: 96px; }
.h-anchor { margin-left: .3em; padding: 0 .15em; color: var(--faint); font-weight: 400; text-decoration: none; opacity: 0; transition: opacity .15s; }
:is(h2:hover, h2:focus-within) > .h-anchor { opacity: 1; }
.h-anchor:hover { color: var(--blue); }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a.h-anchor { color: var(--faint); text-decoration: none; }
.prose a:hover { color: var(--blue-deep); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose li::marker { color: var(--faint); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose blockquote { margin-inline: 0; padding: 18px 22px; background: var(--sunk); border-radius: 12px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose :not(pre) > code { font-family: var(--mono); font-size: .84em; white-space: normal; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }

/* code: Geist Mono 14px on the dark token, a copy button added by one small script */
.code { border-radius: 12px; background: var(--dark); color: oklch(0.93 0.02 262); overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 6px 8px 6px 18px; border-bottom: 1px solid oklch(1 0 0 / .1); font-size: 13px; color: oklch(0.8 0.03 262); }
.code pre, .prose pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.65; }
.prose > pre { border-radius: 12px; background: var(--dark); color: oklch(0.93 0.02 262); margin-bottom: 22px; }
.prose pre code { font-family: var(--mono); white-space: pre; }
.code-copy { font: 500 13px/1 var(--font); min-height: 28px; padding: 6px 12px; border-radius: 8px; border: 1px solid oklch(1 0 0 / .28); background: transparent; color: #fff; cursor: pointer; }
.code-copy:hover { border-color: #fff; }
.code-copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* tables: ruled rows, no box, no stripes; scroll inside their own box on a phone */
.prose .table-wrap { overflow-x: auto; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; }
.prose .table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.prose table { min-width: 0; width: 100%; font-size: 15px; line-height: 1.5; border-collapse: collapse; }
.prose th, .prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose :is(th, td):last-child { padding-right: 0; }
.prose thead th { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; border-bottom-color: var(--line-strong); }
.prose tbody th { font-weight: 600; min-width: 8rem; }
.prose .table-wrap + p { margin-top: -10px; font-size: 14px; line-height: 1.5; color: var(--muted); font-family: var(--font); }
.prose td .fav, .prose th .fav { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; border-radius: 4px; }

/* FAQ: ruled rows, answers always visible */
.faq-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.faq-block h2, .related h2, .hub-h { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 8px; text-wrap: balance; scroll-margin-top: 96px; }
.qa { margin: 0; }
.qa > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa > div:last-child { border-bottom: 0; }
.qa dt { font-weight: 600; font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; text-wrap: balance; }
.qa dd { margin: 8px 0 0; max-width: 70ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.qa a { color: var(--blue); text-underline-offset: 3px; }

/* related and hub lists: ruled rows, the title carries the link */
.related { margin-top: 56px; }
.related ul, .hub-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.related li, .hub-list li { border-bottom: 1px solid var(--line); }
.related a, .hub-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 4px; padding: 18px 0; text-decoration: none; }
.related a:hover .rel-title, .hub-list a:hover .rel-title { color: var(--blue); }
.rel-title { grid-column: 1; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; transition: color .15s; }
.rel-desc { grid-column: 1; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 70ch; text-wrap: pretty; }
.rel-type { grid-column: 2; grid-row: 1; align-self: baseline; font-size: 14px; color: var(--muted); white-space: nowrap; }

/* hubs */
.hub-group { margin-top: 40px; }
.hub-group:first-of-type { margin-top: 28px; }
.hub-h { margin-bottom: 14px; }
.hub-h span { color: var(--faint); font-weight: 500; }
.hub-filter { display: grid; gap: 8px; margin-top: 28px; }
.page-head .hub-filter { margin-top: 16px; }
.hub-filter label { font-size: 14px; font-weight: 600; }
.hub-filter input { font: inherit; font-size: 16px; width: 100%; max-width: 30rem; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.hub-filter input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hub-count { margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hub-others { margin: 40px 0 0; font-size: 15px; color: var(--muted); }
.hub-others a { margin-left: 12px; color: var(--blue); text-underline-offset: 3px; }
.hub-empty { margin-top: 32px; color: var(--muted); }
.hub-why { margin-top: 48px; }
.hub-why p { max-width: 62ch; margin: 0 0 14px; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* directory grid: real logos, facts first, one height per row */
.nl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 32px; }
.nl-grid li { border-top: 1px solid var(--line); }
.nl-grid a { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; height: 100%; padding: 16px 0 18px; text-decoration: none; }
.nl-grid img { grid-row: span 4; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.nl-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); transition: color .15s; }
.nl-grid a:hover .nl-name { color: var(--blue); }
.nl-by, .nl-facts { font-size: 13px; color: var(--muted); }
.nl-desc { font-size: 15px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 2px; }
.logo-row { display: flex; gap: 6px; grid-column: 2; grid-row: 1; align-self: center; }
.logo-row img { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); }

/* call to action: flat cobalt */
.page-cta { margin-top: 64px; padding: clamp(28px, 4vw, 44px); border-radius: 20px; background: var(--blue); color: #fff; }
.page-cta h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; color: #fff; }
.page-cta p { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: oklch(0.95 0.03 262); max-width: 34em; }
.page-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-cta-ghost { background: transparent; color: #fff; border-color: oklch(1 0 0 / .5); }
.page-cta-ghost:hover { border-color: #fff; }
.page-cta :focus-visible { outline-color: #fff; }

@media (max-width: 720px) {
  .head-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .head-media img { width: 48px; height: 48px; border-radius: 12px; }
  .head-action .btn { width: 100%; }
  .prose table:has(thead th:nth-child(3)) { min-width: 34rem; }
  .prose tbody th, .prose thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--line); padding-left: 0; }
  .prose tbody th { min-width: 7.5rem; max-width: 9rem; }
}
@media (max-width: 560px) {
  .related a, .hub-list a { grid-template-columns: 1fr; }
  .rel-type { grid-column: 1; grid-row: auto; }
  .page-cta-row .btn { width: 100%; }
  .tldr { padding: 16px 18px; }
  .hub-others a { display: inline-block; margin: 4px 12px 0 0; }
  .page-meta { font-size: 13px; }
  .page-meta span + span::before { margin: 0 6px; }
  .crumbs li:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .h-anchor, .rel-title, .nl-name { transition: none; }
}
.hub-intro { margin-top: 20px; }
.hub-sub { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.hub-sub a { color: var(--blue); text-underline-offset: 3px; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.logo-strip img { border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }

/* product screenshot: real app UI with example data, labeled as such */
.shot { margin: 32px 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.page-head .shot { margin: 24px 0 0; }
.page-head .shot img { aspect-ratio: 16 / 7; object-fit: cover; object-position: top left; }
@media (max-width: 720px) { .page-head .shot img { aspect-ratio: 4 / 3; } }
/* one line of checkable facts under the breadcrumb */
.fact-strip { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 14px auto 0; font-size: 14px; color: var(--muted); }
.fact-strip span + span::before { content: "\00b7"; margin: 0 8px; color: var(--faint); }
.head-row h1 { font-size: clamp(32px, 3.6vw, 44px); }
/* AGENTS.md generator: the preview stays in view while you type */
@media (min-width: 1100px) {
  .tool.am-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .am-tool .am-out { position: sticky; top: 92px; margin-top: 0; }
  .am-tool .am-text { max-height: calc(100vh - 180px); }
}
.tool-link { margin-top: 4px; }

/* ===================== hub grids, covers, cards and the page footer (hub-design, 20 Nov 2026)
   Every selector here is new or scoped to body.page, so the landing page, which also loads
   this file, renders exactly as before. Markup: scripts/lib/visuals.mjs and shell.mjs. */
.gi { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.16em; }
.gi-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* hubs: a wider column, a lead item, then groups that open with a claim and one line */
.page-wrap.hub-wrap > * { max-width: 74rem; }
.hub-wrap .page-head { padding-bottom: 28px; }
.hub-wrap .page-head h1 { max-width: 18em; }
.hub-feat { margin-top: 36px; }
.hub-wrap .hub-group { margin-top: clamp(56px, 7vw, 88px); }
.hub-gh { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.hub-gh .hub-h { margin: 0; }
.hub-line { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hub-h .gi { width: .8em; height: .8em; margin-right: .35em; color: var(--blue); vertical-align: -0.04em; }
nav.hub-others { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: clamp(56px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
nav.hub-others > span { margin-right: 8px; }
nav.hub-others a { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
nav.hub-others a .gi { color: var(--blue); }
nav.hub-others a:hover { border-color: var(--blue); color: var(--blue); }

/* card grid: 3 columns at desktop, 2 at tablet, 1 on a phone */
.bgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 28px; }
.bgrid > .bc { grid-column: span 2; }
.bgrid > .bc-half { grid-column: span 3; }
.bgrid > .bc-row { grid-column: 1 / -1; }
.bgrid-use-case, .bgrid-comparison, .bgrid-tools { gap: 20px; }
.bc { display: flex; min-width: 0; }
.bc > a { display: flex; flex-direction: column; gap: 14px; width: 100%; color: inherit; text-decoration: none; border-radius: 16px; }
.bc > a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.bc-media { display: block; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--sunk); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.bc-media > svg, .bc-shot img { display: block; width: 100%; height: auto; }
.bc-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.bc-top { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.bc-top > .gi { width: 22px; height: 22px; color: var(--blue); }
.bc-title { font-family: var(--display); font-size: 19px; line-height: 1.3; letter-spacing: -0.018em; font-weight: 600; color: var(--ink); text-wrap: balance; transition: color .15s; }
.bc-desc { font-size: 15px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.bc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--muted); }
.bc-meta > span:not(.bc-go) + span:not(.bc-go)::before { content: "\00b7"; margin: 0 8px; color: var(--faint); }
.bc-go { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--blue); font-weight: 500; }
.bc-go .gi { transition: transform .2s var(--ease); }
.bc > a:hover .bc-title { color: var(--blue); }
.bc > a:hover .bc-go .gi { transform: translateX(3px); }
.bc-blog > a:hover .bc-media { transform: translateY(-3px); box-shadow: 0 1px 2px oklch(0.2 0.05 262 / .06), 0 18px 36px -22px oklch(0.25 0.12 262 / .45); }

/* boxed cards for pages that lead with an icon, a logo lockup or a tool preview */
.bc-use-case > a, .bc-comparison > a, .bc-tool > a, .bc-plain > a, .bc-nl > a, .bc-topic > a { padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
:is(.bc-use-case, .bc-comparison, .bc-tool, .bc-plain, .bc-nl, .bc-topic) > a:hover { border-color: var(--line-strong); box-shadow: 0 1px 2px oklch(0.2 0.05 262 / .05), 0 16px 32px -24px oklch(0.25 0.12 262 / .4); transform: translateY(-2px); }

/* lead item: media left, words right */
.bgrid-feat { grid-template-columns: minmax(0, 1fr); }
.bc-feat > a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; }
.bc-feat .bc-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; }
.bc-feat .bc-desc { font-size: 17px; -webkit-line-clamp: 4; }
.bc-feat .bc-body { gap: 12px; }
.bc-feat .bc-meta { margin-top: 8px; }
.bc-feat.bc-use-case > a, .bc-feat.bc-comparison > a, .bc-feat.bc-tool > a { padding: 16px 32px 16px 16px; background: var(--surface); }
.bc-feat.bc-blog .bc-media { border-radius: 18px; }
.bc-shot { display: block; position: relative; }
.bc-shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.bc-cap { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--muted); }
.bc-panel { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px 32px; background: var(--sunk); }
.bc-verdict { max-width: 34ch; font-family: var(--display); font-size: 20px; line-height: 1.4; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); text-wrap: pretty; }

/* logo lockups: a real logo, then Brainfeed */
.lk { display: inline-flex; align-items: center; gap: 10px; }
.lk img, .lk .bf-mark { display: block; flex: none; border-radius: 8px; background: var(--surface); }
.lk img { border: 1px solid var(--line); }
.lk-x { font-size: 13px; font-weight: 600; color: var(--faint); }
.lk-list { gap: 6px; }
.bc-panel .lk img, .bc-panel .lk .bf-mark { border-radius: 14px; }
.bc-panel .lk-list { gap: 10px; flex-wrap: wrap; }

/* tool previews: the first screen of each tool with its own example values */
.tm { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); font-size: 14px; }
.tm-field { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-btn { flex: none; padding: 9px 14px; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 500; }
.tm-rows { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 14px; }
.tm-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.tm-row:last-child { border-bottom: 0; }
.tm-row b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-file { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.tm-file .gi { color: var(--blue); }
.bc-feat .tm { padding: 20px; font-size: 16px; }
.bc-feat .tm-field, .bc-feat .tm-btn { padding: 13px 16px; }

/* covers: one family drawn in the site tokens, one ground per guide group */
.cv { --g: var(--blue); --c: #fff; --m: oklch(1 0 0 / .14); --o: oklch(1 0 0 / .45); --a: oklch(0.8 0.1 262); --s: oklch(1 0 0 / .32); --ic: var(--blue); --t: #fff; --k: oklch(1 0 0 / .8); --ln: var(--line); --dot: oklch(1 0 0 / .6); }
.cv-agents { --g: var(--dark); --c: oklch(0.27 0.045 262); --m: oklch(1 0 0 / .07); --o: oklch(0.62 0.18 262 / .8); --a: var(--blue); --s: oklch(0.52 0.235 262 / .55); --ic: #fff; --t: #fff; --k: oklch(0.8 0.04 262); --ln: oklch(1 0 0 / .16); --dot: oklch(0.66 0.17 262); }
.cv-brain { --g: var(--blue-soft); --c: #fff; --m: oklch(0.52 0.235 262 / .1); --o: oklch(0.52 0.235 262 / .38); --a: var(--blue); --s: oklch(0.52 0.235 262 / .3); --ic: var(--blue); --t: var(--ink); --k: var(--blue-ink); --ln: var(--line); --dot: oklch(0.52 0.235 262 / .5); }
.cv-flow { --g: #fff; --c: var(--blue); --m: var(--sunk); --o: var(--line-strong); --a: oklch(0.8 0.1 262); --s: var(--blue-soft); --ic: #fff; --t: var(--ink); --k: var(--muted); --ln: oklch(1 0 0 / .38); --dot: var(--line-strong); }
.cv-bg { fill: var(--g); } .cv-card { fill: var(--c); } .cv-m { fill: var(--m); } .cv-strong { fill: var(--s); } .cv-a { fill: var(--a); } .cv-ln { fill: var(--ln); } .cv-dot { fill: var(--dot); }
.cv-o { fill: none; stroke: var(--o); stroke-width: 2; }
.cv-dash { stroke-dasharray: 3 7; stroke-linecap: round; }
.cv-ic { color: var(--ic); }
.cv-t { fill: var(--t); font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
.cv-k { fill: var(--k); font-family: var(--font); font-weight: 500; }
.post-cover { margin: 4px 0 28px; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); }
.post-cover svg { display: block; width: 100%; height: auto; }

/* child page heads: one icon or one lockup beside the H1 */
.head-glyph { display: block; padding-top: 6px; color: var(--blue); }
.head-glyph .gi { display: block; width: 40px; height: 40px; }
.head-lockup { display: block; padding-top: 4px; }
.head-lockup .lk img, .head-lockup .lk .bf-mark { border-radius: 11px; }

/* Read Next: a small card grid */
.rel-grid { margin-top: 56px; }
.rel-grid h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 22px; }
.rel-grid .bgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 20px; }
.rel-grid .bgrid > .bc { grid-column: auto; }
.rel-grid .bc-title { font-size: 17px; }
.rel-grid .bc-desc { font-size: 14px; }
.rel-grid .bc-blog .bc-desc { display: none; }
.longform .rel-grid { font-family: var(--font); }

/* call to action: flat cobalt, words left, one example card right */
.page-cta.pc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px 44px; align-items: center; }
.pc-text p { margin-top: 12px; }
.pc-text p.pc-note { margin-top: 16px; font-size: 14px; color: oklch(0.92 0.04 262); }
.pc-card { margin: 0; padding: 20px; border-radius: 16px; background: var(--surface); color: var(--ink); border: 1px solid oklch(1 0 0 / .5); }
.pc-card p { margin: 0; }
.pc-src { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.pc-tag { padding: 3px 9px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.pc-idea { margin-top: 14px; font-family: var(--display); font-size: 19px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; text-wrap: pretty; }
.pc-label { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.pc-label b { font-weight: 600; color: var(--ink); }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.pc-btns { display: flex; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 500; }
.pc-btns span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong); }
.pc-btns .pc-yes { background: var(--blue); border-color: var(--blue); color: #fff; }

/* footer on content pages: brand row and the one action, then six plain groups on the flat dark token */
.pf { margin-top: 0; }
.pf-panel { color: #fff; background: var(--dark); border-radius: 28px 28px 0 0; margin-inline: clamp(0px, 1.2vw, 16px); padding: clamp(48px, 6vw, 72px) 0 28px; }
.pf-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; padding-bottom: clamp(32px, 4vw, 44px); border-bottom: 1px solid oklch(1 0 0 / .12); }
.pf-brand { display: grid; gap: 14px; justify-items: start; }
.pf-logo { color: #fff; }
.pf-claim { margin: 0; max-width: 22em; font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.pf-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pf-join { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; }
.pf-join:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 28px; padding-top: clamp(32px, 4vw, 44px); }
.pf-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #fff; }
.pf-h .gi { width: 16px; height: 16px; color: oklch(0.72 0.14 262); }
.pf-col ul { margin: 0; padding: 0; list-style: none; }
.pf-col a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: oklch(0.82 0.02 262); text-decoration: none; text-wrap: pretty; transition: color .15s; }
.pf-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pf-col a.pf-all { margin-top: 4px; color: oklch(0.78 0.12 262); font-weight: 500; }
.pf-base { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 56px); padding-top: 20px; border-top: 1px solid oklch(1 0 0 / .12); font-size: 14px; color: oklch(0.8 0.025 262); }
.pf-base p { margin: 0; }
.pf-base a { color: #fff; text-underline-offset: 3px; }
.pf-legal { display: flex; gap: 20px; }
.pf :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 1080px) {
  .pf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-feat > a { grid-template-columns: minmax(0, 1fr); }
  .bc-feat.bc-use-case > a, .bc-feat.bc-comparison > a, .bc-feat.bc-tool > a { padding: 16px 16px 20px; }
  .page-cta.pc { grid-template-columns: minmax(0, 1fr); }
  .pc-card { max-width: 26rem; }
}
@media (max-width: 640px) {
  .bgrid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bgrid-use-case, .bgrid-comparison, .bgrid-tools { gap: 14px; }
  .bc-feat .bc-title { font-size: 24px; }
  .bc-panel { min-height: 0; padding: 24px; }
  .pf-panel { border-radius: 20px 20px 0 0; margin-inline: 0; }
  .pf-top { align-items: flex-start; }
  .pf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .pf-col a { padding: 7px 0; }
  nav.hub-others > span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-media, .bc-go .gi, :is(.bc-use-case, .bc-comparison, .bc-tool, .bc-plain, .bc-nl, .bc-topic) > a, .pf-col a, nav.hub-others a { transition: none; }
  .bc > a:hover .bc-media, .bc > a:hover, .bc > a:hover .bc-go .gi { transform: none; }
}
/* a row card: media left, words right, so the row keeps one height */
@media (min-width: 981px) {
  .bc-row.bc-blog > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .bc-row.bc-blog .bc-title { font-size: 24px; letter-spacing: -0.025em; }
  .bc-row.bc-blog .bc-desc { -webkit-line-clamp: 3; font-size: 16px; }
  .bc-row:is(.bc-nl, .bc-topic, .bc-use-case, .bc-comparison) .bc-desc { max-width: 70ch; }
}
.page-cta.pc .pc-card p { margin: 0; max-width: none; font-size: 14px; line-height: 1.45; color: var(--muted); }
.page-cta.pc .pc-card .pc-idea { margin-top: 14px; font-size: 19px; line-height: 1.35; color: var(--ink); }
.page-cta.pc .pc-card .pc-label { margin-top: 12px; }
.page-cta.pc .pc-card .pc-btns { margin-top: 18px; color: var(--ink); }
.page-cta.pc .pc-card .pc-btns .pc-yes { color: #fff; }
.page-cta.pc .pc-card .pc-src { font-size: 13px; }
/* newsletter and topic cards: the real logo leads */
.bc-top .nl-logo { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.nl-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-nl .bc-top, .bc-topic .bc-top { min-height: 42px; }
.bgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.hub-topics > span { margin-right: 4px; }
.hub-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none; }
.hub-topics a .gi { color: var(--blue); width: 15px; height: 15px; }
.hub-topics a:hover { border-color: var(--blue); color: var(--blue); }
.topic-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.topic-logos img { border-radius: 9px; border: 1px solid var(--line); }
.bc-tool .tm { margin-bottom: 4px; }
.bc-tool .bc-media { border: 0; border-radius: 0; background: none; overflow: visible; }
@media (max-width: 640px) { .bgrid-2 { grid-template-columns: minmax(0, 1fr); } }

.tm { flex-wrap: wrap; }
.tm-field { flex: 1 1 11rem; }
/* in the narrow article column the example card sits under the words */
.page-wrap.has-rail .page-cta.pc, .page-wrap:not(.is-wide):not(.hub-wrap) .page-cta.pc { grid-template-columns: minmax(0, 1fr); }
.page-wrap.has-rail .pc-card, .page-wrap:not(.is-wide):not(.hub-wrap) .pc-card { max-width: 26rem; }

/* the CTA's second action is a plain link, so one button leads */
.pc-link { align-self: center; padding: 8px 6px; font-size: 16px; font-weight: 500; color: #fff; text-underline-offset: 4px; }
.pc-link:hover { text-decoration-thickness: 2px; }
/* the scan band between newsletter shelves */
.hub-band { margin-top: clamp(48px, 6vw, 72px); }
.bc-feat.bc-tool > a { padding: 24px 32px 24px 24px; }
.bc-feat.bc-tool .bc-media { align-self: center; }
.bc-tool .bc-desc { -webkit-line-clamp: 3; }
@media (max-width: 980px) {
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid > .bc, .bgrid > .bc-half { grid-column: span 1; }
  .bgrid > .bc-row { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bgrid { grid-template-columns: minmax(0, 1fr); }
  .bgrid > .bc, .bgrid > .bc-half, .bgrid > .bc-row { grid-column: auto; }
  .fact-strip { display: grid; gap: 2px; }
  .fact-strip span + span::before { content: none; }
  .post-cover { border-radius: 14px; }
}
@media (max-width: 640px) { .post-cover svg { aspect-ratio: 2.2 / 1; } }

/* round 2: tool previews share one height, so icon rows line up across cards */
.bc-tool:not(.bc-feat) .bc-media { display: flex; align-items: center; min-height: 112px; }
.bc-tool:not(.bc-feat) .bc-media .tm { width: 100%; }
/* the first group under a hub head drops its rule, so two rules never stack */
.page-head + .hub-group { margin-top: 36px; }
.page-head + .hub-group .hub-gh { border-top: 0; padding-top: 0; }
/* Read Next: 3 or 2 columns, chosen by the count; no date in these small cards */
.rel-grid .bgrid.rel3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rel-grid .bgrid.rel2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rel-grid .bc-meta > span:has(> time) { display: none; }
.rel-grid .bc-meta > span:has(> time) + span::before { content: none; }
.bc-lands { display: inline-flex; align-items: center; gap: 6px; }
.bc-lands .gi { width: 16px; height: 16px; color: var(--ink); }
.bc-meta > .bc-lands + span::before { content: "\00b7"; margin: 0 8px; color: var(--faint); }
@media (max-width: 760px) { .rel-grid .bgrid.rel3, .rel-grid .bgrid.rel2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .crumbs li:last-child { display: list-item; }
  .crumbs li:nth-child(3):last-child { display: none; }
  .fact-strip span:nth-child(n+2) { display: none; }
  .bc-panel .lk-list img, .bc-panel .lk-list .bf-mark { width: 40px; height: 40px; }
}
/* round 3: cover textures, one tone per cover ground */
.cv { --tx: oklch(1 0 0 / .22); }
.cv-agents { --tx: oklch(1 0 0 / .1); }
.cv-brain { --tx: oklch(0.52 0.235 262 / .2); }
.cv-flow { --tx: var(--line-strong); }
.cv-tx { fill: var(--tx); }
.cv-txl { fill: none; stroke: var(--tx); stroke-width: 1.5; }
.rel-grid .bc-meta > span:has(> time) + span:not(.bc-go)::before { content: none; }
@media (min-width: 1100px) { .page-wrap.has-rail .page-head > .post-cover { max-width: 42rem; } }
/* use case cards take the tone of their group, so three groups read as three shelves */
.bc.uc-build > a { background: var(--dark); border-color: var(--dark); }
.bc.uc-build .bc-title { color: #fff; }
.bc.uc-build .bc-desc, .bc.uc-build .bc-meta, .bc.uc-build .bc-top { color: oklch(0.82 0.03 262); }
.bc.uc-build .bc-top > .gi, .bc.uc-build .bc-go, .bc.uc-build .bc-lands .gi { color: oklch(0.78 0.12 262); }
.bc.uc-build > a:hover .bc-title { color: oklch(0.82 0.12 262); }
.bc.uc-build > a:focus-visible { outline-color: var(--blue); }
.bc.uc-read > a { background: var(--blue-soft); border-color: oklch(0.9 0.04 262); }
.bc-feat.uc-build > a, .bc-feat.uc-read > a { background: var(--surface); border-color: var(--line); }
.bc-feat.uc-build .bc-title { color: var(--ink); }
.bc-feat.uc-build .bc-desc, .bc-feat.uc-build .bc-meta, .bc-feat.uc-build .bc-top { color: var(--muted); }
.bc-feat.uc-build .bc-top > .gi, .bc-feat.uc-build .bc-go { color: var(--blue); }
.bc-feat.uc-build .bc-lands .gi { color: var(--ink); }
/* lead cards: the media fills the card height, so no panel floats in empty space */
.bc-feat > a { align-items: stretch; }
.bc-feat .bc-body { justify-content: center; }
.bc-feat .bc-panel { height: 100%; }
.bc-feat.bc-blog .bc-media, .bc-feat.bc-use-case .bc-media { align-self: center; }
@media (max-width: 980px) { .bc-feat.bc-tool .bc-media { order: 2; } }
/* round 4 */
.head-lockup .lk img, .head-lockup .lk .bf-mark { width: 40px; height: 40px; }
.rel-grid .bc.uc-build > a, .rel-grid .bc.uc-read > a { background: var(--surface); border-color: var(--line); }
.rel-grid .bc.uc-build .bc-title { color: var(--ink); }
.rel-grid .bc.uc-build :is(.bc-desc, .bc-meta, .bc-top) { color: var(--muted); }
.rel-grid .bc.uc-build :is(.bc-top > .gi, .bc-go) { color: var(--blue); }
.rel-grid .bc.uc-build .bc-lands .gi { color: var(--ink); }
.bc-feat.bc-topic .bc-panel { background: var(--blue); }
.bc-feat.bc-topic .bc-verdict { color: #fff; }
.bc-feat.bc-topic .bc-panel .lk img { border-color: oklch(1 0 0 / .4); }
@media (min-width: 720px) { body.page dl.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 719px) { body.page dl.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-cover svg { aspect-ratio: 3 / 1; } }
.toc-rail ol { font-size: 13.5px; }
@media (max-width: 720px) { .head-row .head-glyph { display: none; } }
/* round 6: wide boxed cards show an aside of facts, so a half-width card is never half empty */
.bc-aside { display: none; }
@media (min-width: 981px) {
  :is(.bc-half, .bc-row):is(.bc-use-case, .bc-comparison, .bc-nl) > a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
  :is(.bc-half, .bc-row) .bc-aside { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px 18px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); }
  :is(.bc-half, .bc-row).bc-nl .bc-aside { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: flex-start; }
  :is(.bc-half, .bc-row).bc-nl .bc-aside-h { width: 100%; }
  .uc-build:is(.bc-half, .bc-row) .bc-aside { background: oklch(0.24 0.04 262); border-color: oklch(0.3 0.04 262); }
  .uc-build .bc-aside-t { color: oklch(0.9 0.02 262); }
  .uc-read:is(.bc-half, .bc-row) .bc-aside { background: var(--surface); }
  /* guide cards at half width lay out sideways, so covers keep the size of the 3-up row */
  :is(.bc-half).bc-blog > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  .bc-half.bc-blog .bc-desc { -webkit-line-clamp: 3; }
}
.bc-aside-h { font-size: 13px; font-weight: 600; color: var(--muted); }
.uc-build .bc-aside-h { color: oklch(0.78 0.12 262); }
.bc-aside-t { font-size: 15px; line-height: 1.5; color: var(--ink); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bc-chip { padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.head-action { display: grid; gap: 10px; justify-items: center; }
.head-visit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; }
.head-visit:hover { color: var(--blue); }
.prose td .fav, .prose th .fav { width: 22px; height: 22px; }
@media (max-width: 640px) { .post-cover svg { aspect-ratio: 2.4 / 1; } }
/* round 7 */
.head-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 16px; font-size: 15px; font-weight: 500; color: var(--muted); }
.head-tag > .gi { width: 24px; height: 24px; color: var(--blue); }
.head-lands { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.head-lands .gi { width: 16px; height: 16px; color: var(--ink); }
.head-lockup .lk img, .head-lockup .lk .bf-mark { width: 36px; height: 36px; }
.head-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 0; }
.tm-row { flex-wrap: wrap; }
.tm-row b { white-space: normal; }
.bgrid-ranked { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; font-family: var(--font); }
.bgrid-ranked > .bc { grid-column: auto; }
.bgrid-ranked .bc > a { text-decoration: none; color: inherit; }
.bgrid-ranked .bc-first { grid-column: 1 / -1; }
.rank-n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.bc-first .rank-n { background: var(--blue); color: #fff; }
.prose .bgrid-ranked .bc-title { font-size: 18px; }
.prose .bgrid-ranked .bc-desc { font-size: 15px; max-width: none; }
.shelf-tint .bc > a { background: var(--blue-soft); border-color: oklch(0.9 0.04 262); }
.shelf-tint .bc-aside { background: var(--surface); }
@media (min-width: 981px) { .bc-feat.bc-tool .bc-media { order: 2; } }
@media (max-width: 640px) {
  .bgrid-ranked { grid-template-columns: minmax(0, 1fr); }
  .bc-feat.bc-topic .bc-panel .lk img { width: 34px; height: 34px; }
  .bc-feat .bc-panel { padding: 18px; gap: 12px; }
  .bc-feat .bc-verdict { font-size: 17px; }
}
.prose ul.bgrid { padding-left: 0; max-width: none; }
.prose .bgrid > li { margin: 0; }

/* ===================== site-polish, 20 Nov 2026 ===================== */
/* wide-card asides: a plain column behind a hairline rule, no grey panel */
@media (min-width: 761px) {
  :is(.bc-half, .bc-row) .bc-aside, .uc-build:is(.bc-half, .bc-row) .bc-aside, .uc-read:is(.bc-half, .bc-row) .bc-aside, .shelf-tint .bc-aside { padding: 2px 0 2px 22px; border: 0; border-radius: 0; background: none; box-shadow: inset 1px 0 0 var(--line); }
  .uc-build:is(.bc-half, .bc-row) .bc-aside { box-shadow: inset 1px 0 0 oklch(1 0 0 / .14); }
  .shelf-tint :is(.bc-half, .bc-row) .bc-aside, .uc-read:is(.bc-half, .bc-row) .bc-aside { box-shadow: inset 1px 0 0 oklch(0.52 0.235 262 / .2); }
  :is(.bc-half, .bc-row).bc-nl .bc-aside { flex-direction: column; flex-wrap: nowrap; justify-content: center; }
}
.bc-aside-t.bc-aside-sm { font-size: 14px; color: var(--muted); -webkit-line-clamp: 2; }

/* covers: text on the card face, per ground */
.cv { --ct: var(--ink); }
.cv-agents { --ct: #fff; }
.cv-flow { --ct: #fff; }
.cv-ct { fill: var(--ct); font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }

/* the closing call to action: one short line, one button, a small example card beside it */
body.page .wrap.page-wrap .page-cta.pc { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 20px 28px; margin-top: 56px; padding: 28px 32px; border-radius: 18px; align-items: center; }
body.page .wrap.page-wrap.hub-wrap .page-cta.pc, body.page .wrap.page-wrap.is-wide .page-cta.pc { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); padding: 32px 40px; gap: 20px 56px; }
body.page .wrap.page-wrap .page-cta.pc h2 { font-size: clamp(22px, 2.3vw, 27px); line-height: 1.15; text-wrap: balance; }
body.page .wrap.page-wrap .page-cta.pc .pc-text p { margin-top: 8px; font-size: 16px; line-height: 1.5; max-width: 30em; }
body.page .wrap.page-wrap .page-cta.pc .page-cta-row { margin-top: 18px; align-items: center; }
body.page .wrap.page-wrap .page-cta.pc .pc-text p.pc-note { margin-top: 12px; font-size: 13px; }
body.page .wrap.page-wrap .page-cta.pc .pc-card { max-width: none; padding: 14px; border-radius: 14px; }
body.page .wrap.page-wrap .page-cta.pc .pc-card .pc-src { font-size: 12px; gap: 8px; }
body.page .wrap.page-wrap .page-cta.pc .pc-card .pc-tag { padding: 2px 8px; }
body.page .wrap.page-wrap .page-cta.pc .pc-card .pc-idea { margin-top: 10px; font-size: 16px; line-height: 1.3; }
body.page .wrap.page-wrap .page-cta.pc .pc-card .pc-label { margin-top: 8px; font-size: 13px; }
body.page .wrap.page-wrap .page-cta.pc .pc-card .pc-btns { margin-top: 12px; font-size: 13px; gap: 6px; }
body.page .wrap.page-wrap .page-cta.pc .pc-card .pc-btns span { padding: 6px 8px; border-radius: 8px; }
@media (max-width: 640px) {
  body.page .wrap.page-wrap .page-cta.pc, body.page .wrap.page-wrap.hub-wrap .page-cta.pc, body.page .wrap.page-wrap.is-wide .page-cta.pc { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 18px; margin-top: 48px; }
  body.page .wrap.page-wrap .page-cta.pc .page-cta-row .btn { width: auto; }
}
body.page .wrap.page-wrap .page-cta.pc .page-cta-row { gap: 8px 16px; }
body.page .wrap.page-wrap .page-cta.pc .page-cta-row .btn { padding: 11px 18px; font-size: 15px; }
body.page .wrap.page-wrap .page-cta.pc .pc-link { padding: 6px 0; font-size: 15px; white-space: nowrap; }
/* the compare lead: the verdict sits on the brand tint, not grey */
.bc-feat.bc-comparison .bc-panel { background: var(--blue-soft); }
.bc-feat.bc-comparison .bc-media { border-color: oklch(0.9 0.04 262); }
/* byline: a wrapped line never starts with a separator dot */
body.page .page-meta { margin-left: -18px; clip-path: inset(-8px -8px -8px 10px); }
body.page .page-meta > span { position: relative; margin-left: 18px; }
body.page .page-meta > span + span::before, body.page .page-meta > span::before { content: "\00b7"; position: absolute; left: -12px; margin: 0; color: var(--faint); }
/* tool previews on lead cards sit on the card itself, with no grey tray */
.bc-feat .tm { padding: 0; background: none; border: 0; }
.bc-feat .tm-rows { padding: 0; }
/* the compare lead: one tinted card, verdict left and title right, split by a hairline */
.bc-feat.bc-comparison > a { background: var(--blue-soft); border-color: oklch(0.9 0.04 262); }
.bc-feat.bc-comparison .bc-media { border: 0; border-radius: 0; background: none; box-shadow: inset -1px 0 0 oklch(0.52 0.235 262 / .18); }
.bc-feat.bc-comparison .bc-panel { background: none; }
.bc-feat.bc-comparison > a:hover .bc-media { transform: none; box-shadow: inset -1px 0 0 oklch(0.52 0.235 262 / .18); }
/* long setup prompts scroll inside their own box */
body.page .prose .code pre { max-height: 26rem; overflow: auto; }
/* a ranking reads as one column, first to last */
.bgrid-ranked { grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* on a phone the lead card puts its words first, so the answer sits in the fold */
@media (max-width: 640px) {
  .bc-feat > a .bc-body { order: -1; }
  .bc-feat.bc-comparison .bc-media { box-shadow: inset 0 1px 0 oklch(0.52 0.235 262 / .18); }
}
/* guide head: the hub cover sits right of the title at 1100px and up */
.post-art { display: none; margin: 0; }
@media (min-width: 1100px) {
  body.page .page-head:has(> .post-art) { position: relative; padding-right: 352px; }
  body.page .page-head > .post-art { display: block; position: absolute; top: 6px; right: 0; width: 312px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
  .post-art svg { display: block; width: 100%; height: auto; }
}
/* round 3 */
/* the guide lead is one cover and its words, with no second frame around them */
.bc-feat.bc-blog > a { padding: 0; border: 0; background: none; box-shadow: none; }
@media (max-width: 640px) { .bc-feat.bc-blog > a .bc-body { order: 0; } }
/* wide-card asides start level with the card title */
@media (min-width: 761px) { :is(.bc-half, .bc-row) .bc-aside { justify-content: flex-start; padding-top: 40px; } }
/* setup prompts wrap inside their box rather than run off its right edge */
body.page .prose .code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* the scan lead on the tools hub: the field spans its column */
.bc-feat.bc-tool .bc-media { width: 100%; }
.bc-feat .tm { width: 100%; }
/* after round 3: the aside supports the summary, it never out-ranks it */
.bc-aside-t { font-size: 14px; color: var(--muted); }
.uc-build .bc-aside-t { color: oklch(0.82 0.03 262); }
/* closing prose on a hub opens a new section, with the same rule and gap as the groups */
body.page .hub-wrap .hub-why { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
