/* =========================================================
   Three Meals - mobile-only "warm recipe app" UI
   Coral accent, soft cards, script wordmark, bottom tab bar.
   ========================================================= */

:root {
  --c-primary: #f4715e;
  --c-primary-strong: #e2543f;
  --c-primary-tint: #fdeae6;
  --c-primary-tint-2: #fbe0d9;
  --c-on-primary: #ffffff;

  --c-gold: #f4b740;

  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #f7f5f2;
  --c-border: #efece7;
  --c-border-strong: #e4e0d8;

  --c-text: #25201d;
  --c-text-muted: #8c8881;
  --c-text-soft: #b4afa7;

  --c-meat: #c0533a;     --c-meat-bg: #fbe7e0;
  --c-veg: #4f8a3a;      --c-veg-bg: #e7f2df;
  --c-leftover: #b9842a; --c-leftover-bg: #fbefd7;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 28px; --space-7: 40px;

  --radius: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --shadow-card: 0 6px 20px rgba(60, 40, 30, .07);
  --shadow-pop: 0 10px 30px rgba(60, 40, 30, .14);

  --phone-w: 440px;
  --tab-h: 64px;
  --tap: 46px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Grand Hotel", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  line-height: 1.5;
  background: #f1eee9;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

a { color: var(--c-primary-strong); }

:focus-visible {
  outline: 3px solid var(--c-primary-strong);
  outline-offset: 2px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: #fff; color: var(--c-text); padding: 10px 14px;
  border-radius: 12px; font-weight: 700; box-shadow: var(--shadow-pop);
}
.skip-link:focus { top: 12px; }

/* ---------- App shell (mobile-first column) ---------- */
.app-frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-bg);
}

.phone {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  background: var(--c-bg);
}

.site-copyright {
  flex-shrink: 0;
  margin: 0;
  padding: var(--space-3) var(--space-4) calc(var(--tab-h) + var(--safe-bottom) + var(--space-3));
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-text-soft);
  background: var(--c-bg);
}

/* Always fill the screen edge-to-edge (no centred column / device frame). */

.screen {
  padding: calc(var(--safe-top) + var(--space-4)) var(--space-4)
           calc(var(--tab-h) + var(--safe-bottom) + var(--space-5));
}
.screen:focus { outline: none; }

/* Detail screens whose hero bleeds to the edges */
.screen--bleed { padding-left: 0; padding-right: 0; padding-top: 0; }
.screen--bleed .screen__pad { padding: var(--space-5) var(--space-4) 0; }

/* ---------- Bottom tab bar ---------- */
.tab-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 50;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--c-text-soft);
  font-size: .68rem;
  font-weight: 700;
}
.tab__icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.tab[aria-current="page"] { color: var(--c-primary); }
.tab[aria-current="page"] .tab__icon { stroke: var(--c-primary); }

/* ---------- App bar (per view) ---------- */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.wordmark {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--c-primary);
  line-height: 1;
  text-decoration: none;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary-tint);
  display: grid; place-items: center;
  font-size: 1.3rem;
  border: 2px solid #fff;
  box-shadow: var(--shadow-card);
  flex: none;
}

.icon-btn {
  width: var(--tap); height: var(--tap);
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .9);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  color: var(--c-text);
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--active { color: var(--c-primary); }
.icon-btn--active svg { fill: var(--c-primary); stroke: var(--c-primary); }

/* ---------- Headings / intro ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-primary);
}
.screen-title { font-size: 1.5rem; font-weight: 800; margin: 2px 0 6px; }
.screen-sub { color: var(--c-text-muted); font-size: .95rem; }

/* ---------- Home page hero ---------- */
.home-hero {
  margin: 0 calc(-1 * var(--space-4)) var(--space-4);
}

.home-hero__media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(
    180deg,
    rgba(37, 32, 29, 0.08) 0%,
    rgba(37, 32, 29, 0.45) 55%,
    rgba(37, 32, 29, 0.72) 100%
  );
}

.home-hero__eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-primary-tint);
}

.home-hero__title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

.home-hero__text {
  font-size: .88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .92);
  max-width: 36em;
}

.home-featured-label {
  margin-top: var(--space-2);
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: var(--space-5) 0 var(--space-3);
}
.section-head h2 { font-size: 1.15rem; font-weight: 800; }
.section-head a { font-size: .85rem; font-weight: 700; text-decoration: none; }

/* ---------- Search pill ---------- */
.search {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0 var(--space-4);
  height: 50px;
  margin-bottom: var(--space-3);
}
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--c-text-muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input {
  border: none; background: none; outline: none;
  font: inherit; color: var(--c-text);
  width: 100%; height: 100%;
}
.search input::placeholder { color: var(--c-text-soft); }

/* ---------- Filter chips ---------- */
.chips {
  display: flex; gap: var(--space-2);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-1);
  margin: 0 calc(-1 * var(--space-4)) var(--space-4);
  padding-left: var(--space-4); padding-right: var(--space-4);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1.5px solid var(--c-border-strong);
  background: #fff;
  color: var(--c-text-muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700; font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
}
.chip[aria-pressed="true"] {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-on-primary);
  box-shadow: 0 6px 14px rgba(244, 113, 94, .35);
}

/* ---------- Media tiles (food placeholders) ---------- */
.media {
  position: relative;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-surface-2);
  font-size: 2rem;
}
.media__emoji { filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Feed card (list item) ---------- */
.feed-list { display: flex; flex-direction: column; gap: var(--space-3); }

.feed-card {
  position: relative;
  display: flex;
  gap: var(--space-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
}
.feed-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feed-card__title { font-size: 1.05rem; font-weight: 800; }
.feed-card__title a { color: inherit; text-decoration: none; }
.feed-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.feed-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); color: var(--c-text-muted); font-size: .82rem; font-weight: 600; }
.feed-card__sub { color: var(--c-text-muted); font-size: .82rem; }
.feed-card__cta { margin-top: 2px; color: var(--c-primary); font-weight: 800; font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.feed-card .media { width: 96px; height: 96px; flex: none; font-size: 2.4rem; }

/* ---------- Set browse cards (All sets screen) ---------- */
.set-browse-list { gap: var(--space-4); }

.set-browse-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.set-browse-card[hidden] { display: none; }

.set-browse-card__head {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.set-browse-card__head:focus-visible {
  outline: 3px solid var(--c-primary-strong);
  outline-offset: -3px;
}

.set-browse-card__media {
  width: 100%;
  height: 188px;
  border-radius: 0;
  font-size: 4rem;
}

.set-browse-card__intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3) var(--space-4) 0;
}

.set-browse-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.set-browse-card__summary {
  color: var(--c-text-muted);
  font-size: .88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.set-browse-card.is-open .set-browse-card__summary {
  -webkit-line-clamp: unset;
  display: block;
}

.set-browse-card__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
  border-top: 0 solid var(--c-border);
}

.set-browse-card.is-open .set-browse-card__details {
  grid-template-rows: 1fr;
  border-top-width: 1px;
}

.set-browse-card__details-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  background: var(--c-surface-2);
  transition: padding .35s ease;
}

.set-browse-card.is-open .set-browse-card__details-inner {
  padding: var(--space-4);
}

.set-browse-card__footer {
  padding: var(--space-4);
  padding-top: var(--space-3);
}

.set-browse-card__meta {
  color: var(--c-text-muted);
  font-size: .82rem;
  font-weight: 600;
  margin: 0;
}

.set-browse-card__meal-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.set-browse-meal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}

.set-browse-meal__media {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: var(--radius-sm);
  font-size: 1.8rem;
}

.set-browse-meal__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.set-browse-meal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: .78rem;
  color: var(--c-text-muted);
  font-weight: 600;
}

.set-browse-meal__title {
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.3;
}

.set-browse-meal__chev {
  flex: none;
  color: var(--c-primary);
}

.set-browse-meal__chev svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.set-browse-card__toggle { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .set-browse-card__details,
  .set-browse-card__details-inner {
    transition: none;
  }
}

.inline-icon { display: inline-flex; align-items: center; gap: 5px; }
.inline-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* bookmark on cards sits above the stretched link */
.bookmark-btn {
  position: absolute; z-index: 2;
  top: var(--space-3); right: var(--space-3);
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.85);
  display: grid; place-items: center;
  color: var(--c-text-muted);
  box-shadow: var(--shadow-card);
}
.bookmark-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.bookmark-btn[aria-pressed="true"] { color: var(--c-primary); }
.bookmark-btn[aria-pressed="true"] svg { fill: var(--c-primary); stroke: var(--c-primary); }

.feed-card__actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  display: flex;
  gap: 6px;
}
.feed-card__actions .bookmark-btn,
.feed-card__actions .icon-btn.feed-card__action {
  position: static;
  width: 34px;
  height: 34px;
}
.feed-card__actions .icon-btn.feed-card__action {
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-card);
  color: var(--c-text-muted);
}

.set-browse-card { position: relative; }
.set-browse-card > .feed-card__actions { top: 10px; right: 10px; }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-card__fab-row {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.empty--compact { padding: var(--space-5) 0; }
.empty--compact h2 { font-size: 1.05rem; }
.empty--compact p { color: var(--c-text-muted); margin-top: 6px; font-size: .92rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.badge--meat { color: var(--c-meat); background: var(--c-meat-bg); }
.badge--veg { color: var(--c-veg); background: var(--c-veg-bg); }
.badge--leftover { color: var(--c-leftover); background: var(--c-leftover-bg); }
.badge--theme { color: var(--c-primary-strong); background: var(--c-primary-tint); }
.badge--dinner { color: #5a4a8a; background: #ede9f7; }

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  line-height: 1.2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); box-shadow: 0 10px 22px rgba(244,113,94,.4); }
.btn--primary:hover { background: var(--c-primary-strong); }
.btn--ghost { background: #fff; color: var(--c-text); border-color: var(--c-border-strong); }
.btn--block { width: 100%; }
.btn--compact {
  min-height: 40px;
  padding: 8px 14px;
  font-size: .85rem;
}

.recipe-set-link {
  flex-direction: column;
  gap: 0;
  margin: 10px 0 2px;
  min-height: 0;
  padding: 8px 14px;
  line-height: 1.1;
}

.recipe-set-link__action {
  font-size: .88rem;
}

.recipe-set-link__name {
  font-size: .68rem;
  font-weight: 700;
  opacity: .88;
}

.btn--tesco {
  color: #00539f;
  border-color: rgba(0, 83, 159, .25);
}

.btn--tesco:hover,
.btn--tesco:focus-visible {
  background: rgba(0, 83, 159, .08);
  border-color: rgba(0, 83, 159, .4);
}

.btn--sainsburys {
  color: #ec6f00;
  border-color: rgba(236, 111, 0, .25);
}

.btn--sainsburys:hover,
.btn--sainsburys:focus-visible {
  background: rgba(236, 111, 0, .08);
  border-color: rgba(236, 111, 0, .4);
}

/* ---------- Home hero (featured set) ---------- */
.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.hero-card__media { height: 188px; width: 100%; border-radius: 0; font-size: 4rem; }
.hero-card__media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.hero-card__media .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255,255,255,.9);
  color: var(--c-primary-strong);
  pointer-events: none;
}
.hero-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.hero-card__title { font-size: 1.3rem; font-weight: 800; }
.hero-card__title a { color: inherit; text-decoration: none; }
.hero-card__summary { color: var(--c-text-muted); font-size: .92rem; }
.hero-card__random { margin: 0; }

.home-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.home-tag-tile {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.home-tag-tile[hidden] { display: none; }

.home-tag-tile:active { transform: translateY(1px); }

.home-tag-tile__media {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--c-surface-2), #ece8e2);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}

.home-tag-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-tag-tile__label {
  padding: var(--space-3);
  font-weight: 800;
  font-size: .82rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Household picker ---------- */
.household-section {
  margin: var(--space-5) 0 var(--space-2);
  padding: var(--space-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.household-section__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.household-section__intro {
  color: var(--c-text-muted);
  font-size: .88rem;
  line-height: 1.45;
}

.household-section__save,
.household-section__reset {
  margin-top: var(--space-4);
}

.household-live-summary {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--c-primary-tint);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-primary-tint-2);
}

.household-live-summary__main {
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--c-text);
}

.household-live-summary__hint {
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-primary-strong);
}

.household-block {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.household-block__heading {
  font-weight: 800;
  font-size: .92rem;
}

.household-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}

.household-stepper-row__label {
  font-weight: 800;
  font-size: .92rem;
}

.household-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.household-stepper__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border-strong);
  background: var(--c-surface);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: var(--c-text);
  display: grid;
  place-items: center;
}

.household-stepper__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.household-stepper__btn:active:not(:disabled) { transform: scale(0.96); }

.household-stepper__count {
  min-width: 2ch;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.household-dietary-toggle {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 4px 0;
  font: inherit;
  font-weight: 700;
  font-size: .82rem;
  color: var(--c-primary-strong);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.household-dietary-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.household-dietary-panel__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.household-person-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}

.household-person-card__label {
  font-weight: 800;
  font-size: .88rem;
}

.household-person-card__veg {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.household-person-card__veg-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-text-muted);
}

.household-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
}

.household-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.household-toggle__track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--c-border-strong);
  transition: background .15s ease;
  position: relative;
}

.household-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  transition: transform .15s ease;
}

.household-toggle__input:checked + .household-toggle__track {
  background: var(--c-primary);
}

.household-toggle__input:checked + .household-toggle__track .household-toggle__thumb {
  transform: translateX(18px);
}

.household-toggle__input:focus-visible + .household-toggle__track {
  outline: 3px solid var(--c-primary-strong);
  outline-offset: 2px;
}

.household-child-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.household-child-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}

.household-child-card__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.household-child-card__label {
  font-weight: 800;
  font-size: .88rem;
  flex: none;
  min-width: 3.75rem;
}

.household-child-card__remove {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--c-text-muted);
}

.household-child-card__remove svg {
  width: 17px;
  height: 17px;
}

.household-child-card__veg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-left: 0;
}

.household-age-select-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 10.5rem;
}

.household-age-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1.5px solid var(--c-primary);
  background: var(--c-primary);
  color: var(--c-on-primary);
  border-radius: 999px;
  padding: 6px 28px 6px 12px;
  font: inherit;
  font-weight: 700;
  font-size: .72rem;
  min-height: 34px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 113, 94, .3);
}

.household-age-select:focus-visible {
  outline: 3px solid var(--c-primary-strong);
  outline-offset: 2px;
}

.household-age-select__chev {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--c-on-primary);
  display: grid;
  place-items: center;
}

.household-age-select__chev svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
}

.household-add-child-card {
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-3);
  border: 1.5px dashed var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-primary-strong);
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
}

.household-add-child-card:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.household-add-child-card:active:not(:disabled) { transform: scale(0.99); }

.household-scale-note {
  color: var(--c-text-muted);
  font-size: .88rem;
  margin-bottom: var(--space-3);
  padding: 10px var(--space-3);
  background: var(--c-surface-2);
  border-radius: var(--radius-sm);
}

.fade-swap { animation: fade-in .28s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Detail hero ---------- */
.hero {
  position: relative;
  height: 300px;
  width: 100%;
  border-radius: 0;
  background: #fdf6ea url("/assets/img/detail.jpg") center / cover no-repeat;
}
.hero__top {
  position: absolute; top: calc(var(--safe-top) + 12px); left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between; z-index: 3;
}

.info-card {
  position: relative;
  margin: -34px var(--space-4) 0;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: var(--space-5);
  z-index: 2;
}
.info-card__theme { margin-bottom: 8px; }
.info-card__title { font-size: 1.45rem; font-weight: 800; }
.info-card__sub { color: var(--c-text-muted); margin-top: 6px; font-size: .95rem; }

/* stats row (time / items / category) */
.stats {
  display: flex; justify-content: space-around;
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--c-border);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.stat__icon { width: 26px; height: 26px; color: var(--c-primary); }
.stat__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat__value { font-weight: 800; font-size: .92rem; }
.stat__label { font-size: .72rem; color: var(--c-text-muted); font-weight: 700; }

/* ---------- Tabs (Ingredients / Directions / For children) ---------- */
.tabs {
  display: flex; gap: var(--space-4);
  border-bottom: 1px solid var(--c-border);
  margin: var(--space-5) 0 var(--space-4);
}
.tab-link {
  appearance: none; border: none; background: none; cursor: pointer;
  padding: 10px 2px; font-weight: 800; font-size: .95rem;
  color: var(--c-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab-link[aria-selected="true"] { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.panel[hidden] { display: none; }

/* ---------- Ingredients ---------- */
.ingredients { display: flex; flex-direction: column; gap: var(--space-2); }
.ingredients li {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px var(--space-4);
  background: var(--c-surface-2);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.ingredients li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-primary); flex: none;
}

/* ---------- Method steps ---------- */
.steps { display: flex; flex-direction: column; gap: var(--space-4); }
.steps li { display: flex; gap: var(--space-3); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-primary-tint); color: var(--c-primary-strong);
  font-weight: 800; font-size: .9rem;
  display: grid; place-items: center;
}
.steps { counter-reset: step; }

/* ---------- Child notes ---------- */
.child-notes { display: flex; flex-direction: column; gap: var(--space-3); }
.child-note {
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  background: var(--c-surface);
}
.child-note__age { font-weight: 800; color: var(--c-primary-strong); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.child-note__age .pill { background: var(--c-primary-tint); color: var(--c-primary-strong); border-radius: 999px; padding: 2px 8px; font-size: .72rem; }

/* ---------- Shopping list ---------- */
.shopping { display: flex; flex-direction: column; gap: var(--space-2); }
.shopping li {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
}
.shopping li::before {
  content: ""; width: 18px; height: 18px; border-radius: 6px;
  border: 2px solid var(--c-border-strong); flex: none;
}

.shopping--check li::before { display: none; }
.shopping--check li.is-excluded .shopping-check__text {
  text-decoration: line-through;
  color: var(--c-text-muted);
}
.shopping-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  cursor: pointer;
  font-weight: 600;
}
.shopping-check__input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--c-primary);
}
.shopping-check__text { flex: 1; }

.shopping-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.shopping-list-hint {
  color: var(--c-text-muted);
  font-size: .85rem;
  margin: 4px 0 0;
  font-weight: 500;
}

.meal-order-note {
  color: var(--c-text-muted);
  font-size: .92rem;
  margin: -4px 0 var(--space-3);
}

.leftovers-link {
  font-size: .82rem;
  color: var(--c-text-muted);
  margin: 0;
}

.section-head--tight { margin-bottom: var(--space-2); }

/* Grocery export sheet (Tesco, Sainsbury's) */
body.has-sheet { overflow: hidden; }

.grocery-sheet,
.tesco-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(20, 16, 12, .45);
}

.grocery-sheet__panel,
.tesco-sheet__panel {
  width: min(100%, 440px);
  max-height: min(82vh, 640px);
  overflow: auto;
  background: var(--c-surface);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-pop);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.grocery-sheet__head,
.tesco-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.grocery-sheet__title,
.tesco-sheet__title {
  font-size: 1.2rem;
  font-weight: 800;
}

.grocery-sheet__close,
.tesco-sheet__close {
  font-size: 1.5rem;
  line-height: 1;
}

.grocery-sheet__intro,
.grocery-sheet__note,
.tesco-sheet__intro,
.tesco-sheet__note {
  color: var(--c-text-muted);
  font-size: .92rem;
}

.grocery-sheet__note a,
.tesco-sheet__note a {
  color: #00539f;
  font-weight: 700;
}

.grocery-sheet__list,
.tesco-sheet__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.grocery-sheet__link,
.tesco-sheet__link {
  display: block;
  padding: 12px var(--space-4);
  background: var(--c-surface-2);
  border-radius: var(--radius-sm);
  color: #00539f;
  font-weight: 700;
  text-decoration: none;
}

.grocery-sheet__link:hover,
.grocery-sheet__link:focus-visible,
.tesco-sheet__link:hover,
.tesco-sheet__link:focus-visible {
  background: rgba(0, 83, 159, .08);
}

.block-section { margin-top: var(--space-6); }
.block-section > h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: var(--space-3); }

/* grouped shopping list */
.shopping-group { margin-bottom: var(--space-4); }
.shopping-group__head {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: var(--space-2);
}

/* set "about" meta list */
.meta-list { display: flex; flex-direction: column; gap: var(--space-3); }
.meta-list dt { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-muted); }
.meta-list dd { margin: 4px 0 0; font-weight: 600; }

/* avoid / info tags */
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.tag--avoid { color: var(--c-meat); background: var(--c-meat-bg); }

.note-text { color: var(--c-text-muted); font-size: .92rem; }

/* recipe timing + portion logic */
.timing-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-3) 0 var(--space-2); }
.timing { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--c-text-muted); }
.timing svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portion-logic {
  margin: var(--space-2) 0 var(--space-3);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
}
.portion-logic summary { font-weight: 800; cursor: pointer; color: var(--c-primary-strong); }
.portion-logic p { margin-top: var(--space-2); color: var(--c-text-muted); font-size: .9rem; }

/* grouped ingredients */
.ingredient-groups { display: flex; flex-direction: column; gap: var(--space-4); }
.ingredient-group__head {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: var(--space-2);
}

/* panel section heads (serving / nutrition) */
.panel-head { font-size: 1rem; font-weight: 800; margin: var(--space-4) 0 var(--space-2); }
.panel-head:first-child { margin-top: 0; }

/* serving guidance */
.serving-list { display: flex; flex-direction: column; gap: var(--space-2); }
.serving-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px var(--space-4); background: var(--c-surface-2); border-radius: var(--radius-sm);
}
.serving-item__who { font-weight: 800; font-size: .85rem; color: var(--c-primary-strong); }
.serving-item__detail { font-size: .9rem; }

/* nutrition table */
.nutrition__cap { font-size: .82rem; font-weight: 700; color: var(--c-text-muted); margin: var(--space-3) 0 var(--space-2); }
.nutrition { display: grid; grid-template-columns: auto 1fr; gap: 0; border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; }
.nutrition dt { padding: 9px var(--space-4); font-weight: 700; background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); }
.nutrition dd { margin: 0; padding: 9px var(--space-4); border-bottom: 1px solid var(--c-border); text-align: right; }
.nutrition dt:last-of-type, .nutrition dd:last-of-type { border-bottom: none; }

/* safety note */
.safety-note {
  border: 1px solid var(--c-leftover); background: var(--c-leftover-bg);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
}
.safety-note__head { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--c-leftover); margin-bottom: 4px; }
.safety-note__head svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.safety-note p { font-size: .9rem; }

/* child note bullet points */
.note-points { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.note-points li { display: flex; gap: var(--space-2); font-size: .92rem; }
.note-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); flex: none; margin-top: 8px; }

/* sibling recipes */
.siblings { display: flex; flex-direction: column; gap: var(--space-3); }

/* ---------- Empty / states ---------- */
.empty {
  text-align: center; padding: var(--space-7) var(--space-4);
  color: var(--c-text-muted);
}
.empty__emoji { font-size: 3rem; }
.empty h2 { font-size: 1.2rem; margin: var(--space-3) 0 6px; color: var(--c-text); }

.error-box {
  border: 1px solid var(--c-meat); background: var(--c-meat-bg); color: var(--c-meat);
  border-radius: var(--radius-sm); padding: var(--space-4); font-weight: 600;
}

/* ---------- SEO & crawl helpers ---------- */
.breadcrumbs {
  margin-bottom: var(--space-2);
}

.breadcrumbs + .section-head {
  margin-top: var(--space-2);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-text-muted);
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--c-text-soft);
}

.breadcrumbs__item a {
  color: var(--c-text-muted);
  text-decoration: none;
}

.breadcrumbs__item a:hover {
  color: var(--c-primary-strong);
}

.breadcrumbs__item span[aria-current] {
  color: var(--c-text);
}

.seo-jump {
  margin-bottom: var(--space-3);
}

.panel-head--seo {
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}

.seo-section h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-2) var(--space-4) 0;
  font-size: .75rem;
  font-weight: 700;
}

.site-footer-nav a {
  color: var(--c-text-soft);
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: var(--c-primary-strong);
}

.seo-page__lead {
  color: var(--c-text-muted);
  margin: var(--space-2) 0 var(--space-4);
  font-size: .92rem;
}

.seo-page__hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.seo-archive {
  display: grid;
  gap: var(--space-2);
}

.seo-archive a {
  font-weight: 700;
  color: var(--c-primary-strong);
}

.seo-prerender .seo-page {
  padding-bottom: var(--space-4);
}

.seo-prerender .seo-page section {
  margin-top: var(--space-5);
}

.seo-prerender .seo-page h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.seo-prerender .seo-page ul,
.seo-prerender .seo-page ol {
  padding-left: 1.2rem;
  color: var(--c-text-muted);
  font-size: .92rem;
}

.seo-prerender .seo-page li + li {
  margin-top: 4px;
}

/* ---------- About ---------- */
.about-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: var(--space-5);
  box-shadow: var(--shadow-card); margin-bottom: var(--space-4);
}
.about-card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.about-card p { color: var(--c-text-muted); font-size: .92rem; }
.about-card p + .about-card__list,
.about-card p + p { margin-top: var(--space-3); }
.about-card__list { margin-top: var(--space-3); }
.about-card__list li { color: var(--c-text-muted); }
.about-card__foot {
  margin-top: var(--space-3);
  font-size: .85rem;
  font-weight: 700;
  color: var(--c-text);
}
.about-card--disclaimer {
  border-color: var(--c-border-strong);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Desktop layout (mobile styles above are untouched)
   ========================================================= */
@media (min-width: 960px) {
  body {
    background:
      radial-gradient(ellipse 80% 50% at 10% -10%, rgba(244, 113, 94, .16), transparent 55%),
      radial-gradient(ellipse 70% 45% at 100% 0%, rgba(244, 183, 64, .14), transparent 50%),
      radial-gradient(ellipse 60% 40% at 80% 100%, rgba(244, 113, 94, .08), transparent 45%),
      linear-gradient(165deg, #f6f1ea 0%, #ebe4da 45%, #f3eee7 100%);
  }

  .app-frame {
    background: transparent;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 24px 16px;
    box-sizing: border-box;
  }

  .phone {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-areas: "nav main";
    width: min(1180px, calc(100vw - 48px));
    max-width: 1180px;
    margin: 0;
    flex: 0 0 auto;
    min-height: calc(100vh - 48px - 40px);
    min-height: calc(100dvh - 48px - 40px);
    height: calc(100vh - 48px - 40px);
    height: calc(100dvh - 48px - 40px);
    border-radius: 28px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .65) inset,
      0 24px 60px rgba(60, 40, 30, .12),
      0 4px 16px rgba(60, 40, 30, .06);
    border: 1px solid rgba(228, 224, 216, .9);
    overflow: hidden;
  }

  .site-copyright {
    width: min(1180px, calc(100vw - 48px));
    max-width: 1180px;
    margin-top: 14px;
    padding: 0 8px 4px;
    background: transparent;
    color: rgba(60, 40, 30, .45);
  }

  .tab-bar {
    grid-area: nav;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    width: auto;
    padding: var(--space-5) var(--space-3) var(--space-4);
    padding-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: none;
    border-right: 1px solid var(--c-border);
    background:
      linear-gradient(180deg, #fffdfb 0%, #faf7f3 100%);
    backdrop-filter: none;
  }

  .tab-bar::before {
    content: "Three Meals";
    display: block;
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--c-primary);
    line-height: 1;
    padding: 4px 14px 18px;
    margin-bottom: 4px;
  }

  .tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 800;
  }

  .tab:hover {
    background: var(--c-primary-tint);
    color: var(--c-primary-strong);
  }

  .tab[aria-current="page"] {
    background: var(--c-primary-tint);
    color: var(--c-primary);
    box-shadow: inset 0 0 0 1px rgba(244, 113, 94, .18);
  }

  .tab__icon {
    width: 22px;
    height: 22px;
  }

  .screen {
    grid-area: main;
    overflow-y: auto;
    height: 100%;
    padding: var(--space-5) var(--space-6) var(--space-6);
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 113, 94, .45) transparent;
    scrollbar-gutter: stable;
  }

  .screen::-webkit-scrollbar {
    width: 10px;
  }

  .screen::-webkit-scrollbar-track {
    background: transparent;
    margin: 12px 0 16px;
  }

  .screen::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(244, 113, 94, .42), rgba(226, 84, 63, .55));
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
    min-height: 40px;
  }

  .screen::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(244, 113, 94, .62), rgba(226, 84, 63, .78));
    background-clip: padding-box;
    border: 3px solid transparent;
  }

  .screen::-webkit-scrollbar-corner {
    background: transparent;
  }

  .screen--bleed {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .screen--bleed .screen__pad {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
    padding-top: var(--space-5);
  }

  .screen--bleed .info-card {
    margin-left: var(--space-6);
    margin-right: var(--space-6);
  }

  .app-bar .wordmark {
    display: none;
  }

  /* Home */
  .home-hero {
    margin: 0 0 var(--space-5);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }

  .home-hero__media,
  .home-hero__media img {
    min-height: 280px;
  }

  .home-hero__title {
    font-size: 2.1rem;
    max-width: 16ch;
  }

  .home-hero__text {
    font-size: .95rem;
    max-width: 42em;
  }

  .home-hero__overlay {
    padding: var(--space-6);
  }

  .featured .hero-card {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(260px, .9fr);
    align-items: stretch;
  }

  .hero-card__media {
    height: 100%;
    min-height: 260px;
  }

  .hero-card__body {
    justify-content: center;
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .hero-card__title {
    font-size: 1.55rem;
  }

  .home-tag-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .home-tag-tile {
    transition: transform .15s ease, box-shadow .15s ease;
  }

  .home-tag-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
  }

  .search {
    max-width: 420px;
  }

  .household-section {
    max-width: 820px;
  }

  /* Sets browse */
  .set-browse-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .set-browse-card {
    transition: transform .15s ease, box-shadow .15s ease;
  }

  .set-browse-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pop);
  }

  /* Feed cards on set/recipe pages */
  .screen__pad > .feed-list,
  .block-section .feed-list.siblings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .feed-card {
    transition: transform .15s ease, box-shadow .15s ease;
  }

  .feed-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pop);
  }

  /* Detail pages */
  .hero {
    height: 360px;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .info-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .screen--bleed .info-card {
    max-width: none;
  }

  .screen__pad {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  .screen--bleed .screen__pad {
    max-width: none;
  }

  .block-section,
  .about-card {
    max-width: 820px;
  }

  .ingredient-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

@media (min-width: 1280px) {
  .phone {
    width: min(1280px, calc(100vw - 64px));
    max-width: 1280px;
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .site-copyright {
    width: min(1280px, calc(100vw - 64px));
    max-width: 1280px;
  }

  .home-tag-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-hero__media,
  .home-hero__media img {
    min-height: 320px;
  }

  .set-browse-list {
    gap: var(--space-5) var(--space-5);
  }
}

@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  .home-tag-tile,
  .set-browse-card,
  .feed-card {
    transition: none;
  }

  .home-tag-tile:hover,
  .set-browse-card:hover,
  .feed-card:hover {
    transform: none;
  }
}
