/* Motoflo dealer websites. One stylesheet, three templates: [data-template=clean|bold|prestige].
   The dealer's colours arrive as --brand and --accent (inline <style nonce> per site). System fonts only:
   nothing to download before the first paint, and no visitor data sent to a font host. */
:root {
  --brand: #0f4c81; --accent: #c2410c; --brand-ink: #ffffff; --accent-ink: #ffffff;
  --ink: #15181e; --ink-2: #3b414c; --muted: #646b78; --line: #e3e6eb; --soft: #f4f6f8; --bg: #ffffff; --card: #ffffff;
  --ok: #157347; --err: #b42318;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font);
  --head-weight: 700; --head-track: -0.015em;
  --header-bg: #ffffff; --header-ink: var(--ink);
  --hero-bg: linear-gradient(135deg, color-mix(in srgb, var(--brand) 92%, #000) 0%, var(--brand) 60%, color-mix(in srgb, var(--brand) 70%, var(--accent)) 100%);
  --hero-ink: var(--brand-ink, #ffffff);
  --btn-bg: var(--accent); --btn-ink: var(--accent-ink, #ffffff);
  --ph-ratio: 4 / 3;
  color-scheme: light;
}
[data-template="bold"] {
  --ink: #0d1014; --line: #dfe2e7; --soft: #eef0f3;
  --header-bg: #0d1014; --header-ink: #ffffff;
  --head-weight: 800; --head-track: -0.025em;
  --radius: 6px; --radius-sm: 4px; --shadow: 0 2px 10px rgba(13, 16, 20, .10);
}
[data-template="prestige"] {
  --ink: #1c1a17; --ink-2: #45403a; --muted: #6f685f; --line: #e5e0d8; --soft: #f3efe8; --bg: #faf8f4; --card: #ffffff;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --head-weight: 500; --head-track: 0;
  --header-bg: #faf8f4; --hero-bg: #1c1a17; --hero-ink: #ffffff; --btn-bg: var(--brand); --btn-ink: var(--brand-ink);
  --radius: 2px; --radius-sm: 2px; --shadow: none; --ph-ratio: 3 / 2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sec { padding-block: clamp(28px, 4vw, 56px); }
.narrow-c { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: inherit; opacity: .92; max-width: 60ch; }
.small-lede { font-size: 1.1rem; color: var(--ink-2); opacity: 1; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

.preview-bar { background: #fff3c4; color: #5c4400; text-align: center; padding: 8px 16px; font-size: .9rem; }

/* header */
.top { background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
[data-template="clean"] .top { border-bottom: 3px solid var(--brand); }
[data-template="bold"] .top { border-bottom: 0; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.logo-img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.wordmark { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.3rem; letter-spacing: var(--head-track); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-template="bold"] .wordmark { text-transform: uppercase; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: inherit; text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 550; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav a[aria-current="page"] { color: var(--brand); }
[data-template="bold"] .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.saved-link .ic { width: 18px; height: 18px; }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: .75rem; padding: 0 7px; line-height: 1.5; }
.call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: none; white-space: nowrap; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-btn .ic { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .call span { display: none; }
  .call { margin-left: auto; padding: 8px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--header-bg); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; box-shadow: 0 8px 16px rgba(0, 0, 0, .08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
}

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 18px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; min-height: 46px; line-height: 1.2; color: var(--brand-ink); }
.btn:hover { filter: brightness(1.07); }
.btn.btn-go { background: var(--btn-bg); color: var(--btn-ink); }
.btn.ghost { background: transparent; color: var(--brand); border-color: currentColor; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn.full, .full { grid-column: 1 / -1; }
[data-template="bold"] .btn { text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; font-weight: 800; }
[data-template="prestige"] .btn { font-weight: 500; letter-spacing: .03em; }
[data-template="prestige"] .btn.btn-go { background: var(--ink); color: #fff; }
.link { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; }
.field small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9ced6; border-radius: var(--radius-sm); padding: 10px 12px; min-height: 46px; width: 100%; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.reg-in { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; background: #ffd400; border-color: #c9a700; max-width: 220px; }
.err { color: var(--err); font-size: .85rem; min-height: 0; }
.err:empty { display: none; }
.field.bad input, .field.bad select { border-color: var(--err); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* hero and search */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; isolation: isolate; }
.hero.has-img .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .25)); }
.hero-in { padding-block: clamp(36px, 7vw, 88px); }
.hero h1 { color: inherit; max-width: 20ch; }
[data-template="bold"] .hero h1 { text-transform: uppercase; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.02; }
[data-template="prestige"] .hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-style: italic; }
.search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; background: #fff; color: var(--ink); padding: 16px; border-radius: var(--radius); margin-top: 24px; max-width: 980px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
[data-template="prestige"] .search { box-shadow: none; border: 1px solid var(--line); }
.search .btn-go { min-width: 190px; }
@media (max-width: 760px) { .search { grid-template-columns: 1fr 1fr; } .search .btn-go { grid-column: 1 / -1; } .search .field:first-child { grid-column: 1 / -1; } }
.usps { background: var(--soft); border-bottom: 1px solid var(--line); }
.usps ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center; font-weight: 600; font-size: .95rem; }
.usps li { display: flex; gap: 8px; align-items: center; }
.usps .ic { color: var(--ok); }
[data-template="bold"] .usps { background: var(--accent); color: var(--accent-ink); border: 0; }
[data-template="bold"] .usps .ic { color: currentColor; }

/* sections */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; text-decoration: none; }
.more .ic { width: 18px; height: 18px; }
.pills { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--card); font-weight: 550; }
.pills a:hover { border-color: var(--brand); }
.pills span { color: var(--muted); font-weight: 400; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.locs { display: grid; gap: 16px; }
.loc { display: flex; gap: 12px; }
.loc .ic { color: var(--brand); margin-top: 3px; }
.loc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); }
.loc-card h2 { font-size: 1.15rem; }
.loc-card p { display: flex; gap: 8px; align-items: center; margin-bottom: .5em; }

/* car cards */
.grid-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.car-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.car-link:hover .car-title { color: var(--brand); }
.ph { aspect-ratio: var(--ph-ratio); background: var(--soft); overflow: hidden; max-width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.no-ph { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.no-ph.big { aspect-ratio: 4 / 3; background: var(--soft); border-radius: var(--radius); }
.car-body { padding: 14px 16px 6px; display: flex; flex-direction: column; flex: 1; }
.car-title { margin: 0; font-size: 1.08rem; }
.car-der { margin: 2px 0 10px; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .8rem; background: var(--soft); border-radius: 99px; padding: 2px 10px; color: var(--ink-2); }
[data-template="prestige"] .chips li { background: none; padding: 0; border-radius: 0; }
[data-template="prestige"] .chips li + li::before { content: "·"; margin-right: 6px; color: var(--muted); }
.price { font-size: 1.35rem; font-weight: 800; margin: auto 0 4px; letter-spacing: -0.01em; }
[data-template="bold"] .price { color: var(--accent); }
[data-template="prestige"] .price { font-family: var(--font-head); font-weight: 500; }
.price.big { font-size: 2rem; margin: 8px 0 16px; }
.car-actions { display: flex; border-top: 1px solid var(--line); }
.car-actions.inline { border: 0; gap: 8px; margin-top: 12px; }
.tool { flex: 1; display: inline-flex; gap: 6px; align-items: center; justify-content: center; background: none; border: 0; padding: 10px; font: inherit; font-size: .9rem; color: var(--ink-2); cursor: pointer; text-decoration: none; min-height: 44px; }
.car-actions:not(.inline) .tool + .tool { border-left: 1px solid var(--line); }
.car-actions.inline .tool { flex: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 14px; }
.tool .ic { width: 18px; height: 18px; }
.tool[aria-pressed="true"] { color: var(--accent); font-weight: 650; }
.tool[data-save][aria-pressed="true"] .ic { fill: currentColor; }

/* search results */
.crumbs ol { list-style: none; padding: 16px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-block: 16px 20px; }
.results-head h1 { margin: 0; }
.count-line { margin: 0; color: var(--muted); }
.results { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 48px; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 84px; }
.filters summary { font-weight: 700; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filter-form { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 901px) { .filters summary { pointer-events: none; } .filters:not([open]) > .filter-form { display: grid; } }
@media (max-width: 900px) { .results { grid-template-columns: minmax(0, 1fr); } .filters { position: static; } .filters summary::after { content: " +"; } .filters[open] summary::after { content: " −"; } }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 28px; }
.pager a { font-weight: 650; }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }

/* car page */
.car-page { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 32px; align-items: start; padding-block: 16px 40px; }
@media (max-width: 960px) { .car-page { grid-template-columns: minmax(0, 1fr); } }
.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--soft); scrollbar-width: none; aspect-ratio: 4 / 3; max-width: 100%; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.g-count { position: absolute; right: 12px; top: 12px; margin: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8rem; padding: 2px 10px; border-radius: 99px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; }
.thumbs a { flex: 0 0 96px; border-radius: var(--radius-sm); overflow: hidden; opacity: .7; border: 2px solid transparent; }
.thumbs a.on, .thumbs a:hover { opacity: 1; border-color: var(--brand); }
.thumbs img { width: 96px; height: 72px; object-fit: cover; }
.car-side { display: grid; gap: 20px; position: sticky; top: 84px; }
@media (max-width: 960px) { .car-side { position: static; } }
.buy-box, .lead, .rep, .spec, .desc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.spec, .desc, .rep { margin-top: 20px; }
.buy-box h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 10px; }
.buy-box .der { display: block; font-size: 1rem; font-family: var(--font); font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.where { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 20px; margin: 0; }
.spec-grid dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.spec-grid dd { margin: 2px 0 0; font-weight: 650; }
.rep h2 { font-size: 1.15rem; }
.rep-lead { font-size: 1.05rem; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; margin: 0 0 12px; }
.rep-grid div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.rep-grid dt { color: var(--ink-2); } .rep-grid dd { margin: 0; font-weight: 650; text-align: right; }

/* lead form */
.lead h2 { font-size: 1.2rem; }
.lead .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead .fields > .field:first-child { grid-column: 1 / -1; }
.lead .f-td, .lead .f-px, .lead .f-fin { grid-column: 1 / -1; display: none; }
.lead:has(input[name="type"][value="part_ex"]:checked) .f-px, .lead:has(input[name="type"][value="finance"]:checked) .f-fin,
.lead:has(input[type="hidden"][name="type"]) .f-px, .lead:has(input[type="hidden"][name="type"]) .f-fin { display: grid; }
.lead:has(input[name="type"][value="test_drive"]:checked) .f-td { display: flex; }
.lead .f-res { grid-column: 1 / -1; display: none; margin: 0; }
.lead:has(input[name="type"][value="reservation"]:checked) .f-res { display: block; }
.seg { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; min-height: 0; }
.seg span { display: block; text-align: center; border: 1px solid #c9ced6; border-radius: var(--radius-sm); padding: 9px 6px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.seg input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }
.done { background: #e9f7ef; color: #0c4a2a; border-radius: var(--radius-sm); padding: 14px; font-weight: 600; }
.form-error { background: #fdecea; color: var(--err); border-radius: var(--radius-sm); padding: 12px; margin-top: 12px; }
.lead.sent .fields, .lead.sent .seg { display: none; }
@media (max-width: 480px) { .lead .fields, .fields-2 { grid-template-columns: 1fr; } }

/* compare */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare { border-collapse: collapse; width: 100%; min-width: 560px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { vertical-align: bottom; }
.compare thead a { display: grid; gap: 4px; color: inherit; text-decoration: none; font-weight: 700; }
.compare thead img { width: 100%; max-width: 240px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.compare thead small { color: var(--muted); font-weight: 400; }
.compare tbody th { color: var(--muted); font-weight: 600; width: 140px; }
.note { background: #fff7e0; border-radius: var(--radius-sm); padding: 10px 14px; }
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #fff; padding-bottom: env(safe-area-inset-bottom, 0px); }
.compare-in { display: flex; gap: 16px; align-items: center; min-height: 60px; }
.compare-in span { margin-right: auto; }
.compare-bar .link { color: #fff; }
.compare-bar .btn { background: var(--accent); color: var(--accent-ink); }

/* footer */
.foot { background: var(--soft); border-top: 1px solid var(--line); margin-top: 40px; padding-block: 40px 28px; font-size: .92rem; }
[data-template="bold"] .foot { background: #0d1014; color: #d4d8de; border: 0; }
[data-template="bold"] .foot a { color: #fff; }
[data-template="bold"] .foot h2 { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.foot h2 { font-size: 1rem; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hours summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--brand); font-weight: 600; }
[data-template="bold"] .foot .hours summary { color: #fff; }
.hours .ic { width: 16px; height: 16px; }
.hours table { border-collapse: collapse; margin-top: 8px; font-size: .9rem; }
.hours th { text-align: left; font-weight: 400; padding: 2px 16px 2px 0; }
.hours td { padding: 2px 0; }
.hours tr.today { font-weight: 700; }
.legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; color: var(--muted); font-size: .82rem; }
[data-template="bold"] .legal { border-color: #2a2f37; color: #a3a9b3; }
.prose h2 { margin-top: 1.4em; }
.prose p { max-width: 70ch; }
body.soon { display: grid; place-items: center; min-height: 100vh; text-align: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, .foot, .car-actions, .lead, .compare-bar { display: none; } }
/* Phone: photos, then title, price and the buttons, then the details, then the form. */
@media (max-width: 960px) {
  .car-page { display: flex; flex-direction: column; gap: 16px; }
  .car-main, .car-side { display: contents; }
  .gallery, .buy-box, .spec, .desc, .rep, .calc, .mot, #enquire { min-width: 0; width: 100%; }
  .gallery { order: 1; } .buy-box { order: 2; } .spec { order: 3; margin-top: 0; } .desc, .mot { order: 4; margin-top: 0; } .calc, .rep { order: 5; margin-top: 0; } #enquire { order: 6; }
}
@media (max-width: 480px) { [data-template="bold"] .wordmark { font-size: 1.05rem; letter-spacing: 0; } .wordmark { font-size: 1.15rem; } }

/* Free dealer websites (D-77): reserved and ULEZ badges, the fee note, MOT history, questions, the new pages */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; border-radius: 99px; padding: 3px 12px; margin: 4px 6px 0 0; }
.badge .ic { width: 16px; height: 16px; }
.badge.reserved { background: #fff4d6; color: #7a4b00; }
.badge.ulez { background: #e6f6ec; color: #11602f; font-weight: 600; }
.ulez-row { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; } .ulez-row .badge { margin: 0; }
.fee-note { margin: -10px 0 12px; }
.mot { margin-top: 28px; }
.mot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mot-list > li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.mot-list details { margin-top: 6px; } .mot-list summary { cursor: pointer; color: var(--ink-2); font-size: .9rem; }
.mot-list ul { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 1px 9px; background: var(--soft); }
.pill.ok { background: #e6f6ec; color: #11602f; } .pill.e { background: #fde8e8; color: #9b1c1c; }
.faq h2 { margin-bottom: 12px; }
.qa { border-top: 1px solid var(--line); padding: 14px 0; } .qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; font-weight: 600; list-style-position: outside; } .qa p { margin: 8px 0 0; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; margin: 18px 0; } .ticks li { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .mot { order: 5; margin-top: 0; min-width: 0; width: 100%; } }


/* Showroom template (D-120): full-width photos, a calm header, generous spacing. Everything here is scoped to it,
   except the new sections below, which only exist on sites that fill them in. */
[data-template="showroom"] {
  --ink: #11161c; --ink-2: #39424e; --muted: #5a6370; --line: #e6e8ec; --soft: #f5f6f8; --bg: #ffffff; --card: #ffffff;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(17, 22, 28, .05), 0 8px 24px rgba(17, 22, 28, .06);
  --head-weight: 650; --head-track: -0.02em; --ph-ratio: 3 / 2;
  --hero-bg: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #000));
}
[data-template="showroom"] .top { background: color-mix(in srgb, #fff 92%, transparent); backdrop-filter: saturate(150%) blur(10px); }
[data-template="showroom"] .btn { border-radius: 999px; padding-inline: 22px; font-weight: 600; }
[data-template="showroom"] .hero { min-height: min(78svh, 640px); display: flex; align-items: flex-end; }
[data-template="showroom"] .hero .hero-in { padding-block: clamp(32px, 7vw, 72px); width: 100%; }
[data-template="showroom"] .hero h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 3.8rem); max-width: 16ch; letter-spacing: -0.03em; line-height: 1.05; }
[data-template="showroom"] .hero.has-img::before { background: linear-gradient(180deg, rgba(0, 0, 0, .18) 20%, rgba(0, 0, 0, .68) 100%); }
[data-template="showroom"] .search { border-radius: var(--radius); box-shadow: 0 20px 44px rgba(0, 0, 0, .22); }
[data-template="showroom"] .usps { background: var(--bg); border-bottom: 1px solid var(--line); }
[data-template="showroom"] .sec { padding-block: clamp(36px, 5.5vw, 72px); }
[data-template="showroom"] .grid-cars { gap: 22px; }
[data-template="showroom"] .card { box-shadow: var(--shadow); border-color: transparent; }
[data-template="showroom"] .card .ph img { transition: transform .35s ease; }
@media (hover: hover) { [data-template="showroom"] .card:hover .ph img { transform: scale(1.03); } }
[data-template="showroom"] .price { color: var(--ink); }
[data-template="showroom"] .foot { background: var(--ink); color: #eef0f3; }
[data-template="showroom"] .foot a { color: inherit; }
[data-template="showroom"] .foot h2, [data-template="showroom"] .foot .hours summary { color: #fff; }
[data-template="showroom"] .legal { border-color: #2a2f37; color: #b7bcc5; }
[data-template="showroom"] .nav a { white-space: nowrap; }
@media (max-width: 960px) {
  [data-template="showroom"] body:has(.car-page) { padding-bottom: 72px; }
}

/* new sections (only on sites that fill them in) */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.why-grid li { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.why-grid h3 { display: flex; gap: 8px; align-items: center; font-size: 1.08rem; margin-bottom: 6px; }
.why-grid .ic { color: var(--accent); }
.why-grid p { margin: 0; color: var(--ink-2); }
.band { padding-block: clamp(28px, 4vw, 48px); }
.band-in { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band-in p { margin: 0; max-width: 60ch; color: inherit; opacity: .95; }
.band-in h2 { margin: 0 0 6px; }
.band-fin { background: var(--brand); color: var(--brand-ink); }
.band-fin .btn { background: var(--brand-ink); color: var(--brand); }
.band-svc { background: var(--soft); }
.reviews-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.reviews-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); }
.reviews-grid blockquote { margin: 0 0 8px; }
.team-img, .premises-img { border-radius: var(--radius); margin: 8px 0 18px; }
.map { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.map iframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); }
.calc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 20px; background: var(--card); }
.calc-out { font-size: 1.1rem; margin: 14px 0; }
.calc-out b { font-size: 1.7rem; font-weight: 800; }
.car-stick { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); align-items: center; }
.car-stick .btn { flex: 1; }
.car-stick b { flex: none; font-size: 1.05rem; }
@media (max-width: 960px) { .car-stick { display: flex; } }

/* demo ribbon: quiet, in the corner, explains itself when tapped */
.ribbon { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; font-size: .8rem; color: #fff; background: #11161c; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); max-width: min(92vw, 340px); }
.ribbon[open] { border-radius: 14px; }
.ribbon summary { list-style: none; cursor: pointer; padding: 8px 14px; font-weight: 600; white-space: nowrap; }
.ribbon summary::-webkit-details-marker { display: none; }
.ribbon-body { padding: 0 14px 12px; }
.ribbon-body p { margin: 0 0 8px; line-height: 1.4; }
.ribbon-body a { color: #fff; font-weight: 700; }
body:has(.car-stick) .ribbon { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 961px) { body:has(.car-stick) .ribbon { bottom: 12px; } }
