/* veganbell: "Sorbet" design (chosen 2026-11-27). Bricolage Grotesque headings, Figtree text, a white page and
   six pastel colors, each with one job. Rounded shapes, arch-shaped photos, no outlines. Phone first; wider
   screens get more columns. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/static/fonts/bricolage.a79fdb52d4.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/figtree.4ba7d3d096.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Six colors, six jobs. Each means one thing everywhere, so the page reads the same on every screen:
     butter (yellow)    time: cook times, the Prep/Cook/Total box, timers, "quick" shortcuts
     pistachio (green)  what's in it: ingredients, diet labels, nutrition, What can I make?
     sky (blue)         how to make it: the steps, tips ("Good to know"), questions
     light red          warmth: the email band's heart, finished timers, fat in charts (it was save, hearts and
                        stars until 2026-11-28; lavender before 2026-11-27)
     mint               you and others: Save and every heart, ratings and Reviews, your lists and note, the
                        weekly email (2026-11-28)
     apricot            explore: meal types, the menu pills, "more recipes" links, Share + Find more
   Ink (near black) is for anything you tap: buttons, links, chosen options. White is the page.
   Each color has a strong pastel (fills, chips), a pale tint (big panels) and a deep ink (small text, icons).
   Pastel fills always carry dark text (--on-pastel), in dark mode too. Never hand colors out by position.
   Old token names are kept so every page follows: accent = ink, lilac = light red (love), yellow = butter, sage =
   pistachio. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;     /* fields, menus */
  --cloud: #FFFFFF;       /* quiet boxes and icon buttons: white with an --outline (the lilac-grey looked muddy) */
  --outline: #E6E5EC;     /* the soft edge of white boxes and buttons */
  --text: #24213A;
  --muted: #4C4862;       /* 7:1 or better on white and every tint */
  --soft: #46425C;
  --heading: #24213A;
  --accent: #24213A;      /* ink: links, main buttons, chosen options */
  --accent-hover: #3B3757;
  --accent-tint: #F2F2F5;
  --accent-edge: #DCD9E8;
  --accent-ink: #24213A;
  --on-accent: #FFFFFF;
  --on-pastel: #24213A;   /* text on a strong pastel fill, in both modes */
  --lilac: #FFC2BD;       /* light red: love */
  --lilac-tint: #FFF0EE;
  --lilac-edge: #FFF0EE;
  --mint: #B3E6D4;         /* mint: you and others (Reviews, your lists and note, the email band), owner's pick 2026-11-28 */
  --mint-tint: #E3F6F0;
  --mint-ink: #1D6B55;     /* stars and small marks in the mint boxes */
  --mint-field: #CDEFE3;   /* a field in a mint box: a deeper mint, not grey (owner, 2026-11-28) */
  --mint-field-edge: #BCE6D7;
  --wash: rgba(36, 33, 58, 0.08);         /* hover: a button gets a little darker, never a dark ring (owner, 2026-11-28) */
  --wash-pastel: rgba(36, 33, 58, 0.10);  /* the same on pastel fills, which stay light in dark mode */
  --lilac-ink: #B42318;
  --on-lilac: #24213A;
  --yellow: #FFE08A;      /* butter: time */
  --yellow-tint: #FFF5D1;
  --yellow-edge: #FFF5D1;
  --yellow-ink: #6E4D00;
  --sage: #C6E6A8;        /* pistachio: what's in it */
  --sage-tint: #EEF8E4;
  --sage-edge: #EEF8E4;
  --sage-ink: #35601A;
  --sage-field: #DCF0C9;   /* a field in a pistachio box (Fridge mode): a deeper green */
  --sage-field-edge: #CDE8B4;
  --sky: #BFDDFB;         /* sky: how to make it */
  --sky-tint: #EAF4FE;
  --sky-ink: #1F5487;
  --apricot: #FFCCAE;     /* apricot: explore */
  --apricot-tint: #FFEFE5;
  --apricot-ink: #8F3E15;
  --card-edge: #ECEAF2;
  --peach: #F1EFF8;       /* neutral notices (sponsored, AI) */
  --peach-ink: #3B3757;
  --gold: #F2C230;        /* carbs in charts */
  --apricot-pop: #FFAD80;  /* hover ring on an apricot pill (the pills' hover is a ring in their own color, 2026-11-28) */
  --yellow-pop: #F5CB4E;   /* hover ring on a butter chip */
  --sky-pop: #8EC2F5;      /* hover ring on a sky button (Cook mode) */
  --mint-pop: #7FD1B5;     /* hover ring on a mint button (Save, Send review, Sign me up) */
  --sage-pop: #A2D477;     /* hover ring on a pistachio button (shopping list, My day) */
  --lilac-pop: #FF9C93;    /* hover ring on a light red button */
  --ring-neutral: #CFCCDD; /* hover ring on a white or grey pill */
  --chart-p: #6FA8E8;     /* protein in charts */
  --chart-f: #A993F5;     /* fat in charts */
  --line: #ECEAF2;
  --field-bg: #F2F2F5;    /* fields: 5% greyer than the page, with the same soft --outline edge as the boxes (owner, 2026-11-27) */
  --seg: #EFEFF2;         /* the groove behind segmented buttons */
  --done: #6E6A82;
  --shadow: 0 1px 2px rgba(36, 33, 58, 0.05), 0 10px 28px rgba(36, 33, 58, 0.08);
  --shadow-small: 0 1px 2px rgba(36, 33, 58, 0.08), 0 2px 8px rgba(36, 33, 58, 0.06);
  --bar-shadow: 0 2px 4px rgba(36, 33, 58, 0.06), 0 14px 34px rgba(36, 33, 58, 0.14);
  --card-shadow: none;
  --photo-shadow: none;
  --photo-edge: rgba(36, 33, 58, 0.08); /* a faint edge on photos, so a white plate never melts into the page */
  --main-shadow: none;
  --lilac-shadow: none;
  --error-bg: #FDE7E2;
  --error-text: #7A2414;
  --head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 24px;
  --r-lg: 32px;
  color-scheme: light;
}

/* Dark colors come from the system setting, unless the reader picked Light or Dark in the footer: js/theme.js
   then puts data-theme on <html> before the page is drawn. The two blocks below must stay the same (a test
   checks). Strong pastel fills stay as they are (with dark text); tints and inks get dark-mode steps. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17151F;
    --surface: #211E2C;
    --cloud: #262333;
    --outline: #34303F;
    --text: #F3F1FA;
    --muted: #CBC7DA;
    --soft: #D6D2E4;
    --heading: #F3F1FA;
    --accent: #F3F1FA;
    --accent-hover: #FFFFFF;
    --accent-tint: #2C2940;
    --accent-edge: #4A4660;
    --accent-ink: #F3F1FA;
    --on-accent: #17151F;
    --lilac-tint: #3A2220;
    --lilac-edge: #3A2220;
    --mint-tint: #172B26;
    --mint-ink: #8FDCC2;
    --mint-field: #203A33;
    --mint-field-edge: #2D4B43;
    --wash: rgba(255, 255, 255, 0.08);
    --lilac-ink: #FFB4AB;
    --yellow-tint: #302814;
    --yellow-edge: #302814;
    --yellow-ink: #F5D37A;
    --sage-tint: #1E2A1B;
    --sage-edge: #1E2A1B;
    --sage-ink: #B5DD95;
    --sage-field: #283825;
    --sage-field-edge: #36492F;
    --sky-tint: #192535;
    --sky-ink: #A9CFF5;
    --apricot-tint: #33221A;
    --apricot-ink: #FFBE9C;
    --card-edge: #34303F;
    --peach: #2C2940;
    --peach-ink: #E8E4F5;
    --ring-neutral: #5A5670;
    --line: #34303F;
    --field-bg: #2C2940;
    --seg: #2C2940;
    --done: #A9A5BA;
    --shadow: none;
    --shadow-small: none;
    --bar-shadow: 0 0 0 1px #34303F;
    --photo-edge: rgba(255, 255, 255, 0.1);
    --error-bg: #4A1F17;
    --error-text: #FFD9CF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17151F;
  --surface: #211E2C;
  --cloud: #262333;
  --outline: #34303F;
  --text: #F3F1FA;
  --muted: #CBC7DA;
  --soft: #D6D2E4;
  --heading: #F3F1FA;
  --accent: #F3F1FA;
  --accent-hover: #FFFFFF;
  --accent-tint: #2C2940;
  --accent-edge: #4A4660;
  --accent-ink: #F3F1FA;
  --on-accent: #17151F;
  --lilac-tint: #3A2220;
  --lilac-edge: #3A2220;
  --mint-tint: #172B26;
  --mint-ink: #8FDCC2;
  --mint-field: #203A33;
  --mint-field-edge: #2D4B43;
  --wash: rgba(255, 255, 255, 0.08);
  --lilac-ink: #FFB4AB;
  --yellow-tint: #302814;
  --yellow-edge: #302814;
  --yellow-ink: #F5D37A;
  --sage-tint: #1E2A1B;
  --sage-edge: #1E2A1B;
  --sage-ink: #B5DD95;
  --sage-field: #283825;
  --sage-field-edge: #36492F;
  --sky-tint: #192535;
  --sky-ink: #A9CFF5;
  --apricot-tint: #33221A;
  --apricot-ink: #FFBE9C;
  --card-edge: #34303F;
  --peach: #2C2940;
  --peach-ink: #E8E4F5;
  --ring-neutral: #5A5670;
  --line: #34303F;
  --field-bg: #2C2940;
  --seg: #2C2940;
  --done: #A9A5BA;
  --shadow: none;
  --shadow-small: none;
  --bar-shadow: 0 0 0 1px #34303F;
  --photo-edge: rgba(255, 255, 255, 0.1);
  --error-bg: #4A1F17;
  --error-text: #FFD9CF;
  color-scheme: dark;
}

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

/* Hidden must win over any display rule (buttons, flex boxes). */
[hidden] { display: none !important; }

/* No blue flash when a link or button is tapped on phones (owner, 2026-11-29). */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance; /* even lines, never one word alone on the last */
}
p, li, dd { text-wrap: pretty; }
/* One calm type scale (owner, 2026-11-27: page titles were far too big). Page titles 30–40px, section
   headings 22–28px; recipe titles a step above, nothing past 52px. The home headline alone goes bigger, up to
   72px (owner, 2026-11-29). */
h1 { font-size: clamp(1.875rem, 1.6rem + 1.1vw, 2.5rem); line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(1.375rem, 1.25rem + 0.45vw, 1.75rem); }
h3 { font-size: 1.1875rem; line-height: 1.2; }
h1 em, h2 em, h3 em, .serif em { font-style: normal; color: inherit; } /* emphasis is kept in the page text, not drawn */
h1 { font-weight: 800; letter-spacing: -0.025em; }
.serif { font-family: var(--head); font-weight: 700; }

/* The focus ring: a thin dark-mint line, shown only while someone moves around with the Tab key (owner, 2026-11-28:
   the thick black ring also showed after Esc or closing a window). site.js sets html.tab-nav on Tab and drops it on
   any click or tap. */
:focus-visible { outline: none; }
.tab-nav :focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 10px 16px; border-radius: 999px; background: var(--surface); font-weight: 700;
}
.skip:focus { top: 12px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Spacing: three steps used everywhere, so sections and cards breathe the same way on every page (owner,
   2026-11-27: more room between sections and elements). They grow a little on wider screens. */
:root {
  --gap-section: clamp(64px, 48px + 3.5vw, 104px); /* between the big parts of a page */
  --gap-block: clamp(48px, 40px + 2vw, 72px);      /* between blocks inside a part */
  --pad-card: clamp(24px, 20px + 1vw, 34px);       /* inside cards and panels */
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* The small label over a heading. */
.kicker { display: block; margin: 0 0 10px; font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ---------- Header, tab bar and footer ---------- */

.site-header { position: relative; z-index: 6; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none;
  font-family: var(--head); font-weight: 800; font-size: 1.625rem; letter-spacing: -0.03em; line-height: 1;
}
.logo:hover { color: var(--text); }
.header-nav { display: flex; align-items: center; gap: 8px; }
.wide-only { display: none !important; }
@media (min-width: 900px) { .wide-only { display: grid !important; } }
.site-header { border-bottom: 1px solid var(--line); }
/* Under the logo: one row of pills you can swipe sideways on phones. Meal types are apricot (explore), "Quick"
   is butter (time), "What can I make?" is pistachio (what's in it); the rest are plain. */
.pills-nav { display: flex; justify-content: space-between; gap: 8px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; } /* spread over the full width (owner, 2026-11-29) */
.pills-nav::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  color: var(--text); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pill .ic { width: 16px; height: 16px; }
.pill:hover { color: var(--text); }
.pill-explore { background: var(--apricot-tint); }
.pill-time { background: var(--yellow-tint); }
.pill-have { background: var(--sage-tint); }
.pill-explore[aria-current="page"] { background: var(--apricot); color: var(--on-pastel); }
.pill:not(.pill-explore)[aria-current="page"] { background: var(--accent-tint); } /* you are here: a grey fill, no dark ring */

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: var(--cloud); color: var(--text); cursor: pointer;
}
.header-nav > a[href="/saved/"] { background: var(--mint); color: var(--on-pastel); } /* your saved recipes: mint (2026-11-28); only the heart
   button, not the menu's "Saved recipes" link, which looked chosen (owner, 2026-11-29) */

.menu { position: relative; }
.menu > summary { list-style: none; }
/* Everything else that opens on tap (questions, swaps, filters, goals) shows a small arrow that turns when open. */
details:not(.menu) > summary { list-style: none; gap: 12px; }
details:not(.menu) > summary::-webkit-details-marker { display: none; }
details:not(.menu) > summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s;
}
details:not(.menu)[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.more-filters > summary::after { margin-left: 2px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; right: 0; top: 54px; z-index: 8; min-width: 230px;
  margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border-radius: var(--r); box-shadow: 0 14px 40px rgba(40, 30, 15, 0.18);
}
.menu-list a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--text); font-weight: 700; text-decoration: none; }
.menu-list a:hover { background: var(--cloud); color: var(--text); }
/* Share, with Cook mode and Print: a small menu like the site menu. */
.share-menu > summary { cursor: pointer; }
.share-menu .menu-list { top: 52px; min-width: 200px; }
.menu-list button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.menu-list button:hover { background: var(--cloud); }
/* Phones (owner, 2026-11-28): no sideways-scrolling pill row under the logo, and so no second row of pills over a
   recipe's own. The meal types sit at the top of the menu instead, wrapping onto new lines. Links the bottom bar
   already has (recipes, saved, plan, account) are left out of the menu there. */
.menu-meals { display: none; }
@media (max-width: 899px) {
  .pills-nav, .menu-wide { display: none; }
  .menu-list { width: min(360px, calc(100vw - 40px)); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .menu-meals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 8px 6px 16px; border-bottom: 1px solid var(--line); }
  .menu-list .menu-meals .pill { min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; }
  .menu-list .menu-meals .pill-explore:hover { background: var(--apricot-tint); }
  .menu-list .menu-meals .pill-time:hover { background: var(--yellow-tint); }
  .menu-list .menu-meals .pill-have:hover { background: var(--sage-tint); }
}

/* Phones: the main places sit in a bar that floats at the bottom of the screen. */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 12;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; height: 66px; padding: 0 6px;
  background: var(--surface); border-radius: 24px; box-shadow: var(--bar-shadow);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; justify-content: center;
  color: var(--muted); font-size: 0.75rem; font-weight: 700; text-decoration: none;
}
.tabbar a span { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 999px; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] span { background: var(--accent); color: var(--on-accent); }
@media (min-width: 900px) { .tabbar { display: none; } }
@media (max-width: 899px) {
  body:not(.bare) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* The footer: a soft grey band (no color job, so neutral), the page's own text colors in both modes. */
.site-footer { margin-top: calc(var(--gap-section) + 8px); background: var(--cloud); color: var(--text); }
.site-footer .wrap { padding-top: 56px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 64px; padding-bottom: 28px; }
.footer-brand { flex: 1 1 260px; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); }
.footer-col { flex: 0 1 180px; display: flex; flex-direction: column; }
.footer-col h2 { margin: 0 0 8px; font-family: var(--body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); font-weight: 500; text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-logo { font-size: 1.5rem; }
.fine { color: var(--muted); font-size: 0.875rem; padding-bottom: 44px; margin: 0; }
.site-footer .fine { border-top: 1px solid var(--line); padding-top: 22px; }
.theme-switch { display: inline-flex; flex-wrap: nowrap; max-width: 100%; align-items: center; gap: 4px; margin: 12px 0 24px; padding: 4px; border-radius: 999px; background: var(--seg); }
.site-footer .theme-switch { background: var(--surface); }
.theme-switch .theme-label { padding: 0 6px 0 12px; font-size: 0.875rem; font-weight: 700; color: var(--soft); }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text); font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer;
}
.theme-switch button:hover { background: var(--surface); }
@media (max-width: 400px) {
  .theme-switch .theme-label { padding: 0 2px 0 10px; }
  .theme-switch button { gap: 4px; padding: 0 10px; }
}
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- Buttons, chips, fields ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn-main { background: var(--accent); color: var(--on-accent); box-shadow: var(--main-shadow); }
.btn-main:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-lilac { background: var(--lilac); color: var(--on-lilac); box-shadow: var(--lilac-shadow); }
.btn-lilac:hover { color: var(--on-lilac); }
.btn-plain { background: var(--cloud); color: var(--text); }
.btn-plain:hover { color: var(--text); }
.btn-outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-outline:hover { color: var(--accent); background: var(--accent-tint); } /* a light grey, never darker */
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--cloud); color: var(--text);
  font-family: var(--body); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
button.chip { font-family: var(--body); font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-current="true"], .chip.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.chip[aria-current="true"] .chip-count, .chip.on .chip-count { color: inherit; }
/* Time shortcuts (butter), meal types and "more like this" (apricot). */
.chips-time .chip { background: var(--yellow); color: var(--on-pastel); }
.chips-time .chip .ic { width: 16px; height: 16px; }
/* Recipe list filters take the color of their job: time butter, meal types apricot, diet and nutrition pistachio.
   A chosen filter is ink, like every chosen option. */
.chip-time:not([aria-current="true"]) { background: var(--yellow-tint); }
.chip-meal:not([aria-current="true"]) { background: var(--apricot-tint); }
.chip-diet:not([aria-current="true"]), .chip-protein:not([aria-current="true"]), .chip-kcal:not([aria-current="true"]) { background: var(--sage-tint); }

.search-box {
  display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 6px 6px 6px 22px;
  background: var(--cloud); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
}
.search-box:focus-within { box-shadow: inset 0 0 0 2px var(--mint-ink); }
.search-box input {
  flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--text);
  font-family: var(--body); font-size: 1.0625rem;
}
.search-box input::placeholder { color: var(--muted); opacity: 1; }
@media (max-width: 389px) { /* 360px phones: "What are you craving?" fits */
  .search-box { padding-left: 18px; }
  .search-box input { font-size: 1.0625rem; }
}
.search-go {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
}
.search-go:hover { background: var(--accent-hover); }
.field {
  width: 100%; min-height: 50px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--field-bg); color: var(--text); font: inherit; box-shadow: inset 0 0 0 1.5px var(--field-edge, var(--outline));
}
.field::placeholder { color: var(--muted); opacity: 1; }
.field:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--mint-ink); } /* the field being typed in: thin dark mint */
textarea.field { min-height: 120px; padding: 14px 20px; border-radius: 22px; }
select.field { width: auto; padding: 0 14px; font-weight: 700; font-size: 0.9375rem; }
/* A field inside a colored box is a deeper shade of the box's own color, so it reads as its own part (owner,
   2026-11-28: the grey looked wrong in the green Fridge mode box). On the white page fields stay light grey. */
.tint-sage { --field-bg: var(--sage-field); --field-edge: var(--sage-field-edge); }
.reviews, .soft-band { --field-bg: var(--mint-field); --field-edge: var(--mint-field-edge); }
.form-grid select.field { width: 100%; padding: 0 20px; font-weight: 400; font-size: 1rem; } /* in a form, like the fields around it */

.card-box { background: var(--cloud); border-radius: var(--r-lg); padding: var(--pad-card); }

/* Pastel panels: the pale tint of a color, no outline. */
.tint { border-radius: var(--r-lg); padding: var(--pad-card); }
.tint-lilac { background: var(--lilac-tint); }
.tint-blue { background: var(--accent-tint); }
.tint-yellow { background: var(--yellow-tint); }
.tint-sage { background: var(--sage-tint); }
.tint-sky { background: var(--sky-tint); }
.tint-apricot { background: var(--apricot-tint); }
.tint .kicker { color: var(--text); }
/* The yellow time pill (cards, Tonight's pick). Pastel fill, so always dark text. */
.time-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--yellow); color: var(--on-pastel); font-size: 0.875rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.time-pill .ic { width: 15px; height: 15px; }

/* ---------- Home ---------- */

.hero { padding: 40px 0 8px; }
/* The home headline (owner, 2026-11-29): bigger on every screen, and always two lines of two words. Each line
   keeps together, and the size follows the column's width (14% of it, at most 72px): "Easy, everyday" is 6.3 times
   the font size wide (6.8 in the fallback fonts shown while it loads), so it always fits. */
.hero { container-type: inline-size; }
.hero h1 { max-width: none; margin-bottom: 20px; font-size: clamp(2.375rem, 1.9rem + 1.9vw, 3.25rem); font-size: min(14cqi, 4.5rem); line-height: 1.02; }
.hero h1 .h-line { display: block; white-space: nowrap; }
@media (min-width: 1200px) { .hero .lead { font-size: 1.25rem; } }
.lead { margin: 0 0 28px; color: var(--muted); font-size: 1.125rem; max-width: 34em; }
.hero .search-box { max-width: 540px; }
/* "Short on time?" and three yellow time shortcuts. */
.quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 24px; }
.quick-label { font-size: 0.9375rem; color: var(--muted); }
.quick-row .chip { min-height: 40px; padding: 0 14px; }
.home-top { display: grid; gap: 48px; }
/* Tonight's pick (as in the mock-up): a square stage holding the photo in an arch over a grey arch, two more
   recipes in small circles, the save heart and a white label with the time. Everything is placed in % so it
   scales with the screen. */
.pick { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.pick::before { content: ""; position: absolute; left: 12%; top: 6%; width: 66%; height: 84%; border-radius: 999px 999px 40px 40px; background: var(--cloud); }
.pick-photo { position: absolute; left: 20%; top: 0; width: 58%; height: 86%; border-radius: 999px 999px 32px 32px; overflow: hidden; background: var(--line); }
.pick-photo img, .pick-photo svg { width: 100%; height: 100%; object-fit: cover; }
.pick-bit { position: absolute; right: 0; top: 8%; width: 29%; aspect-ratio: 1; border-radius: 999px; overflow: hidden; border: 6px solid var(--bg); background: var(--line); }
.pick-bit + .pick-bit { right: auto; left: 0; top: 44%; width: 26%; }
.pick-bit img { width: 100%; height: 100%; object-fit: cover; }
.pick .save-btn { top: 36%; left: 64%; right: auto; width: 48px; height: 48px; }
.pick-label {
  position: absolute; left: 6%; bottom: 0; display: flex; align-items: center; gap: 16px; max-width: 88%;
  padding: 14px 18px; border-radius: 22px; background: var(--surface); box-shadow: 0 12px 32px rgba(36, 33, 58, 0.14);
}
.pick-label .kicker { margin: 0 0 2px; color: var(--muted); }
.pick-label h2 { font-size: 1.25rem; line-height: 1.2; }
.pick-label h2 a { color: inherit; text-decoration: none; }
.pick-label h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .pick-label { padding: 12px 14px; gap: 10px; } .pick-label h2 { font-size: 1.0625rem; } }
@media (min-width: 900px) {
  .home-top { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; padding-top: 24px; }
  .pick { justify-self: end; }
}
/* A heading with a round color icon in front (its job's color). */
.icon-head { display: flex; align-items: center; gap: 14px; }
.head-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; color: var(--on-pastel); }
.head-icon .ic { width: 24px; height: 24px; }
.head-time { background: var(--yellow); }
.head-love { background: var(--surface); color: var(--lilac-ink); }
.section-head a .ic { width: 18px; height: 18px; }
.section-head a { gap: 4px; }
/* Bold bands in a strong pastel (the fridge, the email sign-up). Pastel fills keep light-mode colors inside, in
   dark mode too, so text, fields and the ink button read the same. */
.pastel-band {
  --text: #24213A; --heading: #24213A; --muted: #4C4862; --soft: #46425C; --accent: #24213A; --accent-hover: #3B3757;
  --on-accent: #FFFFFF; --surface: #FFFFFF; --field-bg: #F2F2F5; --bg: #FFFFFF;
  color: var(--text); border-radius: var(--r-lg); padding: clamp(28px, 4.5vw, 56px);
}
.band-sage { background: var(--sage); }
.band-lilac { background: var(--lilac); }
.fridge-band { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 48px; }
.fridge-form { flex: 1 1 420px; min-width: 0; }
.fridge-form h2 { margin-bottom: 10px; }
.fridge-form > p { margin: 0 0 24px; max-width: 30em; }
.have-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; border: 0; }
.have-chip { position: relative; }
.have-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.have-chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: #FFFFFF; color: #24213A; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
}
.have-chip span .ic { display: none; width: 16px; height: 16px; }
.have-chip input:checked + span { background: #35601A; color: #FFFFFF; }
.have-chip input:checked + span .ic { display: block; }
.tab-nav .have-chip input:focus-visible + span { outline: 2px solid var(--mint-ink); outline-offset: 2px; }
.fridge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fridge-actions a { font-weight: 600; color: #24213A; }
.fridge-photo { flex: 0 1 300px; width: 300px; max-width: 100%; aspect-ratio: 1; height: auto; margin: 0 auto; object-fit: cover; border-radius: 999px; border: 10px solid var(--sage-tint); }
@media (max-width: 599px) { .fridge-photo { display: none; } }
.signup-words { display: flex; align-items: flex-start; gap: 18px; }
.signup-band h2, .signup-box h2 { margin: 0; }
.section { margin-top: var(--gap-section); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.section-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 4px; }
.two-col { display: grid; gap: var(--gap-block) 56px; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .two-col.solo { grid-template-columns: 1fr; }
}
/* A full-width band (Fridge mode, picks for you, the email sign-up): the words, then the form or button. On wide
   screens the words sit on the left and the action on the right; on phones they stack and the button is full width. */
.band { display: grid; gap: 8px 56px; align-items: center; }
.band h2 { margin: 0; }
.band > div > p { margin: 10px 0 22px; }
@media (min-width: 900px) {
  .band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 52px 56px; }
  .band > div > p { margin-bottom: 0; }
  .band .row .field { flex-basis: 240px; }
  .band > .btn { justify-self: end; }
}
@media (max-width: 400px) { .band .field { padding: 0 16px; font-size: 1rem; } } /* "chickpeas, spinach, lime" fits on 360px phones */

/* A numbered list ("Everyone's cooking"). */
.rank { margin: 0; padding: 10px 24px; list-style: none; }
.rank li + li { border-top: 1px solid var(--line); }
.rank a { display: grid; grid-template-columns: 44px 1fr 76px; gap: 16px; align-items: center; padding: 16px 0; color: inherit; text-decoration: none; }
.rank a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.rank h3 { font-size: 1.125rem; }
.rank .meta { margin-top: 2px; }
.rank-img { width: 76px; height: 76px; border-radius: 999px; overflow: hidden; background: var(--line); }
.rank-img img, .rank-img svg { width: 100%; height: 100%; object-fit: cover; }
.num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--text); background: var(--surface);
}

/* "From Neelam's kitchen": her photo in a circle (zoomed in on her face and the fruit) beside her words. */
.cook-note { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; }
.cook-note > div { flex: 1 1 240px; min-width: 0; }
.cook-note p.serif { margin: 14px 0 0; font-size: 1.375rem; line-height: 1.3; }
.cook-photo { flex: none; display: block; width: 112px; height: 112px; margin: 6px; border-radius: 999px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 6px var(--lilac); }
.cook-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); transform-origin: 50% 22%; }
.cook-more { margin: 14px 0 0; color: var(--muted); max-width: 42em; }
/* Category index pages: tiles like "Pick a meal". */
.tiles .tile-name { font-size: 1.1875rem; }
/* Meal plan: today's day (time, so butter). */
.today-tag {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  background: var(--yellow); color: var(--on-pastel);
  font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.today-tag[hidden] { display: none; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 700; }
@media (min-width: 900px) {
  .solo .cook-note { padding: 44px 48px; }
  .solo .cook-photo { width: 148px; height: 148px; }
  .solo .cook-note p.serif { font-size: 1.625rem; max-width: 26em; }
}

/* "What are you in the mood for?": round photos of each meal type in an apricot panel (explore). */
.meals-band { padding: clamp(28px, 4.5vw, 56px); }
.meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .meals { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; } }
.meals a { display: grid; justify-items: center; gap: 12px; color: inherit; text-align: center; text-decoration: none; }
.meals a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.meals h3 { font-size: 1.1875rem; }
.meal-count { display: block; margin-top: 4px; font-family: var(--body); font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--apricot-ink); }
.meal-img { position: relative; width: 100%; aspect-ratio: 1; border-radius: 999px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 6px var(--apricot); }
.meal-img img { width: 100%; height: 100%; object-fit: cover; }

.fridge p { margin: 4px 0 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row .field { flex: 1 1 180px; width: auto; }
.row .btn { flex: 1 1 120px; }

/* ---------- Recipe cards ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 44px 28px; } } /* 3 across on tablets, 4 on computers */
/* Curated sets ("Latest recipes", "You might also like"): 2, 3 or 4 across, and a last row that isn't full is
   left out, so the set always ends on a whole row. */
.grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .grid.even { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.even { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .grid.even > li:nth-child(2n+1):last-child { display: none; } }
@media (min-width: 600px) and (max-width: 999.98px) {
  .grid.even > li:nth-child(3n+1):nth-last-child(-n+2), .grid.even > li:nth-child(3n+1):nth-last-child(-n+2) ~ li { display: none; }
}
@media (min-width: 1000px) {
  .grid.even > li:nth-child(4n+1):nth-last-child(-n+3), .grid.even > li:nth-child(4n+1):nth-last-child(-n+3) ~ li { display: none; }
}
.card { position: relative; }
.card > a { display: block; color: inherit; text-decoration: none; height: 100%; }
.card > a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card-img { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--line); } /* the recipe photos are portrait (4:5) */
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img svg { width: 100%; height: 100%; }
/* A soft edge on every recipe photo, so a white plate on a pale background still stands apart from the page.
   One color for all photos: color is kept for jobs (blue to tap, lilac for love, yellow for time). */
.card-img, .meal-img, .rank-img, .pick-img, .hero-img { position: relative; }
.card-img::after, .meal-img::after, .rank-img::after, .pick-img::after, .hero-img::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--photo-edge); pointer-events: none;
}
.card-body { padding: 16px 2px 4px; }
.card-kind { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; color: var(--mint-ink); } /* dark mint (owner, 2026-11-28: the brick brown read as reddish) */
.card h2, .card h3 { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.2; }
.meta { margin: 8px 0 0; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--muted); }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.missing { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--sage-ink); font-weight: 700; }
.have-all { color: var(--sage-ink); }
.save-btn {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid #FFFFFF; border-radius: 999px; background: var(--mint); color: var(--on-pastel); cursor: pointer;
} /* mint with a plain white ring so it stands out on any photo, no shadow (owner, 2026-11-28) */
.save-btn:hover { color: #0E0C16; } /* the mint stays; the heart gets darker and bolder (owner, 2026-11-28) */
.save-btn:hover .ic { stroke-width: 2.75; }
.save-btn[aria-pressed="true"] .ic, .save-big[aria-pressed="true"] .ic { fill: currentColor; }

/* ---------- Recipe list ---------- */

.list-head { margin: 32px 0 24px; }
#search-form + .band { margin-top: 32px; } /* the list page's two ways to find a recipe belong together */
.filters { margin-top: 28px; }
/* Phones: the filter chips are one row you swipe sideways (16 chips wrapped into eight rows above the results). */
@media (max-width: 719px) {
  .filters > .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .filters > .chips::-webkit-scrollbar { display: none; }
  .filters > .chips li { flex: none; }
}
.results-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin: 40px 0 28px;
}
.results-bar p { margin: 0; }
.results-bar form { display: flex; align-items: center; gap: 8px; }
.clear { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; font-size: 0.9375rem; }
.empty { padding: 44px 24px; text-align: center; }
.empty p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Recipe page ---------- */

.recipe { max-width: 1200px; }
.crumbs { padding-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.recipe-head { display: grid; gap: 32px; margin-top: 8px; }
.recipe-titles, .recipe-more { min-width: 0; }
.recipe-photo { position: relative; min-width: 0; margin-bottom: 8px; width: 100%; max-width: min(100%, 62vh); justify-self: center; }
/* The photo in an arch, with a grey arch behind it. */
.photo-arch { position: relative; }
/* No curved line behind recipe photos (owner, 2026-11-29). */
.pill-strong { background: var(--apricot); color: var(--on-pastel); }
/* Recipe header (owner, 2026-11-29): the name, then the rating (mint: you and others; it goes to the reviews), the
   short description, then one row of labels: categories as apricot pills, diets as plain words with a pistachio tick
   (on phones, the diets get a line of their own). */
.rating-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: -8px 0 4px; padding: 0 2px;
  color: var(--text); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
.rating-link .stars { gap: 2px; color: var(--mint-ink); }
.rating-link .stars svg { width: 17px; height: 17px; }
.rating-link .rating-ask { font-weight: 700; color: var(--mint-ink); text-decoration: underline; text-underline-offset: 4px; }
.rating-link .rating-count { color: var(--muted); }
.rating-link:hover { color: var(--text); }
.rating-link:hover .rating-ask { text-decoration-thickness: 2px; }
.rating-link:hover .stars .star-empty { fill: var(--mint-tint) !important; }
.recipe-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin: 0 0 24px; }
.diet-ticks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 0 8px; padding: 0; list-style: none; }
.recipe-tags > .diet-ticks:first-child { margin-left: 0; }
.diet-ticks li { display: inline-flex; align-items: center; gap: 5px; font-size: 0.9375rem; font-weight: 600; }
.diet-ticks .ic { width: 16px; height: 16px; color: var(--sage-ink); }
@media (max-width: 599px) {
  .recipe-tags { margin-bottom: 0; }
  .diet-ticks { flex-basis: 100%; margin-left: 0; }
}
/* The tiles and buttons below change layout by this box's width. It must get its width from the layout (it
   does: grid items stretch); if it were ever sized by its own content, it would shrink to nothing. */
.recipe-more { container-type: inline-size; }
.recipe-more .facts { margin-top: 6px; }
@media (min-width: 900px) {
  .recipe-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "photo titles" "photo more";
    column-gap: 72px; row-gap: 0; margin-top: 16px;
  }
  .recipe-photo { grid-area: photo; align-self: center; margin: 0; }
  .recipe-titles { grid-area: titles; align-self: end; }
  .recipe-more { grid-area: more; align-self: start; }
}
.recipe-body { max-width: 760px; margin: 0 auto; }
/* Wide screens: the ingredients stay in view on the left while the steps scroll on the right. */
@media (min-width: 1000px) {
  .recipe-body { max-width: none; }
  .recipe-body > .intro { max-width: 760px; } /* reading width; the rest spans the page */
  .recipe-cols { display: grid; grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: var(--gap-block); }
  .recipe-cols > .recipe-side { margin-top: 0; } /* level with the steps */
  /* js/recipe.js makes it stick when the whole list fits on the screen; a longer list scrolls with the page (never a scroll box of its own) */
  .recipe-side.stick { position: sticky; }
  .recipe-main > .block:first-child { margin-top: 0; }
}
/* Titles get smaller as they get longer, so a long name never fills a phone screen: two lines at most for the
   longest names today (about 30 letters). The size class comes from the page code (titleSize). */
.recipe-title { margin-bottom: 12px; overflow-wrap: break-word; text-wrap: balance; font-size: 2.125rem; line-height: 1.08; }
.recipe-title.t-mid { font-size: 1.875rem; line-height: 1.1; }
.recipe-title.t-long { font-size: 1.75rem; line-height: 1.12; }
@media (min-width: 600px) {
  .recipe-title { font-size: 2.625rem; }
  .recipe-title.t-mid { font-size: 2.375rem; }
  .recipe-title.t-long { font-size: 2.125rem; }
}
@media (min-width: 1100px) {
  .recipe-title { font-size: 3rem; }
  .recipe-title.t-mid { font-size: 2.625rem; }
  .recipe-title.t-long { font-size: 2.375rem; }
}
.byline { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 0.9375rem; color: var(--muted); }
.byline img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 3px var(--surface); }
.byline a { font-weight: 700; color: var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; }
.author-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 32px; margin: 12px 0 0; padding: var(--pad-card); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.author-card .about-photo { margin: 6px; }
.author-card > div { flex: 1 1 220px; }
.author-card h2 { margin: 0 0 12px; }
.author-card .chips { margin-top: 20px; }
/* The author's books on the About page: covers standing on a shelf, much the same
   size, lined up at the bottom (cover shapes differ a little); two books or three
   share the row. Phones: one
   row per book, the cover at the left. */
.books { margin: var(--gap-block) 0 0; }
.books h2 { margin: 0 0 22px; }
.book-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.prose .book-list { margin: 0; }
.book { display: flex; flex-direction: column; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow), inset 0 0 0 1px var(--card-edge); }
.book-cover { display: flex; align-items: flex-end; justify-content: center; height: 260px; padding: 24px 24px 0; border-radius: 18px; background: var(--bg); overflow: hidden; }
.book-cover img { display: block; width: auto; max-width: 100%; max-height: 100%; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: 0 2px 4px rgba(40, 28, 10, 0.18), 0 12px 24px rgba(40, 28, 10, 0.18); transition: transform 0.2s; }
.prose .book-cover img { border-radius: 3px 6px 6px 3px; }
.book-cover:hover img, .book-cover:focus-visible img { transform: translateY(-4px) rotate(-1.5deg); }
.book-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 0 10px 8px; }
.book h3 { margin: 22px 0 8px; font-size: 1.1875rem; line-height: 1.25; }
.book-text p { margin: 0 0 22px; font-size: 0.9375rem; line-height: 1.45; color: var(--soft); }
.book-text .btn { min-height: 44px; margin-top: auto; padding: 0 18px; font-size: 0.9375rem; }
@media (max-width: 599px) {
  .book-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .book { flex-direction: row; gap: 18px; padding: 14px; }
  .book-cover { flex: none; width: 104px; height: auto; align-self: flex-start; padding: 10px; border-radius: 14px; }
  .book-cover img { width: 100%; }
  .book h3 { margin-top: 2px; font-size: 1.0625rem; }
  .book-text { padding: 0; }
  .book-text p { margin-bottom: 14px; font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) { .book-cover img { transition: none; } .book-cover:hover img, .book-cover:focus-visible img { transform: none; } }
.tagline { margin: 0 0 20px; color: var(--muted); } /* the page's own text size (owner, 2026-11-29: it read too big) */
.stars { display: inline-flex; gap: 3px; color: var(--mint-ink); } /* ratings are mint (2026-11-28) */
/* The star is plump with rounded points and fills its box, so stars sit close together (owner, 2026-11-28). */
.stars svg { fill: currentColor; }
.hero-img { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; overflow: hidden; background: var(--line); }  /* the photos are 4:5 portrait: never crop them to landscape */
.hero-img img, .hero-img svg { width: 100%; height: 100%; object-fit: cover; }
/* One row filling the width: Cook mode (the main button), Save and Print. No "Jump to recipe": the intro is one
   short paragraph, so the ingredients are a short scroll away. Fits on one row down to 360px-wide phones. */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.actions .btn { flex: 1 1 auto; min-height: 44px; padding: 0 14px; gap: 6px; font-size: 0.9375rem; }
.actions .btn-main { flex-grow: 2; }
.actions .ic { width: 18px; height: 18px; }
.save-big { background: var(--mint); color: var(--on-pastel); } /* Save is mint, like every heart (2026-11-28) */
.save-big:hover { color: var(--on-pastel); }

/* Four tiles in a row when each has room for "1 hr 25 min" on one line; otherwise two by two (an odd last tile
   takes the whole row), so every tile is the same height and nothing wraps. */
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin: 28px 0 0; text-align: center; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: center; gap: 4px; padding: 14px 4px 12px; border-radius: 20px; background: var(--yellow-tint); }
.facts .kcal { background: var(--sage-tint); } /* calories: what's in it */
@container (max-width: 519px) {
  .facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .facts div { padding: 11px 6px 10px; }
}
.facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.facts dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.1; color: var(--heading); }

.intro { margin-top: var(--gap-block); }
.intro p { margin: 0 0 16px; }

.block { margin-top: var(--gap-block); scroll-margin-top: 12px; }
.block > h2 { margin-bottom: 22px; }
/* Ingredients: a pistachio panel (what's in it). Its buttons are pistachio too. */
#ingredients { padding: 32px 28px 24px; border-radius: var(--r-lg); background: var(--sage-tint); }
#ingredients .stepper, #ingredients .toggle { background: var(--surface); }
#ingredients .stepper button { background: var(--sage); color: var(--on-pastel); box-shadow: none; }
#ingredients .toggle button[aria-pressed="true"] { background: var(--sage); color: var(--on-pastel); }
#ingredients .ingredients li { border-bottom-color: color-mix(in srgb, var(--sage-ink) 16%, transparent); }
/* Servings and US/Metric share one row down to 360px-wide phones (it only wraps on smaller ones). */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
@media (max-width: 599px) { #ingredients { padding-left: 18px; padding-right: 18px; } }
.controls .stepper { gap: 2px; }
.controls .stepper button { width: 40px; height: 40px; }
.controls .stepper output { display: grid; justify-items: center; min-width: 64px; padding: 0 2px; line-height: 1; }
.controls .stepper output b { font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.controls .stepper output span { margin-top: 3px; font-family: var(--body); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.controls .toggle button { min-height: 40px; padding: 0 12px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--seg); }
.stepper button {
  display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-small);
}
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper output { min-width: 100px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 1.0625rem; }
.toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--seg); }
.toggle button {
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text); font: inherit; font-weight: 700; font-size: 0.9375rem; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.controls[hidden], .toggle[hidden] { display: none; }

.ingredients { margin: 10px 0 0; padding: 0; list-style: none; }
.ing-group { margin: 24px 0 4px; font-size: 1.0625rem; }
.ingredients li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ingredients li:last-child { border-bottom: 0; }
.ingredients input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--sage-ink); cursor: pointer; }
.ingredients label { flex: 1; font-size: 1.0625rem; line-height: 1.5; cursor: pointer; } /* the page's own text size, like the steps (owner, 2026-11-28: it looked small) */
.ingredients strong { font-weight: 700; }
.ingredients input:checked + label { color: var(--done); text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* The shop link sits beside the name, so tapping the name ticks it off. */
.ingredients .shop {
  flex: none; display: inline-flex; align-items: center; gap: 3px; min-height: 28px; margin-top: -2px; padding: 0 8px;
  border-radius: 999px; color: var(--muted); font-size: 0.75rem; font-weight: 700; text-decoration: none;
}
.ingredients .shop:hover, .ingredients .shop:focus-visible { background: var(--sage); color: var(--on-pastel); } /* the green of the ingredients box */
.ingredients .shop .ic { width: 14px; height: 14px; }
.note { color: var(--muted); }

/* Nutrition: one line at the bottom of the ingredients box; tap it for the numbers (owner, 2026-11-28: fewer
   boxes). Calories in the strong pistachio, the rest on white tiles. */
.nutri { margin-top: 22px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--sage-ink) 18%, transparent); }
.nutri > summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; }
.nutri-sum { display: grid; gap: 2px; min-width: 0; }
.nutri-title { font-weight: 700; }
.nutri-line { font-size: 0.875rem; color: var(--muted); }
.nut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.nut-grid div { padding: 10px 12px; border-radius: 16px; background: var(--surface); }
.nut-grid div:first-child { background: var(--sage); }
.nut-grid div:first-child dt, .nut-grid div:first-child dd { color: var(--on-pastel); }
.nut-grid dt { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.nut-grid dd { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.1875rem; color: var(--heading); white-space: nowrap; }
.macro-bar { margin-top: 16px; width: 100%; height: 12px; border-radius: 999px; overflow: hidden; }
.macro-bar .bar-p { fill: var(--chart-p); }
.macro-bar .bar-c { fill: var(--gold); }
.macro-bar .bar-f { fill: var(--chart-f); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--soft); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot-p { background: var(--chart-p); }
.dot-c { background: var(--gold); }
.dot-f { background: var(--chart-f); }
.total { margin: 12px 0 0; font-size: 0.875rem; color: var(--soft); }
.nutri-ate { margin: 14px 0 4px; min-height: 44px; padding: 0 18px; font-size: 0.9375rem; background: var(--sage); color: var(--on-pastel); }
.nutri-ate:hover { color: var(--on-pastel); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-panel { padding: var(--pad-card); border-radius: var(--r-lg); background: var(--sky-tint); }
.steps { display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; padding: 22px; border-radius: var(--r); background: var(--surface); }
.steps li::before {
  counter-increment: step; content: counter(step);
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--sky); color: var(--on-pastel); font-family: var(--head); font-weight: 800; font-size: 1.25rem;
}
.steps p { margin: 8px 0 0; font-size: 1.125rem; line-height: 1.65; }
.amt { font-weight: 700; }
.timer {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 14px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--yellow); color: var(--on-pastel); font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
}
.timer.running { background: var(--accent); color: var(--on-accent); }
.timer.done { background: var(--lilac); color: var(--on-lilac); }

/* Good to know: one sky box (how to make it) for the tips and storage, every swap, the questions and "What I
   used" (owner, 2026-11-28: fewer boxes). Wide screens: tips and storage on the left; swaps and questions on the
   right. Sub-headings are the same size throughout; the "Make it …" swaps and the questions open as white cards. */
.know { padding: var(--pad-card); border-radius: var(--r-lg); background: var(--sky-tint); }
.know > h2 { margin: 0 0 4px; }
.know-cols { display: grid; gap: 0 56px; }
@media (min-width: 1000px) {
  .know-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .know-cols > :only-child { grid-column: 1 / -1; }
}
.know-col { min-width: 0; }
.know h3 { margin: 26px 0 10px; font-size: 1.1875rem; }
.know-text p { margin: 0 0 14px; }
.know-text p:last-child { margin-bottom: 0; }
.intro ul, .intro ol { margin: 0 0 12px; padding-left: 1.25em; }
.intro li { margin: 6px 0; }
/* Tips, swaps and storage are numbered, each number in a small sky circle like the steps' (owner, 2026-11-28:
   numbers instead of bullets). The notes keep their lists; the numbers are drawn here. */
.know-text ul, .know-text ol, .smart-swaps ul { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: tip; }
.know-text li, .smart-swaps li { position: relative; margin: 10px 0; padding-left: 40px; counter-increment: tip; }
.know-text li::before, .smart-swaps li::before {
  content: counter(tip); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 999px; background: var(--sky); color: var(--on-pastel); font-family: var(--head); font-weight: 800; font-size: 0.875rem; line-height: 1;
}
.know .smart-swaps .note { margin: 14px 0 6px; }
/* Questions and Reviews share a row on wide screens (owner, 2026-11-28), each box its own height, so a question
   that opens grows only its own box. Either one alone takes the row. */
.qa-row { display: grid; gap: var(--gap-block) 32px; margin-top: var(--gap-block); }
.qa-row > .block { margin-top: 0; }
@media (min-width: 1000px) {
  .qa-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .qa-row > :only-child { grid-column: 1 / -1; }
  /* When Reviews is the taller box, Questions stays in view beside it while you scroll, like the ingredients
     beside the steps, so no empty column shows. */
  .qa-row > .faq { position: sticky; top: 16px; }
}
/* Questions: a sky box, one white card per question. */
.faq { padding: var(--pad-card); border-radius: var(--r-lg); background: var(--sky-tint); }
.faq > h2 { margin: 0 0 20px; }
.faq-grid { display: grid; gap: 10px; }
.faq details { margin: 0; padding: 8px 24px; border-radius: 22px; background: var(--surface); }
.faq summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.faq details p { margin: 4px 0 16px; }
.know .used { margin-top: 8px; }
.know .used .product-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Sign in and account ---------- */

/* Sign in (owner, 2026-11-29: "put the form in a box and make it structured"). The ways in sit in one mint box
   (mint = you and others), what you get sits beside it. Phones: heading, box, then the perks; wider screens:
   heading and perks on the left, the box on the right. */
.auth { max-width: 1040px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "perks"; gap: 28px 72px; margin-top: 32px; }
.auth-head { grid-area: head; }
.auth-head h1 { margin: 0 0 12px; }
.auth-head .lead { margin: 0; }
.auth-head .note { margin: 16px 0 0; }
.auth-side { grid-area: side; }
.perks { grid-area: perks; align-content: start; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.perks li { display: flex; align-items: center; gap: 14px; font-size: 1.0625rem; }
.perk-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--mint-tint); color: var(--mint-ink); }
.perk-ic .ic { width: 20px; height: 20px; }
@media (min-width: 880px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-areas: "head side" "perks side"; grid-template-rows: auto 1fr; gap: 36px 72px; margin-top: 56px; }
}
.auth-box { --field-bg: var(--mint-field); --field-edge: var(--mint-field-edge); padding: var(--pad-card); border-radius: var(--r-lg); background: var(--mint-tint); }
.auth-box .form-error { margin-bottom: 20px; }
.auth-box .btn { --ring: var(--mint-pop); }
.auth-box .btn-main { background: var(--mint); color: var(--on-pastel); box-shadow: none; } /* a button takes its box's color */
.auth-box .btn-main:hover { background: var(--mint); color: var(--on-pastel); box-shadow: inset 0 0 0 2px var(--ring); }
.providers { display: grid; gap: 12px; }
.auth-box .btn-provider { gap: 12px; box-shadow: none; } /* white on the mint, Google's and Apple's own logos */
.logo-mark { flex: none; width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 0.9375rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--mint-field-edge); }
.auth-form { display: grid; gap: 12px; }
.auth-form label, .text-label { font-weight: 700; }
.auth-form .btn { margin-top: 4px; }
.code-field { min-height: 56px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 1.625rem; letter-spacing: 0.3em; }
.auth-links { margin: 20px 0 0; font-weight: 700; }
.auth-off { margin: 0; }
.auth-side .fine-note { margin: 16px 8px 0; }
@media (max-width: 400px) { .auth-box { padding: 24px 16px; } } /* room for Cloudflare's 300px check on small phones */
.note { color: var(--muted); font-size: 0.9375rem; }
.form-error { margin: 0 0 22px; padding: 14px 18px; border-radius: var(--r); background: var(--error-bg); color: var(--error-text); font-weight: 700; }
.form-ok { margin: 0 0 22px; padding: 14px 18px; border-radius: var(--r); background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--accent-edge); }
/* Cloudflare's "are you human" check (sign in, Contact, newsletter) is out of sight unless it needs a click, so
   no room is kept for it. */

.account-links { margin: 0 0 32px; }
.prefs { display: grid; gap: 12px; }
.prefs fieldset { margin: 0 0 16px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.prefs legend { padding: 0; margin-bottom: 8px; font-family: var(--head); font-weight: 700; font-size: 1.125rem; color: var(--heading); }
.prefs .note { margin: 0 0 4px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 12px; }
.checks.wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.prefs select.field { width: 100%; }
.skip-form { margin-top: 10px; }
.account-actions { display: grid; gap: 14px; }
.account-actions h2 { margin-bottom: 0; }
.account-actions form { margin: 0; }
.danger summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--lilac-ink); cursor: pointer; }
.danger form { display: grid; gap: 12px; }
.danger p { margin: 0; }
.fy-prompt p { color: var(--muted); }

/* ---------- Plain pages ---------- */

.prose { margin-top: 32px; }
.prose h1 { margin-bottom: 24px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
/* Headings in page text (privacy, terms, guides) get room above, so each part stands apart. */
.prose > h2 { margin: 44px 0 14px; }
.prose > h3 { margin: 32px 0 10px; }
.prose > h1 + h2 { margin-top: 0; }
.prose > ul:not([class]) > li + li, .prose > ol:not([class]) > li + li { margin-top: 6px; } /* plain lists in page text only */
.prose > .chips:not(:first-child), .prose > .search-box { margin-top: 32px; }
.prose > .books ~ .chips { margin-top: var(--gap-block); }
.prose img { border-radius: var(--r); }
/* A page with its own scripts (the Vegan Game), in a sealed frame that grows to fit it (js/embed.js). */
.embed-raw { display: block; width: 100%; height: 80vh; margin-top: 8px; border: 0; border-radius: var(--r); background: var(--surface); }

/* ---------- Live list (htmx) ---------- */

.results { transition: opacity 0.15s; }
.results.htmx-request { opacity: 0.55; }

/* ---------- Messages and the timer tray ---------- */

.toast {
  position: fixed; left: 50%; bottom: 16px; z-index: 20; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 18px;
  border-radius: 18px; background: #1B1B1B; color: #F4EFE4; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  font-weight: 700; font-size: 0.9375rem;
}
.toast a { color: #FFE14D; }
body.has-timers .toast { bottom: calc(16px + var(--tray-h, 64px)); }
/* Cook mode: messages sit above Back and Next, never over them. */
body.bare .toast { bottom: calc(110px + env(safe-area-inset-bottom)); }
body.bare.has-timers .toast { bottom: calc(110px + var(--tray-h, 64px)); }

.timer-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(35, 38, 31, 0.08);
}
.timer-tray ul { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 6px; }
.timer-tray li {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 14px;
  border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 700;
}
.timer-tray li.done { background: var(--lilac); color: var(--on-lilac); }
.timer-tray li > a, .timer-tray li > span:first-child {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-size: 0.9375rem;
}
.tray-time { font-family: var(--head); font-variant-numeric: tabular-nums; }
.tray-stop {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; font-size: 1.375rem; line-height: 1; cursor: pointer;
}
body.has-timers { padding-bottom: calc(var(--tray-h, 64px) + 16px); }
.timer.paused { background: var(--line); color: var(--text); }
.timer { font-variant-numeric: tabular-nums; }

/* ---------- Cook mode ---------- */

/* Big type, one step at a time. */
/* Cook mode follows the reader's Light / Dark / System setting like every other page (owner, 2026-11-27). */
body.bare { background: var(--bg); color: var(--text); }
.cook { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.cook-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 0; }
.cook-top .btn { min-height: 44px; padding: 0 16px; }
.cook-title {
  flex: 1; min-width: 0; margin: 0; text-align: left; font-family: var(--head); font-weight: 700;
  font-size: 1.0625rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cook-progress { display: flex; gap: 6px; margin-top: 8px; }
/* Each part of the bar is a button to that step, taller than it looks so a finger can hit it. */
.cook-progress button { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: none; cursor: pointer; }
.cook-progress span { display: block; height: 6px; border-radius: 999px; background: var(--line); }
.cook-progress button:hover span:not(.on) { background: var(--ring-neutral); }
.cook-progress span.on { background: var(--sky); } /* how far through the steps: sky, how to make it */
.cook-servings { margin: 12px 0 0; font-size: 0.9375rem; color: var(--muted); }
.cook-steps { margin: 0; padding: 0; list-style: none; }
.cook-step { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.cook.one-step .cook-step { border-bottom: 0; }
.cook-step h2 { margin-bottom: 14px; font-family: var(--body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky-ink); }
.cook-step h2:focus { outline: none; }
.cook-text { margin: 0; font-family: var(--head); font-weight: 600; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.2; color: var(--text); }
.cook-text .amt { background: none; color: var(--accent); }
.need { margin-top: 20px; padding: 16px 18px; background: var(--sage-tint); border-radius: var(--r); } /* what's in it: pistachio */
.need h3 { margin-bottom: 4px; font-family: var(--body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.need ul { margin: 0; padding-left: 20px; font-size: 1.125rem; }
.cook-step .timer { width: 100%; justify-content: center; min-height: 60px; margin-top: 18px; font-size: 1.125rem; background: var(--yellow); color: var(--on-pastel); }
.cook-step .timer.running { background: var(--accent); color: var(--on-accent); }
.cook-step .timer.done { background: var(--lilac); color: var(--on-pastel); }
.cook-done { margin-top: 18px; display: grid; gap: 12px; }
.cook-done p { margin: 0; color: var(--muted); }
/* Back and Next stay in one place at the bottom of the screen on every step, so you can keep tapping the same spot
   (owner, 2026-11-28; they used to sit under each step's text and move with it). The page leaves room for them. */
.cook-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 10px; max-width: 760px; margin: 0 auto;
  padding: 12px 22px calc(26px + env(safe-area-inset-bottom)); /* 26px: a little off the bottom edge (owner, 2026-11-28) */
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.cook.one-step { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
body.bare.has-timers .cook.one-step { padding-bottom: calc(130px + var(--tray-h, 64px)); }
.cook-nav .btn { flex: 1; min-height: 58px; padding: 0 16px; font-size: 1.125rem; white-space: nowrap; }
.cook-nav .btn-main { flex: 2; box-shadow: none; background: var(--sky); color: var(--on-pastel); } /* light blue, like the Cook mode button */
.cook-nav .btn-main:hover { color: var(--on-pastel); }
.cook-nav button:disabled { opacity: 0.4; cursor: default; }
body.bare.has-timers .cook-nav { bottom: var(--tray-h, 64px); }

/* ---------- My day ---------- */

.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 28px; }
.day-nav p { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.125rem; color: var(--heading); text-align: center; }
.day-nav .icon-btn { background: var(--accent-tint); color: var(--accent-ink); }
.day-nav .icon-btn:disabled { opacity: 0.35; cursor: default; }
.day-kcal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.day-kcal p { margin: 0; }
.big { font-family: var(--head); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--heading); }
.of { color: var(--muted); }
.left { font-weight: 800; color: var(--accent-ink); }
.left.over { color: var(--lilac-ink); }
.bar { height: 12px; margin-top: 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-small { height: 8px; margin-top: 4px; }
.fill { display: block; width: 0; height: 100%; border-radius: 999px; transition: width 0.3s; }
.fill-kcal, .fill-protein { background: var(--accent); }
.fill-carbs { background: var(--gold); }
.fill-fat { background: var(--lilac); }
.fill-fiber { background: #6F8F3A; }
.macros { display: grid; gap: 16px; margin: 24px 0 0; }
.macro-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.macro-row dd { margin: 0; color: var(--soft); }
.day-list { display: grid; gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.empty-note { color: var(--muted); margin: 0 0 20px; }
.entry { padding: 18px 16px 16px 20px; }
.entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.entry-head a { font-family: var(--head); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--heading); text-decoration: none; padding-top: 10px; }
.entry-remove { font-size: 1.375rem; color: var(--muted); }
.entry-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.entry-row .stepper button { font-size: 1.25rem; font-weight: 800; }
.entry-row .stepper output { min-width: 96px; font-size: 0.9375rem; }
.entry-kcal { margin: 0; font-family: var(--head); font-weight: 700; color: var(--heading); }
.goals { margin-top: 36px; }
.goals summary { min-height: 44px; display: flex; align-items: center; font-family: var(--head); font-weight: 700; font-size: 1.125rem; color: var(--heading); cursor: pointer; }
.goals-form { display: grid; gap: 16px; margin-top: 16px; }
.goals-form label { display: grid; gap: 4px; font-weight: 700; font-size: 0.9375rem; }
.goals-form .note { margin: 0; font-size: 0.875rem; }
.goals-form .row .btn { flex: 1 1 200px; } /* one above the other on phones, side by side on wider screens */
.privacy-note { display: flex; gap: 12px; margin: 36px 0 0; padding: 20px 22px; border-radius: var(--r); background: var(--accent-tint); color: var(--accent-ink); font-size: 0.9375rem; box-shadow: inset 0 0 0 1.5px var(--accent-edge); }
.fine-note { margin: 22px 0 0; font-size: 0.875rem; color: var(--muted); }


@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Reviews ---------- */
.reviews .rating-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.star-empty { fill: none !important; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.stars-small svg { width: 14px; height: 14px; }
.review-list { list-style: none; margin: 24px 0 0; padding: 0; }
.review { padding: 20px 0; border-top: 1px solid var(--line); }
.review p { margin: 8px 0 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.review-head time { color: var(--muted); font-size: 0.875rem; }
.review-form { display: grid; gap: 12px; margin: 16px 0 24px; }
.review-form h3 { margin: 0; }
.review-form .note { margin: 0; font-size: 0.875rem; }
.field-label { font-weight: 700; margin-top: 4px; }
.star-input { margin: 0; padding: 0; border: 0; }
.star-input legend { padding: 0; font-weight: 700; margin-bottom: 4px; }
.star-row { display: inline-flex; gap: 0; margin-left: -4px; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { display: grid; place-items: center; width: 38px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--mint-ink); }
.star-row label svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.tab-nav .star-row input:focus-visible + label { outline: 2px solid var(--mint-ink); outline-offset: 1px; }
.star-row:has(#rate-1:checked) label:nth-of-type(-n+1) svg, .star-row:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1) svg,
.star-row:has(#rate-2:checked) label:nth-of-type(-n+2) svg, .star-row:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2) svg,
.star-row:has(#rate-3:checked) label:nth-of-type(-n+3) svg, .star-row:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3) svg,
.star-row:has(#rate-4:checked) label:nth-of-type(-n+4) svg, .star-row:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4) svg,
.star-row:has(#rate-5:checked) label:nth-of-type(-n+5) svg, .star-row:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5) svg { fill: currentColor; }

/* ---------- Forms (contact, sign-up) ---------- */
.form-grid { display: grid; gap: 12px; margin: 20px 0 32px; }
.form-grid .btn { justify-self: start; margin-top: 12px; }
.form-grid .note { margin: 4px 0 0; font-size: 0.875rem; }
.form-done h2 { margin-top: 0; }
/* A field only robots fill in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Email sign-up box ---------- */
.signup-box { margin-top: var(--gap-section); }
.signup-box h2 { margin-top: 0; }
.signup-box p { margin: 10px 0 18px; }

/* ---------- Sponsored, "What I used", My vegan kitchen ---------- */
.sponsored { display: inline-block; margin: 16px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--peach); color: var(--peach-ink); font-size: 0.875rem; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--yellow-edge); }
.sponsored a { color: inherit; }
.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.product { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.product img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.product p { margin: 4px 0 0; font-size: 0.9375rem; color: var(--soft); }
.disclosure { font-size: 0.875rem; }
.kitchen-group { margin-top: 44px; }
.kitchen-group h2 { margin: 0 0 18px; }

/* ---------- Work with us ---------- */
.media-kit { margin: 44px 0; }
.kit-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 20px 0; }
.kit-figure { display: grid; padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.kit-figure strong { font-family: var(--head); font-size: 1.75rem; color: var(--heading); line-height: 1.1; }
.kit-figure span { color: var(--muted); font-size: 0.9375rem; }
.kit-list { margin: 12px 0 22px; padding-left: 20px; }

/* ---------- Video, sharing, related ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.related .grid { margin-top: 0; }

/* ---------- More filters ---------- */
.chip-count { margin-left: 2px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.more-filters { margin: 16px 0 4px; }
.more-filters summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--accent-ink); cursor: pointer; }
.filter-group { margin: 14px 0 18px; }
.filter-group h3 { margin: 0 0 10px; font-size: 0.9375rem; color: var(--soft); }
.without .row { display: flex; flex-wrap: wrap; gap: 8px; }
.without .field { flex: 1 1 200px; }

.offline-list { margin: 12px 0; padding-left: 20px; }
.offline-list li { padding: 6px 0; }

.myday-keep { margin: 44px 0; }
.myday-keep h2 { margin-top: 0; }
.myday-keep form { display: grid; gap: 12px; justify-items: start; }

/* ---------- Vegan swaps ---------- */
.swap-group { margin-top: 40px; }
.swap-group h2 { margin: 0 0 16px; }
.swap-options { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 18px; }
.swap-option h2 { margin: 0 0 12px; font-size: 1.125rem; }
.swap-option dl { margin: 0; display: grid; gap: 10px; }
.swap-option dt { font-size: 0.8125rem; font-weight: 800; color: var(--muted); }
.swap-option dd { margin: 0; }
.smart-swaps details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.smart-swaps summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.swap-already { display: flex; align-items: center; gap: 6px; margin: 8px 0; color: var(--sage-ink); font-weight: 700; }
.vz-lines { list-style: none; margin: 20px 0; padding: 0; }
.vz-line { padding: 14px 0; border-bottom: 1px solid var(--line); }
.vz-line p { margin: 0; }
.vz-heading { padding: 12px 0 4px; font-weight: 800; }
.vz-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; font-size: 0.8125rem; font-weight: 800; color: var(--surface); }
.vz-swap .vz-mark { background: var(--lilac); color: #1B1B1B; }
.vz-check .vz-mark { background: #9A6700; }
.vz-ok .vz-mark { background: var(--accent); }
.vz-swap .vz-text { font-weight: 700; }
.vz-suggest { margin: 6px 0 0; padding-left: 30px; }
.vz-suggest li { margin: 2px 0; }

/* ---------- Meal plan and shopping list ---------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 28px; }
.plan-day { padding: 20px 0; border-bottom: 1px solid var(--line); }
.plan-day h2 { font-size: 1.0625rem; margin: 0 0 10px; }
.plan-entries { list-style: none; margin: 0 0 12px; padding: 0; }
.plan-entries li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.plan-entries form { margin-left: auto; }
.plan-add { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-add .field { flex: 1 1 200px; }
.narrow-field { flex: 0 0 auto !important; width: auto; }
.aisle h2 { font-size: 1rem; margin: 32px 0 8px; color: var(--soft); }
.aisle ul { list-style: none; margin: 0; padding: 0; }
.tick { display: flex; align-items: flex-start; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tick input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.tick-text { display: grid; }
.tick .amount { color: var(--soft); }
.tick .for { font-size: 0.8125rem; color: var(--muted); }
.tick:has(input:checked) .tick-text { text-decoration: line-through; opacity: 0.55; }
.shop-extra, .shop-share { margin: 36px 0; }
.shop-extra h2, .shop-share h2 { margin: 0 0 12px; font-size: 1.125rem; }
.shop-extra .row { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-extra .field { flex: 1 1 200px; }
.inline-form { display: inline; }
.share-url { display: flex; gap: 8px; }
.share-url .field { flex: 1; }

/* ---------- Start here ---------- */
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tool-list li { padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.tool-list strong { margin-right: 6px; }

/* ---------- AI helpers ---------- */
.ai-label { padding: 10px 14px; border-radius: 14px; background: var(--peach); color: var(--peach-ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--yellow-edge); }
.ai-offer { margin: 20px 0 28px; }
.ai-offer p { margin: 0 0 10px; }

/* ---------- Phones: timers and messages sit above the tab bar ---------- */
@media (max-width: 899px) {
  body:not(.bare) .timer-tray { left: 12px; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); padding: 8px; border-top: 0; border-radius: 24px; }
  body:not(.bare) .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.has-timers:not(.bare) .toast { bottom: calc(96px + var(--tray-h, 64px)); }
  body.has-timers:not(.bare) { padding-bottom: calc(var(--tray-h, 64px) + 112px); }
}

/* ---------- Recipe page, Sorbet layout (as in the mock-up) ---------- */

/* The times: one butter panel with a clock, label over value. */
.facts-panel { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 20px; border-radius: var(--r); background: var(--yellow-tint); }
.facts-panel .facts { flex: 1; margin: 0; gap: 12px; text-align: left; }
.facts-panel .facts div { flex-direction: column; padding: 0; border-radius: 0; background: none; }
.facts-panel .facts dt { color: var(--yellow-ink); }
.facts-panel .facts dd { font-size: 1.375rem; }
@container (max-width: 380px) { .facts-panel .head-icon { display: none; } }
.steps-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; }
.steps-head h2 { margin: 0; }
.steps-head .btn { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
/* The intro starts at the page's left edge (in line with the photo and the ingredients), at reading width;
   nothing sits beside it, so a short or long intro never leaves a gap. */
.recipe-body > .intro { margin-left: 0; margin-right: auto; max-width: 760px; font-size: 1.125rem; }
.head-tip { background: var(--sky); }
/* Reviews sit on the neutral grey: a pale red box read like an error message (owner, 2026-11-27). The stars
   keep the love color. */
.reviews { padding: var(--pad-card); border-radius: var(--r-lg); background: var(--mint-tint); }
/* One background in the Reviews box: the form sits straight on it, with white fields (owner, 2026-11-27). */
.reviews .review-form { padding: 0; border-radius: 0; background: none; box-shadow: none; margin: 0; } /* no box inside the Reviews box */
.reviews .review-list .review { border-top-color: var(--line); }
/* Reviews: one column (owner, 2026-11-28): the rating, the reviews two to a row on wide screens, then a wide
   form: the stars beside the name, the text the full width, the note beside the button. */
.reviews > h2 { margin: 0 0 10px; }
.reviews .review-list { margin: 8px 0 0; }
@media (min-width: 1000px) {
  .reviews .review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-items: start; }
  .reviews .review-list > .review:last-child:nth-child(odd) { grid-column: 1 / -1; } /* a lone or odd last review takes the row */
  .faq + .reviews .review-list { grid-template-columns: minmax(0, 1fr); } /* beside Questions: one review per row */
}
/* Rating it: the stars first, at a normal size (owner, 2026-11-28: 36px was "ginormous"), with what the picked one means ("Loved it"); the name and words open once a
   star is picked (js/site.js), so the box starts small (owner, 2026-11-28). A line sets it apart from reviews. */
.rev-write { margin-top: 4px; }
.rating-sum ~ .rev-write, .review-list ~ .rev-write { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.reviews .review-form { gap: 16px; }
.rate-ask { margin: 0 0 6px; padding: 0; font-family: var(--head); font-weight: 800; font-size: 1.1875rem; color: var(--heading); }
.star-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.reviews .star-row label { width: 34px; height: 44px; } /* 26px stars; the tap area stays 44px tall */
.reviews .star-row label svg { width: 26px; height: 26px; }
.rate-word { font-weight: 700; color: var(--mint-ink); }
.rate-word:empty { display: none; }
.review-form.rf-closed .rf-more { display: none; }
.rf-more { display: grid; gap: 14px; }
.rf-field { display: grid; gap: 6px; min-width: 0; }
.rf-field .muted { margin-left: 4px; font-weight: 500; font-size: 0.875rem; } /* "Optional": quieter than the label */
.rf-end { display: grid; gap: 12px; }
@media (min-width: 600px) {
  .rf-end { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .rf-end .btn { padding: 0 32px; }
}
/* Visitors who aren't signed in: the same stars, as links through sign-in; they fill up to the one pointed at. */
.rate-guest .rate-stars { gap: 0; margin-left: -4px; }
.rate-guest .rate-stars a { width: 34px; height: 44px; border-radius: 12px; background: none; color: var(--mint-ink); }
.rate-guest .rate-stars a:hover, .rate-guest .rate-stars a:focus-visible { background: none; color: var(--mint-ink); }
.rate-guest .rate-stars svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.rate-guest .rate-stars:has(a:nth-child(1):hover) a:nth-child(-n+1) svg, .rate-guest .rate-stars:has(a:nth-child(2):hover) a:nth-child(-n+2) svg,
.rate-guest .rate-stars:has(a:nth-child(3):hover) a:nth-child(-n+3) svg, .rate-guest .rate-stars:has(a:nth-child(4):hover) a:nth-child(-n+4) svg,
.rate-guest .rate-stars:has(a:nth-child(5):hover) a:nth-child(-n+5) svg { fill: currentColor; }
.rate-guest .note { margin: 6px 0 0; }
.section-head a.pill { min-height: 40px; text-decoration: none; }

/* Recipe page top, layout A (owner, 2026-11-27): no button row and no byline. The intro sits under the time box
   in a soft card, cut to four lines with an inline "… read more" (js/recipe.js); Save sits at the end of the
   rating line; Cook mode (sky: how to make it) and Print open the Steps box. */
.intro-card { margin-top: 24px; padding: 20px 24px; border-radius: var(--r); background: var(--cloud); font-size: 1.03125rem; line-height: 1.7; overflow: hidden; }
.intro-card .intro { margin: 0; }
.intro-card .intro p { margin: 0 0 12px; }
.intro-card .intro p:last-child, .intro-short { margin: 0; }
.read-toggle { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: calc(1em - 2px); color: var(--done); cursor: pointer; } /* quiet: lighter and 2px smaller than the text */
.steps-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cook-link { background: var(--sky); color: var(--on-pastel); }
.cook-link:hover { color: var(--on-pastel); }
.print-btn { background: var(--surface); color: var(--text); }
.print-btn:hover { color: var(--text); }
/* Phones (owner, 2026-11-29): Cook mode, Print and Share on one line. Print and Share become round icons at the
   right; their words stay for screen readers. Computers keep the words. */
@media (max-width: 599px) {
  .steps-tools { flex: 1 1 100%; flex-wrap: nowrap; }
  .steps-tools > .cook-link { margin-right: auto; }
  .steps-head .print-btn { width: 44px; padding: 0; }
  .print-btn .tool-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Cook mode: the same servings stepper and US/Metric switch as the ingredients box (pistachio: what's in it).
   They are links that reload the step with the new amounts (js/cook.js keeps the step). */
.cook-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.cook-controls .stepper, .cook-controls .toggle { background: var(--sage-tint); }
.cook-controls .stepper { gap: 2px; }
.cook-controls .stepper a, .cook-controls .stepper .off {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--sage); color: var(--on-pastel);
}
.cook-controls .stepper .off { opacity: 0.4; pointer-events: none; } /* at the smallest or biggest size */
.cook-controls .stepper output { display: grid; justify-items: center; min-width: 72px; padding: 0 4px; line-height: 1; }
.cook-controls .stepper output b { font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.cook-controls .stepper output span { margin-top: 3px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.cook-controls .toggle a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  color: var(--text); font-weight: 700; font-size: 0.9375rem; text-decoration: none;
}
.cook-controls .toggle a[aria-current="true"] { background: var(--sage); color: var(--on-pastel); }

/* "More like this": the recipe's categories as pills, then four recipe cards. */
.more-terms { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 24px; padding: 0; list-style: none; }
/* Collections (2026-11-28): white pills with an apricot edge, after a recipe's categories and under a category's
   text ("Quick vegan dinners" on Dinner), so readers and search engines find them. */
.pill-collection { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--apricot); }
.term-collections { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 8px; }
.term-collections > span { font-weight: 700; font-size: 0.9375rem; color: var(--muted); }
.term-collections ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* Category pages (owner, 2026-11-29): heading, first paragraph, collections, then the recipes; the rest of the
   text sits under the recipes. On phones the collections are one row you swipe sideways. */
.list-head + .intro { margin-top: 0; }
.intro-more { margin-top: var(--gap-block); max-width: 760px; color: var(--muted); }
@media (max-width: 599px) {
  .term-collections { flex-wrap: nowrap; margin: 4px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
  .term-collections::-webkit-scrollbar { display: none; }
  .term-collections > span { flex: none; }
  .term-collections ul { flex-wrap: nowrap; }
  .term-collections li { flex: none; }
}

/* ---------- Print: a recipe card for paper (owner, 2026-11-27: it printed like a web page) ----------
   Black on white, no colored boxes, usually one or two pages: title, short description, diet labels and one
   line of times with a small photo at the right; the ingredients (with a box to tick in pen) beside the
   numbered steps; then "Good to know" in small type, nutrition on one line and the recipe's address. Anything
   you would tap or browse online is left out. Amounts print at the servings and units chosen on screen. */
.print-only { display: none; }
@media print {
  @page { margin: 14mm 14mm 16mm; }
  :root { --text: #000; --muted: #333; --soft: #333; --heading: #000; --line: #bbb; --accent: #000; }
  html, body { background: #fff !important; color: #000; }
  body { font-size: 10.5pt; line-height: 1.4; padding: 0 !important; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
  a { color: #000; text-decoration: none; }

  .site-header, .site-footer, .tabbar, .skip, .timer-tray, .toast, .preview-banner, .crumbs, .recipe-tags .pill, .rating-link, .photo-save,
  .intro-card, .steps-tools, .timer, .controls .stepper button, .controls .toggle,
  .ingredients input, .ingredients .shop, .disclosure, .smart-swaps, .used, .video, .steps-video, .faq, .reviews, [data-fragment],
  .related, .signup-box, .nutri > :not(summary), .nutri > summary::after, .sponsored, form,
  .pin-btn { display: none !important; }
  .print-only { display: block !important; }
  .wrap, .recipe { max-width: none; margin: 0; padding: 0; }

  /* The top: words on the left, a small square photo on the right. */
  .recipe-head {
    display: grid !important; grid-template-columns: minmax(0, 1fr) 40mm; grid-template-areas: "titles photo" "more photo";
    column-gap: 8mm; row-gap: 0; align-items: start; margin: 0 0 6mm;
  }
  .recipe-titles { grid-area: titles; }
  .recipe-more { grid-area: more; container-type: normal; }
  .recipe-photo { grid-area: photo; width: 40mm; max-width: none; margin: 0; padding: 0; justify-self: end; }
  .hero-img { aspect-ratio: 1; border-radius: 3mm; }
  .hero-img::after { display: none; }
  .recipe-title { margin: 0 0 2mm; font-size: 22pt !important; line-height: 1.1; }
  .tagline { margin: 0 0 3mm; font-size: 11pt; color: #333; }
  .recipe-tags { margin: 0 0 3mm; }
  .diet-ticks { gap: 1mm 4mm; margin: 0; font-size: 9pt; }
  .diet-ticks .ic { color: #000; }
  .facts-panel { display: block; margin: 0; padding: 2mm 0; border-radius: 0; background: none; border-top: 0.6pt solid #bbb; border-bottom: 0.6pt solid #bbb; }
  .facts-panel .head-icon { display: none; }
  .facts-panel .facts { display: flex; flex-wrap: wrap; gap: 2mm 8mm; }
  .facts-panel .facts dt { font-size: 7.5pt; color: #333; }
  .facts-panel .facts dd { font-size: 11pt; }

  /* Ingredients beside the numbered steps. */
  .recipe-body { max-width: none; margin: 0; }
  .recipe-cols { display: grid !important; grid-template-columns: 62mm minmax(0, 1fr); gap: 8mm; align-items: start; margin: 0; }
  .recipe-side.stick { position: static; }
  #ingredients, .steps-panel { padding: 0; border-radius: 0; background: none; }
  #ingredients h2, .steps-head h2 { margin: 0 0 2mm; font-size: 13pt; }
  .steps-head { margin: 0 0 2mm; }
  .controls { display: block !important; margin: 0 0 2mm; }
  .controls .stepper { padding: 0; background: none; }
  .controls .stepper output { display: inline; min-width: 0; font-size: 9pt; }
  .controls .stepper output b, .controls .stepper output span { display: inline; margin: 0; font-family: inherit; font-size: 9pt; letter-spacing: 0; text-transform: none; color: #333; }
  .ing-group { margin: 3mm 0 1mm; font-size: 10.5pt; }
  .ingredients li { position: relative; padding: 1.2mm 0 1.2mm 5mm; border-bottom: 0.4pt solid #ddd !important; break-inside: avoid; }
  .ingredients li::before { content: ""; position: absolute; left: 0; top: 2.1mm; width: 2.6mm; height: 2.6mm; border: 0.6pt solid #000; border-radius: 0.5mm; }
  .ingredients label { font-size: 10pt; line-height: 1.35; }
  .steps { display: block; }
  .steps li { display: flex; gap: 3mm; margin: 0; padding: 0 0 2.5mm; border-radius: 0; background: none; break-inside: avoid; }
  .steps li::before { width: 6mm; height: 6mm; border: 0.8pt solid #000; background: none; font-size: 9pt; }
  .steps p { margin: 0.6mm 0 0; font-size: 10.5pt; line-height: 1.4; }
  .amt { font-weight: 700; }

  /* After the steps, in small type. */
  .recipe-rest { margin-top: 6mm; }
  .know { margin: 0 0 4mm; padding: 0; border-radius: 0; background: none; font-size: 9pt; line-height: 1.35; }
  .know h2 { margin: 0 0 1.5mm; font-size: 12pt; }
  .know-cols { display: block !important; columns: 2; column-gap: 8mm; }
  .know h3 { margin: 2mm 0 1mm; font-size: 9.5pt; break-after: avoid; }
  .know-text ul { margin: 0; }
  .know-text li { margin: 0.8mm 0; padding-left: 6mm; break-inside: avoid; }
  .know-text li::before { width: 4mm; height: 4mm; border: 0.6pt solid #000; background: none; font-size: 7pt; }
  /* Nutrition: its one line, at the end of the ingredients. */
  .nutri { margin: 3mm 0 0; padding: 2mm 0 0; border-top: 0.4pt solid #bbb; }
  .nutri > summary { display: block; min-height: 0; }
  .nutri-sum { display: block; font-size: 9pt; }
  .nutri-title { font-weight: 700; }
  .nutri-title::after { content: ": "; }
  .nutri-line { font-size: 9pt; color: #000; }
  .print-source { margin: 6mm 0 0; padding-top: 2mm; border-top: 0.4pt solid #bbb; font-size: 8pt; color: #333; }
  h1, h2, h3 { break-after: avoid; }
  img { break-inside: avoid; }
}

/* Smart swaps open like Questions: each "Make it …" is a white card in the green box (owner, 2026-11-27). */
.smart-swaps details.swap-diet { margin-top: 10px; padding: 8px 24px; border: 0; border-radius: 22px; background: var(--surface); }
.smart-swaps details.swap-diet summary { min-height: 48px; font-size: 1.0625rem; }
.smart-swaps details.swap-diet[open] { padding-bottom: 16px; }
.smart-swaps .swap-already { margin: 6px 0; }
.swap-already-row { display: flex; flex-wrap: wrap; gap: 0 20px; }
.swap-already-row:empty { display: none; }

/* The recipe video at the top of the Steps box. */
.steps-video { margin: 0 0 14px; }

/* ---------- Recipe page review fixes (owner, 2026-11-27) ---------- */

/* Cook mode finish screen: no focus box on the heading, no servings/units, buttons in colors. */
#cook-done h2:focus { outline: none; }
.cook.at-done .cook-controls { display: none; }
.cook-done { margin-top: 24px; display: grid; gap: 14px; }
.cook-done h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.cook-done .btn-main { background: var(--sage); color: var(--on-pastel); } /* My day: what's in it */
.cook-done .btn-main:hover { color: var(--on-pastel); }

/* Phones: steps get the width back (number above the text, less padding), and a smaller gap above the photo. */
@media (max-width: 599px) {
  .steps-panel { padding: 20px 14px; }
  .steps li { flex-direction: column; gap: 10px; padding: 18px 18px 20px; }
  .steps li::before { width: 36px; height: 36px; font-size: 1.0625rem; }
  .steps p { margin-top: 0; font-size: 1.0625rem; }
  #ingredients { padding: 24px 18px 20px; }
}
@media (max-width: 899px) {
  .recipe-head { gap: 20px; margin-top: 22px; } /* no pill row above it on phones: a little air under the header line */
  .recipe-photo { margin: 0; }
}

/* Buttons take their box's color, never dark ink (Cook mode, Add to plan and Save already do). */
.reviews .btn-main { background: var(--mint); color: var(--on-pastel); }
.reviews .btn-main:hover { color: var(--on-pastel); }

/* Shop: a small, quiet cart icon beside each ingredient that has a link. */
.ingredients .shop { justify-content: center; width: 32px; min-height: 32px; margin-top: -4px; padding: 0; border-radius: 999px; color: var(--muted); }
.ingredients .shop .ic { width: 16px; height: 16px; }

/* Share and "Find more like this" together in one quiet grey box. */

/* The email sign-up: neutral grey with light red accents (a big red block read like a warning). */
.soft-band { border-radius: var(--r-lg); padding: clamp(28px, 4.5vw, 56px); background: var(--mint-tint); }
.soft-band .head-love { background: var(--lilac); color: var(--on-pastel); }
.soft-band .btn-main { background: var(--mint); color: var(--on-pastel); }
.soft-band .btn-main:hover { color: var(--on-pastel); }

/* ---------- Recipe page and cook mode additions (owner, 2026-11-27) ---------- */

/* "Pin it" on the recipe photo: a white pill at the bottom left of the arch. */
.photo-arch { position: relative; }
.pin-btn {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #24213A;
  font-size: 0.875rem; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(36, 33, 58, 0.16);
}
.pin-btn:hover { color: #24213A; background: #FFFFFF; }
/* Save, on the photo at the bottom right, across from Pin it: mint with a white ring, like the hearts on photos. */
.photo-save {
  position: absolute; right: 16px; bottom: 16px; z-index: 1; min-height: 40px; padding: 0 16px; gap: 6px;
  border: 2px solid #FFFFFF; font-size: 0.875rem;
}
.photo-save .ic { width: 18px; height: 18px; }
.pin-btn .ic { width: 16px; height: 16px; }

/* "Add to my shopping list" at the end of the ingredients box (pistachio, like the box). */
.shop-form { margin-top: 18px; }
.shop-list-btn { width: 100%; min-height: 46px; background: var(--sage); color: var(--on-pastel); font-size: 0.9375rem; }
.shop-list-btn:hover { color: var(--on-pastel); }
.shop-list-btn .ic { width: 18px; height: 18px; }

/* Cook mode: the "Get ready" checklist before step 1. */
.cook-ready .cook-text { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); }
.ready-group { margin: 22px 0 6px; font-size: 1.0625rem; }
.ready-list { margin: 10px 0 0; padding: 14px 18px; list-style: none; border-radius: var(--r); background: var(--sage-tint); }
.ready-group + .ready-list { margin-top: 0; }
.ready-list li + li { border-top: 1px solid color-mix(in srgb, var(--sage-ink) 16%, transparent); }
.ready-list label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 1.125rem; cursor: pointer; }
.ready-list input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--sage-ink); }
.ready-list input:checked + span { color: var(--done); text-decoration: line-through; }
.ready-list + .cook-next { margin-top: 22px; }

/* Cook mode, round 1 (owner, 2026-11-28). On the steps, a row with the ingredients (pistachio: what's in it) and
   read-aloud (sky: how to make it); servings and units only on "Get ready" and in the ingredients sheet. */
.cook-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cook-tools[hidden] { display: none; }
.cook-tool { min-height: 44px; padding: 0 16px; gap: 8px; font-size: 0.9375rem; color: var(--on-pastel); }
.cook-tool .ic { width: 20px; height: 20px; }
.cook-tool[data-open-ingredients] { background: var(--sage-tint); color: var(--text); --ring: var(--sage); }
.cook-tool[data-read] { background: var(--sky-tint); color: var(--text); --ring: var(--sky); }
.cook-tool[data-read][aria-pressed="true"] { background: var(--sky); color: var(--on-pastel); --ring: var(--sky-pop); }
.cook-tool:hover { color: inherit; box-shadow: inset 0 0 0 2px var(--ring); }
.cook.one-step:not(.at-ready) > .cook-body > .cook-controls { display: none; }
/* "Step 1: …" under "Get ready". */
.cook-next { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.5; color: var(--muted); }
.cook-next span { font-weight: 700; color: var(--sky-ink); }
/* The ingredients sheet: slides up from the bottom on phones, a panel in the middle on bigger screens. */
.cook-sheet {
  width: 100%; max-width: 640px; max-height: 86vh; margin: auto auto 0; padding: 18px 22px calc(26px + env(safe-area-inset-bottom));
  border: 0; border-radius: 28px 28px 0 0; background: var(--bg); color: var(--text); overflow: auto; overscroll-behavior: contain;
}
.cook-sheet::backdrop { background: rgba(23, 21, 31, 0.45); }
@media (min-width: 700px) { .cook-sheet { margin: auto; border-radius: 28px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sheet-head h2 { margin: 0; font-size: 1.375rem; }
.cook-sheet .cook-controls { margin: 8px 0 6px; }
.sheet-list { margin: 10px 0 0; padding: 4px 16px; list-style: none; border-radius: var(--r); background: var(--sage-tint); }
.ready-group + .sheet-list { margin-top: 0; }
.sheet-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-list li + li { border-top: 1px solid color-mix(in srgb, var(--sage-ink) 16%, transparent); }
.sheet-list label { flex: 1; display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: 1.0625rem; cursor: pointer; }
.sheet-list input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sage-ink); }
.sheet-list input:checked + span { color: var(--done); text-decoration: line-through; }
.sheet-uses { flex: none; padding: 13px 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--sky-ink); white-space: nowrap; }
/* Round 2 (owner, 2026-11-28). Text size: "Aa" steps through normal, large and larger. */
.cook-size { min-width: 52px; padding: 0 14px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--outline); --ring: var(--ring-neutral); font-family: var(--head); font-weight: 800; }
.cook-size span span { font-size: 1.3em; }
.cook.text-1 .cook-text { font-size: clamp(2.125rem, 1.7rem + 2vw, 3rem); }
.cook.text-2 .cook-text { font-size: clamp(2.5rem, 2rem + 2.4vw, 3.5rem); }
.cook.text-1 .need ul, .cook.text-1 .cook-next, .cook.text-1 .ready-list label { font-size: 1.3125rem; }
.cook.text-2 .need ul, .cook.text-2 .cook-next, .cook.text-2 .ready-list label { font-size: 1.5rem; }
.cook.text-1 .cook-ready .cook-text, .cook.text-2 .cook-ready .cook-text { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
/* Phones (owner, 2026-11-29): each step's words 3px smaller, at all three text sizes (the Aa button). */
@media (max-width: 599px) {
  .cook-text { font-size: calc(clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem) - 3px); }
  .cook.text-1 .cook-text { font-size: calc(clamp(2.125rem, 1.7rem + 2vw, 3rem) - 3px); }
  .cook.text-2 .cook-text { font-size: calc(clamp(2.5rem, 2rem + 2.4vw, 3.5rem) - 3px); }
}
/* Timer alerts: a quiet offer under each timer; once on, it says so. */
/* Sideways on a phone or tablet: the step on the left; what you need, the timer and what's next on the right. */
@media (orientation: landscape) and (pointer: coarse) {
  .cook.one-step .cook-step:not(.cook-ready) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .cook.one-step .cook-step:not(.cook-ready) > h2, .cook.one-step .cook-step:not(.cook-ready) > .cook-text { grid-column: 1; }
  .cook.one-step .cook-step:not(.cook-ready) > :not(h2):not(.cook-text) { grid-column: 2; }
  .cook.one-step .cook-step:not(.cook-ready) > .cook-text + * { margin-top: 0; }
}
@media (orientation: landscape) and (pointer: coarse) and (max-height: 520px) { /* phones on their side: little height */
  .cook-top { padding-top: 6px; }
  .cook-progress { margin-top: 0; }
  .cook-step { padding: 8px 0 12px; }
  .cook-text { font-size: clamp(1.25rem, 1rem + 1.6vw, 1.75rem); }
  .cook.text-1 .cook-text { font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.125rem); }
  .cook.text-2 .cook-text { font-size: clamp(1.75rem, 1.4rem + 2vw, 2.5rem); }
  .cook-nav { padding: 6px 22px calc(8px + env(safe-area-inset-bottom)); }
  .cook-nav .btn { min-height: 46px; }
  .cook.one-step { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (orientation: landscape) and (pointer: coarse) and (min-width: 900px) { /* tablets on their side: use the width */
  .cook, .cook-nav { max-width: 1100px; }
}
/* The finish: the recipe's own storage tips. */
.cook-leftovers { padding: 18px 20px; border-radius: var(--r); background: var(--sky-tint); }
.cook-leftovers h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.cook-leftovers p, .cook-leftovers li { color: var(--text); }
.cook-leftovers .know-text ul { margin: 0; }

/* Cook mode finish: "How did it turn out?" with five stars that open the review form. */
.rate-it { padding: 18px 20px; border-radius: var(--r); background: var(--mint-tint); }
.rate-q { margin: 0 0 8px; font-weight: 700; }
.rate-stars { display: flex; gap: 6px; }
.rate-stars a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--surface); color: var(--mint-ink); }
.rate-stars a:hover, .rate-stars a:focus-visible { background: var(--mint); color: var(--on-pastel); }
.rate-stars svg { width: 24px; height: 24px; }

/* White with a soft outline wherever the lilac-grey used to be (owner, 2026-11-27: it looked muddy). */
.icon-btn, .btn-plain, .chip, .card-box, .intro-card,
.cook-top .btn-plain, .search-box { box-shadow: inset 0 0 0 1.5px var(--outline); }
.search-box:focus-within { box-shadow: inset 0 0 0 2px var(--mint-ink); }
.header-nav > a[href="/saved/"] { box-shadow: none; }
.chips-time .chip, .chip-time:not([aria-current="true"]), .chip-meal:not([aria-current="true"]),
.chip-diet:not([aria-current="true"]), .chip-protein:not([aria-current="true"]), .chip-kcal:not([aria-current="true"]),
.chip[aria-current="true"], .chip.on { box-shadow: none; }
.site-footer { border-top: 1.5px solid var(--outline); }
.menu-list a:hover { background: var(--accent-tint); }
/* The arch behind the home page photo is a thin outline, not a grey fill. */
.pick::before { background: none; box-shadow: inset 0 0 0 1.5px var(--outline); }

/* Hover on pills and chips: a ring in a stronger shade of the pill's own color, never a darker fill (owner,
   2026-11-28: the dark hover "looks very unpleasant"). White and grey ones get a soft grey ring. */
.pill, .chip { --ring: var(--ring-neutral); }
.pill-explore, .chip-meal { --ring: var(--apricot); }
.pill-collection { --ring: var(--apricot-pop); }
.pill-time, .chip-time { --ring: var(--yellow); }
.pill-have, .chip-diet, .chip-protein, .chip-kcal { --ring: var(--sage); }
.pill-ask { --ring: var(--sky); }
.pill-strong, .pill-explore[aria-current="page"] { --ring: var(--apricot-pop); }
.chips-time .chip { --ring: var(--yellow-pop); }
.pill:hover, .chip:hover { background-image: none; box-shadow: inset 0 0 0 2px var(--ring); }
.pill-strong:hover, .pill-explore[aria-current="page"]:hover { color: var(--on-pastel); } /* dark words on the strong apricot, in dark mode too */
.chip[aria-current="true"]:hover, .chip.on:hover { box-shadow: none; background: var(--accent-hover); } /* a chosen (ink) filter */

/* Buttons too: on hover a ring in a stronger shade of the button's own color, never a darker fill (owner,
   2026-11-28: "the dark pastel on hover"). White and grey buttons get the soft grey ring; ink buttons keep
   their lighter ink. */
.btn, .icon-btn, .head-search { --ring: var(--ring-neutral); }
.cook-link, .cook-nav .btn-main { --ring: var(--sky-pop); }
.save-big, .reviews .btn-main, .soft-band .btn-main { --ring: var(--mint-pop); }
.nutri-ate, .shop-list-btn, .cook-done .btn-main, .cook-controls .stepper a { --ring: var(--sage-pop); }
.btn-lilac { --ring: var(--lilac-pop); }
.icon-btn:hover, .btn-plain:hover, .print-btn:hover, .head-search:hover, .btn-lilac:hover, .save-big:hover, .nutri-ate:hover,
.cook-link:hover, .cook-nav .btn-main:hover, .cook-done .btn-main:hover, .cook-controls .stepper a:hover, .reviews .btn-main:hover,
.soft-band .btn-main:hover, .shop-list-btn:hover { background-image: none; box-shadow: inset 0 0 0 2px var(--ring); }

/* The time box: every value on one line ("1 hr 25 min" never breaks); with four or five values the boxes wrap
   into a second row instead (owner, 2026-11-27). */
.facts-panel .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-flow: row; gap: 12px 16px; }
.facts-panel .facts dd { white-space: nowrap; font-size: 1.25rem; }
.facts-panel .facts > div:last-child:nth-child(odd) { grid-column: auto; } /* no stretched last box */

/* What stopped a form saved in place (js/site.js formProblem): a line of its own, also in a row form. */
.row > [data-form-problem] { flex: 1 0 100%; margin: 0; }

/* ---------- The search window (js/search.js) ----------
   A centered window on computers (with a preview of the top recipe from 1040px), full screen on phones.
   Colors keep their jobs: time butter, what's in it pistachio, questions sky, categories apricot, stars mint. */
.head-search { display: none; }
@media (min-width: 900px) {
  .head-search {
    display: flex; align-items: center; gap: 10px; width: 280px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px;
    background: var(--field-bg); color: var(--muted); font-size: 0.9375rem; text-decoration: none;
  }
  .head-search:hover { color: var(--text); }
  .head-search span { flex: 1; }
  .head-search .ic { width: 20px; height: 20px; }
  .icon-btn.head-search-icon { display: none; }
}
.kbd {
  flex: none; padding: 3px 8px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--outline);
  color: var(--muted); font-family: var(--body); font-size: 0.75rem; font-weight: 600; line-height: 1.2;
}
.search-box .kbd { margin-right: 4px; }
@media (max-width: 899px) { .search-box .kbd { display: none; } }
.srch-hold { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }

html.srch-on { overflow: hidden; scrollbar-gutter: stable; } /* the page keeps its width: no jump, no redraw */
.srch {
  /* One fixed size, whatever it holds (owner, 2026-11-28): long results and the preview scroll inside. */
  width: min(680px, calc(100% - 48px)); height: min(760px, calc(100dvh - 16vh)); max-width: none; max-height: none;
  margin: 8vh auto auto; padding: 0;
  border: 0; border-radius: var(--r); background: var(--surface); color: var(--text); box-shadow: var(--bar-shadow); overflow: hidden;
}
.srch[open] { display: flex; flex-direction: column; }
/* Dimmed, not blurred: blurring the whole page behind made opening stutter (owner, 2026-11-28; measured: most
   frames took up to 100 ms with the blur, a steady 60 a second without). */
.srch::backdrop { background: rgba(23, 21, 31, 0.5); }
.srch-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.srch-bar { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px 10px 22px; border-bottom: 1px solid var(--line); }
.srch-icon { display: grid; color: var(--muted); }
.srch-bar input {
  flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--text);
  font-family: var(--body); font-size: 1.25rem; font-weight: 500;
}
.srch-bar input::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.srch-bar input::-webkit-search-cancel-button { display: none; }
.srch-clear, .srch-back {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.srch-clear:hover, .srch-back:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--ring-neutral); }
.srch-back { display: none; }
.srch-esc {
  flex: none; padding: 4px 9px; border: 0; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--outline);
  color: var(--muted); font-family: var(--body); font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
.srch-esc:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--ring-neutral); }

/* What the search understood: chips with an × to take one out. */
.srch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 22px 0; }
.srch-chips:empty { display: none; }
.srch-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px 0 12px; border: 0; border-radius: 999px;
  color: var(--text); font-family: var(--body); font-size: 0.875rem; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.srch-chip:not([data-chip]) { padding-right: 12px; cursor: default; }
.srch-chip .x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; }
.srch-chip:hover .x { background: var(--wash-pastel); }
.srch-chip.c-time { background: var(--yellow-tint); }
.srch-chip.c-diet, .srch-chip.c-without, .srch-chip.c-have { background: var(--sage-tint); }
.srch-chip.c-explore { background: var(--apricot-tint); }
.srch-chip.is-off { opacity: 0.6; text-decoration: line-through; } /* left out to find something */
.srch-chip-note { color: var(--muted); font-size: 0.875rem; }
.srch-link {
  padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

.srch-body { display: flex; flex: 1; min-height: 0; }
.srch-list { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 14px; }
.srch-peek { display: none; }
.srch-sec { padding: 10px 0 4px; }
.srch-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 12px 6px; }
.srch-sec-head .srch-link { font-size: 0.875rem; }
.srch-sec-title { margin: 0; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.srch-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 6px; }
.srch .pill { font-family: var(--body); cursor: pointer; border: 0; }
.srch .pill:not(.pill-explore):not(.pill-time):not(.pill-ask) { background: var(--field-bg); }
.srch .pill-ask { background: var(--sky-tint); }
.srch .pill .ic { width: 15px; height: 15px; }
.srch-count { color: var(--muted); font-weight: 500; }
.srch-note { margin: 0; padding: 2px 12px 8px; color: var(--muted); font-size: 0.9375rem; }

/* One result: photo, title (matching words bold), time · meal type · stars, and why it matched. */
.hit { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 16px; color: var(--text); text-decoration: none; scroll-margin: 12px; }
.hit:hover { color: var(--text); }
.hit[aria-selected="true"] { background: var(--accent-tint); }
.srch-thumb {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 16px;
  background: var(--field-bg); color: var(--muted);
}
.srch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.srch-thumb.t-ask { background: var(--sky-tint); color: var(--sky-ink); }
.srch-thumb.t-swap { background: var(--sage-tint); color: var(--sage-ink); }
.srch-thumb.t-page { background: var(--cloud); color: var(--text); box-shadow: inset 0 0 0 1px var(--outline); }
.srch-thumb.t-recent { width: 36px; height: 36px; background: transparent; }
.hit-main { display: grid; flex: 1; gap: 2px; min-width: 0; }
.hit-title { overflow: hidden; font-size: 1rem; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.hit-title b { font-weight: 800; }
.hit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 0.8125rem; }
.hit-meta .m-time { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow-ink); font-weight: 600; }
.hit-meta .m-time .ic { width: 13px; height: 13px; }
.hit-meta .m-stars { color: var(--mint-ink); font-weight: 700; }
.hit-sub {
  display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 0.875rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hit-why { overflow: hidden; color: var(--sage-ink); font-size: 0.8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hit-go { display: grid; flex: none; color: var(--muted); opacity: 0; }
.hit[aria-selected="true"] .hit-go { opacity: 1; }

.srch-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 22px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem;
}
.srch-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.srch-keys kbd { margin-right: 4px; padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--outline); font-family: var(--body); font-weight: 700; }
.srch-all {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 0.875rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.srch-all:hover { background: var(--accent-hover); color: var(--on-accent); }
.srch-all .ic { width: 16px; height: 16px; }
.srch-all-row { padding: 12px; }
.srch-all-row .srch-all { width: 100%; justify-content: center; min-height: 48px; font-size: 0.9375rem; }

/* The preview beside the results. */
.srch-peek-in { display: grid; gap: 12px; }
/* Square, and the middle of the photo (owner, 2026-11-28: it showed the top of each photo, and was too short). */
.srch-peek-photo {
  position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 140px 140px 20px 20px;
  background: var(--field-bg); color: var(--muted);
}
.srch-peek-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.srch-peek-title { margin: 4px 0 0; font-family: var(--head); font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.srch-peek-title a { color: var(--heading); text-decoration: none; }
.srch-peek-text { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.srch-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.fact .ic { width: 13px; height: 13px; }
.fact.f-time { background: var(--yellow-tint); }
.fact.f-in { background: var(--sage-tint); }
.fact.f-you { background: var(--mint-tint); }
.srch-peek-q { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--sky-tint); font-size: 0.875rem; }
.srch-peek-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-peek-btns .btn { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.srch-peek-btns .btn-plain { box-shadow: inset 0 0 0 1px var(--outline); }

@media (min-width: 1040px) {
  .srch { width: min(940px, calc(100% - 48px)); }
  .srch-peek { display: block; flex: none; width: 320px; overflow-y: auto; padding: 20px; border-left: 1px solid var(--line); }
}
/* Phones: the whole screen, the field at the top, a back arrow to close (the Back button closes it too). */
@media (max-width: 699px) {
  .srch { width: 100%; height: 100dvh; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
  .srch::backdrop { background: var(--bg); }
  .srch-bar { min-height: 60px; gap: 6px; padding: 8px 12px 8px 6px; }
  .srch-icon, .srch-esc, .srch-foot { display: none; }
  .srch-back { display: grid; color: var(--text); }
  .srch-bar input { min-height: 46px; padding: 0 48px 0 16px; border-radius: 999px; background: var(--field-bg); font-size: 1.0625rem; }
  .srch-clear { margin-left: -50px; }
  .srch-chips { padding: 10px 16px 0; }
  .srch-list { padding: 4px 4px 24px; }
  .srch-thumb { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: no-preference) {
  .srch[open] { animation: srch-in 160ms ease-out; }
  @media (max-width: 699px) { .srch[open] { animation-name: srch-up; animation-duration: 200ms; } }
}
@keyframes srch-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes srch-up { from { opacity: 0; transform: translateY(24px); } }

/* Phones: a step smaller text (owner, 2026-11-29: everything read large on phones, with too much scrolling
   while cooking). Computers and tablets keep their sizes. Fields inherit 16px, so iPhones don't zoom in on tap.
   The home headline (sized to the screen) and Cook mode (read from across the kitchen) are left as they are.
   Report: plan/MOBILE-FONT-REPORT-2026-11-29.md. Kept last in the file so it wins. */
@media (max-width: 599px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.0625rem; }
  .recipe-title { font-size: 1.75rem; }
  .recipe-title.t-mid { font-size: 1.625rem; }
  .recipe-title.t-long { font-size: 1.5rem; }
  .lead { font-size: 1rem; }
  .recipe-body > .intro, .intro-card { font-size: 1rem; line-height: 1.6; }
  .ingredients label, .ing-group { font-size: 1rem; }
  .steps p { font-size: 1rem; line-height: 1.5; }
  .card h2, .card h3 { font-size: 1rem; }
}

/* Phones, home and cards (owner, 2026-11-29): a smaller home headline (still two lines; "Easy, everyday" is 6.3
   times the font size wide, so it fits), two time shortcuts, meal types two across, smaller meal labels over the
   card titles, and card titles at most two lines with "…" (the full title stays in the page for Google and
   screen readers). */
@media (max-width: 599px) {
  .hero h1 { font-size: min(10.5cqi, 2.5rem); }
  .quick-row .chips-time li:nth-child(n+3) { display: none; }
  .meals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .meals h3 { font-size: 1.0625rem; }
  .card-kind { font-size: 0.6875rem; }
  .card h2, .card h3, .pick-label h2 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
}

/* Phones, compact (owner, 2026-11-29: less empty space, tighter line spacing, smaller pictures). Computers and
   tablets keep their room. Buttons and tap targets stay at least 40px tall. */
@media (max-width: 599px) {
  html { --gap-section: 40px; --gap-block: 30px; --pad-card: 18px; }
  body { line-height: 1.5; }
  .header-row { min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
  .section-head { margin-bottom: 16px; }
  .block > h2 { margin-bottom: 14px; }
  /* Home */
  .hero { padding: 24px 0 0; }
  .hero h1 { margin-bottom: 14px; }
  .lead { margin-bottom: 18px; }
  .quick-row { margin-top: 16px; }
  .home-top { gap: 28px; }
  .pick { max-width: 320px; }
  .meals-band { padding: 20px; }
  .meals { gap: 18px 16px; }
  .meals a { gap: 8px; }
  /* Recipe cards */
  .grid { gap: 22px 12px; }
  .card-body { padding: 10px 2px 2px; }
  .card-kind { margin-bottom: 4px; }
  .card .meta { margin-top: 6px; }
  /* Recipe lists */
  .list-head { margin: 20px 0 16px; }
  .filters { margin-top: 16px; }
  .results-bar { margin: 22px 0 16px; }
  /* Recipe page */
  .crumbs { padding-top: 6px; }
  .recipe-head { gap: 16px; margin-top: 10px; }
  .recipe-title { margin-bottom: 8px; }
  .tagline { margin-bottom: 12px; }
  .recipe-photo { max-width: min(82%, 50vh); }
  .actions { margin-top: 18px; gap: 8px; }
  .facts { margin-top: 16px; gap: 8px; }
  .intro p { margin-bottom: 12px; }
  .recipe-body > .intro { line-height: 1.5; }
  .intro-card { margin-top: 16px; padding: 16px 18px; line-height: 1.5; }
  #ingredients { padding: 18px 16px 14px; }
  .ingredients li { padding: 7px 0; }
  .ing-group { margin: 16px 0 2px; }
  .nutri { margin-top: 14px; }
  .steps-head { margin-bottom: 14px; }
  .steps-panel { padding: 14px 12px; }
  .steps { gap: 10px; }
  .steps li { gap: 8px; padding: 14px 14px 16px; }
  .timer { min-height: 40px; margin-top: 10px; }
  .faq details { padding: 4px 18px; }
  /* Footer */
  .site-footer .wrap { padding-top: 36px; }
  .footer-top { gap: 24px 40px; padding-bottom: 20px; }
}
