/* Racewayy customer pages: the look of the first Racewayy site (livery, roundels, twin stripes), carried over. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Saira"; font-style: italic; font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; src: url(/fonts/saira-italic.woff2) format("woff2"); }
/* Racewayy design tokens. Values and roles are documented in DESIGN.md.
   Pages use these names, never raw values. */


:root {
  /* Livery: the navy body of the car, taken from the badge */
  --color-track: #0e2148;          /* board and header background */
  --color-track-deep: #081633;     /* inset controls on the board, checker squares */
  --color-track-line: #243f78;     /* dividers on the board (decorative) */
  --color-on-track: #ffffff;       /* main text on the board */
  --color-on-track-muted: #c2ccdb; /* descriptions on the board, 9.4:1 */
  --color-on-track-subtle: #97a6c1;/* dates on the board, 6.2:1 */
  --color-stripe: #b9c3d3;         /* the twin silver racing stripes (decorative) */

  /* Price roundels: the white number circle on a race car */
  --color-plate: #ffffff;
  --color-plate-ink: #0e2148;
  --color-plate-note: #4f5a70;     /* "case of 12", "each" under a price, 7.4:1 */
  --color-chrome: #c9d2df;         /* badge silver: rules on the page */
  --color-clearance: #ffd23f;      /* "Final lap" roundels, the one accent */
  --color-clearance-ink: #5c4700;  /* small text on yellow, 6.3:1 */

  /* Page: brushed silver */
  --color-page: #e7ebf1;
  --color-surface: #ffffff;
  --color-ink: #0e2148;            /* body text, 14:1 */
  --color-muted: #4f5a70;          /* secondary text, 6.3:1 */
  --color-primary: #0e2148;        /* buttons and links: livery navy */
  --color-on-primary: #ffffff;

  /* Status */
  --color-success: #1d8a4e;        /* "Live" in the deal manager */
  --color-success-bg: #d8f5dd;
  --color-warning: #6e5100;        /* "Upcoming" */
  --color-warning-bg: #fff1c4;
  --color-neutral-status: #4d5566; /* "Expired" */
  --color-neutral-status-bg: #dde2ea;
  --color-open-on-track: #4fd08a;  /* open dot in the header */
  --color-closed-on-track: #ff7a68;
  --color-focus: #0e2148;          /* focus ring on light surfaces */
  --color-error: #b3261e;          /* form errors in the deal manager */

  /* Type */
  --font-display: "Saira", "Arial Narrow", sans-serif;  /* italic only, set narrow */
  --display-stretch: 68%;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-display-xl: clamp(60px, 16vw, 128px); /* "On sale today" */
  --text-display-l: clamp(36px, 8vw, 52px);     /* section headings */
  --text-tile-title: clamp(28px, 6.4vw, 44px);  /* deal name in the top 5 tile */
  --text-brand: 30px;        /* store name in the header */
  --text-title: 19px;        /* deal names */
  --text-body: 17px;
  --text-small: 15px;
  --text-caption: 13px;

  /* Spacing, 4px base */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-14: 56px;
  --content-width: 1040px;  /* page width; sections stack in the same order at every size */
  --read-width: 640px;      /* headline and text blocks */
  --gutter: clamp(16px, 4vw, 24px);

  /* Shape and depth */
  --roundel: clamp(92px, 24vw, 112px);       /* price roundel in the list; price text scales with it */
  --tile-roundel: clamp(112px, 30vw, 156px); /* price roundel in the top 5 tile */
  --tile-pad: clamp(20px, 5vw, 32px);
  --radius-s: 6px;
  --radius-m: 10px;          /* buttons, inputs, segmented control */
  --radius-l: 18px;          /* cards and the top 5 tile */
  --shadow-card: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px -18px rgba(2,8,26,.7);
  --shadow-card-light: 0 1px 2px rgba(14,33,72,.06), 0 12px 32px -16px rgba(14,33,72,.28);
  --color-track-raised: #142b5c;   /* deal cards on the navy */
  --color-glow: rgba(120,152,228,.32);
  --radius-round: 999px;
  --target-min: 44px;

  /* Livery surfaces (hero, ticker, deal cards). Light values here, dark below.
     The menu bar, footer and top 5 tile stay navy in both themes. */
  --livery-bg: #e9eef6;
  --livery-raised: #ffffff;
  --livery-deep: #dbe2ee;
  --livery-line: #c9d2df;
  --livery-ink: #0e2148;
  --livery-muted: #3d4a63;        /* 8.4:1 on the light livery */
  --livery-subtle: #56627a;       /* 5.6:1 */
  --livery-stripe: #0e2148;
  --livery-glow: rgba(90,130,220,.25);
  --livery-faint: rgba(14,33,72,.06);
  --livery-card-shadow: 0 1px 2px rgba(14,33,72,.06), 0 12px 28px -14px rgba(14,33,72,.3);
  --livery-focus: #0e2148;
  --ticker-bg: #0e2148;           /* the moving strip is always the opposite of what's around it */
  --ticker-ink: #ffffff;
}

/* Dark theme: follows the phone's setting, unless the visitor picked one with the switch (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-page: #071230;
    --color-surface: #0f1f45;
    --color-ink: #e8edf6;
    --color-muted: #a3b0c8;
    --color-primary: #e8edf6;
    --color-on-primary: #0e2148;
    --color-chrome: #24386a;
    --color-success: #7be0a6; --color-success-bg: #123d2a;
    --color-warning: #ffd23f; --color-warning-bg: #3d3210;
    --color-neutral-status: #c2ccdb; --color-neutral-status-bg: #24365f;
    --color-focus: #ffd23f;
    --color-error: #ff8a7a;
    --livery-bg: #0e2148;
    --livery-raised: #142b5c;
    --livery-deep: #081633;
    --livery-line: #243f78;
    --livery-ink: #ffffff;
    --livery-muted: #c2ccdb;
    --livery-subtle: #97a6c1;
    --livery-stripe: #b9c3d3;
    --livery-glow: rgba(120,152,228,.32);
    --livery-faint: rgba(255,255,255,.06);
    --livery-card-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px -18px rgba(2,8,26,.7);
    --livery-focus: #ffd23f;
    --ticker-bg: #ffffff;
    --ticker-ink: #0e2148;
  }
}
:root[data-theme="dark"] {
  --color-page: #071230;
  --color-surface: #0f1f45;
  --color-ink: #e8edf6;
  --color-muted: #a3b0c8;
  --color-primary: #e8edf6;
  --color-on-primary: #0e2148;
  --color-chrome: #24386a;
  --color-success: #7be0a6; --color-success-bg: #123d2a;
  --color-warning: #ffd23f; --color-warning-bg: #3d3210;
  --color-neutral-status: #c2ccdb; --color-neutral-status-bg: #24365f;
  --color-focus: #ffd23f;
  --color-error: #ff8a7a;
  --livery-bg: #0e2148;
  --livery-raised: #142b5c;
  --livery-deep: #081633;
  --livery-line: #243f78;
  --livery-ink: #ffffff;
  --livery-muted: #c2ccdb;
  --livery-subtle: #97a6c1;
  --livery-stripe: #b9c3d3;
  --livery-glow: rgba(120,152,228,.32);
  --livery-faint: rgba(255,255,255,.06);
  --livery-card-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px -18px rgba(2,8,26,.7);
  --livery-focus: #ffd23f;
  --ticker-bg: #ffffff;
  --ticker-ink: #0e2148;
}

/* ---------- Page pieces from the first site ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--color-page); color: var(--color-ink);
  font: 400 var(--text-body)/1.5 var(--font-body);
}
a { color: var(--color-primary); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-s); }
.on-track { --color-focus: var(--color-clearance); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-2); top: -80px; z-index: 20; background: var(--color-clearance); color: var(--color-plate-ink); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); font-weight: 600; }
.skip:focus { top: var(--space-2); }

.wrap { max-width: calc(var(--content-width) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.display { font-family: var(--font-display); font-style: italic; font-weight: 800; font-stretch: var(--display-stretch); }
.section-title { font-size: var(--text-display-l); line-height: 1; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 50px; padding: 0 var(--space-5); text-align: center; white-space: nowrap;
  border-radius: var(--radius-round); text-decoration: none; font: 600 var(--text-body)/1.1 var(--font-body);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn.light { background: var(--color-on-track); color: var(--color-track); }
.btn.ghost { color: var(--color-on-track); box-shadow: inset 0 0 0 2px var(--color-track-line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--color-stripe); }
.btn.primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn.secondary { color: var(--color-primary); box-shadow: inset 0 0 0 2px var(--color-primary); }

/* ---------- Menu bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--color-track) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  color: var(--color-on-track); padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--color-track-line);
}
.bar .wrap { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; }
.brand { display: flex; align-items: center; gap: var(--space-2); color: inherit; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: var(--radius-round); box-shadow: 0 0 0 2px var(--color-stripe); }
.brand span { font-size: 26px; line-height: 1; }
.menu { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: flex; align-items: center; min-height: var(--target-min); padding: 0 var(--space-3); border-radius: var(--radius-round);
  color: var(--color-on-track-muted); text-decoration: none; font: 600 var(--text-small)/1 var(--font-body); white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.menu a:hover { color: var(--color-on-track); }
.menu a[aria-current="true"] { color: var(--color-plate-ink); background: var(--color-plate); }
.theme {
  appearance: none; border: 0; cursor: pointer; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--color-on-track);
  box-shadow: inset 0 0 0 1px var(--color-track-line);
}
.theme:hover { background: rgba(255,255,255,.14); }
.theme svg { width: 18px; height: 18px; fill: currentColor; }
.theme .sun { display: none; }
.is-dark .theme .sun { display: block; }
.is-dark .theme .moon { display: none; }

/* ---------- Livery ---------- */
.livery {
  --color-track: var(--livery-bg); --color-track-raised: var(--livery-raised); --color-track-deep: var(--livery-deep);
  --color-track-line: var(--livery-line); --color-on-track: var(--livery-ink); --color-on-track-muted: var(--livery-muted);
  --color-on-track-subtle: var(--livery-subtle); --color-stripe: var(--livery-stripe); --color-glow: var(--livery-glow);
  --color-focus: var(--livery-focus);
  background: var(--color-track); color: var(--color-on-track); position: relative; overflow: hidden; isolation: isolate;
}

/* Hero backdrop: floodlight glow, speed lines and the name painted big on the track */
.hero { position: relative; padding-top: var(--space-10); padding-bottom: var(--space-14); }
.backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, var(--color-glow), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(255,210,63,.07), transparent 70%);
}
.backdrop::after {
  content: ""; position: absolute; inset: -20% -10% -20% 35%;
  background: repeating-linear-gradient(112deg, transparent 0 46px, var(--livery-faint) 46px 48px, transparent 48px 70px, var(--livery-faint) 70px 71px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.wordmark {
  position: absolute; left: -2vw; bottom: -4vw; margin: 0; white-space: nowrap;
  font-size: clamp(120px, 30vw, 380px); line-height: .8; letter-spacing: -2px;
  color: transparent; -webkit-text-stroke: 1.5px var(--livery-faint);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.hero h1 { font-size: var(--text-display-xl); line-height: .86; margin: 0; letter-spacing: -1px; }
.hero h1 span { display: block; }
.lede { margin: var(--space-4) 0 0; max-width: 34ch; font-size: 19px; line-height: 1.45; color: var(--color-on-track-muted); }
.status {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5);
  padding: 6px var(--space-3) 6px 10px; border-radius: var(--radius-round);
  background: var(--livery-faint); box-shadow: inset 0 0 0 1px var(--color-track-line);
  font-size: var(--text-small); color: var(--color-on-track);
}
.dot { width: 9px; height: 9px; border-radius: var(--radius-round); background: var(--color-on-track-subtle); flex-shrink: 0; }
.dot.open { background: var(--color-open-on-track); box-shadow: 0 0 0 4px rgba(79,208,138,.18); }
.dot.closed { background: var(--color-closed-on-track); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Load sequence: the headline drives in once, then the tile */
@keyframes drive-in { from { opacity: 0; transform: translateX(-28px) skewX(-6deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero h1 span { animation: drive-in .7s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 span + span { animation-delay: .08s; }
.hero .lede, .hero .status, .hero-actions { animation: rise .6s .2s cubic-bezier(.2,.8,.2,1) both; }
.top-deals { animation: rise .7s .3s cubic-bezier(.2,.8,.2,1) both; }

/* Price roundel: the white race-number circle */
.roundel {
  --size: var(--roundel);
  width: var(--size); height: var(--size); flex-shrink: 0; position: relative; z-index: 1;
  display: grid; place-content: center; text-align: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 60%, #e9eef6);
  color: var(--color-plate-ink);
  box-shadow: 0 0 0 4px var(--roundel-gap, var(--color-track)), 0 0 0 6px var(--color-stripe), 0 14px 28px -10px rgba(0,0,0,.6);
}
.roundel b { font-size: calc(var(--size) * .31); line-height: 1; font-variant-numeric: tabular-nums; }
.roundel b.short { font-size: calc(var(--size) * .44); }
.roundel b.long { font-size: calc(var(--size) * .24); }
.roundel small { display: block; margin: 2px auto 0; font: 600 var(--text-caption)/1.1 var(--font-body); color: var(--color-plate-note); max-width: calc(var(--size) * .8); }
.roundel.final { background: radial-gradient(circle at 35% 30%, #ffe27a, var(--color-clearance) 60%); box-shadow: 0 0 0 4px var(--roundel-gap, var(--color-track)), 0 0 0 6px var(--color-clearance), 0 14px 28px -10px rgba(0,0,0,.6); }
.roundel.final small { color: var(--color-clearance-ink); }

/* Twin silver racing stripes, centered under a roundel */
.striped { position: relative; }
.striped::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 0; pointer-events: none;
  right: calc(var(--stripe-x) - 17px);
  background: linear-gradient(90deg, var(--color-stripe) 0 13px, transparent 13px 21px, var(--color-stripe) 21px 34px);
  transform-origin: top; animation: stripes .8s .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes stripes { from { transform: scaleY(0); } }

/* ---------- Top 5 tile ---------- */
.top-deals[hidden] { display: none; }
.tile {
  /* The tile stays navy in both themes */
  --color-on-track: #ffffff; --color-on-track-muted: #c2ccdb; --color-on-track-subtle: #97a6c1;
  --color-track-line: #243f78; --color-stripe: #b9c3d3; --color-focus: var(--color-clearance); --color-glow: rgba(120,152,228,.32);
  color: var(--color-on-track);
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  background: linear-gradient(160deg, #102452, #081633 65%);
  box-shadow: inset 0 0 0 1px var(--color-track-line), var(--shadow-card), 0 0 80px -20px var(--livery-glow);
}
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide {
  --roundel-gap: #0b1a3e;
  --stripe-x: calc(var(--tile-pad) + var(--tile-roundel) / 2);
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: 1fr auto; align-content: start; gap: var(--space-5) var(--space-4);
  padding: var(--tile-pad) var(--tile-pad) calc(var(--tile-pad) + var(--space-6));
}
.slide.striped::before {
  -webkit-mask-image: linear-gradient(#000 calc(var(--tile-pad) + var(--tile-roundel) * .8), transparent calc(var(--tile-pad) + var(--tile-roundel) + 24px));
  mask-image: linear-gradient(#000 calc(var(--tile-pad) + var(--tile-roundel) * .8), transparent calc(var(--tile-pad) + var(--tile-roundel) + 24px));
}
.slide .pos { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.slide-media { width: clamp(110px, 32vw, 170px); aspect-ratio: 1; border-radius: var(--radius-l); display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 90%, #ffffff, #dfe6f1); box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
.slide-media img { max-width: 84%; max-height: 84%; object-fit: contain; border-radius: 8px; filter: drop-shadow(0 8px 10px rgba(14,33,72,.3)); }
.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--radius-round); font: 600 var(--text-small)/1.2 var(--font-body); background: rgba(255,255,255,.1); color: var(--color-on-track); box-shadow: inset 0 0 0 1px var(--color-track-line); }
.tag.last { background: var(--color-clearance); color: var(--color-plate-ink); box-shadow: none; }
.slide .roundel { --size: var(--tile-roundel); }
.slide .roundel small { font-size: 14px; }
.slide .copy { grid-column: 1 / -1; position: relative; z-index: 1; }
.slide h3 { font-size: var(--text-tile-title); line-height: 1; margin: 0; }
.slide p { margin: var(--space-2) 0 0; color: var(--color-on-track-muted); font-size: var(--text-small); line-height: 1.4; max-width: 52ch; }

.laps { position: absolute; left: var(--tile-pad); right: var(--tile-pad); bottom: 0; display: flex; gap: var(--space-2); }
.laps button {
  flex: 1; appearance: none; background: none; border: 0; padding: 0 0 var(--space-5); cursor: pointer;
  height: var(--target-min); display: flex; align-items: flex-end;
}
.laps button span { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.laps button span::after { content: ""; display: block; height: 100%; background: var(--color-plate); transform: scaleX(0); transform-origin: left; }
.laps button.done span::after, .laps button[aria-current="true"] span::after { transform: scaleX(1); }
.laps.run button[aria-current="true"] span::after { transform: scaleX(0); animation: lap var(--lap) linear forwards; }
.laps button:focus-visible { outline-offset: -2px; }
@keyframes lap { to { transform: scaleX(1); } }

/* ---------- Ticker: the deals roll past like a trackside board ---------- */
/* A flat band: the text always sits fully on it, on any screen width */
.ticker {
  --check: repeating-conic-gradient(var(--ticker-ink) 0 25%, var(--ticker-bg) 0 50%) 0 0 / 8px 8px;
  display: flex; align-items: stretch; position: relative; z-index: 2; overflow: hidden;
  background: var(--ticker-bg); color: var(--ticker-ink);
  padding: 8px 0; box-shadow: 0 12px 30px -14px rgba(0,0,0,.5);
}
.ticker[hidden] { display: none; }
/* Checkered edges top and bottom, like the finish line */
.ticker::before, .ticker::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: var(--check); background-size: 8px 8px; opacity: .9; }
.ticker::before { top: 0; }
.ticker::after { bottom: 0; }
/* Fixed yellow tab on the left; the deals roll out from behind it */
.ticker-label {
  position: relative; z-index: 1; flex-shrink: 0; display: flex; align-items: center; gap: var(--space-2);
  padding: 0 calc(var(--space-5) + 14px) 0 var(--gutter); margin: 4px 0;
  background: var(--color-clearance); color: var(--color-plate-ink); font-size: 20px; line-height: 1; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.ticker-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--color-plate-ink); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticker-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent); }
.ticker-run { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-view:hover .ticker-run { animation-play-state: paused; }
.ticker ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 12px 0; }
.ticker li { display: flex; align-items: center; gap: 10px; padding: 0 var(--space-5); font-size: 22px; line-height: 1.1; white-space: nowrap; }
.ticker li::after { content: ""; width: 12px; height: 12px; margin-left: var(--space-5); border-radius: 2px; background: var(--check); background-size: 6px 6px; box-shadow: 0 0 0 1px var(--ticker-ink); }
.ticker li b { background: var(--ticker-ink); color: var(--ticker-bg); padding: 4px 10px 5px; border-radius: var(--radius-round); font-size: 20px; }
.ticker li.final b { background: var(--color-clearance); color: var(--color-plate-ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- All deals ---------- */
.board { position: relative; padding-top: var(--space-14); padding-bottom: var(--space-14); }
.board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); }
.board .sub { margin: var(--space-2) 0 0; color: var(--color-on-track-muted); font-size: var(--text-small); }
.filter {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--radius-round);
  background: var(--color-track-deep); box-shadow: inset 0 0 0 1px var(--color-track-line);
}
.filter button {
  appearance: none; border: 0; background: transparent; color: var(--color-on-track-muted);
  font: 600 var(--text-small)/1 var(--font-body); padding: 0 var(--space-4);
  min-height: 40px; border-radius: var(--radius-round); cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.filter button:hover { color: var(--color-on-track); }
.filter button[aria-pressed="true"] { background: var(--color-plate); color: var(--color-plate-ink); }

.cards { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.card {
  --roundel-gap: var(--color-track-raised);
  --stripe-x: calc(var(--space-5) + var(--roundel) / 2);
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center;
  padding: var(--space-5); background: var(--color-track-raised);
  box-shadow: inset 0 0 0 1px var(--color-track-line), var(--livery-card-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--color-stripe), var(--livery-card-shadow); }
.card.striped::before { opacity: .35; }
.card-body { position: relative; z-index: 1; }
/* Product photo: a bright stage at the top of the card; the price overlaps its bottom edge */
.card.has-img { grid-template-rows: auto 1fr; align-items: start; padding-top: 0; }
.card-media {
  grid-column: 1 / -1; position: relative; z-index: 1; margin: 0 calc(-1 * var(--space-5));
  height: 180px; display: grid; place-items: center;
  background: radial-gradient(70% 90% at 50% 100%, #ffffff, #e3e9f3);
  border-bottom: 1px solid var(--color-track-line);
}
.card-media img { max-width: 80%; max-height: 156px; object-fit: contain; border-radius: 10px; filter: drop-shadow(0 10px 12px rgba(14,33,72,.25)); }
.card.has-img .roundel { z-index: 2; margin-top: calc(-1 * var(--roundel) / 2 - var(--space-4)); align-self: start; }
.card.has-img .card-body { padding-top: var(--space-1); }
.card.has-img.striped::before { top: 180px; }
.card h3 { font: 600 var(--text-title)/1.25 var(--font-body); margin: 0; }
.card p { margin: var(--space-1) 0 0; color: var(--color-on-track-muted); font-size: var(--text-small); line-height: 1.4; }
.card.final { box-shadow: inset 0 0 0 2px var(--color-clearance), var(--livery-card-shadow); }
.card-tag { margin-bottom: var(--space-2); padding: 3px 10px; font-size: var(--text-caption); }
.until { margin-top: var(--space-3); font-size: var(--text-small); color: var(--color-on-track-subtle); display: flex; align-items: center; gap: 6px; }
.until.last { color: var(--color-on-track); font-weight: 600; }
.empty { grid-column: 1 / -1; padding: var(--space-8) var(--space-5); border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--color-track-line); color: var(--color-on-track-muted); }
.empty strong { display: block; color: var(--color-on-track); font: italic 800 28px/1.1 var(--font-display); font-stretch: var(--display-stretch); margin-bottom: var(--space-1); }

.finish { height: 14px; background: repeating-conic-gradient(var(--color-on-track) 0 25%, var(--color-track-deep) 0 50%) 0 0 / 14px 14px; }

/* ---------- Find us ---------- */
.visit { padding-top: var(--space-14); padding-bottom: var(--space-14); }
.visit-grid { display: grid; gap: var(--space-4); margin-top: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.panel { background: var(--color-surface); border-radius: var(--radius-l); padding: var(--space-6); box-shadow: var(--shadow-card-light); }
.panel h3 { font: 600 var(--text-small)/1.2 var(--font-body); margin: 0 0 var(--space-3); color: var(--color-muted); }
.addr { font-style: normal; font-size: 24px; line-height: 1.3; font-weight: 500; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.actions .btn { padding: 0 var(--space-3); }
.actions .wide { grid-column: 1 / -1; }
.phone { margin: var(--space-2) 0 0; font-size: 18px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { padding: 10px 0; border-top: 1px solid var(--color-chrome); text-align: left; font-weight: 400; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 600; }
.hours tr.today th { box-shadow: inset 4px 0 0 var(--color-primary); padding-left: var(--space-3); }
.hours .today-note { font-weight: 400; color: var(--color-muted); }

/* ---------- Footer ---------- */
footer { background: var(--color-track-deep); color: var(--color-on-track-muted); padding-top: var(--space-10); padding-bottom: calc(var(--space-10) + env(safe-area-inset-bottom)); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-10); align-items: center; justify-content: space-between; }
footer .brand { color: var(--color-on-track); }
footer nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); list-style: none; margin: 0; padding: 0; }
footer nav a { color: var(--color-on-track-muted); text-decoration: none; display: inline-flex; min-height: var(--target-min); align-items: center; font-weight: 500; }
footer nav a:hover { color: var(--color-on-track); }
footer .fine { margin: var(--space-6) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--color-track-line); }

@media (min-width: 960px) {
  .hero { padding-top: var(--space-14); padding-bottom: 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: var(--space-14); }
}
@media (max-width: 400px) {
  .bar .brand span { display: none; }
  .menu a { padding: 0 8px; font-size: 14px; }
  .menu-top { display: none; }
  .wide-only { display: none; }
  .ticker-label { font-size: 18px; padding-right: calc(var(--space-3) + 14px); }
  .hero-actions .btn { flex: 1; padding: 0 var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { display: none; }  /* decorative, and only useful when it moves */
}

/* ---------- Added for the multi-page site ---------- */
a.card, a.card:hover { color: inherit; text-decoration: none; }
.cards > li { display: grid; }
.card h3 { color: var(--color-on-track); }
.tag.new { background: #1f4fd8; color: #fff; box-shadow: none; }
.slide h3 a { color: inherit; text-decoration: none; }
.slide-media { display: grid; overflow: hidden; }
.slide-media img { width: 84%; height: auto; }
.card-media img { width: auto; height: auto; }
.theme { text-decoration: none; }
.theme[aria-current="page"] { background: var(--color-plate); color: var(--color-plate-ink); }
.btn.sm { min-height: 44px; padding: 0 var(--space-4); font-size: var(--text-small); }
.btn.ghost svg { fill: currentColor; }
.more-wrap { margin: var(--space-8) 0 0; text-align: center; }
.more-wrap:empty { display: none; }
.board-new { padding-top: 0; }
.empty a { color: var(--color-on-track); font-weight: 600; }
.group + .group { margin-top: var(--space-14); }
.group .cards { margin-top: var(--space-5); }

/* Inner pages: a shorter navy band with the title */
.hero-s { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.hero-s h1 { font-size: clamp(52px, 13vw, 96px); line-height: .9; margin: 0; letter-spacing: -1px; }
.hero-s .lede { margin-top: var(--space-3); }
.hero-s .status { margin-top: var(--space-4); }
.hero-s + .board { padding-top: var(--space-4); }

/* Search box on the navy */
.find { position: relative; max-width: 520px; margin-top: var(--space-5); }
.find svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: var(--color-on-track-muted); pointer-events: none; }
.find input {
  width: 100%; min-height: 52px; padding: 0 var(--space-4) 0 46px; border: 0; border-radius: var(--radius-round);
  background: var(--color-track-raised); color: var(--color-on-track); font: 500 var(--text-body) var(--font-body);
  box-shadow: inset 0 0 0 1px var(--color-track-line); -webkit-appearance: none; appearance: none;
}
.find input::placeholder { color: var(--color-on-track-subtle); }
.find input:focus { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* Deals filter as links, sort menu, shelf chips */
.filter a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-round);
  color: var(--color-on-track-muted); font: 600 var(--text-small)/1 var(--font-body); text-decoration: none;
}
.filter a:hover { color: var(--color-on-track); }
.filter a[aria-current="true"] { background: var(--color-plate); color: var(--color-plate-ink); }
.sort { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); color: var(--color-on-track-muted); font-weight: 600; }
.sort select {
  min-height: 44px; padding: 0 36px 0 var(--space-4); border: 0; border-radius: var(--radius-round); -webkit-appearance: none; appearance: none;
  background: var(--color-track-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2397a6c1'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center / 20px;
  color: var(--color-on-track); font: 600 var(--text-small) var(--font-body); box-shadow: inset 0 0 0 1px var(--color-track-line);
}
.shelves { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin: var(--space-5) calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter); }
.shelves::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-round);
  color: var(--color-on-track); text-decoration: none; font: 600 var(--text-small)/1 var(--font-body); box-shadow: inset 0 0 0 1px var(--color-track-line);
}
.chip .n { color: var(--color-on-track-subtle); font-weight: 500; }
.chip[aria-current="true"] { background: var(--color-plate); color: var(--color-plate-ink); box-shadow: none; }
.chip[aria-current="true"] .n { color: var(--color-plate-note); }

/* Item page */
.item-hero { padding-top: var(--space-5); padding-bottom: var(--space-14); }
.item-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.item-tools .theme svg { fill: currentColor; width: 18px; height: 18px; }
.item-grid { display: grid; gap: var(--space-8); align-items: start; }
.item-stage {
  --stripe-x: calc(var(--space-5) + var(--tile-roundel) / 2); --roundel-gap: var(--color-track);
  position: relative; border-radius: var(--radius-l); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: calc(var(--tile-roundel) / 3);
  background: radial-gradient(70% 90% at 50% 100%, #ffffff, #e3e9f3); box-shadow: var(--livery-card-shadow);
}
.item-stage.striped::before { top: 100%; bottom: calc(-1 * var(--tile-roundel) / 3 - var(--space-14)); opacity: .5; }
.item-stage img { width: 84%; height: auto; max-height: 84%; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 14px 18px rgba(14,33,72,.28)); }
.item-stage .roundel { --size: var(--tile-roundel); position: absolute; right: var(--space-5); bottom: calc(-1 * var(--tile-roundel) / 3); }
.item-stage .roundel small { font-size: 14px; }
.item-copy { position: relative; z-index: 1; }
.item-copy .tag { margin-bottom: var(--space-3); }
.item-copy h1 { font-size: var(--text-tile-title); font-size: clamp(36px, 9vw, 60px); line-height: .95; margin: 0; }
.item-copy .lede { margin-top: var(--space-3); }
.was { margin: var(--space-2) 0 0; color: var(--color-on-track-muted); font-size: var(--text-small); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); margin: var(--space-5) 0 0; }
.facts div { padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--color-track-raised); box-shadow: inset 0 0 0 1px var(--color-track-line); }
.facts dt { font-size: var(--text-caption); font-weight: 600; color: var(--color-on-track-subtle); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.fine-s { margin: var(--space-4) 0 0; font-size: var(--text-small); color: var(--color-on-track-subtle); }
@media (min-width: 900px) {
  .item-grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: var(--space-14); }
  .hero-s { padding-top: var(--space-14); padding-bottom: var(--space-10); }
}

/* Footer */
.foot-logo { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.foot-addr { margin: var(--space-5) 0 0; }
footer a { color: var(--color-on-track); }
@media (max-width: 400px) {
  .bar .wrap { gap: var(--space-2); }
  footer .brand span { display: inline; }
}
.visit.no-head { padding-top: var(--space-8); }

/* Bottom tab bar with icons on phones; the top menu takes over on wide screens */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: #0e2148; padding: 4px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 rgba(255,255,255,.08), 0 -10px 30px -12px rgba(2,8,26,.5);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; color: #c2ccdb; font: 600 12px/1 var(--font-body); text-decoration: none; border-radius: 12px; }
.tab .ti { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: #fff; }
.tab.on { color: #fff; }
.tab.on .ti { color: var(--color-clearance); }
.tab:focus-visible { outline: 3px solid var(--color-clearance); outline-offset: -3px; }
@media (max-width: 899px) {
  .bar .menu { display: none; }
  .bar .push { margin-left: auto; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .bar .brand span { display: inline; }
}
@media (min-width: 900px) { .tabbar { display: none; } }

/* 21+ note for tobacco and nicotine */
.age-note { display: flex; gap: var(--space-3); align-items: center; margin: var(--space-5) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--color-track-raised); box-shadow: inset 0 0 0 1px var(--color-track-line); font-size: var(--text-small); color: var(--color-on-track-muted); }
.age-note strong { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-clearance); color: var(--color-plate-ink); font: italic 800 17px/1 var(--font-display); font-stretch: var(--display-stretch); }
