/* ==========================================================================
   CLEARANCE CRITTER
   A friendly little bargain shop: warm paper, deep evergreen ink and
   persimmon price tags. Nunito is bundled locally under the SIL Open Font
   License; no third-party font requests or decorative motion.

   Contrast: every text/background pair in the tokens below is checked against
   WCAG AA in tests/critter-site.test.mjs, which parses this file. If you change
   a colour, the test tells you what it broke.
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/nunito-latin-variable.woff2") format("woff2");
}

/* --- tokens --------------------------------------------------------------- */

:root {
  /* paper */
  --cream: #FFF9EF;
  --cream-raised: #FFFFFF;
  --cream-sink: #F3EBDD;
  --edge: #E3DCD0;
  --edge-strong: #BEB6A8;
  /* The boundary of anything clickable. `--edge` is a decorative hairline
     between two near-identical creams; a control has to be identifiable, so
     it gets an outline that clears 3:1 against the paper (WCAG 1.4.11). */
  --control-edge: #857D70;

  /* ink */
  --ink: #28382F;
  --ink-soft: #505C52;
  --ink-muted: #60675F;

  /* forest */
  --forest: #28382F;
  --forest-deep: #19271F;
  --forest-mid: #3E5346;

  /* accents */
  --terracotta: #B74725;
  --terracotta-deep: #91351B;
  --terracotta-pale: #FBE9DF;
  --honey: #EFC46C;
  --honey-pale: #FFF0D5;
  --honey-deep: #71532F;

  --display: "Nunito", ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1184px;
  --gutter: 20px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --pill: 999px;

  --focus: var(--forest-deep);
  --lift: 0 2px 0 var(--edge);
  --lift-hover: 0 6px 18px -8px rgba(40, 56, 47, 0.16), 0 2px 0 var(--edge-strong);

  color-scheme: light;
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
p, dl, dd, dt, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--forest);
}

h1 { font-size: clamp(1.95rem, 1.1rem + 3.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.1rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.005em; }

a { color: var(--terracotta-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--forest); }

[hidden] { display: none !important; }

/* One focus treatment, everywhere. The ring is forest on paper and cream on
   the dark panels, so it always clears 3:1 against what it sits on. */
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-forest { --focus: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- layout utilities ----------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main.container { padding-block: 0 64px; display: grid; gap: 48px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--honey);
  color: var(--forest-deep);
  font-weight: 700;
  border-radius: 0 0 var(--r) var(--r);
  text-decoration: none;
  transition: top 120ms ease-out;
}
.skip-link:focus { top: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 600;
}

.muted { color: var(--ink-muted); font-size: 0.9375rem; }

.pawprint { width: 26px; height: 26px; fill: var(--honey); flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--cream-sink);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.chip-merchant { background: var(--forest); color: var(--cream); }
.chip-check[data-check="verified"] { background: var(--forest-mid); color: var(--cream); }
.chip-check[data-check="provider"] { background: var(--honey-pale); color: var(--honey-deep); }
.chip-check[data-check="observed"] { background: var(--cream-sink); color: var(--ink-soft); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 2px solid var(--forest);
  border-radius: var(--pill);
  background: var(--forest);
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease-out, background-color 120ms ease-out, box-shadow 120ms ease-out;
}
.button:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--cream); transform: translateY(-2px); box-shadow: var(--lift-hover); }
.button.accent { background: var(--terracotta); border-color: var(--terracotta); }
.button.accent:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.button.ghost { background: transparent; color: var(--forest); }
.button.ghost:hover { background: var(--cream-sink); color: var(--forest-deep); }
.button.small { padding: 9px 16px; font-size: 0.875rem; }

.notice {
  padding: 14px 18px;
  border: 1.5px dashed var(--edge-strong);
  border-radius: var(--r);
  background: var(--cream-raised);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.notice-warn { border-style: solid; border-color: var(--terracotta); background: var(--terracotta-pale); color: var(--terracotta-deep); }

.panel {
  background: var(--cream-raised);
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
}

/* --- the announcement bar and header -------------------------------------- */

.announcement {
  background: var(--forest-deep);
  color: var(--honey-pale);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}
.announcement > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
  padding-block: 7px;
  text-align: center;
}
.announcement strong { color: var(--cream); font-weight: 600; }

.site-header {
  position: relative;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1.5px solid var(--edge);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--forest);
}
.brand-mark { width: 48px; height: 48px; flex: none; border-radius: 11px; }
.brand-name { display: grid; line-height: 1; font-family: var(--display); }
.brand-name strong { font-size: 1.375rem; font-weight: 900; letter-spacing: -0.02em; color: var(--forest); }
.brand-name small {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--terracotta-deep);
  margin-top: 4px;
}
.brand:hover .brand-name strong { color: var(--forest-deep); }

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.header-nav a {
  padding: 8px 14px;
  border-radius: var(--pill);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.header-nav a:hover { background: var(--cream-sink); color: var(--forest); }
.header-nav a.cta { background: var(--honey-pale); color: var(--honey-deep); }
.header-nav a.cta:hover { background: var(--honey); color: var(--forest-deep); }
.header-nav a[aria-current="page"] { background: var(--forest); color: var(--cream); }

/* --- section headings ----------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 28px;
  margin-bottom: 22px;
}
.section-head > div { display: grid; gap: 6px; max-width: 62ch; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); }
.section-head .aside {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  padding-block: 48px 8px;
}
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-copy h1 { font-size: clamp(2.1rem, 1rem + 4.2vw, 3.4rem); }
.hero-copy h1 em { font-style: normal; color: var(--terracotta); }
.hero-lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 9px;
  border: 1.5px solid var(--edge-strong);
  border-radius: var(--pill);
  background: var(--cream-raised);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-points svg { width: 18px; height: 18px; fill: var(--terracotta); flex: none; }

.hero-art {
  position: relative;
  padding: 18px;
  border: 0;
  border-radius: 46% 54% 43% 57%;
  background: #F3EBDD;
}
.hero-art .critter-scene { width: 100%; height: auto; animation: critter-bob 6s ease-in-out infinite; }
@keyframes critter-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* --- the status strip ----------------------------------------------------- */

/* Numbers only where there are numbers. A build with nothing in the collection
   gets the cold-start panel below instead of a row of zeroes. */
.status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
  overflow: hidden;
  box-shadow: var(--lift);
}
.stat { padding: 18px 20px; border-right: 1.5px solid var(--edge); display: grid; gap: 2px; }
.stat:last-child { border-right: 0; }
.stat strong {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat span { font-size: 0.8125rem; color: var(--ink-muted); }

/* --- cold start ----------------------------------------------------------- */

.coldstart {
  display: grid;
  gap: 28px;
  padding: 26px 30px;
  border: 2px dashed var(--edge-strong);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
}
.coldstart-copy { display: grid; gap: 14px; max-width: 78ch; }
.coldstart-steps { display: grid; gap: 10px; list-style: none; }
.coldstart-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.coldstart-steps b {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.75rem;
}

/* --- coverage (what the departments are) ---------------------------------- */

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr));
  gap: 16px;
}
.coverage-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
  box-shadow: var(--lift);
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}
.coverage-card:hover { transform: translateY(-3px); box-shadow: var(--lift-hover); }
.coverage-head { display: flex; align-items: center; gap: 10px; }
.coverage-head h3 { font-size: 1.125rem; }
.coverage-head .category-icon { width: 30px; height: 30px; color: var(--forest-mid); flex: none; }
.coverage-card p { font-size: 0.9375rem; color: var(--ink-soft); }
.coverage-count {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--terracotta-deep);
}
.coverage-count.none { color: var(--ink-muted); }

.category-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.category-chips a {
  display: inline-block;
  padding: 5px 12px;
  border: 1.5px solid var(--control-edge);
  border-radius: var(--pill);
  background: var(--cream);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.category-chips a:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }

/* --- shelves -------------------------------------------------------------- */

.shelf { display: grid; gap: 0; }
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}
.shelf-empty {
  padding: 22px;
  border: 1.5px dashed var(--edge-strong);
  border-radius: var(--r);
  background: var(--cream-raised);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.shelf-foot { margin-top: 16px; }

/* --- the catalog ---------------------------------------------------------- */

.catalog { display: grid; gap: 20px; scroll-margin-top: 96px; }

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tab-strip button {
  padding: 8px 16px;
  border: 1.5px solid var(--control-edge);
  border-radius: var(--pill);
  background: var(--cream-raised);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
}
.tab-strip button:hover { border-color: var(--forest-mid); color: var(--forest); }
.tab-strip button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.department-tabs button { font-family: var(--display); font-size: 0.9375rem; padding: 9px 18px; }
.category-tabs button { font-size: 0.8125rem; padding: 6px 13px; }

.filters.search-only { grid-template-columns: minmax(0, 1fr); max-width: 520px; }

.filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
  box-shadow: var(--lift);
}
.search-field, .filter-field { display: grid; gap: 6px; min-width: 0; }
.filters label > span:not(.sr-only), .filter-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.filters input[type="search"], .filters select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--forest-mid);
  border-radius: var(--r);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.9375rem;
}
.filters input[type="search"]::placeholder { color: var(--ink-muted); }
.filters select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 49%, var(--forest) 50%), linear-gradient(-45deg, transparent 49%, var(--forest) 50%);
  background-size: 7px 7px;
  background-position: right 18px center, right 11px center;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.filters input[type="search"]:hover, .filters select:hover { border-color: var(--forest); }

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--edge);
}
.results-bar > p {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.reset-button {
  padding: 7px 14px;
  border: 1.5px solid var(--control-edge);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.reset-button:hover { background: var(--cream-sink); color: var(--forest); border-color: var(--forest-mid); }

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}

/* --- a deal card ---------------------------------------------------------- */

.deal-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
  box-shadow: var(--lift);
  overflow: hidden;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, border-color 140ms ease-out;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--lift-hover); border-color: var(--edge-strong); }
.deal-card:focus-within { border-color: var(--forest-mid); }

.deal-media {
  position: relative;
  aspect-ratio: 5 / 3;
  background: var(--cream-sink);
  border-bottom: 1.5px solid var(--edge);
  overflow: hidden;
}
.product-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.product-placeholder .category-icon { width: 46%; max-width: 92px; height: auto; color: var(--forest-mid); opacity: 0.5; }
.deal-media .product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px 28px 20px;
  background: var(--cream-raised);
}

.deal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--pill);
  background: var(--honey);
  color: var(--forest-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 var(--honey-deep);
}
.deal-badge.neutral { background: var(--cream-raised); color: var(--ink-soft); box-shadow: 0 0 0 1.5px var(--edge); }
/* A source-reported deal has no discount to print in the badge, so the badge
   says what the listing is instead. Outlined rather than filled: it is a
   provenance label, not a saving, and it must not read as one. */
.deal-badge.source {
  background: var(--cream-raised);
  color: var(--forest);
  box-shadow: 0 0 0 1px var(--edge);
}
/* Past standouts (web/past-standouts.mjs): history, so the badge is plain ink
   on cream, and the card never lifts on hover like a live deal. */
.deal-badge.ended { background: var(--ink-soft); color: var(--cream-raised); box-shadow: none; }
.past-card:hover { transform: none; }
.past-card .product-image { filter: grayscale(0.35); }
.past-headline { font-size: 0.875rem; font-weight: 800; color: var(--forest); margin: 0.25rem 0 0; }

/* The credit line, on a card and on a listing page. The anchor needs its own
   stacking context: the whole card is one stretched link
   (`.deal-card h3 a::after`, z-index 1) and without this the permalink would
   sit underneath it and never be clickable. */
.source-credit {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.source-credit a { position: relative; z-index: 2; color: var(--forest); }
.source-flag {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-mid);
}
.detail-copy .source-credit { font-size: 0.9375rem; }

/* Source attribution is staff-only (web/staff-view.mjs). Shoppers get the
   `data-customer-only` stand-in; the staff view swaps the two. */
html:not(.show-internal) [data-internal] { display: none !important; }
html.show-internal [data-customer-only] { display: none !important; }
.staff-toggle {
  background: none;
  border: 0;
  padding: 0 0.25rem;
  color: var(--edge);
  cursor: default;
  font-size: 0.75rem;
}
.staff-form { margin-top: 0.75rem; font-size: 0.875rem; }

.deal-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: var(--pill);
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
}

.deal-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.deal-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.deal-chips .chip { padding: 0; background: none; color: var(--ink-muted); font-size: .75rem; font-weight: 500; }
.deal-chips .chip + .chip::before { content: "·"; margin-right: 7px; }
.deal-chips .chip-merchant { color: var(--forest); font-weight: 750; }

.deal-card h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.4;
  /* Retailer titles run to two hundred characters. Three lines keeps the cards
     in a grid a shopper can scan; the listing page shows the title in full. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-card h3 a { color: var(--forest); text-decoration: none; }
/* One stretched link: the whole card is clickable, and assistive technology is
   offered the listing exactly once. */
.deal-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.deal-card:hover h3 a { text-decoration: underline; }

.price-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-top: 2px; }
.price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--terracotta-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.reference-price { color: var(--ink-muted); font-size: 0.9375rem; text-decoration-thickness: 1.5px; }
.price-note { font-size: 0.8125rem; color: var(--ink-muted); }
.comparison-label { font-size: 0.75rem; color: var(--ink-muted); margin: 0.125rem 0 0; }
.deal-rating { font-size: 0.8125rem; color: var(--ink-soft); margin: 0.125rem 0 0; }
.deal-rating.unrated { color: var(--ink-muted); }
.rating-count { color: var(--ink-muted); }
.paid-link-note {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--honey-deep);
}

.deal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--edge);
  flex-wrap: wrap;
}
.deal-go { display: inline-flex; align-items: center; gap: 9px; font-size: .8125rem; color: var(--terracotta); font-weight: 700; flex: none; transition: transform 140ms ease-out; }
.deal-card:hover .deal-go { transform: translate(2px, -2px); }
.freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.freshness::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--edge-strong);
  flex: none;
}
.freshness[data-check="verified"] { color: var(--forest-mid); }
.freshness[data-check="verified"]::before { background: var(--forest-mid); }
.freshness[data-check="provider"] { color: var(--honey-deep); }
.freshness[data-check="provider"]::before { background: var(--honey); }

/* --- paging --------------------------------------------------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.page-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.page-list button {
  min-width: 42px;
  padding: 9px 13px;
  border: 1.5px solid var(--control-edge);
  border-radius: var(--r-sm);
  background: var(--cream-raised);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.page-list button:hover:not(:disabled) { border-color: var(--forest-mid); color: var(--forest); }
.page-list button[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.page-list button:disabled { opacity: 0.45; cursor: not-allowed; }
.page-gap { padding-inline: 4px; color: var(--ink-muted); }
.page-of { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-muted); }

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

.empty-state {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 30px;
  border: 2px dashed var(--edge-strong);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
}
.empty-state p { color: var(--ink-soft); max-width: 62ch; }

/* --- explainer and banners ------------------------------------------------ */

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}
.explain-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
  box-shadow: var(--lift);
}
.step-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.explain-card p { color: var(--ink-soft); font-size: 0.9375rem; }

.banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
  border-radius: var(--r-lg);
  background: var(--forest);
  color: var(--cream);
}
.banner h2 { color: var(--cream); }
.banner .eyebrow { color: var(--honey); }
.banner p { color: var(--honey-pale); max-width: 58ch; }
.banner > div { display: grid; gap: 10px; }
.banner .button { background: var(--honey); border-color: var(--honey); color: var(--forest-deep); }
.banner .button:hover { background: var(--cream); border-color: var(--cream); color: var(--forest-deep); }

/* --- department pages ----------------------------------------------------- */

.department-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--honey-pale);
}
.department-hero > div { display: grid; gap: 12px; }
.department-hero p { color: var(--ink-soft); max-width: 60ch; }
.department-hero .category-icon { width: 96px; height: 96px; color: var(--forest-mid); opacity: 0.7; }

/* --- a listing page ------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta-deep); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.deal-detail { display: grid; gap: 30px; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}
.detail-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
  overflow: hidden;
  box-shadow: var(--lift);
}
.detail-media .product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  background: var(--cream-raised);
}
.detail-media .product-placeholder .category-icon { width: 42%; max-width: 160px; }

.detail-copy { display: grid; gap: 16px; }
.detail-copy h1 { font-size: clamp(1.375rem, 1rem + 1.1vw, 1.75rem); line-height: 1.26; }
.detail-price .price { font-size: clamp(2rem, 1.3rem + 2.2vw, 2.75rem); }
.detail-price .reference-price { font-size: 1.125rem; }
.detail-copy .price-note { font-size: 0.9375rem; }
.detail-copy .button { width: fit-content; }
.detail-copy [data-purchase-action] { display: grid; gap: 8px; justify-items: start; }
.detail-copy [data-purchase-action] .muted { max-width: 52ch; }
.detail-nearby { border-top: 1.5px dashed var(--edge); padding-top: 14px; max-width: 60ch; }
.expired-report { margin-top: 14px; max-width: 60ch; }
.expired-report-intro { margin: 0 0 8px; font-size: 0.92em; }
.expired-report-status:empty { display: none; }

.detail-facts-block { display: grid; gap: 16px; }
.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--cream-raised);
  overflow: hidden;
}
.detail-facts > div { display: grid; gap: 4px; padding: 15px 18px; border-bottom: 1.5px solid var(--edge); }
.detail-facts dt {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.detail-facts dd { font-size: 0.9375rem; color: var(--ink); }

/* --- prose / static pages ------------------------------------------------- */

.page-content { max-width: 74ch; display: grid; gap: 18px; padding-top: 44px; }
.page-content.wide { max-width: none; }
.deal-detail { padding-top: 32px; }

.prose { display: grid; gap: 16px; }
.prose h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin-top: 14px; }
.prose h3 { font-size: 1.0625rem; margin-top: 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 22px; }
.prose li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li::marker { color: var(--honey-deep); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--edge); vertical-align: top; }
.prose th { font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.prose code {
  font-family: var(--sans);
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--cream-sink);
  color: var(--forest);
}
.prose dl { display: grid; gap: 10px; }
.prose dt { font-weight: 700; color: var(--forest); }
.prose dd { color: var(--ink-soft); }

.prose pre { overflow-x: auto; padding: 12px 14px; border-radius: var(--r-sm); background: var(--cream-sink); }
.prose pre code { padding: 0; font-family: var(--mono); white-space: pre; }
.mcp-demo { display: grid; gap: 10px; }
.mcp-demo video { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1.5px solid var(--edge); background: var(--cream-sink); }
.mcp-demo figcaption { font-size: 0.8125rem; color: var(--ink-muted); }
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.connect-grid section { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 18px; border: 1.5px solid var(--edge); border-radius: var(--r); background: var(--cream-raised); }
.connect-grid h3 { margin: 0; }
.connect-grid ol { padding-left: 20px; }
.connect-grid ol li { list-style: decimal; }
.connect-grid pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.connect-grid pre code span { white-space: nowrap; }

/* --- 404 ------------------------------------------------------------------ */

.notfound {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 36px;
  padding-top: 44px;
}
.notfound-copy { display: grid; gap: 18px; justify-items: start; }
.notfound-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}
.notfound-search input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 15px;
  border: 2px solid var(--forest-mid);
  border-radius: var(--r);
  background: var(--cream-raised);
}
.notfound-links { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; }
.notfound-links a { font-weight: 600; font-size: 0.9375rem; }

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

.site-footer {
  margin-top: 24px;
  padding-block: 44px 34px;
  background: var(--forest-deep);
  color: var(--honey-pale);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1.5px solid rgba(251, 246, 236, 0.18);
}
.site-footer .brand { color: var(--cream); }
.site-footer .brand-name strong { color: var(--cream); }
.site-footer .brand-name small { color: var(--honey); }
.footer-blurb { color: var(--fur, #E3D3B6); font-size: 0.9375rem; margin-top: 14px; max-width: 34ch; }
.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 12px;
}
.footer-col ul { display: grid; gap: 8px; list-style: none; }
.footer-col a { color: var(--honey-pale); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--cream); text-decoration: underline; }
.footer-note {
  margin-top: 26px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #D2BE9B;
  max-width: 100ch;
}
.footer-note a { color: var(--honey-pale); }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-block: 34px 0; }
  .hero-art { max-width: 500px; }
  .detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .detail-media { max-width: 460px; aspect-ratio: 4 / 3; }
  .notfound { grid-template-columns: 1fr; }
  .notfound .critter-scene { max-width: 360px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-field { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  main.container { gap: 44px; padding-bottom: 52px; }
  .banner, .department-hero { grid-template-columns: 1fr; }
  .department-hero .category-icon { width: 64px; height: 64px; }
  .banner { padding: 24px; }
  .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1.5px solid var(--edge); }
  .stat:nth-child(2n) { border-right: 0; }
  .deal-grid, .shelf-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
  .header-inner { padding-block: 10px; }
  /* Four links wrap onto two rows rather than scrolling sideways: a nav item
     clipped at the edge of the screen looks like a broken page. */
  .header-nav { width: 100%; gap: 6px; }
  .header-nav a { padding: 7px 12px; font-size: 0.875rem; white-space: nowrap; }
  .empty-state, .coldstart { padding: 20px; }
  .page-content { padding-top: 30px; }
  .detail-facts > div { border-right: 0 !important; }
}

@media (max-width: 420px) {
  .filters { grid-template-columns: 1fr; }
  /* The strip stays two across: four stacked tiles is a lot of scrolling for
     four numbers. */
  .stat { padding: 14px 15px; }
  .stat strong { font-size: 1.5rem; }
}

/* A shopper who asked their system for less contrast-heavy decoration still
   needs the structure; a shopper who asked for more gets firmer rules. */
@media (prefers-contrast: more) {
  :root { --edge: #8A7A5E; --edge-strong: #6B5C42; --control-edge: #4A3F2C; --ink-muted: #3E4C43; }
  .deal-card, .panel, .coverage-card, .explain-card { border-width: 2px; }
}

.header-nav { position: relative; }
.department-nav { position: static; }
.department-trigger {
  display: flex; align-items: center; gap: 7px; padding: 10px 12px;
  border: 0; border-radius: 12px; background: transparent;
  font-weight: 700; color: var(--ink); cursor: pointer;
}
.department-trigger:hover, .department-trigger[aria-expanded="true"] { background: var(--cream-sink); }
.department-trigger { line-height: 1.25; }
.department-chevron { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.department-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  width: min(560px, calc(100vw - 40px)); padding: 14px;
  background: var(--cream-raised); border: 1px solid var(--edge);
  border-radius: 20px; box-shadow: 0 18px 45px -12px rgba(40, 56, 47, .16);
}
.department-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.department-menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; list-style: none; }
.department-menu li a { display: flex; gap: 10px; align-items: center; padding: 11px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.department-menu li a:hover { background: #F3EBDD; }
.department-menu li svg { width: 25px; height: 25px; flex: none; }
.department-menu-all { display: flex; justify-content: space-between; padding: 8px 11px 13px; margin-bottom: 6px; border-bottom: 1px solid var(--edge); font-weight: 700; }
.announcement { letter-spacing: .025em; }
@media (max-width: 700px) {
  .header-nav { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 3px; }
  .header-nav > a { padding: 8px 6px; font-size: .8rem; }
  .department-trigger { padding: 8px 4px; font-size: .8rem; gap: 4px; }
  .department-menu { padding: 10px; }
  .department-menu li a { padding: 9px 6px; gap: 6px; font-size: .83rem; }
}

/* --- hot deals ------------------------------------------------------------ */

/* The row the home page leads with. It is the same card as everywhere else on
   a warmer panel, because the difference between these listings and the rest
   is a fact about their price history, not a different kind of product. Only
   palette tokens whose contrast is asserted in tests/critter-site.test.mjs are
   used here. */
.hot-shelf {
  padding: 26px 24px 28px;
  /* The panel and its cards sit on a warmer paper than the rest of the page,
     so they take the control-grade edge rather than the decorative hairline:
     it clears 3:1 on the tone behind them (WCAG 1.4.11) and a card here is
     clickable in its entirety. */
  border: 1.5px solid var(--control-edge);
  border-radius: var(--r-lg);
  background: var(--terracotta-pale);
  scroll-margin-top: 96px;
}
.hot-shelf .section-head { margin-bottom: 18px; }
.hot-shelf .eyebrow { color: var(--terracotta-deep); }
.hot-shelf .section-head h2 { color: var(--forest); }
.hot-shelf .shelf-empty { background: var(--cream-raised); border-color: var(--control-edge); }

/* The drop itself. Along the bottom of the frame rather than opposite the
   discount badge: the two numbers belong together but "38% below baseline" is
   a long label, and at four cards across a badge and a flag on the same line
   clipped each other. */
.hot-flag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--pill);
  background: var(--terracotta);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 var(--terracotta-deep);
}

.hot-detected {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terracotta-deep);
}
.hot-card { border-color: var(--control-edge); }

@media (max-width: 720px) {
  .hot-shelf { padding: 20px 16px 22px; }
}

/* Three homepage picks fill their shelf without leaving a fourth empty track. */
[data-home-top] .shelf-grid { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }


/* --- the little bargain shop --------------------------------------------- */
.critter-home {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding: 32px 24px 30px;
  border-bottom: 1px solid var(--edge);
}
.critter-home .hero-copy { gap: 15px; }
.hero-kicker { display: flex; align-items: center; gap: 8px; font-size: .6875rem; }
.hero-kicker > span { font-size: 1.1rem; line-height: 1; }
.critter-home h1 { font-size: clamp(2.75rem, 1.65rem + 3vw, 4.15rem); line-height: .99; letter-spacing: -.05em; font-weight: 900; }
.critter-home h1 br { display: none; }
.critter-home h1 em { display: block; }
.critter-home .hero-lede { max-width: 44ch; font-size: 1rem; line-height: 1.6; }
.hero-actions { align-items: center; gap: 22px; }
.hero-actions .button { padding: 10px 22px; background: var(--terracotta); border-color: var(--terracotta); font-size: .9375rem; }
.hero-actions .button:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.hero-text-link, .text-link { color: var(--forest); font-size: .8125rem; font-weight: 650; text-decoration: none; }
.hero-text-link span, .text-link span { display: inline-block; margin-left: 5px; }
.hero-text-link:hover, .text-link:hover { text-decoration: underline; }
.foraging-status { color: var(--ink-muted); font-size: .75rem; }
.critter-home .hero-art { padding: 0; background: none; justify-self: center; width: 280px; position: relative; isolation: isolate; }
.critter-home .hero-art::before { content: ""; position: absolute; inset: 25px 18px 30px; border-radius: 50%; background: var(--cream-sink); z-index: -1; }
.critter-home .hero-art .critter-scene { animation: none; max-height: 220px; }
.critter-caption { text-align: center; font-family: var(--display); font-weight: 750; font-size: .8125rem; color: var(--terracotta-deep); transform: rotate(-4deg); }
.catalog { gap: 16px; }
.catalog .section-head { margin-bottom: 0; }
.catalog .section-head h2 { font-size: 2rem; }
.catalog .section-head .eyebrow { font-size: .6875rem; }
.catalog .section-head p:not(.eyebrow) { font-size: .875rem; }
.catalog .section-head .aside { font-size: .6875rem; }
.department-tabs { border-bottom: 1px solid var(--edge); gap: 8px; }
.department-tabs button { padding: 8px 10px 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font-size: .875rem; color: var(--ink-muted); }
.department-tabs button[aria-pressed="true"] { background: none; color: var(--terracotta-deep); border-color: var(--terracotta); }
.department-tabs button:hover { background: var(--cream-sink); }
.filters, .filters.search-only { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; max-width: none; border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0; align-items: start; }
.search-field { position: relative; grid-column: auto; }
.search-field > svg { position: absolute; left: 15px; top: 14px; color: var(--ink-muted); pointer-events: none; }
.filters input[type="search"], .filters select { border: 1px solid var(--control-edge); background-color: var(--cream-raised); border-radius: 10px; min-height: 48px; font-size: .875rem; }
.filters input[type="search"] { padding: 11px 16px 11px 44px; }
.filter-drawer { min-width: 150px; }
.filter-drawer summary { display: flex; justify-content: center; align-items: center; gap: 9px; list-style: none; border: 1px solid var(--control-edge); border-radius: 10px; min-height: 48px; padding: 10px 16px; cursor: pointer; font-size: .8125rem; font-weight: 650; background: var(--cream-raised); }
.filter-drawer summary::-webkit-details-marker { display: none; }
.filter-drawer[open] { display: contents; }
.filter-drawer[open] > summary { grid-column: 2; background: var(--cream-sink); }
.filter-options { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; border: 1px solid var(--edge); border-radius: 14px; background: var(--cream-sink); }
.filter-options .category-tabs { grid-column: 1 / -1; }
.filters label > span:not(.sr-only) { text-transform: none; letter-spacing: 0; font-size: .75rem; font-weight: 650; }
.results-bar { border: 0; padding: 0; min-height: 22px; }
.results-bar > p { font-size: .75rem; letter-spacing: 0; }
.results-bar .reset-button { border: 0; padding: 3px 0 3px 12px; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }
.deal-grid, .shelf-grid { gap: 20px; }
.deal-card { box-shadow: 0 3px 0 rgba(40,56,47,.035); }
.deal-badge { top: 14px; left: 14px; font-size: .6875rem; padding: 5px 10px; box-shadow: none; }
.deal-rank { top: 14px; right: 14px; }
.deal-body > .source-credit { font-size: .75rem; }
.deal-foot .freshness { font-size: .6875rem; font-weight: 450; flex: 1 1 190px; }
.deal-go > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--terracotta-pale); }
.catalog-notes { border-top: 1px solid var(--edge); padding-top: 17px; font-size: .75rem; color: var(--ink-muted); }
.catalog-notes summary { width: fit-content; cursor: pointer; font-weight: 650; }
.catalog-notes p { margin-top: 10px; max-width: 100ch; line-height: 1.8; }
.catalog-disclosure { font-size: .6875rem; color: var(--ink-muted); margin-top: -6px; }
.home-departments { padding-top: 8px; }
.home-departments .coverage-card { background: transparent; box-shadow: none; border-radius: 14px; }
.home-departments .coverage-card p { font-size: .8125rem; }
.home-departments .coverage-count { font-size: .75rem; text-transform: none; letter-spacing: 0; font-weight: 650; }
.assistant-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 0; border-top: 1px solid var(--edge); color: var(--ink-muted); font-size: .8125rem; }
.assistant-note > div { display: flex; align-items: center; gap: 12px; }
.assistant-note .pawprint { fill: var(--terracotta); width: 22px; height: 22px; }
.assistant-note strong { color: var(--forest); }
.site-footer { margin-top: 0; border-radius: 28px 28px 0 0; }
@media (min-width: 900px) {
  .deal-grid:has(> :only-child), .shelf-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
  .deal-grid > .deal-card:only-child, .shelf-grid > .deal-card:only-child { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); grid-template-rows: 1fr; }
  .deal-card:only-child .deal-media { min-height: 260px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--edge); }
  .deal-grid:has(> :nth-child(2):last-child) .deal-media { aspect-ratio: 2 / 1; }
}
@media (max-width: 900px) {
  .critter-home { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; padding-inline: 0; }
  .critter-home .hero-art { width: 210px; }
  .hero-text-link { display: none; }
  .header-nav .nav-about { display: none; }
}
@media (max-width: 700px) {
  main.container { gap: 32px; }
  .announcement > div { padding-block: 6px; }
  .announcement span { display: none; }
  .header-inner { flex-wrap: nowrap; gap: 12px; padding-block: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-name strong { font-size: 1.05rem; }
  .brand-name small { font-size: .5625rem; margin-top: 4px; }
  .header-nav { width: auto; flex: none; }
  .header-nav > a { display: none; }
  .department-trigger { font-size: .75rem; padding: 9px 0 9px 5px; }
  .department-menu { position: absolute; right: 0; width: min(520px, calc(100vw - 32px)); }
  .critter-home { position: relative; display: block; padding-block: 22px 24px; }
  .critter-home .hero-copy { gap: 12px; position: relative; z-index: 1; }
  .hero-kicker { font-size: .5625rem; letter-spacing: .025em; max-width: calc(100% - 85px); gap: 5px; }
  .hero-kicker > span { font-size: .875rem; }
  .critter-home h1 { font-size: clamp(2.1rem, 8.8vw, 3.1rem); max-width: calc(100% - 95px); }
  .critter-home .hero-lede { font-size: .875rem; line-height: 1.55; max-width: 36ch; }
  .critter-home .hero-art { position: absolute; right: -3px; top: 35px; width: 126px; padding: 0; }
  .critter-home .hero-art .critter-scene { width: 100%; max-height: 122px; }
  .critter-home .hero-art::before { inset: 10px 8px 0; }
  .critter-caption { display: none; }
  .hero-actions .button { padding: 8px 17px; font-size: .8125rem; min-height: 40px; }
  .foraging-status { font-size: .6875rem; }
  .catalog { gap: 12px; }
  .catalog .section-head { gap: 7px; }
  .catalog .section-head h2 { font-size: 1.7rem; }
  .catalog #department-copy { font-size: .8125rem; }
  .catalog .section-head .aside { display: none; }
  .department-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0; }
  .department-tabs button { white-space: nowrap; font-size: .8125rem; padding: 7px 8px 9px; }
  .filters { gap: 8px; }
  .filter-drawer { min-width: 125px; }
  .filter-drawer summary { font-size: .75rem; padding: 9px; gap: 6px; }
  .filters input[type="search"] { font-size: .8125rem; padding-left: 37px; }
  .search-field > svg { left: 11px; }
  .filter-options { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .deal-grid, .shelf-grid, [data-home-top] .shelf-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
  .deal-media { aspect-ratio: 1.75 / 1; }
  .deal-body { padding: 17px 18px; gap: 9px; }
  .deal-card h3 { font-size: 1rem; }
  .price { font-size: 1.8rem; }
  .home-departments .section-head { align-items: start; }
  .home-departments .section-head > .text-link { margin-top: 3px; }
  .assistant-note { font-size: .75rem; }
  .assistant-note > .text-link { margin-left: 34px; }
  .site-footer { border-radius: 20px 20px 0 0; }
  .footer-top { gap: 26px 20px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .brand-name strong { font-size: .925rem; }
  .brand-mark { width: 33px; height: 33px; }
  .department-trigger { font-size: .6875rem; }
  .critter-home .hero-art { width: 108px; top: 48px; }
  .hero-kicker { max-width: 100%; }
  .critter-home h1 { font-size: 2rem; }
}

.conditional-offer{margin:.4rem 0;font-size:1rem;line-height:1.5}.conditional-offer strong{font-size:1.3rem}.conditional-offer small{color:var(--muted)}

/* --- older deals (/older-deals) ------------------------------------------- */

.older-deals { display: grid; gap: 18px; }
.older-deals h1 { margin: 0; }
.stale-notice { background: var(--honey-pale); color: var(--honey-deep); border: 1px solid var(--honey); border-radius: var(--r); padding: 14px 16px; font-size: .9375rem; line-height: 1.5; }
.stale-notice strong { color: var(--forest-deep); }
.stale-notice a { color: var(--forest-deep); font-weight: 700; }
.older-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.older-chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--control-edge); border-radius: var(--pill); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 650; background: var(--cream-raised); }
.older-chip:hover { background: var(--cream-sink); }
.older-chip.active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.older-card .deal-badge.ended { background: var(--honey-deep); }
.price-then { font-size: .8125rem; color: var(--ink-muted); font-weight: 650; }
.older-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; color: var(--ink-muted); font-size: .875rem; }
@media (max-width: 700px) {
  .header-nav > a.nav-older { display: inline-block; padding: 8px 6px; font-size: .75rem; white-space: nowrap; }
  .older-pagination { flex-wrap: wrap; justify-content: center; }
}

/* --- deal of the day: the critter's trash bag ----------------------------- */

.dotd { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; justify-items: end; gap: 10px; max-width: calc(100vw - 36px); }
.dotd-panel { position: relative; width: min(380px, calc(100vw - 36px)); max-height: calc(100vh - 36px); overflow-y: auto; background: var(--cream-raised); border: 1px solid var(--edge-strong); border-radius: var(--r-lg); box-shadow: 0 18px 40px -16px rgba(25, 39, 31, .45); padding: 16px 16px 18px; transform: translateY(24px) scale(.96); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .25s ease; }
.dotd.is-in .dotd-panel { transform: none; opacity: 1; }
.dotd-panel .eyebrow { margin: 0 34px 6px 2px; }
.dotd-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: var(--pill); border: 1px solid var(--control-edge); background: var(--cream); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.dotd-close:hover { background: var(--cream-sink); }
.dotd-bag-button { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 4px 4px 8px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--r); }
.dotd-bag-button:hover .dotd-art { transform: rotate(-2deg) scale(1.02); }
.dotd-art { width: 220px; max-width: 100%; height: auto; transition: transform .2s ease; }
.dotd-prompt { display: grid; gap: 2px; text-align: center; font-size: .9375rem; line-height: 1.4; }
.dotd-prompt strong { font-family: var(--display); font-size: 1.05rem; color: var(--forest); }
.dotd-prompt span { color: var(--ink-muted); font-size: .8125rem; }
.dotd-art .dotd-bag { transform-origin: 50% 100%; transform-box: fill-box; animation: dotd-wiggle 2.6s ease-in-out infinite; }
.dotd-art .dotd-knot, .dotd-art .dotd-glow, .dotd-art .dotd-sparkle { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .45s ease, opacity .35s ease; }
.dotd.is-open .dotd-bag { animation: none; }
.dotd.is-open .dotd-knot { transform: translate(26px, -34px) rotate(50deg); opacity: 0; }
.dotd.is-open .dotd-glow { opacity: 1; transform: translateY(-6px); }
.dotd.is-open .dotd-sparkle { opacity: 1; transform: scale(1.15); }
.dotd.is-revealed .dotd-stage { display: none; }
.dotd-reveal { display: grid; gap: 10px; animation: dotd-rise .35s ease both; }
.dotd-found { margin: 0; font-family: var(--display); font-weight: 800; color: var(--terracotta-deep); }
.dotd-reveal .deal-card { box-shadow: none; }
.dotd-peek { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); border: 0; background: var(--forest); color: var(--cream); font-family: var(--display); font-weight: 800; font-size: .9375rem; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(25, 39, 31, .6); --focus: var(--forest-deep); }
.dotd-peek::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--honey); }
.dotd-peek:hover { background: var(--forest-mid); }
@keyframes dotd-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-3deg); } 82% { transform: rotate(3deg); } 88% { transform: rotate(-2deg); } 94% { transform: rotate(1deg); } }
@keyframes dotd-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .dotd { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
  .dotd-panel { width: calc(100vw - 24px); }
  .dotd-art { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .dotd-art .dotd-bag { animation: none; }
}
.older-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.older-search .search-field { flex: 1 1 280px; }
.older-search input[type="search"] { width: 100%; border: 1px solid var(--control-edge); background-color: var(--cream-raised); border-radius: 10px; min-height: 48px; font-size: .875rem; padding: 11px 16px 11px 44px; color: var(--ink); font: inherit; }
.older-search input[type="search"]:hover { border-color: var(--forest); }
.older-search .button { min-height: 48px; }

/* Seen on social (/social) */
.social-deals { display: grid; gap: 18px; }
.social-deals h1 { margin: 0; }
.social-item { display: flex; flex-direction: column; gap: 6px; }
.social-item > .deal-card { flex: 1; }
.social-seen { margin: 0; font-size: .8125rem; font-weight: 650; color: var(--forest-deep); }
.social-seen a { color: inherit; }
