:root {
  --ink: #12110f;
  --paper: #f3eee4;
  --panel: #fffaf1;
  --line: rgba(18, 17, 15, 0.16);
  --muted: #6e695f;
  --accent: #d84d31;
  --accent-dark: #9b2d1c;
  --success: #2f6f4e;
  --shadow: 0 24px 70px rgba(30, 24, 17, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(216, 77, 49, 0.12), transparent 30rem),
    linear-gradient(180deg, #f9f5ed 0%, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

button, input { font: inherit; letter-spacing: 0.02em; }
a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 5px var(--paper);
  background: var(--ink);
  color: var(--paper);
}
.brand-name { font-weight: 900; letter-spacing: 0.14em; font-size: 0.95rem; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 700; }
.site-nav a:hover { color: var(--ink); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 80px; }
.hero, .model-hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.45);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 {
  margin: 24px 0;
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
}
h2, h3 { letter-spacing: 0.02em; }
.hero-copy { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 650px; }
.hero-copy strong { color: var(--ink); }
.text-link { display: inline-block; margin-top: 8px; color: var(--accent-dark); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.decoder-shell {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.decoder-shell::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 280px;
  height: 280px;
  border: 50px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.decoder-title { position: relative; display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }
.decoder-title h2 { margin: 3px 0 0; font-size: 1.35rem; }
.decoder-title > span, .decoder-overline { color: rgba(244, 239, 229, 0.62); text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.7rem; }
.vin-form { position: relative; }
.vin-label { display: block; margin-bottom: 9px; color: rgba(244, 239, 229, 0.72); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.input-row { display: flex; gap: 10px; }
.vin-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 17px 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.vin-input:focus { border-color: rgba(255, 255, 255, 0.65); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); }
.decode-button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}
.decode-button:hover { transform: translateY(-2px); background: #ed5b3d; }
.decode-button:disabled { opacity: 0.62; cursor: wait; transform: none; }
.form-help { margin: 11px 0 0; color: rgba(244, 239, 229, 0.58); font-size: 0.8rem; line-height: 1.55; }
.example-list { margin-top: 21px; display: flex; flex-wrap: wrap; gap: 8px; }
.example-button { border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 999px; padding: 7px 10px; background: transparent; color: rgba(244, 239, 229, 0.8); cursor: pointer; font-size: 0.75rem; }
.example-button:hover { border-color: rgba(255, 255, 255, 0.45); color: #fff; }

.result-wrap { margin-top: 44px; scroll-margin-top: 24px; }
.result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); }
.result-hero { padding: 32px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.result-kicker { margin-bottom: 9px; color: var(--success); text-transform: uppercase; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
.result-model { margin: 0; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: 0.02em; }
.result-vin, .vehicle-vin { margin: 13px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.result-actions { display: grid; gap: 10px; justify-items: end; }
.confidence-badge, .vehicle-status > span { border: 1px solid rgba(47, 111, 78, 0.28); border-radius: 999px; padding: 9px 12px; background: rgba(47, 111, 78, 0.08); color: var(--success); font-size: 0.76rem; font-weight: 900; white-space: nowrap; }
.permalink-button, .primary-link { display: inline-flex; justify-content: center; border-radius: 12px; padding: 10px 13px; background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 900; text-decoration: none; }
.result-grid, .vehicle-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.data-cell { min-height: 112px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data-cell:nth-child(4n) { border-right: 0; }
.data-label { margin-bottom: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; font-weight: 900; }
.data-value { font-size: 1.02rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.result-note { padding: 22px 28px; color: var(--muted); line-height: 1.65; font-size: 0.92rem; }
.no-result { padding: 32px; border: 1px solid rgba(216, 77, 49, 0.25); border-radius: 24px; background: #fff8f1; }
.no-result h3 { margin-top: 0; }
.hidden { display: none !important; }

.feature-grid, .model-cards { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card, .model-cards article { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 250, 241, 0.72); }
.feature-card h2, .model-cards h3 { margin: 13px 0; font-size: 1.75rem; line-height: 1.15; }
.feature-card p, .model-cards p { color: var(--muted); line-height: 1.7; }
.featured-model-card { background: var(--ink); color: var(--paper); }
.featured-model-card p { color: rgba(244, 239, 229, 0.7); }
.featured-model-card .text-link { color: #ff8b72; }
.card-label { color: var(--accent); text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.69rem; font-weight: 900; }

.roadmap { margin-top: 72px; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 42px; align-items: start; }
.roadmap h2, .content-section h2 { margin: 18px 0 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.08; letter-spacing: 0.02em; }
.roadmap-list { display: grid; gap: 12px; }
.roadmap-item { display: grid; grid-template-columns: 44px 1fr; gap: 15px; padding: 18px; border-top: 1px solid var(--line); }
.roadmap-number { color: var(--accent); font-weight: 900; }
.roadmap-item strong { display: block; margin-bottom: 4px; }
.roadmap-item span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.coverage-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.coverage-strip span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.content-section { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.two-column-content { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.prose { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.prose p:first-child { margin-top: 0; }

.vehicle-page-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 36px; }
.vehicle-page-hero h1 { margin-bottom: 8px; }
.vehicle-status { display: grid; justify-items: end; gap: 8px; padding-top: 12px; }
.vehicle-status small { color: var(--muted); }
.vehicle-detail-grid { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.vehicle-notes { margin-top: 44px; display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 42px; padding: 32px; border-top: 1px solid var(--line); }
.vehicle-notes h2 { margin: 10px 0 0; }
.empty-page { min-height: 55vh; display: grid; align-content: center; justify-items: start; }
.empty-page h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.empty-page p { color: var(--muted); }

.site-footer { margin-top: 78px; padding: 24px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

@media (max-width: 940px) {
  .hero, .model-hero, .roadmap, .two-column-content, .vehicle-notes { grid-template-columns: 1fr; }
  .hero, .model-hero { gap: 36px; }
  .result-grid, .vehicle-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .data-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .data-cell:nth-child(2n) { border-right: 0; }
  .feature-grid, .model-cards { grid-template-columns: 1fr; }
  .feature-card, .model-cards article { min-height: auto; }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 24px, 1180px); padding-top: 18px; }
  .site-nav { gap: 12px; }
  .site-nav a:first-child { display: none; }
  main { width: min(100% - 24px, 1180px); padding-top: 34px; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.5rem); }
  .decoder-shell { border-radius: 22px; padding: 22px; }
  .decoder-title { align-items: flex-start; }
  .decoder-title > span { display: none; }
  .input-row { flex-direction: column; }
  .decode-button { padding: 15px 20px; }
  .result-hero, .vehicle-page-hero { flex-direction: column; padding: 24px; }
  .result-actions, .vehicle-status { justify-items: start; }
  .result-grid, .vehicle-detail-grid { grid-template-columns: 1fr; }
  .data-cell, .data-cell:nth-child(2n), .data-cell:nth-child(4n) { border-right: 0; }
  .vehicle-page-hero { padding-left: 0; padding-right: 0; }
  .vehicle-notes { padding: 24px 0; }
  .site-footer { flex-direction: column; }
}

/* v3 accounts, ownership and photo archive */
.site-nav { flex-wrap: wrap; justify-content: flex-end; }
.nav-logout { margin: 0; }
.nav-logout button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-logout button:hover { color: var(--ink); }
.nav-join { padding: 8px 12px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; }

.flash-stack { display: grid; gap: 10px; margin: -24px 0 30px; }
.flash { padding: 14px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-weight: 750; line-height: 1.5; }
.flash-success { border-color: rgba(47, 111, 78, 0.35); background: rgba(47, 111, 78, 0.08); color: var(--success); }
.flash-error { border-color: rgba(216, 77, 49, 0.35); background: rgba(216, 77, 49, 0.08); color: var(--accent-dark); }
.flash-notice { border-color: rgba(18, 17, 15, 0.18); }

.auth-layout { display: grid; grid-template-columns: 0.9fr 0.7fr; gap: 72px; align-items: center; min-height: 64vh; }
.auth-copy h1, .form-page-heading h1, .account-hero h1 { margin: 22px 0; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.98; letter-spacing: 0.02em; }
.auth-copy p, .form-page-heading p, .account-hero p { max-width: 680px; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.panel-form { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.wide-form { width: min(860px, 100%); margin: 34px auto 0; }
.form-heading { margin-bottom: 24px; }
.form-heading h2 { margin: 9px 0 0; font-size: 2rem; }
.field-label, .field-group-title { display: block; margin: 19px 0 8px; color: var(--ink); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.text-input, .select-input, .textarea-input, .file-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 15px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.02em;
  outline: none;
}
.text-input:focus, .select-input:focus, .textarea-input:focus, .file-input:focus { border-color: rgba(18, 17, 15, 0.6); box-shadow: 0 0 0 4px rgba(18, 17, 15, 0.06); }
.textarea-input { resize: vertical; line-height: 1.6; }
.file-input { padding: 11px; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.form-button, .secondary-button, .approve-button, .reject-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.form-button { margin-top: 24px; background: var(--accent); color: #fff; }
.form-button:hover { background: #ed5b3d; }
.secondary-button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.approve-button { background: var(--success); color: #fff; }
.reject-button { background: var(--accent-dark); color: #fff; }
.button-link { margin-top: 0; }
.form-error { margin-bottom: 18px; padding: 13px 15px; border: 1px solid rgba(216, 77, 49, 0.35); border-radius: 12px; background: rgba(216, 77, 49, 0.08); color: var(--accent-dark); line-height: 1.5; }
.form-footnote { margin: 18px 0 0; color: var(--muted); font-size: 0.86rem; }
.form-footnote a { color: var(--ink); font-weight: 850; }
.form-page-heading { max-width: 860px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--muted); font-weight: 800; text-decoration: none; }
.back-link:hover { color: var(--ink); }

.choice-fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 28px; padding: 0; border: 0; }
.choice-fieldset legend { grid-column: 1 / -1; margin-bottom: 10px; font-size: 1rem; font-weight: 900; }
.choice-card { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card input { margin-top: 3px; accent-color: var(--accent); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.date-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 10px 0 24px; }
.two-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.account-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 42px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-panel, .moderation-section, .community-section { margin-top: 48px; }
.dashboard-panel { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 250, 241, 0.76); }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading-row h2 { margin: 7px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.count-badge { min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.empty-state { padding: 22px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); line-height: 1.7; }
.empty-state p { margin: 0; }
.record-list, .account-photo-list { display: grid; gap: 0; }
.record-row { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.record-row:first-child { border-top: 0; }
.record-title { color: var(--ink); font-weight: 900; line-height: 1.4; }
.record-row p, .account-photo-row p { margin: 6px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.record-actions { display: grid; justify-items: end; align-content: start; gap: 8px; }
.status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.5); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.status-approved { border-color: rgba(47, 111, 78, 0.3); color: var(--success); background: rgba(47, 111, 78, 0.08); }
.status-pending { border-color: rgba(186, 122, 25, 0.34); color: #8a5a14; background: rgba(186, 122, 25, 0.09); }
.status-rejected, .status-withdrawn { border-color: rgba(216, 77, 49, 0.25); color: var(--accent-dark); background: rgba(216, 77, 49, 0.07); }
.text-button { border: 0; padding: 0; background: transparent; color: var(--accent-dark); font: inherit; font-size: 0.76rem; font-weight: 850; letter-spacing: 0.02em; cursor: pointer; }
.account-photo-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.account-photo-row:first-child { border-top: 0; }
.account-photo-row img { width: 90px; height: 74px; object-fit: cover; border-radius: 10px; }

.vehicle-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 26px 0 30px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 250, 241, 0.78); }
.vehicle-action-bar strong, .vehicle-action-bar span { display: block; }
.vehicle-action-bar span { margin-top: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.current-owner-line { margin: 15px 0 0; color: var(--muted); }
.current-owner-line strong { color: var(--ink); }
.contribution-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 24px; padding: 17px 20px; border: 1px solid rgba(47, 111, 78, 0.25); border-radius: 16px; background: rgba(47, 111, 78, 0.06); }
.contribution-status > div { display: flex; align-items: center; gap: 8px; }

.community-section { padding-top: 45px; border-top: 1px solid var(--line); }
.vehicle-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vehicle-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.vehicle-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.18s ease; }
.vehicle-gallery a:hover img { transform: scale(1.015); }
.vehicle-gallery figcaption { display: grid; gap: 5px; padding: 14px 15px 16px; line-height: 1.5; }
.vehicle-gallery figcaption small { color: var(--muted); }

.ownership-timeline { display: grid; }
.ownership-entry { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 23px 0; border-top: 1px solid var(--line); }
.ownership-entry:first-child { border-top: 0; }
.timeline-marker { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 0.73rem; font-weight: 900; }
.ownership-entry.is-current .timeline-marker { border-color: var(--success); background: var(--success); color: #fff; }
.ownership-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ownership-heading h3 { margin: 0; font-size: 1.4rem; }
.ownership-dates { margin: 7px 0 0; color: var(--accent-dark); font-weight: 850; }
.ownership-story { margin-top: 13px; max-width: 820px; color: var(--muted); line-height: 1.75; }

.lookup-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.lookup-summary-grid > div { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 250, 241, 0.72); }
.lookup-summary-grid span, .lookup-summary-grid strong { display: block; }
.lookup-summary-grid span { color: var(--muted); font-size: 0.73rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.lookup-summary-grid strong { margin-top: 7px; font-size: 1rem; }
.lookup-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.lookup-table { width: 100%; border-collapse: collapse; min-width: 700px; background: var(--panel); }
.lookup-table th, .lookup-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.82rem; line-height: 1.45; }
.lookup-table th { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lookup-table tr:last-child td { border-bottom: 0; }
.section-note { color: var(--muted); font-size: 0.78rem; }

.moderation-list { display: grid; gap: 14px; }
.moderation-card { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.moderation-card h3, .moderation-photo-card h3 { margin: 12px 0 6px; }
.moderation-card p, .moderation-photo-card p { color: var(--muted); line-height: 1.55; }
.moderation-copy { margin-top: 14px; padding: 15px; border-left: 3px solid var(--accent); background: rgba(216, 77, 49, 0.05); color: var(--muted); line-height: 1.7; }
.moderation-actions { align-self: start; }
.compact-textarea { margin-bottom: 10px; }
.moderation-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.moderation-photo-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.moderation-photo-card > a img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.moderation-photo-copy { padding: 19px; }

@media (max-width: 940px) {
  .auth-layout, .dashboard-grid, .moderation-card { grid-template-columns: 1fr; }
  .auth-layout { gap: 36px; }
  .vehicle-gallery { grid-template-columns: repeat(2, 1fr); }
  .moderation-photo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 0.78rem; }
  .nav-logout button { font-size: 0.78rem; }
  .choice-fieldset, .date-form-grid, .lookup-summary-grid { grid-template-columns: 1fr; }
  .vehicle-action-bar, .account-hero { align-items: flex-start; flex-direction: column; }
  .vehicle-gallery { grid-template-columns: 1fr; }
  .record-row { flex-direction: column; }
  .record-actions { justify-items: start; }
}
.admin-note { display: block; max-width: 280px; color: var(--accent-dark); line-height: 1.45; text-align: right; }
.transfer-warning { padding: 10px 12px; border: 1px solid rgba(186, 122, 25, 0.34); border-radius: 10px; background: rgba(186, 122, 25, 0.09); color: #70480f !important; }
@media (max-width: 700px) { .admin-note { text-align: left; } }

/* v3.4 open photo contributions, admin access and mobile refinement */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 250, 241, 0.84);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-icon { display: grid; gap: 3px; width: 17px; }
.nav-toggle-icon i { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.16s ease, opacity 0.16s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.optional-label { color: var(--muted); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.04em; }
.confirmation-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 24px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.confirmation-card:has(input:checked) { border-color: rgba(47, 111, 78, 0.48); background: rgba(47, 111, 78, 0.07); }
.confirmation-card input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--success); }
.confirmation-card strong, .confirmation-card small { display: block; }
.confirmation-card strong { line-height: 1.4; }
.confirmation-card small { margin-top: 5px; color: var(--muted); line-height: 1.55; }

.account-hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-console-button {
  display: grid;
  align-content: center;
  min-height: 48px;
  padding: 8px 15px;
  border: 1px solid rgba(47, 111, 78, 0.3);
  border-radius: 12px;
  background: rgba(47, 111, 78, 0.08);
  color: var(--success);
  text-decoration: none;
}
.admin-console-button span { font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-console-button strong { margin-top: 2px; font-size: 0.82rem; }
.admin-summary-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid rgba(47, 111, 78, 0.3);
  border-radius: 20px;
  background: rgba(47, 111, 78, 0.07);
}
.admin-summary-panel h2 { margin: 7px 0 8px; font-size: 1.6rem; }
.admin-summary-panel p { margin: 0; max-width: 680px; color: var(--muted); line-height: 1.6; }
.admin-summary-counts { display: flex; gap: 12px; }
.admin-summary-counts > div { min-width: 110px; padding: 13px; border: 1px solid rgba(47, 111, 78, 0.2); border-radius: 13px; background: rgba(255, 255, 255, 0.45); }
.admin-summary-counts strong, .admin-summary-counts span { display: block; }
.admin-summary-counts strong { font-size: 1.35rem; }
.admin-summary-counts span { margin-top: 3px; color: var(--muted); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 760px) {
  html { scroll-padding-top: 82px; }
  body { overflow-x: hidden; }
  .site-header {
    position: relative;
    width: calc(100% - 24px);
    min-height: 70px;
    padding: 14px 0 10px;
    gap: 12px;
  }
  .brand { min-width: 0; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; flex: 0 0 auto; font-size: 0.86rem; }
  .brand-name { overflow: hidden; font-size: 0.82rem; letter-spacing: 0.1em; text-overflow: ellipsis; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    width: 100%;
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 241, 0.98);
    box-shadow: 0 18px 45px rgba(30, 24, 17, 0.13);
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: grid; }
  .site-nav a,
  .site-nav a:first-child,
  .nav-logout,
  .nav-logout button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
  }
  .site-nav a, .nav-logout button { padding: 10px 12px; border-radius: 10px; font-size: 0.86rem; }
  .site-nav a:hover, .nav-logout button:hover { background: rgba(18, 17, 15, 0.05); }
  .nav-join { background: var(--ink) !important; color: var(--paper) !important; }

  main { width: calc(100% - 24px); padding: 26px 0 56px; }
  h1 { margin: 18px 0; font-size: clamp(2.55rem, 12vw, 3.75rem); line-height: 0.98; }
  .auth-copy h1, .form-page-heading h1, .account-hero h1 { margin: 17px 0; font-size: clamp(2.5rem, 11vw, 3.55rem); line-height: 1; }
  .hero, .model-hero, .auth-layout { gap: 28px; min-height: auto; }
  .hero-copy, .auth-copy p, .form-page-heading p, .account-hero p { font-size: 0.96rem; line-height: 1.66; }
  .eyebrow { max-width: 100%; padding: 7px 10px; font-size: 0.64rem; line-height: 1.35; }

  .decoder-shell { padding: 20px; border-radius: 20px; }
  .decoder-title { margin-bottom: 20px; }
  .vin-input { padding: 15px; font-size: 1rem; letter-spacing: 0.06em; }
  .decode-button { width: 100%; min-height: 50px; }
  .example-list { margin-top: 16px; }
  .example-button { min-height: 38px; }

  .result-wrap { margin-top: 28px; }
  .result-card { border-radius: 20px; }
  .result-hero { padding: 20px; }
  .result-model { font-size: 2rem; line-height: 1.06; }
  .result-actions { width: 100%; justify-items: stretch; }
  .permalink-button { width: 100%; min-height: 44px; align-items: center; }
  .data-cell { min-height: 0; padding: 18px; }
  .result-note { padding: 18px; }

  .feature-grid, .model-cards { margin-top: 38px; gap: 12px; }
  .feature-card, .model-cards article { padding: 21px; border-radius: 18px; }
  .feature-card h2, .model-cards h3 { font-size: 1.45rem; }
  .roadmap, .content-section { margin-top: 48px; }
  .roadmap h2, .content-section h2 { font-size: 2.1rem; }
  .roadmap-item { grid-template-columns: 34px 1fr; padding: 16px 4px; }
  .two-column-content { gap: 22px; }

  .flash-stack { margin: -8px 0 22px; }
  .flash { padding: 12px 14px; font-size: 0.9rem; }
  .panel-form { padding: 20px 17px; border-radius: 19px; }
  .wide-form { margin-top: 24px; }
  .form-heading h2 { font-size: 1.7rem; }
  .text-input, .select-input, .textarea-input, .file-input { min-height: 48px; padding: 13px; font-size: 16px; }
  .textarea-input { min-height: 120px; }
  .field-label, .field-group-title { margin-top: 17px; }
  .choice-fieldset, .date-form-grid, .two-field-row { grid-template-columns: 1fr; gap: 10px; }
  .choice-card { padding: 15px; }
  .confirmation-card { padding: 14px; }
  .form-button, .secondary-button, .approve-button, .reject-button { min-height: 48px; }
  .panel-form > .form-button { width: 100%; }

  .vehicle-page-hero { gap: 16px; padding: 0 0 24px; }
  .vehicle-page-hero h1 { overflow-wrap: anywhere; }
  .vehicle-status { padding-top: 0; }
  .vehicle-action-bar { gap: 18px; margin: 18px 0 24px; padding: 17px; border-radius: 16px; }
  .vehicle-action-bar .button-row { width: 100%; display: grid; grid-template-columns: 1fr; }
  .vehicle-action-bar .form-button, .vehicle-action-bar .secondary-button { width: 100%; }
  .contribution-status { align-items: flex-start; padding: 15px; }
  .vehicle-detail-grid { border-radius: 18px; }

  .community-section, .dashboard-panel, .moderation-section { margin-top: 36px; }
  .community-section { padding-top: 34px; }
  .section-heading-row { align-items: center; gap: 12px; margin-bottom: 18px; }
  .section-heading-row > div { min-width: 0; }
  .section-heading-row h2 { font-size: 1.8rem; line-height: 1.08; overflow-wrap: anywhere; }
  .count-badge { min-width: 38px; height: 38px; flex: 0 0 auto; }
  .empty-state { padding: 17px; }
  .vehicle-gallery { gap: 12px; }
  .vehicle-gallery figure { border-radius: 15px; }
  .vehicle-gallery figcaption { padding: 12px 13px 14px; }
  .ownership-entry { grid-template-columns: 38px 1fr; gap: 12px; padding: 19px 0; }
  .timeline-marker { width: 36px; height: 36px; font-size: 0.66rem; }
  .ownership-heading { align-items: flex-start; }
  .ownership-heading h3 { font-size: 1.18rem; }

  .lookup-summary-grid { gap: 9px; }
  .lookup-summary-grid > div { padding: 15px; }
  .lookup-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .lookup-table { min-width: 0; background: transparent; }
  .lookup-table thead { display: none; }
  .lookup-table, .lookup-table tbody, .lookup-table tr, .lookup-table td { display: block; width: 100%; }
  .lookup-table tr { margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
  .lookup-table td { display: grid; grid-template-columns: 108px 1fr; gap: 10px; padding: 6px 0; border: 0; font-size: 0.78rem; }
  .lookup-table td::before { color: var(--muted); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
  .lookup-table td:nth-child(1)::before { content: "Date"; }
  .lookup-table td:nth-child(2)::before { content: "Result"; }
  .lookup-table td:nth-child(3)::before { content: "Entry point"; }
  .lookup-table td:nth-child(4)::before { content: "Data path"; }

  .vehicle-notes { gap: 18px; margin-top: 34px; padding: 24px 0; }
  .site-footer { margin-top: 54px; padding-bottom: 24px; gap: 10px; }

  .account-hero { gap: 18px; padding-bottom: 24px; }
  .account-hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .account-hero-actions > * { width: 100%; }
  .admin-console-button { min-height: 56px; }
  .admin-summary-panel { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .admin-summary-counts { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-summary-counts > div { min-width: 0; }
  .admin-summary-panel > .form-button { width: 100%; }
  .dashboard-grid { gap: 14px; }
  .dashboard-panel { padding: 18px; border-radius: 18px; }
  .record-row { padding: 16px 0; }
  .record-actions { width: 100%; }
  .account-photo-row { grid-template-columns: 74px 1fr; gap: 12px; }
  .account-photo-row img { width: 74px; height: 68px; }

  .moderation-card { gap: 20px; padding: 18px; border-radius: 16px; }
  .moderation-card-main { min-width: 0; }
  .moderation-card h3, .moderation-photo-card h3 { overflow-wrap: anywhere; }
  .moderation-actions .button-row { display: grid; grid-template-columns: 1fr 1fr; }
  .moderation-actions .approve-button, .moderation-actions .reject-button { width: 100%; }
  .moderation-photo-copy { padding: 16px; }
  .admin-note { max-width: none; }
}

@media (max-width: 390px) {
  .brand-name { font-size: 0.75rem; letter-spacing: 0.08em; }
  .nav-toggle-label { display: none; }
  .nav-toggle { width: 44px; justify-content: center; padding: 8px; }
  h1, .auth-copy h1, .form-page-heading h1, .account-hero h1 { font-size: 2.42rem; }
  .section-heading-row h2 { font-size: 1.55rem; }
  .admin-summary-counts { grid-template-columns: 1fr; }
  .lookup-table td { grid-template-columns: 92px 1fr; }
}

/* v3.5 simplified discovery pages and vehicle browser */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-decoder {
  width: min(760px, 100%);
  margin: 26px auto 0;
}
.home-decoder .decoder-shell { padding: 34px; }
.recent-vehicles-section { margin-top: 76px; padding-top: 52px; border-top: 1px solid var(--line); }
.browse-heading-row { align-items: center; }
.browse-heading-row .secondary-button { flex: 0 0 auto; }

.vehicle-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.vehicle-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 250, 241, 0.82);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 17, 15, 0.3);
  box-shadow: 0 18px 42px rgba(30, 24, 17, 0.11);
}
.vehicle-card-link { display: block; height: 100%; text-decoration: none; }
.vehicle-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 24% 22%, rgba(216, 77, 49, 0.18), transparent 42%),
    var(--ink);
  color: rgba(244, 239, 229, 0.86);
}
.vehicle-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.vehicle-card:hover .vehicle-card-image img { transform: scale(1.018); }
.vehicle-card-image > span { font-size: 1.6rem; font-weight: 900; letter-spacing: 0.08em; }
.vehicle-card-copy { padding: 17px; }
.vehicle-card-activity { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.vehicle-card-activity span { color: var(--accent-dark); }
.vehicle-card h3 { margin: 12px 0 7px; font-size: 1.08rem; line-height: 1.28; overflow-wrap: anywhere; }
.vehicle-card-vin { margin: 0; color: var(--muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.vehicle-card-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 13px; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.vehicle-card-meta span { position: relative; }
.vehicle-grid-empty { grid-column: 1 / -1; }

.browse-hero { max-width: 820px; }
.browse-hero h1 { margin-bottom: 18px; }
.browse-hero p { margin: 0; max-width: 760px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.browse-filters {
  margin-top: 40px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.78);
}
.browse-filters .field-label { margin: 0 0 8px; }
.browse-filters .select-input { min-height: 48px; }
.browse-submit, .browse-reset { min-height: 48px; margin: 0; white-space: nowrap; }
.browse-results { margin-top: 58px; }
.pagination { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--muted); font-size: 0.82rem; }
.pagination a { display: inline-flex; min-height: 42px; align-items: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--ink); font-weight: 850; text-decoration: none; }
.bmw-reference-section { margin-top: 76px; }

@media (max-width: 1040px) {
  .vehicle-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browse-filters { grid-template-columns: repeat(3, 1fr); }
  .browse-submit, .browse-reset { width: 100%; }
}

@media (max-width: 760px) {
  .home-decoder { margin-top: 0; }
  .home-decoder .decoder-shell { padding: 21px; }
  .recent-vehicles-section { margin-top: 48px; padding-top: 38px; }
  .browse-heading-row { align-items: flex-start; flex-direction: column; }
  .browse-heading-row .secondary-button { width: 100%; }
  .vehicle-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vehicle-card { border-radius: 15px; }
  .vehicle-card-copy { padding: 13px; }
  .vehicle-card-activity { display: grid; gap: 3px; }
  .vehicle-card h3 { margin-top: 9px; font-size: 0.98rem; }
  .vehicle-card-meta { display: grid; gap: 4px; }
  .browse-hero h1 { font-size: 3rem; }
  .browse-filters { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; padding: 16px; border-radius: 17px; }
  .browse-results { margin-top: 40px; }
  .pagination { justify-content: space-between; gap: 8px; }
  .pagination a { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .vehicle-card-grid { grid-template-columns: 1fr; }
  .vehicle-card-activity { display: flex; }
  .vehicle-card-meta { display: flex; }
}

/* v3.6 restored editorial heroes and broader Classic BMW presentation */
.home-hero {
  min-height: 460px;
}
.home-hero .hero-content,
.classic-bmw-hero .model-intro {
  min-width: 0;
}
.home-hero .decoder-shell,
.classic-bmw-hero .decoder-shell {
  width: 100%;
}
.home-hero .hero-copy {
  max-width: 620px;
}
.classic-bmw-hero h1 {
  font-size: clamp(3rem, 6vw, 5.9rem);
}
.classic-bmw-hero .coverage-strip {
  margin-top: 25px;
}
.bmw-info-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bmw-info-grid article {
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.72);
}
.bmw-info-grid h3 {
  margin: 13px 0 11px;
  font-size: 1.5rem;
  line-height: 1.18;
}
.bmw-info-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 940px) {
  .home-hero { min-height: auto; }
  .bmw-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .home-hero,
  .classic-bmw-hero {
    gap: 30px;
  }
  .home-hero .text-link,
  .classic-bmw-hero .text-link {
    margin-top: 5px;
  }
  .classic-bmw-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.75rem);
  }
  .classic-bmw-hero .coverage-strip {
    margin-top: 20px;
  }
  .bmw-info-grid {
    margin-top: 38px;
    gap: 12px;
  }
  .bmw-info-grid article {
    padding: 21px;
    border-radius: 18px;
  }
  .bmw-info-grid h3 {
    font-size: 1.35rem;
  }
}

/* v3.9 member garages, gallery modal and editable community records */
.member-link {
  color: inherit;
  font-weight: 850;
  text-decoration-color: rgba(155, 52, 31, 0.38);
  text-underline-offset: 0.18em;
}
.member-link:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.pending-edit-note { display: block; color: var(--accent-dark); font-weight: 800; }
.vehicle-card-primary-copy { padding-bottom: 10px; }
.vehicle-card-footer-meta {
  margin: 0;
  padding: 0 17px 17px;
}
.vehicle-card-footer-meta a { position: relative; z-index: 2; }

.gallery-open-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-open-button img { display: block; width: 100%; height: auto; }
body.gallery-modal-open { overflow: hidden; }
.gallery-modal[hidden] { display: none; }
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 9, 0.9);
  backdrop-filter: blur(8px);
}
.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
}
.gallery-modal-stage {
  min-width: 0;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: #11100e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}
.gallery-modal-stage img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  background: #11100e;
}
.gallery-modal-copy {
  display: grid;
  gap: 8px;
  padding: 15px 18px 18px;
  color: #fffaf1;
  background: #171511;
}
.gallery-modal-copy > span {
  color: rgba(255, 250, 241, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-modal-copy p { margin: 0; line-height: 1.55; }
.gallery-modal-copy small { color: rgba(255, 250, 241, 0.68); }
.gallery-modal-copy a { color: #fffaf1; }
.gallery-modal-nav,
.gallery-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(17, 16, 14, 0.75);
  color: #fffaf1;
  cursor: pointer;
}
.gallery-modal-nav {
  width: 46px;
  height: 46px;
  justify-self: center;
  border-radius: 999px;
  font-size: 1.2rem;
}
.gallery-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.55rem;
  line-height: 1;
}
.gallery-modal-nav:hover,
.gallery-modal-close:hover { background: var(--accent-dark); }

.garage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 50px;
  align-items: end;
  padding: 42px 0 48px;
  border-bottom: 1px solid var(--line);
}
.garage-hero h1 { margin: 10px 0 18px; font-size: clamp(3.2rem, 7vw, 6.2rem); line-height: 0.94; }
.garage-hero p { max-width: 690px; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.garage-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.garage-stat-grid > div {
  min-width: 0;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.72);
  text-align: center;
}
.garage-stat-grid strong { display: block; font-size: 1.7rem; }
.garage-stat-grid span { display: block; margin-top: 5px; color: var(--muted); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.garage-vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.garage-vehicle-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.8);
}
.garage-vehicle-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.garage-vehicle-image { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: var(--paper); }
.garage-vehicle-image img { width: 100%; height: 100%; object-fit: cover; }
.garage-vehicle-image span { font-size: 1.4rem; font-weight: 900; letter-spacing: 0.08em; }
.garage-vehicle-copy { padding: 17px; }
.garage-vehicle-copy h3 { margin: 12px 0 6px; font-size: 1.15rem; line-height: 1.25; }
.garage-vehicle-copy p { margin: 0 0 8px; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.04em; }
.garage-vehicle-copy small { color: var(--muted); }
.member-photo-gallery .record-title { display: block; margin-bottom: 7px; }

.edit-pending-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.locked-choice {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 250, 241, 0.65);
}
.locked-choice strong,
.locked-choice small { display: block; }
.locked-choice small { margin-top: 5px; color: var(--muted); line-height: 1.55; }
.edit-photo-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.edit-photo-preview img { width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; }
.edit-photo-preview strong,
.edit-photo-preview span { display: block; }
.edit-photo-preview span { margin-top: 5px; color: var(--muted); }
.revision-comparison { display: grid; gap: 10px; margin-top: 18px; }
.revision-comparison > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.revision-comparison span { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.revision-comparison small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.revision-replacement-image { display: block; width: min(420px, 100%); margin-top: 16px; border-radius: 14px; }

@media (max-width: 940px) {
  .garage-hero { grid-template-columns: 1fr; gap: 26px; }
  .garage-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revision-comparison > div { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .gallery-modal { padding: 10px; }
  .gallery-modal-dialog { max-height: calc(100vh - 20px); grid-template-columns: 1fr; }
  .gallery-modal-stage { max-height: calc(100vh - 20px); border-radius: 14px; }
  .gallery-modal-stage img { max-height: calc(100vh - 150px); }
  .gallery-modal-nav { position: absolute; top: 45%; z-index: 3; background: rgba(17, 16, 14, 0.85); }
  .gallery-modal-prev { left: 8px; }
  .gallery-modal-next { right: 8px; }
  .gallery-modal-close { top: 8px; right: 8px; }
  .garage-hero { padding-top: 22px; }
  .garage-hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .garage-stat-grid { grid-template-columns: 1fr 1fr 1fr; }
  .garage-stat-grid > div { padding: 14px 8px; }
  .garage-stat-grid strong { font-size: 1.35rem; }
  .garage-stat-grid span { font-size: 0.58rem; }
  .garage-vehicle-grid { grid-template-columns: 1fr; }
  .edit-pending-banner { align-items: flex-start; flex-direction: column; }
  .edit-photo-preview { grid-template-columns: 100px minmax(0, 1fr); }
  .edit-photo-preview img { width: 100px; }
}
.vehicle-gallery .gallery-open-button:hover img,
.vehicle-gallery .gallery-open-button:focus-visible img { transform: scale(1.015); }


/* v3.9.1 gallery modal grid-placement fix
   Keep the image stage in the center track when one-image galleries hide both nav buttons. */
.gallery-modal-prev { grid-column: 1; }
.gallery-modal-stage {
  grid-column: 2;
  width: 100%;
}
.gallery-modal-next { grid-column: 3; }

@media (max-width: 760px) {
  .gallery-modal-stage {
    grid-column: 1;
    width: 100%;
  }
}

/* v3.10 story funnel, database-driven model navigation and vehicle claim flow */
.nav-models {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.nav-models summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nav-models summary::-webkit-details-marker { display: none; }
.nav-models summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}
.nav-models[open] summary,
.nav-models summary:hover { color: var(--ink); }
.nav-models[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav-model-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 12px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.98);
  box-shadow: 0 20px 60px rgba(30, 24, 17, 0.16);
}
.nav-model-group { display: grid; gap: 2px; padding: 7px 0; }
.nav-model-group + .nav-model-group { border-top: 1px solid var(--line); }
.nav-model-group-label {
  padding: 7px 10px 5px;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav .nav-model-menu a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.84rem;
}
.site-nav .nav-model-menu a:hover { background: rgba(18, 17, 15, 0.06); }
.site-nav .nav-model-browse {
  margin-top: 7px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.home-story-hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 62px;
  align-items: center;
  min-height: 470px;
}
.home-story-copy {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.home-story-copy-inner { position: relative; z-index: 2; }
.home-story-copy h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 6.2vw, 5.8rem);
  line-height: 0.98;
}
.home-story-ghost {
  position: absolute;
  z-index: 0;
  top: 25px;
  right: 48%;
  bottom: -42px;
  left: calc((100vw - min(1180px, calc(100vw - 40px))) / -2);
  background-position: center;
  background-size: cover;
  opacity: 0.23;
  filter: saturate(0.55) contrast(0.92);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.72) 45%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.72) 45%, transparent 100%);
  pointer-events: none;
}
.home-story-hero .decoder-shell { min-height: 290px; }
.home-story-hero .example-list { margin-top: 18px; }

.story-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}
.story-steps article {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 17px;
  min-width: 0;
  padding: 0 28px;
}
.story-steps article:first-child { padding-left: 0; }
.story-steps article:last-child { padding-right: 0; }
.story-steps article + article { border-left: 1px solid var(--line); }
.story-step-number {
  position: absolute;
  top: 2px;
  left: 86px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}
.story-steps article:first-child .story-step-number { left: 58px; }
.story-step-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.36);
}
.story-step-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.story-steps h2 { margin: 18px 0 5px; font-size: 1.05rem; }
.story-steps p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }

.story-vehicles-section { margin-top: 58px; }
.story-heading-row h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.story-vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story-vehicle-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(160px, 0.92fr);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,250,241,0.84);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.story-vehicle-card:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(30,24,17,0.11); }
.story-vehicle-image {
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.story-vehicle-image img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform 0.2s ease; }
.story-vehicle-card:hover .story-vehicle-image img { transform: scale(1.018); }
.story-vehicle-image > span { font-size: 1.7rem; font-weight: 900; }
.story-vehicle-copy { position: relative; min-width: 0; padding: 18px 17px 54px; }
.story-vehicle-meta { display: flex; justify-content: space-between; gap: 9px; color: var(--muted); font-size: 0.62rem; font-weight: 850; text-transform: uppercase; }
.story-vehicle-meta span { color: var(--accent-dark); }
.story-vehicle-card h3 { margin: 13px 0 7px; font-size: 1rem; line-height: 1.28; }
.story-vehicle-card h3 a { text-decoration: none; }
.story-vehicle-vin,
.story-vehicle-owner { margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.story-vehicle-owner { margin-top: 13px; }
.story-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.45);
  text-decoration: none;
  font-weight: 900;
}
.story-card-arrow:hover { border-color: var(--ink); }

.home-claim-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 44px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,250,241,0.98) 0%, rgba(255,250,241,0.92) 58%, rgba(216,77,49,0.08) 100%);
}
.home-claim-band::after {
  content: "";
  position: absolute;
  right: -50px;
  width: 390px;
  height: 180px;
  border: 42px solid rgba(216,77,49,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.home-claim-icon,
.vehicle-claim-heart {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255,255,255,0.38);
  font-size: 1.65rem;
}
.home-claim-band h2 { margin: 0; font-size: 1.35rem; }
.home-claim-band p { margin: 7px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.home-claim-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; }
.home-claim-actions .text-link { margin: 0; font-size: 0.84rem; }
.result-action-note { max-width: 210px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; text-align: right; }

.vehicle-back-link { margin-bottom: 22px; color: var(--accent-dark); }
.vehicle-story-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: stretch;
  margin-bottom: 0;
  border-radius: 28px 28px 0 0;
}
.vehicle-story-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 28px 38px 0;
}
.vehicle-story-hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20px -180px -20px -100vw;
  background: linear-gradient(90deg, rgba(249,245,237,1) 0%, rgba(249,245,237,0.98) 74%, rgba(249,245,237,0) 100%);
}
.vehicle-story-hero h1 { margin: 22px 0 10px; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.95; }
.vehicle-story-hero-photo { min-width: 0; overflow: hidden; }
.vehicle-story-hero-photo img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.vehicle-story-hero-placeholder {
  display: grid;
  place-items: center;
  min-height: 310px;
  background: radial-gradient(circle at 28% 22%, rgba(216,77,49,0.22), transparent 42%), var(--ink);
  color: var(--paper);
}
.vehicle-story-hero-placeholder span { font-size: 3rem; font-weight: 900; }
.vehicle-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.vehicle-confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(47,111,78,0.25);
  border-radius: 999px;
  background: rgba(47,111,78,0.08);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.vehicle-confidence-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.vehicle-index-note { color: var(--muted); font-size: 0.72rem; }
.vehicle-story-line { margin: 22px 0 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.vehicle-claim-panel {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(430px, 1.5fr) minmax(180px, 0.62fr);
  gap: 24px;
  align-items: center;
  margin-top: -1px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 0 0 22px 22px;
  background: rgba(255,250,241,0.96);
  box-shadow: 0 20px 50px rgba(30,24,17,0.08);
}
.vehicle-claim-intro { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; }
.vehicle-claim-intro h2 { margin: 0; font-size: 1.25rem; }
.vehicle-claim-intro p { margin: 6px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.vehicle-claim-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.vehicle-claim-benefits span { display: grid; grid-template-columns: 27px 1fr; gap: 7px; align-items: center; color: var(--muted); font-size: 0.72rem; line-height: 1.4; }
.vehicle-claim-benefits i { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 0.58rem; font-style: normal; font-weight: 900; }
.vehicle-claim-actions { display: grid; gap: 8px; }
.vehicle-claim-actions .form-button,
.vehicle-claim-actions .secondary-button { width: 100%; min-height: 46px; }
.vehicle-contribution-status { margin-top: 22px; margin-bottom: 0; }

.vehicle-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}
.vehicle-story-main,
.vehicle-story-side { display: grid; gap: 20px; min-width: 0; }
.vehicle-story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,250,241,0.84);
}
.vehicle-story-card-heading { padding: 22px 22px 0; }
.vehicle-story-card-heading h2 { margin: 7px 0 0; font-size: 1.5rem; }
.vehicle-story-card-heading.row-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.vehicle-story-facts-grid { margin-top: 19px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.vehicle-story-facts-grid .data-cell { min-height: 96px; padding: 20px; }
.vehicle-ownership-card,
.vehicle-activity-card { padding-bottom: 18px; }
.vehicle-ownership-card .ownership-timeline { padding: 3px 22px 0; }
.compact-ownership-timeline .ownership-entry { padding: 20px 0; }
.vehicle-activity-card .lookup-summary-grid,
.vehicle-activity-card .lookup-table-wrap,
.vehicle-activity-card .empty-state,
.vehicle-activity-card .vehicle-activity-details { margin-right: 22px; margin-left: 22px; }
.vehicle-lookup-summary { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.compact-lookup-table { min-width: 560px; }
.vehicle-activity-details { margin-top: 14px; }
.vehicle-activity-details summary { color: var(--accent-dark); cursor: pointer; font-size: 0.78rem; font-weight: 900; }
.vehicle-activity-details .lookup-table-wrap { margin: 14px 0 0; }

.vehicle-photo-feature { padding-bottom: 17px; }
.gallery-count-pill { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.67rem; font-weight: 850; }
.vehicle-feature-photo {
  width: calc(100% - 32px);
  overflow: hidden;
  display: block;
  margin: 18px 16px 0;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: var(--ink);
  cursor: zoom-in;
}
.vehicle-feature-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vehicle-photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 16px 0; }
.vehicle-photo-thumb {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink);
  cursor: zoom-in;
}
.vehicle-photo-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vehicle-photo-more { position: absolute; inset: 0; display: grid; place-content: center; background: rgba(18,17,15,0.66); color: #fff; font-size: 1.1rem; font-weight: 900; }
.vehicle-photo-more small { display: block; margin-top: 2px; font-size: 0.58rem; }
.gallery-hidden-source { display: none !important; }
.vehicle-photo-credit { margin: 12px 17px 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.vehicle-photo-empty { display: grid; gap: 16px; margin: 18px 16px 0; }
.vehicle-photo-empty .secondary-button { width: fit-content; }

.vehicle-garage-nudge {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(125deg, rgba(255,250,241,0.98), rgba(216,77,49,0.09));
}
.vehicle-garage-nudge::after { content: ""; position: absolute; right: -50px; bottom: -80px; width: 230px; height: 160px; border: 34px solid rgba(216,77,49,0.05); border-radius: 50%; }
.vehicle-garage-nudge h2 { margin: 0; font-size: 1.25rem; }
.vehicle-garage-nudge p { margin: 6px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.vehicle-garage-nudge .form-button { position: relative; z-index: 2; grid-column: 2; width: fit-content; }
.vehicle-story-notes { margin-top: 44px; }

@media (max-width: 1060px) {
  .story-vehicle-grid { grid-template-columns: 1fr; }
  .story-vehicle-card { grid-template-columns: 280px 1fr; }
  .vehicle-claim-panel { grid-template-columns: 1fr; }
  .vehicle-claim-benefits { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .vehicle-claim-actions { grid-template-columns: 1fr 1fr; }
  .vehicle-story-layout { grid-template-columns: 1fr; }
  .vehicle-story-side { grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); }
}

@media (max-width: 940px) {
  .home-story-hero { grid-template-columns: 1fr; min-height: 0; }
  .home-story-copy { min-height: 380px; display: grid; align-items: center; }
  .home-story-ghost { right: 20%; }
  .story-steps { grid-template-columns: 1fr; }
  .story-steps article { padding: 22px 0; }
  .story-steps article + article { border-top: 1px solid var(--line); border-left: 0; }
  .story-step-number,
  .story-steps article:first-child .story-step-number { left: 58px; top: 24px; }
  .home-claim-band { grid-template-columns: 58px 1fr; }
  .home-claim-actions { grid-column: 2; }
  .vehicle-story-hero { grid-template-columns: 1fr; }
  .vehicle-story-hero-copy { padding: 28px 0; }
  .vehicle-story-hero-copy::after { inset: -20px -40px -100px -40px; background: linear-gradient(180deg, rgba(249,245,237,1) 0%, rgba(249,245,237,0.98) 72%, rgba(249,245,237,0) 100%); }
  .vehicle-story-hero-photo { min-height: 300px; }
  .vehicle-story-side { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-models { width: 100%; }
  .nav-models summary { min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 0.86rem; }
  .nav-models summary:hover { background: rgba(18,17,15,0.05); }
  .nav-model-menu { position: static; width: 100%; margin: 2px 0 7px; padding: 7px; border: 0; border-radius: 12px; background: rgba(18,17,15,0.035); box-shadow: none; }
  .site-nav .nav-model-menu a { min-height: 42px; }
  .home-story-copy { min-height: 330px; }
  .home-story-copy h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .home-story-ghost { right: -24px; left: -24px; bottom: -10px; opacity: 0.17; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, transparent 100%); }
  .story-vehicle-card { grid-template-columns: 1fr; }
  .story-vehicle-image img { min-height: 210px; }
  .home-claim-band { grid-template-columns: 48px 1fr; padding: 22px 18px; }
  .home-claim-icon { width: 44px; height: 44px; }
  .home-claim-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .home-claim-actions .form-button { width: 100%; }
  .result-action-note { max-width: none; text-align: left; }
  .vehicle-story-hero { min-height: 0; border-radius: 22px 22px 0 0; }
  .vehicle-story-hero h1 { font-size: 2.8rem; overflow-wrap: anywhere; }
  .vehicle-story-hero-photo img { min-height: 240px; }
  .vehicle-claim-panel { padding: 18px; }
  .vehicle-claim-benefits { grid-template-columns: 1fr 1fr; }
  .vehicle-claim-actions { grid-template-columns: 1fr; }
  .vehicle-story-card-heading { padding: 19px 17px 0; }
  .vehicle-story-facts-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-story-facts-grid .data-cell:nth-child(2n) { border-right: 0; }
  .vehicle-ownership-card .ownership-timeline { padding: 2px 17px 0; }
  .vehicle-activity-card .lookup-summary-grid,
  .vehicle-activity-card .lookup-table-wrap,
  .vehicle-activity-card .empty-state,
  .vehicle-activity-card .vehicle-activity-details { margin-right: 17px; margin-left: 17px; }
}

@media (max-width: 520px) {
  .story-steps article { grid-template-columns: 48px 1fr; }
  .story-step-icon { width: 44px; height: 44px; }
  .story-step-number,
  .story-steps article:first-child .story-step-number { left: 49px; }
  .vehicle-claim-intro { grid-template-columns: 45px 1fr; }
  .vehicle-claim-heart { width: 44px; height: 44px; }
  .vehicle-claim-benefits { grid-template-columns: 1fr; }
  .vehicle-story-facts-grid { grid-template-columns: 1fr; }
  .vehicle-story-facts-grid .data-cell { border-right: 0; }
  .vehicle-photo-strip { grid-template-columns: repeat(2, 1fr); }
  .vehicle-garage-nudge { grid-template-columns: 44px 1fr; padding: 18px; }
  .vehicle-garage-nudge .form-button { grid-column: 1 / -1; width: 100%; }
}

/* --------------------------------------------------------------------------
   PetrolJunky v3.12 — mockup fidelity refinement
   Refines the homepage and vehicle story page without changing the theme,
   decoder logic, database structure, garages, claims, or gallery behavior.
   -------------------------------------------------------------------------- */

.site-header,
main {
  width: min(1220px, calc(100% - 64px));
}

main {
  padding-top: 46px;
}

/* Homepage: match the approved story-first mockup more closely. */
.home-story-hero {
  grid-template-columns: minmax(0, 1.03fr) minmax(470px, 0.97fr);
  gap: 66px;
  min-height: 430px;
}

.home-story-copy {
  min-height: 410px;
  display: flex;
  align-items: center;
}

.home-story-copy-inner {
  width: min(100%, 660px);
}

.home-story-copy h1 {
  max-width: 650px;
  margin: 22px 0 18px;
  font-size: clamp(3.1rem, 5.25vw, 4.9rem);
  line-height: 0.99;
}

.home-story-copy .hero-copy {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.65;
}

.home-story-ghost {
  top: 56px;
  right: 45%;
  bottom: -4px;
  left: calc((100vw - min(1220px, calc(100vw - 64px))) / -2);
  opacity: 0.2;
  filter: saturate(0.5) contrast(0.92) brightness(1.04);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.72) 44%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.72) 44%, transparent 100%);
}

.home-story-hero .decoder-shell {
  min-height: 270px;
  padding: 28px;
  border-radius: 25px;
  box-shadow: 0 28px 70px rgba(30, 24, 17, 0.16);
}

.home-story-hero .decoder-title {
  margin-bottom: 23px;
}

.home-story-hero .decoder-title h2 {
  font-size: 1.45rem;
}

.home-story-hero .vin-input {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 1rem;
}

.home-story-hero .decode-button {
  min-width: 112px;
}

.story-steps {
  margin-top: 42px;
  padding: 25px 0;
}

.story-steps article {
  min-height: 84px;
  align-items: center;
}

.story-steps h2 {
  margin-top: 16px;
}

.story-vehicles-section {
  margin-top: 46px;
}

.story-heading-row {
  margin-bottom: 18px;
}

.story-heading-row h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.story-vehicle-card {
  min-height: 176px;
  grid-template-columns: minmax(0, 1.14fr) minmax(155px, 0.86fr);
  border-radius: 16px;
}

.story-vehicle-image img {
  min-height: 176px;
}

.story-vehicle-copy {
  padding: 17px 16px 50px;
}

.home-claim-band {
  margin-top: 36px;
  min-height: 104px;
  padding: 24px 28px;
  border-radius: 17px;
}

.home-claim-band h2 {
  font-size: 1.25rem;
}

/* Vehicle page: remove the oversized background slab and let the image fade
   naturally into the page, as shown in the approved mockup. */
.vehicle-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.vehicle-story-hero {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: visible;
  margin-bottom: 12px;
  border-radius: 0;
}

.vehicle-story-hero-copy {
  position: relative;
  z-index: 3;
  width: min(62%, 760px);
  min-height: 300px;
  justify-content: center;
  padding: 28px 0 34px;
}

.vehicle-story-hero-copy::after {
  display: none;
}

.vehicle-story-hero h1 {
  max-width: 760px;
  margin: 18px 0 8px;
  font-size: clamp(3.25rem, 5.4vw, 5rem);
  line-height: 0.96;
}

.vehicle-story-hero-photo,
.vehicle-story-hero-placeholder {
  position: absolute;
  z-index: 1;
  top: -26px;
  right: -18px;
  bottom: 0;
  width: 62%;
  min-height: 326px;
  overflow: hidden;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.36) 14%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.36) 14%, #000 42%, #000 100%);
}

.vehicle-story-hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 326px;
  object-fit: cover;
  object-position: center center;
}

.vehicle-story-hero-placeholder {
  display: grid;
}

.vehicle-story-line {
  max-width: 560px;
  margin-top: 19px;
  font-size: 0.88rem;
}

.vehicle-claim-panel {
  grid-template-columns: minmax(275px, 1.12fr) minmax(430px, 1.55fr) minmax(190px, 0.62fr);
  margin-top: 0;
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(30, 24, 17, 0.07);
}

.vehicle-claim-intro {
  grid-template-columns: 52px 1fr;
}

.vehicle-claim-intro p {
  max-width: 360px;
}

.vehicle-claim-benefits {
  gap: 13px;
  padding-left: 20px;
}

.vehicle-claim-benefits span {
  grid-template-columns: 30px 1fr;
  gap: 8px;
  font-size: 0.69rem;
}

.vehicle-claim-benefits i {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
}

.vehicle-claim-benefits i svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vehicle-story-layout {
  grid-template-columns: minmax(0, 1.06fr) minmax(405px, 0.94fr);
  gap: 18px;
  margin-top: 18px;
}

.vehicle-story-main,
.vehicle-story-side {
  gap: 16px;
}

.vehicle-story-card {
  border-radius: 17px;
  background: rgba(255, 250, 241, 0.73);
}

.vehicle-facts-card {
  overflow: hidden;
}

.vehicle-story-facts-grid {
  margin-top: 0;
  border-top: 0;
}

.vehicle-story-facts-grid .data-cell {
  min-height: 88px;
  padding: 17px 18px;
}

.vehicle-story-card-heading {
  padding: 18px 18px 0;
}

.vehicle-story-card-heading h2 {
  margin-top: 0;
  font-size: 1.28rem;
}

.vehicle-ownership-card .ownership-timeline {
  padding-right: 18px;
  padding-left: 18px;
}

.compact-ownership-timeline .ownership-entry {
  padding: 17px 0;
}

.vehicle-activity-card {
  padding-bottom: 13px;
}

.vehicle-activity-card .lookup-table-wrap,
.vehicle-activity-card .empty-state,
.vehicle-activity-card .vehicle-activity-details {
  margin-right: 18px;
  margin-left: 18px;
}

.vehicle-activity-card > .lookup-table-wrap {
  margin-top: 14px;
}

.vehicle-activity-details {
  margin-top: 10px;
}

.vehicle-photo-feature {
  padding-bottom: 13px;
}

.vehicle-feature-photo {
  width: calc(100% - 28px);
  margin: 14px 14px 0;
  border-radius: 13px;
}

.vehicle-feature-photo img {
  aspect-ratio: 16 / 9;
}

.vehicle-photo-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 7px 14px 0;
}

.vehicle-photo-thumb {
  border-radius: 8px;
}

.vehicle-photo-credit {
  margin: 10px 15px 0;
}

.vehicle-garage-nudge {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 19px 20px;
  border-radius: 17px;
}

.vehicle-garage-nudge h2 {
  font-size: 1.15rem;
}

.vehicle-garage-actions {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.vehicle-garage-actions .form-button {
  width: auto;
  min-width: 145px;
}

.vehicle-garage-actions .text-link {
  margin: 0;
  font-size: 0.66rem;
}

.vehicle-story-notes {
  margin-top: 34px;
  padding-top: 28px;
}

@media (max-width: 1120px) {
  .home-story-hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    gap: 42px;
  }

  .vehicle-story-hero-copy {
    width: 67%;
  }

  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder {
    width: 60%;
  }

  .vehicle-claim-panel {
    grid-template-columns: 1fr;
  }

  .vehicle-claim-benefits {
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .vehicle-claim-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 940px) {
  .site-header,
  main {
    width: min(100% - 40px, 760px);
  }

  .home-story-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-story-copy {
    min-height: 355px;
  }

  .home-story-copy-inner {
    width: 100%;
  }

  .home-story-ghost {
    right: 12%;
    left: -20px;
  }

  .vehicle-story-hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .vehicle-story-hero-copy {
    width: 100%;
    min-height: 0;
    padding: 24px 0 26px;
  }

  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 285px;
    border-radius: 18px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 12%, #000 30%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 12%, #000 30%, #000 100%);
  }

  .vehicle-story-hero-photo img {
    min-height: 285px;
  }

  .vehicle-story-layout {
    grid-template-columns: 1fr;
  }

  .vehicle-story-side {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  }
}

@media (max-width: 760px) {
  .site-header,
  main {
    width: calc(100% - 32px);
  }

  main {
    padding-top: 34px;
  }

  .home-story-copy {
    min-height: 315px;
  }

  .home-story-copy h1 {
    font-size: clamp(2.65rem, 11vw, 3.8rem);
  }

  .home-story-hero .decoder-shell {
    padding: 23px;
  }

  .story-vehicle-card {
    grid-template-columns: 1fr;
  }

  .vehicle-story-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .vehicle-claim-panel {
    padding: 17px;
  }

  .vehicle-claim-benefits {
    grid-template-columns: 1fr 1fr;
  }

  .vehicle-claim-actions {
    grid-template-columns: 1fr;
  }

  .vehicle-story-side {
    grid-template-columns: 1fr;
  }

  .vehicle-story-facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vehicle-photo-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vehicle-garage-nudge {
    grid-template-columns: 44px 1fr;
  }

  .vehicle-garage-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .vehicle-garage-actions .form-button {
    width: 100%;
  }

  .vehicle-garage-actions .text-link {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .vehicle-claim-benefits,
  .vehicle-story-facts-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   PetrolJunky v3.13 — approved mockup fidelity pass
   Uses the approved homepage and vehicle-page compositions as the layout
   reference. This block intentionally overrides the earlier story-page passes.
   -------------------------------------------------------------------------- */

/* Homepage composition ----------------------------------------------------- */
@media (min-width: 941px) {
  .home-story-hero {
    grid-template-columns: minmax(0, 560px) minmax(470px, 510px);
    justify-content: space-between;
    gap: 54px;
    min-height: 350px;
    padding: 0 32px 0 64px;
  }

  .home-story-copy {
    min-height: 350px;
  }

  .home-story-copy-inner {
    width: 100%;
    max-width: none;
  }

  .home-story-title span {
    display: block;
    white-space: nowrap;
  }

  .home-story-hero .decoder-shell {
    width: 100%;
    max-width: 510px;
    justify-self: end;
  }

  .story-steps {
    padding-right: 64px;
    padding-left: 64px;
  }
}

.home-story-copy h1,
.home-story-title {
  max-width: none;
  margin: 20px 0 17px;
  font-size: clamp(3.35rem, 5vw, 4.55rem);
  line-height: 0.98;
}

.home-story-copy .hero-copy {
  max-width: 555px;
  margin: 0 0 9px;
  font-size: 0.96rem;
  line-height: 1.62;
}

.home-story-ghost {
  top: 34px;
  right: 24%;
  bottom: -8px;
  left: calc(-64px - ((100vw - min(1220px, calc(100vw - 64px))) / 2));
  background-position: center 54%;
  background-size: cover;
  opacity: 0.18;
  filter: saturate(0.46) contrast(0.9) brightness(1.04);
  -webkit-mask-image: radial-gradient(ellipse 86% 78% at 8% 52%, #000 0%, rgba(0,0,0,0.92) 42%, rgba(0,0,0,0.38) 67%, transparent 88%);
  mask-image: radial-gradient(ellipse 86% 78% at 8% 52%, #000 0%, rgba(0,0,0,0.92) 42%, rgba(0,0,0,0.38) 67%, transparent 88%);
}

.home-story-hero .decoder-shell {
  min-height: 286px;
  padding: 29px 27px 25px;
  border-radius: 26px;
}

.home-story-hero .decoder-title {
  margin-bottom: 21px;
}

.home-story-hero .decoder-title h2 {
  font-size: 1.35rem;
}

.home-story-hero .vin-input {
  padding: 15px 17px;
  font-size: 0.96rem;
}

.home-story-hero .decode-button {
  min-width: 108px;
}

.story-steps {
  margin-top: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.story-steps article {
  min-height: 76px;
}

.story-steps h2 {
  margin-top: 15px;
}

.story-vehicles-section {
  margin-top: 34px;
}

.story-heading-row {
  margin-bottom: 15px;
}

.story-heading-row h2 {
  font-size: clamp(1.8rem, 2.55vw, 2.25rem);
}

.story-vehicle-card {
  min-height: 150px;
  grid-template-columns: minmax(0, 1.18fr) minmax(145px, 0.82fr);
  border-radius: 15px;
}

.story-vehicle-image img {
  min-height: 150px;
}

.story-vehicle-copy {
  padding: 15px 14px 43px;
}

.story-vehicle-card h3 {
  margin-top: 10px;
  font-size: 0.93rem;
}

.story-vehicle-owner {
  margin-top: 10px;
}

.home-claim-band {
  min-height: 98px;
  margin-top: 31px;
  padding: 22px 28px;
  border-radius: 17px;
}

.home-claim-band h2 {
  font-size: 1.2rem;
}

.home-claim-band + .site-footer {
  margin-top: 28px;
}

/* Vehicle hero composition ------------------------------------------------ */
.vehicle-back-link {
  margin-bottom: 8px;
}

.vehicle-story-hero {
  min-height: 242px;
  margin-bottom: 0;
}

.vehicle-story-hero-copy {
  width: min(58%, 710px);
  min-height: 242px;
  padding: 7px 0 23px;
}

.vehicle-story-hero h1 {
  max-width: none;
  margin: 17px 0 8px;
  font-size: clamp(3.55rem, 5.1vw, 4.9rem);
  line-height: 0.95;
  white-space: nowrap;
}

.vehicle-story-hero-photo,
.vehicle-story-hero-placeholder {
  top: -62px;
  right: -48px;
  bottom: 0;
  width: 56%;
  min-height: 304px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.16) 10%, rgba(0,0,0,0.72) 34%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.16) 10%, rgba(0,0,0,0.72) 34%, #000 55%, #000 100%);
}

.vehicle-story-hero-photo img {
  min-height: 304px;
  object-position: 54% 52%;
}

.vehicle-story-line {
  max-width: 520px;
  margin-top: 18px;
}

.vehicle-claim-panel {
  grid-template-columns: minmax(305px, 1.2fr) minmax(445px, 1.55fr) 184px;
  gap: 21px;
  min-height: 116px;
  padding: 18px 21px;
  border-radius: 18px;
}

.vehicle-claim-intro {
  grid-template-columns: 52px minmax(0, 1fr);
}

.vehicle-claim-intro p {
  max-width: 350px;
}

.vehicle-claim-benefits {
  min-width: 0;
  gap: 10px;
  padding-left: 19px;
}

.vehicle-claim-benefits span {
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 7px;
  font-size: 0.67rem;
}

.vehicle-claim-benefits i {
  width: 27px;
  height: 27px;
}

.vehicle-claim-actions {
  align-self: stretch;
  align-content: center;
}

.vehicle-claim-actions .form-button,
.vehicle-claim-actions .secondary-button {
  min-height: 43px;
}

.vehicle-contribution-status {
  margin-top: 14px;
  margin-bottom: 0;
}

.vehicle-story-layout {
  grid-template-columns: minmax(0, 1.26fr) minmax(430px, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.vehicle-story-main,
.vehicle-story-side {
  gap: 14px;
}

.vehicle-story-card {
  border-radius: 16px;
}

.vehicle-story-facts-grid .data-cell {
  min-height: 82px;
  padding: 15px 16px;
}

.vehicle-story-card-heading {
  padding: 16px 17px 0;
}

.vehicle-story-card-heading h2 {
  font-size: 1.22rem;
}

.vehicle-ownership-card .ownership-timeline {
  padding: 0 17px;
}

.compact-ownership-timeline .ownership-entry {
  grid-template-columns: 40px minmax(0, 1fr) minmax(185px, 0.82fr);
  gap: 14px;
  align-items: center;
  padding: 15px 0;
}

.compact-ownership-timeline .timeline-marker {
  width: 36px;
  height: 36px;
}

.compact-ownership-timeline .ownership-heading h3 {
  font-size: 1.08rem;
}

.ownership-context {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.ownership-context strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.vehicle-activity-card {
  padding-bottom: 12px;
}

.vehicle-activity-card > .lookup-table-wrap {
  margin-top: 12px;
}

.compact-lookup-table th,
.compact-lookup-table td {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.72rem;
}

.vehicle-feature-photo {
  width: calc(100% - 26px);
  margin: 13px 13px 0;
  border-radius: 12px;
}

.vehicle-feature-photo img {
  aspect-ratio: 2.18 / 1;
  object-position: center 54%;
}

.vehicle-photo-strip {
  margin: 7px 13px 0;
}

.vehicle-photo-credit {
  margin: 9px 14px 0;
}

.vehicle-garage-nudge {
  grid-template-columns: 46px minmax(190px, 1fr) minmax(150px, auto);
  gap: 13px;
  min-height: 118px;
  padding: 18px 19px;
}

.vehicle-garage-nudge h2 {
  max-width: 240px;
  font-size: 1.12rem;
  line-height: 1.08;
}

.vehicle-garage-nudge p {
  max-width: 255px;
}

.vehicle-garage-actions {
  min-width: 150px;
}

.vehicle-garage-actions .form-button {
  min-width: 150px;
}

.vehicle-story-notes {
  margin-top: 27px;
  padding: 24px 18px 0;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  gap: 30px;
}

.vehicle-story-notes .prose {
  font-size: 0.84rem;
  line-height: 1.58;
}

.vehicle-story-notes .prose p {
  margin: 0 0 9px;
}

@media (max-width: 1120px) and (min-width: 941px) {
  .home-story-hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    padding-right: 0;
    padding-left: 28px;
  }

  .home-story-title span {
    white-space: normal;
  }

  .vehicle-story-hero-copy {
    width: 61%;
  }

  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder {
    right: -28px;
    width: 55%;
  }

  .vehicle-story-hero h1 {
    font-size: clamp(3rem, 5vw, 4.25rem);
  }

  .vehicle-claim-panel {
    grid-template-columns: minmax(270px, 1fr) minmax(390px, 1.4fr) 170px;
    gap: 15px;
  }

  .vehicle-claim-benefits span {
    font-size: 0.62rem;
  }

  .vehicle-story-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 1fr);
  }
}

@media (max-width: 940px) {
  .home-story-title span {
    display: block;
  }

  .home-story-ghost {
    left: -20px;
    right: 8%;
    -webkit-mask-image: radial-gradient(ellipse 92% 78% at 7% 55%, #000 0%, rgba(0,0,0,0.75) 45%, transparent 88%);
    mask-image: radial-gradient(ellipse 92% 78% at 7% 55%, #000 0%, rgba(0,0,0,0.75) 45%, transparent 88%);
  }

  .vehicle-story-hero h1 {
    white-space: normal;
  }

  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder {
    width: 100%;
  }

  .compact-ownership-timeline .ownership-entry {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .ownership-context {
    grid-column: 2;
    margin-top: 9px;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .home-story-title span {
    white-space: normal;
  }

  .vehicle-garage-nudge {
    grid-template-columns: 44px 1fr;
  }
}

/* Final optical alignment against the approved 1448px mockups. */
.site-header {
  padding-top: 16px;
  padding-bottom: 10px;
}

main {
  padding-top: 30px;
}

.home-story-copy h1,
.home-story-title {
  font-size: clamp(3.25rem, 4.45vw, 4.1rem);
}

.story-vehicles-section {
  margin-top: 10px;
}

.story-heading-row {
  margin-bottom: 10px;
}

.story-heading-row h2 {
  margin-top: 7px;
}

.home-story-copy h1,
.home-story-title {
  font-family: "Inter Display", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.2rem, 4vw, 3.72rem);
  font-weight: 800;
}

.home-story-hero .example-list {
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 15px;
}

.home-story-hero .example-button {
  padding: 5px 7px;
  white-space: nowrap;
  font-size: 0.64rem;
}

@media (max-width: 1120px) {
  .home-story-hero .example-list {
    flex-wrap: wrap;
  }
}

/* Vehicle-page optical compression and alignment from rendered comparison. */
.vehicle-story-hero-copy .eyebrow {
  align-self: flex-start;
}

.vehicle-story-hero {
  min-height: 225px;
}

.vehicle-story-hero-copy {
  min-height: 225px;
  padding-top: 0;
  padding-bottom: 12px;
}

.vehicle-story-hero h1 {
  margin-top: 14px;
  margin-bottom: 4px;
}

.vehicle-story-hero .vehicle-vin {
  margin-top: 5px;
}

.vehicle-story-hero .vehicle-hero-meta {
  margin-top: 9px;
}

.vehicle-story-line {
  margin-top: 12px;
}

.vehicle-story-hero-photo,
.vehicle-story-hero-placeholder {
  top: -70px;
  min-height: 295px;
}

.vehicle-story-hero-photo img {
  min-height: 295px;
}

.vehicle-claim-panel {
  grid-template-columns: minmax(300px, 1.18fr) minmax(430px, 1.52fr) 205px;
}

.vehicle-claim-actions .form-button,
.vehicle-claim-actions .secondary-button {
  padding-right: 12px;
  padding-left: 12px;
  white-space: nowrap;
  font-size: 0.74rem;
}

.vehicle-story-facts-grid .data-cell {
  min-height: 66px;
  padding: 12px 14px;
}

.vehicle-story-facts-grid .data-label {
  margin-bottom: 7px;
  font-size: 0.59rem;
}

.vehicle-story-facts-grid .data-value {
  font-size: 0.84rem;
  line-height: 1.28;
}

.vehicle-garage-nudge {
  grid-template-columns: 44px minmax(0, 1fr) 178px;
}

.vehicle-garage-nudge h2 {
  max-width: none;
}

.vehicle-garage-actions {
  min-width: 178px;
}

.vehicle-garage-actions .form-button {
  min-width: 178px;
  padding-right: 11px;
  padding-left: 11px;
  white-space: nowrap;
  font-size: 0.72rem;
}

.vehicle-garage-actions .text-link {
  white-space: nowrap;
  text-align: right;
}

.vehicle-story-hero,
.vehicle-story-hero-copy {
  min-height: 233px;
}

.vehicle-story-hero-photo,
.vehicle-story-hero-placeholder,
.vehicle-story-hero-photo img {
  min-height: 303px;
}

.vehicle-claim-panel {
  padding: 14px 20px;
}

.vehicle-ownership-card {
  padding-bottom: 5px;
}

.compact-ownership-timeline .ownership-entry {
  padding-top: 10px;
  padding-bottom: 11px;
}

.ownership-context {
  font-size: 0.66rem;
}

.vehicle-photo-feature:has(.vehicle-feature-photo) {
  min-height: 360px;
}

.vehicle-feature-photo img {
  aspect-ratio: 1.95 / 1;
}

.vehicle-garage-nudge .form-button {
  grid-column: auto;
}

.vehicle-ownership-card .vehicle-story-card-heading {
  padding-top: 13px;
}

.compact-ownership-timeline .ownership-entry {
  padding-top: 4px;
  padding-bottom: 6px;
}

.compact-ownership-timeline .ownership-dates {
  margin-top: 4px;
}

.ownership-context {
  line-height: 1.3;
}

.vehicle-photo-feature:has(.vehicle-feature-photo) {
  min-height: 374px;
}

/* --------------------------------------------------------------------------
   PetrolJunky v3.14 — homepage alignment, step numbers and image fade
   Keeps every primary homepage section on the same outer width, aligns the
   step numbers with their headings, and fades the hero photograph on all
   four edges so the image never ends in a hard horizontal line.
   -------------------------------------------------------------------------- */

/* One shared outer edge for every major homepage block. */
.home-story-hero,
.story-steps,
.story-vehicles-section,
.home-claim-band,
.site-footer {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}

@media (min-width: 941px) {
  .home-story-hero {
    padding-right: 0;
    padding-left: 0;
  }

  /* Preserve the intentional copy inset while allowing the decoder card to
     align with the right edge used by the cards and CTA below it. */
  .home-story-copy-inner {
    padding-left: 64px;
  }

  .story-steps {
    padding-right: 0;
    padding-left: 0;
  }
}

/* The source photo now fades vertically as well as horizontally. Extending
   the image beyond the copy area also prevents a visible boundary if a browser
   renders the final transparent mask pixel imperfectly. */
.home-story-ghost {
  top: -28px;
  bottom: -28px;
  background-position: center 52%;
  -webkit-mask-image: radial-gradient(
    ellipse 96% 50% at 18% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.96) 36%,
    rgba(0, 0, 0, 0.72) 57%,
    rgba(0, 0, 0, 0.26) 78%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 96% 50% at 18% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.96) 36%,
    rgba(0, 0, 0, 0.72) 57%,
    rgba(0, 0, 0, 0.26) 78%,
    transparent 100%
  );
}

/* Put 01 / 02 / 03 on the same visual baseline as the step title rather than
   absolutely positioning them above the title. */
.story-steps article,
.story-steps article:first-child,
.story-steps article:last-child {
  grid-template-columns: 56px 28px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.story-step-icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}

.story-step-number,
.story-steps article:first-child .story-step-number {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: 5px;
  line-height: 1;
}

.story-steps article > div:last-child {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

.story-steps h2 {
  margin: 0 0 5px;
}

@media (max-width: 940px) {
  .home-story-copy-inner {
    padding-left: 0;
  }

  .home-story-ghost {
    top: -20px;
    bottom: -20px;
    -webkit-mask-image: radial-gradient(
      ellipse 96% 50% at 18% 50%,
      #000 0%,
      rgba(0, 0, 0, 0.9) 35%,
      rgba(0, 0, 0, 0.55) 60%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 96% 50% at 18% 50%,
      #000 0%,
      rgba(0, 0, 0, 0.9) 35%,
      rgba(0, 0, 0, 0.55) 60%,
      transparent 100%
    );
  }

  .story-steps article,
  .story-steps article:first-child,
  .story-steps article:last-child {
    grid-template-columns: 50px 27px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .story-steps article,
  .story-steps article:first-child,
  .story-steps article:last-child {
    grid-template-columns: 44px 25px minmax(0, 1fr);
    column-gap: 10px;
  }

  .story-step-number,
  .story-steps article:first-child .story-step-number {
    margin-top: 4px;
  }
}

/* --------------------------------------------------------------------------
   PetrolJunky v3.15 — SEO pages, sitemap admin and footer discovery links
   -------------------------------------------------------------------------- */
.site-footer {
  align-items: flex-start;
  flex-wrap: wrap;
}
.site-footer-copy {
  display: grid;
  gap: 4px;
  max-width: 720px;
}
.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  max-width: 560px;
}
.footer-seo-links a {
  color: var(--muted);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-seo-links a:hover { color: var(--accent-dark); }

.seo-decoder-hero { margin-top: 52px; }
.seo-copy-section { padding-top: 54px; }
.seo-copy-prose {
  max-width: 920px;
  margin: 0 auto;
}
.seo-copy-prose h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}
.seo-copy-prose h2:first-child { margin-top: 0; }
.seo-copy-prose p { color: var(--muted); line-height: 1.8; }
.seo-faq-section { padding-top: 40px; }
.seo-faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}
.seo-faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.78);
}
.seo-faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}
.seo-faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.seo-admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 48px;
}
.seo-admin-stat-grid > div {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.76);
}
.seo-admin-stat-grid strong {
  display: block;
  font-size: 1.65rem;
}
.seo-admin-stat-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.seo-url-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.seo-url-grid > div {
  display: grid;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.76);
}
.seo-url-grid code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.72rem;
}
.seo-url-grid a { color: var(--accent-dark); font-weight: 850; }
.seo-settings-form { max-width: none; }
.seo-page-list { display: grid; gap: 16px; }
.seo-page-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.8);
}
.seo-page-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.seo-page-card-heading a { color: var(--accent-dark); font-weight: 850; }
.seo-page-card label > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
}

@media (max-width: 980px) {
  .seo-admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-url-grid { grid-template-columns: 1fr; }
  .footer-seo-links { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .seo-admin-stat-grid { grid-template-columns: 1fr; }
  .seo-page-card { padding: 17px; }
  .seo-page-card-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .footer-seo-links { display: grid; gap: 9px; }
}
.seo-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.seo-related-links a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.76);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   PetrolJunky v3.16 — responsive layout rebuild
   Mobile and tablet are composed layouts, not scaled desktop layouts.
   -------------------------------------------------------------------------- */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
}

/* Tablet navigation and shared page gutters. */
@media (max-width: 940px) {
  html { scroll-padding-top: 84px; }

  .site-header,
  main {
    width: min(100% - 32px, 760px);
  }

  .site-header {
    position: relative;
    min-height: 72px;
    padding: 14px 0 10px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand { min-width: 0; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; flex: 0 0 auto; font-size: 0.84rem; }
  .brand-name { font-size: 0.82rem; letter-spacing: 0.1em; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    width: 100%;
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 241, 0.99);
    box-shadow: 0 18px 45px rgba(30, 24, 17, 0.14);
  }

  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: grid; }

  .site-nav > a,
  .site-nav > .nav-models,
  .nav-logout,
  .nav-logout button {
    width: 100%;
  }

  .site-nav > a,
  .nav-logout button,
  .nav-models summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    font-size: 0.88rem;
  }

  .site-nav > a:hover,
  .nav-logout button:hover,
  .nav-models summary:hover { background: rgba(18, 17, 15, 0.05); }

  .nav-model-menu {
    position: static;
    width: 100%;
    margin: 2px 0 6px;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: rgba(18, 17, 15, 0.035);
    box-shadow: none;
  }

  .site-nav .nav-model-menu a { min-height: 42px; }

  main { padding-top: 28px; padding-bottom: 58px; }

  /* Homepage hero */
  .home-story-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 0;
  }

  .home-story-copy {
    min-height: 390px;
    padding: 24px 0 30px;
    overflow: hidden;
    border-radius: 22px;
  }

  .home-story-copy-inner {
    width: 100%;
    max-width: 650px;
    padding: 0 22px;
  }

  .home-story-title,
  .home-story-copy h1 {
    max-width: 650px;
    margin: 18px 0 17px;
    font-size: clamp(3rem, 8vw, 4.4rem);
    line-height: 0.96;
  }

  .home-story-title span { white-space: normal; }
  .home-story-copy .hero-copy { max-width: 600px; font-size: 1rem; line-height: 1.62; }

  .home-story-ghost {
    inset: -30px -60px -30px -45px;
    opacity: 0.22;
    background-position: center 48%;
    background-size: cover;
    -webkit-mask-image: radial-gradient(ellipse 82% 76% at 20% 50%, #000 0%, rgba(0,0,0,.86) 43%, rgba(0,0,0,.38) 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 82% 76% at 20% 50%, #000 0%, rgba(0,0,0,.86) 43%, rgba(0,0,0,.38) 70%, transparent 100%);
  }

  .home-story-hero .decoder-shell {
    width: 100%;
    max-width: none;
    padding: 24px;
    border-radius: 24px;
  }

  /* How-it-works becomes a readable vertical sequence. */
  .story-steps {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0;
  }

  .story-steps article,
  .story-steps article:first-child,
  .story-steps article:last-child {
    grid-template-columns: 52px 32px minmax(0, 1fr);
    min-height: 0;
    padding: 22px 4px;
    border-left: 0;
  }

  .story-steps article + article { border-top: 1px solid var(--line); }
  .story-step-number,
  .story-steps article:first-child .story-step-number { margin-top: 4px; }

  /* Vehicle discovery cards */
  .story-heading-row {
    align-items: flex-end;
    gap: 16px;
  }

  .story-heading-row h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .story-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-vehicle-card { grid-template-columns: 1fr; }
  .story-vehicle-image { min-height: 220px; }
  .story-vehicle-image img { min-height: 220px; }
  .story-vehicle-copy { min-height: 190px; }

  .home-claim-band {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
  }

  .home-claim-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  /* Vehicle page hero */
  .vehicle-back-link { margin-bottom: 20px; }

  .vehicle-story-hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
  }

  .vehicle-story-hero-copy {
    width: 100%;
    min-height: 0;
    padding: 8px 0 22px;
  }

  .vehicle-story-hero h1 {
    max-width: 100%;
    margin: 16px 0 7px;
    font-size: clamp(3.15rem, 9vw, 5rem);
    line-height: 0.96;
    white-space: normal;
    overflow-wrap: normal;
  }

  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .vehicle-story-hero-photo img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }

  .vehicle-story-hero-placeholder { aspect-ratio: 16 / 9; }

  .vehicle-claim-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
    padding: 22px;
    border-radius: 20px;
  }

  .vehicle-claim-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .vehicle-claim-benefits span { font-size: 0.78rem; }
  .vehicle-claim-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Interleave vehicle sections in a useful mobile/tablet order. */
  .vehicle-story-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }

  .vehicle-story-main,
  .vehicle-story-side { display: contents; }
  .vehicle-facts-card { order: 1; }
  .vehicle-photo-feature { order: 2; }
  .vehicle-ownership-card { order: 3; }
  .vehicle-garage-nudge { order: 4; }
  .vehicle-activity-card { order: 5; }

  .vehicle-story-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-story-facts-grid .data-cell { min-height: 92px; padding: 18px; }
  .vehicle-story-facts-grid .data-cell:nth-child(2n) { border-right: 0; }
  .vehicle-feature-photo img { aspect-ratio: 16 / 10; }

  .compact-ownership-timeline .ownership-entry {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .ownership-context {
    grid-column: 2;
    margin-top: 10px;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .vehicle-garage-nudge {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .vehicle-garage-actions {
    grid-column: 2;
    justify-items: start;
  }

  .vehicle-story-notes,
  .vehicle-notes {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
    padding: 26px 0 0;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 54px;
    padding-bottom: 26px;
  }

  .footer-seo-links { justify-content: flex-start; max-width: none; }
}

/* Phone layout */
@media (max-width: 620px) {
  .site-header,
  main { width: calc(100% - 24px); }

  main { padding-top: 20px; padding-bottom: 44px; }
  .brand-name { font-size: 0.75rem; letter-spacing: 0.08em; }
  .nav-toggle-label { display: none; }
  .nav-toggle { width: 44px; justify-content: center; padding: 8px; }

  .eyebrow {
    max-width: 100%;
    padding: 6px 9px;
    font-size: 0.59rem;
    line-height: 1.3;
  }

  .home-story-copy {
    min-height: 390px;
    margin: 0 -12px;
    padding: 26px 12px 28px;
    border-radius: 0;
  }

  .home-story-copy-inner { padding: 0 12px; }
  .home-story-title,
  .home-story-copy h1 {
    margin: 16px 0 16px;
    font-size: clamp(2.65rem, 13.5vw, 3.55rem);
    line-height: 0.94;
  }

  .home-story-copy .hero-copy { font-size: 0.94rem; line-height: 1.58; }
  .home-story-ghost {
    inset: -20px -75px -20px -60px;
    opacity: 0.18;
    background-position: 36% center;
    -webkit-mask-image: radial-gradient(ellipse 86% 72% at 24% 50%, #000 0%, rgba(0,0,0,.82) 42%, rgba(0,0,0,.3) 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 86% 72% at 24% 50%, #000 0%, rgba(0,0,0,.82) 42%, rgba(0,0,0,.3) 72%, transparent 100%);
  }

  .home-story-hero .decoder-shell { padding: 20px; border-radius: 20px; }
  .decoder-title { align-items: flex-start; margin-bottom: 18px; }
  .decoder-title > span { display: none; }
  .decoder-title h2 { font-size: 1.28rem; }
  .input-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .vin-input { min-height: 52px; padding: 14px; font-size: 1rem; }
  .decode-button { min-height: 50px; width: 100%; }
  .example-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .home-story-hero .example-button { width: 100%; min-height: 38px; text-align: left; }

  .story-steps article,
  .story-steps article:first-child,
  .story-steps article:last-child {
    grid-template-columns: 44px 26px minmax(0, 1fr);
    gap: 9px;
    padding: 19px 0;
  }

  .story-step-icon { width: 42px; height: 42px; }
  .story-steps h2 { font-size: 1.2rem; }
  .story-steps p { font-size: 0.84rem; line-height: 1.52; }

  .story-heading-row {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 15px;
  }

  .story-heading-row h2 { font-size: 2rem; line-height: 1.04; }
  .story-heading-row .secondary-button { width: 100%; justify-content: center; }
  .story-vehicle-grid { grid-template-columns: 1fr; gap: 14px; }
  .story-vehicle-card { grid-template-columns: 42% 58%; min-height: 190px; }
  .story-vehicle-image,
  .story-vehicle-image img { min-height: 190px; }
  .story-vehicle-copy { min-height: 190px; padding: 17px; }
  .story-vehicle-meta { gap: 8px; }
  .story-vehicle-meta time { font-size: 0.58rem; }
  .story-vehicle-copy h3 { font-size: 1rem; }
  .story-card-arrow { width: 38px; height: 38px; }

  .home-claim-band {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 17px;
  }

  .home-claim-icon { width: 44px; height: 44px; }
  .home-claim-band h2 { font-size: 1.15rem; line-height: 1.25; }
  .home-claim-band p { font-size: 0.82rem; line-height: 1.5; }
  .home-claim-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .home-claim-actions .form-button { width: 100%; }
  .home-claim-actions .text-link { margin-top: 2px; text-align: center; }

  .result-hero { flex-direction: column; }
  .result-actions { width: 100%; justify-items: stretch; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid .data-cell { border-right: 0; }

  .vehicle-back-link { margin-bottom: 16px; }
  .vehicle-story-hero-copy { padding: 4px 0 18px; }
  .vehicle-story-hero h1 {
    margin-top: 14px;
    font-size: clamp(2.7rem, 13vw, 3.65rem);
    line-height: 0.95;
  }
  .vehicle-vin { font-size: 0.86rem; }
  .vehicle-story-line { margin-top: 17px; font-size: 0.88rem; }
  .vehicle-story-hero-photo img { aspect-ratio: 4 / 3; }

  .vehicle-claim-panel { padding: 18px; }
  .vehicle-claim-intro { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .vehicle-claim-heart { width: 42px; height: 42px; }
  .vehicle-claim-intro h2 { font-size: 1.2rem; }
  .vehicle-claim-benefits { grid-template-columns: 1fr; gap: 10px; }
  .vehicle-claim-actions { grid-template-columns: 1fr; }
  .vehicle-claim-actions .form-button,
  .vehicle-claim-actions .secondary-button { width: 100%; }

  .vehicle-story-card { border-radius: 18px; }
  .vehicle-story-card-heading { padding: 18px 16px 0; }
  .vehicle-story-card-heading h2 { font-size: 1.3rem; }
  .vehicle-story-facts-grid { grid-template-columns: 1fr; }
  .vehicle-story-facts-grid .data-cell { min-height: 0; padding: 16px; border-right: 0; }
  .data-label { margin-bottom: 6px; }
  .data-value { font-size: 0.96rem; }

  .vehicle-feature-photo { width: calc(100% - 24px); margin: 13px 12px 0; }
  .vehicle-feature-photo img { aspect-ratio: 4 / 3; }
  .vehicle-photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 7px 12px 0; }
  .vehicle-photo-credit { margin: 10px 13px 0; }

  .compact-ownership-timeline .ownership-entry {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 17px 0;
  }
  .ownership-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ownership-context { grid-column: 1 / -1; padding-top: 12px; }

  .vehicle-garage-nudge { grid-template-columns: 42px minmax(0, 1fr); padding: 18px; }
  .vehicle-garage-actions { grid-column: 1 / -1; justify-items: stretch; }
  .vehicle-garage-actions .form-button { width: 100%; }
  .vehicle-garage-actions .text-link { text-align: center; }

  .vehicle-activity-card .lookup-table-wrap,
  .vehicle-activity-card .vehicle-activity-details { margin-right: 14px; margin-left: 14px; }
  .lookup-table td { grid-template-columns: 92px minmax(0, 1fr); }

  .vehicle-story-notes h2 { font-size: 1.55rem; }
  .vehicle-story-notes .prose { font-size: 0.9rem; line-height: 1.65; }

  .site-footer-copy,
  .footer-seo-links { font-size: 0.72rem; }
  .footer-seo-links { display: grid; gap: 9px; }

  /* Generic application pages */
  .panel-form,
  .dashboard-panel,
  .moderation-card,
  .moderation-photo-card { padding: 17px; border-radius: 17px; }
  .section-heading-row { align-items: flex-start; }
  .section-heading-row h2 { font-size: 1.65rem; }
  .button-row { display: grid; grid-template-columns: 1fr; width: 100%; }
  .button-row > * { width: 100%; }
}

@media (max-width: 380px) {
  .home-story-title,
  .home-story-copy h1 { font-size: 2.5rem; }
  .story-vehicle-card { grid-template-columns: 1fr; }
  .story-vehicle-image,
  .story-vehicle-image img { min-height: 200px; }
  .story-vehicle-copy { min-height: 175px; }
  .vehicle-story-hero h1 { font-size: 2.55rem; }
}

/* =========================================================
   v3.17 — mobile VIN details disclosure
   ========================================================= */
.vehicle-mobile-facts { display: none; }

@media (max-width: 620px) {
  .vehicle-desktop-facts { display: none; }
  .vehicle-mobile-facts { display: block; }

  .vehicle-mobile-facts-primary,
  .vehicle-mobile-facts-expanded {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vehicle-mobile-facts-primary .data-cell,
  .vehicle-mobile-facts-expanded .data-cell {
    min-height: 0;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vehicle-mobile-facts-primary .data-cell:last-child {
    border-bottom: 0;
  }

  .vehicle-facts-details {
    border-top: 1px solid var(--line);
  }

  .vehicle-facts-details summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    color: var(--accent-dark);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    list-style: none;
  }

  .vehicle-facts-details summary::-webkit-details-marker { display: none; }

  .vehicle-facts-summary-icon {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .vehicle-facts-summary-icon::before,
  .vehicle-facts-summary-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .vehicle-facts-summary-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .vehicle-facts-details[open] .vehicle-facts-summary-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .vehicle-mobile-facts-expanded {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.22);
  }

  .vehicle-mobile-facts-expanded .data-cell:last-child {
    border-bottom: 0;
  }
}

/* =========================================================
   v3.20 — stable vehicle hero composition
   Restores the desktop mockup composition and applies the image fade
   without changing the hero's grid or document flow.
   ========================================================= */

/* Mobile homepage headline: remove the deliberate desktop line breaks. */
@media (max-width: 620px) {
  .home-story-title span {
    display: inline;
    white-space: normal;
  }

  .home-story-title span:not(:last-child)::after {
    content: " ";
  }

  .home-story-title,
  .home-story-copy h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 12.2vw, 3.3rem);
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

/* Desktop/tablet-wide vehicle hero. The photograph is an absolutely
   positioned visual layer on the right, so fading it can never push it
   below the decoded identity copy. */
@media (min-width: 941px) {
  .vehicle-story-hero {
    position: relative;
    display: block;
    min-height: 330px;
    overflow: hidden;
    border-radius: 0;
  }

  .vehicle-story-hero-copy {
    position: relative;
    z-index: 3;
    width: 58%;
    min-height: 330px;
    padding: 28px 0 30px;
  }

  .vehicle-story-hero-copy::after {
    inset: -40px -250px -40px -100vw;
    background: linear-gradient(
      90deg,
      var(--paper) 0%,
      var(--paper) 72%,
      rgba(249, 245, 237, 0.94) 80%,
      rgba(249, 245, 237, 0.54) 91%,
      transparent 100%
    );
  }

  .vehicle-story-hero h1 {
    position: relative;
    z-index: 4;
    max-width: 980px;
    margin: 14px 0 5px;
    font-size: clamp(3.5rem, 5.25vw, 5.45rem);
    line-height: 0.95;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 62%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    isolation: isolate;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .vehicle-story-hero-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    transform: none;
  }

  .vehicle-story-hero-photo::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: -1px;
    pointer-events: none;
    background:
      linear-gradient(
        90deg,
        var(--paper) 0%,
        rgba(249, 245, 237, 0.98) 7%,
        rgba(249, 245, 237, 0.72) 16%,
        rgba(249, 245, 237, 0.24) 29%,
        transparent 43%,
        transparent 91%,
        rgba(249, 245, 237, 0.34) 97%,
        var(--paper) 100%
      ),
      linear-gradient(
        180deg,
        var(--paper) 0%,
        rgba(249, 245, 237, 0.62) 6%,
        rgba(249, 245, 237, 0.14) 15%,
        transparent 24%,
        transparent 78%,
        rgba(249, 245, 237, 0.18) 88%,
        rgba(249, 245, 237, 0.68) 96%,
        var(--paper) 100%
      );
  }

  .vehicle-story-hero-placeholder {
    display: grid;
    place-items: center;
  }
}

/* Tighter desktops keep the same side-by-side composition, but allow long
   model names to wrap rather than overlapping the navigation or viewport. */
@media (min-width: 941px) and (max-width: 1240px) {
  .vehicle-story-hero-copy { width: 62%; }
  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder { width: 58%; }
  .vehicle-story-hero h1 {
    font-size: clamp(3.15rem, 5.8vw, 4.65rem);
    white-space: normal;
  }
}

/* Tablet and phone: deliberately stacked, with a contained photograph and
   an overlay fade that does not modify its width, margin or grid placement. */
@media (max-width: 940px) {
  .vehicle-story-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
  }

  .vehicle-story-hero-copy {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 0;
    padding: 8px 0 22px;
  }

  .vehicle-story-hero-copy::after {
    inset: -20px -24px -55px -24px;
    background: linear-gradient(
      180deg,
      var(--paper) 0%,
      rgba(249, 245, 237, 0.98) 72%,
      rgba(249, 245, 237, 0.58) 88%,
      transparent 100%
    );
  }

  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder {
    position: relative;
    z-index: 1;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    isolation: isolate;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .vehicle-story-hero-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    transform: none;
  }

  .vehicle-story-hero-photo::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: -1px;
    pointer-events: none;
    background:
      linear-gradient(90deg, var(--paper) 0%, rgba(249,245,237,.45) 7%, transparent 18%, transparent 82%, rgba(249,245,237,.45) 93%, var(--paper) 100%),
      linear-gradient(180deg, var(--paper) 0%, rgba(249,245,237,.55) 8%, transparent 21%, transparent 79%, rgba(249,245,237,.55) 92%, var(--paper) 100%);
  }
}

@media (max-width: 620px) {
  .vehicle-story-hero-photo,
  .vehicle-story-hero-placeholder {
    border-radius: 16px;
  }

  .vehicle-story-hero-photo img {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   PetrolJunky v3.21 — match the vehicle hero fade to the homepage treatment
   --------------------------------------------------------------------------
   This override changes only the visual alpha mask. It does not alter the
   hero's width, height, position, grid behavior or responsive stacking. */
.vehicle-story-hero-photo::after {
  display: none;
}

@media (min-width: 941px) {
  .vehicle-story-hero-photo {
    -webkit-mask-image: radial-gradient(
      ellipse 96% 78% at 64% 50%,
      #000 0%,
      rgba(0, 0, 0, 0.98) 42%,
      rgba(0, 0, 0, 0.78) 61%,
      rgba(0, 0, 0, 0.34) 80%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 96% 78% at 64% 50%,
      #000 0%,
      rgba(0, 0, 0, 0.98) 42%,
      rgba(0, 0, 0, 0.78) 61%,
      rgba(0, 0, 0, 0.34) 80%,
      transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

@media (max-width: 940px) {
  .vehicle-story-hero-photo {
    -webkit-mask-image: radial-gradient(
      ellipse 90% 82% at 50% 50%,
      #000 0%,
      rgba(0, 0, 0, 0.98) 43%,
      rgba(0, 0, 0, 0.72) 64%,
      rgba(0, 0, 0, 0.28) 82%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 90% 82% at 50% 50%,
      #000 0%,
      rgba(0, 0, 0, 0.98) 43%,
      rgba(0, 0, 0, 0.72) 64%,
      rgba(0, 0, 0, 0.28) 82%,
      transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

/* v3.23 community engagement, admin tools and per-page social SEO */
.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 34px;
}
.admin-hub-grid > a {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.8);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.admin-hub-grid > a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.admin-hub-grid strong { display: block; margin: 12px 0 7px; font-size: 2rem; line-height: 1; }
.admin-hub-grid p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.admin-page-hero { align-items: flex-start; }
.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.32fr) auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.76);
}
.admin-filter-bar .form-button { margin: 0; min-height: 48px; }
.admin-account-list, .admin-comment-list { display: grid; gap: 14px; }
.admin-account-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1fr) minmax(340px, 1.15fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.admin-account-identity h3 { margin: 0 0 5px; }
.admin-account-identity p { margin: 0 0 5px; color: var(--muted); overflow-wrap: anywhere; }
.admin-account-identity small { color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.admin-account-activity { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.admin-account-activity span { padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 0.65rem; text-align: center; }
.admin-account-activity strong { display: block; color: var(--ink); font-size: 1rem; }
.admin-account-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; align-items: end; }
.admin-account-controls .secondary-button { min-height: 46px; }
.admin-comment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.admin-comment-vehicle { margin: 8px 0 12px; color: var(--muted); font-size: 0.76rem; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.comment-meta time, .comment-meta small { color: var(--muted); font-size: 0.68rem; }
.comment-body { color: var(--ink); font-size: 0.9rem; line-height: 1.65; overflow-wrap: anywhere; }
.status-hidden { border-color: rgba(186, 122, 25, 0.34); color: #8a5a14; background: rgba(186, 122, 25, 0.09); }
.status-deleted { border-color: rgba(216, 77, 49, 0.25); color: var(--accent-dark); background: rgba(216, 77, 49, 0.07); }

.seo-editor-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 28px 0;
}
.seo-page-picker-panel, .seo-selected-page-editor, .seo-social-editor, .seo-global-settings {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.82);
}
.seo-page-picker-panel { position: sticky; top: 20px; padding: 20px; }
.seo-admin-quick-links { display: grid; gap: 9px; margin-top: 18px; }
.seo-admin-quick-links a { color: var(--accent-dark); font-size: 0.76rem; font-weight: 850; }
.seo-selected-page-editor { padding: 22px; }
.seo-selected-page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 18px; }
.seo-selected-page-heading h2 { margin: 7px 0 5px; }
.seo-selected-page-heading code { color: var(--muted); font-size: 0.72rem; overflow-wrap: anywhere; }
.seo-single-page-form { box-shadow: none; }
.seo-social-editor { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1fr); gap: 22px; margin-top: 20px; padding: 22px; }
.seo-social-copy h2 { margin: 7px 0; }
.seo-social-copy p { color: var(--muted); line-height: 1.6; }
.seo-social-copy form { display: grid; gap: 10px; margin-top: 14px; }
.seo-social-copy .form-button { margin: 0; }
.file-input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; }
.seo-social-preview { min-width: 0; }
.seo-social-preview > img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.seo-social-preview > div { padding: 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: #fff; }
.seo-social-preview strong { display: block; margin-bottom: 5px; }
.seo-social-preview p { margin: 0 0 7px; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.seo-social-preview small { color: var(--muted); font-size: 0.62rem; }
.seo-global-settings { margin-bottom: 32px; overflow: hidden; }
.seo-global-settings > summary { padding: 18px 22px; cursor: pointer; font-weight: 900; }
.seo-global-settings .panel-form { margin: 0; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
.danger-text-button { color: var(--accent-dark); }

.vehicle-community-section {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.84);
}
.vehicle-community-heading { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.vehicle-community-heading h2 { margin: 7px 0 6px; }
.vehicle-community-heading p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.vehicle-like-form { margin: 0; }
.vehicle-like-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.vehicle-like-button.is-liked { border-color: rgba(47, 111, 78, 0.48); background: rgba(47, 111, 78, 0.10); color: var(--success); }
.vehicle-like-button:disabled { opacity: 0.6; cursor: wait; }
.vehicle-like-count { min-width: 25px; padding: 4px 7px; border-radius: 999px; background: rgba(18, 17, 15, 0.07); font-size: 0.7rem; text-align: center; }
.vehicle-like-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.vehicle-like-button.is-liked .vehicle-like-icon { fill: rgba(47, 111, 78, 0.16); }
.vehicle-like-button.is-liked .vehicle-like-count { background: rgba(47, 111, 78, 0.14); color: var(--success); }
.vehicle-like-button.is-busy { cursor: wait; }
.community-ajax-status {
  margin: 16px 0 0;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}
.community-ajax-status.is-success { border-color: rgba(47, 111, 78, 0.28); background: rgba(47, 111, 78, 0.08); color: var(--success); }
.community-ajax-status.is-error { border-color: rgba(216, 77, 49, 0.30); background: rgba(216, 77, 49, 0.08); color: var(--accent-dark); }
[data-ajax-community-form][aria-busy="true"] { opacity: 0.72; }
[data-comments-content] { min-height: 38px; }

.vehicle-comment-layout { display: grid; grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.vehicle-comment-form-panel { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.38); }
.vehicle-comment-form-panel h3, .vehicle-comments-panel h3 { margin: 0 0 12px; }
.vehicle-comment-form-panel .form-button { margin-top: 12px; }
.vehicle-comments-panel { min-width: 0; }
.vehicle-comment-list { display: grid; gap: 13px; }
.vehicle-comment { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); }
.vehicle-comment:first-child { border-top: 0; padding-top: 0; }
.vehicle-comment-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 900; }
.comment-delete-form { margin-top: 7px; }

.liked-vehicles-section { margin-top: 28px; }
.garage-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1120px) {
  .admin-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-account-card { grid-template-columns: 1fr; }
  .admin-account-controls { grid-template-columns: 1fr 1fr auto; }
  .seo-editor-shell { grid-template-columns: 1fr; }
  .seo-page-picker-panel { position: static; }
}

@media (max-width: 860px) {
  .admin-comment-card, .seo-social-editor, .vehicle-comment-layout { grid-template-columns: 1fr; }
  .admin-filter-bar { grid-template-columns: 1fr 1fr; }
  .admin-filter-bar .form-button { grid-column: 1 / -1; }
  .vehicle-community-heading { align-items: flex-start; flex-direction: column; }
  .vehicle-like-button { width: 100%; }
}

@media (max-width: 620px) {
  .admin-hub-grid, .admin-account-activity, .garage-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-filter-bar, .admin-account-controls { grid-template-columns: 1fr; }
  .admin-filter-bar .form-button { grid-column: auto; }
  .seo-selected-page-editor, .seo-page-picker-panel, .vehicle-community-section { padding: 17px; }
  .seo-selected-page-heading { flex-direction: column; }
  .seo-selected-page-heading .secondary-button { width: 100%; }
  .seo-social-editor { padding: 17px; }
  .vehicle-comment { grid-template-columns: 36px 1fr; }
  .vehicle-comment-avatar { width: 36px; height: 36px; }
}

/* PetrolJunky v3.28: lightweight vehicle listings */
.vehicle-listing-panel-wrap { margin: 24px 0 34px; }
.vehicle-listing-panel,
.vehicle-listing-owner-cta {
  border: 1px solid rgba(18, 17, 15, 0.14);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 16px 42px rgba(30, 24, 17, 0.08);
}
.vehicle-listing-panel { padding: 26px 28px; }
.vehicle-listing-owner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(47, 111, 78, 0.08), rgba(255, 250, 241, 0.96));
}
.vehicle-listing-owner-cta h2 { margin: 8px 0 6px; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.vehicle-listing-owner-cta p { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.65; }
.vehicle-listing-owner-cta .form-button { margin: 0; white-space: nowrap; }
.vehicle-listing-heading,
.vehicle-listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.vehicle-listing-heading h2 { margin: 9px 0 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; }
.vehicle-listing-status,
.vehicle-card-sale-badge,
.listing-card-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--success);
}
.vehicle-listing-panel.status-pending .vehicle-listing-status,
.vehicle-card-sale-badge.status-pending,
.listing-card-status.status-pending { background: #a56b18; }
.vehicle-listing-panel.status-sold .vehicle-listing-status,
.listing-card-status.status-sold { background: var(--ink); }
.vehicle-listing-panel.status-removed .vehicle-listing-status { background: var(--muted); }
.vehicle-listing-mileage { font-size: 1rem; font-weight: 800; color: var(--muted); }
.vehicle-listing-details { max-width: 880px; margin: 22px 0; color: #3f3b35; line-height: 1.75; }
.vehicle-listing-footer { border-top: 1px solid var(--line); padding-top: 18px; }
.vehicle-listing-footer p { margin: 0; color: var(--muted); }
.vehicle-listing-footer .button-row { margin: 0; }
.vehicle-listing-footer .form-button,
.vehicle-listing-footer .secondary-button { margin: 0; }
.vehicle-listing-private-note { margin: 16px 0 0; color: var(--muted); font-size: 0.86rem; }

.pj-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  overflow: visible;
}
.pj-dialog::backdrop { background: rgba(18, 17, 15, 0.72); backdrop-filter: blur(4px); }
.pj-dialog-card {
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}
body.pj-dialog-open { overflow: hidden; }
.pj-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.pj-dialog-heading h2 { margin: 8px 0 0; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1; }
.pj-dialog-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.pj-dialog-close:hover { background: var(--ink); color: var(--paper); }
.pj-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.pj-dialog-actions .form-button,
.pj-dialog-actions .secondary-button { margin: 0; }
.listing-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.listing-form-grid > label { min-width: 0; }
.input-prefix-wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.input-prefix-wrap > span { padding-left: 14px; color: var(--muted); font-weight: 800; }
.input-prefix-wrap .text-input { border: 0; box-shadow: none; }
.listing-checkbox { display: flex; align-items: center; gap: 9px; min-height: 48px; padding-top: 25px; font-weight: 800; }
.listing-checkbox input,
.listing-contact-options input,
.browse-sale-toggle input { width: 18px; height: 18px; accent-color: var(--success); }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
.listing-contact-options { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.listing-contact-options legend { padding: 0 7px; font-weight: 900; letter-spacing: 0.02em; }
.listing-contact-options label { display: flex; align-items: center; gap: 9px; margin: 10px 0; }
.listing-contact-fields { margin-top: 12px; }
.listing-form-status { margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; font-weight: 750; line-height: 1.45; }
.listing-form-status.is-success { color: var(--success); background: rgba(47, 111, 78, 0.1); }
.listing-form-status.is-error { color: var(--accent-dark); background: rgba(216, 77, 49, 0.1); }
.listing-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.seller-direct-contact { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 10px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; background: #fff; }
.seller-direct-contact span { color: var(--muted); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.seller-direct-contact strong { text-align: right; overflow-wrap: anywhere; }
.seller-contact-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

.browse-sale-toggle { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.58); font-weight: 850; }
.vehicle-card-image { position: relative; }
.vehicle-card-sale-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.vehicle-card-sale-price { color: var(--success); font-weight: 900; }

.listing-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 250, 241, 0.94); box-shadow: 0 12px 34px rgba(30,24,17,.07); }
.listing-card-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #ded7cb; text-decoration: none; }
.listing-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.listing-card:hover .listing-card-image img { transform: scale(1.02); }
.listing-card-image > span:not(.listing-card-status) { font-weight: 900; font-size: 1.8rem; }
.listing-card-status { position: absolute; top: 13px; left: 13px; }
.listing-card-copy { padding: 20px; }
.listing-card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.listing-card-price-row strong { font-size: 1.65rem; }
.listing-card-price-row span { color: var(--muted); font-size: .82rem; font-weight: 750; text-align: right; }
.listing-card h3 { margin: 13px 0 4px; font-size: 1.24rem; }
.listing-card h3 a { text-decoration: none; }
.listing-card-details { color: var(--muted); line-height: 1.65; font-size: .88rem; }
.listing-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); font-size: .78rem; }
.listing-card-footer .text-link { margin: 0; white-space: nowrap; }
.for-sale-hero .button-row { margin-top: 22px; }
.for-sale-hero .form-button { margin: 0; }

.admin-listing-counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0; }
.admin-listing-counts > div { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,250,241,.8); }
.admin-listing-counts strong { display: block; font-size: 1.6rem; }
.admin-listing-counts span { color: var(--muted); font-size: .76rem; font-weight: 800; }
.admin-listing-list { display: grid; gap: 15px; }
.admin-listing-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .38fr); gap: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.admin-listing-card h3 { margin: 10px 0 7px; }
.admin-listing-card .admin-account-controls { align-content: start; }
.status-for_sale { border-color: rgba(47,111,78,.3); color: var(--success); background: rgba(47,111,78,.08); }
.status-sold { border-color: rgba(18,17,15,.24); color: var(--ink); background: rgba(18,17,15,.06); }
.status-removed { border-color: rgba(110,105,95,.28); color: var(--muted); background: rgba(110,105,95,.08); }
.account-listing-row .record-actions { align-items: flex-end; }

@media (max-width: 940px) {
  .listing-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-listing-counts { grid-template-columns: repeat(3, 1fr); }
  .admin-listing-card { grid-template-columns: 1fr; }
  .browse-filters .browse-sale-toggle { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .vehicle-listing-owner-cta,
  .vehicle-listing-heading,
  .vehicle-listing-footer,
  .listing-card-price-row,
  .listing-card-footer { align-items: stretch; flex-direction: column; }
  .vehicle-listing-owner-cta .form-button,
  .vehicle-listing-footer .button-row,
  .vehicle-listing-footer .form-button,
  .vehicle-listing-footer .secondary-button { width: 100%; }
  .vehicle-listing-footer .button-row { display: grid; }
  .listing-form-grid,
  .listing-card-grid { grid-template-columns: 1fr; }
  .listing-checkbox { padding-top: 0; }
  .pj-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .pj-dialog-card { padding: 20px 16px; max-height: calc(100vh - 16px); border-radius: 18px; }
  .pj-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .pj-dialog-actions button { width: 100%; }
  .admin-listing-counts { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   PetrolJunky v3.29 — requested desktop vehicle hero image positioning/fade
   -------------------------------------------------------------------------- */
@media (min-width: 941px) {
  .vehicle-story-hero-photo img {
    object-position: center;
    transform: none;
    top: -28px;
    bottom: -28px;
    background-position: center 52%;
    opacity: .3;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 8%, rgba(0, 0, 0, 0.8) 16%, #000 26%, #000 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 7%, rgba(0, 0, 0, 0.8) 14%, #000 24%, #000 76%, rgba(0, 0, 0, 0.8) 86%, rgba(0, 0, 0, 0.35) 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 8%, rgba(0, 0, 0, 0.8) 16%, #000 26%, #000 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 7%, rgba(0, 0, 0, 0.8) 14%, #000 24%, #000 76%, rgba(0, 0, 0, 0.8) 86%, rgba(0, 0, 0, 0.35) 93%, transparent 100%);
    mask-composite: intersect;
  }
}

/* v3.30 Public Registry / Private Garage */
.visibility-choice-fieldset,
.claim-visibility-panel {
  border: 1px solid rgba(23, 21, 17, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.72);
}

.claim-visibility-panel {
  padding: clamp(20px, 3vw, 32px);
  margin: 0 0 24px;
}

.claim-visibility-heading,
.claim-visibility-actions,
.visibility-status-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.claim-visibility-heading {
  align-items: flex-start;
  margin-bottom: 20px;
}

.claim-visibility-heading h2 {
  margin: 4px 0 0;
}

.visibility-status-badges {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.visibility-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.visibility-choice-card {
  display: block;
  cursor: pointer;
}

.visibility-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visibility-choice-card > span {
  display: grid;
  gap: 7px;
  min-height: 142px;
  padding: 20px;
  border: 1px solid rgba(23, 21, 17, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.42);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.visibility-choice-card strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.visibility-choice-card small,
.profile-visibility-option small {
  color: var(--muted, #625d55);
  line-height: 1.55;
}

.visibility-choice-card input:checked + span {
  border-color: var(--accent, #dc4d2f);
  background: rgba(220, 77, 47, 0.07);
  box-shadow: 0 0 0 3px rgba(220, 77, 47, 0.09);
}

.visibility-choice-card input:focus-visible + span {
  outline: 3px solid rgba(220, 77, 47, 0.22);
  outline-offset: 3px;
}

.profile-visibility-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid rgba(23, 21, 17, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.38);
}

.profile-visibility-option > span {
  display: grid;
  gap: 4px;
}

.profile-visibility-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent, #dc4d2f);
}

.profile-visibility-option.is-disabled {
  opacity: 0.52;
}

.privacy-disclosure,
.private-vehicle-notice {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 4px solid #b78331;
  border-radius: 0 12px 12px 0;
  background: rgba(183, 131, 49, 0.09);
}

.privacy-disclosure strong,
.private-vehicle-notice strong {
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.privacy-disclosure p,
.private-vehicle-notice p {
  margin: 0;
  color: var(--muted, #625d55);
  line-height: 1.6;
}

.claim-visibility-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.claim-visibility-actions .community-ajax-status {
  margin: 0;
}

.status-public {
  color: #236c4b;
  border-color: rgba(35, 108, 75, 0.3);
  background: rgba(35, 108, 75, 0.09);
}

.status-private {
  color: #725019;
  border-color: rgba(114, 80, 25, 0.28);
  background: rgba(183, 131, 49, 0.1);
}

.status-neutral {
  color: #625d55;
  border-color: rgba(98, 93, 85, 0.22);
  background: rgba(98, 93, 85, 0.07);
}

.registry-privacy-note {
  max-width: 680px;
  margin-top: 14px;
  color: var(--muted, #625d55);
  font-size: 0.94rem;
  line-height: 1.55;
}

.registry-privacy-note strong {
  color: var(--ink, #171511);
}

.registry-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.registry-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(23, 21, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.62);
}

.registry-stat strong {
  font-size: 1.05rem;
}

.public-registry-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #9d3824;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-registry-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #dc4d2f);
}

.private-record-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

@media (max-width: 760px) {
  .visibility-choice-grid {
    grid-template-columns: 1fr;
  }

  .visibility-choice-card > span {
    min-height: 0;
  }

  .claim-visibility-heading,
  .claim-visibility-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .visibility-status-badges {
    justify-content: flex-start;
  }
}

/* v3.30 — non-linked gallery credits for private/anonymous contributors. */
.gallery-modal-copy a.is-static {
  color: inherit;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}


/* v3.34 DB-driven VIN Decoder & Registry SEO pages */
.decoder-page-card-grid,
.decoder-make-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.decoder-page-card,
.decoder-make-links a {
  display: block;
  padding: 22px;
  border: 1px solid var(--line, #d8d0c4);
  border-radius: 18px;
  background: rgba(255,255,255,.48);
  color: inherit;
  text-decoration: none;
}
.decoder-page-card:hover,
.decoder-make-links a:hover { transform: translateY(-1px); }
.decoder-page-card h3 { margin: 6px 0 8px; }
.decoder-year-label { display: inline-block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .68; }
.decoder-seo-content { max-width: 900px; }
.decoder-seo-content h2 { margin-top: 34px; }
.decoder-seo-content p,
.decoder-seo-content li { line-height: 1.72; }
.decoder-parent-link-band { margin: 22px 0; }
.decoder-parent-link-band a { font-weight: 700; }
.decoder-seo-admin-layout { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.decoder-seo-picker,
.decoder-seo-admin-summary,
.decoder-admin-fieldset { padding: 22px; border: 1px solid var(--line, #d8d0c4); border-radius: 18px; background: rgba(255,255,255,.48); }

.decoder-seo-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 24px;
}
.decoder-seo-admin-summary > div { display: grid; gap: 3px; }
.decoder-seo-admin-summary strong { font-size: 1.45rem; }
.decoder-seo-admin-summary span { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; opacity: .68; }
.decoder-import-form { display: grid; gap: 12px; margin-top: 20px; }
.decoder-admin-checkboxes { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.decoder-admin-checkboxes label { display: inline-flex; align-items: center; gap: 7px; }
.decoder-seo-picker { position: sticky; top: 90px; }
.decoder-admin-fieldset { margin: 0 0 20px; }
.decoder-admin-fieldset legend { padding: 0 8px; font-weight: 800; }
.code-textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.decoder-import-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.decoder-seo-status-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .decoder-page-card-grid,
  .decoder-make-links { grid-template-columns: 1fr 1fr; }
  .decoder-seo-admin-layout { grid-template-columns: 1fr; }
  .decoder-seo-admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decoder-seo-picker { position: static; }
}
@media (max-width: 620px) {
  .decoder-page-card-grid,
  .decoder-make-links { grid-template-columns: 1fr; }
}

/* ==========================================================================\n   PetrolJunky v3.43 — Open Road\n   A clean public-facing system built around whitespace, natural photography,\n   strong typography and a single layout language across every public page.\n   ========================================================================== */
:root{
  --pj43-ivory:#f4f0e7;
  --pj43-paper:#fffdf9;
  --pj43-white:#ffffff;
  --pj43-ink:#16232d;
  --pj43-navy:#19364a;
  --pj43-navy-deep:#102633;
  --pj43-blue:#8fb7c5;
  --pj43-rust:#d45d43;
  --pj43-rust-dark:#b84b34;
  --pj43-moss:#52745d;
  --pj43-muted:#667078;
  --pj43-line:rgba(22,35,45,.13);
  --pj43-soft-line:rgba(22,35,45,.08);
  --pj43-shell:1460px;
  --pj43-read:1180px;
  --pj43-radius:24px;
  --pj43-shadow:0 20px 60px rgba(21,38,49,.10);
}

html{background:var(--pj43-ivory)}
body{background:var(--pj43-ivory);color:var(--pj43-ink);font-family:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.02em}
h1,h2,h3,h4{font-family:"Fraunces",Georgia,serif;letter-spacing:.02em;color:var(--pj43-ink)}
a{color:inherit}
img{max-width:100%}
.site-main-wide{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.pj43-shell{width:min(var(--pj43-shell),calc(100% - 72px));margin-inline:auto}
.layout-wide .flash-stack{width:min(var(--pj43-shell),calc(100% - 72px));margin:24px auto}

/* Header */
.pj43-header{position:sticky;top:0;z-index:70;background:rgba(244,240,231,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--pj43-soft-line)}
.pj43-header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:34px}
.pj43-brand{display:inline-flex;align-items:center;gap:13px;text-decoration:none;color:var(--pj43-ink)}
.pj43-brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--pj43-ink);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.05em;box-shadow:inset 0 0 0 4px var(--pj43-ink),inset 0 0 0 5px rgba(255,255,255,.55)}
.pj43-brand-copy{display:grid;gap:2px}.pj43-brand-copy strong{font-size:1.05rem;font-weight:800;letter-spacing:.045em}.pj43-brand-copy small{font-size:.54rem;font-weight:700;letter-spacing:.13em;color:var(--pj43-muted)}
.pj43-nav{display:flex;align-items:center;gap:26px}.pj43-nav>a,.pj43-nav summary,.pj43-nav .nav-logout button{font-size:.69rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--pj43-ink)}
.pj43-nav>a:hover,.pj43-nav summary:hover,.pj43-nav .nav-logout button:hover{color:var(--pj43-rust)}
.pj43-nav .is-primary{position:relative}.pj43-nav .is-primary:after{content:"";position:absolute;left:0;right:0;bottom:-9px;height:2px;background:var(--pj43-rust)}
.pj43-join{padding:10px 15px;border-radius:999px;background:var(--pj43-ink);color:#fff!important}
.pj43-makes-menu summary span{display:inline-grid;place-items:center;min-width:25px;height:25px;margin-left:5px;border-radius:999px;background:rgba(22,35,45,.08);font-size:.58rem}
.pj43-makes-panel{right:0;width:min(620px,calc(100vw - 48px));padding:0;border:0;border-radius:18px;background:var(--pj43-paper);box-shadow:var(--pj43-shadow);overflow:hidden}
.pj43-makes-panel .nav-model-menu-head{background:var(--pj43-navy-deep);padding:22px 24px}.pj43-makes-panel .nav-model-menu-head span{font-weight:800}.pj43-makes-panel .nav-model-group{display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:12px}.pj43-makes-panel .nav-model-group a{padding:12px;border-radius:10px;font-size:.72rem;font-weight:700}.pj43-makes-panel .nav-model-group a span{display:none}.pj43-makes-panel .nav-model-group a:hover{background:rgba(143,183,197,.15)}
.pj43-makes-panel .nav-model-browse{margin:0 12px 12px;padding:14px 16px;border-top:1px solid var(--pj43-soft-line);font-size:.7rem;font-weight:800}
.pj43-nav-toggle{border:0;background:transparent;color:var(--pj43-ink)}

/* Shared UI */
.pj43-overline{display:inline-flex;align-items:center;gap:10px;font-size:.64rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--pj43-rust)}
.pj43-overline:before{content:"";width:26px;height:2px;background:currentColor}.pj43-overline.light{color:#c7dce4}
.pj43-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border:1px solid transparent;border-radius:999px;text-decoration:none;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;transition:.18s ease}
.pj43-button.primary{background:var(--pj43-rust);color:#fff}.pj43-button.primary:hover{background:var(--pj43-rust-dark);transform:translateY(-1px)}
.pj43-button.ghost{border-color:rgba(22,35,45,.24);background:transparent;color:var(--pj43-ink)}.pj43-button.ghost:hover{border-color:var(--pj43-ink);background:var(--pj43-ink);color:#fff}
.pj43-button.light{background:#fff;color:var(--pj43-navy-deep)}
.pj43-actions{display:flex;flex-wrap:wrap;gap:11px}
.pj43-inline-link{font-size:.76rem;font-weight:800;letter-spacing:.04em;color:var(--pj43-ink);text-underline-offset:6px}.pj43-inline-link:hover{color:var(--pj43-rust)}
.pj43-section-lead{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.58fr);gap:80px;align-items:end;margin-bottom:54px}.pj43-section-lead h2{margin:12px 0 0;font-size:clamp(2.8rem,4.6vw,5.1rem);line-height:.98}.pj43-section-lead p{margin:0;color:var(--pj43-muted);font-size:.98rem;line-height:1.75}.pj43-section-lead.registry-lead>div:last-child{display:grid;gap:13px;align-self:end}

/* Home hero */
.pj43-home-hero{padding:68px 0 74px;background:linear-gradient(180deg,var(--pj43-ivory),#f8f5ee)}
.pj43-home-hero-grid{display:grid;grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);gap:86px;align-items:center}
.pj43-home-intro{padding:28px 0}.pj43-home-intro h1{margin:22px 0 16px;font-size:clamp(4.7rem,7.4vw,8.7rem);line-height:.84;font-weight:600;max-width:760px}.pj43-display-note{margin:0 0 24px;font-family:"Fraunces",serif;font-size:clamp(1.7rem,2.6vw,3rem);font-style:italic;color:var(--pj43-rust)}
.pj43-home-lead{max-width:650px;margin:0;color:var(--pj43-muted);font-size:1.06rem;line-height:1.82}.pj43-home-intro .pj43-actions{margin-top:30px}
.pj43-home-stats{display:flex;flex-wrap:wrap;gap:0;margin-top:52px;padding-top:22px;border-top:1px solid var(--pj43-line)}.pj43-home-stats>div{min-width:140px;padding-right:28px}.pj43-home-stats>div+div{padding-left:28px;border-left:1px solid var(--pj43-line)}.pj43-home-stats strong{display:block;font-size:1.25rem;font-weight:800}.pj43-home-stats span{display:block;margin-top:2px;color:var(--pj43-muted);font-size:.64rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.pj43-home-photo-wrap{position:relative;padding:24px 0 24px 28px}.pj43-home-photo{margin:0;padding:14px;border-radius:34px;background:#fff;box-shadow:var(--pj43-shadow);transform:rotate(.6deg)}.pj43-home-photo img{display:block;width:100%;height:auto;max-height:680px;object-fit:contain;border-radius:24px;background:#ece8df}.pj43-home-photo figcaption{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:16px 8px 4px;color:var(--pj43-muted);font-size:.66rem}.pj43-home-photo figcaption span{font-weight:800;letter-spacing:.1em}.pj43-home-photo figcaption strong{color:var(--pj43-ink);font-size:.76rem}
.pj43-home-photo-placeholder{min-height:560px;display:grid;place-items:center;border-radius:34px;background:var(--pj43-navy);color:rgba(255,255,255,.12);font-family:"Fraunces",serif;font-size:10rem}.pj43-route-lines{position:absolute;left:0;top:0;display:flex;gap:7px;height:120px}.pj43-route-lines i{width:5px;border-radius:99px}.pj43-route-lines i:first-child{background:var(--pj43-rust)}.pj43-route-lines i:last-child{background:var(--pj43-blue)}

/* Decoder band */
.pj43-decode-band{padding:44px 0;background:var(--pj43-navy-deep);color:#fff}.pj43-decode-band-inner{display:grid;grid-template-columns:340px minmax(0,1fr);gap:70px;align-items:center}.pj43-decode-copy h2{margin:10px 0 8px;color:#fff;font-size:2rem;line-height:1.1}.pj43-decode-copy p{margin:0;color:#b8c8d1;font-size:.86rem;line-height:1.65}
.pj43-decode-form-wrap .decoder-shell{display:grid;grid-template-columns:200px minmax(0,1fr);gap:22px;align-items:center;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.pj43-decode-form-wrap .decoder-shell:before{display:none}.pj43-decode-form-wrap .decoder-title{display:block;padding:0;border:0}.pj43-decode-form-wrap .decoder-overline{color:#92a9b7}.pj43-decode-form-wrap .decoder-title h2{margin:5px 0;color:#fff;font-family:"Manrope",sans-serif;font-size:1rem;font-weight:800}.pj43-decode-form-wrap .decoder-title>span:last-child{color:#8196a3;font-size:.62rem}.pj43-decode-form-wrap .vin-label{display:none}.pj43-decode-form-wrap .input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;overflow:hidden;border-radius:999px;background:#fff}.pj43-decode-form-wrap .vin-input{min-height:56px;border:0!important;border-radius:0!important;padding:14px 22px;background:#fff;color:var(--pj43-ink);font-size:.94rem;letter-spacing:.05em}.pj43-decode-form-wrap .vin-input:focus{box-shadow:inset 0 0 0 2px var(--pj43-blue)}.pj43-decode-form-wrap .decode-button{min-width:128px;border:0;border-radius:999px!important;margin:4px;background:var(--pj43-rust);color:#fff;font-size:.7rem;font-weight:800;text-transform:uppercase}.pj43-decode-form-wrap .decode-button:hover{background:var(--pj43-rust-dark);transform:none}.pj43-decode-form-wrap .form-help{color:#8299a6;font-size:.67rem}.pj43-decode-form-wrap .example-list{gap:6px}.pj43-decode-form-wrap .example-button{border-color:rgba(255,255,255,.16);border-radius:999px;padding:5px 9px;color:#c8d5dc;font-size:.6rem}.pj43-result-band{background:var(--pj43-paper)}.pj43-result-band .result-wrap{margin:0;padding:30px 0}

/* Make navigation */
.pj43-make-marquee{padding:20px 0;border-bottom:1px solid var(--pj43-soft-line);background:var(--pj43-paper)}.pj43-make-marquee-inner{display:grid;grid-template-columns:105px minmax(0,1fr) auto;gap:22px;align-items:center}.pj43-make-marquee-inner>span,.pj43-make-marquee-inner>a{font-size:.6rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.pj43-make-marquee nav{display:flex;flex-wrap:wrap;gap:5px 0}.pj43-make-marquee nav a{font-size:.68rem;font-weight:700;text-decoration:none}.pj43-make-marquee nav a:not(:last-child):after{content:"·";margin:0 9px;color:#a8aaa5}.pj43-make-marquee a:hover{color:var(--pj43-rust)}

/* Home process */
.pj43-home-how{padding:120px 0 128px;background:var(--pj43-paper)}.pj43-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:48px}.pj43-steps article{position:relative;padding-top:30px;border-top:1px solid var(--pj43-line)}.pj43-steps article>span{position:absolute;right:0;top:20px;font-family:"Fraunces",serif;font-size:3.3rem;font-style:italic;color:rgba(22,35,45,.09)}.pj43-steps h3{margin:0 0 10px;font-size:1.55rem}.pj43-steps p{margin:0;color:var(--pj43-muted);line-height:1.75;font-size:.9rem}

/* Registry cards - natural photos */
.pj43-home-registry{padding:116px 0 128px;background:var(--pj43-ivory)}
.story-vehicle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;background:transparent}.story-vehicle-card,.story-vehicle-card:first-child{display:flex;flex-direction:column;grid-column:auto;border:0;border-radius:20px;overflow:hidden;background:var(--pj43-paper);box-shadow:0 10px 34px rgba(20,37,47,.06)}.story-vehicle-card:first-child{grid-column:span 2}.story-vehicle-image,.story-vehicle-card:first-child .story-vehicle-image{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:auto;min-height:180px;background:#e9e6df;overflow:hidden}.story-vehicle-image img,.story-vehicle-card:first-child .story-vehicle-image img{display:block;width:100%;height:auto!important;max-height:560px;object-fit:contain!important}.story-vehicle-copy,.story-vehicle-card:first-child .story-vehicle-copy{position:relative;flex:1;padding:22px 24px 26px}.public-registry-label{color:var(--pj43-rust);font-size:.58rem;font-weight:800;letter-spacing:.1em}.story-vehicle-meta{margin-top:7px;color:#8a8f91;font-size:.6rem}.story-vehicle-copy h3{margin:11px 36px 5px;font-family:"Fraunces",serif;font-size:1.35rem}.story-vehicle-copy h3 a{text-decoration:none}.story-vehicle-vin,.story-vehicle-owner{font-size:.7rem}.story-card-arrow{position:absolute;right:20px;bottom:22px;width:32px;height:32px;border:1px solid var(--pj43-line);border-radius:50%;background:transparent}.story-card-arrow:hover{background:var(--pj43-ink);color:#fff}

/* Home statement */
.pj43-home-statement{background:var(--pj43-navy);color:#fff}.pj43-statement-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(480px,1.2fr);gap:80px;align-items:center;padding:84px 0}.pj43-statement-copy h2{margin:14px 0 18px;color:#fff;font-size:clamp(3.2rem,5.2vw,6.2rem);line-height:.92}.pj43-statement-copy p{max-width:620px;margin:0 0 28px;color:#c2d0d8;line-height:1.75}.pj43-statement-visual figure{margin:0;padding:12px;border-radius:30px;background:rgba(255,255,255,.08)}.pj43-statement-visual img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:20px;background:#0f2634}.pj43-statement-placeholder{min-height:360px;display:grid;place-items:center;border-radius:28px;background:#0f2634;color:rgba(255,255,255,.12);font-family:"Fraunces",serif;font-size:8rem}.pj43-principles{padding:54px 0 64px;background:var(--pj43-paper)}.pj43-principles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:50px}.pj43-principles article{padding-left:22px;border-left:2px solid var(--pj43-blue)}.pj43-principles strong{font-size:.92rem}.pj43-principles p{margin:5px 0 0;color:var(--pj43-muted);font-size:.82rem;line-height:1.65}

/* Decoder landing pages */
.pj43-decoder-hero{padding:86px 0 88px;background:var(--pj43-ivory)}.pj43-decoder-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:100px;align-items:center}.pj43-breadcrumb-line{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:36px;font-size:.64rem;font-weight:700;color:#899095}.pj43-breadcrumb-line a{color:var(--pj43-rust);text-decoration:none}.pj43-decoder-intro h1{margin:17px 0 22px;font-size:clamp(4rem,6vw,7.4rem);line-height:.92;max-width:980px}.pj43-decoder-intro>p{max-width:820px;margin:0;color:var(--pj43-muted);font-size:1.03rem;line-height:1.8}.pj43-decoder-meta{display:flex;flex-wrap:wrap;margin-top:42px;padding-top:22px;border-top:1px solid var(--pj43-line)}.pj43-decoder-meta div{min-width:150px;padding-right:28px}.pj43-decoder-meta div+div{padding-left:28px;border-left:1px solid var(--pj43-line)}.pj43-decoder-meta span{display:block;color:#8d9295;font-size:.58rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.pj43-decoder-meta strong{display:block;margin-top:4px;font-size:.86rem}
.pj43-decoder-side{padding:18px;border-radius:28px;background:var(--pj43-paper);box-shadow:var(--pj43-shadow)}.pj43-decoder-side-top{padding:16px 12px 18px}.pj43-decoder-side-top span{display:block;color:var(--pj43-rust);font-size:.58rem;font-weight:800;letter-spacing:.1em}.pj43-decoder-side-top strong{display:block;margin-top:5px;font-family:"Fraunces",serif;font-size:1.55rem}.pj43-decoder-side-photo{margin:0}.pj43-decoder-side-photo img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:18px;background:#ece9e1}.pj43-decoder-side-photo figcaption{padding:10px 4px 2px;color:#8a8f91;font-size:.62rem}.pj43-decoder-side-abstract{position:relative;min-height:280px;display:grid;place-items:center;overflow:hidden;border-radius:18px;background:var(--pj43-navy);color:rgba(255,255,255,.12);font-family:"Fraunces",serif;font-size:7rem}.pj43-decoder-side-abstract i{position:absolute;width:5px;height:120px;right:32px;top:0;border-radius:99px}.pj43-decoder-side-abstract i:nth-child(2){background:var(--pj43-rust)}.pj43-decoder-side-abstract i:nth-child(3){right:22px;background:var(--pj43-blue)}
.pj43-decoder-directory{padding:110px 0 120px;background:var(--pj43-paper)}.pj43-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.pj43-directory-grid.is-makes{grid-template-columns:repeat(3,minmax(0,1fr))}.pj43-directory-card{min-height:255px;display:flex;flex-direction:column;padding:30px;border-radius:22px;background:var(--pj43-ivory);text-decoration:none;transition:.18s ease}.pj43-directory-card:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(22,35,45,.08)}.pj43-directory-card-head{display:flex;justify-content:space-between;color:#939694;font-size:.62rem;font-weight:800;letter-spacing:.08em}.pj43-directory-card-head span{color:var(--pj43-rust)}.pj43-directory-card h3{margin:26px 0 12px;font-size:1.65rem;line-height:1.08}.pj43-directory-card p{margin:0;color:var(--pj43-muted);font-size:.84rem;line-height:1.7}.pj43-directory-card>b{margin-top:auto;padding-top:22px;font-size:.66rem;letter-spacing:.06em;text-transform:uppercase}
.pj43-reference{background:var(--pj43-white)}.pj43-reference-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:90px;padding:110px 0}.pj43-reference-rail{align-self:start;padding:36px;border-radius:26px;background:var(--pj43-navy);color:#fff}.pj43-reference-rail h2{margin:18px 0;color:#fff;font-size:2.4rem;line-height:1.02}.pj43-reference-rail ul{margin:30px 0 0;padding:0;list-style:none}.pj43-reference-rail li{padding:13px 0;border-top:1px solid rgba(255,255,255,.14);color:#d1dde3;font-size:.77rem;line-height:1.55}.pj43-reference-copy{max-width:850px;color:#59636a;font-size:.96rem}.pj43-reference-copy h2{margin:38px 0 13px;font-size:2rem}.pj43-reference-copy h2:first-child{margin-top:0}.pj43-reference-copy p,.pj43-reference-copy li{line-height:1.82}.pj43-parent-callout{padding:54px 0;background:var(--pj43-ivory)}.pj43-parent-callout-inner{display:flex;align-items:center;justify-content:space-between;gap:50px}.pj43-parent-callout h2{margin:10px 0 6px;font-size:2rem}.pj43-parent-callout p{margin:0;color:var(--pj43-muted)}
.pj43-faq-section{padding:108px 0;background:var(--pj43-ivory)}.pj43-faq-list{max-width:1100px;margin-left:auto}.pj43-faq-list details{border-top:1px solid var(--pj43-line)}.pj43-faq-list details:last-child{border-bottom:1px solid var(--pj43-line)}.pj43-faq-list summary{display:grid;grid-template-columns:50px 1fr 28px;gap:14px;align-items:center;padding:24px 0;cursor:pointer;list-style:none}.pj43-faq-list summary::-webkit-details-marker{display:none}.pj43-faq-list summary span{color:var(--pj43-rust);font-size:.62rem;font-weight:800}.pj43-faq-list summary strong{font-family:"Fraunces",serif;font-size:1.2rem}.pj43-faq-list summary b{font-size:1.2rem}.pj43-faq-list details p{max-width:820px;margin:0 0 24px 64px;color:var(--pj43-muted);line-height:1.72}.pj43-decoder-registry{padding:112px 0;background:var(--pj43-paper)}

/* Registry + for sale browse pages */
.pj43-listing-hero{padding:96px 0 88px;background:var(--pj43-ivory)}.pj43-listing-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.56fr);gap:100px;align-items:end}.pj43-listing-hero h1{margin:16px 0 0;font-size:clamp(4rem,6vw,7rem);line-height:.92}.pj43-listing-hero p{margin:0;color:var(--pj43-muted);font-size:1rem;line-height:1.8}.pj43-listing-stat{margin-top:28px;padding-top:18px;border-top:1px solid var(--pj43-line)}.pj43-listing-stat strong{font-size:2.2rem}.pj43-listing-stat span{display:block;color:#838a8e;font-size:.65rem;text-transform:uppercase;letter-spacing:.09em}.pj43-listing-hero .pj43-actions{margin-top:28px}
.pj43-filter-band{padding:28px 0;background:var(--pj43-navy-deep)}.pj43-filter-form{display:grid;grid-template-columns:1.1fr 1.1fr .9fr auto auto auto;gap:14px;align-items:end}.pj43-filter-form label{display:grid;gap:7px}.pj43-filter-form label>span{color:#aebfc8;font-size:.58rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.pj43-filter-form .select-input{min-height:48px;border:0;border-radius:12px;background:#fff;color:var(--pj43-ink)}.pj43-filter-check{display:flex!important;flex-direction:row;align-items:center;min-height:48px;padding:0 12px;border-radius:12px;background:rgba(255,255,255,.08)}.pj43-filter-check span{color:#fff!important;white-space:nowrap}.pj43-filter-reset{align-self:center;color:#c7d5dc;font-size:.66rem;font-weight:800}.pj43-registry-browser,.pj43-sale-browser{padding:92px 0 118px;background:var(--pj43-paper)}.pj43-browser-heading{margin-bottom:42px}.pj43-browser-heading h2{margin:10px 0 0;font-size:3rem}
.vehicle-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.vehicle-card{overflow:hidden;border:0;border-radius:20px;background:var(--pj43-ivory);box-shadow:none}.vehicle-card-link{text-decoration:none}.vehicle-card-image{display:flex;align-items:center;justify-content:center;aspect-ratio:auto;min-height:180px;background:#e9e6df;overflow:hidden}.vehicle-card-image img{display:block;width:100%;height:auto!important;max-height:420px;object-fit:contain!important}.vehicle-card-copy{padding:22px 24px 14px}.vehicle-card-copy h3{margin:10px 0 5px;font-family:"Fraunces",serif;font-size:1.35rem}.vehicle-card-activity{font-size:.58rem}.vehicle-card-vin{font-size:.68rem}.vehicle-card-footer-meta{padding:10px 24px 24px;border-top:0;color:#70777a;font-size:.68rem}.vehicle-card-sale-badge{border-radius:999px}.pj43-pagination{margin-top:50px}
.listing-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.listing-card{overflow:hidden;border:0;border-radius:20px;background:var(--pj43-ivory);box-shadow:none}.listing-card-image{display:flex;align-items:center;justify-content:center;aspect-ratio:auto;min-height:180px;background:#e9e6df}.listing-card-image img{display:block;width:100%;height:auto!important;max-height:420px;object-fit:contain!important}.listing-card-copy{padding:22px 24px 26px}.listing-card-copy h3{font-family:"Fraunces",serif;font-size:1.35rem}.listing-card-status{border-radius:999px}.listing-card-price-row strong{font-size:1.2rem}

/* Vehicle detail */
.pj43-vehicle-hero{padding:54px 0 88px;background:linear-gradient(180deg,var(--pj43-ivory),#f8f5ee)}.pj43-back-link{display:inline-block;margin-bottom:40px;color:var(--pj43-rust);font-size:.68rem;font-weight:800;text-decoration:none}.pj43-vehicle-hero-grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(520px,1.22fr);gap:86px;align-items:center}.pj43-vehicle-title h1{margin:17px 0 10px;font-size:clamp(4rem,6.4vw,7.4rem);line-height:.9}.pj43-vehicle-vin{margin:0;color:#778086;font-size:.84rem;font-weight:700;letter-spacing:.07em}.pj43-vehicle-badges{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.pj43-vehicle-badges span{padding:7px 11px;border-radius:999px;background:rgba(22,35,45,.07);font-size:.61rem;font-weight:800}.pj43-confidence{background:rgba(82,116,93,.13)!important;color:#315b40}.pj43-vehicle-intro{max-width:570px;margin:26px 0 0;color:var(--pj43-muted);font-size:1rem;line-height:1.75}.pj43-vehicle-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.pj43-vehicle-hero-media figure{margin:0;padding:14px;border-radius:30px;background:#fff;box-shadow:var(--pj43-shadow)}.pj43-vehicle-hero-media img{display:block;width:100%;height:auto;max-height:700px;object-fit:contain;border-radius:20px;background:#ece9e1}.pj43-vehicle-hero-media figcaption{padding:12px 5px 2px;color:#8a9092;font-size:.62rem}.pj43-vehicle-photo-placeholder{min-height:440px;display:grid;place-items:center;border-radius:30px;background:var(--pj43-navy);color:rgba(255,255,255,.12);font-family:"Fraunces",serif;font-size:8rem}.pj43-vehicle-photo-placeholder small{position:absolute;font-family:"Manrope",sans-serif;font-size:.6rem}
.pj43-private-notice{padding:24px 0;background:#fff3df}.pj43-private-notice .pj43-shell{display:grid;grid-template-columns:220px 1fr;gap:34px}.pj43-private-notice strong{font-size:.78rem}.pj43-private-notice p{margin:0;color:#765f47;font-size:.8rem;line-height:1.6}
.pj43-vehicle-connect{padding:38px 0;background:var(--pj43-navy-deep);color:#fff}.pj43-vehicle-connect-grid{display:grid;grid-template-columns:minmax(0,1fr) 1fr auto;gap:50px;align-items:center}.pj43-vehicle-connect h2{margin:9px 0 5px;color:#fff;font-size:1.65rem}.pj43-vehicle-connect p{margin:0;color:#b9cad2;font-size:.82rem;line-height:1.6}.pj43-connect-points{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pj43-connect-points span{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.14);color:#d8e2e7;font-size:.68rem}.pj43-connect-actions{display:grid;gap:10px;justify-items:start}.pj43-connect-actions .pj43-inline-link{color:#fff}
.vehicle-listing-panel-wrap{width:min(var(--pj43-shell),calc(100% - 72px));margin:34px auto}.vehicle-listing-panel,.vehicle-listing-owner-cta{border:0!important;border-radius:20px!important;background:var(--pj43-paper)!important;box-shadow:0 12px 34px rgba(22,35,45,.07)!important}
.pj43-contribution-status{padding:20px 0;background:var(--pj43-paper)}.pj43-contribution-status .pj43-shell{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.pj43-contribution-status div{display:flex;gap:9px;align-items:center}
.pj43-vehicle-facts-section{padding:104px 0 116px;background:var(--pj43-paper)}.pj43-facts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--pj43-line)}.pj43-facts-grid>div{min-height:118px;padding:24px 24px 24px 0;border-bottom:1px solid var(--pj43-line)}.pj43-facts-grid>div:not(:nth-child(4n+1)){padding-left:24px;border-left:1px solid var(--pj43-line)}.pj43-facts-grid span{display:block;color:#8a9094;font-size:.57rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.pj43-facts-grid strong{display:block;margin-top:7px;font-size:.95rem;line-height:1.45}
.pj43-vehicle-gallery-section{padding:110px 0 122px;background:var(--pj43-ivory)}.pj43-gallery-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.pj43-gallery-lead,.pj43-gallery-thumbs button{border:0;padding:0;background:transparent;cursor:pointer}.pj43-gallery-lead{display:flex;justify-content:center;padding:12px;border-radius:26px;background:#fff;box-shadow:0 14px 45px rgba(22,35,45,.08)}.pj43-gallery-lead img{display:block;width:100%;height:auto;max-height:760px;object-fit:contain;border-radius:18px;background:#e9e6df}.pj43-gallery-thumbs{display:grid;gap:16px}.pj43-gallery-thumbs button{position:relative;display:flex;align-items:center;justify-content:center;padding:8px;border-radius:18px;background:#fff}.pj43-gallery-thumbs img{display:block;width:100%;height:auto;max-height:180px;object-fit:contain;border-radius:12px;background:#e9e6df}.pj43-gallery-thumbs button span{position:absolute;inset:auto 13px 13px auto;padding:6px 9px;border-radius:999px;background:rgba(16,38,51,.88);color:#fff;font-size:.62rem}.pj43-gallery-credit{margin:15px 0 0;color:#7a8286;font-size:.68rem}.pj43-gallery-empty{padding:50px;border-radius:24px;background:var(--pj43-paper);text-align:center}
.pj43-vehicle-history-section{padding:112px 0;background:var(--pj43-paper)}.pj43-history-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:90px}.pj43-history-heading{display:grid;grid-template-columns:1fr auto;align-items:end;margin-bottom:30px}.pj43-history-heading .pj43-overline{grid-column:1/-1}.pj43-history-heading h2{margin:10px 0 0;font-size:3rem}.pj43-history-heading>span:last-child{font-size:.68rem;color:#858c8f}.pj43-history-heading.compact{display:block}.pj43-timeline{border-top:1px solid var(--pj43-line)}.pj43-timeline article{display:grid;grid-template-columns:54px 1fr;gap:20px;padding:28px 0;border-bottom:1px solid var(--pj43-line)}.pj43-timeline-index{color:var(--pj43-rust);font-size:.64rem;font-weight:800}.pj43-timeline-person{display:flex;justify-content:space-between;gap:20px;align-items:center}.pj43-timeline-person h3{margin:0;font-size:1.25rem}.pj43-timeline-person span{font-size:.6rem;font-weight:800;text-transform:uppercase;color:var(--pj43-moss)}.pj43-timeline-date{margin:5px 0 0;color:#7e8589;font-size:.72rem}.pj43-timeline-story{margin-top:13px;color:#5f686e;line-height:1.7;font-size:.86rem}.pj43-history-empty{padding:30px 0;color:#82898d}.pj43-activity-column{padding:34px;border-radius:24px;background:var(--pj43-ivory)}.pj43-activity-list{display:grid;gap:0;border-top:1px solid var(--pj43-line)}.pj43-activity-list>div{display:grid;grid-template-columns:1fr auto;gap:5px;padding:18px 0;border-bottom:1px solid var(--pj43-line)}.pj43-activity-list time{color:#878e91;font-size:.64rem}.pj43-activity-list strong{font-size:.72rem}.pj43-activity-list span{grid-column:1/-1;color:#6e777c;font-size:.7rem}.pj43-activity-more{margin-top:18px;font-size:.7rem}.pj43-activity-more summary{cursor:pointer;font-weight:800}
.pj43-community{padding:110px 0 120px;background:var(--pj43-ivory)}.pj43-community-like{align-self:end}.pj43-like-button{display:inline-flex;gap:8px;align-items:center;padding:11px 16px;border:1px solid var(--pj43-line);border-radius:999px;background:#fff;color:var(--pj43-ink);text-decoration:none;font-size:.72rem}.pj43-like-button.is-liked{border-color:#89a98d;background:#f1f7f2;color:#315a39}.pj43-comments-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:70px}.pj43-comment-form h3,.pj43-comments-heading h3{margin:0 0 18px;font-size:1.4rem}.pj43-comment-form p{color:var(--pj43-muted);line-height:1.7}.pj43-comments-panel{padding:32px;border-radius:24px;background:var(--pj43-paper)}.pj43-comments-heading{display:flex;justify-content:space-between}.pj43-comments-heading span{display:grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:var(--pj43-ivory);font-size:.7rem}.pj43-vehicle-source{padding:90px 0 100px;background:var(--pj43-paper)}.pj43-source-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:80px}.pj43-source-grid h2{margin:12px 0 0;font-size:2rem}.pj43-source-grid .prose{color:#60696e;line-height:1.8}

/* Footer */
.pj43-footer{padding:64px 0 30px;background:var(--pj43-navy-deep);color:#fff}.pj43-footer .pj43-brand{color:#fff}.pj43-footer .pj43-brand-mark{background:#fff;color:var(--pj43-navy-deep)}.pj43-footer .pj43-brand-copy small{color:#9fb1bb}.pj43-footer-top{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:80px;padding-bottom:42px}.pj43-footer-intro p{max-width:560px;margin:20px 0 0;color:#b5c5cd;line-height:1.7}.pj43-footer-primary{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid rgba(255,255,255,.14)}.pj43-footer-primary a{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.14);font-size:.7rem;font-weight:700;text-decoration:none}.pj43-footer-primary a:nth-child(even){padding-left:18px;border-left:1px solid rgba(255,255,255,.14)}.pj43-footer-makes{display:grid;grid-template-columns:130px 1fr;gap:20px;padding:24px 0;border-top:1px solid rgba(255,255,255,.14)}.pj43-footer-makes>span{color:#8ea3ae;font-size:.58rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.pj43-footer-makes nav{display:flex;flex-wrap:wrap}.pj43-footer-makes a{color:#d7e0e4;font-size:.65rem;font-weight:700;text-decoration:none}.pj43-footer-makes a:not(:last-child):after{content:"·";margin:0 8px;color:#667e89}.pj43-footer-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);color:#7f96a1;font-size:.58rem}

/* Forms / generic public component normalization */
.form-button,.secondary-button,.primary-link,.button-link{border-radius:999px}.text-input,.textarea-input,.select-input{border-radius:12px}.result-card,.auth-card,.account-panel,.admin-panel,.browse-panel,.community-card,.photo-card{border-radius:20px}.empty-state{border-radius:20px}.pagination{display:flex;justify-content:center;align-items:center;gap:20px}.pagination a{font-weight:800}

/* Standard/admin pages inherit clean tokens without forcing the public layout */
.layout-standard .site-main{width:min(1180px,calc(100% - 56px));margin:0 auto;padding-top:54px}.layout-standard h1{font-family:"Fraunces",serif}.layout-standard .browse-hero h1,.layout-standard .profile-hero h1{font-family:"Fraunces",serif}

@media(max-width:1180px){
  .pj43-shell,.layout-wide .flash-stack{width:min(100% - 48px,1080px)}
  .pj43-home-hero-grid{grid-template-columns:1fr 1fr;gap:50px}.pj43-home-intro h1{font-size:clamp(4rem,7vw,6.5rem)}
  .pj43-decode-band-inner{grid-template-columns:280px 1fr;gap:38px}.pj43-decode-form-wrap .decoder-shell{grid-template-columns:165px 1fr}
  .pj43-decoder-hero-grid{grid-template-columns:minmax(0,1fr) 330px;gap:60px}.pj43-directory-grid.is-makes{grid-template-columns:repeat(2,1fr)}
  .pj43-facts-grid{grid-template-columns:repeat(3,1fr)}.pj43-facts-grid>div:not(:nth-child(4n+1)){border-left:0;padding-left:0}.pj43-facts-grid>div:not(:nth-child(3n+1)){border-left:1px solid var(--pj43-line);padding-left:24px}
  .pj43-vehicle-hero-grid{grid-template-columns:minmax(0,.8fr) minmax(440px,1.2fr);gap:50px}.pj43-vehicle-connect-grid{grid-template-columns:1fr 1fr}.pj43-connect-actions{grid-column:1/-1;display:flex}.pj43-history-grid{gap:55px}.pj43-comments-layout{grid-template-columns:300px 1fr;gap:45px}
  .pj43-filter-form{grid-template-columns:1fr 1fr 1fr auto}.pj43-filter-check{grid-column:1/2}.pj43-filter-reset{justify-self:start}
}

@media(max-width:900px){
  .pj43-shell,.layout-wide .flash-stack{width:min(100% - 36px,760px)}
  .pj43-header-inner{min-height:76px}.pj43-brand-copy small{display:none}
  .pj43-home-hero{padding-top:44px}.pj43-home-hero-grid,.pj43-decoder-hero-grid,.pj43-listing-hero-grid,.pj43-vehicle-hero-grid{grid-template-columns:1fr}.pj43-home-photo-wrap{padding-left:0}.pj43-home-photo{transform:none}.pj43-home-intro h1{font-size:clamp(4.2rem,12vw,6.6rem)}
  .pj43-decode-band-inner{grid-template-columns:1fr;gap:22px}.pj43-decode-form-wrap .decoder-shell{grid-template-columns:1fr;gap:12px}.pj43-decode-form-wrap .decoder-title{display:flex}.pj43-make-marquee-inner{grid-template-columns:1fr;gap:8px}.pj43-section-lead{grid-template-columns:1fr;gap:18px}.pj43-steps{grid-template-columns:1fr;gap:28px}.story-vehicle-grid{grid-template-columns:1fr 1fr}.story-vehicle-card:first-child{grid-column:1/-1}.pj43-statement-grid{grid-template-columns:1fr;gap:48px}.pj43-principles-grid{grid-template-columns:1fr}.pj43-decoder-side{max-width:520px}.pj43-reference-grid{grid-template-columns:1fr;gap:42px}.pj43-reference-rail{max-width:620px}.pj43-parent-callout-inner{display:grid}.pj43-filter-form{grid-template-columns:1fr 1fr}.vehicle-card-grid,.listing-card-grid{grid-template-columns:1fr 1fr}.pj43-vehicle-hero-media{max-width:700px}.pj43-vehicle-connect-grid{grid-template-columns:1fr}.pj43-connect-actions{grid-column:auto}.pj43-facts-grid{grid-template-columns:repeat(2,1fr)}.pj43-facts-grid>div:not(:nth-child(3n+1)){border-left:0;padding-left:0}.pj43-facts-grid>div:nth-child(even){border-left:1px solid var(--pj43-line);padding-left:24px}.pj43-gallery-layout{grid-template-columns:1fr}.pj43-gallery-thumbs{grid-template-columns:repeat(3,1fr)}.pj43-history-grid{grid-template-columns:1fr}.pj43-comments-layout{grid-template-columns:1fr}.pj43-source-grid{grid-template-columns:1fr;gap:30px}.pj43-footer-top{grid-template-columns:1fr}.pj43-footer-makes{grid-template-columns:1fr}
}

@media(max-width:680px){
  .pj43-shell,.layout-wide .flash-stack{width:calc(100% - 24px)}
  .pj43-header-inner{min-height:68px}.pj43-brand-mark{width:36px;height:36px}.pj43-brand-copy strong{font-size:.94rem}
  .pj43-home-hero{padding:32px 0 52px}.pj43-home-intro h1{font-size:clamp(3.7rem,18vw,5rem)}.pj43-display-note{font-size:1.65rem}.pj43-home-stats>div{min-width:100px;padding-right:14px}.pj43-home-stats>div+div{padding-left:14px}.pj43-home-photo{padding:8px;border-radius:22px}.pj43-home-photo img{border-radius:15px}.pj43-route-lines{display:none}
  .pj43-decode-band{padding:34px 0}.pj43-decode-form-wrap .input-row{grid-template-columns:1fr}.pj43-decode-form-wrap .decode-button{margin:0;border-radius:0!important;min-height:48px}.pj43-decode-form-wrap .input-row{border-radius:14px}.pj43-decode-form-wrap .vin-input{border-radius:14px 14px 0 0!important}
  .pj43-home-how,.pj43-home-registry,.pj43-decoder-directory,.pj43-faq-section,.pj43-decoder-registry,.pj43-registry-browser,.pj43-sale-browser,.pj43-vehicle-facts-section,.pj43-vehicle-gallery-section,.pj43-vehicle-history-section,.pj43-community{padding:72px 0}.pj43-section-lead{margin-bottom:34px}.pj43-section-lead h2{font-size:2.8rem}.story-vehicle-grid{grid-template-columns:1fr}.story-vehicle-card:first-child{grid-column:auto}.pj43-statement-grid{padding:64px 0}.pj43-statement-copy h2{font-size:3.6rem}.pj43-decoder-hero{padding:54px 0}.pj43-decoder-intro h1{font-size:3.5rem}.pj43-decoder-meta{display:grid}.pj43-decoder-meta div,.pj43-decoder-meta div+div{padding:10px 0;border-left:0;border-top:1px solid var(--pj43-line)}.pj43-directory-grid,.pj43-directory-grid.is-makes{grid-template-columns:1fr}.pj43-reference-rail{padding:28px}.pj43-reference-grid{padding:72px 0}.pj43-faq-list details p{margin-left:0}.pj43-faq-list summary{grid-template-columns:34px 1fr 20px}.pj43-listing-hero{padding:58px 0}.pj43-listing-hero h1{font-size:3.5rem}.pj43-filter-form{grid-template-columns:1fr}.vehicle-card-grid,.listing-card-grid{grid-template-columns:1fr}.pj43-vehicle-hero{padding:34px 0 60px}.pj43-back-link{margin-bottom:26px}.pj43-vehicle-title h1{font-size:3.8rem}.pj43-vehicle-hero-media figure{padding:8px;border-radius:22px}.pj43-vehicle-hero-media img{border-radius:15px}.pj43-private-notice .pj43-shell{grid-template-columns:1fr;gap:8px}.pj43-vehicle-connect-grid{gap:26px}.pj43-connect-points{grid-template-columns:1fr}.vehicle-listing-panel-wrap{width:calc(100% - 24px)}.pj43-facts-grid{grid-template-columns:1fr}.pj43-facts-grid>div,.pj43-facts-grid>div:nth-child(even){padding:18px 0;border-left:0}.pj43-gallery-thumbs{grid-template-columns:1fr 1fr}.pj43-history-heading h2{font-size:2.5rem}.pj43-timeline article{grid-template-columns:38px 1fr}.pj43-timeline-person{display:block}.pj43-timeline-person span{display:inline-block;margin-top:6px}.pj43-activity-column{padding:24px}.pj43-comments-panel{padding:24px}.pj43-footer{padding-top:48px}.pj43-footer-primary{grid-template-columns:1fr}.pj43-footer-primary a:nth-child(even){padding-left:0;border-left:0}.pj43-footer-bottom{display:grid}.layout-standard .site-main{width:calc(100% - 24px)}
}
