/* =============================================================================
   THE SALAD PLAYBOOK — design system
   -----------------------------------------------------------------------------
   Light only. One typeface (Inter, with optical sizing for display). One icon
   set (Lucide outlines, inlined). Photography carries all food identity, so no
   emoji anywhere in the interface.

   The page background deliberately matches the plaster surface the photography
   was shot on, so images sit on the page rather than float above it.
   ========================================================================== */

/* ------------------------------------------------------------------- tokens */
:root {
  --paper:     #FBF8F1;
  --paper-2:   #F4F0E6;
  --surface:   #FFFFFF;
  --surface-2: #FCFAF6;

  --ink:       #171E15;
  --ink-2:     #59634F;
  --ink-3:     #8C9484;

  --green-900: #14301B;
  --green-700: #23572F;
  --green-500: #3D7C4B;
  --green-soft:#EAF2E4;

  --terra:     #B24E1C;
  --terra-soft:#FAEBE0;
  --amber:     #A97913;
  --amber-soft:#FAF1DC;
  --berry:     #8A3A5E;
  --berry-soft:#F7E9EF;

  --line:      rgba(23,30,21,.10);
  --line-2:    rgba(23,30,21,.20);

  --shadow-sm: 0 1px 2px rgba(20,48,27,.05), 0 1px 3px rgba(20,48,27,.05);
  --shadow-md: 0 2px 6px rgba(20,48,27,.06), 0 10px 24px rgba(20,48,27,.07);
  --shadow-lg: 0 8px 18px rgba(20,48,27,.08), 0 28px 56px rgba(20,48,27,.10);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  --ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --nav-h: 64px;
  --wrap: 1180px;
}

/* -------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv05' 1, 'ss03' 1;   /* single-storey l, rounded quotes */
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--green-soft); }

/* ------------------------------------------------------------------- icons */
/* Lucide outlines. Never filled, always inheriting text colour. */
.ic { display: inline-block; flex: none; vertical-align: -.18em; }
.ic-lg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- typography */
h1, h2, h3, h4 {
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -.028em;
  font-variation-settings: 'opsz' 32;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: -.03em; }
h3 { font-size: 1.08rem; letter-spacing: -.02em; }
.lede { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.tiny { font-size: .78rem; }
.eyebrow {
  font-size: .7rem; font-weight: 680;
  letter-spacing: .12em; text-transform: uppercase; color: var(--terra);
}
.num {
  font-size: 2.2rem; font-weight: 680; line-height: 1;
  letter-spacing: -.04em; color: var(--green-700);
  font-variation-settings: 'opsz' 32;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- app shell */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.view { padding-block: clamp(28px, 5vw, 56px); animation: rise .3s cubic-bezier(.2,.7,.3,1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.section { margin-top: clamp(36px, 6vw, 64px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head p { color: var(--ink-2); max-width: 58ch; margin-top: 6px; }

/* ----------------------------------------------------------------- top nav */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px);
  height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 660; font-size: 1rem;
  letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm);
}
.tabs { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 7px 13px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 540;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.tab:hover { background: var(--paper-2); color: var(--ink); }
.tab[aria-current="page"] { background: var(--green-700); color: #fff; }

.pantry-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: var(--r-pill); background: var(--green-soft); color: var(--green-700);
  font-size: .8rem; font-weight: 620; border: 1px solid var(--line); text-decoration: none; white-space: nowrap;
}

/* mobile bottom bar */
.botbar { display: none; }
@media (max-width: 780px) {
  .tabs { display: none; }
  .botbar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 70;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .botbar a {
    flex: 1; display: grid; gap: 3px; place-items: center; padding: 6px 2px;
    text-decoration: none; color: var(--ink-3); font-size: .64rem; font-weight: 580;
  }
  .botbar a[aria-current="page"] { color: var(--terra); }
  body { padding-bottom: 74px; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 600;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-green { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { color: var(--ink-2); padding: 8px 12px; }
.btn-quiet:hover { background: var(--paper-2); color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: .82rem; }
.btn-lg { padding: 13px 24px; font-size: .96rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-pad { padding: clamp(18px, 2.4vw, 26px); }
.grid { display: grid; gap: clamp(14px, 2vw, 20px); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* Ingredient tiles: was 132px with a 56px circle inside. Now the photo fills the
   card, so the food is ~3x larger and actually identifiable. */
.g-6 { grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)); }

/* ------------------------------------------------- image placeholder system */
.ph {
  position: relative; overflow: hidden; background: var(--paper-2);
  background-image:
    linear-gradient(135deg, color-mix(in srgb, var(--green-soft) 80%, transparent), transparent 60%),
    linear-gradient(315deg, color-mix(in srgb, var(--amber-soft) 70%, transparent), transparent 60%);
  display: grid; place-items: center; isolation: isolate;
}
.ph img { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; }
.ph-16x9 { aspect-ratio: 16/9; }
.ph-4x3  { aspect-ratio: 4/3; }
.ph-1x1  { aspect-ratio: 1/1; }
.ph-hero { aspect-ratio: 5/4; border-radius: var(--r-xl); }

/* -------------------------------------------------------------------- hero */
.hero { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: 1.05fr .95fr; align-items: center; padding-block: clamp(28px, 5vw, 56px); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stat span { display: block; font-size: .78rem; color: var(--ink-2); font-weight: 520; margin-top: 3px; }
.hero-art { position: relative; }
.hero-badge {
  position: absolute; right: -6px; top: -14px; z-index: 5; width: 96px; height: 96px; border-radius: 50%;
  background: var(--green-700); color: #fff; display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-md); line-height: 1.05;
}
.hero-badge b { font-size: 1.7rem; font-weight: 680; display: block; letter-spacing: -.04em; }
.hero-badge i { font-style: normal; font-size: .58rem; font-weight: 640; letter-spacing: .11em; text-transform: uppercase; opacity: .85; }

/* --------------------------------------------------------- formula diagram */
.formula { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 900px) { .formula { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .formula { grid-template-columns: repeat(2, 1fr); } }
.slot {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 14px; position: relative; transition: transform .16s, box-shadow .16s, border-color .16s;
}
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.slot-n { font-size: .74rem; font-weight: 620; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.slot-e { margin: 10px 0 9px; color: var(--green-700); }
.slot h4 { font-size: .94rem; font-weight: 660; letter-spacing: -.015em; }
.slot p { font-size: .78rem; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.slot[data-tier="must"]   { border-left: 3px solid var(--terra); }
.slot[data-tier="should"] { border-left: 3px solid var(--amber); }
.slot[data-tier="could"]  { border-left: 3px solid var(--green-500); }

/* ------------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 560; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  transition: background .14s, border-color .14s, color .14s;
}
.chip:hover { border-color: var(--green-500); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip-mini { padding: 3px 9px; font-size: .7rem; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.tag-veg   { background: var(--green-soft); color: var(--green-700); }
.tag-vegan { background: var(--green-soft); color: var(--green-500); }
.tag-gf    { background: var(--amber-soft); color: var(--amber); }
.tag-hp    { background: var(--berry-soft); color: var(--berry); }
.tag-egg   { background: var(--terra-soft); color: var(--terra); }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); font-size: .71rem; font-weight: 620; }
.st-ready { background: var(--green-soft); color: var(--green-700); }
.st-swap  { background: var(--amber-soft); color: var(--amber); }
.st-near  { background: var(--terra-soft); color: var(--terra); }
.st-shop  { background: var(--paper-2);    color: var(--ink-3); }

/* -------------------------------------------------------------- bowl cards */
.bowl-card { display: flex; flex-direction: column; transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s; text-decoration: none; }
.bowl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bowl-card .ph { border-radius: 0; }
.bowl-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bowl-body h3 { font-size: 1.05rem; font-weight: 640; }
.bowl-body .tagline { font-size: .83rem; color: var(--ink-2); line-height: 1.45; }
.bowl-meta { display: flex; align-items: center; gap: 12px; font-size: .76rem; color: var(--ink-3); font-weight: 540; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.bowl-meta b { color: var(--green-700); font-weight: 680; }
.bowl-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------- ingredient tile */
.pantry-group { margin-bottom: 34px; }
.pantry-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pantry-group-head h3 { font-size: 1rem; font-weight: 680; display: inline-flex; align-items: center; gap: 8px; }
.pantry-group-head h3 .ic { color: var(--green-700); }
.pantry-group p { font-size: .84rem; color: var(--ink-2); margin-bottom: 14px; }

/* Photo-first: the image fills the card so a grated carrot is actually
   distinguishable from grated beetroot. The old 56px circle cropped every
   ingredient down to an unreadable smudge. */
.ing {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: var(--surface); text-align: left;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.ing:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.ing .ph { width: 100%; aspect-ratio: 1; border-radius: 0; }
.ing-body { padding: 9px 11px 11px; }
.ing-name { display: block; font-size: .84rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.ing-sub { display: block; font-size: .69rem; color: var(--ink-3); margin-top: 2px; }
.ing[aria-pressed="true"] { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-soft); }
.ing[aria-pressed="true"] .ing-body { background: var(--green-soft); }
.ing[aria-pressed="true"]::after {
  content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-700); z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9);
}
.ing-tier { position: absolute; top: 9px; left: 9px; z-index: 5; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.ing-tier[data-t="must"]   { background: var(--terra); }
.ing-tier[data-t="should"] { background: var(--amber); }
.ing-tier[data-t="could"]  { background: var(--green-500); }

/* ------------------------------------------------------------ decide flow */
.q-card { max-width: 760px; margin-inline: auto; }
.q-opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 20px; }
.q-opt {
  padding: 20px 18px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface);
  text-align: left; transition: transform .14s, border-color .14s, box-shadow .14s;
}
.q-opt:hover { transform: translateY(-2px); border-color: var(--green-500); box-shadow: var(--shadow-md); }
.q-opt .e { display: block; margin-bottom: 12px; color: var(--green-700); }
.q-opt b { display: block; font-size: .95rem; font-weight: 640; letter-spacing: -.015em; }
.q-opt span { font-size: .79rem; color: var(--ink-2); }
.q-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 26px; }
.q-dot { width: 32px; height: 3px; border-radius: 2px; background: var(--line-2); }
.q-dot.on { background: var(--terra); }

.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 800px) { .verdict { grid-template-columns: 1fr; } }
.verdict .ph { min-height: 300px; border-radius: 0; }
.verdict-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }

/* ------------------------------------------------------------- bowl builder */
.builder { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } }
.build-canvas { position: sticky; top: calc(var(--nav-h) + 18px); }
@media (max-width: 980px) { .build-canvas { position: static; } }

.bowl-stage {
  position: relative; aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--surface) 0 58%, var(--paper-2) 58% 100%);
  border: 1px solid var(--line); box-shadow: inset 0 -14px 30px rgba(20,48,27,.05), var(--shadow-md);
  display: grid; place-items: center; overflow: hidden;
}
.bowl-stage::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--line-2); pointer-events: none; }
.stage-empty { text-align: center; color: var(--ink-3); font-size: .84rem; padding: 0 40px; }
.stage-empty .ic { margin: 0 auto 10px; color: var(--line-2); }
.stage-items { position: absolute; inset: 12%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 6px; }
.stage-chip {
  position: relative; width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  animation: pop .28s cubic-bezier(.2,1.4,.4,1);
}
.stage-chip img { width: 100%; height: 100%; object-fit: contain; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.stage-note { margin-top: 14px; padding: 12px 15px; border-radius: var(--r-md); font-size: .8rem; line-height: 1.5; background: var(--surface); border: 1px solid var(--line); }
.crit { display: flex; gap: 9px; padding: 9px 0; font-size: .82rem; line-height: 1.45; border-bottom: 1px solid var(--line); align-items: flex-start; }
.crit:last-child { border-bottom: none; }
.crit .ic { margin-top: 1px; }
.crit-error .ic { color: var(--terra); }
.crit-warn .ic  { color: var(--amber); }
.crit-tip .ic   { color: var(--ink-3); }
.crit-good .ic  { color: var(--green-500); }

.rail { margin-bottom: 26px; }
.rail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rail-head .n { width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft); color: var(--green-700);
  display: grid; place-items: center; font-size: .74rem; font-weight: 700; flex: none; }
.rail-head h3 { font-size: .96rem; font-weight: 660; display: inline-flex; align-items: center; gap: 7px; }
.rail-head h3 .ic { color: var(--green-700); }
.rail-head small { color: var(--ink-3); font-size: .75rem; margin-left: 6px; }
@media (max-width: 620px) { .rail-head small { display: none; } }
.rail-hint { font-size: .79rem; color: var(--ink-2); margin-bottom: 11px; }

/* --------------------------------------------------------------- shopping */
.leverage { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.leverage .ph { width: 62px; height: 62px; border-radius: var(--r-sm); flex: none; }
.leverage-body { flex: 1; min-width: 0; }
.leverage-body b { font-size: .94rem; font-weight: 620; }
.leverage-body p { font-size: .8rem; color: var(--ink-2); line-height: 1.4; }
.leverage-n { flex: none; text-align: center; padding: 8px 13px; border-radius: var(--r-md); background: var(--green-soft); color: var(--green-700); }
.leverage-n b { font-size: 1.4rem; font-weight: 700; display: block; line-height: 1; letter-spacing: -.03em; }
.leverage-n span { font-size: .6rem; font-weight: 660; letter-spacing: .07em; text-transform: uppercase; }

.list-item { display: flex; align-items: center; gap: 13px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item input { width: 19px; height: 19px; accent-color: var(--green-700); flex: none; }
.list-item .n { flex: 1; font-size: .9rem; font-weight: 560; }
.list-item .n small { display: block; font-weight: 420; color: var(--ink-3); font-size: .73rem; }
.list-item input:checked + .n { text-decoration: line-through; color: var(--ink-3); }
.aisle-head { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin: 22px 0 4px; }

/* ------------------------------------------------------------------- week */
.day { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.day-n { flex: none; width: 48px; text-align: center; }
.day-n b { display: block; font-size: 1.3rem; font-weight: 680; color: var(--green-700); line-height: 1; letter-spacing: -.03em; }
.day-n span { font-size: .6rem; font-weight: 660; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.day .ph { width: 64px; height: 64px; border-radius: var(--r-sm); flex: none; }
.day-body { flex: 1; min-width: 0; }
.day-body b { font-size: .95rem; font-weight: 620; }
.day-body p { font-size: .79rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ misc */
.note { padding: 13px 15px; border-radius: var(--r-md); font-size: .85rem; line-height: 1.55;
  background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 26%, transparent); }
.note::after { content: ''; display: block; clear: both; }
.note > .ic { float: left; margin: 1px 10px 2px 0; color: var(--amber); }
.note-green { background: var(--green-soft); border-color: color-mix(in srgb, var(--green-500) 28%, transparent); }
.note-green .ic { color: var(--green-500); }
.note b { font-weight: 660; }

.empty { text-align: center; padding: clamp(40px, 8vw, 80px) 20px; color: var(--ink-2); }
.empty .ic { margin: 0 auto 14px; color: var(--line-2); }
.empty h3 { margin-bottom: 8px; color: var(--ink); }

.switch { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.switch input { width: 40px; height: 23px; appearance: none; background: var(--line-2); border-radius: var(--r-pill); position: relative; transition: background .18s; flex: none; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s; }
.switch input:checked { background: var(--green-500); }
.switch input:checked::after { transform: translateX(17px); }
.switch span { font-size: .87rem; }
.switch small { display: block; color: var(--ink-3); font-size: .75rem; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.kv:last-child { border-bottom: none; }
.kv b { font-weight: 620; }

details.acc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
details.acc > summary { padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: 10px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '+'; margin-left: auto; font-size: 1.1rem; color: var(--ink-3); }
details.acc[open] > summary::after { content: '\2212'; }
details.acc > div { padding: 0 16px 16px; font-size: .86rem; line-height: 1.6; color: var(--ink-2); }

.site-foot { border-top: 1px solid var(--line); margin-top: clamp(50px, 8vw, 90px); padding: 34px 0 44px; font-size: .82rem; color: var(--ink-3); }
.site-foot a { color: var(--green-700); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mt { margin-top: 18px; } .mt-lg { margin-top: 30px; } .mb { margin-bottom: 18px; }

/* small square thumb used in the week prep list */
.prep-thumb { width: 44px; height: 44px; border-radius: var(--r-sm); flex: none; }
/* fallback dot if a builder cut-out is ever missing */
.ing-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line-2); }


/* ============================================================ bowl detail */
/* Explicit ratio rather than auto-fill: the photo should lead, and an
   auto-fill grid was silently creating a third empty track here. */
.bowl-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 38px); align-items: start; margin-top: 14px; }
@media (max-width: 860px) { .bowl-hero { grid-template-columns: 1fr; } }
.bowl-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-wrap: balance; }

/* Stats as a bordered strip so they read as one unit, not three stray numbers */
.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.statstrip div { padding: 13px 14px; border-right: 1px solid var(--line); }
.statstrip div:last-child { border-right: none; }
.statstrip b { display: block; font-size: 1.4rem; font-weight: 680; letter-spacing: -.035em;
  line-height: 1.1; color: var(--green-700); font-variant-numeric: tabular-nums; }
.statstrip span { font-size: .7rem; color: var(--ink-3); font-weight: 560; }
@media (max-width: 520px) {
  .statstrip { grid-template-columns: repeat(2, 1fr); }
  .statstrip div:nth-child(2) { border-right: none; }
  .statstrip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* The classic recipe layout: ingredients beside the method, not stacked
   a full screen above it, so you can read both while cooking. */
.cook { display: grid; grid-template-columns: 350px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 900px) { .cook { grid-template-columns: 1fr; } }
.cook-aside { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 900px) { .cook-aside { position: static; } }

.slot-group + .slot-group { margin-top: 16px; }
.slot-label { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.slot-label .ic { color: var(--green-500); }

.ing-row { display: flex; align-items: center; gap: 11px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ing-row:last-child { border-bottom: none; }
.ing-row .ph { width: 42px; height: 42px; border-radius: var(--r-sm); flex: none; }
.ing-row-main { flex: 1; min-width: 0; }
.ing-row-main b { display: block; font-size: .87rem; font-weight: 580; letter-spacing: -.01em; }
.ing-row-main small { display: block; font-size: .72rem; color: var(--amber); font-weight: 560; }
.ing-row-g { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.ing-row-state { flex: none; width: 20px; display: grid; place-items: center; }
.ing-row[data-state="have"]    .ing-row-state { color: var(--green-500); }
.ing-row[data-state="swap"]    .ing-row-state { color: var(--amber); }
.ing-row[data-state="missing"] .ing-row-state { color: var(--line-2); }
.ing-row[data-state="missing"] .ing-row-main b { color: var(--ink-3); }
.ing-row[data-state="missing"] .ph { opacity: .45; filter: saturate(.4); }

/* Numbered steps you can tick off while actually cooking */
.step { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.step:last-child { border-bottom: none; }
.step input { position: absolute; opacity: 0; pointer-events: none; }
.step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .76rem; font-weight: 680; background: var(--green-soft); color: var(--green-700);
  font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.step-t { font-size: .88rem; line-height: 1.55; transition: color .15s; }
.step input:checked ~ .step-n { background: var(--green-700); color: #fff; }
.step input:checked ~ .step-t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.step:hover .step-n { background: color-mix(in srgb, var(--green-500) 22%, transparent); }
