/* Price Watch, consumer site.
   One stylesheet, no build step, no framework. */

:root {
  /* Ink and paper */
  --ink: #101a1d;
  --body: #414f57;
  --muted: #5c6b74;
  --faint: #7d8b93;
  --line: #e4e7e4;
  --line-soft: #eef1ee;
  --paper: #f7f7f4;
  --surface: #ffffff;

  /* Dark surfaces, for the masthead and hero */
  --night: #0a1417;
  --night-2: #10262c;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-text: #d6e1e3;
  --night-faint: #9db1b7;

  /* Brand */
  --primary: #0f5661;
  --primary-deep: #0a3f48;
  --primary-tint: #e8f1f2;
  --mint: #1f9d6b;
  --mint-bright: #35c08a;
  --mint-tint: #e7f6ee;
  --gold: #b07d15;
  --gold-tint: #fbf3e2;
  --rose: #a33a35;
  --rose-tint: #fbedec;

  --r-lg: 16px;
  --r: 12px;
  --r-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(16, 26, 29, 0.04), 0 2px 8px rgba(16, 26, 29, 0.04);
  --shadow: 0 2px 4px rgba(16, 26, 29, 0.04), 0 12px 28px -8px rgba(16, 26, 29, 0.12);
  --shadow-lg: 0 30px 60px -20px rgba(10, 20, 23, 0.28);

  --shell: 1280px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0; letter-spacing: -0.015em; }
h1 { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; }
h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: var(--primary); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 100; font: inherit; cursor: pointer; }
.skip:focus { left: 12px; top: 12px; }

/* On light backgrounds the eyebrow reads in brand teal; the hero overrides it to mint. */
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--primary);
}

/* ------------------------------------------------------------- masthead */

.masthead {
  background: var(--night);
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--night-line);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 66px; }

.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.wordmark-mark {
  display: inline-flex; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(145deg, var(--mint-bright), var(--primary));
  align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 12px -2px rgba(53, 192, 138, 0.4);
}
.wordmark-text {
  font-family: var(--serif); font-size: 1.24rem; font-weight: 600; color: #fff; letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a {
  color: var(--night-text); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-sm); transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav a.active { color: #fff; background: rgba(255, 255, 255, 0.11); }
.nav .nav-cta {
  background: var(--mint-bright); color: var(--night); font-weight: 650; margin-left: 8px;
}
.nav .nav-cta:hover { background: #46d69c; color: var(--night); }

/* --------------------------------------------------------------- subnav */

.subnav-wrap { background: #0d1e23; border-top: 1px solid var(--night-line); }
.subnav { display: flex; gap: 4px; overflow-x: auto; padding: 0 28px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  color: var(--night-faint); text-decoration: none; font-size: 0.85rem; font-weight: 500;
  padding: 11px 13px; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.15s;
}
.subnav a:hover { color: #fff; }
.subnav a.active { color: var(--mint-bright); border-bottom-color: var(--mint-bright); font-weight: 600; }

/* --------------------------------------------------------------- banner */

.dataset-banner {
  background: var(--gold-tint); border-bottom: 1px solid #f0e2c4; color: #6f4d08;
  font-size: 0.86rem;
}
.dataset-banner .shell { display: flex; align-items: baseline; gap: 9px; padding: 9px 28px; flex-wrap: wrap; }
.dataset-banner strong { color: var(--gold); }

/* ----------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(165deg, var(--night) 0%, var(--night-2) 68%, #16333a 100%);
  color: var(--night-text); padding: 72px 0 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: -40% -10% auto 40%; height: 420px;
  background: radial-gradient(closest-side, rgba(53, 192, 138, 0.16), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero .eyebrow { color: var(--mint-bright); }
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.5rem); margin: 14px 0 16px;
  letter-spacing: -0.03em; line-height: 1.05;
}
.hero h1 em { font-style: normal; color: var(--mint-bright); }
.hero .lede { font-size: 1.1rem; color: var(--night-faint); max-width: 56ch; }

.searchbar {
  display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap;
  background: var(--surface); padding: 8px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); max-width: 720px;
}
.searchbar input[type="search"] {
  flex: 1 1 260px; min-width: 0; border: 0; outline: 0; font-size: 1.02rem;
  padding: 13px 14px; background: transparent; color: var(--ink); font-family: inherit;
}
.searchbar input[type="search"]:focus-visible { outline: 3px solid #0b6f63; outline-offset: 1px; border-radius: 8px; }
.searchbar select {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px;
  font-size: 0.92rem; background: var(--surface); color: var(--body); font-family: inherit;
}
.searchbar button {
  border: 0; background: var(--primary); color: #fff; font-weight: 650;
  padding: 13px 26px; border-radius: var(--r-sm); font-size: 0.96rem; cursor: pointer;
  font-family: inherit; transition: background 0.15s;
}
.searchbar button:hover { background: var(--primary-deep); }

.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.hero-chips .label { font-size: 0.83rem; color: var(--night-faint); margin-right: 2px; }
.hero-chips a {
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
  color: var(--night-text); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem;
  text-decoration: none; transition: all 0.15s;
}
.hero-chips a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* The white card straddling the hero boundary. Only a card may overlap the
   dark band; bare text there is how invisible headings happen.
   The numbers are the point of this card, so they are set like headlines. */
.stat-float {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 26px 10px; gap: 8px;
}
.stat-float.stats-tracker { display: block; padding: 0; overflow: hidden; }
.stats-tracker-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 20px 12px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.stats-tracker-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.stats-tracker-kicker {
  color: var(--muted); font-size: 0.67rem; font-weight: 750;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.stats-tracker-title strong {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  color: var(--primary-deep); font-size: 0.96rem;
}
.stats-tracker-icon { display: inline-flex; flex: none; color: var(--primary); }
.stats-tracker-icon svg { width: 17px; height: 17px; }
.stats-tracker-controls, .stats-tracker-selectors {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.stats-tracker-controls[hidden] { display: none; }
.stats-tracker-pause, .stats-tracker-selector {
  border: 1px solid var(--line); background: var(--surface); color: var(--body);
  border-radius: 999px; padding: 6px 10px; font: 650 0.74rem/1 var(--sans);
  cursor: pointer; transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.stats-tracker-pause:hover, .stats-tracker-selector:hover { border-color: #b9cbc4; color: var(--primary); }
.stats-tracker-selector[aria-pressed="true"] {
  color: #fff; background: var(--primary); border-color: var(--primary);
}
.stats-tracker-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 24px 10px 26px; gap: 8px; min-height: 112px;
  opacity: 1; transform: translateY(0); transition: opacity 0.15s ease, transform 0.15s ease;
}
.stats-tracker.is-changing .stats-tracker-grid { opacity: 0; transform: translateY(5px); }
.stat-cell { text-align: center; padding: 4px 14px; }
.stat-cell:not(:first-child) { border-left: 1px solid var(--line-soft); }
.stat-cell .v {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 600; color: var(--primary-deep);
  font-variant-numeric: tabular-nums; font-family: var(--serif);
  letter-spacing: -0.03em; line-height: 1;
}
.stat-cell .k {
  font-size: 0.68rem; color: var(--muted); margin-top: 7px;
  text-transform: uppercase; letter-spacing: 0.11em; font-weight: 700;
}

/* A slow marquee of real product photos along the bottom of the hero, so the
   dark band has life without the reader having to scroll for an image. */
.hero { overflow: hidden; }
.hero-strip {
  position: relative; z-index: 1; margin: 40px 0 -20px; display: flex; gap: 14px;
  width: max-content;
  animation: strip var(--strip-duration, 60s) linear infinite;
}
.hero-strip:empty { display: none; }
.strip-item {
  width: 76px; height: 76px; flex: none; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 8px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.strip-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Shifts by exactly one set, measured in JS, so the loop point is invisible. */
@keyframes strip {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--strip-shift, 50%) * -1)); }
}
@media (prefers-reduced-motion: reduce) { .hero-strip { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .stats-tracker-grid { transition: none; }
}

@media (max-width: 620px) {
  .stats-tracker-head { align-items: flex-start; padding: 14px 16px 12px; }
  .stats-tracker-title { width: 100%; flex-wrap: wrap; }
  .stats-tracker-controls { width: 100%; align-items: flex-start; }
  .stats-tracker-grid { grid-template-columns: 1fr; padding: 16px; min-height: 0; }
  .stats-tracker .stat-cell { padding: 13px 10px; }
  .stats-tracker .stat-cell:not(:first-child) {
    border-left: 0; border-top: 1px solid var(--line-soft);
  }
}

.home-loading { color: var(--faint); padding: 60px 0; }

/* ----------------------------------------------- price verticals */

.vertical-nav a {
  display: inline-flex; align-items: center; gap: 7px;
}
.vertical-tab-icon { display: inline-flex; color: currentColor; }
.vertical-tab-icon svg { width: 16px; height: 16px; }

.home-verticals { padding-top: 42px; }
.vertical-section { scroll-margin-top: 120px; }
.vertical-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.vertical-grid > .vertical-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.vertical-card {
  min-height: 170px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start; gap: 16px; padding: 22px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.vertical-card:hover { transform: translateY(-3px); border-color: #b8cbc7; box-shadow: var(--shadow); }
.vertical-card.is-live { border-color: #cce3d8; }
.vertical-icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px; color: var(--primary); background: var(--primary-tint);
}
.vertical-card.is-live .vertical-icon { color: var(--mint); background: var(--mint-tint); }
.vertical-icon svg { width: 24px; height: 24px; }
.vertical-card-copy { display: flex; flex-direction: column; min-width: 0; }
.vertical-card-copy strong { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; }
.vertical-card-copy > span:not(.vertical-card-status) { margin-top: 6px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.vertical-card-status {
  align-self: flex-start; margin-top: 14px; padding: 3px 9px; border-radius: 999px;
  background: var(--line-soft); color: var(--muted); font-size: 0.72rem; font-weight: 700;
}
.vertical-card.is-live .vertical-card-status { background: var(--mint-tint); color: var(--mint); }
.vertical-arrow { color: var(--faint); font-size: 1.25rem; transition: transform 0.16s; }
.vertical-card:hover .vertical-arrow { transform: translateX(3px); color: var(--primary); }

/* Shared loading, error and empty state. */
.page-state {
  min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 42px 24px; text-align: center; border: 1px dashed var(--line);
  border-radius: var(--r-lg); background: var(--surface); color: var(--muted);
}
.page-state h3 { max-width: 42ch; }
.page-state p { max-width: 62ch; font-size: 0.92rem; }
.page-state .section-link { margin-top: 5px; }
.page-state--error { border-color: #e4c1bf; background: var(--rose-tint); }
.state-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.state-actions .btn { align-self: auto; }
.state-spinner {
  width: 28px; height: 28px; margin-bottom: 3px; border: 3px solid var(--line);
  border-top-color: var(--primary); border-radius: 50%; animation: state-spin 0.7s linear infinite;
}
@keyframes state-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------- catalogue search */

.catalogue-search {
  display: flex; flex-direction: column; gap: 7px; margin: 0 0 24px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.catalogue-search label { color: var(--ink); font-size: 0.84rem; font-weight: 700; }
.catalogue-search-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.catalogue-search input {
  flex: 1 1 280px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; background: var(--surface); color: var(--ink); font: inherit;
}
.catalogue-search input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.catalogue-search .btn { align-self: stretch; padding: 10px 18px; }
.with-sidebar.no-sidebar { grid-template-columns: minmax(0, 1fr); }

/* Clothing shares the grocery shell; each card is a live merchant offer. */
.clothing-results-note { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.clothing-sidebar { min-width: 0; }
.clothing-toolbar .sortbar { display: flex; flex-wrap: wrap; max-width: 100%; }
.clothing-layout .applied > .muted { font-size: 0.85rem; }
.product-grid.clothing-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.clothing-pagination .btn { text-decoration: none; }
.showcase-market { color: var(--muted); font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.showcase-date { display: block; margin-top: 6px; font-size: .8rem; }
.insight-shot .fuel-brand-mark { width: 132px; height: 88px; max-width: 80%; }
.insight-shot .fuel-brand-initials { font-size: 1.6rem; }
.insight-shot .fuel-brand-mark.fuel-brand-neutral { gap: 5px; padding: 8px; }
.insight-shot .fuel-brand-mark.fuel-brand-neutral svg { width: 30px; height: 30px; }
.insight-shot .fuel-brand-mark.fuel-brand-neutral span { font-size: .7rem; line-height: 1.15; }
.coverage-controls { display:flex; flex-wrap:wrap; gap:18px; margin:30px 0 24px; }
.coverage-controls label { display:grid; gap:8px; color:var(--ink); font-size:.875rem; font-weight:600; min-width:220px; }
.coverage-controls select { width:100%; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:12px 38px 12px 14px; font:inherit; }
.coverage-table th[scope="row"] { font-weight:500; white-space:nowrap; }
.coverage-country-code { display:inline-block; min-width:27px; margin-right:12px; font-size:.72rem; color:var(--muted); }
.coverage-currency { margin-left:9px; font-size:.8rem; color:var(--muted); }
.coverage-total { font-weight:700; color:var(--ink); }
.coverage-country-header { align-items:flex-end; flex-wrap:wrap; gap:24px; }
.coverage-category { display:grid; gap:8px; width:260px; min-width:0; max-width:100%; color:var(--ink); font-size:.875rem; font-weight:600; }
.coverage-category select { width:100%; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:12px 38px 12px 14px; font:inherit; }
.coverage-pending { color:var(--muted); }
.coverage-count-note { margin-top:16px; }
@media(max-width:650px){.coverage-country-header{align-items:stretch;}.coverage-category{width:100%;}}
.coverage-table td a { text-decoration:none; }
.coverage-table td a:hover { text-decoration:underline; }
.showcase-loading .insight-grid { margin:20px 0 44px; }
.showcase-placeholder { min-height:340px; border:1px solid var(--line); border-radius:var(--r-lg); padding:24px; background:var(--surface); }
.showcase-placeholder span { display:block; height:14px; margin-top:18px; border-radius:8px; background:var(--line-soft); }
.showcase-placeholder span:first-child { height:110px; width:70%; margin:12px auto 34px; }
.showcase-placeholder span:last-child { width:70%; }
@media (max-width: 1150px) { .product-grid.clothing-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.clothing-product-grid > .page-state { grid-column: 1 / -1; }
.clothing-offer { min-width: 0; display: flex; flex-direction: column; height: 100%; }
.clothing-photo { position: relative; display: flex; flex: none; width: 100%; align-items: center; justify-content: center; aspect-ratio: 4 / 4.7; overflow: hidden; background: #f2f3f1; border-bottom: 1px solid var(--line-soft); }
/* Image dimensions must not set the height of an aspect-ratio card well. */
.clothing-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.clothing-offer-body { display: flex; flex-direction: column; flex: 1; padding: 16px; min-width: 0; }
.clothing-retailer { color: var(--primary); font-size: 0.76rem; font-weight: 700; margin: 0 0 7px; overflow-wrap: anywhere; }
.clothing-offer h2 { font: 600 1rem/1.4 var(--sans); margin: 0 0 8px; overflow-wrap: anywhere; }
.clothing-offer h2 a { color: var(--ink); text-decoration: none; }
.clothing-options { color: var(--muted); font-size: 0.78rem; line-height: 1.5; overflow-wrap: anywhere; margin: 0 0 16px; }
.clothing-offer-footer { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.clothing-offer-footer strong { font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.clothing-offer-footer span { color: var(--muted); font-size: 0.73rem; }
.clothing-offer-checked { margin-top: 13px; border-top: 1px solid var(--line-soft); padding-top: 12px; color: var(--muted); font-size: 0.73rem; line-height: 1.5; }
.clothing-item-shot { background: #fff; }
.clothing-item .pdp-info, .clothing-item .pdp-facts > * { min-width: 0; overflow-wrap: anywhere; }
.clothing-item-prices .cmp-row > * { min-width: 0; overflow-wrap: anywhere; }
.clothing-item-prices .cmp-when { white-space: normal; grid-column: 4; }
.clothing-item-prices .cmp-price { white-space: nowrap; overflow-wrap: normal; }
.clothing-item-prices .cmp-tags:empty { display: none; }
.clothing-item-prices .badge { max-width: 100%; white-space: normal; }
.clothing-item-prices .cmp-price { grid-column: 5; }
@media (max-width: 760px) {
  .clothing-item-prices .cmp-price { grid-column: 3; grid-row: 1; }
  .clothing-item-prices .cmp-when { grid-column: 2 / -1; }
}
.clothing-results-note { margin-top: 20px; }
@media (max-width: 700px) {
  .clothing-toolbar .sortbar { width: 100%; }
  .clothing-toolbar .sortbar button { flex: 1 1 auto; padding: 8px 10px; }
  .product-grid.clothing-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .clothing-offer-body { padding: 12px; }
  .clothing-offer h2 { font-size: 0.88rem; }
}
@media (max-width: 390px) { .product-grid.clothing-product-grid { grid-template-columns: minmax(0, 1fr); } }

.planned-category-browse {
  margin: 0 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.planned-category-browse .section-head { align-items: center; }
.cat-grid.planned-cat-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.planned-category-select { display: flex; flex-direction: column; gap: 5px; min-width: 220px; color: var(--ink); font-size: 0.78rem; font-weight: 700; }
.planned-category-select select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px;
  background: var(--surface); color: var(--body); font: inherit;
}
.cat-tile.planned-cat-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "art label" "art status"; align-items: center;
  column-gap: 11px; row-gap: 3px; min-width: 0; min-height: 76px;
}
.planned-cat-tile .cat-art { grid-area: art; color: var(--primary); background: var(--primary-tint); }
.planned-cat-tile .cat-art svg { width: 24px; height: 24px; }
.planned-cat-tile .cat-label { grid-area: label; min-width: 0; overflow-wrap: normal; word-break: normal; }
.planned-cat-tile.is-on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.planned-cat-tile .cat-count {
  grid-area: status; justify-self: start; max-width: 100%; white-space: normal;
  padding: 3px 7px; border-radius: 999px; background: var(--line-soft);
  font-size: 0.68rem; line-height: 1.1;
}
.planned-match-rule {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  background: var(--primary-tint); color: var(--body);
}
.planned-match-icon {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--primary); background: var(--surface);
}
.planned-match-icon svg { width: 20px; height: 20px; }
.planned-match-rule strong { color: var(--ink); font-size: 0.88rem; }
.planned-match-rule p { margin-top: 3px; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }

/* ----------------------------------------------------------- fuel */

.fuel-period {
  display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px;
  background: var(--mint-tint); color: var(--mint); font-size: 0.84rem;
}
.fuel-disclosure {
  margin-top: 14px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); color: var(--muted);
}
.fuel-disclosure p { font-size: 0.9rem; }
.fuel-category-section { margin-top: 34px; }
.fuel-browse-layout { margin-top: 34px; }
.fuel-browse-main { min-width: 0; }
.fuel-browse-main .fuel-category-section { margin-top: 0; }
.fuel-sidebar .facet > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.fuel-applied { margin: 26px 0 0; }
.cat-grid.fuel-category-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.fuel-cat-tile { min-width: 0; min-height: 82px; }
.fuel-cat-tile .cat-art { color: var(--primary); background: var(--primary-tint); }
.fuel-cat-tile .cat-art svg { width: 24px; height: 24px; }
.fuel-cat-tile .fuel-grade-art.is-petrol { color: #0d6b78; background: #e6f3f4; }
.fuel-cat-tile .fuel-grade-art.is-premium_petrol { color: #684887; background: #f1eaf7; }
.fuel-cat-tile .fuel-grade-art.is-diesel { color: #8a5d12; background: #faf0dc; }
.fuel-cat-tile .fuel-grade-art.is-premium_diesel { color: #9a4f2e; background: #f8e9e1; }
.fuel-cat-tile .fuel-grade-art.is-gas { color: #356c99; background: #e8f1f8; }
.fuel-cat-tile .fuel-grade-art.is-bio { color: #397653; background: #e8f4ec; }
.fuel-cat-tile .fuel-grade-art.is-ethanol { color: #6a7621; background: #f2f5df; }
.fuel-cat-tile .fuel-grade-art.is-generic { color: var(--primary); background: var(--primary-tint); }
.fuel-cat-tile.is-on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.fuel-cat-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.fuel-cat-tile .cat-label { flex: none; min-width: 0; overflow-wrap: anywhere; }
.fuel-cat-tile .cat-count { font-size: 0.72rem; line-height: 1.2; white-space: normal; }
.fuel-results-section { padding-top: 8px; scroll-margin-top: 130px; }
.fuel-results-section:focus { outline: 3px solid var(--primary); outline-offset: 4px; }
.fuel-results-section .section-head { align-items: end; }
.fuel-lowest { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; color: var(--muted); }
.fuel-lowest span, .fuel-lowest small { font-size: 0.72rem; }
.fuel-lowest strong { color: var(--mint); font: 600 1.7rem/1 var(--serif); }
.fuel-station-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 14px; }
.fuel-station-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px; }
.fuel-station-card[href] { color: inherit; text-decoration: none; }
.fuel-station-card[href]:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.fuel-item .pdp-shot .fuel-brand-mark { width: min(100%, 240px); min-height: 220px; height: auto; padding: 24px; gap: 16px; }
.fuel-item .pdp-shot .fuel-brand-mark img { width: 100%; height: 160px; max-height: 160px; object-fit: contain; }
.fuel-item .pdp-shot .fuel-brand-mark.is-combo img { width: calc(50% - 8px); height: auto; }
.fuel-item .pdp-shot .fuel-brand-generic svg { width: 76px; height: 76px; flex-shrink: 0; }
.fuel-item .pdp-shot .fuel-brand-neutral span { font-size: 1rem; line-height: 1.3; letter-spacing: 0.01em; }
.fuel-item .pdp-shot .fuel-brand-initials { font-size: 2.75rem; }
.fuel-item .pdp-info, .pdp-stats > div, .pdp-facts > * { min-width: 0; overflow-wrap: anywhere; }
.history-empty { padding: 55px 24px; color: var(--muted); text-align: center; }
.comparison-results { min-width: 0; }
.cmp-product-title { margin-top: 4px; font-size: 0.88rem; color: var(--ink); }
.comparison-browser .sortbar { display: flex; flex-wrap: wrap; }
.comparison-browser .cmp-row > * { min-width: 0; overflow-wrap: anywhere; }
.comparison-browser .cmp-when { white-space: normal; grid-column: 4; }
.comparison-browser .cmp-price { white-space: nowrap; overflow-wrap: normal; grid-column: 5; }
.comparison-browser .cmp-tags:empty { display: none; }
.comparison-browser .badge { max-width: 100%; white-space: normal; }
.comparison-group-label { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; background: var(--mint-tint); }
@media (max-width: 760px) {
  .comparison-browser .cmp-price { grid-column: 3; grid-row: 1; }
  .comparison-browser .cmp-when { grid-column: 2 / -1; }
}
.fuel-station-card.is-cheapest { border-color: #b8dccd; background: linear-gradient(180deg, var(--mint-tint), var(--surface) 52%); }
.fuel-station-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.fuel-brand-mark {
  width: 76px; height: 52px; display: inline-flex; flex: none; align-items: center; justify-content: center;
  padding: 7px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff;
}
.fuel-brand-mark img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.fuel-brand-mark img[src$=".svg"] { width:100%; height:100%; }
.access-art picture,.retailer-story figure picture { display:contents; }
.fuel-brand-mark.is-combo { gap: 4px; }
.fuel-brand-mark.is-combo img { max-width: calc(50% - 2px); }
.fuel-brand-mark.theme-dark { border-color: #142d37; background: #142d37; }
.fuel-brand-initials {
  color: var(--primary); background: var(--primary-tint); font-size: 0.92rem; font-weight: 800; letter-spacing: 0.06em;
}
.fuel-brand-initials.tone-1 { color: #315f86; background: #eaf2f8; }
.fuel-brand-initials.tone-2 { color: #805e16; background: #faf1dc; }
.fuel-brand-initials.tone-3 { color: #7b4e69; background: #f6ebf1; }
.fuel-brand-generic { color: var(--primary); background: var(--primary-tint); }
.fuel-brand-generic svg { width: 25px; height: 25px; }
.fuel-brand-neutral { flex-direction: column; gap: 1px; padding: 4px 5px; }
.fuel-brand-neutral svg { width: 20px; height: 20px; }
.fuel-brand-neutral span { max-width: 100%; font-size: 0.56rem; font-weight: 750; letter-spacing: 0.02em; line-height: 1.05; text-align: center; }
.fuel-brand-neutral.is-long-label { gap: 0; padding: 3px 4px; }
.fuel-brand-neutral.is-long-label svg { width: 16px; height: 16px; }
.fuel-brand-neutral.is-long-label span { font-size: 0.48rem; line-height: 1.02; overflow-wrap: anywhere; }
.fuel-product-art {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--primary); background: var(--primary-tint);
}
.fuel-product-art svg { width: 25px; height: 25px; }
.fuel-station-card h3 { overflow-wrap: anywhere; font-size: 1.05rem; }
.fuel-station-brand { margin-top: 3px; color: var(--ink); font-size: 0.82rem; font-weight: 650; }
.fuel-station-location { margin-top: 5px; min-height: 2.5em; color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.fuel-station-price { margin-top: 18px; color: var(--ink); font: 600 1.7rem/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fuel-station-card.is-cheapest .fuel-station-price { color: var(--mint); }
.fuel-station-unit { margin-top: 3px; color: var(--muted); font-size: 0.78rem; }
.fuel-station-meta { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 14px; color: var(--faint); font-size: 0.72rem; }
.fuel-note { margin-top: 14px; color: var(--muted); font-size: 0.87rem; }
.fuel-disclaimer { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .state-spinner { animation: none; border-top-color: var(--line); }
  .vertical-card, .vertical-arrow { transition: none; }
}

@media (forced-colors: active) {
  .fuel-grade-art { color: CanvasText !important; background: Canvas !important; border: 1px solid CanvasText; }
}

@media (max-width: 760px) {
  .vertical-grid { grid-template-columns: 1fr; }
  .vertical-card { min-height: 0; }
  .cat-grid.fuel-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .vertical-tab-icon { display: none; }
  .home-verticals { padding-top: 32px; }
  .vertical-card { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .vertical-arrow { display: none; }
  .catalogue-search-row .btn { flex: 1 1 auto; }
  .planned-category-select { width: 100%; }
  .fuel-results-section .section-head { align-items: flex-start; }
  .fuel-lowest { align-items: flex-start; }
  .fuel-station-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cat-grid.fuel-category-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- featured row */

.feat-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 14px;
  overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.feat-card {
  scroll-snap-align: start; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd8d2; }
.feat-shot { height: 130px; display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.feat-shot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.feat-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 2px; }
.feat-cat { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; }
.feat-name {
  font-weight: 650; color: var(--ink); font-size: 0.9rem; line-height: 1.28;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em;
}
.feat-price { margin-top: 5px; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.feat-price span { font-family: var(--sans); font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.feat-foot { font-size: 0.72rem; color: var(--muted); margin-top: 6px; }

/* -------------------------------------------------- insight image cards */

.insight-img { padding: 0; overflow: hidden; }
.insight-shot {
  height: 128px; position: relative; display: flex; align-items: center; justify-content: center;
  padding: 10px; background: #fff; border-bottom: 1px solid var(--line-soft);
}
.insight-shot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.insight-badge {
  position: absolute; top: 9px; left: 9px; font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; color: #fff;
}
.insight-badge.save { background: var(--mint); }
.insight-badge.drop { background: var(--primary); }
.insight-body { padding: 12px 15px 15px; }
.insight-body .name { font-weight: 650; color: var(--ink); font-size: 0.96rem; }
.insight-body .sub { font-size: 0.85rem; color: var(--body); margin-top: 4px; font-variant-numeric: tabular-nums; }
.insight-body .foot { font-size: 0.8rem; color: var(--muted); margin-top: 7px; }

/* ---------------------------------------------------------- reach band */

.reach {
  margin-top: 56px;
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 70%, #16333a 100%);
  color: var(--night-text); padding: 54px 0;
}
.reach-inner { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.reach-inner h2 { color: #fff; font-size: 2.2rem; margin: 8px 0 12px; letter-spacing: -0.02em; }
.reach-inner > p { color: var(--night-faint); max-width: 64ch; font-size: 1rem; }
.reach-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 24px; }
.reach-flag {
  font-size: 1.6rem; text-decoration: none; line-height: 1; padding: 4px 6px; border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}
.reach-flag:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

/* ---------------------------------------------------------- CTA band */

.cta-band { background: var(--mint-tint); padding: 48px 0; margin-top: 0; }
.cta-inner { max-width: var(--shell); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 1.7rem; color: var(--primary-deep); }
.cta-inner p { color: var(--body); margin-top: 8px; max-width: 60ch; }
.btn-big { font-size: 1.02rem; padding: 15px 28px; border-radius: var(--r); white-space: nowrap; text-decoration: none; }

/* ----------------------------------------------------------------- main */

main { min-height: 60vh; padding-bottom: 80px; }
main.shell { padding-top: 40px; }
.lift { margin-top: -56px; position: relative; z-index: 2; }
.loading { color: var(--faint); padding: 80px 28px; }

.page-head { margin-bottom: 26px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lede { color: var(--muted); font-size: 1.04rem; max-width: 64ch; }
.crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; display: inline-block; text-decoration: none; }
.crumb:hover { color: var(--primary); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px 24px; }

.section { margin-top: 46px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .t h2 { margin-top: 6px; font-size: 1.85rem; letter-spacing: -0.02em; }
.section-head .note { color: var(--muted); font-size: 0.95rem; margin-top: 7px; max-width: 60ch; }
.section-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------- glyphs */

.glyph {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: #fff;
  letter-spacing: -0.02em;
}
.glyph-staples { background: linear-gradient(145deg, #2f8f76, #17635a); }
.glyph-west_african { background: linear-gradient(145deg, #c98a2b, #9a5b12); }
.glyph-caribbean { background: linear-gradient(145deg, #2f7fa8, #1a5578); }

/* -------------------------------------------------------- insight cards */

.insight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }

.insight {
  display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.insight:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfd8d2; }
.insight .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.insight .name { font-weight: 650; color: var(--ink); font-size: 1rem; }
.insight .big {
  font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em;
  margin-top: 12px; font-variant-numeric: tabular-nums; line-height: 1;
}
.insight .big.save { color: var(--mint); }
.insight .big.drop { color: var(--primary); }
.insight .sub { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }
.insight .foot {
  font-size: 0.8rem; color: var(--muted); margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

/* ---------------------------------------------------------- leaderboard */

.board { display: flex; flex-direction: column; }
.board-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.board-row:last-child { border-bottom: 0; }
.board-rank { font-family: var(--serif); font-size: 1.05rem; color: var(--faint); text-align: center; }
.board-row:first-child .board-rank { color: var(--mint); }
.board-name { font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.board-meta { font-size: 0.82rem; color: var(--muted); margin-top: 1px; }
.board-bar { width: 96px; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.board-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--mint-bright)); }

/* -------------------------------------------------------------- filters */

.filters {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--muted);
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.filters label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.filters input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.filters select { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; color: var(--body); font-family: inherit; }

/* -------------------------------------------------------- sidebar layout */

.with-sidebar { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 24px; }
.facet-group { border-bottom: 1px solid var(--line-soft); padding: 15px 0; }
.facet-group:first-child { padding-top: 0; }
.facet-group:last-child { border-bottom: 0; padding-bottom: 0; }
.facet-group h4 { font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.facet {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 6px 9px; border-radius: var(--r-sm); font: inherit; font-size: 0.88rem;
  color: var(--body); margin-left: -9px; transition: background 0.12s, color 0.12s;
}
.facet:hover { background: var(--primary-tint); color: var(--primary); }
.facet.is-on { background: var(--primary); color: #fff; font-weight: 600; }
.facet .n { font-size: 0.76rem; color: var(--faint); font-variant-numeric: tabular-nums; background: var(--line-soft); border-radius: 999px; padding: 1px 8px; flex: none; }
.facet.is-on .n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.facet > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.facet:disabled { cursor: default; }
.facet-empty { color: var(--muted); font-size: 0.82rem; line-height: 1.5; overflow-wrap: anywhere; }
.facet-more { font-size: 0.82rem; color: var(--primary); background: none; border: 0; cursor: pointer; padding: 8px 0 0; font-family: inherit; font-weight: 550; }

.applied { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.applied .pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--primary);
  color: #fff; border-radius: 999px; padding: 5px 8px 5px 13px; font-size: 0.84rem; font-weight: 550;
}
.applied .pill button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 0 3px; font-family: inherit; opacity: 0.8; }
.applied .pill button:hover { opacity: 1; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .count { font-size: 0.9rem; color: var(--muted); }
.sortbar { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.sort-scope { align-self: center; padding: .45rem .6rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.sortbar button {
  border: 0; background: none; padding: 8px 14px; font-size: 0.85rem; cursor: pointer;
  color: var(--muted); font-family: inherit; border-right: 1px solid var(--line); transition: all 0.12s;
}
.sortbar button:last-child { border-right: 0; }
.sortbar button:hover { background: var(--primary-tint); color: var(--primary); }
.sortbar button.is-on { background: var(--primary); color: #fff; font-weight: 600; }

/* -------------------------------------------------------------- summary */

.summary-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.summary-cell { padding: 16px 18px; border-right: 1px solid var(--line-soft); }
.summary-cell:last-child { border-right: 0; }
.summary-cell .k { font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 650; }
.summary-cell .v {
  font-size: 1.35rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
  margin-top: 5px; font-family: var(--serif); letter-spacing: -0.02em;
}
.summary-cell .v small { font-size: 0.7rem; font-weight: 400; color: var(--muted); font-family: var(--sans); }
.summary-cell.is-low { background: var(--mint-tint); }
.summary-cell.is-low .v { color: var(--mint); }

/* ----------------------------------------------------------------- rows */

.rows { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 20px; align-items: start;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.row:hover { border-color: #cfd8d2; box-shadow: var(--shadow-sm); }
.row.is-best { border-color: #a9dcc3; background: var(--mint-tint); }
.row.is-excluded { background: #fcfcfb; border-style: dashed; }

.row-main { min-width: 0; }
.row-title { font-weight: 650; color: var(--ink); font-size: 1.01rem; letter-spacing: -0.01em; }
.row-title .brand { color: var(--muted); font-weight: 400; }
.row-store { font-size: 0.9rem; color: var(--body); margin-top: 4px; }
.row-map-link { margin-left: 8px; white-space: nowrap; font-weight: 700; }
.row-meta { font-size: 0.82rem; color: var(--muted); margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.row-price { text-align: right; white-space: nowrap; }
.row-price .amount {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.025em;
}
.row-price .unit { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 3px; }
.row.is-best .row-price .amount { color: var(--mint); }
.row-flag { grid-column: 1 / -1; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); font-size: 0.84rem; color: var(--gold); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 650;
  padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.badge-neutral { background: var(--primary-tint); color: var(--primary); }
.badge-good { background: var(--mint-tint); color: var(--mint); }
.badge-warn { background: var(--gold-tint); color: var(--gold); }
.badge-danger { background: var(--rose-tint); color: var(--rose); }
.badge-plain { background: var(--line-soft); color: var(--muted); }
.badge-fixture { background: var(--gold-tint); color: var(--gold); border-color: #f0e2c4; }
.badge-best { background: var(--mint); color: #fff; }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-fresh { background: var(--mint); }
.dot-aging { background: var(--gold); }
.dot-stale { background: var(--rose); }

.link-btn { background: none; border: 0; color: var(--primary); font-size: 0.82rem; cursor: pointer; padding: 0; text-decoration: underline; font-family: inherit; }

/* ------------------------------------------------------------ country */

.country-bar { display: grid; gap: 8px; margin-bottom: 20px; position: relative; }
.country-primary-row, .country-secondary-row { display: flex; gap: 8px; flex-wrap: wrap; }
.country-secondary-row:empty { display: none; }
.country-more { cursor: pointer; }
.country-more .chev { font-size: 0.7rem; color: var(--muted); }
.country.is-on .chev { color: rgba(255, 255, 255, 0.7); }

.country-drop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; width: min(320px, calc(100vw - 36px)); max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
/* The class sets display:flex, which would otherwise defeat the hidden attribute. */
.country-drop[hidden] { display: none; }
.price-mode-tabs { display: inline-flex; margin: 16px 0 4px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.price-mode-tabs a { padding: 9px 14px; border-radius: 8px; color: var(--primary); font-weight: 700; text-decoration: none; }
.price-mode-tabs a.is-on { color: #fff; background: var(--primary); }
.price-mode-tabs a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.cdrow[hidden] { display: none; }
.country-search {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px;
  font: inherit; font-size: 0.9rem; color: var(--ink); width: 100%;
}
.country-search:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.country-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; }
.cdrow {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 9px 10px; border-radius: var(--r-sm); font: inherit; color: var(--body);
}
.cdrow:hover { background: var(--primary-tint); }
.cdrow.is-on { background: var(--primary-tint); }
.cdrow.is-on .cdname { color: var(--primary); font-weight: 650; }
.cdrow .flag { font-size: 1.15rem; }
.cdrow .cdname { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.cdrow .cdmeta { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.country {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px 7px 11px; font: inherit; font-size: 0.9rem; color: var(--body);
  transition: all 0.14s;
}
.country:hover { border-color: var(--primary); color: var(--primary); }
.country.is-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.country .flag { font-size: 1.1rem; line-height: 1; }
.country .cn {
  font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--muted);
  background: var(--line-soft); border-radius: 999px; padding: 1px 7px;
}
.country.is-on .cn { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------------------------------------------------- product detail */

.pdp {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px;
}
.pdp-shot {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 28px; min-height: 300px; border-right: 1px solid var(--line-soft);
}
.pdp-shot img { max-width: 100%; max-height: 250px; width: auto; height: auto; object-fit: contain; }
.pdp-shot .tag {
  position: absolute; top: 14px; left: 14px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--mint); color: #fff;
}

.pdp-info { padding: 26px 30px 28px; }
.pdp-info h1 { font-size: 1.95rem; margin-top: 6px; }

.pdp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pdp-price .amount {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--mint);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1;
}
.pdp-price .pack { font-size: 0.95rem; color: var(--muted); }
.pdp-price .unit {
  font-size: 0.9rem; color: var(--body); font-variant-numeric: tabular-nums;
  background: var(--mint-tint); padding: 3px 10px; border-radius: 999px; font-weight: 600;
}

.pdp-where { margin-top: 12px; font-size: 0.95rem; }
.pdp-where strong { color: var(--ink); }
.pdp-online-source { margin: 8px 0 0; display: flex; align-items: baseline; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.pdp-online-source > span { font-weight: 700; color: var(--ink); }
.online-product-link { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.online-product-link:hover { color: var(--primary-dark); }
.pdp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.pdp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; margin-top: 22px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden;
}
.pdp-stats > div { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; }
.pdp-stats .k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 650; }
.pdp-stats .v {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.pdp-stats .n { font-size: 0.72rem; color: var(--muted); }

.pdp-facts {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.87rem;
}
.pdp-facts dt { color: var(--muted); font-weight: 600; }
.pdp-facts dd { margin: 0; color: var(--body); }

@media (max-width: 780px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-shot { border-right: 0; border-bottom: 1px solid var(--line-soft); min-height: 220px; }
  .pdp-info { padding: 22px; }
}

/* ------------------------------------------------------- where you are */

.herebar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 16px; margin-bottom: 16px; font-size: 0.92rem; color: var(--body);
}
.herebar.is-on { background: var(--mint-tint); border-color: #cfe8da; }
.herebar .here-icon { color: var(--primary); display: inline-flex; }
.herebar.is-on .here-icon { color: var(--mint); }
.herebar .link-btn { margin-left: auto; }
.herebar .btn-small { margin-left: auto; padding: 8px 16px; font-size: 0.88rem; }

.row-km {
  display: inline-block; margin-left: 8px; font-size: 0.78rem; font-weight: 650;
  color: var(--primary); background: var(--primary-tint);
  padding: 1px 8px; border-radius: 999px;
}
.ig-near { font-size: 0.82rem; font-weight: 700; color: var(--primary); }

/* --------------------------------------------- product groups on a family */

.item-groups { display: flex; flex-direction: column; gap: 18px; }

.item-group {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  overflow: hidden;
}
/* Blocks sold at more than one branch are the ones worth acting on, so they
   are given a visible edge rather than being left to blend in. */
.item-group.is-multi { border-color: #a9dcc3; box-shadow: var(--shadow-sm); }

.ig-head {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px;
  align-items: center; padding: 13px 16px; background: #fbfcfb;
  border-bottom: 1px solid var(--line-soft);
}
.item-group.is-multi .ig-head { background: var(--mint-tint); border-bottom-color: #d3ebde; }

.ig-shot {
  width: 48px; height: 48px; border-radius: 9px; background: #fff; border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; padding: 4px;
}
.ig-shot img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ig-id { min-width: 0; }
.ig-name { font-weight: 650; color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; }
.ig-name a { color: inherit; text-decoration: none; }
.ig-name a:hover { color: var(--primary); text-decoration: underline; }
.ig-meta { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.ig-spread { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ig-shops { font-size: 0.8rem; font-weight: 650; color: var(--mint); }
.ig-shops.one { color: var(--faint); font-weight: 500; }
.ig-range { font-size: 0.92rem; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Inside a block the rows are already framed by the block, so they lose their
   own borders and read as one table instead of a stack of cards. */
.ig-rows { display: flex; flex-direction: column; }
.ig-rows .row {
  border: 0; border-radius: 0; border-bottom: 1px solid var(--line-soft);
  box-shadow: none; padding: 13px 16px;
}
.ig-rows .row:last-child { border-bottom: 0; }
.ig-rows .row:hover { background: #fbfcfb; box-shadow: none; }
.ig-rows .row.is-best { background: transparent; }
.ig-rows .row.is-best:hover { background: var(--mint-tint); }

@media (max-width: 620px) {
  .ig-head { grid-template-columns: 40px 1fr; }
  .ig-spread { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ------------------------------------------------- same item comparison */

.cmp-table { display: flex; flex-direction: column; gap: 8px; }
.cmp-row {
  display: grid; grid-template-columns: 30px minmax(0, 1.4fr) minmax(0, 1.3fr) auto auto;
  gap: 14px; align-items: center; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px; transition: border-color 0.15s, box-shadow 0.15s;
}
.cmp-row:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.cmp-row.is-best { border-color: #a9dcc3; background: var(--mint-tint); }
.cmp-row.is-stale { background: #fcfcfb; border-style: dashed; opacity: 0.85; }

.cmp-rank { font-family: var(--serif); font-size: 1.1rem; color: var(--faint); text-align: center; }
.cmp-row.is-best .cmp-rank { color: var(--mint); font-weight: 600; }
.cmp-shop { display: flex; flex-direction: column; min-width: 0; }
.cmp-name { font-weight: 650; color: var(--ink); font-size: 1rem; }
.cmp-where { font-size: 0.82rem; color: var(--muted); }
.cmp-where .online-product-link { font-size: inherit; }
.cmp-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.cmp-when { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.cmp-price { text-align: right; white-space: nowrap; }
.cmp-price .amount {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.025em; display: block;
}
.cmp-row.is-best .cmp-price .amount { color: var(--mint); }
.cmp-price .over { font-size: 0.8rem; color: var(--rose); font-variant-numeric: tabular-nums; }

.save-line {
  margin-top: 14px; padding: 12px 16px; background: var(--mint-tint);
  border-radius: var(--r-sm); font-size: 0.95rem; color: var(--body);
}
.save-line strong { color: var(--mint); }

.notice-stale {
  margin-top: 16px; padding: 14px 16px; background: var(--gold-tint);
  border-left: 3px solid var(--gold); border-radius: var(--r-sm);
  font-size: 0.92rem; color: #6f4d08;
}
.notice-stale strong { display: block; margin-bottom: 3px; color: var(--gold); }

/* The shop name opens the shop, so it has to look like the link it is. The
   proof badge next to it is metadata and must not compete for the click. */
.row-title a { color: inherit; text-decoration: none; }
.row-title a:hover { color: var(--primary); text-decoration: underline; }

.row-store a {
  color: var(--primary); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(15, 86, 97, 0.28);
}
.row-store a:hover { border-bottom-color: var(--primary); }

@media (max-width: 760px) {
  .cmp-row { grid-template-columns: 26px 1fr auto; row-gap: 8px; }
  .cmp-tags, .cmp-when { grid-column: 2 / -1; }
}

/* -------------------------------------------------------------- browse */

.sector { margin-bottom: 40px; }
.sector-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sector-blurb { color: var(--muted); font-size: 0.93rem; margin-bottom: 18px; max-width: 68ch; }
.cat-block { margin-top: 20px; }
.cat-block h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

.product-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd8d2; }

/* Fixed height, not an aspect ratio. Product photos arrive at every shape a
   phone camera can produce, and letting a tall jar set its own height made it
   stretch the whole row, leaving every neighbouring card half empty. */
.product-shot {
  height: 132px; flex: none;
  display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 1px solid var(--line-soft); overflow: hidden;
}
.product-shot img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; padding: 8px;
}
.product-image-credit {
  position: absolute; right: 6px; bottom: 5px; z-index: 2;
  max-width: calc(100% - 12px); padding: 2px 5px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.9); color: var(--muted);
  font-size: 0.58rem; line-height: 1.2; font-weight: 600;
}
.product-shot .art { width: 78%; height: 78%; }
.product-shot .tag {
  position: absolute; top: 7px; left: 7px; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--body);
}
.product-shot .tag.save { background: var(--mint); color: #fff; }

.product-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.product-body :is(.cat,.name,.unit,.foot) { overflow-wrap: anywhere; }
.product-body .cat { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; }
/* Two lines maximum, so one long name cannot make its row taller than the rest. */
.product-body .name {
  font-weight: 650; color: var(--ink); font-size: 0.9rem; letter-spacing: -0.01em; line-height: 1.28;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.3em;
}
.product-body .price { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.product-body .price .amount {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.product-body .price .pack { font-size: 0.73rem; color: var(--muted); }
.product-body .unit { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.product-body .foot {
  font-size: 0.72rem; color: var(--muted); margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--line-soft); line-height: 1.35;
}

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 13px; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfd8d2; }
.cat-art { width: 46px; height: 46px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cat-label { font-weight: 600; color: var(--ink); font-size: 0.89rem; line-height: 1.25; flex: 1; }
.cat-count { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.planned-note { border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 20px; color: var(--muted); font-size: 0.9rem; }
.planned-note strong { color: var(--body); }

/* --------------------------------------------------------------- empty */

.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 44px 24px; text-align: center; color: var(--muted); background: var(--surface); }
.empty h3 { color: var(--ink); margin-bottom: 8px; }

/* --------------------------------------------------------------- chart */

.chart-wrap { padding: 20px 22px 12px; }
.chart { width: 100%; height: 200px; display: block; overflow: visible; }
.chart-legend { display: flex; gap: 18px; font-size: 0.82rem; color: var(--muted); padding: 0 22px 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------- table */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
thead th { background: var(--night); color: #fff; text-align: left; font-weight: 600; padding: 12px 16px; font-size: 0.8rem; white-space: nowrap; letter-spacing: 0.01em; }
tbody td { padding: 11px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:nth-child(even) { background: #fbfcfb; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ----------------------------------------------------------- histogram */

.hist { display: flex; align-items: flex-end; gap: 7px; height: 120px; padding: 0 2px; }
.hist-bar { flex: 1; background: linear-gradient(180deg, #2f8f76, #17635a); border-radius: 5px 5px 0 0; position: relative; min-height: 4px; opacity: 0.9; }
.hist-bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hist-axis { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ---------------------------------------------------------------- grid */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }

.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.tile .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 650; }
.tile .v { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -0.02em; }
.tile .n { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.link-card {
  display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.link-card:hover { transform: translateY(-2px); border-color: #cfd8d2; box-shadow: var(--shadow); }
.link-card .t { font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-card .d { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* --------------------------------------------------------- promise band */

.promise { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; padding: 40px 0; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.promise-item .icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--primary-tint);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.promise-item h3 { margin-bottom: 6px; }
.promise-item p { font-size: 0.91rem; color: var(--muted); }

/* ---------------------------------------------------------------- form */

.form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px;
  font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--surface);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.check input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; }
.btn {
  border: 0; background: var(--primary); color: #fff; font-weight: 650; font-size: 0.96rem;
  padding: 12px 24px; border-radius: var(--r-sm); cursor: pointer; align-self: flex-start; font-family: inherit;
}
.btn:hover { background: var(--primary-deep); }
.btn-quiet { background: var(--surface); color: var(--primary); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--primary-tint); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-ok { background: var(--mint-tint); color: var(--mint); padding: 13px 15px; border-radius: var(--r-sm); font-size: 0.92rem; }
.form-error { background: var(--rose-tint); color: var(--rose); padding: 13px 15px; border-radius: var(--r-sm); font-size: 0.92rem; }

/* --------------------------------------------------------------- modal */

.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 23, 0.55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 60; backdrop-filter: blur(2px); }
.modal { background: var(--surface); border-radius: var(--r-lg); max-width: 460px; width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; padding: 26px; box-shadow: var(--shadow-lg); }
.modal h3 { margin-bottom: 5px; }
.modal .sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 4px; }

/* -------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--night-line); background: var(--night); padding: 34px 0; color: var(--night-faint); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; }
.footer strong { color: #fff; }
.footer .freshness { color: var(--mint-bright); font-weight: 500; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #0b6f63;
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sortbar { flex-wrap: wrap; }
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 28px 0 6px; color: var(--muted); font-size: 0.9rem;
}
.pagination button {
  border: 1px solid var(--line); background: var(--surface); color: var(--primary);
  border-radius: var(--r-sm); padding: 9px 14px; font: inherit; font-weight: 650; cursor: pointer;
}
.pagination button:disabled { opacity: 0.45; cursor: default; }
.excluded-why { color: var(--rose); }

@media (max-width: 900px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero { padding: 52px 0 76px; }
}

@media (max-width: 620px) {
  .shell { padding: 0 18px; }
  .row { grid-template-columns: 1fr; }
  .row-price { text-align: left; }
  .masthead-inner { height: auto; padding: 10px 0; flex-direction: column; align-items: flex-start; }
  .dataset-banner { position: static; }
  .hero-stats { gap: 24px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .modal-backdrop { padding: 12px; }
}
.fuel-sidebar [data-fuel-facet-search] { display:flex; flex-direction:column; gap:7px; min-width:0; margin:0 0 12px; }
.fuel-sidebar [data-fuel-facet-search] input { box-sizing:border-box; width:100%; min-width:0; max-width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font:inherit; font-size:.8rem; }
.fuel-sidebar [data-fuel-facet-search] .btn { align-self:flex-start; max-width:100%; padding:8px 12px; font-size:.8rem; }
.fuel-sort-controls { display:flex; flex-wrap:wrap; width:fit-content; max-width:100%; margin-bottom:16px; }
.fuel-facet-pages { display:flex; flex-wrap:wrap; gap:6px; }
.catalogue-update-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; min-height: 3.5rem; margin-bottom: .75rem; color: var(--muted); font-size: .875rem; }
.catalogue-update-row > span { flex: 1 1 14rem; }
.catalogue-update-row .btn { flex: 0 0 auto; }
@media (max-width: 640px) { .catalogue-update-row { min-height: 7rem; align-content: center; } }

/* Scoped equivalents for markup styles blocked by the existing CSP. */
.facet.is-empty { opacity: .45; }
.applied .csp-filter-label { font-size: .85rem; }
.section.insight-featured-section { margin-top: 44px; }
.section.search-product-section { margin-top: 24px; }
.pdp-shot.product-photo-white, .product-shot.product-photo-white { background: #fff; }
.muted.product-pack-label { margin-top: 6px; }
.tile .v.store-check-date { font-size: 1.2rem; }
.section-note.benchmark-count-note { margin-bottom: 18px; }
.section.benchmark-group { margin-top: 26px; }
.table-wrap.benchmark-table { margin-top: 12px; }
.disclaimer.benchmark-page-note { margin-top: 30px; }
.disclaimer.benchmark-detail-note { margin-top: 26px; }
.form.issue-report-form { max-width: none; }
