/* Self-hosted fonts (SIL OFL): no requests to Google Fonts */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --ink: #16150f;
  --muted: #6b6858;
  --line: #e2ded2;
  --soft: #f1eee4;
  --accent: #f0b323;
  --accent-soft: #fff3d1;
  --accent-ink: #16150f;
  --good: #1f7a3d;
  --bad: #b3261e;
  --dark: #16150f;
  --radius: 10px;
  --font: "Barlow", system-ui, sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.wrap, .band-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Header / nav ---------- */
.band { background: var(--surface); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { width: 74px; height: auto; display: block; }
.wordmark { display: grid; line-height: 1; }
.wordmark b { font: 800 34px/0.9 var(--display); letter-spacing: .01em; }
.wordmark small { font: 500 10px/1 var(--font); letter-spacing: .3em; margin-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--accent); }
.nav .short { display: none; }
.region-switch { position: relative; margin-left: auto; }
.region-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.region-switch summary::-webkit-details-marker { display: none; }
.region-switch[open] summary, .region-switch summary:hover { border-color: var(--ink); }
.region-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: 6px; min-width: 210px; background: var(--surface); border: 1px solid var(--ink); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.region-switch li a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 15px; }
.region-switch li a b { width: 26px; }
.region-switch li a:hover { background: var(--soft); }
.region-switch li a[aria-current] { background: var(--accent-soft); }
.region-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.region-tabs a { text-align: center; padding: 7px 0; font-weight: 700; text-decoration: none; }
.region-tabs a[aria-current] { background: var(--ink); color: #fff; }
.region-tabs a:not([aria-current]):hover { background: var(--soft); }
.notice { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0 0; }

/* ---------- Shared bits ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ink); background: var(--surface); padding: 9px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line); }
.btn.on-dark { background: transparent; color: #fff; border-color: #44413a; }
.btn.danger { color: var(--bad); border-color: var(--line); }
.btn.small { padding: 5px 10px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=search], input[type=number], input[type=url], input[type=password], select {
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 11px; width: 100%;
}
.chip { display: inline-block; font-size: 12px; font-weight: 600; background: var(--soft); border-radius: 99px; padding: 2px 9px; }
.chip.ghost { background: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--soft); border-radius: 4px; padding: 2px 6px; margin-left: 6px; }
.tag.good { background: #dff3e4; color: var(--good); }
.tag.warn { background: #fde6e4; color: var(--bad); }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.page-title { font: 800 clamp(34px, 5vw, 52px)/1 var(--display); text-transform: uppercase; margin: 16px 0 14px; }
.lede { color: var(--muted); max-width: 60ch; margin: 18px auto 0; font-size: 17px; }
.lede.left { margin: 0 0 18px; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); list-style: none; }

/* ---------- Home hero + chooser ---------- */
.hero-photo { position: relative; overflow: hidden; background: #ece6d8; border-bottom: 1px solid var(--line); }
.hero-photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* The photo's left ~38% is an empty cream panel: keep the copy inside it */
/* The photo's left ~38% is an empty cream panel. The image fills the full
   viewport width (cover, aligned right), so the panel always spans 0–38vw:
   the copy is anchored to the viewport edge, not the centered .wrap. */
.hero-copy { position: relative; z-index: 1; box-sizing: border-box; width: 37vw; min-height: clamp(460px, 44vw, 640px); padding: 40px 24px 40px clamp(16px, 3.5vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.hero-copy > * { max-width: 100%; }
.hero-copy .lockup { justify-items: start; }
.hero-copy .lockup img { width: clamp(110px, 12vw, 210px); }
.hero-copy .lockup b { font-size: clamp(52px, 7vw, 124px); }
.hero-copy .lockup small { font-size: clamp(10px, 1.05vw, 18px); letter-spacing: .38em; margin-left: 0.2em; }
.hero-copy .lede { margin: 0; color: #4d4a3d; font-size: clamp(15px, 1.15vw, 19px); max-width: 30em; }
.btn.big { padding: 13px 24px; font-size: 17px; }
.section-title { font: 800 clamp(28px, 4vw, 40px)/1 var(--display); text-transform: uppercase; margin: 44px 0 4px; }
.cat-card.photo { padding: 0; overflow: hidden; }
.cat-card.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #efe9dc; }
.cat-card.photo div { display: grid; gap: 4px; padding: 14px 16px 16px; }
.cat-card.photo.on, .cat-card.photo:hover { border-color: var(--ink); }
.hero { padding: 44px 0 28px; text-align: center; }
.lockup { display: inline-grid; justify-items: center; margin: 0; line-height: 1; }
.lockup img { width: clamp(150px, 26vw, 250px); height: auto; margin-bottom: 10px; }
.lockup b { font: 800 clamp(64px, 13vw, 128px)/0.85 var(--display); letter-spacing: .01em; }
.lockup small { font: 500 clamp(12px, 1.9vw, 19px)/1 var(--font); letter-spacing: .42em; margin: 12px 0 0 .42em; }
.chooser { display: grid; gap: 14px; }
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.cat-card.on { border: 2px solid var(--ink); background: var(--accent-soft); }
.cat-card svg { width: 44px; height: 44px; fill: var(--ink); margin-bottom: 6px; }
.cat-card b { font: 800 24px/1 var(--display); text-transform: uppercase; }
.cat-card span { color: var(--muted); font-size: 14px; }
.cat-card em { font-style: normal; font-size: 13px; font-weight: 600; margin-top: 4px; }
.more-select { display: flex; align-items: center; gap: 10px; font-weight: 600; justify-self: start; }
.more-select select { width: auto; min-width: 260px; }
.chooser.compact .cat-card { padding: 12px 14px; grid-template-columns: 32px 1fr; column-gap: 10px; }
.chooser.compact .cat-card svg { width: 32px; height: 32px; grid-row: span 2; margin: 0; }
.chooser.compact .cat-card b { font-size: 19px; }
.chooser.compact .cat-card span { display: none; }
.chooser.compact .cat-card em { margin: 0; color: var(--muted); }
.chooser.compact .cat-card div { display: contents; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0 64px; }
.steps img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 14px; display: block; }
.steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-size: 20px; }
.steps h2 { font: 800 24px var(--display); text-transform: uppercase; margin: 10px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Compare tool ---------- */
.tool .chooser { margin-top: 14px; }
.tool-layout { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; padding-bottom: 40px; }
.needs { position: sticky; top: 92px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-height: calc(100vh - 110px); overflow: auto; }
.needs .label { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.needs output { font-family: var(--display); font-size: 18px; line-height: 1; background: var(--accent); border-radius: 4px; padding: 1px 7px; }
.slider, .field { display: grid; gap: 6px; }
.slider small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.slider input { accent-color: var(--ink); width: 100%; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 7px 0; font-weight: 700; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.fine-tune { display: grid; }
.fine-tune summary { display: none; }
.fine-tune-body { display: grid; gap: 16px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--soft); border-radius: 99px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.result-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; margin-bottom: 10px; font-size: 14px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.result { display: grid; grid-template-columns: 36px 96px 1fr 150px; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-items: start; }
.result.selected { outline: 3px solid var(--accent); outline-offset: -1px; }
.result .rank { font: 800 26px/1 var(--display); color: var(--muted); }
.result:first-child .rank { color: var(--ink); }
.thumb { aspect-ratio: 1; background: #ece9df; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.info { min-width: 0; display: grid; gap: 6px; }
.sku { font: 700 13px var(--display); letter-spacing: .06em; color: var(--muted); }
.sku a { text-decoration: none; }
.info h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.info h3 a { text-decoration: none; }
.info h3 a:hover { text-decoration: underline; }
.specline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 600; }
.specline span { color: var(--muted); font-weight: 500; }
.why { margin: 0; font-size: 14px; color: var(--muted); }
.side { display: grid; gap: 6px; justify-items: end; text-align: right; }
.score { display: grid; justify-items: end; line-height: 1; }
.score b { font: 800 40px/1 var(--display); }
.score span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.side .price { font: 800 22px var(--display); }
.side .price.none { font: 500 14px var(--font); color: var(--muted); }
.fair { font-size: 12px; color: var(--muted); }
.coverage { width: 100%; height: 4px; background: var(--soft); border-radius: 2px; overflow: hidden; }
.coverage i { display: block; height: 100%; background: var(--ink); }
.all-list { margin: 0 0 120px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.all-list summary { cursor: pointer; font-weight: 700; }
.all-list ul { columns: 2; font-size: 14px; padding-left: 18px; }

.tray { position: fixed; inset: auto 0 0 0; background: var(--dark); color: #fff; transform: translateY(100%); transition: transform .2s; z-index: 30; }
.tray.open { transform: none; }
.tray .band-inner { flex-wrap: wrap; }
.tray .picked { display: flex; gap: 8px; flex-wrap: wrap; }
.tray .chip { background: #2c2a20; color: #fff; }
.tray .row { display: flex; gap: 8px; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(1100px, calc(100vw - 32px)); max-height: 90vh; }
dialog::backdrop { background: rgba(0,0,0,.5); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.dlg-head h2 { margin: 0; font: 800 24px var(--display); text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
table.compare { border-collapse: collapse; width: 100%; font-size: 14px; }
table.compare th, table.compare td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 150px; }
table.compare th[scope=row] { color: var(--muted); font-weight: 600; min-width: 130px; background: #faf9f5; }
table.compare td.best { background: var(--accent-soft); font-weight: 700; }

/* ---------- Catalog ---------- */
.psearch { display: flex; gap: 8px; margin-bottom: 12px; max-width: 640px; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; margin-bottom: 20px; }
.filter-row .region-filter { margin-bottom: 0; }
.btn.csv { gap: 8px; font-size: 14px; }
.btn.csv .muted { font-weight: 500; }
.region-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.region-filter a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.region-filter a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.groups { columns: 3 300px; column-gap: 20px; padding-bottom: 60px; }
.group { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.group h2 { font: 800 22px var(--display); text-transform: uppercase; margin: 0 0 8px; display: flex; justify-content: space-between; }
.group h2 span, .group li span { color: var(--muted); font-family: var(--font); font-weight: 500; font-size: 14px; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.group li { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.pcard:hover { border-color: var(--ink); }
.pimg { aspect-ratio: 1; background: #ece9df; display: grid; place-items: center; }
.pimg img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pimg span { font: 800 20px var(--display); color: #c9c4b2; }
.pbody { padding: 10px 12px 12px; display: grid; gap: 4px; }
.pbody b { font-size: 14px; line-height: 1.3; font-weight: 600; }
.flags { display: flex; gap: 4px; margin-top: 2px; }
.rflag { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; background: var(--soft); color: #b5b1a2; }
.rflag.on { background: var(--ink); color: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 0 0 60px; font-weight: 600; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 28px 0; }
.cta div { display: grid; }
.cta b { font: 800 22px var(--display); text-transform: uppercase; }
.cta.slim { margin: 0 0 18px; padding: 10px 14px; }

/* Product page */
.product-top { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 32px; margin: 18px 0 32px; }
.product-img { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 4px 0 10px; }
.product h2 { font: 800 26px var(--display); text-transform: uppercase; margin: 32px 0 12px; }
.product h2.small-h { font-size: 18px; margin: 18px 0 8px; }
.desc { color: var(--muted); }
.availability { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.availability li { color: var(--muted); }
.availability li b { display: inline-block; width: 34px; font-size: 12px; text-align: center; border-radius: 3px; background: var(--soft); margin-right: 6px; }
.availability li.on { color: var(--ink); }
.availability li.on b { background: var(--ink); color: #fff; }
.listings { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; max-width: 420px; }
.listings li { display: flex; justify-content: space-between; }
.oos { color: var(--bad); font-style: normal; font-size: 12px; }
.keyspecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.keyspecs div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.keyspecs dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.keyspecs dd { margin: 2px 0 0; font: 800 22px var(--display); }
.spec-table { width: 100%; max-width: 760px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 600; width: 45%; }
.product > section:last-child { padding-bottom: 60px; }

/* ---------- Articles / prose ---------- */
.prose-page { padding-bottom: 60px; }
.prose { max-width: 720px; font-size: 18px; line-height: 1.7; }
.prose h1 { font: 800 clamp(36px, 5vw, 54px)/1.02 var(--display); text-transform: uppercase; margin: 20px 0 10px; }
.prose h2 { font: 800 28px/1.1 var(--display); text-transform: uppercase; margin: 36px 0 10px; }
.prose .meta { color: var(--muted); font-size: 15px; margin-top: 0; }
.prose blockquote { margin: 16px 0; padding: 12px 18px; background: var(--surface); border-left: 4px solid var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.prose blockquote p { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--surface); }
.prose th, .prose td { text-align: left; border: 1px solid var(--line); padding: 8px 12px; }
.prose th { background: var(--soft); }
.prose code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-bottom: 60px; }
.article-card { display: grid; gap: 6px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: 0 20px 20px; text-decoration: none; overflow: hidden; }
.article-card img { width: calc(100% + 40px); height: auto; margin: 0 -20px 8px; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.article-hero { margin: 8px 0 28px; }
.article-hero img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.article-card:hover { border-color: var(--ink); border-top-color: var(--accent); }
.article-card time { font-size: 13px; color: var(--muted); }
.article-card h3 { font: 800 24px/1.05 var(--display); text-transform: uppercase; margin: 0; }
.article-card p { margin: 0; color: var(--muted); font-size: 15px; }
.more-articles h2 { font: 800 26px var(--display); text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfccbf; padding: 28px 0 40px; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.site-footer nav a { color: #fff; font-weight: 600; text-decoration: none; }
.site-footer nav.legal a { color: #cfccbf; font-weight: 500; }
.site-footer nav a:hover, .site-footer p a { text-decoration: underline; color: #fff; }
.site-footer p { max-width: 80ch; margin: 0; }

/* ---------- Admin ---------- */
.admin { padding: 24px 16px 80px; display: grid; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel h2 { margin: 0 0 12px; font: 800 22px var(--display); text-transform: uppercase; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { font-size: 13px; font-weight: 600; color: var(--muted); display: grid; gap: 4px; }
.needs label, .more-select { color: var(--ink); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.search-results { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; font-size: 14px; }
.listing-row { display: grid; grid-template-columns: 80px 1fr 2fr 2fr 110px auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.status { font-size: 13px; }
.status.err { color: var(--bad); }
.status.ok { color: var(--good); }
.toast { position: fixed; bottom: 16px; right: 16px; background: var(--dark); color: #fff; padding: 10px 14px; border-radius: 8px; opacity: 0; transition: opacity .2s; }
.toast.show { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .tool-layout { grid-template-columns: 1fr; }
  .needs { position: static; max-height: none; }
  .product-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-photo { background: var(--bg); }
  .hero-photo picture img { position: static; height: auto; aspect-ratio: 900 / 640; }
  .hero-copy { width: auto; min-height: 0; align-items: center; text-align: center; padding: 24px 16px 20px; gap: 12px; }
  .hero-copy .lockup { justify-items: center; }
  .hero-copy .lockup img { width: 96px; margin-bottom: 6px; }
  .hero-copy .lockup b { font-size: 60px; }
  .hero-copy .lockup small { font-size: 11px; margin-top: 8px; }
  .hero-copy .lede { font-size: 15px; }
  .hero-photo picture img { aspect-ratio: 16 / 9; object-position: 70% center; }
  .section-title { margin-top: 28px; font-size: 28px; }
  .cat-cards { gap: 10px; }
  .cat-card.photo div { padding: 10px 12px 12px; }
  .cat-card.photo b { font-size: 20px; }
  .cat-card.photo span { display: none; }
  .steps { gap: 18px; padding: 28px 0 40px; }
  .steps > div { display: grid; grid-template-columns: 104px 1fr; column-gap: 14px; align-items: start; }
  .steps img { grid-row: 1 / span 3; margin: 0; }
  .steps b { width: 26px; height: 26px; font-size: 16px; }
  .steps h2 { font-size: 20px; margin: 6px 0 2px; }
  .steps p { font-size: 14px; }
  .chooser.compact .cat-cards { display: none; }
  .tool .chooser { margin-top: 8px; }
  .page-title { font-size: 32px; margin: 12px 0 10px; }
  .needs { gap: 12px; padding: 14px; }
  .fine-tune summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); list-style: none; }
  .fine-tune summary::-webkit-details-marker { display: none; }
  .fine-tune summary::after { content: "+"; font-size: 20px; line-height: 1; }
  .fine-tune[open] summary::after { content: "−"; }
  .fine-tune[open] .fine-tune-body { margin-top: 14px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pbody { padding: 8px 10px 10px; }
  .pbody b { font-size: 13px; }
  .band-inner { flex-wrap: wrap; row-gap: 8px; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 2px; }
  .nav a { padding: 6px 8px; font-size: 14px; text-align: center; }
  .nav .full { display: none; }
  .nav .short { display: inline; }
  .logo img { width: 58px; }
  .wordmark b { font-size: 28px; }
  .wordmark small { font-size: 8.5px; }
  .band { position: static; }
  .steps { grid-template-columns: 1fr; padding: 32px 0 48px; }
  .result { grid-template-columns: 64px 1fr; }
  .result .rank { display: none; }
  .result .side { grid-column: 1 / -1; grid-template-columns: auto auto 1fr auto; align-items: center; justify-items: start; text-align: left; }
  .result .score { justify-items: start; }
  .result .coverage { display: none; }
  .more-select { flex-direction: column; align-items: stretch; justify-self: stretch; }
  .more-select select { min-width: 0; }
  .all-list ul { columns: 1; }
  .listing-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .admin-table .hide-sm { display: none; }
  .psearch { flex-direction: column; }
}
