/* =====================================================================
   landergen kit: the shared base for every generated site.
   Colors, fonts, radius and texture come from theme.css (generated per site).
   Layout rule: header, sections, article and footer all use the same
   inline padding formula, so content always lines up with the header.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brand-soft); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---------- tokens ---------- */
:root {
  --container: 1140px;
  --gutter: 20px;
  --pad-x: max(var(--gutter), calc((100% - var(--container)) / 2));
  --brand-soft: color-mix(in oklab, var(--brand) 13%, var(--surface));
  --brand-line: color-mix(in oklab, var(--brand) 45%, var(--border));
  --focus: color-mix(in oklab, var(--brand) 70%, var(--ink));
  --shadow-sm: 0 1px 2px color-mix(in oklab, var(--ink) 6%, transparent);
  --brand-wash: color-mix(in oklab, var(--brand) 7%, var(--bg));
  --footer-bg: color-mix(in oklab, var(--brand) 26%, #0a0e13);
  --shadow-md: 0 1px 2px color-mix(in oklab, var(--ink) 6%, transparent), 0 8px 24px -8px color-mix(in oklab, var(--ink) 16%, transparent);
  --est: #8a5a00;
  --est-soft: #fbf0d9;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- texture (body background only) ---------- */
body[data-texture="graph"] {
  background-image:
    linear-gradient(color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}
body[data-texture="dots"] {
  background-image: radial-gradient(color-mix(in oklab, var(--ink) 11%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
body[data-texture="ruled"] {
  background-image: linear-gradient(transparent 31px, color-mix(in oklab, var(--ink) 6%, transparent) 32px);
  background-size: 100% 32px;
}
body[data-texture="grain"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.15;
  letter-spacing: var(--display-tracking);
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.3rem); line-height: 1.03; letter-spacing: calc(var(--display-tracking) * 1.5); }
h2 { font-size: clamp(1.32rem, 1.2rem + .55vw, 1.65rem); line-height: 1.2; }
h3, .h3 { font-size: 1.06rem; line-height: 1.3; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { font-weight: 650; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.03rem, .98rem + .3vw, 1.18rem); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.measure { max-width: 68ch; }
.center { text-align: center; }
.center .lede, .center .measure { margin-inline: auto; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-label);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--link); margin: 0 0 .9rem;
}

/* ---------- skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.skip-link:focus { left: 8px; }

/* ---------- header + nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  padding-inline: var(--pad-x);
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.15rem; letter-spacing: var(--display-tracking);
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand__mark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: calc(var(--radius) + 2px); background: var(--brand); color: var(--brand-ink); }
.brand__mark svg { width: 20px; height: 20px; }
/* Header logo. width and height are auto with maximums, so a wide logo shrinks as a whole (no
   letterbox). --logo-* come from the theme: on dark themes every logo gets a white tile. */
/* Affiliate boxes: an item page button and an in-article box. Both sit inside the revenue switch. */
.aff-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; margin: 22px 0 18px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--brand-line); border-left: 5px solid var(--brand); border-radius: calc(var(--radius) * 1.4); box-shadow: var(--shadow-md); }
.aff-cta__title { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; color: var(--ink); }
.aff-cta__sub { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.aff-cta .btn--lg { padding: 14px 22px; font-size: 1.02rem; white-space: nowrap; }
.aff-cta__note { grid-column: 1 / -1; }
.aff-cta--band { margin: clamp(24px, 4vw, 44px) var(--pad-x); background: var(--brand-soft); }
@media (max-width: 640px) { .aff-cta { grid-template-columns: minmax(0, 1fr); } .aff-cta .btn--lg { width: 100%; justify-content: center; } }
.aff-cta__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.aff-cta--pair { grid-template-columns: minmax(0, 1fr); }
.record-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px 40px; }
.aff-cta__note, .aff-box__note { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.aff-box { margin: 22px 0; padding: 14px 18px; border: 1px solid var(--brand-line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--brand-soft); }
.aff-box__label { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.aff-box a { font-weight: 650; font-size: 1.05rem; }
/* Amazon shop: search cards from the build; the Worker can fill them with products (hotlinked images). */
.shop-item { display: flex; flex-direction: column; gap: 8px; }
.shop-item > .btn { margin-top: auto; align-self: flex-start; }
.shop-item__title { margin: 0; }
.shop-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.shop-product__link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; }
.shop-product__link img { width: 72px; height: 72px; flex: none; object-fit: contain; background: #fff; border-radius: var(--radius); }
.shop-product__price { margin: 2px 0 0 84px; font-weight: 650; color: var(--ink); }
.shop-product__asof { font-weight: 400; font-size: .8rem; color: var(--muted); }
.shop-item__more { font-size: .9rem; margin-top: auto; }
.shop-disclosure { margin-top: 10px; }
.shop-link { margin: 14px 0 0; }
.brand__logo { display: block; width: auto; height: auto; max-height: 40px; max-width: 220px; box-sizing: content-box; background: var(--logo-bg, transparent); padding: var(--logo-pad, 0); border-radius: calc(var(--radius) + 2px); }
.brand__logo--compact { max-height: 52px; }
.brand__logo--blend { mix-blend-mode: var(--logo-blend, multiply); } /* a white background takes the header colour */
.brand__logo--plate { background: none; padding: 0; } /* its own background is the tile */
@media (max-width: 640px) { .brand__logo { max-height: 34px; max-width: 170px; } .brand__logo--compact { max-height: 44px; } }
.brand__mark--text { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.site-nav a:hover[aria-current="page"] { background: transparent; }
.site-nav .nav-search { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px;
  font: 600 .9rem var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; cursor: pointer;
}
.nav-toggle__icon { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle__icon::before, .nav-toggle__icon::after, .nav-toggle__icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon span { top: 5px; }
.nav-toggle__icon::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: 10px; }
  .no-js .site-nav { flex-wrap: wrap; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumb { padding: 12px var(--pad-x); font-size: .85rem; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb ol { align-items: center; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumb a { color: var(--muted); }

/* ---------- sections (wide layout) ---------- */
.section { padding: clamp(30px, 4.2vw, 52px) var(--pad-x); }
.section--tight { padding-block: clamp(22px, 3vw, 34px); }
.section--flush { padding-top: 8px; }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.section--brand { background: var(--brand-soft); border-block: 1px solid var(--brand-line); }
.section__head { max-width: 760px; margin-bottom: 22px; }
.section__head.center { margin-inline: auto; }
.section > :last-child, .card > :last-child, .callout > :last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 5.2vw, 72px) var(--pad-x) clamp(32px, 4.5vw, 60px); }
.hero h1 { max-width: 16ch; }
.hero--wash { background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--brand-wash), var(--bg)); border-bottom: 1px solid var(--border); }
.hero--ink { --ink: #f6f7f8; --muted: rgba(246,247,248,.74); --link: #fff; background: var(--footer-bg); color: var(--ink); }
.hero--ink .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero--ink h1 { color: #fff; }
.hero .lede { margin-bottom: 1.6rem; }
.hero--center { text-align: center; }
.hero--center h1, .hero--center .lede { margin-inline: auto; }
.hero--center .actions, .hero--center .trust-row { justify-content: center; }
.hero--center .site-search { margin-inline: auto; }
.hero--band { background: var(--brand-soft); border-bottom: 1px solid var(--brand-line); }
.hero--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero--split > .hero__body > :last-child { margin-bottom: 0; }
@media (max-width: 900px) { .hero--split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards, stats, callouts ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(16px, 2vw, 22px); box-shadow: var(--shadow-sm); min-width: 0;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .94rem; }
.card--accent { border-top: 3px solid var(--brand); }
.card--brand { background: var(--brand-soft); border-color: var(--brand-line); }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
a.card h3 { color: var(--ink); }
.card__meta { font-size: .82rem; color: var(--muted); margin-top: .75rem; }
.stat__value { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.35rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 600; margin-top: .35rem; }
.stat p { margin-top: .35rem; font-size: .95rem; }
.callout { border: 1px solid var(--brand-line); border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius); padding: 16px 20px; margin: 1.5rem 0; }
.callout--warn { border-color: color-mix(in oklab, var(--est) 40%, var(--border)); border-left-color: var(--est); background: var(--est-soft); color: #3d2a00; }
.note { font-size: .9rem; color: var(--muted); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1.2 var(--font-body); letter-spacing: .005em;
  padding: 12px 20px; min-height: 46px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: color-mix(in oklab, var(--brand) 88%, var(--ink)); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand-line); background: var(--surface-2); }
.btn--sm { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- forms ---------- */
label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field { margin-bottom: 18px; }
.field__hint { display: block; font-size: .84rem; color: var(--muted); margin-top: 6px; font-weight: 400; }
.field__error { display: block; font-size: .84rem; color: #b42318; margin-top: 6px; }
input[type="text"], input[type="number"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent); }
input[aria-invalid="true"] { border-color: #b42318; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0 0 10px; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

/* ---------- tool layout ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.tool__panel { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); padding: clamp(18px, 2.5vw, 28px); box-shadow: var(--shadow-md); }
.tool__result { background: var(--surface); border: 1px solid var(--brand-line); border-radius: calc(var(--radius) * 1.5); overflow: hidden; box-shadow: var(--shadow-md); }
@media (min-width: 901px) { .tool__result { position: sticky; top: 84px; } }
.tool__result-head { background: var(--brand-soft); padding: 20px 24px; border-bottom: 1px solid var(--brand-line); }
.tool__result-body { padding: 20px 24px; }
.result-label { font-family: var(--font-label); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.result-value { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink); margin: 0; }
.result-sub { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.result-list { list-style: none; padding: 0; margin: 0 0 1em; }
.result-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border); margin: 0; }
.result-list li:last-child { border-bottom: 0; }
.result-list .num { font-weight: 600; white-space: nowrap; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.25); background: var(--surface); margin: 1.25rem 0 1.5rem; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
caption { caption-side: top; text-align: left; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 12px 16px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-family: var(--font-label); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: color-mix(in oklab, var(--surface-2) 60%, transparent); }
td.num, th.num { text-align: right; }

/* ---------- lists ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; line-height: 1;
  background: var(--brand); color: var(--brand-ink);
}
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin: 0; min-height: 32px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .9rem;
}
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.inline-list li { margin: 0; }

/* ---------- tags ---------- */
.tag { display: inline-block; font-family: var(--font-label); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; vertical-align: .12em; white-space: nowrap; }
.tag--fact { background: var(--brand-soft); color: var(--ink); border: 1px solid var(--brand-line); }
.tag--est { background: var(--est-soft); color: #5c3c00; border: 1px solid color-mix(in oklab, var(--est) 35%, transparent); }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 40px 15px 0; position: relative;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1rem; letter-spacing: var(--display-tracking);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--font-body); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { margin: 0 0 18px; color: var(--muted); max-width: 72ch; }

/* ---------- sources ---------- */
.sources { font-size: .88rem; color: var(--muted); padding-left: 1.4em; }
.sources li + li { margin-top: .45em; }
.sources a { overflow-wrap: anywhere; }

/* ---------- article layout ---------- */
.article-layout { padding: 28px var(--pad-x) clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 980px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.article-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-header .lede { margin-bottom: .8rem; }
.updated { font-size: .85rem; color: var(--muted); margin: 0; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; scroll-margin-top: 88px; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose .checklist, .prose .steps, .prose .sources.inline-list { padding-left: 0; }
.prose blockquote { margin: 1.5rem 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand-line); color: var(--muted); }
.aside { position: sticky; top: 88px; display: grid; gap: 16px; }
@media (max-width: 980px) { .aside { position: static; } .aside .toc { display: none; } }
.toc { font-size: .9rem; }
.toc__title, .aside__title { font-family: var(--font-label); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--brand); }
.aside-cta h3 { font-size: 1.05rem; }
.aside-cta p { font-size: .92rem; }
.related { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.related li { margin: 0; border-top: 1px solid var(--border); }
.related a { display: block; padding: 9px 0; text-decoration: none; }

/* ---------- for-sale band (content) ---------- */
.lg-forsale {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--brand-line); border-radius: calc(var(--radius) * 1.75);
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm);
}
.lg-forsale h2 { margin-bottom: .3em; }
.lg-forsale p { color: var(--muted); margin: 0; max-width: 60ch; }
@media (max-width: 720px) { .lg-forsale { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { --ink: #f6f7f8; --muted: rgba(246,247,248,.72); --border: rgba(255,255,255,.14); --link: #fff; background: var(--footer-bg); padding: 52px var(--pad-x) 84px; /* room for the buy bar */ font-size: .9rem; color: var(--muted); margin-top: clamp(24px, 4vw, 48px); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(auto-fit, minmax(130px, 1fr)); gap: 32px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.site-footer h2 { font-family: var(--font-label); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer .brand { color: #fff; }
.site-footer a:hover { text-decoration: underline; }
/* A link inside a sentence needs more than color to stand out (WCAG 1.4.1). */
.site-footer p a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer .brand { font-size: 1.05rem; margin-bottom: 10px; }

/* ---------- buy bar ---------- */
.lg-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding: 6px var(--pad-x) calc(6px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.lg-buybar__text { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; font-size: .84rem; }
.lg-buybar__domain { font-weight: 700; font-size: .9rem; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lg-buybar__note { color: var(--muted); }
.lg-buybar__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-buybar .btn { flex: none; background: var(--brand); color: var(--brand-ink); padding: 6px 14px; min-height: 36px; font-size: .84rem; }
.lg-buybar .btn:hover { background: color-mix(in oklab, var(--brand) 85%, white); }
@media (max-width: 560px) { .lg-buybar__note { display: none; } }

/* ---------- v2: icons ---------- */
.icon { width: 20px; height: 20px; flex: none; vertical-align: -.2em; }
.icon--sm { width: 16px; height: 16px; }
.icon-tile { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: calc(var(--radius) + 2px); background: var(--brand-soft); color: var(--link); }

/* ---------- v2: notice bar, page head, section header row ---------- */
.topbar { display: flex; align-items: center; gap: 8px; padding: 6px var(--pad-x); background: var(--footer-bg); color: rgba(246,247,248,.86); font-size: .78rem; }
.page-head { padding: clamp(22px, 3.2vw, 40px) var(--pad-x) 18px; }
.page-head h1 { font-size: clamp(1.95rem, 1.3rem + 2.5vw, 3.2rem); max-width: 22ch; }
.page-head .lede { margin-bottom: 1rem; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; padding-bottom: 12px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.head-row h2 { margin: 0; }
.head-row__link { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mt-section { margin-top: 24px; }

/* ---------- v2: stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 14px 24px; padding: 18px 0; border-block: 1px solid var(--border); margin: 0; }
.stats-strip__value { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats-strip__label { display: block; font-family: var(--font-label); font-size: .72rem; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }

/* ---------- v2: data cards ---------- */
.data-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.data-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.4); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.data-card[hidden] { display: none; }
a.data-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.data-card h3 { margin: 0; overflow-wrap: anywhere; }
.data-card__kicker { font-family: var(--font-label); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-card__facts { margin: 0; display: grid; gap: 4px; font-size: .84rem; }
.data-card__facts > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px dashed var(--border); }
.data-card__facts dt { color: var(--muted); flex: none; max-width: 48%; }
.data-card__facts dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.data-card__go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--link); }

/* ---------- v2: group cards, chips, pills ---------- */
.group-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.group-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.4); text-decoration: none; color: inherit; transition: border-color .15s ease; }
.group-card:hover { border-color: var(--brand-line); }
.group-card .icon-tile { grid-row: span 2; }
.group-card__name { font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.group-card__count { font-size: .8rem; color: var(--muted); }
.chip-list, .pill-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list li, .pill-list li { margin: 0; }
.chip-list a { display: inline-block; padding: 5px 12px; font-size: .84rem; font-weight: 500; color: var(--ink); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.chip-list a:hover { border-color: var(--brand-line); }

/* Featured listings, filled by the Worker from dm.com (sponsored) */
.lg-featured { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 14px 16px; }
.lg-featured__label { margin: 0 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lg-featured__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lg-featured__item { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.lg-featured__item a { font-weight: 600; }
.lg-featured__item span { color: var(--muted); font-size: .9rem; }
.pill-list li { padding: 3px 10px; font-size: .8rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; }

/* ---------- v2: hero record card and search ---------- */
.specimen, .fact-panel { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.7); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow-md); color: inherit; text-decoration: none; min-width: 0; }
a.specimen:hover { border-color: var(--brand-line); }
.specimen__kicker, .fact-panel__title { display: block; font-family: var(--font-label); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin: 0 0 6px; }
.specimen__title { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; line-height: 1.2; margin-bottom: 10px; color: var(--ink); overflow-wrap: anywhere; }
.specimen dl, .fact-panel dl { margin: 0; font-size: .88rem; }
.specimen dl > div, .fact-panel dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px dashed var(--border); }
.specimen dt, .fact-panel dt { color: var(--muted); flex: none; max-width: 48%; }
.specimen dd, .fact-panel dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.specimen__go { display: inline-flex; align-items: center; gap: 6px; padding-top: 10px; font-size: .86rem; font-weight: 600; color: var(--link); }
.fact-panel__note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.hero--record { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(22px, 4vw, 56px); align-items: start; padding-top: clamp(22px, 3vw, 36px); padding-bottom: clamp(18px, 2.5vw, 28px); }
.hero--record h1 { font-size: clamp(1.95rem, 1.3rem + 2.5vw, 3.2rem); max-width: 20ch; overflow-wrap: anywhere; }
@media (max-width: 860px) { .hero--record { grid-template-columns: minmax(0, 1fr); } }
.site-search { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-md); color: var(--muted); }
.site-search input[type="search"] { border: 0; background: transparent; padding: 6px 2px; min-height: 36px; min-width: 0; box-shadow: none; }
.site-search .btn { flex: none; }
.trust-row { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; color: var(--muted); }
.trust-row li { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.trust-row .icon { color: var(--link); }

/* ---------- v2: check cards ---------- */
.check-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.check-card { position: relative; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.4); }
.check-card h3 { margin: 12px 0 6px; }
.check-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.check-card__n { position: absolute; right: 16px; top: 8px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.9rem; color: var(--brand-line); }

/* ---------- v2: bars ---------- */
.bars { display: grid; gap: 2px; }
.bars__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 6px; text-decoration: none; color: inherit; border-radius: var(--radius); }
.bars__row:hover { background: var(--surface-2); }
.bars__name { font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.bars__track { display: block; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bars__fill { display: block; height: 100%; background: color-mix(in oklab, var(--brand) 62%, var(--surface)); border-radius: 999px; }
.bars__value { font-size: .82rem; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 640px) { .bars__row { grid-template-columns: minmax(0, 1fr) auto; } .bars__track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- v2: explorer + search ---------- */
.explorer__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.explorer__search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding-left: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); }
.explorer__search input[type="search"] { border: 0; background: transparent; box-shadow: none; padding-left: 0; min-width: 0; }
.explorer__bar select { flex: 0 1 200px; width: auto; min-width: 140px; font-size: .9rem; }
.explorer__count { font-size: .84rem; color: var(--muted); margin: 8px 0 12px; }
.explorer__empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { margin: 0; border-bottom: 1px solid var(--border); }
.search-results a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 2px; text-decoration: none; font-weight: 600; }
.search-results span { font-size: .8rem; color: var(--muted); font-weight: 400; }

/* ---------- v2: record page layout ---------- */
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 4vw, 52px); align-items: start; }
.layout-side .table-wrap { margin-top: 0; }
@media (max-width: 900px) { .layout-side { grid-template-columns: minmax(0, 1fr); } }
.side-block { margin-bottom: 22px; }
.side-block__title { font-family: var(--font-label); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.source-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.source-list li { margin: 0; border-top: 1px solid var(--border); }
.source-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; text-decoration: none; overflow-wrap: anywhere; }
.link-rows { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.link-rows li { margin: 0; border-bottom: 1px solid var(--border); }
.link-rows a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-rows a:hover { color: var(--link); }
.compare-table td { min-width: 130px; }

/* ---------- v2: closing band ---------- */
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: clamp(22px, 3.2vw, 34px); background: var(--footer-bg); color: rgba(246,247,248,.82); border-radius: calc(var(--radius) * 1.7); }
.band h2 { color: #fff; margin: 0 0 .3em; }
.band p { margin: 0; max-width: 62ch; }
.band .btn--primary { background: #fff; color: #111; }
@media (max-width: 720px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.attribution { font-size: .8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .lg-buybar, .aside, .nav-toggle { display: none !important; } body { padding: 0; background: #fff; } }

/* =====================================================================
   landergen styles: component variants and layout families.
   A family is chosen in site.json (theme.style) and set as body[data-style].
   "classic" adds nothing here, so sites built before styles look the same.
   Rules: only kit variables for color; every family must work at 375px.
   ===================================================================== */

/* ---------- image slots (generated art now, provider photos later) ---------- */
.art { position: relative; display: block; overflow: hidden; width: 100%; background: var(--brand-soft); color: var(--brand); border-radius: calc(var(--radius) * 1.2); }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__label { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.05rem; letter-spacing: .02em; color: var(--brand-ink); background: var(--brand); padding: 2px 9px; border-radius: var(--radius); }
.art__credit { position: absolute; right: 6px; bottom: 6px; font-size: .68rem; background: rgba(0,0,0,.55); color: #fff; padding: 1px 6px; border-radius: 4px; }
.art__credit a { color: #fff; }
.art--panel { border-radius: calc(var(--radius) * 1.7); box-shadow: var(--shadow-md); }
.art--panel .art__label { font-size: 1.3rem; left: 18px; bottom: 16px; padding: 4px 12px; }
.hero .art--panel { min-height: 220px; }
.art--photo { margin: 0; background: var(--surface-2); }
.art--photo .art__credit { max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.data-card__cover .art--photo .art__credit, .group-card--art .art--photo .art__credit { display: none; } /* small slots: every credit is on /image-credits/ */

/* hero photo: photo-only, added after the home page hero when a checked photo exists */
.hero-photo { padding: 0 var(--pad-x); }
.hero:has(+ .hero-photo) { padding-bottom: clamp(18px, 2.6vw, 32px); }
.art--hero { max-height: 440px; border-radius: calc(var(--radius) * 1.7); box-shadow: var(--shadow-md); }
@media (max-width: 640px) { .art--hero { aspect-ratio: 4 / 3 !important; } }
[data-style="ledger"] .art--hero { border-radius: 0; box-shadow: none; border: 1px solid var(--border); }
[data-style="instrument"] .art--hero { border-radius: 4px; box-shadow: 0 0 0 1px var(--border); }
[data-style="magazine"] .art--hero { border-radius: 0; box-shadow: none; }

/* ---------- card variants ---------- */
.data-card__cover { display: block; margin: -16px -18px 4px; }
.data-card__cover .art { border-radius: calc(var(--radius) * 1.4) calc(var(--radius) * 1.4) 0 0; }

/* rows: a scannable list, one record per line */
.data-grid--rows, .data-grid--ranked { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border); }
.data-grid--rows .data-card, .data-grid--ranked .data-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.2fr) auto; grid-template-areas: "kicker facts go" "name facts go";
  column-gap: 24px; row-gap: 2px; align-items: center; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; background: transparent;
}
.data-grid--rows a.data-card:hover, .data-grid--ranked a.data-card:hover { transform: none; box-shadow: none; background: var(--surface-2); }
.data-grid--rows .data-card__kicker, .data-grid--ranked .data-card__kicker { grid-area: kicker; align-self: end; }
.data-grid--rows .data-card h3, .data-grid--ranked .data-card h3 { grid-area: name; align-self: start; }
.data-grid--rows .data-card__facts, .data-grid--ranked .data-card__facts { grid-area: facts; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.data-grid--rows .data-card__facts > div, .data-grid--ranked .data-card__facts > div { display: block; border: 0; padding: 0; }
.data-grid--rows .data-card__facts dt, .data-grid--ranked .data-card__facts dt { max-width: none; font-size: .74rem; }
.data-grid--rows .data-card__facts dd, .data-grid--ranked .data-card__facts dd { text-align: left; }
.data-grid--rows .data-card__go, .data-grid--ranked .data-card__go { grid-area: go; margin: 0; padding: 0; font-size: 0; gap: 0; }
.data-grid--rows .data-card__go .icon, .data-grid--ranked .data-card__go .icon { width: 18px; height: 18px; }
/* ranked: numbered by the stated sort; hidden rows (explorer filter) are not counted */
.data-grid--ranked { counter-reset: rank; }
.data-grid--ranked .data-card { counter-increment: rank; grid-template-columns: 3.2rem minmax(0, 1.2fr) minmax(0, 2.2fr) auto; grid-template-areas: "num kicker facts go" "num name facts go"; }
.data-grid--ranked .data-card::before { content: counter(rank, decimal-leading-zero); grid-area: num; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.7rem; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .data-grid--rows .data-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kicker go" "name go" "facts facts"; }
  .data-grid--ranked .data-card { grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: "num kicker go" "num name go" "facts facts facts"; }
  .data-grid--rows .data-card__facts, .data-grid--ranked .data-card__facts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 8px; }
}
/* compact: dense small tiles */
.data-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.data-grid--compact .data-card { padding: 12px 14px; gap: 4px; }
.data-grid--compact .data-card h3 { font-size: .98rem; }
.data-grid--compact .data-card__facts > div:nth-child(n+2) { display: none; }
.data-grid--compact .data-card__go { display: none; }
/* covers: image-led cards */
.data-grid--covers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.data-grid--covers .data-card { padding-top: 16px; overflow: hidden; }

/* ---------- group variants ---------- */
.link-rows--count a { font-weight: 500; }
.link-rows__n { font-size: .82rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
.link-rows--count { columns: 2 260px; column-gap: 32px; }
.link-rows--count li { break-inside: avoid; }
.chip-list--lg a { padding: 8px 16px; font-size: .92rem; }
.group-grid--art { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.group-card--art { display: flex; flex-direction: column; gap: 4px; padding: 0 0 12px; overflow: hidden; }
.group-card--art .art { border-radius: 0; margin-bottom: 8px; }
.group-card--art .group-card__name, .group-card--art .group-card__count { padding-inline: 14px; }
.fact-panel__cover { display: block; margin: calc(-1 * clamp(18px, 2.4vw, 26px)) calc(-1 * clamp(18px, 2.4vw, 26px)) 16px; }
.fact-panel__cover .art { border-radius: calc(var(--radius) * 1.7) calc(var(--radius) * 1.7) 0 0; }

/* =====================================================================
   LEDGER: a dense reference index. Rules instead of boxes, no shadows,
   compact type, light footer.
   ===================================================================== */
[data-style="ledger"] { --shadow-sm: none; --shadow-md: none; }
[data-style="ledger"] .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 2px solid var(--ink); }
[data-style="ledger"] .site-header__inner { min-height: 56px; }
[data-style="ledger"] .brand__mark { border-radius: 2px; }
[data-style="ledger"] .site-nav a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
[data-style="ledger"] h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); max-width: 24ch; }
[data-style="ledger"] .hero, [data-style="ledger"] .hero--wash { background: none; border-bottom: 1px solid var(--border); padding-block: clamp(28px, 3.6vw, 48px) clamp(22px, 3vw, 36px); }
[data-style="ledger"] .section { padding-block: clamp(22px, 3vw, 36px); }
[data-style="ledger"] .head-row { border-bottom: 0; border-top: 2px solid var(--ink); padding: 10px 0 0; }
[data-style="ledger"] .head-row h2 { font-family: var(--font-label); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
[data-style="ledger"] .stats-strip { border: 1px solid var(--border); padding: 0; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
[data-style="ledger"] .stats-strip__item { padding: 14px 16px; border-right: 1px solid var(--border); }
[data-style="ledger"] .stats-strip__value { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
[data-style="ledger"] .data-card, [data-style="ledger"] .group-card, [data-style="ledger"] .check-card, [data-style="ledger"] .card, [data-style="ledger"] .specimen, [data-style="ledger"] .fact-panel, [data-style="ledger"] .table-wrap { border-radius: 2px; }
[data-style="ledger"] .band { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 2px; }
[data-style="ledger"] .band h2 { color: var(--ink); }
[data-style="ledger"] .band .btn--primary { background: var(--brand); color: var(--brand-ink); }
[data-style="ledger"] .site-footer { background: var(--surface-2); color: var(--muted); border-top: 2px solid var(--ink); }
[data-style="ledger"] .topbar { background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--border); }

/* =====================================================================
   MAGAZINE: editorial, image-led. Centered masthead, big headline,
   cover images, airy sections, light footer.
   ===================================================================== */
@media (min-width: 861px) {
  [data-style="magazine"] .site-header__inner { flex-direction: column; justify-content: center; gap: 2px; padding-block: 14px 4px; }
  [data-style="magazine"] .brand { font-size: 1.6rem; }
  [data-style="magazine"] .site-nav { border-top: 1px solid var(--border); padding-top: 4px; }
}
[data-style="magazine"] .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; position: relative; }
[data-style="magazine"] .hero, [data-style="magazine"] .hero--wash { background: none; border-bottom: 0; text-align: center; padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); }
[data-style="magazine"] .hero h1 { margin-inline: auto; max-width: 18ch; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem); }
[data-style="magazine"] .hero .lede { margin-inline: auto; }
[data-style="magazine"] .hero .actions, [data-style="magazine"] .hero .trust-row { justify-content: center; }
[data-style="magazine"] .hero .site-search { margin-inline: auto; }
[data-style="magazine"] .hero--split { text-align: left; }
[data-style="magazine"] .hero--split h1, [data-style="magazine"] .hero--split .lede, [data-style="magazine"] .hero--split .site-search { margin-inline: 0; }
[data-style="magazine"] .hero--split .actions, [data-style="magazine"] .hero--split .trust-row { justify-content: flex-start; }
[data-style="magazine"] .section { padding-block: clamp(36px, 5vw, 64px); }
[data-style="magazine"] .head-row { border-bottom: 0; justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 6px; }
[data-style="magazine"] .head-row h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
[data-style="magazine"] .head-row h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--brand); margin: 0 auto 14px; }
[data-style="magazine"] .stats-strip { border: 0; text-align: center; }
[data-style="magazine"] .stats-strip__item + .stats-strip__item { border-left: 1px solid var(--border); }
[data-style="magazine"] .data-card { border-color: transparent; box-shadow: none; background: transparent; padding-inline: 0; }
[data-style="magazine"] .data-card__cover { margin: 0 0 8px; }
[data-style="magazine"] .data-card__cover .art { border-radius: calc(var(--radius) * 1.4); }
[data-style="magazine"] .data-grid--covers .data-card { padding-top: 0; }
[data-style="magazine"] a.data-card:hover { transform: none; box-shadow: none; }
[data-style="magazine"] a.data-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
[data-style="magazine"] .data-card h3 { font-size: 1.2rem; }
[data-style="magazine"] .band { background: var(--brand-soft); color: var(--ink); text-align: center; grid-template-columns: minmax(0, 1fr); justify-items: center; }
[data-style="magazine"] .band h2 { color: var(--ink); }
[data-style="magazine"] .band p { margin-inline: auto; }
[data-style="magazine"] .band .btn--primary { background: var(--brand); color: var(--brand-ink); }
[data-style="magazine"] .site-footer { background: var(--surface-2); color: var(--muted); border-top: 1px solid var(--border); }

/* light footers: the kit footer sets light-on-dark colors locally; inherit the page colors instead */
[data-style="ledger"] .site-footer, [data-style="magazine"] .site-footer { --ink: inherit; --muted: inherit; --link: inherit; --border: inherit; }
[data-style="ledger"] .site-footer .brand, [data-style="magazine"] .site-footer .brand { color: var(--ink); }

/* =====================================================================
   RANKED: a bold comparison site. Dark hero band, numbered rows,
   pill tags, heavy type.
   ===================================================================== */
[data-style="ranked"] .hero, [data-style="ranked"] .hero--wash {
  --ink: #f6f7f8; --muted: rgba(246,247,248,.76); --link: #fff; --border: rgba(255,255,255,.16); --surface-2: rgba(255,255,255,.06);
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in oklab, var(--brand) 40%, transparent), transparent 60%), var(--footer-bg); color: var(--ink); border-bottom: 0;
}
[data-style="ranked"] .hero h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); }
[data-style="ranked"] .hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
[data-style="ranked"] .hero .site-search { background: #fff; color: #555; }
[data-style="ranked"] .hero .site-search input { color: #111; }
[data-style="ranked"] .hero .specimen, [data-style="ranked"] .hero .fact-panel, [data-style="ranked"] .hero .card, [data-style="ranked"] .hero .tool__panel, [data-style="ranked"] .hero .tool__result, [data-style="ranked"] .hero .stats-strip__item, [data-style="ranked"] .hero .check-card, [data-style="ranked"] .hero .data-card { --ink: #14181d; --muted: #4b5563; --link: #1f2937; --border: #e5e7eb; --surface-2: #f3f4f6; background: #fff; color: var(--ink); }
[data-style="ranked"] .hero .specimen__kicker { color: #4b5563; }
[data-style="ranked"] .hero .trust-row .icon { color: #fff; }
[data-style="ranked"] .head-row { border-bottom: 3px solid var(--ink); }
[data-style="ranked"] .head-row h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem); }
[data-style="ranked"] .stats-strip { border: 0; gap: 12px; }
[data-style="ranked"] .stats-strip__item { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.4); padding: 14px 16px; }
[data-style="ranked"] .data-card__kicker { display: inline-block; width: fit-content; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); }
[data-style="ranked"] .data-grid--rows .data-card h3, [data-style="ranked"] .data-grid--ranked .data-card h3 { font-size: 1.12rem; }
[data-style="ranked"] .group-card { border-radius: 999px; padding: 8px 16px 8px 8px; }

/* =====================================================================
   INSTRUMENT: tool first. Dark header, grid hero, mono numbers, tiles.
   ===================================================================== */
[data-style="instrument"] .site-header { --ink: #f3f5f7; --muted: rgba(243,245,247,.72); --surface: var(--footer-bg); --surface-2: rgba(255,255,255,.08); --border: rgba(255,255,255,.12); background: var(--footer-bg); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-style="instrument"] .site-header .nav-toggle { background: transparent; }
[data-style="instrument"] .hero, [data-style="instrument"] .hero--wash {
  background-color: var(--surface-2);
  background-image: linear-gradient(color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 24px 24px; border-bottom: 1px solid var(--border);
}
[data-style="instrument"] .stats-strip__value, [data-style="instrument"] .result-value, [data-style="instrument"] .num, [data-style="instrument"] .bars__value { font-family: 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: -.02em; }
[data-style="instrument"] .stats-strip { border: 0; gap: 10px; }
[data-style="instrument"] .stats-strip__item { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--brand); padding: 14px 16px; }
[data-style="instrument"] .head-row h2 { font-size: 1.2rem; }
[data-style="instrument"] .head-row h2::before { content: "/ "; color: var(--brand); }
[data-style="instrument"] .tool__panel, [data-style="instrument"] .tool__result { box-shadow: 0 0 0 1px var(--border), 0 20px 40px -24px color-mix(in oklab, var(--ink) 30%, transparent); }
[data-style="instrument"] .bars__track { height: 14px; border-radius: 2px; }
[data-style="instrument"] .bars__fill { border-radius: 2px; background: var(--brand); }

/* =====================================================================
   LOCAL: warm local service or aggregator. Brand header, image hero
   panel, thumbnails on cards, round shapes.
   ===================================================================== */
[data-style="local"] .site-header { --ink: var(--brand-ink); --muted: var(--brand-ink); --surface: var(--brand); --surface-2: color-mix(in oklab, var(--brand-ink) 12%, var(--brand)); --border: color-mix(in oklab, var(--brand-ink) 22%, var(--brand)); background: var(--brand); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
[data-style="local"] .site-header .brand__mark { background: var(--brand-ink); color: var(--brand); }
[data-style="local"] .site-header .nav-toggle { background: transparent; }
[data-style="local"] .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-ink); }
[data-style="local"] .hero, [data-style="local"] .hero--wash { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); border-bottom: 0; }
[data-style="local"] .trust-row li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
[data-style="local"] .data-card, [data-style="local"] .group-card, [data-style="local"] .check-card, [data-style="local"] .specimen, [data-style="local"] .fact-panel { border-radius: 16px; }
[data-style="local"] .data-grid--covers .data-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "cover kicker" "cover name" "facts facts" "go go"; column-gap: 14px; row-gap: 4px; align-content: start; }
[data-style="local"] .data-grid--covers .data-card__cover { grid-area: cover; margin: 0; align-self: start; }
[data-style="local"] .data-grid--covers .data-card__cover .art { border-radius: 12px; aspect-ratio: 1 / 1 !important; }
[data-style="local"] .data-grid--covers .data-card__cover .art__label { left: 50%; bottom: 50%; transform: translate(-50%, 50%); font-size: 1rem; }
[data-style="local"] .data-grid--covers .data-card__kicker { grid-area: kicker; align-self: end; }
[data-style="local"] .data-grid--covers .data-card h3 { grid-area: name; }
[data-style="local"] .data-grid--covers .data-card__facts { grid-area: facts; margin-top: 8px; }
[data-style="local"] .data-grid--covers .data-card__go { grid-area: go; }
[data-style="local"] .head-row { border-bottom: 0; }
[data-style="local"] .head-row h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
[data-style="local"] .stats-strip { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
[data-style="local"] .btn { border-radius: 999px; }

/* centered heroes: the eyebrow sits on its own line above the headline */
.hero--center .eyebrow, [data-style="magazine"] .hero:not(.hero--split) .eyebrow { display: flex; justify-content: center; }

/* image credits page */
.credit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.credit-list li { display: flex; gap: 12px; align-items: center; font-size: .85rem; color: var(--muted); }
.credit-list img { flex: none; width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
