/* ============================================================
   paultan.org/research — styles
   Native extension of the paultan.org (Breezy) visual language:
   Arial · #f3f3f3 ground · white 10px-radius cards · soft shadows
   · 14px bold titles / 12px grey dates · centered bold section
   headings · #a60f0f red pills.
   ============================================================ */

:root {
  --red:        #a60f0f;
  --red-dark:   #8a0c0c;
  --ink:        #1a1a1a;
  --muted:      #63666f;
  --ground:     #f3f3f3;
  --card-line:  rgba(0, 0, 0, .08);
  --chip-bg:    #f4f4f5;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 700px; margin: 0 auto; padding-left: 10px; padding-right: 10px; }

/* ── App bar — same black sticky bar as the main site ──── */

.appbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.appbar-in {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.appbar-logo { line-height: 0; }
.appbar-logo img { width: 104px; height: auto; }

/* mobile: burger left · logo · search field right (badge lives in the drawer) */
.appbar-section { display: none; }
.appbar-nav { display: none; }

.burger {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 1px;
  background: #e9ebed;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.appbar-search { display: block; flex: 1; max-width: 190px; margin-left: auto; }
.appbar-search input {
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
  -webkit-appearance: none;
  appearance: none;
}
.appbar-search input::placeholder { color: #b5b5b5; }
.appbar-search input:focus { outline: 0; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }

/* drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,.55);
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1002;
  width: 78%;
  max-width: 300px;
  background: #111;
  padding: 18px 20px;
  overflow-y: auto;
  box-shadow: 6px 0 30px rgba(0,0,0,.4);
}
.drawer-brand {
  margin: 4px 0 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.drawer-brand img { width: 118px; height: auto; }
.drawer-brand em {
  font-style: normal;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #000;
  background: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: 2px;
  margin-left: 6px;
}
.drawer a {
  display: block;
  padding: 12px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  color: #e9ebed;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.drawer a:active { background: #232323; }
.drawer-back {
  margin-bottom: 14px !important;
  border-bottom: 1px solid #2c2c2c;
  color: #9a9a9a !important;
  font-weight: normal !important;
}
html.drawer-open { overflow: hidden; }

/* ── Hero (search-first, wireframe IA dir A) ───────────── */

.hero { padding: 24px 10px 6px; text-align: center; }

.hero-shell { padding-top: 14px; }
.hero-box {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  padding: 22px 14px 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
}

.hero-stats {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.hero-sub {
  max-width: 480px;
  margin: 8px auto 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-sub strong { color: var(--ink); }

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 16px auto 0;
}
.hero-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.hero-search-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 16px;          /* ≥16px stops iOS zoom-on-focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 11px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-appearance: none;
  appearance: none;
}
.hero-search-field input:focus { outline: 0; border-color: var(--red); }

/* Ghost typewriter demo — JS toggles .is-animating on the field wrapper */
.hero-search-ghost {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  max-width: calc(100% - 36px);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  opacity: .68;
}
.hero-search-field.is-animating .hero-search-ghost { display: flex; }

.hero-search-caret {
  flex: 0 0 2px;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--red);
  animation: hero-search-caret-blink 1s step-end infinite;
}
@keyframes hero-search-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-search button {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
@media (hover:hover) { .hero-search button:hover { background: var(--red-dark); } }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
}
.hero-chips a {
  font-size: 12px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 7px 13px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .hero-chips a:hover { color: var(--red); border-color: var(--red); } }
.hero-chips .chip-active,
.hero-chips a.is-demo-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.hero-chips a.is-demo-active {
  animation: hero-chip-pulse 1.4s ease-out;
}
@keyframes hero-chip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 16, 46, .4); }
  70%  { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-search-ghost { display: none !important; }
  .hero-chips a.is-demo-active { animation: none; }
}

.err-code {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: bold;
  color: var(--red);
}

/* ── Sections — centered bold headings like the homepage ─ */

.section { padding: 26px 10px 4px; }

.section-tinted {
  margin-top: 26px;
  padding: 4px 0 22px;
  background: transparent;
  border: 0;
}

.section-head {
  display: block;
  text-align: center;
  border: 0;
  padding: 0 0 14px;
  margin: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.section-note {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* right-aligned "view all" link in section heads — desktop only */
.section-link { display: none; }

/* ── Cards — pt-featured-grid idiom ────────────────────── */

.launch-grid,
.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 12px;
}

.card { min-width: 0; }

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) {
  .card-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06); }
  .card-link:hover .card-title { color: var(--red); }
}
.card-link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.card-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #fff;
  overflow: hidden;
  line-height: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-soft, #f0f0f0);
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }

.card-noimg {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ececec, #f6f6f6);
}

.card-body { padding: 10px 12px 12px; }

.card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.card-date { margin: 0 0 4px; font-size: 11px; color: var(--muted); }

.card-title {
  margin: 0 0 4px;
  font-size: 13px;          /* matches live pt-featured-grid-title on mobile */
  line-height: 1.3;
  font-weight: bold;
  color: var(--ink);
  transition: color .15s ease;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 6px;
}

.card-gen, .card-chip { font-size: 11px; color: var(--muted); }
.card-chip::before { content: "· "; }

.card-price {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
}
.card-price-tba { color: var(--muted); font-weight: normal; }

.chip-coming {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 3px 9px;
}

/* homepage launches: show only the first 4 cards on mobile */
.launch-grid-home .card:nth-child(n+5) { display: none; }
@media (min-width: 700px) {
  .launch-grid-home .card:nth-child(n+5) { display: block; }
}

/* lead card spans both columns, bigger text */
.card-lead { grid-column: 1 / -1; }
.card-lead .card-title { font-size: 18px; }
.card-lead .card-price { font-size: 15px; }
.card-lead .card-body { padding: 12px 14px 14px; }

/* ── Chip + tile indexes — pt-tag-view-all idiom ───────── */

.chip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: none;
  border: 0;
}

.chip-grid-loose { grid-template-columns: repeat(2, 1fr); }

.chip-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) {
  .chip-link:hover span { color: var(--red); }
}
.chip-link:active { transform: translateY(1px); }
.chip-link em {
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  color: var(--muted);
}

.tile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile-link {
  display: block;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) {
  .tile-link:hover strong { color: var(--red); }
}
.tile-link:active { transform: translateY(1px); }
.tile-logo, .tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-bottom: 8px;
}
.tile-logo img { max-height: 40px; max-width: 76px; width: auto; height: auto; }
.tile-icon img { max-height: 34px; width: auto; }

.chip-logo {
  flex: none;
  width: 26px;
  max-height: 26px;
  object-fit: contain;
  align-self: center;
}

/* Make page — left-aligned logo + title lockup (wireframe screen 2) */
.make-hero { text-align: left; }
.make-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.make-head-logo {
  flex: none;
  width: 76px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 8px;
}
.make-head-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.make-head-text { min-width: 0; }
.make-head .hero-title { margin: 0; }
.make-head .hero-stats { margin: 4px 0 0; }

/* ── Make page: overview + facts ───────────────────────── */
.make-intro { padding-top: 6px; }
.make-overview {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.make-overview strong { font-weight: bold; }

.make-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule-soft, #f0f0f0);
}
.make-facts > div { min-width: 0; flex: 0 1 auto; padding-right: 14px; }
.make-facts > div + div { border-left: 1px solid var(--rule-soft, #f0f0f0); padding-left: 14px; }
.make-facts dt { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.make-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: bold; color: var(--ink); }
.make-facts dd a { color: var(--red); text-decoration: none; }
@media (hover:hover) { .make-facts dd a:hover { text-decoration: underline; } }
@media (max-width: 560px) {
  .make-facts > div { flex: 1 1 45%; padding: 0; }
  .make-facts > div + div { border-left: 0; padding-left: 0; }
}

/* ── Brand news — matches Breezy WP theme search results ─ */
.pt-search-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pt-search-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .pt-search-results { grid-template-columns: 1fr; }
  .pt-search-results .pt-search-result:nth-child(n+5) { display: none; }   /* 4 on mobile, 6 on desktop */
}
.pt-search-result-body { flex: 1 1 auto; min-width: 0; }
.pt-search-result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}
.pt-search-result-cat {
  color: #a60f0f;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 11px;
  text-decoration: none;
}
.pt-search-result-sep { color: #bbb; }
.pt-search-result-time { color: #666; }
.pt-search-result-title {
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: bold;
  color: #393a3b;
}
.pt-search-result-title a { color: #393a3b; text-decoration: none; }
@media (hover:hover) { .pt-search-result-title a:hover { color: var(--red); } }
.pt-search-result-thumb {
  flex: 0 0 144px;
  width: 144px;
  aspect-ratio: 40 / 21;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  display: block;
}
.pt-search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .pt-search-result-thumb { flex: 0 0 120px; width: 120px; }
  .pt-search-result-title { font-size: 15px; }
}

/* ── FAQ accordion ─────────────────────────────────────── */
.faq { background: #fff; border: 1px solid var(--card-line); border-radius: 10px; overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--rule-soft, #f0f0f0); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: bold;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-weight: bold; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 16px 14px; font-size: 14px; color: var(--ink); line-height: 1.55; }

.make-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.make-chip {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.make-chip em { font-style: normal; font-weight: normal; color: var(--muted); }
.make-chip.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.make-chip.is-active em { color: rgba(255,255,255,.75); }
@media (hover:hover) { .make-chip:not(.is-active):hover { border-color: var(--red); color: var(--red); } }

.tile-link strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
  transition: color .15s ease;
}
.tile-link em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

/* ── Search results layout: rail + grid/list (wireframe) ── */

.results-wrap { padding-top: 16px; }
.filter-rail { display: none; }

.mob-filters {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
}
.mob-filters summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: bold;
  -webkit-tap-highlight-color: transparent;
}
.mob-filters summary::-webkit-details-marker { display: none; }
.mob-filters summary::after { content: " ▾"; color: var(--muted); }
.mob-filters[open] summary::after { content: " ▴"; }
.mob-filters-body { padding: 0 14px 14px; border-top: 1px solid var(--card-line); }

.frail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0 2px;
  font-size: 14px;
}
.frail-head a { font-size: 12px; font-weight: bold; color: var(--red); text-decoration: none; }

.frail-group { margin-top: 2px; }
.frail-label {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* accordion groups */
.frail-acc { border-top: 1px solid var(--rule-soft, #f0f0f0); }
.frail-acc:first-of-type { border-top: 0; }
.frail-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.frail-acc > summary::-webkit-details-marker { display: none; }
.frail-acc > summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.frail-acc[open] > summary::after { content: "▴"; }
.frail-acc > summary i {
  font-style: normal;
  color: var(--red);
  font-size: 8px;
  line-height: 1;
}
.frail-acc .frail-options, .frail-acc .frail-price { padding-bottom: 12px; }
.frail-options { list-style: none; margin: 0; padding: 0; }
.frail-options li + li { margin-top: 2px; }
.frail-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  margin: 0 -6px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .frail-opt:hover { background: var(--chip-bg); } }
.frail-box {
  flex: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #b9bcc2;
  border-radius: 4px;
  background: #fff;
  position: relative;
}
.frail-opt em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.frail-zero { opacity: .42; }
.frail-opt.is-active { font-weight: bold; }
.frail-opt.is-active .frail-box { background: var(--red); border-color: var(--red); }
.frail-opt.is-active .frail-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 12px;
}
.results-head h1 { margin: 0; font-size: 18px; }

.results-tools { display: flex; align-items: center; gap: 14px; }

.sort-links { font-size: 12px; color: var(--muted); }
.sort-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 6px;
}
.sort-links a.is-active { color: #fff; background: var(--ink); }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.view-toggle a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.view-toggle a.is-active { color: #fff; background: var(--ink); }

.results-capped { margin: 0 0 12px; font-size: 12px; color: var(--muted); }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}
.pager a {
  display: inline-block;
  min-width: 34px;
  padding: 8px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.pager a.is-active { color: #fff; background: var(--red); border-color: var(--red); }
@media (hover:hover) { .pager a:hover:not(.is-active) { color: var(--red); } }
.pager-gap { color: var(--muted); }
.pager-step { white-space: nowrap; }

.card-match, .match-note {
  display: block;
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--red);
}

.frail-price {
  display: flex;
  align-items: center;
  gap: 6px;
}
.frail-price input {
  width: 0;
  flex: 1;
  font-family: Arial, sans-serif;
  font-size: 13px;
  padding: 7px 9px;
  border: 1px solid var(--card-line);
  border-radius: 7px;
  -webkit-appearance: none;
  appearance: none;
}
.frail-price input:focus { outline: 0; border-color: var(--red); }
.frail-price span { color: var(--muted); }
.frail-price button {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 7px;
  padding: 8px 11px;
  cursor: pointer;
}

.grid-results { /* cols inherited from .launch-grid (2 mobile) */ }

/* ── Search result rows (wireframe IA results dir B) ───── */

.result-list { display: flex; flex-direction: column; gap: 8px; }

.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) {
  .result-row:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  .result-row:hover .result-info strong { color: var(--red); }
}
.result-row:active { transform: translateY(1px); }

.result-thumb {
  flex: none;
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  line-height: 0;
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }

.result-info { flex: 1; min-width: 0; }
.result-info strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
  transition: color .15s ease;
}
.result-info small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.result-price { flex: none; text-align: right; }
.result-price b { display: block; font-size: 13px; color: var(--ink); }
.result-price small { display: block; margin-top: 3px; font-size: 11px; color: var(--red); font-weight: bold; }

.empty-note {
  margin: 0;
  padding: 22px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
}
.empty-note a { color: var(--red); font-weight: bold; }

/* "All N brands →" — pt-tag-view-all idiom */
.view-all {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  text-align: center;
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .view-all:hover { color: var(--red); } }

.section-head-left { text-align: left; }
.section-head-left h2 { font-size: 17px; }

/* ── Breadcrumbs ───────────────────────────────────────── */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  /* Use longhand margin/padding only — shorthands on `.crumbs` or `.wrap`
     clobber each other's horizontal inset or vertical offset. */
  margin-bottom: 14px;
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; font-weight: bold; }
@media (hover:hover) { .crumbs a:hover { color: var(--red); text-decoration: underline; } }
.crumbs-sep { color: #c2c2c2; font-weight: normal; }
.crumbs-here, .crumbs span:not(.crumbs-sep) { color: var(--ink); font-weight: bold; }

.hero-stats a { color: var(--muted); }
@media (hover:hover) { .hero-stats a:hover { color: var(--red); } }

/* interior heroes without breadcrumbs above */
.hero-compact { padding-top: 18px; }
.crumbs + .hero { padding-top: 0; }

.status-banner {
  display: inline-block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: bold;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 6px 14px;
}
.status-banner-coming { color: #fff; background: var(--red); border-color: var(--red); }

/* ── Model page hero + gallery ─────────────────────────
   Layout via grid-template-areas so DOM order (featured, gallery, info)
   reflows per breakpoint:
     mobile  : featured → gallery teaser → info  (single column)
     desktop : [featured | info info info] then gallery full-width below
*/

.model-layout {
  display: grid;
  grid-template-columns: 1fr;
  /* mobile: no featured hero — straight to the gallery teaser, then info */
  grid-template-areas: "gallery" "info";
  gap: 18px 26px;
  align-items: start;
}
.model-featured { grid-area: feat; min-width: 0; display: none; }   /* hidden on mobile */
.model-gallery  { grid-area: gallery; min-width: 0; }
.model-info     { grid-area: info; min-width: 0; }

.model-hero {
  display: block;
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-line);
  background: #eee;
  line-height: 0;
}
.model-hero img { width: 100%; height: 100%; object-fit: cover; }
.model-hero .card-noimg { display: block; width: 100%; height: 100%; }
.model-hero-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.2;
}

/* gallery thumbnail rows */
.gallery-row { display: grid; gap: 8px; }
.gallery-row + .gallery-row { margin-top: 8px; }
.gallery-row-4 { grid-template-columns: repeat(2, 1fr); }   /* mobile teaser: 2×2 */
.gallery-row-8 { display: none; }                            /* hidden on mobile */

.gshot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.gshot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease; }
@media (hover:hover) { .gshot:hover img { opacity: .85; } }

/* "View all N photos →" link below the model-page teaser */
.gallery-all-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
  color: var(--red);
  text-decoration: none;
}
.gallery-all-link:hover { text-decoration: underline; }

/* Dedicated gallery page: dense responsive thumbnail grid */
.gallery-all-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 560px) { .gallery-all-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-all-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }

/* "+N more" overlay on the last gallery thumbnail.
   gshot-more-mobile sits on row A's last cell (mobile teaser);
   gshot-more-desktop sits on row B's last cell (desktop 8-up).
   Each shows only at its breakpoint. */
.gshot-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, .5);
}
.gshot-more small {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
}
.gshot-more-desktop { display: none; }   /* desktop overlay hidden on mobile */

/* ── Model header card ─────────────────────────────────── */

.model-info {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  padding: 18px;
}

.mi-top { display: flex; flex-direction: column; gap: 14px; }

/* make + model on one line; make is a muted prefix link */
.model-info .hero-title { margin: 0; line-height: 1.1; }
.mi-make { color: var(--muted); text-decoration: none; font-weight: bold; }
@media (hover:hover) { .mi-make:hover { color: var(--red); } }
.mi-gen { color: var(--muted); font-weight: normal; }

.model-descriptor {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.model-descriptor a { color: var(--muted); }
@media (hover:hover) { .model-descriptor a:hover { color: var(--red); } }

/* ── Price + monthly: two balanced stat figures ─────────── */
.mi-price { min-width: 0; position: relative; }

.mi-figures { display: flex; flex-direction: column; gap: 14px; }   /* mobile: stacked */
.mi-fig { min-width: 0; }
.mi-fig + .mi-fig { padding-top: 14px; border-top: 1px solid var(--rule-soft, #f0f0f0); }

.mi-fig-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.mi-fig-val { display: block; margin-top: 3px; font-size: 22px; font-weight: bold; line-height: 1.1; white-space: nowrap; }
.mi-fig-price { color: var(--ink); }
.mi-fig-price em { font-style: normal; font-size: 15px; font-weight: bold; color: var(--muted); }
.mi-fig-mo { display: flex; align-items: center; gap: 8px; }
.mi-mo-amount { color: var(--red); }
.mi-mo-amount small { font-size: 13px; font-weight: bold; color: var(--muted); }
.mi-fig-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.mi-fig-sub a { color: var(--red); font-weight: bold; text-decoration: none; }

.mi-calc-btn {
  -webkit-appearance: none; appearance: none;
  flex: none;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--card-line);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .mi-calc-btn:hover { color: var(--red); border-color: var(--red); } }
.mi-calc-btn[aria-expanded="true"] { color: #fff; background: var(--red); border-color: var(--red); }

.mi-price-tba { font-size: 20px; color: var(--ink); }

/* calculator popover */
.mi-calc-pop {
  margin-top: 12px;
  width: 100%;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.3);
  padding: 12px 14px;
  text-align: left;
}
.mi-calc-pop label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
}
.mi-calc-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  padding: 0 10px;
}
.mi-calc-field:focus-within { border-color: var(--red); }
.mi-calc-field input {
  width: 56px;
  border: 0;
  padding: 8px 0;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  text-align: right;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.mi-calc-field input:focus { outline: 0; }
.mi-calc-field i { font-style: normal; font-size: 12px; color: var(--muted); }
.mi-calc-disc { margin: 2px 0 0; font-size: 11px; font-weight: normal; color: var(--muted); }

/* spec band — label over value, evenly spread */
.model-keyspecs {
  display: flex;
  flex-wrap: wrap;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft, #f0f0f0);
}
.model-keyspecs .spec-row {
  flex: 1 1 40%;
  min-width: 145px;        /* mobile: 2 per row for breathing room */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 14px 6px 0;
  border-bottom: 0;
}
.model-keyspecs .spec-row dt {
  font-size: 10.5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.model-keyspecs .spec-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  text-align: left;
  color: var(--ink);
}

@media (min-width: 900px) {
  /* No featured hero — info spans the full 4-col width, gallery below */
  .model-layout {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "info info info info"
      "gallery gallery gallery gallery";
  }
  .model-featured { display: none; }       /* featured removed from the header */
  .model-info { padding: 24px 26px; }
  .model-info .hero-title { font-size: 34px; }

  /* header card: title block left, price/monthly right on one row */
  .mi-top { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 28px; }
  .mi-price { flex: none; text-align: right; }
  .mi-figures { flex-direction: row; justify-content: flex-end; gap: 22px; }
  .mi-fig { text-align: right; }
  .mi-fig + .mi-fig { padding-top: 0; border-top: 0; padding-left: 22px; border-left: 1px solid var(--rule-soft, #f0f0f0); }
  .mi-fig-mo { justify-content: flex-end; }
  .mi-fig-val { font-size: 26px; }
  .mi-fig-price em { font-size: 17px; }
  .model-descriptor a { white-space: nowrap; }
  .mi-calc-pop { position: absolute; right: 0; top: 100%; z-index: 20; margin-top: 8px; text-align: left; }

  .model-keyspecs .spec-row { flex: 1 1 0; padding: 8px 20px 4px 0; }
  .model-keyspecs .spec-row dd { font-size: 16px; }

  /* show both rows; row A = 4-up, row B = 8-up */
  .gallery-row-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery-row-8 { display: grid; grid-template-columns: repeat(8, 1fr); }
  .gshot-more-mobile { display: none; }    /* row A overlay is mobile-only */
  .gshot-more-desktop { display: flex; }   /* row B overlay shows on desktop */
}

/* ── Photo viewer (Swiper lightbox) ────────────────────── */

html.viewer-open { overflow: hidden; }

.ptr-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 10, 10, .95);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* the display:flex above beats the UA `[hidden]{display:none}` — restore it */
.ptr-viewer[hidden] { display: none; }
.ptr-v-swiper { width: 100%; height: 100%; }
.ptr-v-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 104px;   /* bottom room for the thumbnail strip */
  box-sizing: border-box;
}
.ptr-v-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.ptr-v-close, .ptr-v-prev, .ptr-v-next {
  position: absolute;
  z-index: 2;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.ptr-v-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}
.ptr-v-prev, .ptr-v-next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}
.ptr-v-prev { left: 12px; }
.ptr-v-next { right: 12px; }
.ptr-v-prev.swiper-button-disabled, .ptr-v-next.swiper-button-disabled { opacity: .3; cursor: default; }
@media (hover:hover) {
  .ptr-v-close:hover, .ptr-v-prev:hover, .ptr-v-next:hover { background: rgba(255, 255, 255, .25); }
}
.ptr-v-counter {
  position: absolute;
  bottom: 96px;                 /* sits just above the thumbnail strip */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  border-radius: 999px;
  padding: 5px 14px;
}
/* Zoomed-view thumbnail strip. Scoped under .ptr-viewer to outrank Swiper's
   own `.swiper{position:relative}` (its bundle CSS loads after research.css at
   equal specificity, which otherwise drops the strip into the flex row and
   squashes the main image). */
.ptr-viewer .ptr-v-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  height: 72px;
  padding: 0 12px;
  box-sizing: border-box;
}
.ptr-v-thumbs .swiper-slide {
  width: 104px;
  height: 70px;
  opacity: .45;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity .15s;
}
.ptr-v-thumbs .swiper-slide-thumb-active { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.ptr-v-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) {
  .ptr-v-prev, .ptr-v-next { display: none; }   /* swipe on mobile */
  .ptr-viewer .ptr-v-thumbs { height: 56px; }
  .ptr-v-thumbs .swiper-slide { width: 80px; height: 54px; }
  .ptr-v-swiper .swiper-slide { padding-bottom: 84px; }
  .ptr-v-counter { bottom: 78px; }
}

/* ── Variant row: clickable link + inline spec peek ───── */

.variant-block { min-width: 0; }

.variant-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
}

.variant-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { a.variant-link:hover .result-info strong { color: var(--red); } }
a.variant-link:active { background: #fafafa; }

.variant-specs-toggle {
  display: none;          /* shown only once JS marks it ready */
  flex: none;
  align-items: center;
  gap: 4px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--muted);
  background: none;
  border: 0;
  border-left: 1px solid var(--card-line);
  padding: 0 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.variant-specs-toggle.is-ready { display: inline-flex; }
.variant-specs-toggle::after { content: "▾"; font-size: 10px; }
.variant-specs-toggle[aria-expanded="true"]::after { content: "▴"; }
@media (hover:hover) { .variant-specs-toggle:hover { color: var(--red); } }

.variant-sheet {
  background: #fff;
  border: 1px solid var(--card-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  margin-top: -1px;
  padding: 14px 14px 6px;
}

.spec-sheet { column-gap: 26px; }

.spec-group { margin-bottom: 14px; break-inside: avoid; }
.spec-group h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}
.spec-group dl { margin: 0; }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-soft, #f0f0f0);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); flex: none; max-width: 46%; }
.spec-row dd { margin: 0; font-weight: bold; text-align: right; overflow-wrap: anywhere; }
.spec-row dd.spec-tick { color: #3f7d4f; }

@media (min-width: 700px) {
  .spec-sheet { column-count: 2; }
}

.variant-sheet-label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}
.spec-highlights { margin: 0; column-gap: 26px; }
@media (min-width: 700px) { .spec-highlights { column-count: 2; } }

.variant-permalink { margin: 10px 0 8px; font-size: 13px; }
.variant-permalink a { color: var(--red); font-weight: bold; text-decoration: none; }
.variant-permalink a:hover { text-decoration: underline; }

/* ── Variant detail page ──────────────────────────────── */

.vd-wrap { padding-top: 14px; }
.vd-main { min-width: 0; }

.vd-sheet {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 14px 14px 6px;
}

.vd-price-card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
}
.vd-price-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.vd-price { margin: 0; font-size: 26px; font-weight: bold; color: var(--red); }
.vd-price-tba { color: var(--muted); font-size: 20px; }
.vd-price-note { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.vd-monthly {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--card-line);
}
.vd-monthly b { display: block; font-size: 16px; }
.vd-monthly small { font-size: 11px; color: var(--muted); }

.vd-siblings {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 14px 16px 16px;
  margin-top: 12px;
}
.vd-siblings ul { list-style: none; margin: 0; padding: 0; }
.vd-siblings li + li { border-top: 1px solid var(--rule-soft, #f0f0f0); }
.vd-siblings a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  color: var(--ink);
}
@media (hover:hover) { .vd-siblings a:hover span { color: var(--red); } }
.vd-siblings em { font-style: normal; font-weight: normal; color: var(--muted); }
.vd-back { margin-top: 10px; padding: 10px 12px; font-size: 13px; }

@media (min-width: 980px) {
  .vd-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
    padding-top: 24px;
  }
  .vd-side { position: sticky; top: 70px; }
  .vd-price-card, .vd-side .vd-siblings { margin-top: 0; }
  .vd-siblings { margin-top: 12px; }
}
.result-price .tba { color: var(--muted); font-weight: bold; }
.onsale-tag { color: #3f7d4f; }
.result-row.is-current { border-color: var(--ink); }

/* ── Footer ───────────────────────────────────────────── */

/* ── Footer ───────────────────────────────────────────── */

.colophon {
  margin-top: 34px;
  background: #fff;
  border-top: 1px solid var(--card-line);
  color: var(--muted);
}

.colophon-in {
  padding-top: 18px;
  padding-bottom: 24px;
  font-size: 12px;
  text-align: center;
}

.colophon-brand {
  font-size: 15px;
  font-weight: bold;
  color: var(--ink);
  margin: 0 0 8px;
}
.colophon-brand span { color: var(--red); }

.colophon a { color: var(--ink); }
.colophon p { margin: 3px 0; }

/* ── Tablet (≥700px) ──────────────────────────────────── */

@media (min-width: 700px) {
  .launch-grid, .coming-grid { grid-template-columns: repeat(3, 1fr); }
  .chip-grid, .chip-grid-loose { grid-template-columns: repeat(3, 1fr); }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: 28px; }
  .result-thumb { width: 176px; }
  .result-info strong, .result-price b { font-size: 14px; }
}

/* ── Desktop (≥980px) ─────────────────────────────────── */

@media (min-width: 980px) {
  .wrap { max-width: 1080px; padding-left: 20px; padding-right: 20px; }

  /* masthead becomes a full app bar: logo · badge · nav · search (wireframe app-top) */
  .burger { display: none; }
  .drawer, .drawer-overlay { display: none !important; }
  .appbar-in { gap: 16px; }
  .appbar-logo img { width: 126px; }
  .appbar-section {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #000;
    background: #fff;
    border-radius: 999px;
    padding: 4px 11px;
    text-decoration: none;
  }
  .appbar-nav { display: flex; gap: 22px; margin-left: 14px; }
  .appbar-nav a {
    font-size: 13.5px;
    font-weight: bold;
    color: #c9c9c9;
    text-decoration: none;
  }
  .appbar-nav a:hover { color: #fff; }
  .appbar-search { max-width: 230px; }

  /* hero: contained card, generous padding */
  .hero-shell { padding-top: 28px; }
  .hero-box { padding: 40px 40px 34px; }
  .hero-title { font-size: 34px; }
  .hero-stats { font-size: 13px; }
  .hero-search { max-width: 600px; margin-top: 20px; }

  /* sections: left-aligned head with right-aligned link (wireframe row.between) */
  .section { padding-top: 44px; }
  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    padding-bottom: 16px;
  }
  .section-head h2 { font-size: 22px; }
  .section-note { margin: 0; }
  .section-link {
    display: inline;
    font-size: 13px;
    font-weight: bold;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
  }
  .section-link:hover { text-decoration: underline; }
  .view-all { display: none; }

  /* launches: 4-up (wireframe grid-trend); lead card goes horizontal across the row */
  .launch-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  /* coming soon matches launches at 4-up; extra cars simply wrap to new rows */
  .coming-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .card-title { font-size: 14px; }
  .card-date, .card-gen, .card-chip { font-size: 12px; }

  .card-lead .card-link {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  }
  .card-lead .card-media {
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--card-line);
  }
  .card-lead .card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .card-lead .card-title { font-size: 24px; }
  .card-lead .card-date, .card-lead .card-gen, .card-lead .card-chip { font-size: 12px; }
  .card-lead .card-price { font-size: 17px; }

  /* brand & body tiles: 6-up like the wireframe desktop grids */
  .tile-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .chip-grid, .chip-grid-loose { grid-template-columns: repeat(4, 1fr); }

  /* search: left filter rail + results column (wireframe results dir A) */
  .results-wrap {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding-top: 24px;
  }
  .filter-rail {
    display: block;
    background: #fff;
    border: 1px solid var(--card-line);
    border-radius: 10px;
    padding: 4px 16px 18px;
    position: sticky;
    top: 70px;
  }
  .mob-filters { display: none; }
  .results-head h1 { font-size: 20px; }
  .grid-results { grid-template-columns: repeat(3, 1fr); }
  .result-list { max-width: none; }
  .section-head-left { max-width: 860px; margin-left: auto; margin-right: auto; }
  .empty-note { max-width: none; }

  .colophon-in { padding-top: 24px; padding-bottom: 30px; font-size: 13px; }
}

/* ── Carro certified inventory (research API fragment) ── */

.ptr-carro-loading { min-height: 200px; }

/* Mobile — 2 columns × 3 rows (compact tiles) */
@media (max-width: 979px) {
  .ptr-carro-mgrid-in {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ptr-carro-tile {
    min-width: 0;
    border: 1px solid var(--card-line);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }

  /* image-600x500f composite — 5:3 cover from top crops off the baked-in price/title bar */
  .ptr-carro-tile-img {
    aspect-ratio: 5 / 3;
    line-height: 0;
    background: var(--ground);
    overflow: hidden;
  }

  .ptr-carro-tile-img a { display: block; height: 100%; }

  .ptr-carro-tile-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .ptr-carro-tile-body { padding: 8px 10px 10px; }

  .ptr-carro-tile-title {
    margin: 0 0 3px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: bold;
  }

  .ptr-carro-tile-title a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
    text-decoration: none;
  }

  .ptr-carro-tile-price {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--ink);
  }

  .ptr-carro-tile .ptr-carro-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    gap: 5px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .ptr-carro-tile .ptr-carro-chat-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: currentColor;
  }
}

@media (max-width: 979px) and (hover: hover) {
  .ptr-carro-tile-title a:hover { color: var(--red); }
}

.ptr-carro .ptr-carro-chat-btn--whatsapp { background: #25D366; }
.ptr-carro .ptr-carro-chat-btn--line { background: #06C755; }

/* Desktop — 4 columns × 2 rows */
@media (min-width: 980px) {
  .ptr-carro-dgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .ptr-carro-dtile {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-line);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    background: #fff;
  }

  .ptr-carro-dtile a {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .ptr-carro-dtile-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
  }

  /* MY desktop: price/title baked into image-600x500f composite */
  .ptr-carro-dtile--overlay .ptr-carro-dtile-img {
    aspect-ratio: auto;
    object-fit: contain;
  }

  .ptr-carro-dtile-cap {
    min-height: 47px;
    background: var(--red);
    padding: 6px 10px;
    box-sizing: border-box;
  }

  .ptr-carro-dtile-title {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ptr-carro-dtile-price {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-link, .card-title, .tile-link strong { transition: none; }
}
