/* =====================================================================
   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);
  --stack: clamp(28px, 3.4vw, 44px);   /* gap before a new heading block inside a section */
  --stack-sm: clamp(18px, 2.2vw, 26px); /* gap between two stacked content blocks */
  --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 {
  overflow-wrap: break-word; /* a long domain name ("NetworkManagementTool.com") breaks only when it cannot fit */
  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; padding-block: 8px; /* room above and below a tall logo */
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.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;
  min-width: 0; /* a long name shrinks (ellipsis below) so the menu button stays fully on screen */
}
.site-header .brand > span:last-child:not(.brand__mark) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .site-header .brand { font-size: 1.02rem; gap: 8px; } }
.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; white-space: normal; text-align: center; overflow-wrap: anywhere; } }
.aff-cta__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
/* Compare-page buttons carry full product names, so they wrap at every width. */
.aff-cta--pair .btn--lg { max-width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.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; }
/* border-box: a plate's padding stays inside the size limit, so the logo (plate included) is at most
   48px high and the 64px header keeps 8px above and below it. */
.brand__logo { display: block; width: auto; height: auto; max-height: 40px; max-width: 220px; box-sizing: border-box; background: var(--logo-bg, transparent); padding: var(--logo-pad, 0); border-radius: calc(var(--radius) + 2px); }
.brand__logo--compact { max-height: 48px; }
.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: 36px; max-width: 170px; } .brand__logo--compact { max-height: 44px; } }
/* Logo contrast. body[data-header-tone] is "<header tone in light scheme>-<tone in dark scheme>", worked
   out by the build from the style, header variant, theme mode and brand (theme.ts headerTone). The
   Worker marks each logo's ink (--ink-dark or --ink-light, from the logo check). A logo is never
   blended into, or left bare on, a header of its own tone: a white-background or dark-ink logo on a
   dark header sits on a white plate; a transparent light-ink logo on a light header sits on a dark
   plate. (A white-background logo keeps that background, so it never gets a dark plate.) */
[data-header-tone^="dark-"] .site-header .brand__logo:is(.brand__logo--blend, .brand__logo--ink-dark):not(.brand__logo--plate) { mix-blend-mode: normal; background: #fff; padding: 4px 8px; }
[data-header-tone^="dark-"] .site-header .brand__logo--ink-light:not(.brand__logo--blend, .brand__logo--plate) { background: transparent; padding: 0; }
[data-header-tone^="light-"] .site-header .brand__logo--ink-light:not(.brand__logo--plate, .brand__logo--blend) { mix-blend-mode: normal; background: #14181d; padding: 4px 8px; }
/* The same rules for the dark colour scheme are in theme.css (theme.ts LOGO_DARK_SCHEME), only for
   "auto" sites: only they change header tone with the OS, and a dark-scheme block here would make
   every light-only site look like it has a dark mode to check. */
.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; flex: none; min-height: 44px;
}
.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 :where(h1) { max-width: 16ch; }
@media (max-width: 640px) { .hero :where(h1) { max-width: none; } } /* on phones the column is the limit; 16ch could cut a one-line domain */
.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 :where(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;
}
/* Kit rules for plain elements inside components weigh one class (".card :where(p)"), so a site's own
   class on that element (".poster-stub__name") wins, while a bare "p {}" in site.css still does not. */
.card :where(h3) { margin-bottom: .4em; }
.card :where(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 :where(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 :where(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;
}
/* On phones a long label wraps, so a button is never wider than its column (short labels stay on one line). */
@media (max-width: 640px) { .btn { white-space: normal; max-width: 100%; text-align: center; } }
.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; }
/* Set by kit.js when a tool form is submitted: a short ring so the eye finds the result. */
@keyframes lg-flash { from { box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 55%, transparent); } to { box-shadow: 0 0 0 14px transparent; } }
.lg-flash { animation: lg-flash 1.2s ease-out; outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .lg-flash { outline-width: 3px; } } /* no animation: the outline alone shows it */
.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; }
/* A table inside a card or panel belongs to that box: no second frame (border, shadow, fill) around
   it, and the outer cells line up with the box's text. A site's own cell padding of 0 then cannot put
   text against a border, because there is none. */
:where(.card, .specimen, .fact-panel, .tool__panel, .tool__result-body, .callout, .band) .table-wrap { border: 0; border-radius: 0; background: transparent; box-shadow: none; margin: .75rem 0 0; }
:where(.card, .specimen, .fact-panel, .tool__panel, .tool__result-body, .callout, .band) .table-wrap :where(caption, th:first-child, td:first-child) { padding-left: 0; }
:where(.card, .specimen, .fact-panel, .tool__panel, .tool__result-body, .callout, .band) .table-wrap :where(th:last-child, td:last-child) { padding-right: 0; }
/* (These weigh one class, so a site that frames the table itself, ".glance th { padding: 10px 12px }",
   keeps its padding.) When text still touches the kit's frame (a site set its cells to padding 0, or
   stacks rows as blocks on phones), kit.js measures it and adds --inset: room inside the frame. */
.table-wrap--inset { padding-inline: 12px; }

/* ---------- 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 ---------- */
/* The text column stops at a readable measure (36em, about 70-80 characters; "ch" is the width of a
   wide "0", so 72ch gave ~100-character lines in some fonts) and the aside takes the rest of the row
   (at least 300px), so on wide screens there is no empty gap between the text and the aside. */
.article-layout { padding: 28px var(--pad-x) clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 36em) minmax(300px, 1fr); 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; }
.article-layout .prose { max-width: 36em; } /* also when the aside moves under the text (one column) */
.prose h2 { margin-top: 1.8em; 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: 6px 0 6px 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 :where(h3) { font-size: 1.05rem; }
.aside-cta :where(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 :where(h2) { margin-bottom: .3em; }
.lg-forsale :where(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,.8); --border: rgba(255,255,255,.16); --link: #fff; background: var(--footer-bg); padding: 52px var(--pad-x) 84px; /* room for the buy bar */ font-size: .94rem; line-height: 1.6; color: var(--muted); margin-top: clamp(24px, 4vw, 48px); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 48px; }
@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: 8px; }
.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: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer .brand { font-size: 1.05rem; margin-bottom: 10px; }
.site-footer p { max-width: 62ch; }
/* Footer layouts (data-footer, picked per domain in theme.ts). Same text in each; only the layout differs. */
.site-footer__inline { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer .site-footer__inline li { margin: 0; }
.site-footer__inline a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer__buy { margin: 0; }
.site-footer--band .site-footer__buy .lg-buy, .site-footer--centered .site-footer__buy .lg-buy {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  background: #fff; color: #111; font-weight: 650; text-decoration: none;
}
.site-footer--band .site-footer__sale {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: clamp(18px, 3vw, 28px); margin-bottom: 40px;
  border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); background: color-mix(in oklab, var(--ink) 6%, transparent);
}
.site-footer--band .site-footer__sale p { margin: 0; color: var(--ink); font-size: 1.02rem; }
@media (min-width: 761px) { .site-footer--band .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.site-footer--centered { text-align: center; }
.site-footer--centered p { margin-inline: auto; }
.site-footer--centered .site-footer__inline { justify-content: center; margin: 14px 0 26px; }
.site-footer--centered .site-footer__sale { max-width: 600px; margin: 0 auto 22px; padding: 22px 0; border-block: 1px solid var(--border); }
.site-footer--centered .site-footer__sale p { margin-bottom: 14px; color: var(--ink); }
.site-footer--centered .site-footer__sale p:last-child { margin-bottom: 0; }
.site-footer--centered .site-footer__bottom { flex-direction: column; align-items: center; }

/* ---------- 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__note--short { display: none; }
.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); }
/* Phones: the short note under the name. */
@media (max-width: 560px) { .lg-buybar__text { flex-direction: column; gap: 0; } .lg-buybar__note--long { display: none; } .lg-buybar__note--short { display: inline; font-size: .78rem; } }

/* ---------- 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 ---------- */
/* The notice strip: a thin, quiet line above the header in the page tone (not the dark footer tone),
   centred so it does not leave an empty right half; muted text keeps 4.5:1 on surface-2. */
.topbar { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px var(--pad-x); background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--border); font-size: .74rem; line-height: 1.4; text-align: center; }
.topbar .icon { flex: none; opacity: .8; }
.page-head { padding: clamp(22px, 3.2vw, 40px) var(--pad-x) 18px; }
.page-head :where(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%, 130px), 1fr)); gap: 18px 28px; padding: 20px 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: .82rem; font-weight: 500; line-height: 1.35; letter-spacing: .02em; color: var(--muted); margin-top: 6px; }

/* ---------- 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 card with a buy link: the wrapper is the grid item (and what the filter hides). */
.data-card-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.data-card-wrap[hidden] { display: none; }
.data-card-wrap > .data-card { flex: 1 1 auto; }
.data-card__buy a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--brand-line); border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); font-weight: 600; font-size: .9rem; text-align: center; overflow-wrap: anywhere; text-decoration: none; }
.data-card__buy a:hover { border-color: var(--brand); background: color-mix(in oklab, var(--brand-soft) 70%, var(--brand)); }
.data-grid__note { margin: 0 0 10px; }
/* rows and ranked lists: the row line goes under the buy link, so the link belongs to its own row; the link stays compact. */
.data-grid--rows .data-card-wrap, .data-grid--ranked .data-card-wrap { gap: 0; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.data-grid--rows .data-card-wrap > .data-card, .data-grid--ranked .data-card-wrap > .data-card { border-bottom: 0; }
.data-grid--rows .data-card__buy, .data-grid--ranked .data-card__buy { display: flex; justify-content: flex-end; padding: 0 6px; }
.data-grid--rows .data-card__buy a, .data-grid--ranked .data-card__buy a { min-height: 36px; padding: 6px 14px; }
/* Dark heroes change --ink; the buy link keeps dark text on its light tint. */
.hero--ink .data-card__buy a { color: #14181d; }
a.data-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.data-card :where(h3) { margin: 0; overflow-wrap: break-word; }
.data-card__kicker { font-family: var(--font-label); font-size: .68rem; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); overflow-wrap: break-word; }
.data-card__facts { margin: 0; display: grid; gap: 6px; font-size: .86rem; }
/* Cards are narrow: the label sits above its value, so a value gets the full width and wraps at spaces. */
.data-card__facts > div { display: block; padding-top: 6px; border-top: 1px dashed var(--border); }
.data-card__facts dt { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.data-card__facts dd { margin: 0; font-weight: 600; line-height: 1.4; min-width: 0; overflow-wrap: break-word; font-variant-numeric: tabular-nums; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.data-card__facts dd a, .specimen dd a, .fact-panel dd a { overflow-wrap: anywhere; } /* web addresses have no spaces to wrap at */
.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); }
@media (max-width: 640px) { .chip-list a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; } } /* tap size on phones */

/* 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: break-word; }
.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 :where(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 :where(h3) { margin: 12px 0 6px; }
.check-card :where(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 :where(h2) { color: #fff; margin: 0 0 .3em; }
.band :where(p) { margin: 0; max-width: 62ch; }
.band .btn--primary { background: #fff; color: #111; }
@media (max-width: 720px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- vertical rhythm ---------- */
/* One vertical rhythm for blocks stacked inside a section: a heading row that follows any block
   (a search box, a stats strip, a note) gets the same clear gap, and two content blocks never
   touch. These rules come after the components so they win over each component's margin: 0. */
* + .head-row, * + .section__head { margin-top: var(--stack); }
:is(.site-search, .stats-strip, .data-grid, .group-grid, .grid-2, .grid-3, .grid-4, .check-grid, .bars, .chip-list, .link-rows, .record-meta, .explorer, .table-wrap) + :is(.data-grid, .group-grid, .grid-2, .grid-3, .grid-4, .check-grid, .bars, .stats-strip, .actions, .band, .table-wrap, .lg-forsale) { margin-top: var(--stack-sm); }
:is(.data-grid, .group-grid, .grid-2, .grid-3, .grid-4, .check-grid, .bars, .record-meta, .table-wrap, .explorer) + .note { margin-top: 14px; }
.hero:not(.hero--split, .hero--record) > .hero__body + * { margin-top: var(--stack-sm); } /* a stacked hero: the tool or panel under the text */

/* ---------- 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; } }
/* Partner offers line on a list page (per-brand programs, src/programs.ts). */
.partner-line { margin: 0 var(--pad-x) 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.partner-line__label { margin: 0 0 8px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.partner-line .chip-list { margin-bottom: 6px; }
.partner-line .note { margin: 0; font-size: .82rem; }

/* =====================================================================
   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 */
/* The hero keeps its own, balanced padding (most heroes end in a band or a rule), and the photo
   starts a clear step below it instead of touching the band. */
.hero-photo { padding: clamp(20px, 3vw, 36px) var(--pad-x) 0; }
/* A one-column hero followed by its photo (the build marks it .hero--photo-side): on wide screens the
   photo fills the hero's empty right side. main becomes a two-column grid only on such pages; the hero
   band still spans the full width (it keeps its background) and reserves the right column, and the
   photo sits in that column in the same row. Phones and magazine heroes keep the photo below. */
@media (min-width: 980px) {
  main:has(> .hero--photo-side + .hero-photo):not([data-style="magazine"] main) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); }
  main:has(> .hero--photo-side + .hero-photo):not([data-style="magazine"] main) > * { grid-column: 1 / -1; min-width: 0; }
  main:has(> .hero--photo-side + .hero-photo):not([data-style="magazine"] main) > .hero--photo-side { grid-row: 1; padding-right: calc(44% + clamp(24px, 3vw, 48px)); }
  main:has(> .hero--photo-side + .hero-photo):not([data-style="magazine"] main) > .hero-photo { grid-row: 1; grid-column: 2; align-self: center; position: relative; padding: clamp(24px, 3vw, 40px) max(var(--gutter), calc((100vw - var(--container)) / 2)) clamp(24px, 3vw, 40px) 0; } /* --pad-x would use this column's width */
  main:has(> .hero--photo-side + .hero-photo):not([data-style="magazine"] main) > .hero-photo .art--hero { aspect-ratio: 4 / 3 !important; max-height: 440px; }
}

.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); }

/* =====================================================================
   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;
}
/* The buy card in the dark band gets a dark, see-through face, so the light text it inherits is readable
   (it painted var(--surface), white on white). Same weight as the kit rule and before site.css, so a site's own buy card style wins. */
:where([data-style="ranked"] .hero) .aff-cta { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); box-shadow: none; }
[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, [data-style="ranked"] .hero .data-card__buy { --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 li > span { min-width: 0; overflow-wrap: anywhere; } /* credit lines can hold a long web address */
.credit-list img { flex: none; width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }

/* =====================================================================
   SHELL VARIANTS: picked per domain in theme.ts (pickVariants) and set on
   body as data-header, data-footer and data-parts. Every attribute test
   sits in :where(), so these rules weigh no more than the kit rule they
   change: a style family ([data-style] ...) or a site.css rule still wins.
   ===================================================================== */
/* header "float": the bar is an inset rounded panel over the page */
:where([data-header="float"]) .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; padding: 10px var(--pad-x); }
:where([data-header="float"]) .site-header__inner {
  padding-inline: 18px 10px; min-height: 58px;
  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: 1px solid var(--border); border-radius: calc(var(--radius) * 2 + 4px); box-shadow: var(--shadow-md);
}
:where([data-header="float"]) .breadcrumb { margin-top: 10px; }
/* The panel's backdrop-filter makes it the menu's containing block, so left/right 0 line up with the panel. */
@media (max-width: 860px) {
  :where(.js [data-header="float"]) .site-header .site-nav { left: 0; right: 0; top: calc(100% + 6px); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); }
}
@media (max-width: 420px) { :where([data-header="float"]) .site-header { padding: 8px 12px; } :where([data-header="float"]) .site-header__inner { padding-inline: 12px 8px; } }
/* header "line": a brand rule on top and small-caps nav labels */
:where([data-header="line"]) .site-header { border-top: 3px solid color-mix(in oklab, var(--brand) 70%, var(--ink)); }
@media (min-width: 861px) { :where([data-header="line"]) .site-nav a { font-family: var(--font-label); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; } }
/* header "solid": dark bar in the footer color (logos get a white tile, as on dark themes) */
:where([data-header="solid"]) .site-header {
  --ink: #f3f5f7; --muted: rgba(243,245,247,.8); --surface: var(--footer-bg); --surface-2: rgba(255,255,255,.08); --border: rgba(255,255,255,.14);
  --logo-blend: normal; --logo-bg: #fff; --logo-pad: 4px 8px;
  background: var(--footer-bg); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none;
}
:where([data-header="solid"]) .site-header .nav-toggle { background: transparent; }
:where([data-header="solid"]) .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }

/* footer tone "light": page colors instead of the dark footer. Ledger and magazine always use it;
   their own footer rules ([data-style] .site-footer, e.g. ledger's 2px top rule) weigh more and win. */
:where([data-footer~="light"]) .site-footer { --ink: inherit; --muted: inherit; --link: inherit; --border: inherit; background: var(--surface-2); color: var(--muted); border-top: 1px solid var(--border); }
:where([data-footer~="light"]) .site-footer .brand { color: var(--ink); }
:where([data-footer~="light"]) :is(.site-footer--band, .site-footer--centered) .site-footer__buy .lg-buy { background: var(--brand); color: var(--brand-ink); }
:where([data-footer~="light"]) .site-footer--band .site-footer__sale { background: var(--surface); }

/* buttons (never the buy bar button: the bar looks the same on every site) */
:where([data-parts~="btn-pill"]) .btn:where(:not(.lg-buybar .btn)) { border-radius: 999px; }
:where([data-parts~="btn-square"]) .btn:where(:not(.lg-buybar .btn)) { border-radius: 2px; font-weight: 700; letter-spacing: .01em; }
:where([data-parts~="btn-arrow"]) a.btn--primary:not(.btn--sm):not(:has(svg)):where(:not(.lg-buybar .btn))::after { content: "\2192"; transition: transform .15s ease; }
:where([data-parts~="btn-arrow"]) a.btn--primary:not(.btn--sm):not(:has(svg)):where(:not(.lg-buybar .btn)):hover::after { transform: translateX(3px); }

/* section heads ("rule" is the kit default: a line under the heading row) */
:where([data-parts~="head-bar"]) .head-row { border-bottom: 0; padding-bottom: 0; }
:where([data-parts~="head-bar"]) .head-row h2::before { content: ""; display: inline-block; width: .28em; height: .9em; margin-right: .45em; vertical-align: -.06em; border-radius: 2px; background: var(--brand); }
:where([data-parts~="head-bar"]) .section__head .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
:where([data-parts~="head-numbered"]) main { counter-reset: lg-head; }
:where([data-parts~="head-numbered"]) .head-row h2::before { counter-increment: lg-head; content: counter(lg-head, decimal-leading-zero); margin-right: .6em; font-family: var(--font-label); font-size: .7em; font-weight: 700; letter-spacing: .04em; vertical-align: .14em; color: var(--link); }

/* card surfaces ("border" is the kit default) */
:where([data-parts~="card-shadow"]) :is(.card, .data-card, .group-card, .check-card):where(:not(.card--brand)) { border-color: color-mix(in oklab, var(--border) 45%, transparent); box-shadow: var(--shadow-md); }
:where([data-parts~="card-tint"]) :is(.card, .data-card, .group-card, .check-card):where(:not(.card--brand)) { background: var(--surface-2); box-shadow: none; }
:where([data-parts~="card-tint"]) :where(.section--alt, .section--brand, .hero, .aside) :is(.card, .data-card, .group-card, .check-card):where(:not(.card--brand)) { background: var(--surface); }

/* =====================================================================
   SITE LOOK: more variety, picked per domain in theme.ts (pickLook) and set
   as body[data-look] tokens ("hero-band nav-pill ..."). "default", "flat",
   "underline", "plain", "standard" add nothing. Rules sit in :where() so
   site.css wins; where a style family has its own rule (local and magazine
   heroes) the variant matches that rule's weight, never more.
   ===================================================================== */
/* hero background (never on a dark .hero--ink or a model-chosen .hero--band) */
:where([data-look~="hero-band"]) .hero:where(:not(.hero--ink, .hero--band)),
[data-style="local"]:where([data-look~="hero-band"]) .hero:where(:not(.hero--ink, .hero--band)) { background: var(--brand-soft); border-bottom: 1px solid var(--brand-line); }
:where([data-look~="hero-plain"]) .hero:where(:not(.hero--ink, .hero--band)) { background: none; border-bottom: 1px solid var(--border); }
:where([data-look~="hero-tint"]) .hero:where(:not(.hero--ink, .hero--band)) { background: linear-gradient(90deg, transparent 0 56%, var(--surface-2) 56% 100%); border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { :where([data-look~="hero-tint"]) .hero:where(:not(.hero--ink, .hero--band)) { background: linear-gradient(180deg, var(--bg), var(--surface-2)); } }
:where([data-look~="hero-pattern"]) .hero:where(:not(.hero--ink, .hero--band)),
:is([data-style="local"], [data-style="magazine"]):where([data-look~="hero-pattern"]) .hero:where(:not(.hero--ink, .hero--band)) {
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in oklab, var(--brand) 24%, transparent) 1.2px, transparent 1.7px), linear-gradient(180deg, var(--brand-wash), var(--bg));
  background-size: 20px 20px, 100% 100%; border-bottom: 1px solid var(--border);
}

/* section bands: every second plain section on a tinted band, or a thin rule between sections */
:where([data-look~="sections-alternate"] main > .section:nth-child(even of .section):not(.section--alt, .section--brand)) { background: var(--surface-2); border-block: 1px solid var(--border); }
:where([data-parts~="card-tint"][data-look~="sections-alternate"] main > .section:nth-child(even of .section)) :is(.card, .data-card, .group-card, .check-card):where(:not(.card--brand)) { background: var(--surface); }
:where([data-look~="sections-divided"] main > .section + .section:not(.section--alt, .section--brand)) {
  background-image: linear-gradient(var(--border), var(--border)); background-repeat: no-repeat;
  background-size: calc(100% - 2 * var(--pad-x)) 1px; background-position: center top;
}

/* desktop nav: the current page as a pill or a dot (phones keep the menu list); 44px tall links */
@media (min-width: 861px) {
  :where([data-look~="nav-pill"], [data-look~="nav-dot"]) .site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  :where([data-look~="nav-pill"]) .site-nav a { border-radius: 999px; padding-inline: 14px; }
  :where([data-look~="nav-pill"]) .site-nav a[aria-current="page"] { box-shadow: none; border-radius: 999px; color: var(--ink); background: color-mix(in oklab, var(--ink) 10%, transparent); }
  :where([data-look~="nav-dot"]) .site-nav a[aria-current="page"] { box-shadow: none; position: relative; color: var(--ink); }
  :where([data-look~="nav-dot"]) .site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
}

/* text links in running text (buttons and link lists keep their own look) */
:where([data-look~="links-thick"] :is(main p, .prose li)) a:where(:not(.btn)) { text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: color-mix(in oklab, var(--link) 55%, transparent); }
:where([data-look~="links-highlight"] :is(main p, .prose li)) a:where(:not(.btn)) {
  /* the thin underline stays: a background alone does not mark a link for everyone (WCAG 1.4.1) */
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  background-image: linear-gradient(color-mix(in oklab, var(--brand) 24%, transparent), color-mix(in oklab, var(--brand) 24%, transparent));
  background-repeat: no-repeat; background-size: 100% .38em; background-position: 0 90%;
}
:where([data-look~="links-highlight"] :is(main p, .prose li)) a:where(:not(.btn)):hover { text-decoration-thickness: 2px; }

/* eyebrow labels */
/* pill text is ink on a faint ink tint (not brand on brand): readable on light, dark and brand heroes */
:where([data-look~="eyebrow-pill"]) .eyebrow { width: fit-content; padding: 3px 10px; border-radius: 999px; color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); border: 1px solid color-mix(in oklab, var(--brand) 45%, transparent); }
:where([data-look~="eyebrow-pill"]) :is(.hero--center, .center) .eyebrow { margin-inline: auto; }
:where([data-look~="eyebrow-line"]) .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
:where([data-look~="eyebrow-muted"]) .eyebrow { color: var(--muted); letter-spacing: .16em; }

/* section heads: a larger scale, or centered heads for whole-width sections */
:where([data-look~="heads-large"]) :is(.section__head, .head-row) h2 { font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.2rem); }
:where([data-look~="heads-center"] main > .section) > .section__head { margin-inline: auto; text-align: center; }
:where([data-look~="heads-center"] main > .section > .section__head) .lede { margin-inline: auto; }
