/* Raccoon Equipment design system (redesign R1, direction B "warmer farm dealer").
   Tokens first: R2 (static/item.css) and R3 (static/forms.css) use only these var(--...) names.
   Source: research/mockups/assets/base.css + b-farm-dealer/style.css. Fonts self-hosted in /static/fonts (OFL). */
/* ===== Raccoon Equipment design tokens (direction B, warmer farm dealer). R2/R3: use only these names. ===== */
@font-face { font-family: "Inter"; src: url("/static/fonts/InterVariable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* shared-edit(brand01): the logo's lettering. Archivo (wdth 85, wght 850; latin subset, 11 KB) matches the heavy,
   slightly condensed "RACCOON"; Montserrat (wght 600-800 variable, latin subset, 22 KB) matches the wide "EQUIPMENT"
   and the letter-spaced "CANFIELD, OHIO". Both OFL, from github.com/google/fonts. Lora (the old heading face) is
   no longer loaded; its files stay for old links. One static Archivo face serves every heading weight (no faux bold). */
@font-face { font-family: "Archivo"; src: url("/static/fonts/Archivo-Display-latin.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat-latin.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
:root {
  color-scheme: light;
  /* type */
  --font-text: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: Archivo, "Arial Narrow", "Helvetica Neue", Arial, sans-serif; /* shared-edit(brand01): logo face */
  --font-label: Montserrat, Inter, "Segoe UI", system-ui, Arial, sans-serif; /* shared-edit(brand01): small caps-style labels, primary buttons */
  --t-h1: 30px; --t-price: 30px; --t-h2: 22px; --t-h3: 16px;
  --t-body: 16px; --t-small: 14px; --t-meta: 13px; --t-eyebrow: 12px;
  /* color */
  --bg: #F5F2EC; --surface: #FFFFFF; --surface-2: #F1ECE2; --surface-warm: #FBF7EE;
  --ink: #23201B; --ink-2: #48433B; --muted: #675F54; --line: #E6E0D4; --line-strong: #CCC4B5;
  --input-line: #8C8475; /* 3:1 on white for form-control borders */
  /* shared-edit(brand01): the logo's palette (BRAND_BRIEF.md): plate green #003814, off-white #FCFCF8, red #CF100E (rules only) */
  --brand: #003814; --brand-hover: #0B4A22; --brand-tint: #E7EEE5; --link: #003814; --gold: #B8892B;
  --accent: #CF100E;
  --on-brand: #FCFCF8; --on-brand-muted: #C9D2C6;
  --cta-bg: #003814; --cta-ink: #fff;
  --ok-ink: #24653A; --ok-bg: #E6F0E3; --warn-ink: #6E4C00; --warn-bg: #F7ECD2; --sold-ink: #4A463F; --sold-bg: #ECE8E0;
  --drop-ink: #6E4C00; --drop-bg: #F7ECD2;
  --danger: #B3261E; --danger-bg: #FBE9E7;
  --info-ink: #1F4E79; --info-bg: #E5EEF7;
  --star: #B8892B;
  --focus: #003814;
  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s14: 56px;
  --wrap: 1248px; --wrap-pad: 24px; --tap: 44px;
  /* radius */
  --r-ctl: 6px; --r-chip: 6px; --r-badge: 4px; --r-panel: 10px; --r-photo: 8px; --r-thumb: 6px; --r-card: 8px; --r-card-photo: 8px; --r-pill: 999px;
  /* shadow */
  --panel-shadow: 0 2px 16px rgb(70 50 20 / .08);
  --e1: 0 1px 2px rgb(70 50 20 / .10);
  --e2: 0 4px 16px rgb(70 50 20 / .14);
  /* breakpoints (reference only; media queries use the literal px): sm 600, md 900, lg 1100 */
  --bp-sm: 600px; --bp-md: 900px; --bp-lg: 1100px;

  /* legacy aliases, so not-yet-redone markup keeps rendering. New code: don't use these. */
  --brand-900: var(--brand); --brand-700: var(--brand); --brand-100: var(--brand-tint);
  --gold-500: var(--gold); --gold-100: var(--warn-bg); --paper: var(--bg);
  --danger-100: var(--danger-bg); --info-700: var(--info-ink); --info-100: var(--info-bg);
  --t-display: var(--t-h1); --t-title: 24px;
  --r-sm: var(--r-ctl); --r-md: var(--r-panel); --r-lg: 12px;
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
}
@media (max-width: 600px) {
  :root { --t-h1: 24px; --t-price: 26px; --t-h2: 20px; --wrap-pad: 16px; }
}
/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--t-body); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0 0 var(--s3); line-height: 1.25; }
h1 { font-family: var(--font-head); font-size: var(--t-h1); font-weight: 700; }
h2 { font-family: var(--font-head); font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 600; }
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.topbar :focus-visible, .site-footer :focus-visible, .btn-primary:focus-visible { outline-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ico.fill { fill: currentColor; stroke: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--wrap-pad); }
main.wrap { padding-bottom: var(--s12); min-height: 50vh; }
.narrow { max-width: 728px; }
.muted { color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r-ctl); box-shadow: var(--e2); }
.skip:focus { top: 8px; }
.eyebrow { font-family: var(--font-label); font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--t-body); color: var(--ink-2); max-width: 70ch; }
.rule::after { content: ""; display: block; width: 52px; height: 3px; background: var(--accent); margin-top: var(--s3); } /* shared-edit(brand01): the logo's red rule */

/* ===== header ===== */
/* shared-edit(brand01): topbar lettered like the logo's "CANFIELD, OHIO"; red rule; logo image in .brand */
.topbar { background: var(--brand); color: var(--on-brand); border-bottom: 2px solid var(--accent); font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.topbar .wrap { display: flex; gap: var(--s4); justify-content: space-between; align-items: center; min-height: 34px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: var(--s8); min-height: 68px; }
.brand { display: flex; flex-direction: column; justify-content: center; min-height: var(--tap); text-decoration: none; color: inherit; line-height: 1.15; }
.brand .name { font-family: var(--font-head); font-weight: 700; font-size: 23px; color: var(--brand); }
.brand picture { display: block; flex: none; }
.brand-logo { display: block; width: auto; height: 56px; max-width: none; }
.brand .desc { font-size: var(--t-meta); color: var(--muted); }
.nav { display: flex; gap: var(--s6); font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.nav a:hover { color: var(--brand); text-decoration: underline; }
.nav a[aria-current] { color: var(--brand); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.hdr-text { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.hdr-text:hover { color: var(--brand); }
.menu-btn { display: none; color: var(--ink); }

/* ===== footer ===== */
.site-footer { background: var(--brand); color: var(--on-brand); padding: var(--s10) 0 var(--s12); font-size: var(--t-small); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s8); }
.site-footer .f-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 6px; }
.site-footer .f-h { margin: 0 0 var(--s2); font-family: var(--font-label); font-size: var(--t-meta); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: var(--on-brand-muted); }
.site-footer .legal { margin-top: 28px; padding-top: var(--s4); border-top: 1px solid rgb(255 255 255 / .18); color: var(--on-brand-muted); font-size: var(--t-meta); display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

/* ===== buttons: primary (one per view), secondary (outline), tertiary (text + icon) ===== */
.btn { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-ctl);
       font-weight: 600; font-size: var(--t-body); line-height: 1.2; text-align: center; text-decoration: none; border: 1px solid var(--line-strong);
       background: var(--surface); color: var(--ink); cursor: pointer; width: 100%; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary, .btn.primary { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); font-family: var(--font-label); font-weight: 700; } /* shared-edit(brand01): logo lettering */
.btn-primary:hover, .btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger, .btn.danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-sm, .btn.small { min-height: var(--tap); font-size: 15px; width: auto; padding: 0 var(--s4); }
.btn-inline { display: inline-flex; width: auto; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn.gold { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); } /* legacy name: the one CTA color */
.btn-text { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 2px; background: none; border: 0; color: var(--link);
            font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-text:hover { text-decoration: underline; }
.tert { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; font-size: 15px; font-weight: 500; }
.tert a, .tert button { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--link); text-decoration: none; background: none; border: 0; padding: 0; font-weight: 500; }
.tert .ico { width: 16px; height: 16px; }
.actions { display: grid; gap: var(--s3); margin: var(--s4) 0; }
@media (min-width: 700px) { .actions.row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* ===== status words: always text, never color alone ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
         padding: 3px 8px; border-radius: var(--r-badge); line-height: 1.4; white-space: nowrap; background: var(--warn-bg); color: var(--warn-ink); }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.sold { background: var(--sold-bg); color: var(--sold-ink); }
.badge.drop { background: var(--drop-bg); color: var(--drop-ink); box-shadow: inset 0 -2px 0 var(--gold); }
.badge.draft { background: var(--brand-tint); color: var(--brand); }
.word { font-size: var(--t-meta); font-weight: 700; padding: 2px 8px; border-radius: var(--r-badge); white-space: nowrap; display: inline-block; }
.word.ok { background: var(--ok-bg); color: var(--ok-ink); }
.word.issue { background: var(--warn-bg); color: var(--warn-ink); }
.word.nc { background: var(--sold-bg); color: var(--sold-ink); font-weight: 600; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong);
       border-radius: 4px; padding: 0 5px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; }

/* ===== chips (filters, categories, suggestions) ===== */
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-chip);
        background: var(--surface); font-size: var(--t-small); font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip .n { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"], .chip.on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.chip.on .n { color: var(--brand); }
.chip[aria-disabled="true"] { color: var(--muted); background: transparent; border-style: dashed; }
.chip .ico { width: 14px; height: 14px; }

/* ===== forms base (R3 builds page forms on these) ===== */
label { display: block; font-weight: 600; font-size: var(--t-body); margin: var(--s4) 0 6px; }
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field label { margin: 0; font-size: var(--t-small); }
.field label span, label .hint, .hint { font-weight: 400; color: var(--muted); font-size: var(--t-meta); }
textarea, input[type=text], input[type=search], input[type=tel], input[type=password], input[type=number], input[type=url],
input[type=email], input[type=date], input[type=time], input[type=datetime-local], input[type=file], select, .input {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: var(--t-body); line-height: 1.4; color: var(--ink);
  background: var(--surface); border: 1px solid var(--input-line); border-radius: var(--r-ctl); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348433B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
input[type=file] { padding: 10px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; font-style: italic; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--brand); vertical-align: -5px; margin: 0 8px 0 0; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: var(--s2); }
.error:not(.badge):not(.word), .form-error { background: var(--danger-bg); color: #7A1C15; border: 1px solid #E8A9A2; border-radius: var(--r-ctl); padding: var(--s3) var(--s4); margin: var(--s3) 0; font-weight: 600; }
.ok:not(.badge):not(.word), .notice-ok { background: var(--ok-bg); color: var(--ok-ink); border-radius: var(--r-ctl); padding: var(--s3) var(--s4); margin: var(--s3) 0; font-weight: 600; }
.warn:not(.badge):not(.word) { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #E3CF9F; border-radius: var(--r-ctl); padding: var(--s3) var(--s4); white-space: pre-wrap; }

/* ===== surfaces and sections ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s6); box-shadow: var(--panel-shadow); margin: var(--s4) 0; }
.panel > :first-child { margin-top: 0; }
.sec { padding: var(--s8) 0; border-top: 1px solid var(--line); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.sec h2, .sec-h h2 { margin: 0; }
.sec-h .aside { font-size: var(--t-small); color: var(--muted); }
.notice { font-size: var(--t-small); color: var(--muted); padding: var(--s5) 0 var(--s10); border-top: 1px solid var(--line); }
.spinner { width: 28px; height: 28px; border: 4px solid var(--brand-tint); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== listing cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.card { position: relative; display: block; color: inherit; text-decoration: none; border-radius: var(--r-card); }
.card-link { display: block; color: inherit; text-decoration: none; border-radius: var(--r-card); }
.card-link:focus-visible { outline-offset: 4px; }
.card .ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card-photo); overflow: hidden; background: var(--surface-2); }
.card .ph picture { display: block; width: 100%; height: 100%; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card-link:hover .ph img { transform: scale(1.02); }
.card-link:hover .title { text-decoration: underline; text-decoration-thickness: 1px; }
.card .no-photo { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); font-size: var(--t-meta); font-weight: 500;
                  background: repeating-linear-gradient(135deg, var(--surface-2) 0 12px, #EDE7DB 12px 24px); }
.card .no-photo .ico { width: 26px; height: 26px; }
.card .ph .badge { position: absolute; top: 10px; left: 10px; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.card .ph .badge.drop { box-shadow: 0 1px 2px rgb(0 0 0 / .15), inset 0 -2px 0 var(--gold); }
.card .ph .cnt { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / .66); color: #fff; font-size: var(--t-eyebrow); font-weight: 600; padding: 2px 7px; border-radius: 4px;
                 display: inline-flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; }
.card .ph .cnt .ico { width: 13px; height: 13px; }
.card .sv-form { position: absolute; right: 3px; top: 3px; margin: 0; }
.card .sv { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; color: #111; border-radius: 50%; }
.card .sv::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: rgb(255 255 255 / .94); box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.card .sv .ico { position: relative; width: 17px; height: 17px; }
.card .sv[aria-pressed="true"] { color: #A3271C; }
.card .bd { padding: 10px 0 0; }
.card .title { font-family: var(--font-text); font-size: var(--t-body); font-weight: 600; line-height: 1.35; margin: 0;
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .title::after { content: none; }
.card .meta { font-size: var(--t-small); color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.card .pr { margin-top: 6px; display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.card .pr b { font-family: var(--font-head); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.card .pr b.por { font-size: var(--t-body); }
.card .pr span { font-size: var(--t-meta); color: var(--muted); font-weight: 500; }
.card .pr s { font-size: var(--t-meta); color: var(--muted); }
.card.is-sold .ph img { filter: saturate(.75); }

/* ===== browse pages: home, category, search, saved ===== */
.home-intro { padding: var(--s8) 0 var(--s5); }
.home-intro h1 { font-size: 32px; line-height: 1.2; margin: 0; }
.home-intro h1::after { content: ""; display: block; width: 52px; height: 3px; background: var(--accent); margin-top: var(--s3); }
.home-intro p { color: var(--ink-2); margin-top: var(--s3); max-width: 70ch; }
.cat-chips { margin-bottom: var(--s2); }
.results-bar { position: relative; display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0 var(--s6); flex-wrap: wrap; }
.results-bar .count { font-weight: 600; margin-right: auto; font-variant-numeric: tabular-nums; }
.search { position: relative; display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); width: 340px; padding: 0 0 0 12px;
          border: 1px solid var(--input-line); border-radius: var(--r-ctl); background: var(--surface); color: var(--muted); }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search input { border: 0; min-height: 42px; padding: 0 12px 0 0; background: transparent; font-size: 16px; outline: none; }
.select { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 12px;
          border: 1px solid var(--input-line); border-radius: var(--r-ctl); background: var(--surface); font-size: 15px; white-space: nowrap; color: var(--ink); }
.select label { margin: 0; font-size: 15px; font-weight: 400; color: var(--muted); }
.select select { border: 0; min-height: 42px; padding: 0 22px 0 0; background: none; font-size: 15px; font-weight: 500; width: auto; }
.select select:focus-visible { outline: none; }
.select:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.select > .chev { position: absolute; right: 10px; width: 16px; height: 16px; pointer-events: none; }
.filters { position: static; }
.filters > summary { list-style: none; cursor: pointer; font-weight: 500; }
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary .ico { width: 16px; height: 16px; }
.filters[open] > summary { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.filters-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; background: var(--surface); border: 1px solid var(--line-strong);
                 border-radius: var(--r-panel); box-shadow: var(--e2); padding: var(--s5); }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--s5); }
.filters-actions { display: flex; align-items: center; gap: var(--s5); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: calc(-1 * var(--s3)) 0 var(--s6); }
.active-filters .chip { min-height: 36px; }
.clear-all { font-size: var(--t-small); font-weight: 600; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s2); }
.strip-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin: var(--s12) 0 var(--s4); padding-top: var(--s8); border-top: 1px solid var(--line); }
.strip-h h2 { margin: 0; }
.strip-h a, .strip-h .aside { font-size: 15px; }
.strip-h a { font-weight: 600; text-decoration: none; }
.strip-h .aside { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.cards.sold-row { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s5) var(--s4); }
.cards.sold-row .card .title { font-size: 15px; }
.stars { color: var(--star); display: inline-flex; gap: 2px; }
.stars .ico { width: 15px; height: 15px; }
.stars .ico.off { color: var(--line-strong); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.review { margin: 0; background: #FFFDF8; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; font-size: 15px; }
.review .stars { margin-bottom: var(--s2); }
.review blockquote { margin: 0; }
.review .by { font-size: var(--t-small); color: var(--muted); margin-top: 10px; }
.review .by b { color: var(--ink); font-weight: 600; }
.asks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin: var(--s12) 0 var(--s4); }
.ask-card { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) var(--s6); border: 1px solid var(--line);
            border-radius: var(--r-panel); background: var(--surface); text-decoration: none; color: inherit; }
.ask-card:hover { border-color: var(--brand); }
.ask-card b { display: block; font-family: var(--font-head); font-size: 17px; }
.ask-card span { color: var(--muted); font-size: 15px; }
.ask-card .ico { color: var(--brand); }
.asks .ask-card:only-child { grid-column: 1 / -1; }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s8); text-align: left; }
.empty h2 { margin-bottom: var(--s2); }
.empty .ask-card { margin-top: var(--s5); background: var(--surface-2); border-color: var(--surface-2); max-width: 560px; }

/* ===== message / 404 ===== */
.message-card { margin: var(--s12) 0 var(--s8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s8); box-shadow: var(--panel-shadow); }
.message-card h1 { margin-bottom: var(--s4); }
/* shared-edit(ask_jordan): the buyer's page link on confirmation pages */
.message-thread { margin: var(--s4) 0; padding: var(--s4); background: var(--brand-tint); border-radius: var(--r-panel); }
.message-thread p { margin: 0 0 var(--s2); }
.message-thread a { overflow-wrap: anywhere; word-break: break-word; }
.message-card h1::after { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-top: 10px; }
.message-card .lead { font-size: 17px; }
.message-actions { display: flex; align-items: center; gap: var(--s4) var(--s6); flex-wrap: wrap; margin-top: var(--s6); }
.message-actions .btn { width: auto; }

/* ===== legacy (pre-redesign markup R2/R3 have not reached yet; tokenized; delete when unused) ===== */
.grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card .img { aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: var(--r-card-photo); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 10px 0 0; }
.card .body .title { font-weight: 600; }
.card .price { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); }
.price-big { font-family: var(--font-head); font-size: var(--t-price); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; } /* shared-edit(brand01): prices in the logo face */
table.specs { width: 100%; border-collapse: collapse; }
table.specs th, table.specs td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { width: 45%; font-weight: 500; color: var(--muted); }
.src { font-size: var(--t-meta); color: var(--muted); white-space: nowrap; }
.qa { border-top: 1px solid var(--line); padding: var(--s3) 0; }
.qa .q { font-weight: 600; }
.status-line { color: var(--muted); font-size: var(--t-meta); }
.suggest { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.suggest button { min-height: var(--tap); border-radius: var(--r-chip); border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--t-small); padding: 0 var(--s3); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--s2); }
.slots input { position: absolute; opacity: 0; pointer-events: none; }
.slots label { margin: 0; min-height: var(--tap); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong);
  border-radius: var(--r-chip); background: var(--surface); font-weight: 500; font-size: var(--t-small); cursor: pointer; font-variant-numeric: tabular-nums; }
.slots input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.slots input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.row-item { display: flex; gap: var(--s3); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s3); margin-bottom: var(--s2); color: inherit; text-decoration: none; }
.row-item img, .row-item .ph { width: 84px; height: 64px; object-fit: cover; border-radius: var(--r-thumb); background: var(--surface-2); flex: none; }
.row-item .grow { flex: 1; min-width: 0; }

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header .wrap { gap: var(--s5); }
  .nav { gap: var(--s4); }
}
@media (max-width: 900px) {
  .brand { min-width: 0; }
  .brand .name, .brand .desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-btn { display: grid; place-items: center; flex: none; width: var(--tap); height: var(--tap); margin-right: -10px; margin-left: auto; }
  .hdr-text + .menu-btn { margin-left: 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 0 var(--wrap-pad) var(--s3);
         background: var(--surface); border-bottom: 1px solid var(--line-strong); box-shadow: var(--e2); }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-header .wrap { gap: var(--s3); min-height: 56px; }
  .brand .name { font-size: 20px; white-space: nowrap; }
  .brand-logo { height: 44px; } /* shared-edit(brand01) */
  .brand .desc { display: none; }
  .hdr-text .num { display: none; }
  .topbar .wrap > :not(:first-child) { display: none; }
  .topbar .wrap > :first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .home-intro { padding: var(--s6) 0 var(--s4); }
  .home-intro h1 { font-size: 25px; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--wrap-pad)); padding-right: var(--wrap-pad); scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .results-bar { gap: var(--s2); }
  .results-bar .search { width: 100%; order: -1; }
  .results-bar .count { flex-basis: 100%; order: -2; margin-right: 0; }
  .results-bar .select, .results-bar .filters { flex: 1 1 0; min-width: 0; }
  .results-bar .select select { width: 100%; min-width: 0; text-overflow: ellipsis; }
  .results-bar > .btn { flex: none; }
  .results-bar .select label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results-bar .filters > summary { justify-content: center; }
  .filters-panel { padding: var(--s4); }
  .cards { grid-template-columns: 1fr; gap: var(--s5); }
  .cards.sold-row { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
  .cards.sold-row .card .title { font-size: var(--t-small); }
  .reviews, .asks { grid-template-columns: 1fr; }
  .sec { padding: var(--s6) 0; }
  .panel { padding: 18px var(--s4); }
  .empty, .message-card { padding: var(--s6) var(--s4); }
  .message-card { margin-top: var(--s6); }
  .message-actions .btn { width: 100%; }
  .site-footer .cols { grid-template-columns: 1fr; gap: var(--s6); }
  .btn.block-sm { width: 100%; }
}
@media print {
  .topbar, .site-header, .site-footer, .sv-form, .skip { display: none !important; }
  body { background: #fff; }
}

/* ===== fix16: touch targets (WCAG 2.2 AA 24px floor; 44px for primary controls) ===== */
.strip-h a, .sec-h a.aside, .sec-h a, .haulers a, .vp-own a, a[href^="tel:"], a[href^="sms:"]:not(.btn):not(.hdr-text):not(.p) { display: inline-flex; align-items: center; min-height: var(--tap); }
.ip-buy a[href^="sms:"], .ip-buy a[href^="tel:"] { gap: 6px; }
.citations a, .cto-src a, [data-cto] a { display: inline-block; padding: 4px 0; }
@media (pointer: coarse) { .chips .chip, .vp-day { min-height: var(--tap); } }
.site-footer a, .f-back a, .f-sms-terms a, .f-fine a, .f-opt a { display: inline-block; padding: 4px 0; }
.f-back a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ===== call-text (2026-11-09): "Call or text Jordan" buttons open one Call / Text sheet; no number shown ===== */
:where(.ct-btn) { font: inherit; cursor: pointer; }  /* zero specificity: .btn / .hdr-text / .btn-text keep their own weight and size */
.ct-btn.hdr-text { background: none; border: 0; padding: 0; }
.ct-link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); }
.ct-link:hover { text-decoration: underline; }
.ct-sheet { margin: auto auto 0; width: min(420px, 100vw); max-width: 100vw; padding: var(--s3) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom));
            border: 0; border-radius: 16px 16px 0 0; background: var(--surface, #fff); color: var(--ink); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
.ct-sheet::backdrop { background: rgba(0, 0, 0, .35); }
.ct-h { margin: var(--s1) 0 var(--s2); text-align: center; font-size: var(--t-small); font-weight: 600; color: var(--muted); }
.ct-opt, .ct-cancel { display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; min-height: 52px; margin-top: var(--s2);
                      border-radius: 12px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ct-opt { background: var(--brand); color: #fff; border: 0; }
.ct-opt:hover { background: var(--brand-hover, var(--brand)); color: #fff; }
.ct-opt .ico { width: 20px; height: 20px; }
.ct-cancel { background: none; border: 1px solid var(--line-strong, #ccc); color: var(--ink); }
@media (min-width: 601px) { .ct-sheet { margin: auto; border-radius: 16px; } }
