/* ============================================================
   Grocery Price Tracker — Components & layout (mobile-first)
   ============================================================ */

/* === RESET / BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--color-primary); margin: 0 0 var(--space-3); }
h1 { font-size: var(--text-3xl); font-weight: 800; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-xl); font-weight: 700; }
p { margin: 0 0 var(--space-4); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 2px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
.section { padding-block: var(--space-6); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }

/* Section kicker + heading pattern */
.kicker {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: var(--space-2);
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* === SAMPLE-DATA RIBBON === */
.ribbon {
  background: var(--gold-100);
  color: var(--gold-800);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px var(--space-4);
}

/* === CREST BAR === */
.crest-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.crest-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; padding-block: 8px; }
.crest-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.crest-link img { height: 46px; width: auto; }
.wordmark { line-height: 1.2; }
.wordmark__gov { font-family: var(--font-wordmark); font-style: italic; font-size: 17px; color: var(--navy-800); }
.wordmark__colc {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.crest-bar__search { display: none; }
@media (min-width: 720px) {
  .crest-bar__search { display: flex; align-items: center; gap: 8px; background: var(--grey-100); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 6px 14px; width: 240px; }
  .crest-bar__search svg { flex: none; width: 15px; height: 15px; stroke: var(--grey-600); }
  .crest-bar__search input { border: 0; background: transparent; font-size: var(--text-sm); width: 100%; outline: none; color: var(--color-text); }
}

/* === FOUR-COLOUR STRIPE === */
.stripe {
  height: 6px;
  background: linear-gradient(to right,
    var(--navy-800) 0 25%,
    var(--teal-600) 25% 50%,
    var(--gold-600) 50% 75%,
    var(--orange-600) 75% 100%);
}

/* === NAV === */
.nav { background: var(--teal-600); position: sticky; top: 0; z-index: 50; }
.nav__inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 16px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav a:hover { background: rgba(255, 255, 255, .1); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); border-bottom-color: var(--gold-400); }

/* === HERO === */
.hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; padding: var(--space-7) 0 calc(var(--space-8) + 44px); position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 194, 69, .12), transparent 65%);
  pointer-events: none;
}
.hero h1 { color: #fff; font-size: var(--text-hero); font-weight: 800; max-width: 640px; margin-bottom: var(--space-3); overflow-wrap: break-word; }
@media (max-width: 479px) { .hero h1 { font-size: 1.9rem; } }
.hero .hl { color: var(--gold-400); }
.hero__sub { font-size: 17px; color: rgba(255, 255, 255, .85); max-width: 560px; margin-bottom: var(--space-5); }
.hero--slim { padding: var(--space-6) 0 var(--space-6); }

/* === SEARCH BAR === */
.searchbar { display: flex; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); max-width: 640px; overflow: hidden; }
.searchbar select {
  border: 0; border-right: 1px solid var(--color-border);
  background: #fff; color: var(--grey-600);
  font-size: var(--text-sm); padding: 0 12px; width: 150px;
  display: none;
  outline-offset: -2px;
}
@media (min-width: 480px) { .searchbar select { display: block; } }
.searchbar input { flex: 1; min-width: 0; border: 0; font-size: 16px; padding: 17px 16px; outline-offset: -2px; }
.searchbar button {
  flex: none; width: 58px; border: 0;
  background: var(--teal-600); color: #fff;
  display: grid; place-items: center;
}
.searchbar button:hover { background: var(--teal-700); }
.searchbar button svg { width: 22px; height: 22px; }
.searchbar--page { box-shadow: none; border: 1px solid var(--color-border); }
.searchbar--page input { padding: 12px 16px; }
.searchbar--page button { width: 48px; }

/* === TRY CHIPS === */
.try-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); font-size: var(--text-sm); color: rgba(255, 255, 255, .7); }
.chip {
  display: inline-block;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  text-decoration: none;
}
.chip:hover { background: rgba(255, 255, 255, .22); }

/* === STATS STRIP === */
.stats-strip {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}
.stats-strip > div { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.stats-strip > div:last-child { border-bottom: 0; }
.stat__num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--navy-800); line-height: 1.1; }
.stat__label { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (min-width: 720px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .stats-strip > div { border-bottom: 0; border-right: 1px solid var(--color-border); }
  .stats-strip > div:last-child { border-right: 0; }
}

/* === CATEGORY CHIPS / PILLS === */
.cat-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm); font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  text-decoration: none;
  cursor: pointer;
}
.cat-chip:hover, .cat-chip.is-active { background: var(--teal-100); border-color: var(--teal-700); color: var(--teal-700); }

.pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.pill--duty { background: var(--gold-100); border-color: var(--gold-600); color: var(--gold-800); }
.pill--regulated { background: var(--navy-100); border-color: var(--navy-600); color: var(--navy-600); }

/* === CATEGORY TILES (home) === */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 720px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  text-decoration: none;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
.cat-tile__emoji { font-size: 28px; margin-bottom: var(--space-2); }
.cat-tile__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy-800); }
.cat-tile__count { font-size: var(--text-sm); color: var(--color-text-muted); }

/* === ITEM CARD === */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.item-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
.item-card__img {
  aspect-ratio: 1 / 1;
  background: var(--grey-50);
  padding: 12px;
  display: grid;
  place-items: center;
}
.item-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.item-card__img .img-fallback { font-size: 44px; }
.item-card__body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-card__brand { font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); min-height: 1em; }
.item-card__name {
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy-800); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-card__pack { font-size: var(--text-sm); color: var(--color-text-muted); }
.item-card__price { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 6px; }
.item-card__unit { font-size: var(--text-xs); color: var(--color-text-muted); }

.lowest-at { margin-top: 8px; }
.lowest-at__label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 3px; }
.retailer-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-100); color: var(--teal-700);
  font-size: 12px; font-weight: 700;
  border-radius: var(--radius-pill); padding: 3px 10px;
}
.retailer-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-600); }
.retailer-pill--lg { font-size: 14px; padding: 6px 14px; }
.item-card__updated { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 4px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  border: 0; border-radius: var(--radius-md);
  padding: 12px 22px;
  text-decoration: none;
  transition: background .15s ease;
}
.btn--primary { background: var(--teal-600); color: #fff; }
.btn--primary:hover { background: var(--teal-700); }
.btn--ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.link-arrow { font-weight: 600; color: var(--teal-700); text-decoration: none; }
.link-arrow::after { content: " →"; display: inline-block; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* === MINISTER REVIEW CALLOUT === */
.callout {
  background: var(--orange-100);
  border-left: 5px solid var(--orange-600);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-5);
}
.callout__label {
  font-family: var(--font-display);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-800);
  margin-bottom: 4px;
}
.callout p { margin: 0; font-size: var(--text-sm); color: var(--grey-900); }

/* === TEASER BANDS === */
.band { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); }
.band h2 { color: #fff; }
.band .hl { color: var(--gold-400); }
.band p { color: rgba(255, 255, 255, .85); max-width: 560px; }
@media (min-width: 720px) { .band { padding: var(--space-7) var(--space-6); } }

/* === BREADCRUMB === */
.breadcrumb { font-size: var(--text-sm); color: var(--color-text-muted); padding-block: var(--space-4); }
.breadcrumb a { color: var(--teal-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* === ITEM DETAIL === */
.detail { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
@media (min-width: 1024px) { .detail { grid-template-columns: 2fr 3fr; align-items: start; } }
.detail__imgcard {
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: var(--space-5); display: grid; place-items: center; aspect-ratio: 1 / 1;
}
.detail__imgcard img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.detail__imgcard .img-fallback { font-size: 96px; }
.price-panel {
  background: var(--teal-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-4);
}
.price-panel__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 4px; }
.price-panel__price { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-panel__unit { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.price-panel__updated { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.price-panel__note { font-size: var(--text-sm); color: var(--grey-900); margin: var(--space-3) 0 0; }

/* === CHART CARD === */
.chart-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-5); margin-bottom: var(--space-5); }
.chart-card svg { width: 100%; height: auto; }
.chart-caption { font-size: var(--text-sm); color: var(--color-text-muted); margin: var(--space-2) 0 0; }

/* Segmented toggle (chart series + basket tabs) */
.seg {
  display: inline-flex;
  background: var(--navy-100);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}
.seg button {
  border: 0; background: transparent;
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  color: var(--grey-600);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  white-space: nowrap;
}
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-card); }
.seg--lg button { padding: 11px 22px; font-size: 15px; }

/* === DEFINITION TABLE (about this item) === */
.def-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.def-table th, .def-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); }
.def-table th { color: var(--color-text-muted); font-weight: 600; width: 42%; }
.def-table td { font-variant-numeric: tabular-nums; }

/* === ANATOMY OF A SHELF PRICE === */
.anatomy-bar { display: flex; height: 56px; border-radius: var(--radius-md); overflow: hidden; margin-block: var(--space-5); }
.anatomy-bar__seg { display: grid; place-items: center; color: #fff; font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.anatomy-legend { display: grid; gap: 10px; }
@media (min-width: 720px) { .anatomy-legend { grid-template-columns: 1fr 1fr; } }
.anatomy-legend__row { display: flex; align-items: baseline; gap: 10px; font-size: var(--text-sm); }
.anatomy-legend__swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; align-self: center; }
.anatomy-legend__name { font-weight: 600; color: var(--grey-900); }
.anatomy-legend__val { margin-left: auto; color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* === STEP CARDS (education journey) === */
.step-grid { display: grid; gap: var(--space-4); }
@media (min-width: 720px) {
  .step-grid { grid-template-columns: repeat(3, 1fr); }
  .step-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .step-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .step-grid--5 { grid-template-columns: repeat(5, 1fr); }
}
.step-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-4); }
.step-card__num {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  margin-bottom: var(--space-2);
}
.step-card h3 { font-size: 16px; margin-bottom: var(--space-1); }
.step-card p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

/* === FAQ ACCORDION === */
.faq details { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); margin-bottom: var(--space-3); overflow: hidden; }
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy-800);
  padding: var(--space-4) var(--space-5); cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--space-5); color: var(--teal-600); font-size: 20px; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 var(--space-5) var(--space-4); margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* === TABS (baskets) === */
.tab-panels [hidden] { display: none; }

/* === BASKET / DISH CARDS === */
.basket-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .basket-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.basket-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.basket-card__head { padding: var(--space-4) var(--space-5); display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--color-border); }
.basket-card__head--dish { background: var(--teal-100); border-bottom: 0; }
.basket-card__emoji { font-size: 32px; }
.basket-card__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy-800); line-height: 1.25; }
.basket-card__tag { font-size: var(--text-sm); color: var(--color-text-muted); }
.basket-card__body { padding: var(--space-4) var(--space-5); }
.basket-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.basket-table td { padding: 7px 0; border-bottom: 1px solid var(--grey-50); vertical-align: top; }
.basket-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.basket-table .muted { font-size: var(--text-xs); }
.basket-card__foot { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.basket-card__total-label { font-size: var(--text-sm); color: var(--color-text-muted); }
.basket-card__total { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.per-serving { background: var(--gold-100); color: var(--gold-800); font-size: var(--text-xs); font-weight: 700; border-radius: var(--radius-pill); padding: 3px 10px; }
.duty-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-600); margin-left: 5px; vertical-align: middle; }
.basket-card details summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); color: var(--teal-700); padding-block: var(--space-2); }

/* === BUILD-YOUR-OWN === */
.byo-cat-head { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); margin: var(--space-5) 0 var(--space-3); }
.byo-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px 14px;
  margin-bottom: 10px;
}
.byo-row__img { flex: none; width: 44px; height: 44px; background: var(--grey-50); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 3px; }
.byo-row__img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.byo-row__img .img-fallback { font-size: 22px; }
.byo-row__info { flex: 1; min-width: 0; }
.byo-row__name { font-weight: 600; font-size: var(--text-sm); color: var(--navy-800); line-height: 1.3; }
.byo-row__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.byo-row__price { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy-800); white-space: nowrap; }
.byo-add {
  flex: none; border: 1.5px solid var(--teal-600); background: #fff; color: var(--teal-700);
  font-weight: 700; font-size: var(--text-sm);
  border-radius: var(--radius-pill); padding: 6px 14px;
}
.byo-add:hover { background: var(--teal-100); }
.stepper { display: inline-flex; align-items: center; gap: 2px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--teal-600); background: #fff; color: var(--teal-700);
  font-size: 16px; font-weight: 700; line-height: 1;
  display: grid; place-items: center;
}
.stepper button:hover { background: var(--teal-100); }
.stepper__count { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Sticky total bar */
.total-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--navy-800); color: #fff;
  box-shadow: var(--shadow-sticky);
  transform: translateY(105%);
  transition: transform .2s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.total-bar.is-visible { transform: translateY(0); }
.total-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 12px; }
.total-bar__count { font-size: var(--text-sm); color: rgba(255, 255, 255, .85); }
.total-bar__right { display: flex; align-items: center; gap: var(--space-4); }
.total-bar__total { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.total-bar__clear { background: transparent; border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-pill); padding: 6px 14px; }
.total-bar__clear:hover { border-color: #fff; }
body.has-total-bar { padding-bottom: 88px; }

/* === FLOW DIAGRAM (about) === */
.flow { display: grid; gap: var(--space-3); counter-reset: flow; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow__step { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); border-top: 4px solid var(--teal-600); }
.flow__step:nth-child(1) { border-top-color: var(--navy-800); }
.flow__step:nth-child(2) { border-top-color: var(--teal-600); }
.flow__step:nth-child(3) { border-top-color: var(--gold-600); }
.flow__step:nth-child(4) { border-top-color: var(--orange-600); }
.flow__step h3 { font-size: 15px; }
.flow__step p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

/* === INFO CARDS (governance) === */
.info-grid { display: grid; gap: var(--space-4); }
@media (min-width: 720px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.info-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-5); }
.info-card h3 { font-size: 16px; }
.info-card p, .info-card li { font-size: var(--text-sm); color: var(--color-text-muted); }
.info-card ul { margin: 0; padding-left: 18px; }

/* === RETAILER STRIP === */
.retailer-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.retailer-strip .retailer-pill { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--navy-800); font-size: var(--text-sm); padding: 8px 16px; }
.retailer-strip .retailer-pill::before { background: var(--teal-600); }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: var(--space-7) var(--space-4); background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.empty-state__emoji { font-size: 44px; margin-bottom: var(--space-3); }

/* === SCOPE NOTE === */
.scope-note {
  background: var(--navy-100);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--grey-900);
}

/* === FOOTER === */
.footer { background: var(--navy-800); color: #fff; margin-top: var(--space-8); }
.footer__cols { display: grid; gap: var(--space-5); padding-block: var(--space-7); }
@media (min-width: 720px) { .footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 { color: #fff; font-size: var(--text-sm); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-3); }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__identity { display: flex; gap: 12px; align-items: flex-start; }
.footer__identity img { height: 44px; background: #fff; border-radius: 6px; padding: 3px; }
.footer__identity .wordmark__gov { color: #fff; }
.footer__identity .wordmark__colc { color: var(--gold-400); }
.footer__mission { font-size: var(--text-sm); color: rgba(255, 255, 255, .7); margin-top: var(--space-3); }
.footer__smallprint { font-size: var(--text-xs); color: rgba(255, 255, 255, .6); line-height: 1.6; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  font-size: var(--text-sm); color: rgba(255, 255, 255, .6);
}

/* === UTILITIES === */
.grid-gap { display: grid; gap: var(--space-4); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
