/* Golf Ball Index: single stylesheet. No inline styles anywhere (strict CSP). */

:root {
  --green: #1a5c3a;
  --green-dark: #124228;
  --green-tint: #e7f1ea;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #1c2420;
  --muted: #56635b;
  --line: #d9e0da;
  --chip-bg: #eef2ec;
  --link: #176142;
  --focus: #b45309;
  --diff-bg: #fff6dc;
  --diff-line: #d99a00;
  --shadow: 0 1px 3px rgba(20, 40, 30, 0.08);
  --shadow-up: 0 -4px 16px rgba(20, 40, 30, 0.14);
  --radius: 12px;
  --tray-h: 0px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #2e8b57;
    --green-dark: #163d28;
    --green-tint: #1f3327;
    --bg: #121814;
    --surface: #1b231e;
    --text: #e8ece8;
    --muted: #a5b5aa;
    --line: #2f3b33;
    --chip-bg: #263029;
    --link: #79c99d;
    --focus: #f5b041;
    --diff-bg: #3a3218;
    --diff-line: #d9a520;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-up: 0 -4px 16px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
  padding-bottom: var(--tray-h);
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main { padding-top: 20px; padding-bottom: 48px; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible { outline-color: #ffd166; }

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0.2em 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.05rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); color: var(--text);
  padding: 10px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.lede { color: var(--muted); max-width: 66ch; font-size: 1.05rem; }

.js-note { color: var(--muted); font-size: 0.9rem; }
.js-enabled .js-note { display: none; }

/* ------------------------------------------------------------ header -- */
.site-header { background: var(--green-dark); color: #fff; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 16px; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: flex; align-items: center; gap: 9px; min-height: 44px;
  color: #fff; text-decoration: none; font-weight: 750; font-size: 1.1rem;
}
.mark-ball { fill: #fff; }
.mark-dot { fill: var(--green-dark); opacity: 0.85; }
.site-nav { display: flex; gap: 2px; margin: 0 -10px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #e4efe8; text-decoration: none; padding: 0 10px; border-radius: 8px; font-weight: 600;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); color: #fff; }
.nav-count { font-weight: 700; margin-left: 0.3em; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  background: var(--surface); color: var(--link);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-weight: 650; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { border-color: var(--green); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { border-color: var(--line); }
.btn-small { min-height: 40px; padding: 0 12px; font-size: 0.88rem; }

/* -------------------------------------------------------------- hero -- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero h1 { font-size: 1.9rem; margin-bottom: 0.3em; }
.hero-sub { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; font-size: 1.05rem; }
.search { position: relative; max-width: 640px; margin: 0 auto; }
.search input {
  width: 100%; min-height: 54px; font: inherit; font-size: 1.05rem;
  color: var(--text); background: var(--surface);
  border: 2px solid var(--line); border-radius: 14px;
  padding: 10px 16px 10px 48px; box-shadow: var(--shadow);
}
.search input:focus { border-color: var(--green); }
.search input:focus-visible { outline-offset: 1px; }
.search-icon { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--muted); pointer-events: none; }

/* ----------------------------------------------------------- catalogue -- */
.catalogue { margin-top: 18px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 4px; }
.quick-label { font-weight: 700; font-size: 0.92rem; }
.quick-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.quick-btn {
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.quick-btn span { font-weight: 400; color: var(--muted); }
.quick-btn:hover { border-color: var(--green); }
.quick-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.quick-btn[aria-pressed="true"] span { color: #e4efe8; }
.quick-note { flex-basis: 100%; margin: 0; font-size: 0.82rem; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 10px; }
.result-count { margin: 0 auto 0 0; font-weight: 700; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
select, .sort select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 0 10px; min-width: 0;
}
.filter-count { font-weight: 700; }

.filters {
  display: none; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 14px; margin: 0 0 14px;
  grid-template-columns: 1fr 1fr; gap: 12px;
}
.filters.open, body:not(.js-enabled) .filters { display: grid; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 650; color: var(--muted); min-width: 0; }
.filters select { width: 100%; font-size: 0.95rem; font-weight: 400; }
.filters-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

.ball-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px;
}
.ball-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px 16px;
  display: flex; flex-direction: column;
}
.card-brand { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card-title { margin: 2px 0 6px; font-size: 1.15rem; line-height: 1.25; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--link); text-decoration: underline; }
.card-year { margin: 0 0 10px; }
.year-badge {
  display: inline-block; background: var(--chip-bg); color: var(--text);
  border-radius: 6px; padding: 1px 8px; font-size: 0.78rem; font-weight: 650; white-space: nowrap;
  vertical-align: middle;
}
.year-badge-lg { font-size: 0.9rem; padding: 3px 10px; margin-left: 6px; }
.card-price { margin: 0 0 10px; }
.price-main { font-size: 1.3rem; font-weight: 800; }
.price-unit { color: var(--muted); font-size: 0.9rem; }
.price-ball { display: block; color: var(--muted); font-size: 0.86rem; }
.card-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; }
.card-facts li { background: var(--chip-bg); border-radius: 999px; padding: 3px 10px; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; }
.feel-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.feel-soft { background: #2e8b57; }
.feel-medium { background: #c08a1e; }
.feel-firm { background: #b0472a; }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-actions .btn { width: 100%; padding: 0 8px; }

.btn-cmp .cmp-on { display: none; }
.btn-cmp[aria-pressed="true"] { background: var(--green-tint); border-color: var(--green); color: var(--text); }
.btn-cmp[aria-pressed="true"] .cmp-on { display: inline; }
.btn-cmp[aria-pressed="true"] .cmp-off { display: none; }
.btn-primary.btn-cmp[aria-pressed="true"] { color: var(--text); }
.cmp-full .btn-cmp[aria-pressed="false"] { opacity: 0.7; }

.no-results { text-align: center; padding: 34px 16px; border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 6px; }
.no-results p { margin: 0 0 12px; }

/* --------------------------------------------------------------- tray -- */
.tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 2px solid var(--green);
  box-shadow: var(--shadow-up);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}
.tray-inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head go" "list list";
  align-items: center; gap: 6px 10px;
}
.tray-head { grid-area: head; display: flex; align-items: center; gap: 6px; min-width: 0; }
.tray-title { margin: 0; font-size: 1rem; white-space: nowrap; }
.tray-go { grid-area: go; white-space: nowrap; }
.tray-list {
  grid-area: list; list-style: none; margin: 0; padding: 2px 0 4px;
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tray-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
  background: var(--chip-bg); border-radius: 999px; padding-left: 12px;
  font-size: 0.85rem; font-weight: 600; max-width: 240px;
}
.tray-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-x {
  width: 36px; height: 36px; flex: 0 0 36px; border: 0; background: transparent; color: var(--text);
  border-radius: 50%; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.chip-x:hover { background: var(--line); }
.tray-hint { flex: 0 0 auto; align-self: center; color: var(--muted); font-size: 0.85rem; padding: 0 4px; }
.tray-msg { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.tray-msg:empty { display: none; }
.tray-shake { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .tray-shake { animation: none; } }

/* ----------------------------------------------------------- ball page -- */
.breadcrumb { font-size: 0.88rem; color: var(--muted); }
.breadcrumb a { display: inline-block; padding: 8px 0; }
.ball-top { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 4px; }
.ball-id h1 { font-size: 2rem; margin: 0 0 6px; }
.ball-line { margin: 0 0 8px; font-size: 1.05rem; }
.generations { font-size: 0.92rem; color: var(--muted); margin: 0; }
.buy-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.buy-panel p { margin: 0; }
.panel-price .price-main { font-size: 1.7rem; }
.panel-ball { font-weight: 650; }
.panel-note { font-size: 0.82rem; color: var(--muted); }
.buy-panel .card-facts { margin: 6px 0 8px; }
.btn-cmp-lg { min-height: 50px; font-size: 1.02rem; }
.panel-compare { align-self: flex-start; }

.spec-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem;
}
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--chip-bg); }
.spec-table tbody th { font-weight: 650; width: 40%; }
.spec-table td:last-child { width: 1%; white-space: nowrap; }
.spec-note { color: var(--muted); font-size: 0.88rem; max-width: 75ch; }
.swatch-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.src-tag {
  display: inline-block; border-radius: 6px; padding: 1px 7px;
  font-size: 0.75rem; font-weight: 700; white-space: nowrap; vertical-align: middle;
  border: 1px solid transparent; text-decoration: none;
}
.src-manufacturer { background: #dcefe3; color: #12452b; }
.src-independent { background: #dde8f6; color: #1d3f6e; }
.src-editorial, .src-estimate, .src-calc { background: var(--chip-bg); color: var(--text); }
.src-unverified { background: transparent; color: #8a4b00; border-color: #c98a2b; }
@media (prefers-color-scheme: dark) {
  .src-manufacturer { background: #1f3d2b; color: #bfe6cd; }
  .src-independent { background: #1e2f47; color: #c6dbf5; }
  .src-unverified { color: #f3c27a; border-color: #b07a2a; }
}
a.src-tag:hover { text-decoration: underline; }
h2 .src-tag { margin-left: 6px; }

.about-ball p, .sources p { max-width: 72ch; }
.source-list { padding-left: 20px; }
.ball-grid-compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Plain-English term notes (<details>, works without JS) */
.term summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 32px; }
.term summary::-webkit-details-marker { display: none; }
.info-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted);
  color: var(--muted); font-size: 0.72rem; font-weight: 800;
}
.term[open] .info-i { background: var(--green); border-color: var(--green); color: #fff; }
.term-note { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin: 2px 0 6px; max-width: 60ch; }

/* -------------------------------------------------------- compare page -- */
.cmp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 6px; }
.cmp-toolbar-btns { display: flex; gap: 8px; margin-left: auto; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.cmp-count { margin: 4px 0; font-size: 0.92rem; color: var(--muted); }
.cmp-count:empty, .cmp-msg:empty { display: none; }
.cmp-msg { margin: 4px 0; font-weight: 650; }
.share-fallback { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0; }
.share-fallback input { flex: 1 1 260px; min-height: 44px; font: inherit; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }

.picker {
  background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius);
  padding: 12px; margin: 10px 0; box-shadow: var(--shadow); max-width: 640px;
}
.picker-label { display: block; font-weight: 700; margin-bottom: 6px; }
.picker-box { display: flex; gap: 8px; }
.picker-box input {
  flex: 1; min-width: 0; min-height: 48px; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); color: var(--text);
}
.picker-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line); }
.picker-opt { padding: 9px 10px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.picker-opt:hover { background: var(--chip-bg); }
.picker-opt[aria-selected="true"] { background: var(--green-tint); box-shadow: inset 4px 0 0 var(--green); }
.picker-meta { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.picker-empty { color: var(--muted); margin: 10px 0 0; }

.cmp-empty { text-align: center; padding: 34px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.cmp-empty p { margin: 0 0 12px; font-weight: 650; }

.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; }
.cmp-row { display: grid; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp.cols-1 .cmp-row { grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); }
.cmp.cols-2 .cmp-row { grid-template-columns: minmax(9rem, 15rem) repeat(2, minmax(0, 1fr)); }
.cmp.cols-3 .cmp-row { grid-template-columns: minmax(9rem, 15rem) repeat(3, minmax(0, 1fr)); }
.cmp.cols-4 .cmp-row { grid-template-columns: minmax(9rem, 15rem) repeat(4, minmax(0, 1fr)); }
.cmp-row > div { padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; }
.cmp-row > div + div { border-left: 1px solid var(--line); }
.cmp-head {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface); border-bottom: 2px solid var(--green);
  border-radius: var(--radius) var(--radius) 0 0;
}
.cmp-corner { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.cmp-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cmp-brand { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.cmp-model { font-weight: 750; font-size: 1.02rem; line-height: 1.25; color: var(--text); }
.cmp-actions > div { padding-top: 6px; padding-bottom: 6px; }
.cmp-act { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp-act .btn { min-height: 36px; padding: 0 10px; font-size: 0.82rem; }
.cmp-label { font-weight: 650; }
.cmp-val { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.cmp-val .swatches { flex-basis: 100%; }
.unv-mark { color: #8a4b00; font-weight: 800; }
@media (prefers-color-scheme: dark) { .unv-mark { color: #f3c27a; } }
.diff-flag { display: none; }
.show-diff .is-diff { background: var(--diff-bg); box-shadow: inset 4px 0 0 var(--diff-line); }
.show-diff .is-diff .diff-flag {
  display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--diff-line); color: #1c1400; border-radius: 4px; padding: 0 5px;
}
.show-diff .is-same .cmp-val { color: var(--muted); }
.cmp-notes { margin-top: 12px; font-size: 0.88rem; color: var(--muted); max-width: 80ch; }
.cmp-notes p { margin: 4px 0; }

.swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.3); }
.sw-white  { background: #fdfdfb; }
.sw-yellow { background: #f2e233; }
.sw-orange { background: #f28c28; }
.sw-red    { background: #d8432e; }
.sw-pink   { background: #ef7fae; }
.sw-green  { background: #5fd04a; }
.sw-blue   { background: #3f8fde; }
.sw-grey   { background: #9aa39d; }
.sw-multi  { background: conic-gradient(#f2e233, #f28c28, #ef7fae, #3f8fde, #5fd04a, #f2e233); }

/* -------------------------------------------------------- prose pages -- */
.prose { max-width: 72ch; }
.label-list { margin: 0; display: grid; gap: 10px; }
.label-list > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; align-items: start; }
.label-list dd { margin: 0; }

/* ------------------------------------------------------------- footer -- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 18px 0 24px; color: var(--muted); }
.foot-small { font-size: 0.85rem; max-width: 95ch; margin: 6px 0; }
.site-footer a { display: inline-block; padding: 6px 0; }

/* --------------------------------------------------------- breakpoints -- */
@media (max-width: 719px) {
  /* Compare on phones: spec label on its own line, values in aligned
     columns below it, ball names stay pinned at the top while scrolling. */
  .cmp.cols-1 .cmp-row, .cmp.cols-2 .cmp-row, .cmp.cols-3 .cmp-row, .cmp.cols-4 .cmp-row { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
  .cmp.cols-2 { --n: 2; } .cmp.cols-3 { --n: 3; } .cmp.cols-4 { --n: 4; }
  .cmp-corner { display: none; }
  .cmp-label { grid-column: 1 / -1; background: var(--chip-bg); padding: 4px 10px !important; font-size: 0.9rem; }
  .cmp-row > div + div { border-left: 0; }
  .cmp-row > .cmp-val + .cmp-val, .cmp-row > .cmp-name + .cmp-name, .cmp-row > .cmp-act + .cmp-act { border-left: 1px solid var(--line); }
  .cmp-row > div { padding: 8px; }
  .cmp-model { font-size: 0.88rem; }
  .cmp-brand { font-size: 0.66rem; }
  .cmp-name .year-badge { font-size: 0.7rem; padding: 0 5px; }
  .cmp-val { font-size: 0.88rem; }
  .cmp.cols-4 .cmp-val, .cmp.cols-4 .cmp-model { font-size: 0.8rem; }
  .cmp.cols-4 .cmp-act .btn, .cmp.cols-3 .cmp-act .btn { width: 100%; padding: 0 4px; }
  /* 3-4 narrow columns: capitals don't fit ("BRIDGESTONE" split mid-word),
     so show brands in normal case and trim cell padding. */
  .cmp.cols-3 .cmp-brand, .cmp.cols-4 .cmp-brand { text-transform: none; letter-spacing: 0; font-size: 0.72rem; }
  .cmp.cols-4 .cmp-row > div { padding: 8px 5px; }
  .show-diff .is-diff { box-shadow: inset 4px 0 0 var(--diff-line); }
  .cmp-toolbar-btns { margin-left: 0; }
  .label-list > div { grid-template-columns: 1fr; gap: 2px; }
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr { display: block; }
  .spec-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .spec-table tr:last-child { border-bottom: 0; }
  .spec-table th, .spec-table td { border: 0; padding: 0; }
  .spec-table tbody th { grid-column: 1 / -1; width: auto; }
  .spec-table td:last-child { align-self: center; }
}
@media (max-width: 380px) {
  .card-actions { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  h1 { font-size: 2.1rem; }
  .hero { padding: 34px 0 12px; }
  .hero h1 { font-size: 2.5rem; }
  .filters, body:not(.js-enabled) .filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: end; }
  .filters-actions { grid-column: auto; }
  .filters-toggle { display: none !important; }
  .tray-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "head list go"; }
  .ball-top { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
  .ball-id h1 { font-size: 2.4rem; }
}

/* ------------------------------------------- compare homepage (2026-11-01) */
.hero-compare { padding-bottom: 2px; }
.qc { margin-top: 22px; }
.qc-label { font-weight: 700; font-size: 0.92rem; margin: 0 0 10px; }
.qc-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 8px; padding: 0; }
.qc-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.qc-link:hover { border-color: var(--green); color: var(--green); }
.browse-cta {
  margin: 34px auto 10px; padding: 20px 16px; max-width: 560px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.browse-cta h2 { margin-top: 0; font-size: 1.15rem; }
.browse-cta p { margin: 8px 0; }
.browse-cta p:last-child { margin-bottom: 0; }
.qc .quick-note { font-weight: 400; }

/* Status badges (2026-11-01): current gets no badge; previous gen amber,
   discontinued grey. Used on cards, ball pages and compare headers. */
.status-badge {
  display: inline-block; border-radius: 999px; padding: 2px 9px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap; vertical-align: middle;
}
.status-previous { background: #f6ecd4; color: #7a5a10; }
.status-discontinued { background: var(--chip-bg); color: var(--muted); text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .status-previous { background: #3d3217; color: #e8c877; }
}
.cmp-name .status-badge { display: block; width: fit-content; margin-top: 3px; }
.superseded-note { font-size: 0.95rem; margin: 4px 0 8px; }
.panel-avail { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }

/* Static vs pages (2026-11-01): reuse spec-table, three columns. */
.vs-table th[scope="col"] a { text-decoration: none; }
.vs-table tbody th { width: 30%; }
.vs-table td:last-child { width: auto; white-space: normal; }
.vs-table tr.is-diff td { background: var(--diff-bg, rgba(246, 236, 212, 0.35)); }
.vs-page .diff-flag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; border-radius: 6px;
  padding: 0 6px; background: #f6ecd4; color: #7a5a10; vertical-align: middle;
}
@media (prefers-color-scheme: dark) {
  .vs-table tr.is-diff td { background: rgba(61, 50, 23, 0.45); }
  .vs-page .diff-flag { background: #3d3217; color: #e8c877; }
}
.vs-links .qc-list { margin-top: 6px; }
