/* ============================================================
   Watch Brand Index — public editorial design system
   (admin styles live in admin.css)
   ============================================================ */

:root {
  --paper: #f3efe6;
  --paper-raised: #faf7f0;
  --paper-sunk: #ebe6da;
  --ink: #1a1714;
  --ink-soft: #56504699;
  --ink-soft-solid: #565046;
  --ink-faint: #8b8475;
  --line: #ddd5c5;
  --line-strong: #c7bda9;
  --accent: #2f5249;
  --accent-soft: #2f524924;
  --accent-ink: #f7f4ec;
  --shadow: 0 1px 2px rgba(40,34,24,.04), 0 8px 24px -12px rgba(40,34,24,.18);
  --shadow-lg: 0 2px 4px rgba(40,34,24,.05), 0 24px 60px -24px rgba(40,34,24,.30);

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --gap: 28px;
  --radius: 4px;
  --pad-card: 18px;
}

[data-theme="dark"] {
    --paper: #14120d;
    --paper-raised: #1d1a13;
    --paper-sunk: #100e09;
    --ink: #efe8d8;
    --ink-soft: #a59d8b99;
    --ink-soft-solid: #a59d8b;
    --ink-faint: #756d5c;
    --line: #2c2820;
    --line-strong: #3b362b;
    --accent: #6fa392;
    --accent-soft: #2f524933;
    --accent-ink: #14120d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 30px 70px -28px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- Typographic primitives ---- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01";
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding-top: clamp(48px, 6vw, 72px); }

/* ---- Rules / links ---- */
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-strong { border-top: 1px solid var(--line-strong); }
.ulink { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color .2s, color .2s; }
.ulink:hover { border-color: var(--accent); color: var(--accent); }
.link-accent { color: var(--accent); }

/* ---- Buttons / pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: transparent; color: var(--ink-soft-solid);
  transition: all .18s ease; white-space: nowrap; cursor: pointer;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[data-active="true"], .pill[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-solid {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em;
  padding: 12px 20px; border-radius: 100px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); white-space: nowrap;
  transition: transform .15s ease, opacity .2s ease;
}
.btn-solid:hover { opacity: .9; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em;
  padding: 12px 20px; border-radius: 100px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); white-space: nowrap;
  transition: all .18s ease;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---- Cards ---- */
.card {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .2s, transform .2s, box-shadow .25s;
}
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---- Watch face / thumb frame ---- */
.thumb {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: radial-gradient(120% 120% at 50% 8%, var(--paper-raised), var(--paper-sunk));
  border-radius: var(--radius); overflow: hidden;
}
.thumb img, .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 4px 4px; opacity: .6;
}
.thumb-tag {
  position: absolute; left: 12px; bottom: 11px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  color: var(--ink-faint); text-transform: uppercase;
}

/* ---- Spec table ---- */
.spec-grid { width: 100%; border-collapse: collapse; }
.spec-grid td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-grid tr:last-child td { border-bottom: 0; }
.spec-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); width: 44%; }
.spec-v { font-size: 15px; color: var(--ink); }
.spec-v.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Layout helpers ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 250px), 1fr)); gap: var(--gap); }

/* ===== Extracted view styles ===== */

/* ---- Site footer layout ---- */
.site-footer .wrap { padding: 48px 28px 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-brand { max-width: 320px; }
.footer-desc { font-size: 13.5px; color: var(--ink-soft-solid); line-height: 1.55; margin-top: 14px; text-wrap: pretty; }
.footer-eyebrow { margin-bottom: 14px; }
.footer-rule { margin: 34px 0 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-meta { font-size: 11px; color: var(--ink-faint); }

/* ---- Sources footer eyebrow ---- */
.sources-footer .sources-eyebrow { margin-bottom: 8px; }

/* ---- Breadcrumb current item / transparent link ---- */
.breadcrumb-current { color: var(--ink-soft-solid); }
.ulink-clear { border-color: transparent; }

.grid-narrow { --min: 250px; }
.grid-wide   { --min: 330px; }
.two-col { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: clamp(28px,5vw,60px); align-items: start; }
.two-even { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,4vw,56px); align-items: start; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px,3.4vw,40px); }
.stack { display: flex; flex-direction: column; }

/* ---- Cards: watch / brand / caliber ---- */
.watch-card { display: block; overflow: hidden; }
.watch-card .card-pad { padding: var(--pad-card); }
.watch-card h3 { font-size: 22px; }
.watch-card .meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .03em; margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.watch-card .foot { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }

.brand-card { display: block; padding: calc(var(--pad-card) + 6px); }
.brand-card h3 { font-size: 26px; margin-bottom: 6px; }
.brand-card .tagline { font-size: 14.5px; color: var(--ink-soft-solid); margin: 16px 0 18px; line-height: 1.5; }
.brand-card .minis { display: flex; gap: 10px; align-items: center; }
.brand-mini { width: 46px; flex: 0 0 auto; }
.brand-mini .thumb { border-radius: 3px; }

/* ---- Card partials: extracted inline styles ---- */
.watch-card .card-pad-no-bottom { padding-bottom: 0; }
.eyebrow-watch-card { margin-bottom: 7px; }
.card-name-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-price { font-size: 12.5px; color: var(--ink-soft-solid); white-space: nowrap; }
.card-tier { font-size: 11.5px; letter-spacing: .03em; color: var(--ink-soft-solid); }
.card-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-count { font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }
.card-price-span { font-size: 11.5px; color: var(--ink-faint); margin-left: auto; }
.brand-card h3.caliber-name { font-size: 24px; margin-bottom: 6px; }
.caliber-meta-row { font-size: 12px; color: var(--ink-soft-solid); letter-spacing: .02em; margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.caliber-type { font-size: 11.5px; color: var(--ink-faint); margin-top: 12px; }
.cmp-thumb-wrap { max-width: 190px; margin: 0 auto; }
.cmp-side-body { margin-top: 14px; }
.eyebrow-cmp-side { margin-bottom: 6px; }
.cmp-side-name { font-size: 22px; display: inline-block; }
.cmp-side-price { font-size: 12px; color: var(--ink-soft-solid); margin-top: 6px; }

/* ---- Stats ---- */
.stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 34px; line-height: 1; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .03em; margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb .sep { opacity: .5; }

/* ---- Value props band ---- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-raised); }

/* ---- Hero ---- */
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(28px,5vw,64px); align-items: center; }

/* ---- Sources footer ---- */
.sources-footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); }
.sources-footer p { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); line-height: 1.7; margin: 0; max-width: 720px; }
.correction-line { margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.correction-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.correction-link:hover { border-bottom-color: var(--accent); }

/* ---- Buyer notes ---- */
.buyer-note { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.buyer-note .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex: 0 0 auto; padding-top: 3px; }
.buyer-note p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }

/* ---- Model page stat row ---- */
.stat-row { display: flex; gap: 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.stat-row .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 16px; }

/* ---- Catalog filter bar ---- */
.filter-bar { position: sticky; top: 64px; z-index: 30; background: var(--paper); padding-top: 8px; padding-bottom: 16px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.select-pill { appearance: none; padding-right: 28px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* ---- Index pages (watches / brands / calibers) ---- */
/* .wrap.index-page-wrap beats the @media .wrap padding override at ≤640px */
.wrap.index-page-wrap { padding-top: clamp(32px,4vw,56px); }
.eyebrow-index { margin-bottom: 16px; }
.index-heading { font-size: clamp(34px,5vw,56px); margin-bottom: 28px; max-width: 760px; line-height: 1.02; }
.index-heading-wide { font-size: clamp(34px,5vw,56px); margin-bottom: 16px; max-width: 780px; line-height: 1.02; }
.index-lede { font-size: 17px; color: var(--ink-soft-solid); max-width: 600px; margin-bottom: 40px; line-height: 1.5; text-wrap: pretty; }
.radio-hidden { position: absolute; opacity: 0; width: 0; height: 0; }
.flex-spacer { flex: 1; }
.index-result-count { font-size: 12px; color: var(--ink-faint); margin-bottom: 22px; }
.index-no-results { color: var(--ink-soft-solid); }

/* ---- Home page hero ---- */
/* .wrap.hero-section-wrap beats the @media .wrap override at ≤640px */
.wrap.hero-section-wrap { padding-top: clamp(36px,6vw,72px); padding-bottom: clamp(40px,5vw,64px); }
.hero-heading { font-size: clamp(38px,6.2vw,68px); line-height: 1; }
.accent-em { font-style: italic; color: var(--accent); }
.hero-lede { font-size: clamp(16px,1.8vw,19px); color: var(--ink-soft-solid); max-width: 520px; margin-top: 22px; line-height: 1.5; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.stats-gap { margin-top: 40px; }
.eyebrow-stat { margin-top: 6px; }
.eyebrow-section { margin-bottom: 10px; }
.eyebrow-catalog { margin-bottom: 20px; }

/* ---- Home page featured card ---- */
.featured-card { display: block; overflow: hidden; }
.featured-thumb-wrap { position: relative; padding: 22px; padding-bottom: 0; }
.featured-badge { position: absolute; top: 22px; right: 22px; z-index: 3; }
.featured-body { padding: 22px; }
.eyebrow-brand { margin-bottom: 7px; }
.name-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.featured-name { font-size: 26px; }
.price-badge { font-size: 13px; color: var(--ink-soft-solid); }
.featured-summary { font-size: 13.5px; color: var(--ink-soft-solid); margin-top: 10px; line-height: 1.5; text-wrap: pretty; }

/* ---- Home page value props band ---- */
/* .wrap.band-pad beats the @media .wrap padding override at ≤640px */
.wrap.band-pad { padding: 44px 28px; }
.prop-num { font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: 12px; }
.prop-title { font-size: 22px; margin-bottom: 9px; }
.prop-body { font-size: 14px; color: var(--ink-soft-solid); line-height: 1.55; text-wrap: pretty; }

/* ---- Home page category pills ---- */
.pill-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill-lg { font-size: 13px; padding: 11px 18px; }
.pill-count { color: var(--ink-faint); margin-left: 4px; }

/* ---- About page ---- */
/* .wrap.about-wrap beats the @media .wrap padding override at ≤640px */
.wrap.about-wrap { padding-top: clamp(36px,5vw,64px); max-width: 760px; }
.eyebrow-about { margin-bottom: 18px; }
.about-heading { font-size: clamp(34px,5vw,54px); margin-bottom: 24px; line-height: 1.02; }
.about-body { font-size: 17.5px; line-height: 1.62; color: var(--ink); }
.para-first { margin-top: 0; text-wrap: pretty; }
.para-pretty { text-wrap: pretty; }
.stat-card { padding: 28px; margin-top: 40px; }
.eyebrow-card { margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 24px; }
.stat-num { font-size: 30px; line-height: 1; }
.eyebrow-stat-about { margin-top: 7px; }
.cta-row-about { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.about-contact { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-lead { margin: 0 0 18px; font-size: 17.5px; line-height: 1.62; color: var(--ink); text-wrap: pretty; }
.contact-links { display: flex; gap: 28px; flex-wrap: wrap; }
.contact-link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-soft); padding-bottom: 1px; transition: border-color .15s; }
.contact-link:hover { border-bottom-color: var(--accent); }

/* ---- Detail page shared ---- */
/* .wrap.detail-top beats the @media (max-width:640px) .wrap padding shorthand */
.wrap.detail-top { padding-top: 28px; }
.detail-head-lg { font-size: clamp(40px,6vw,64px); margin-bottom: 18px; line-height: 1; }
.eyebrow-md { margin-bottom: 12px; }
.eyebrow-sm { margin-bottom: 8px; }
.eyebrow-xs { margin-bottom: 6px; }
.card-padded { padding: 24px; }

/* ---- Watch model show ---- */
.model-img-sticky { position: sticky; top: 84px; }
.detail-title { font-size: clamp(36px,5vw,56px); margin-bottom: 14px; line-height: 1; }
.price-hero { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.price-tier { font-size: 28px; }
.price-range { font-size: 14px; color: var(--ink-soft-solid); }
.model-summary { font-size: 16.5px; color: var(--ink); line-height: 1.55; margin-bottom: 20px; text-wrap: pretty; }
.model-compare-btn { margin-bottom: 26px; }
.stat-cell { min-width: 64px; }
.stat-cell-label { margin-top: 5px; }
.spec-cols { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: clamp(24px,4vw,56px); }
.section-note { max-width: 760px; }
.note-block { margin-bottom: 28px; }
.note-body { font-size: 16px; color: var(--ink); line-height: 1.6; text-wrap: pretty; }
.wrist-note { max-width: 760px; background: var(--paper-raised); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 26px; }
.wrist-note .eyebrow-section { color: var(--accent); margin-bottom: 10px; }
.wrist-body { font-size: 16.5px; color: var(--ink); line-height: 1.65; text-wrap: pretty; margin-bottom: 12px; }
.wrist-body:last-child { margin-bottom: 0; }

/* Collapsible FAQ (native details/summary, collapsed by default) */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; padding: 15px 30px 15px 0; cursor: pointer; position: relative; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 20px; line-height: 1; color: var(--ink-faint); }
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-q:hover { color: var(--accent); }
.faq-a { font-size: 15.5px; color: var(--ink-soft-solid); line-height: 1.6; margin: 0; padding: 0 30px 16px 0; max-width: 680px; text-wrap: pretty; }

/* ---- Brand show ---- */
.brand-summary { font-size: clamp(16px,1.7vw,18.5px); color: var(--ink); line-height: 1.5; margin-bottom: 16px; max-width: 600px; text-wrap: pretty; }
.brand-why { font-size: 15.5px; color: var(--ink-soft-solid); line-height: 1.6; max-width: 600px; text-wrap: pretty; margin-bottom: 10px; }
.official-site-row { margin-top: 16px; }
.site-link { font-size: 13px; }
.section-buyer { max-width: 720px; }

/* ---- Caliber show ---- */
.prose { max-width: 600px; }
.prose p { font-size: clamp(16px,1.7vw,18.5px); color: var(--ink); line-height: 1.55; text-wrap: pretty; }
.stats-mt { margin-top: 30px; }
.stat-num-label { margin-top: 6px; }

/* ---- Gallery (model page) — thumbnails swap the main image (Stimulus) ---- */
.model-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { margin: 0; position: relative; }
.gallery-main img { transition: opacity .15s ease; }
.gallery-main.is-loading img { opacity: .4; }
.gallery-spinner { display: none; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 3px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.gallery-main.is-loading .gallery-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.gallery-main img, .gallery-thumbs img {
  aspect-ratio: 1 / 1; background: var(--paper-sunk);
  border: 1px solid var(--line); border-radius: var(--radius); object-fit: contain; width: 100%;
}
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery-thumb { display: block; width: 76px; padding: 0; border: 0; background: none; cursor: pointer; }
.gallery-thumb img { transition: border-color .15s ease, box-shadow .15s ease; }
.gallery-thumb:hover img { border-color: var(--line-strong); }
.gallery-thumb[aria-current="true"] img { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .02em; margin: 2px; line-height: 1.6; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Compare table (Phase E3) ---- */
.cmp-controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 30px; }
.cmp-select { width: 100%; appearance: none; font-family: var(--font-mono); font-size: 13px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper-raised); color: var(--ink); }
.cmp-swap { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper-raised); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, border-color .2s; flex: 0 0 auto; }
.cmp-swap:hover { border-color: var(--ink); transform: rotate(180deg); }
.cmp-table { border-top: 1px solid var(--line-strong); }
.cmp-row { display: grid; grid-template-columns: minmax(96px, 0.8fr) 1fr 1fr; border-bottom: 1px solid var(--line); }
.cmp-k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 14px 14px 0; align-self: center; }
.cmp-v { padding: 14px; border-left: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.cmp-row[data-diff="true"] .cmp-v { background: var(--accent-soft); }
.cmp-bigger { color: var(--accent); }

/* ---- Compare page: extracted show.html.erb inline styles ---- */
.cmp-heading { font-size: clamp(34px,5vw,56px); margin-bottom: 12px; max-width: 760px; line-height: 1.02; }
.cmp-intro { font-size: 16px; color: var(--ink-soft-solid); max-width: 560px; margin-bottom: 36px; line-height: 1.5; text-wrap: pretty; }
.cmp-noscript-btn { grid-column: 1 / -1; }
.ulink-accent { border-color: transparent; color: var(--accent); }
.cmp-footnote { font-size: 11px; color: var(--ink-faint); margin-top: 16px; letter-spacing: .02em; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom-color: var(--line); }
.site-header .bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .name { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; line-height: 1; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em; padding: 8px 14px; border-radius: 100px; color: var(--ink-faint); transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="true"] { color: var(--ink); background: var(--paper-sunk); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--ink); }
.mobile-sheet { display: none; }
.header-right { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 100px; background: transparent; color: var(--ink-faint); transition: color .2s, border-color .2s; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: inline; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; background: var(--paper-raised); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--ink-soft-solid); }
.footer-col a:hover { color: var(--ink); }

/* ---- Flash ---- */
.flash { font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--line-strong); background: var(--paper-raised); padding: 12px 16px; border-radius: var(--radius); margin: 16px auto; max-width: var(--maxw); }

/* ---- Entrance ---- */
@keyframes fadepage { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }
.fade-page { animation: fadepage .45s cubic-bezier(.2,.7,.2,1) both; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid, .two-col, .two-even { grid-template-columns: 1fr; }
  .model-img { position: static !important; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  body { font-size: 15px; }
  .cmp-row { grid-template-columns: minmax(74px, 0.7fr) 1fr 1fr; }
  .cmp-k { font-size: 10.5px; padding-right: 8px; }
  .cmp-v { padding: 12px 8px; font-size: 13.5px; }
}
@media (max-width: 620px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header[data-open] .mobile-sheet {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 6px 18px 14px; z-index: 50;
  }
  .mobile-sheet a { padding: 14px 4px; font-family: var(--font-mono); font-size: 15px; letter-spacing: .03em; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-sheet a:last-child { border-bottom: 0; }
  .mobile-sheet a[aria-current="true"] { color: var(--accent); }
  .cmp-controls { grid-template-columns: 1fr; }
  .cmp-swap { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-page { animation: none; }
  * { scroll-behavior: auto !important; }
}
