/* styles.css */
/* PreppedNest V6 Stylesheet - Warm Nursery Alabaster + Automotive Safety Sage & Terracotta */
:root {
  --bg: #faf8f4;
  --bg-soft: #f2efe8;
  --bg-tint: #ebe6dc;
  --card: #ffffff;
  --ink: #16201c;
  --ink-2: #2c3b34;
  --muted: #495951;
  --line: #dcd6ca;
  --line-strong: #c2baa9;
  --sage: #14532d;
  --sage-2: #15803d;
  --sage-soft: #e7f3ec;
  --sage-line: #b7dcc5;
  --terra: #c2410c;
  --terra-dark: #9a3412;
  --terra-soft: #fff1eb;
  --terra-line: #f6c6b0;
  --amber-ink: #854d0e;
  --amber-soft: #fef6e4;
  --rose-ink: #9f1239;
  --rose-soft: #fff1f2;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(22, 32, 28, 0.05);
  --shadow-md: 0 10px 28px rgba(22, 32, 28, 0.08);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--sage); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }

button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 2px;
}

/* Hide Hunter Thomas feedback floating pill until explicitly requested */
#htfb-btn { display: none !important; }
body.show-feedback #htfb-btn { display: inline-flex !important; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--sage);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 12px; }

/* Masthead */
.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  flex-shrink: 0;
}
.crest { width: 40px; height: 40px; flex-shrink: 0; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--sage); }
.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.primary {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.primary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.primary a:hover { background: var(--bg-soft); color: var(--sage); }
.primary a.active { background: var(--sage); color: #ffffff; }

.mast-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tool-btn, .menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.tool-btn:hover, .menu-btn:hover { border-color: var(--sage); color: var(--sage); }
.count-dot {
  background: var(--terra);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
}
.menu-btn { display: none; padding: 0 10px; }

.drawer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 10px 16px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.drawer[hidden] { display: none !important; }
.drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

/* Main View Container */
#view {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 18px 56px;
  min-height: 72vh;
}
.noscript {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
}

/* Shared Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn.primary, .btn.sage { background: var(--sage); color: #ffffff; }
.btn.primary:hover, .btn.sage:hover { background: #0f3f22; color: #ffffff; }
.btn.terra { background: var(--terra); color: #ffffff; }
.btn.terra:hover { background: var(--terra-dark); color: #ffffff; }
.btn.ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost:hover { border-color: var(--sage); color: var(--sage); }
.btn.sm { min-height: 44px; padding: 7px 13px; font-size: 13px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  background: var(--sage-soft);
  border: 1px solid var(--sage-line);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Home product filters and feed */
.nest-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f2ea 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-sm);
}
.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-copy { flex: 1 1 420px; min-width: 0; }
.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  color: var(--ink);
}
.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  max-width: 72ch;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 440px;
  justify-content: flex-end;
}
.search-box {
  position: relative;
  flex: 1 1 210px;
  min-width: 170px;
}
.search-box input, .ctrl-input, .ctrl-select {
  width: 100%;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.ctrl-select { width: auto; padding-right: 30px; cursor: pointer; }
.search-box input::placeholder, .ctrl-input::placeholder { color: var(--muted); opacity: 0.9; }

.pill-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.pill:hover { border-color: var(--sage); color: var(--sage); }
.pill.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}
.pill.sale-pill.active {
  background: var(--terra);
  border-color: var(--terra);
  color: #ffffff;
}
.pill .cnt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hero-foot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Product Grid & Cards */
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.pcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-line);
}
.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: 1px solid var(--bg-soft);
  display: block;
  overflow: hidden;
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.badge-stack {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
  max-width: calc(100% - 56px);
}
.pbadge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
}
.pbadge.sale { background: var(--terra); color: #ffffff; }
.pbadge.clean { background: var(--sage); color: #ffffff; }
.pbadge.travel { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid #ecc97e; }

.save-ico {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.save-ico:hover { border-color: var(--sage); color: var(--sage); }
.save-ico.saved { background: var(--terra); border-color: var(--terra); color: #ffffff; }

.pcard-body {
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}
.pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.pcard-brand {
  color: var(--sage);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard-cat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.pcard-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}
.pcard-title a {
  color: var(--ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-title a:hover { color: var(--sage); }
.pcard-spec {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--bg-soft);
}
.price-wrap { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-now {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.price-was {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: line-through;
}
.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  border: 1px solid var(--sage-line);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.buy-link:hover { background: var(--sage); color: #ffffff; border-color: var(--sage); }

/* Editorial Bands on Home */
.band { margin-top: 32px; }
.band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.band-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--ink);
}
.band-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 68ch; }

/* Brand Strip */
.brand-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.brand-chip:hover { border-color: var(--sage); color: var(--sage); }
.brand-chip span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Home Interactive Fit Bench Preview & Full #fit-lab */
.fit-bench-box {
  background: var(--card);
  border: 1.5px solid var(--sage-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.fit-pickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.field select, .field input {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
}

.veh-summary-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.veh-stats {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.stat-box .k {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.stat-box .v {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}
.grade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.grade-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  border: 1px solid var(--sage-line);
}
.veh-diagram-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Fit Verdict Badges & Spec Cards */
.fit-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.verdict-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.verdict-fits { background: var(--sage-soft); color: var(--sage); border: 1px solid var(--sage-line); }
.verdict-tight { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid #ecc97e; }
.verdict-skip { background: var(--rose-soft); color: var(--rose-ink); border: 1px solid #fecdd3; }
.verdict-neutral { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.spec-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec-card h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.spec-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.spec-kv span {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
}
.meter-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-tint);
  overflow: hidden;
}
.meter-fill { height: 100%; border-radius: 999px; background: var(--sage-2); }
.meter-fill.tight { background: #d97706; }
.meter-fill.skip { background: #e11d48; }

/* Adapter & Recall Cards */
.adapter-result {
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}
.recall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.recall-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recall-card h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.checklist-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chk-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.chk-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* Stage Modes & Kits */
.stage-grid, .kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stage-card, .kit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.stage-card:hover, .kit-card:hover { border-color: var(--sage); box-shadow: var(--shadow-sm); }
.stage-card h3, .kit-card h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.stage-card p, .kit-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.kit-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.kit-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}

/* Brands & Report Cards */
.bgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bcard-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.bcard-mosaic img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--bg-soft);
  border-radius: 8px;
  padding: 4px;
}
.bcard h3 { margin: 0; font-size: 17px; font-weight: 700; }
.bcard h3 a { color: var(--ink); text-decoration: none; }
.bcard h3 a:hover { color: var(--sage); }

/* Videos & Creators */
.theater {
  background: #101915;
  color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}
.theater-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}
.theater-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.theater-meta {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.theater-meta h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  color: #ffffff;
}
.theater-meta p { margin: 0; color: #d5e2db; font-size: 13.5px; }

.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.vcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vcard-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #16201c;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-chip {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20, 83, 45, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.vcard-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard-body h3 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.32; }

.cgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ccard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ccard-head { display: flex; align-items: center; gap: 12px; }
.c-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--sage);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.soc-row { display: flex; gap: 8px; flex-wrap: wrap; }
.soc-ico-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--soc, var(--sage));
  color: var(--soc-on, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.soc-ico-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Item Detail View */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.detail-media {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.detail-media img { max-height: 100%; object-fit: contain; }
.detail-info { display: flex; flex-direction: column; gap: 12px; }
.detail-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0;
  line-height: 1.18;
}
.size-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

/* Page Heads & Trust Pages */
.page-head { margin-bottom: 18px; }
.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 34px);
  margin: 8px 0 6px;
  line-height: 1.15;
}
.lede { margin: 0; color: var(--muted); font-size: 15px; max-width: 72ch; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.legal-card, .remove-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.legal-card h2, .remove-box h2 { margin: 0 0 8px; font-size: 17px; }
.partners-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
}
.faq-list summary { cursor: pointer; font-weight: 700; min-height: 28px; }
.fine { font-size: 12.5px; color: var(--muted); }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 34px 18px 44px;
  margin-top: 32px;
}
.foot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}
.foot-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.foot-brand em { font-style: normal; color: var(--sage); }
.foot-note, .foot-sister { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; max-width: 54ch; }
.foot-links { display: flex; flex-direction: column; gap: 4px; }
.foot-hd {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.foot-links a, .link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.foot-links a:hover, .link-btn:hover { color: var(--sage); text-decoration: underline; }

/* Retail Filter Bar (Desktop Pill Selects + Mobile Filter Drawer) */
body.flt-drawer-open { overflow: hidden; }
.hero-cta-wrap { flex-shrink: 0; }
.shop-compact-head { margin-bottom: 12px; }
.shop-compact-head h1 { margin: 6px 0 4px; }

.flt-shell {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}
.flt-desk, .flt-deals-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.flt-deals-bar { margin-bottom: 16px; }
.flt-mob { display: none; }

.flt-search-wrap {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 100%;
}
.flt-search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.flt-search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px 8px 36px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.flt-search-wrap input:focus {
  border-color: var(--sage);
}

.flt-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 34px 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%2316201c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-overflow: ellipsis;
}
.flt-select:hover { border-color: var(--sage); }
.flt-select.is-active {
  border-color: var(--sage);
  background-color: var(--sage-soft);
  color: var(--sage);
}
.flt-full-select {
  width: 100%;
  border-radius: var(--radius-sm);
}

.flt-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.flt-toggle:hover { border-color: var(--sage); color: var(--sage); }
.flt-toggle.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}
.flt-toggle.sale-toggle.active {
  background: var(--terra);
  border-color: var(--terra);
  color: #ffffff;
}

.flt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--terra-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.flt-clear:hover { border-color: var(--terra); background: var(--terra-soft); }

.flt-drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(22, 32, 28, 0.52);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.flt-drawer[hidden] { display: none !important; }
.flt-drawer-panel {
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 32px rgba(22, 32, 28, 0.2);
}
.flt-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px 20px 0 0;
}
.flt-drawer-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}
.flt-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.flt-drawer-body {
  padding: 14px 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flt-sec { display: flex; flex-direction: column; gap: 8px; }
.flt-sec-lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.flt-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flt-chip {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.flt-chip.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}
.flt-chip.sale-chip.active {
  background: var(--terra);
  border-color: var(--terra);
  color: #ffffff;
}
.flt-drawer-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--card);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

/* Integrated Editorial & Shopping Feed Posts (#home) */
.nest-feed-shell {
  margin-bottom: 8px;
}
.feed-sentinel {
  width: 100%;
  height: 4px;
}
.ifd-post {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(22, 32, 28, 0.05);
  min-width: 0;
  max-width: 100%;
}
.ifd-post-planner {
  background:
    radial-gradient(circle at 90% 18%, rgba(20, 83, 45, 0.09), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #f3f7f4 100%);
  border-color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ifd-planner-copy {
  flex: 1 1 400px;
  min-width: 0;
}
.ifd-planner-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ifd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ifd-title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.ifd-title a { color: inherit; text-decoration: none; }
.ifd-title a:hover { color: var(--sage); }
.feed-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-shortcuts .ifd-pill { min-height: 44px; max-width: 100%; white-space: normal; text-align: left; border: 1px solid var(--line); text-decoration: none; }
.ifd-post { min-width: 0; overflow-wrap: anywhere; }
.gift-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.gift-preview img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-sm); background: #fff; }
.ifd-post { scroll-margin-top: 80px; }
.static-main { width: min(1200px, 100%); margin: 0 auto; padding: 24px 16px; min-width: 0; }
.static-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 18px 0; }
.static-links a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.static-section { margin: 36px 0; scroll-margin-top: 100px; }
.static-page .pcard img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.static-page .pcard-title, .static-page .fine, .static-page h1 { overflow-wrap: anywhere; }
.static-page .pcard-title { -webkit-line-clamp: unset; display: block; }
.static-page .mast-inner { flex-wrap: wrap; }
.static-page .pcard-body { flex: 1; }
.static-page .buy-link { display: inline-flex; justify-content: center; min-height: 44px; align-items: center; }
.channel-list { list-style: none; padding: 0; }
.channel-list li { display: flex; flex-wrap: wrap; gap: 0 16px; border-bottom: 1px solid var(--line); }
.channel-list a { display: inline-flex; align-items: center; min-height: 44px; }
.static-page .vcard > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ifd-dek {
  margin: 8px 0 12px;
  max-width: 66ch;
  font-size: 14.5px;
  color: var(--muted);
}
.ifd-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ifd-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sage);
}
.ifd-vid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ifd-vid-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.ifd-vid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #16201c;
}
.ifd-vid-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ifd-vid-trig {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #16201c;
  cursor: pointer;
  display: block;
}
.ifd-vid-trig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ifd-play-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
.ifd-vid-meta {
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ifd-vid-creator {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ifd-vid-meta h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.ifd-post-kit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ef 100%);
  border-color: var(--line-strong);
}
.ifd-kit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.ifd-kit-price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
}
.ifd-kit-price b {
  color: var(--ink);
  font-size: 16px;
}
.ifd-cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ifd-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ifd-kit-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.ifd-kit-tile:hover {
  border-color: var(--sage);
}
.ifd-kit-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.ifd-kit-tile span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ifd-brand-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ifd-brand-mini {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.ifd-brand-mini h3 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 18px;
}
.ifd-brand-mini h3 a { color: inherit; text-decoration: none; }

/* Responsive Breakpoints */
@media (max-width: 1060px) {
  .primary { display: none; }
  .menu-btn { display: inline-flex; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-grid, .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid, .bgrid, .vgrid, .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .veh-summary-grid, .theater, .detail-grid, .partners-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #view { padding: 10px 12px 44px; }
  .mast-inner { padding: 6px 12px; }
  .brand-sub, .tool-lbl, .hero-cta-wrap { display: none; }
  .tool-btn { padding: 0 10px; }
  .nest-hero { padding: 12px 12px 16px; }
  .hero-top { gap: 6px; margin-bottom: 8px; }
  .hero-copy h1 { font-size: 20px; margin: 4px 0 0; }
  .flt-desk { display: none; }
  .flt-mob {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .flt-mob .flt-search-wrap { flex: none; min-width: 0; width: 100%; }
  .flt-mob-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }
  .flt-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: var(--card);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    min-width: 0;
  }
  .flt-open-btn.has-active {
    border-color: var(--sage);
    background: var(--sage-soft);
    color: var(--sage);
  }
  .flt-badge {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--sage);
    color: #ffffff;
  }
  .flt-mob-sort { width: 100%; }
  .flt-mob-clear-row { display: flex; justify-content: flex-end; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { min-width: 0; }
  .pcard-body { padding: 10px; min-width: 0; }
  .pcard-title { font-size: 13.5px; }
  .pcard-spec { display: none; }
  .pcard-foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .buy-link { width: 100%; text-align: center; justify-content: center; }
  .spec-grid, .bgrid, .vgrid, .cgrid, .recall-grid, .legal-grid, .foot-inner, .ifd-vid-pair, .ifd-post-kit, .ifd-brand-pair { grid-template-columns: 1fr; }
  .ifd-kit-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ifd-post { padding: 15px 14px; }
  .pill-bar { flex-wrap: wrap; gap: 6px; padding: 4px 0 10px; margin-bottom: 10px; }
  .pill { padding: 6px 12px; font-size: 12.5px; }
}

@media (max-width: 600px) {
  .pcard-cat { display: none; }
}

@media (max-width: 374px) {
  #view { padding: 8px 8px 40px; }
  .nest-hero { padding: 10px 8px 14px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcard-body { padding: 8px; }
  .pcard-title { font-size: 12.5px; }
  .price-now { font-size: 14.5px; }
  .buy-link { padding: 6px 8px; font-size: 12px; }
  .stage-grid, .kit-grid, .drawer { grid-template-columns: 1fr; }
  .brand-name { font-size: 17px; }
  .crest { width: 32px; height: 32px; }
}

/* Home photo wall. All moving layers use transform only. */
#view:has(.photo-hero) { max-width: none; padding: 0 0 56px; }
#view:has(.photo-hero) .nest-feed-shell { max-width: 1284px; margin: 24px auto 0; }
.photo-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--bg); min-height: calc(100svh - 61px); display: flex; align-items: flex-end; }
.photo-wall { position: absolute; z-index: -2; inset: -25% -8%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; transform: rotate(-7deg); pointer-events: none; }
.wall-col { display: flex; flex-direction: column; align-self: start; animation: nestWall 74s linear infinite; will-change: transform; }
.wall-col:nth-child(2) { animation-duration: 86s; animation-direction: reverse; }
.wall-col:nth-child(3) { animation-duration: 66s; }
.wall-col:nth-child(4) { animation-duration: 90s; animation-direction: reverse; }
.wall-col:nth-child(5) { animation-duration: 80s; }
.wall-group { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; }
.wall-cell { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: #fff; }
.wall-cell img { width: 100%; height: 100%; object-fit: cover; }
@keyframes nestWall { to { transform: translateY(-50%); } }
.photo-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(22,32,28,.22), rgba(22,32,28,.70) 30%, rgba(20,83,45,.90) 76%, var(--ink)); }
.photo-copy { width: min(100%, 1320px); margin: 0 auto; padding: 160px 36px 44px; }
.photo-copy h1 { font-family: var(--font-serif); font-size: clamp(72px, 8.5vw, 124px); font-weight: 700; line-height: .99; letter-spacing: -.045em; margin: 0; color: var(--bg); }
.photo-copy h1 span { display: block; }
.photo-copy h1 em { color: #86efac; font-style: normal; }
.photo-sub { max-width: 48ch; margin: 24px 0; font-size: 18px; line-height: 1.55; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-actions .btn { min-height: 50px; padding: 12px 22px; }
.photo-actions .ghost { color: var(--bg); background: var(--ink); border-color: var(--bg); }
.photo-actions .ghost:hover { background: var(--bg); color: var(--ink); }
.photo-disclosure { max-width: 60ch; font-size: 12px; margin: 18px 0 0; }
.photo-disclosure a { color: inherit; }
@media (max-width: 768px) {
  #view:has(.photo-hero) .nest-feed-shell { margin: 16px 12px 0; }
  .photo-hero { min-height: calc(100svh - 57px); }
  .photo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -16% -23%; gap: 10px; }
  .wall-col:nth-child(n+4) { display: none; }
  .wall-group { gap: 10px; padding-bottom: 10px; }
  .wall-cell { border-radius: 12px; }
  .photo-copy { padding: 180px 18px 28px; }
  .photo-copy h1 { font-size: clamp(52px, 17vw, 94px); line-height: .98; }
  .photo-copy h1 em { display: block; }
  .photo-sub { font-size: 16px; max-width: 38ch; margin: 20px 0; }
  .photo-actions { gap: 10px; }
  .photo-actions .btn { padding: 11px 16px; }
}
@media (max-width: 374px) {
  #view:has(.photo-hero) .nest-feed-shell { margin: 12px 8px 0; }
  .mast-inner { gap: 6px; padding-inline: 8px; }
  .mast-tools { gap: 4px; }
  .photo-copy { padding: 140px 12px 24px; }
  .photo-actions .btn { padding: 10px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-col { animation: none; will-change: auto; }
}
/* Dated store markdowns. Photos use local files. */
.bf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bf-card { min-width: 0; border: 1px solid #d8dfd7; border-radius: 16px; overflow: hidden; background: #fff; }
.bf-card > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.bf-card-copy { padding: 16px; }
.bf-card h3 { font-size: 18px; line-height: 1.35; margin: 8px 0; overflow-wrap: anywhere; }
.bf-card p { margin: 8px 0; }
.bf-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.bf-prices strong { color: #14532d; font-size: 22px; }
.bf-prices del, .bf-read, .bf-variant { color: #505b51; font-size: 14px; }
.bf-prices span:last-child { color: #9a3412; font-weight: 700; }
.bf-preview { max-width: 1284px; margin: 28px auto; padding: 0 16px; }
.bf-prices .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.bf-group { margin: 28px 0; }
.bf-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; }
.bf-filters label { display: grid; gap: 6px; }
.bf-accent { background: #14532d; color: #fff; border-color: #14532d; }
.bf-accent:hover { background: #0c3820; color: #fff; }
@media (max-width: 1050px) { .bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bf-grid { grid-template-columns: 1fr; } .bf-filters label, .bf-filters select { width: 100%; } }

.amazon-link { display: block; margin-top: 8px; text-underline-offset: 3px; }

/* Speed: a link to another page hides the home HTML from the build until app.js draws the page (site/deep-link.js). */
.pre-deep #view[data-pre] { visibility: hidden; }
.pick-table{max-width:100%;overflow:auto}
.pick-table table{width:100%;border-collapse:collapse;text-align:left}
.pick-table :is(th,td){padding:.65rem;vertical-align:top;border-bottom:1px solid currentColor}
.pick-table th img{display:block;object-fit:contain}
.pick-table .buy-link{min-height:44px}

.seasonal-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--ink);
}
.seasonal-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.holiday-label, .holiday-season .black-friday-label,
.season-over :is(.seasonal-strip, .seasonal-entry) { display: none; }
.holiday-season .holiday-label { display: inline; }
.price-checked { margin: 0; color: #465449; font-size: .75rem; }
.pcard-foot { flex-wrap: wrap; }
.buy-link { max-width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.buy-link, .amazon-link, a[data-store-link] { min-height: 44px; }
.amazon-link { display: inline-flex; align-items: center; margin-top: 2px; }
.pcard-media, .bf-card > img { background: #f0f4ef; }
.deals-first { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deals-first .pcard-media { max-height: 240px; }
.home-reading { padding-bottom: 36px; }
.pre-deep :is(#view, #home-reading) { visibility: hidden; }

@media (max-width: 768px) {
  .photo-hero { min-height: 264px; }
  .photo-copy { padding: 86px 16px 24px; }
  .photo-copy h1 { font-size: clamp(25px, 8.1vw, 57px); line-height: 1.05; }
  .photo-copy h1 :is(span, em) { display: inline; }
  .photo-sub { margin: 12px 0; }
  .photo-actions .btn:not(:first-child) { display: none; }
  .photo-disclosure { margin-top: 8px; }
  .bf-preview { margin: 16px auto 22px; }
  .bf-preview .bf-heading h2 { font-size: 1.3rem; margin: 0 0 8px; }
  .bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bf-card > img { aspect-ratio: 4 / 3; }
  .bf-card-copy { padding: 9px; }
  .bf-card h3 { font-size: .95rem; }
  .bf-card .btn { width: 100%; min-height: 44px; padding: 6px; text-align: center; }
  .bf-filters { gap: 8px; }
  .bf-filters label { flex: 1; min-width: 0; width: auto; }
  .bf-filters label select { min-width: 0; }
  .pcard-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pcard-foot .buy-link { width: 100%; }
  .shop-compact-head h1, body.static-page:has(.deals-first) h1 { font-size: clamp(24px, 7vw, 40px); }
}
/* Choice lists on the /cars/ and /gear/ pages */
.fit-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fit-card { display: flex; gap: 12px; padding: 12px; border: 1px solid #d9ded6; border-radius: 12px; background: #ffffff; }
.fit-card > div { min-width: 0; }
.fit-card img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.fit-card h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.fit-card p { margin: 0 0 4px; }
.fit-vals { font-size: .85rem; }
.fit-card .buy-link { margin-top: 6px; }
/* Category price table on a phone: one block for each product, so the price and the store button need no sideways scroll */
@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: auto; }
  .price-table tr { padding: 12px 0; border-bottom: 1px solid currentColor; overflow: hidden; }
  .price-table :is(th, td) { border: 0; padding: 2px 0; }
  .price-table th img { float: left; margin: 0 12px 6px 0; }
  .price-table td:nth-child(n+3) > div { display: inline-block; margin-right: 10px; }
  .price-table td:last-child { clear: both; padding-top: 6px; }
}

/* Seasonal shopping notes */
.seasonal-summary { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.seasonal-copy {
  max-width: 72ch;
  margin: 28px 0;
  padding: 20px 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  overflow-wrap: anywhere;
}
.seasonal-copy h2 { margin: 24px 0 8px; }
.seasonal-copy h3 { margin: 16px 0 4px; font-size: 17px; }
.seasonal-copy p, .seasonal-copy li { line-height: 1.55; }
.seasonal-copy ul { padding-left: 20px; }
.seasonal-copy .answer { font-size: 18px; }
.seasonal-copy .seasonal-src, .seasonal-copy .seasonal-cite { font-size: 14px; }
