/* ================================================================
   Dinner Caddy — design system
   charcoal #2B2622 · mustard #F2B83B · ketchup #D9402A
   leaf #3D7A4E · paper-plate white #FBFAF7
   ================================================================ */

:root {
  --charcoal: #2b2622;
  --charcoal-soft: #5c534b;
  --mustard: #f2b83b;
  --mustard-deep: #d99a10;
  --ketchup: #d9402a;
  --leaf: #3d7a4e;
  --paper: #fbfaf7;
  --paper-shade: #f1ede4;
  --receipt: #fffdf6;
  --line: #e3ddd0;

  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Karla", "Helvetica Neue", sans-serif;
  --mono: "Spline Sans Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--paper);
}

/* ---------- signature: gingham tablecloth band ---------- */
.gingham {
  height: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(217, 64, 42, 0.55) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(0deg, rgba(217, 64, 42, 0.55) 0 14px, transparent 14px 28px),
    #fff;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1;
}

.brand-basket { font-size: 1.5rem; flex-shrink: 0; }

.brand-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--charcoal-soft);
  letter-spacing: 0.06em;
  line-height: 1;
}

.header-recommends-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.2;
  transition: opacity 0.15s;
}
.header-recommends-link:hover { opacity: 0.75; }
.header-recommends-top {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.header-recommends-bottom {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ketchup);
  letter-spacing: 0.01em;
}

/* ---------- landing fork ---------- */
.fork-hero {
  padding-top: 72px;
  padding-bottom: 96px;
  text-align: center;
}

.fork-hero .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
}

.fork-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 860px;
  margin: 48px auto 0;
}

.fork-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 32px 30px;
  background: #fff;
  border: 2px solid var(--charcoal);
  border-radius: 18px;
  text-align: left;
  text-decoration: none;
  color: var(--charcoal);
  box-shadow: 6px 6px 0 var(--paper-shade);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fork-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--mustard);
}

.fork-card:focus-visible {
  outline: 3px solid var(--ketchup);
  outline-offset: 3px;
}

.fork-emoji { font-size: 2rem; }

.fork-card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.fork-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
}

.fork-card .fork-cta {
  margin-top: 8px;
  font-weight: 700;
  color: var(--ketchup);
}

/* ---------- path sections ---------- */
.path-section {
  padding-top: 40px;
  padding-bottom: 96px;
}

.path-back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  text-decoration: none;
}

.path-back:hover { color: var(--ketchup); }

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 56px;
  align-items: start;
}

/* ---------- plan column ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.lede {
  font-size: 1.1rem;
  color: var(--charcoal-soft);
  max-width: 46ch;
  margin: 0 0 40px;
}

.field-group {
  border: none;
  margin: 0 0 36px;
  padding: 0;
}

.field-group legend {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 0;
  margin-bottom: 16px;
}

.field-group legend::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 6px;
  background: var(--mustard);
  border-radius: 2px;
}

/* counters */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px 24px;
}

.counter label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.stepper {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--charcoal);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
}

.stepper input {
  width: 64px;
  border: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.step {
  width: 42px;
  border: none;
  background: var(--paper-shade);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.12s ease;
}

.step:hover { background: var(--mustard); }
.step:active { background: var(--mustard-deep); }

.hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

/* segmented control */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment span {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.segment input:checked + span {
  background: var(--charcoal);
  color: var(--mustard);
}

.segment input:focus-visible + span {
  outline: 3px solid var(--ketchup);
  outline-offset: 2px;
}

.segment span:hover { transform: translateY(-1px); }

/* eater/drinker levels + drink preference rows */
.levels-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 32px;
}

.levels-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* menu row */
.menu-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.menu-field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.menu-field output {
  font-family: var(--mono);
  color: var(--ketchup);
}

.menu-field select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--charcoal);
  border-radius: 12px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
}

/* range slider */
input[type="range"] {
  width: 100%;
  margin: 14px 0 4px;
  accent-color: var(--ketchup);
}

/* focus */
:focus-visible {
  outline: 3px solid var(--ketchup);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- menu ideas (Path B) ---------- */
.menu-ideas {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}

.menu-ideas-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.menu-ideas-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.menu-ideas-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 6px;
  background: var(--mustard);
  border-radius: 2px;
}

.ideas-btn {
  padding: 10px 20px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--mustard);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.ideas-btn:hover { background: var(--mustard-deep); transform: translateY(-1px); }
.ideas-btn:disabled { background: var(--paper-shade); color: var(--charcoal-soft); cursor: wait; transform: none; }

.menu-cards {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.menu-card {
  padding: 20px 22px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.12s ease;
}

.menu-card.selected {
  border-color: var(--ketchup);
  box-shadow: 4px 4px 0 rgba(217, 64, 42, 0.15);
}

.menu-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.menu-card .menu-desc {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}

.menu-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.menu-dishes li {
  padding: 4px 10px;
  background: var(--paper-shade);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.menu-fit {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--leaf);
}

.use-menu-btn {
  padding: 9px 18px;
  border: 2px solid var(--charcoal);
  border-radius: 10px;
  background: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.12s ease;
}

.use-menu-btn:hover { background: var(--paper-shade); }

.menu-card.selected .use-menu-btn {
  background: var(--ketchup);
  border-color: var(--ketchup);
  color: #fff;
}

/* ---------- receipt column ---------- */
.receipt-col {
  position: sticky;
  top: 24px;
}

.receipt {
  background: var(--receipt);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 28px 26px 34px;
  box-shadow: 0 12px 32px rgba(43, 38, 34, 0.12);
  position: relative;
  font-family: var(--mono);
}

/* torn zig-zag bottom edge */
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  background: linear-gradient(-45deg, transparent 8px, var(--receipt) 0) 0 0 / 16px 100%,
              linear-gradient(45deg, transparent 8px, var(--receipt) 0) 8px 0 / 16px 100%;
  background-repeat: repeat-x;
  filter: drop-shadow(0 6px 6px rgba(43, 38, 34, 0.08));
}

.receipt-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.receipt-sub {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.receipt-section {
  margin-bottom: 14px;
}

.receipt-section h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--leaf);
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  padding: 3px 0;
}

.receipt-line .item { color: var(--charcoal); }
.receipt-line .qty {
  white-space: nowrap;
  font-weight: 600;
  color: var(--charcoal);
}

.receipt-totals {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--charcoal);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.total-stat .num {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ketchup);
}

.total-stat .lbl {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-soft);
}

/* actions */
.receipt-actions { margin-top: 24px; }

.instacart-btn {
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 14px;
  background: var(--leaf);
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.instacart-btn:hover { background: #2f6340; transform: translateY(-1px); }
.instacart-btn:disabled { background: var(--charcoal-soft); cursor: wait; transform: none; }

.cart-glyph { margin-right: 6px; }

.receipt-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  min-height: 1.2em;
}

.receipt-note.error { color: var(--ketchup); }
.receipt-note.ok { color: var(--leaf); }

/* "Not configured yet" — needs to be unmissable, not a quiet grey line */
.receipt-note.notice {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(242, 184, 59, 0.22);
  border-left: 4px solid var(--mustard);
  border-radius: 0 10px 10px 0;
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 500;
}


/* ---------- recipe scaler ---------- */
.display-sm {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.scaler-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.scaler-input label,
.counter > label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.scaler-input textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--charcoal);
  border-radius: 14px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--charcoal);
  resize: vertical;
}

.scaler-controls {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.scale-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  background: var(--ketchup);
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.scale-btn:hover { background: #b8322f; }
.scale-btn:disabled { background: var(--charcoal-soft); cursor: wait; transform: none; }

/* output card */
.scaler-output {
  background: var(--receipt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
  min-height: 320px;
  box-shadow: 0 12px 32px rgba(43, 38, 34, 0.08);
}

.scaler-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 280px;
  text-align: center;
  color: var(--charcoal-soft);
}

.scaler-empty span { font-size: 2.4rem; }
.scaler-empty p { max-width: 34ch; margin: 0; font-size: 0.95rem; }

.scaled-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.scaled-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  margin: 0 0 18px;
}

.scaled-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.scaled-line .was {
  color: var(--charcoal-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(217, 64, 42, 0.5);
}

.scaled-line .now { font-weight: 700; }

.scaled-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--leaf);
  margin: 2px 0 0;
}

.scaled-steps {
  margin-top: 20px;
}

.scaled-steps h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scaled-steps ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
}

.scaled-steps li + li { margin-top: 6px; }

.scaler-shop { margin-top: 18px; }

.scaled-adjustments {
  margin: 20px 0 0;
  padding: 14px 16px;
  background: rgba(242, 184, 59, 0.18);
  border-left: 4px solid var(--mustard);
  border-radius: 0 10px 10px 0;
}

.scaled-adjustments h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scaled-adjustments ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

.scaled-adjustments li + li { margin-top: 6px; }

@media (max-width: 880px) {
  .scaler-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: var(--paper-shade);
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  max-width: 70ch;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .brand-tag { display: none; }
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 36px;
  }

  .receipt-col { position: static; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ================================================================
   Wizard / chat UI
   ================================================================ */

/* ── Chat view ── */
#view-chat {
  min-height: calc(100vh - 120px);
}

.chat-outer {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  padding-top: 48px;
  padding-bottom: 64px;
  gap: 0;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-row {
  display: flex;
}

.chat-row--app  { justify-content: flex-start; }
.chat-row--user { justify-content: flex-end; }

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.45;
}

.chat-bubble--app {
  background: var(--paper-shade);
  border-bottom-left-radius: 4px;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 1.1rem;
}

.chat-bubble--user {
  background: var(--mustard);
  border-bottom-right-radius: 4px;
  color: var(--charcoal);
  font-weight: 600;
}

/* ── Response area ── */
.chat-response {
  padding-top: 20px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Chips ── */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 16px;
  border: 2px solid var(--charcoal-soft);
  border-radius: 100px;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

@media (hover: hover) {
  .chip:hover {
    border-color: var(--mustard-deep);
    background: var(--mustard);
  }
}

.chip--suggestion {
  background: var(--paper-shade);
  font-weight: 500;
  font-size: 0.9rem;
}

.chip--selected {
  border-color: var(--ketchup);
  background: var(--ketchup);
  color: #fff;
}

.chip--selected:hover {
  border-color: var(--ketchup);
  background: var(--ketchup);
  color: #fff;
}

/* ── Custom text row ── */
.chip-custom-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.chat-text-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--paper);
  outline: none;
  transition: border-color 0.15s;
}

.chat-text-input:focus {
  border-color: var(--mustard-deep);
  caret-color: var(--ketchup);
}

.chat-submit-btn {
  padding: 10px 20px;
  background: var(--charcoal);
  color: var(--paper);
  border: none;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.chat-submit-btn:hover { background: var(--ketchup); }

.chip-group-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.chip-group-wrap .chip-group {
  flex: 1;
  margin-bottom: 0;
}

.more-ideas-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  opacity: 0.55;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.more-ideas-btn:hover { opacity: 1; text-decoration: underline; }

.help-me-decide-link {
  display: block;
  background: none;
  border: none;
  padding: 6px 0 0;
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  opacity: 0.5;
  cursor: pointer;
  text-align: left;
}
.help-me-decide-link:hover { opacity: 0.9; text-decoration: underline; }

.vibe-panel {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-recipe-textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  font-family: var(--body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.vibe-label {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.vibe-hint {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--charcoal-soft);
  opacity: 0.6;
}

.wizard-back-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  opacity: 0.55;
  cursor: pointer;
  margin-right: auto;
}
.wizard-back-btn:hover { opacity: 1; text-decoration: underline; }

.wizard-progress {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 14px;
}

.wizard-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s, transform 0.2s;
}

.wizard-dot--done {
  background: var(--charcoal-soft);
  opacity: 0.4;
}

.wizard-dot--active {
  background: var(--mustard-deep);
  transform: scale(1.25);
}

/* ── Stepper ── */
.stepper-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.stepper-btn:hover { border-color: var(--mustard); background: var(--mustard); }

.stepper-value {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  min-width: 3ch;
  text-align: center;
}

/* ── Loading ── */
#view-loading {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mustard);
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.loading-text {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin: 0;
}

/* Dishes stream in one at a time while the menu generates. Empty until the
   first one lands, so it takes up no space during the initial wait. */
.loading-dishes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  max-width: 34ch;
}

.loading-dishes li {
  font-size: 0.95rem;
  color: var(--charcoal);
  animation: dish-in 0.3s ease-out both;
}

.loading-dishes li::before {
  content: '✓';
  color: var(--leaf);
  margin-right: 8px;
}

@keyframes dish-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dishes li { animation: none; }
}

.search-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0 8px;
}

.loading-dots--sm span {
  width: 8px;
  height: 8px;
}

.search-loading-text {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  margin: 0;
  opacity: 0.8;
}

/* ── Results ── */
.results-wrap {
  padding-top: 48px;
  padding-bottom: 80px;
}

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.results-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 4px;
}

.results-serves {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.serves-label {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

.serves-adj {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--sage);
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.serves-adj:hover {
  background: var(--sage-pale);
  border-color: var(--sage);
}

.serves-regen-btn {
  background: var(--ketchup);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 4px 14px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: opacity 0.15s;
}

.serves-regen-btn:hover {
  opacity: 0.85;
}

.ghost-btn {
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.ghost-btn:hover { border-color: var(--charcoal); color: var(--charcoal); }

/* ── Step flow (menu → shop → prep) ── */
.step-section {
  max-width: 680px;
  margin: 0 auto 44px;
  /* jumps from the sticky nav land below it, not under it */
  scroll-margin-top: 68px;
}

.step-heading {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0 0 16px;
}

.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--mustard-deep);
}

.step-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0;
}

.step-sub {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin: 3px 0 0;
}

.step-nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  gap: 6px;
  width: max-content;
  margin: 0 auto 28px;
  background: var(--receipt);
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 6px 18px rgba(43, 38, 34, 0.12);
}

.step-nav-btn {
  border: none;
  background: none;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal-soft);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.step-nav-btn--on {
  background: var(--mustard);
  color: var(--charcoal);
}

.step-cta {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.step-cta:hover { background: var(--mustard-deep); }
.step-cta:active { transform: scale(0.99); }

.prep-rack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.rack-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: 2px solid var(--charcoal);
  border-radius: 14px;
  background: var(--receipt);
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.rack-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(43,38,34,0.12); }

.rack-label small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin-top: 2px;
}

.rack-arrow { color: var(--charcoal-soft); }

/* Equipment rows in the cart */
.equip-link {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.equip-link:hover { color: var(--ketchup); border-bottom-color: var(--ketchup); }

.equip-opt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 1px 7px;
}

.equip-arrow { color: var(--charcoal-soft); font-size: 0.8rem; }

.shop-affiliate-note {
  font-size: 0.72rem;
  color: var(--charcoal-soft);
  opacity: 0.8;
  margin: 12px 0 0;
}

/* ── Course grouping ──
   Big menus ran together; each course now reads as its own chapter. */
.course-section {
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.course-section:first-child { border-top: none; padding-top: 0; }

.course-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0 0 8px 4px;
  opacity: 0.6;
}

.course-section + .course-section {
  margin-top: 24px;
}

/* ── Dish cards ── */
.dish-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--paper);
}

.dish-name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.dish-body {
  display: flex;
  flex-direction: column;
}

.dish-desc {
  margin: 0 0 16px;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}

.dish-ingredients {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dish-ingredients li {
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.dish-ingredients li:last-child { border-bottom: none; padding-bottom: 0; }

.ing-amount {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ketchup);
  font-weight: 600;
  margin-right: 6px;
}

.dish-tip {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  background: var(--paper-shade);
  padding: 10px 14px;
  border-radius: 8px;
}

.instructions-toggle {
  margin-top: 14px;
  background: none;
  border: none;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ketchup);
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  text-align: left;
}

.instructions-toggle:hover { text-decoration: underline; }

.dish-instructions {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dish-instructions li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.results-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-start;
}

/* ── Dish card header / actions ── */
.dish-card--hidden {
  opacity: 0.5;
}

.dish-card--hidden .dish-name {
  text-decoration: line-through;
  color: var(--charcoal-soft);
}

.dish-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dish-header .dish-name {
  margin: 0;
}

.dish-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.dish-action-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--charcoal-soft);
}

.dish-action-btn:hover { border-color: var(--charcoal); color: var(--charcoal); background: var(--paper-shade); }
.dish-action-btn:disabled { opacity: 0.4; cursor: default; }

.dish-hidden-msg {
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  font-style: italic;
  margin: 4px 0 0;
}

/* ── Swap alternatives panel ── */
.alt-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.alt-loading, .alt-error {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin: 0;
}

.add-course-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: transparent;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal-soft);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  margin-bottom: 20px;
}

.add-course-btn:hover {
  border-color: var(--mustard);
  color: var(--charcoal);
  background: rgba(242, 184, 59, 0.08);
}

.add-course-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--paper);
}

.swap-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.swap-hint-input {
  flex: 1;
  font-size: 0.9rem;
  padding: 9px 12px;
}

.swap-input-row .chat-submit-btn {
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 9px 14px;
}

.alt-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  margin: 0 0 10px;
}

.alt-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.alt-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  font-family: var(--body);
  transition: border-color 0.15s, background 0.15s;
}

.alt-option:hover { border-color: var(--mustard); background: #fffbf0; }

.alt-option--selected {
  border-color: var(--leaf);
  background: #f0f5ef;
}
.alt-option--selected:hover { border-color: var(--leaf); background: #e8f0e6; }
.alt-option--selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--leaf);
}
.alt-option { position: relative; }

.alt-add-btn {
  width: 100%;
  margin: 4px 0 8px;
}

.alt-option strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}

.alt-option span {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
}

.alt-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.alt-try-again {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ketchup);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alt-try-again:hover { opacity: 0.75; }

.alt-cancel {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
}

/* ── Shopping list rows ──
   Prose with a hanging indent — names align on one clean left edge, qty/size
   trail dimmed. (A 3-part flex row wrapped each part independently on mobile
   and big lists became a ragged waterfall.) */
.shop-item-label {
  display: block;
  position: relative;
  padding-left: 24px;
  cursor: pointer;
  line-height: 1.45;
}

.shop-name { font-weight: 500; }

.shop-checkbox {
  accent-color: var(--leaf);
  width: 14px;
  height: 14px;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 4px;
}

.item-done .shop-qty,
.item-done label {
  color: var(--charcoal-soft);
  text-decoration: line-through;
  opacity: 0.5;
}

.shopping-sub {
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin: -4px 0 10px;
}

.shopping-empty {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  font-style: italic;
  margin: 0;
}

/* ── Shopping card ── */
.shopping-card {
  border: 2px solid var(--charcoal);
  border-radius: 16px;
  padding: 24px;
  background: var(--receipt);
}

.shopping-title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collapse-shopping-btn {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.02em;
}
.collapse-shopping-btn:hover { color: var(--ink); }

.shopping-category { margin-bottom: 16px; }

.shopping-cat-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0 0 6px;
}

/* Pantry basics sit at the bottom, visually quieter — they start unchecked and
   are there to jog your memory, not to pad the shopping list. */
.shopping-category--pantry {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.shopping-cat-note {
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin: -2px 0 8px;
  font-style: italic;
}

.shopping-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shopping-items li { font-size: 0.9rem; }

.shop-qty {
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 600;
  color: var(--ketchup);
  white-space: nowrap;
}

.shop-item-size {
  font-size: 0.78em;
  font-style: italic;
  color: var(--charcoal-soft);
  opacity: 0.85;
  margin-left: 5px;
}

.shopping-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.shop-row-primary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.shop-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-soft);
  margin: 4px 0 0;
}

.shop-row-affiliate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-email-row {
  margin: 0;
  text-align: center;
}

.share-btn {
  padding: 11px 16px;
  border: 2px solid var(--charcoal);
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.share-btn:hover { opacity: 0.85; }

/* ---------- share popover ---------- */
.share-popover {
  position: absolute;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(43,38,34,0.14);
  padding: 8px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.1s;
}

.share-popover-item:hover { background: var(--paper-shade); }
.share-popover-item .share-icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }

.shop-retailers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.retailer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--body);
  text-align: left;
  transition: opacity 0.15s, transform 0.12s;
}

.retailer-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.retailer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.retailer-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.retailer-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.retailer-sub {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.2;
}

.retailer-arrow {
  font-size: 1rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.retailer-btn--amazon {
  background: #232F3E;
  color: #fff;
}
.retailer-btn--amazon .retailer-logo { background: rgba(255,153,0,0.15); }

.retailer-btn--walmart {
  background: #0071CE;
  color: #fff;
}
.retailer-btn--walmart .retailer-logo { background: rgba(255,255,255,0.12); }

.retailer-btn--instacart {
  background: #43B02A;
  color: #fff;
}
.retailer-btn--instacart .retailer-logo { background: rgba(255,255,255,0.15); }

.email-list-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  cursor: pointer;
  padding: 8px 16px;
  width: 100%;
  transition: border-color 0.15s, color 0.15s;
}

.email-list-btn:hover { border-color: var(--charcoal-soft); color: var(--charcoal); }

.email-capture-modal {
  background: var(--paper-shade);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.email-capture-label {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.email-capture-row {
  display: flex;
  gap: 8px;
}

.email-capture-input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.9rem;
  padding: 8px 12px;
  color: var(--charcoal);
  background: var(--paper);
  outline: none;
  transition: border-color 0.15s;
}
.email-capture-input:focus { border-color: var(--mustard-deep); }

.email-capture-send {
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.email-capture-send:hover { opacity: 0.82; }

.email-capture-optin {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  cursor: pointer;
  line-height: 1.4;
}
.email-capture-optin input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--mustard-deep);
  flex-shrink: 0;
}

.copy-btn {
  padding: 11px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.copy-btn:hover { border-color: var(--charcoal); background: var(--paper-shade); }

.instacart-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--leaf);
  color: #fff;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.instacart-btn:hover { opacity: 0.85; }
.instacart-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Party notes ── */
.results-notes {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.notes-heading {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.notes-list {
  padding: 0 0 0 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-list li { font-size: 0.95rem; color: var(--charcoal-soft); }

.notes-cta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.notes-cta-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}
.notes-cta-btn {
  background: none;
  border: 1.5px solid var(--charcoal-soft);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.notes-cta-btn:hover { opacity: 1; border-color: var(--charcoal); }

.notes-recommends-nudge {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--charcoal-soft);
}
.notes-recommends-link {
  color: var(--ketchup);
  text-decoration: none;
  font-weight: 600;
}
.notes-recommends-link:hover { text-decoration: underline; }

/* ── Resume banner ─────────────────────────────────────────────────────── */
.resume-banner {
  padding: 12px 0 24px;
}
.resume-banner-inner {
  background: var(--paper-shade);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px 28px;
}
.resume-banner-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 6px;
}
.resume-banner-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 20px;
  line-height: 1.3;
}
.resume-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.resume-btn-primary {
  background: var(--leaf);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.resume-btn-primary:hover { opacity: 0.88; }
.resume-btn-ghost {
  background: none;
  border: none;
  color: var(--charcoal-soft);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.resume-btn-ghost:hover { color: var(--charcoal); }

.partiful-card {
  margin: 24px 0;
}

.partiful-card-inner {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 18px;
  background: var(--paper-shade);
}

.partiful-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.partiful-card-logo {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
}

.partiful-card-title {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--charcoal);
}

.partiful-card-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

.partiful-copy-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--charcoal);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 14px;
  user-select: all;
}

.partiful-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.partiful-copy-btn {
  padding: 8px 18px;
  background: var(--charcoal);
  color: var(--paper);
  border: none;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.partiful-copy-btn:hover { background: var(--charcoal-soft); }

.partiful-copy-btn--copied {
  background: var(--leaf);
}

.partiful-open-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ketchup);
  text-decoration: none;
}

.partiful-open-btn:hover { text-decoration: underline; }

.start-over-footer {
  text-align: center;
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.start-over-text {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin: 0 0 12px;
}
.start-over-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.875rem;
  color: var(--charcoal-soft);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.start-over-btn:hover { border-color: var(--charcoal); color: var(--charcoal); }

.print-recipes-link {
  display: block;
  margin-top: 12px;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  opacity: 0.5;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.print-recipes-link:hover { opacity: 1; text-decoration: underline; }

/* ── Game plan ── */
.game-plan-section {
  margin-top: 40px;
}

.game-plan-prompt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 20px;
}

.game-plan-prompt-label {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.game-plan-prompt-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.game-plan-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.game-plan-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-soft);
}

.game-plan-text-input {
  width: 100%;
  box-sizing: border-box;
}

.game-plan-constraints {
  resize: vertical;
  min-height: 60px;
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.game-plan-picker-row {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}

.game-plan-picker-row .game-plan-field {
  flex: 1;
  margin-bottom: 0;
}

.game-plan-picker {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--paper);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.game-plan-picker:focus {
  outline: none;
  border-color: var(--charcoal-soft);
}

@media (max-width: 480px) {
  .game-plan-picker-row {
    flex-direction: column;
    gap: 14px;
  }
}

.game-plan-prompt-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.game-plan-header {
  margin-bottom: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}


.game-plan-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.game-plan-subtitle {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  margin: 0;
  opacity: 0.7;
}

.game-plan-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.game-plan-action-btn {
  font-size: 0.8rem;
  padding: 5px 12px;
}

.game-plan-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.game-plan-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 6px 18px;
  align-items: start;
}

.game-plan-block-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ketchup);
  margin: 2px 0 0;
  text-align: right;
  border-right: 2px solid var(--mustard);
  padding-right: 14px;
  align-self: stretch;
}

@media (max-width: 600px) {
  .game-plan-block { grid-template-columns: 1fr; gap: 8px; }
  .game-plan-block-label { text-align: left; border-right: none; border-bottom: 1.5px solid var(--mustard); padding: 0 0 6px; }
}

.game-plan-tasks {
  padding: 0 0 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-plan-tasks li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--charcoal-soft);
}

/* ── Notes sub-label ── */
.notes-sub {
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  opacity: 0.6;
  margin: -10px 0 14px;
  font-style: italic;
}

/* ── Dishes empty state ── */
.dishes-empty {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  font-style: italic;
  padding: 24px 0;
}

/* ── Undo toast ── */
.pp-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--charcoal);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 24px rgba(43,38,34,0.28);
  animation: toast-in 0.2s ease;
  white-space: nowrap;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pp-toast-action {
  background: none;
  border: none;
  color: var(--mustard);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pp-toast-action:hover { opacity: 0.8; }

/* ── Game plan flash ── */
@keyframes game-plan-flash {
  0%   { background: rgba(242, 184, 59, 0.25); }
  100% { background: transparent; }
}

.game-plan-section--flash {
  animation: game-plan-flash 1.2s ease-out;
  border-radius: 16px;
}

/* Print handled via dedicated HTML windows — no main-page print CSS needed */

/* ── Responsive ── */
@media (max-width: 880px) {
  .step-nav { top: 6px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }

  /* Header */
  .header-row { padding-top: 14px; padding-bottom: 14px; }

  /* Chat */
  .chat-outer { padding-top: 24px; padding-bottom: 120px; }
  .chat-bubble { max-width: 88%; }
  .chat-bubble--app { font-size: 1rem; }

  /* Chips */
  .chip { padding: 8px 14px; font-size: 0.9rem; }

  /* Results header */
  .results-wrap { padding-top: 24px; padding-bottom: 120px; }
  .results-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  .results-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .results-header-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }
  .results-header-actions .ghost-btn {
    flex: 1;
    text-align: center;
  }
  #start-over-btn {
    flex: none;
    width: 100%;
    border: none;
    background: none;
    font-size: 0.8rem;
    opacity: 0.45;
    padding: 2px 0;
  }

  /* Dish cards */
  .dish-card { padding: 16px 18px; margin-bottom: 12px; }
  .dish-header { flex-wrap: wrap; gap: 8px; }
  .dish-name { font-size: 1.1rem; }
  .dish-action-btn { font-size: 0.75rem; padding: 4px 8px; }

  .shopping-card {
    position: static;
  }

  /* Mobile sticky shopping bar */
  .mobile-shop-bar {
    display: flex !important;
  }
  /* Let [hidden] still hide it even on mobile */
  .mobile-shop-bar[hidden] {
    display: none !important;
  }
}

/* Mobile sticky bar — hidden on desktop */
.mobile-shop-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--charcoal);
  padding: 12px 16px;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(43,38,34,0.2);
}

/* One primary action + two quiet utilities. Four equal buttons left ~86px each
   at 375px, and Amazon orange next to Walmart blue fought the brand. */
.mobile-bar-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  border: none;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-bar-primary:hover,
.mobile-bar-primary:active { background: var(--mustard-deep); }

.mobile-bar-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-bar-icon:hover,
.mobile-bar-icon:active { background: rgba(255,255,255,0.14); }
.mobile-bar-icon:disabled { opacity: 0.5; }

/* ── Shop Panel (bottom sheet) ─────────────────────────────────────────── */
/* Shop dialog — uses native <dialog> for reliable mobile display */
.shop-dialog {
  border: none;
  padding: 0;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 100%;
  height: 75vh;
  max-height: 75vh;
  margin: auto auto 0;
  background: var(--paper);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.shop-dialog::backdrop {
  background: rgba(0,0,0,0.45);
}

/* Quick picks in the "add food or drinks" panel */
.add-course-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
}
.add-course-pick {
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.add-course-pick:hover {
  border-color: var(--mustard);
  background: var(--mustard);
}

/* Retailer chooser — opened from the mobile bar's "Shop list". Rows are cloned
   .retailer-btn nodes, so they inherit the desktop card's look. */
.retailer-sheet {
  border: none;
  padding: 0;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 100%;
  margin: auto auto 0;
  background: var(--paper);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
  overflow: hidden;
}
.retailer-sheet::backdrop { background: rgba(0,0,0,0.45); }
.retailer-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
}
.retailer-sheet-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
}
.retailer-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--paper-shade);
  color: var(--charcoal-soft);
  font-size: 0.85rem;
  cursor: pointer;
}
.retailer-sheet-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 700px) {
  .retailer-sheet {
    border-radius: 16px;
    width: 420px;
    max-width: 420px;
    margin: auto;
  }
}
@media (min-width: 700px) {
  .shop-dialog {
    border-radius: 16px;
    width: 420px;
    max-width: 420px;
    height: auto;
    max-height: 70vh;
    margin: auto;
  }
}

.shop-panel-header {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.shop-panel-title { display: flex; flex-direction: column; gap: 2px; }
.shop-panel-logo { font-family: var(--display); font-size: 1.05rem; font-weight: 800; }
.shop-panel-logo--amazon { color: #e47911; }
.shop-panel-logo--walmart { color: #0071ce; }
.shop-panel-logo--instacart { color: #43b02a; }
.shop-panel-subtitle { font-size: 0.75rem; color: var(--ink-muted); }
.shop-panel-close {
  background: none; border: none; cursor: pointer; font-size: 1rem;
  color: var(--ink-muted); padding: 4px 8px; border-radius: 6px;
}
.shop-panel-close:hover { background: var(--paper-shade); }

.shop-panel-list {
  overflow-y: auto; padding: 8px 0 env(safe-area-inset-bottom, 16px);
  flex: 1;
}
/* Section headers so a 30-item list is scannable — they stick to the top of
   the scroll area so you always know which aisle you're in. */
.shop-panel-section-name {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 7px 20px;
  background: var(--paper-shade);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.shop-panel-section-count {
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.7;
}

.shop-panel-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); gap: 12px;
  transition: background 0.1s;
}
.shop-panel-item:last-child { border-bottom: none; }
.shop-panel-item:hover, .shop-panel-item:active { background: var(--paper-shade); }
.shop-panel-item-name { font-size: 0.95rem; flex: 1; }
.shop-panel-item-arrow { color: var(--ink-muted); font-size: 0.85rem; flex-shrink: 0; }

/* ── Shop panel progress + check ───────────────────────────────────────── */
.shop-panel-progress {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted, #888);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.shop-panel-item {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.shop-panel-item:last-child { border-bottom: none; }

.shop-panel-check {
  flex-shrink: 0;
  width: 44px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink-muted, #aaa);
  transition: color 0.15s, background 0.15s;
}
.shop-panel-check:hover { background: var(--paper-shade); }
.shop-panel-item--done .shop-panel-check { color: var(--leaf, #3d7a4e); }

.shop-panel-item-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--ink);
  gap: 12px;
  transition: background 0.1s;
}
.shop-panel-item-link:hover { background: var(--paper-shade); }
.shop-panel-item--done .shop-panel-item-link { opacity: 0.4; }
.shop-panel-item--done .shop-panel-item-name { text-decoration: line-through; }

/* ── Hero section ─────────────────────────────────────────────────────────── */
.hero-section {
  padding: 48px 0 40px;
  text-align: center;
  transition: opacity 0.4s ease, max-height 0.5s ease;
  max-height: 400px;
  overflow: hidden;
}
.hero-section.hero-hidden {
  opacity: 0;
  max-height: 0;
  padding: 0;
  pointer-events: none;
}
.hero-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero-sub {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink-mid, #666);
  line-height: 1.6;
  margin: 0 0 24px;
}
.hero-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-feat {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-feat-icon { font-size: 1rem; }
.hero-feat-divider {
  color: var(--line);
  font-size: 1rem;
  line-height: 1;
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .gingham,
  .site-header,
  .results-header-actions,
  .mobile-shop-bar,
  .game-plan-section,
  .notes-cta,
  .notes-recommends-nudge,
  .start-over-footer,
  #view-chat,
  #view-loading,
  #hero {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }

  .results-header { border-bottom: 1.5pt solid #000; margin-bottom: 16pt; }
  .results-title  { font-size: 20pt; }

  .dish-card {
    break-inside: avoid;
    border: 1pt solid #ccc;
    margin-bottom: 12pt;
  }

  .shopping-list-section { break-inside: avoid; }

  a { color: #000 !important; text-decoration: none !important; }
}

/* ---------- checklist lead magnet ---------- */
.checklist-card {
  margin: 40px auto 56px;
  max-width: 720px;
}
.checklist-card--results {
  margin: 48px auto 8px;
}
.checklist-inner {
  background: var(--receipt);
  border: 1.5px solid var(--line);
  border-top: 5px solid var(--ketchup);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.checklist-kicker {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ketchup);
}
.checklist-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.15;
}
.checklist-sub {
  margin: 0;
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--charcoal-soft);
}
.checklist-form {
  display: flex;
  gap: 10px;
}
.checklist-form .checklist-email {
  flex: 1;
  min-width: 0;
}
.checklist-form .checklist-send {
  white-space: nowrap;
  flex-shrink: 0;
}
.checklist-inner--compact {
  padding: 22px 26px;
}
.checklist-inner--compact .checklist-title {
  font-size: 1.2rem;
}
@media (max-width: 560px) {
  .checklist-inner { padding: 22px 20px; }
  .checklist-form { flex-direction: column; }
}

/* ---------- signature event multi-select ---------- */
.signature-hint {
  margin: 0 0 10px;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}
.chat-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Total Wine retailer ---------- */
.retailer-btn--totalwine {
  background: #8B1E2D;
  color: #fff;
}
.retailer-btn--totalwine .retailer-logo { background: rgba(255,255,255,0.15); }
.shop-panel-logo--totalwine { color: #8B1E2D; }

/* ---------- tools card ---------- */
.tools-card {
  margin-top: 28px;
  background: var(--receipt);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}
.tools-card-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--charcoal);
}
/* Hint rides on the title line rather than taking its own row */
.tools-card-hint {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--charcoal-soft);
  white-space: nowrap;
}
.tools-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color 0.15s;
}
.tool-link:hover {
  border-color: #FF9900;
  background: #FF9900;
  color: #111;
}
.tool-link:hover .tool-link-arrow { color: #111; }
.tool-link-arrow { font-size: 0.7rem; color: #FF9900; font-weight: 700; }

/* Optional gear reads quieter than the must-haves, but stays shoppable */
.tool-link--optional {
  border-style: dashed;
  color: var(--charcoal-soft);
}
.tool-opt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  opacity: 0.8;
}
.tool-link--optional:hover .tool-opt { color: #111; opacity: 1; }

/* Overflow chips stay in the DOM (and in the affiliate link set) but are
   collapsed so the card can't push the shopping list off screen. */
.tool-link--extra { display: none; }
.tools-card--open .tool-link--extra { display: inline-flex; }
.tools-more-btn {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  text-decoration: underline;
  cursor: pointer;
}
.tools-more-btn:hover { color: var(--charcoal); }

@media (max-width: 700px) {
  .tools-card { padding: 16px 16px; margin-top: 20px; }
  .tools-card-links { gap: 6px; }
  .tool-link { padding: 6px 11px; font-size: 0.8rem; gap: 4px; }
  .tools-card-hint { display: none; }
}

.dish-alt-method {
  margin: 8px 0 0;
  font-family: var(--body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--charcoal-soft);
  background: var(--paper-shade);
  border-radius: 8px;
  padding: 9px 12px;
}

/* ── Store-bought / hybrid dishes ─────────────────────────────────────────── */

.dish-badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dish-badge--bought {
  background: rgba(242, 184, 59, 0.22);
  color: #8a6410;
  border: 1px solid rgba(242, 184, 59, 0.55);
}

.dish-badge--homemade {
  background: rgba(61, 122, 78, 0.12);
  color: var(--leaf);
  border: 1px solid rgba(61, 122, 78, 0.35);
}

.dish-pickup {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Order row — the primary action on a store-bought dish. Sits right under
   the description; chunky tap targets, not footer links. */
.dish-order-row {
  margin: 10px 0 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dish-order-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
}

.order-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: filter 0.15s, transform 0.1s;
}

.order-btn:hover { filter: brightness(1.08); }
.order-btn:active { transform: scale(0.97); }

.order-btn--doordash { background: var(--ketchup); }
.order-btn--uber { background: var(--leaf); }

.catering-card {
  margin-top: 20px;
  padding: 18px 22px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--paper-shade);
}

.catering-card-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
}

.catering-card-sub {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

.catering-card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ketchup);
  text-decoration: none;
}

.catering-card-link:hover { text-decoration: underline; }

/* ── Site footer / affiliate disclosure ───────────────────────────────────── */

.site-footer {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
}

.site-footer-disclosure {
  margin: 0 auto;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--charcoal-soft);
  opacity: 0.65;
  text-align: center;
}

.site-footer-links {
  margin: 10px auto 0;
  font-size: 0.78rem;
  text-align: center;
}

.site-footer-links a {
  color: var(--charcoal-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-footer-links a:hover { color: var(--ketchup); text-decoration: underline; }

.dish-delivery-note {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--charcoal-soft);
  opacity: 0.7;
}

/* Recipe paste character counter */
.paste-counter {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--charcoal-soft);
  text-align: right;
}

.paste-counter--warn { color: var(--ketchup); font-weight: 600; }

.game-plan-stale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1.5px solid rgba(242, 184, 59, 0.6);
  border-radius: 10px;
  background: rgba(242, 184, 59, 0.12);
  font-size: 0.9rem;
  color: var(--charcoal);
}

.game-plan-stale-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* ── Multi-select serving step (pills) ────────────────────────────────────── */

.serving-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.serving-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 13px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
}

.serving-pill-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.serving-pill-x:hover { background: rgba(255, 255, 255, 0.45); }

.serving-add { flex-shrink: 0; }

.serving-continue { margin-top: 4px; }
.serving-continue:disabled { opacity: 0.5; cursor: default; }

/* ── Composite wizard step (merged question groups) ───────────────────────── */

.composite-group { margin-bottom: 18px; }
.composite-group:last-of-type { margin-bottom: 8px; }

.composite-group-label {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
  margin: 0 0 9px;
}

.composite-collapse-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ketchup);
  cursor: pointer;
  text-align: left;
}

.composite-collapse-link:hover { text-decoration: underline; }
.composite-group .chip-group { margin-top: 8px; }

/* On narrow screens the stacked suggestion chips leave "More ideas" stranded
   mid-column — drop it below the chips instead. */
@media (max-width: 600px) {
  .chip-group-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .chip-group-wrap .chip-group { flex: none; width: 100%; }
}

/* `.site-footer p` caps paragraphs at a 70ch reading measure; without auto
   side-margins that capped box sits flush left, so centered text reads
   off-centre. Must match that selector's specificity to win. */
.site-footer p { margin-left: auto; margin-right: auto; }

/* ── Two-phase generation: details-pending state ── */
.details-pending .dish-action-btn,
.details-pending #results-serves button,
.details-pending .rack-btn,
.details-pending #to-shop-btn,
.details-pending #copy-btn,
.details-pending #print-list-btn,
.details-pending #share-btn,
.details-pending .retailer-btn,
.details-pending #mobile-shop-btn,
.details-pending #mobile-copy-btn,
.details-pending #mobile-share-btn {
  opacity: 0.45;
  pointer-events: none;
}

.dish-pending-note {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  font-style: italic;
  margin: 10px 0 0;
}

.list-building {
  padding: 18px 0 8px;
  color: var(--charcoal-soft);
  font-size: 0.92rem;
}

.list-building p { margin: 0 0 12px; }

.list-building-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-shade);
  overflow: hidden;
}

.list-building-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: var(--mustard);
  animation: list-building-slide 1.4s ease-in-out infinite;
}

@keyframes list-building-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@media (prefers-reduced-motion: reduce) {
  .list-building-bar span { animation: none; width: 100%; opacity: 0.5; }
}

.list-retry {
  padding: 14px 0;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ── Potluck mode ── */
.potluck-card {
  border: 2px dashed var(--leaf);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 14px;
  background: var(--receipt);
}

.potluck-card--on { border-style: solid; }

.potluck-card-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 4px;
}

.potluck-card-sub {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin: 0 0 12px;
}

.potluck-enable-btn {
  border: none;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
}

.potluck-enable-btn:hover { filter: brightness(1.08); }

.potluck-link-row { display: flex; gap: 8px; }

.potluck-link-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  background: var(--paper);
}

.potluck-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
}

.potluck-seg {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--paper);
}

.potluck-seg-btn {
  border: none;
  background: none;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--charcoal-soft);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.potluck-seg-btn--on { background: var(--leaf); color: #fff; }

.potluck-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
}

.potluck-badge--claimed { background: color-mix(in srgb, var(--leaf) 14%, transparent); color: var(--leaf); }
.potluck-badge--mine { background: color-mix(in srgb, var(--mustard) 26%, transparent); color: var(--mustard-deep); }
.potluck-badge--host { background: var(--paper-shade); color: var(--charcoal-soft); }

.potluck-mini-link {
  border: none;
  background: none;
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--charcoal-soft);
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

.potluck-mini-link:hover { color: var(--ketchup); }

/* Guest view */
.potluck-guest-head {
  border: 2px solid var(--charcoal);
  border-radius: 16px;
  background: var(--receipt);
  padding: 22px 22px 16px;
  max-width: 680px;
  margin: 0 auto 34px;
}

.potluck-guest-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 6px;
}

.potluck-guest-title { font-size: 1.5rem; margin: 0 0 2px; }

.potluck-guest-meta { font-size: 0.85rem; color: var(--charcoal-soft); margin: 0 0 14px; }

.potluck-guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.potluck-guest-dish { display: flex; flex-direction: column; }
.potluck-guest-dish span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.potluck-claim-btn {
  border: none;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
}

.potluck-claim-btn:hover { background: var(--mustard-deep); }

.potluck-guest-hint {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin: 12px 0 0;
}

/* Guest mode hides host-only machinery; their claimed dishes flow through
   the normal 3-step view (menu → their cart), minus host controls. */
.potluck-guest-mode .dish-actions,
.potluck-guest-mode #add-course-section,
.potluck-guest-mode #potluck-section,
.potluck-guest-mode .serves-adj,
.potluck-guest-mode .prep-rack,
.potluck-guest-mode #start-over-footer,
.potluck-guest-mode .results-header-actions,
.potluck-guest-mode #game-plan-section,
.potluck-guest-mode #to-shop-btn {
  display: none !important;
}

.potluck-guest-noclaims .results-header,
.potluck-guest-noclaims .step-nav,
.potluck-guest-noclaims .step-section,
.potluck-guest-noclaims .mobile-shop-bar {
  display: none !important;
}

.supply-hint {
  font-size: 0.72rem;
  color: var(--charcoal-soft);
  opacity: 0.85;
}

.potluck-guest-row--form { flex-direction: column; align-items: stretch; }
.potluck-claim-form { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.potluck-claim-input {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: var(--body);
  font-size: 0.88rem;
  background: var(--paper);
  color: var(--charcoal);
}
.potluck-claim-input:focus { outline: none; border-color: var(--mustard-deep); }
.potluck-claim-form-btns { display: flex; align-items: center; gap: 10px; }

.potluck-playlist-row { margin-top: 12px; }
.potluck-playlist-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.potluck-playlist-label span {
  display: block;
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--charcoal-soft);
}
.potluck-playlist-btn {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 11px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.potluck-playlist-btn:hover { filter: brightness(1.15); }

/* Prep schedule: compact result + open-in-window */
.game-plan-summary {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--leaf);
  margin: 12px 0;
}

.game-plan-open-btn { margin-bottom: 6px; }

/* Tips: collapsible heading */
.notes-heading-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.notes-heading-btn .notes-heading { margin: 0; }
.notes-count { font-weight: 400; color: var(--charcoal-soft); font-size: 0.85em; }
.notes-chevron { color: var(--charcoal-soft); font-size: 1rem; }
.notes-body > .notes-sub { margin-top: 8px; }

/* ── Formatting audit (2026-07-26): category toggles + step-1 card diet ── */
.shopping-cat-name--toggle { cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.shopping-cat-count { font-size: 0.68rem; font-weight: 600; color: var(--charcoal-soft); opacity: 0.8; font-family: var(--mono); letter-spacing: 0; text-transform: none; }

/* Ingredients / How-to toggles share one line (they stacked two full rows) */
.instructions-toggle { display: inline-block; margin-right: 18px; }
/* flex/grid displays override the hidden attribute — never let a collapsed
   list keep its layout box */
.dish-ingredients[hidden], .dish-instructions[hidden] { display: none !important; }

@media (max-width: 600px) {
  .dish-card { padding: 14px 15px; margin-bottom: 10px; }
  .dish-name { font-size: 1.05rem; }
  .dish-badge { font-size: 0.55rem; padding: 2px 8px; }
  .dish-desc { font-size: 0.88rem; }
  /* Long AI descriptions clamp to 2 lines — tap the text to read the rest */
  .dish-desc--clampable:not(.dish-desc--open) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dish-actions { gap: 5px; }
  .dish-action-btn { padding: 4px 9px; font-size: 0.74rem; }
  .shopping-card { padding: 18px 14px; }
  .shopping-items li { padding: 3px 0; }
}

/* Order-row extras: grocery retailer links + restaurant expectation note */
.dish-order-alt { display: inline-flex; gap: 10px; margin-left: 4px; }
.dish-order-alt a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--charcoal-soft);
  text-decoration: none;
  border-bottom: 1.5px dashed var(--line);
}
.dish-order-alt a:hover { color: var(--ketchup); border-bottom-color: var(--ketchup); }

.dish-order-note {
  font-size: 0.74rem;
  color: var(--charcoal-soft);
  opacity: 0.75;
  margin: 4px 0 0;
}

.ing-amount--taste { color: var(--charcoal-soft); font-style: italic; font-weight: 400; }

.shared-copy-note {
  max-width: 680px;
  margin: 0 auto 18px;
  padding: 10px 14px;
  background: var(--paper-shade);
  border-left: 3px solid var(--mustard);
  border-radius: 0 9px 9px 0;
  font-size: 0.84rem;
  color: var(--charcoal-soft);
}

/* The checklist lead-magnet competes with the wizard mid-flow */
body.wizard-active #checklist-card-home { display: none; }

/* "Use my own recipe" — Julie found this at 50% opacity and read it as
   discouraged. Swapping a generated dish for one you already make well is a
   primary path, not a footnote, so it now looks like an offer. */
.own-recipe-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--receipt);
  border: 1.5px dashed var(--mustard-deep);
  border-radius: 12px;
  font-family: var(--body);
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.own-recipe-btn:hover {
  background: var(--paper-shade);
  border-color: var(--ketchup);
}

.own-recipe-btn span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.own-recipe-btn small {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--charcoal-soft);
}

/* ── Composite wizard: number/text inputs + radio cards (kids feature) ── */
.composite-input { width: 100%; }

.composite-optional {
  font-weight: 400;
  font-size: 0.78em;
  color: var(--charcoal-soft);
  margin-left: 6px;
}

.composite-group-hint {
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin: 5px 0 0;
}

.radio-group { display: flex; flex-direction: column; gap: 8px; }

.radio-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--body);
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.radio-card:hover { border-color: var(--charcoal-soft); }

.radio-card--on {
  border-color: var(--leaf);
  border-width: 2px;
  background: color-mix(in srgb, var(--leaf) 8%, transparent);
}

.radio-card-label { display: block; font-size: 0.9rem; font-weight: 700; }
.radio-card-hint { display: block; font-size: 0.78rem; color: var(--charcoal-soft); margin-top: 2px; }

/* ── Kids at the party ── */
.dish-kid-line {
  font-size: 0.82rem;
  color: var(--leaf);
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.dish-kid-line strong { font-weight: 700; }

.course-label--kids { color: var(--leaf); }

.serves-kids {
  font-size: 0.82em;
  color: var(--charcoal-soft);
  font-weight: 400;
}

.family-chip {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--leaf);
  background: color-mix(in srgb, var(--leaf) 12%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ── Dietary safety surfaces ── */
.allergy-notice {
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--ketchup) 8%, transparent);
  border-left: 3px solid var(--ketchup);
  border-radius: 0 10px 10px 0;
}

.allergy-notice-text {
  font-size: 0.85rem;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.5;
}

.potluck-diet-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  padding: 11px 14px;
  background: color-mix(in srgb, var(--ketchup) 8%, transparent);
  border-left: 3px solid var(--ketchup);
  border-radius: 0 10px 10px 0;
  font-size: 0.86rem;
}

.potluck-diet-sub { font-size: 0.78rem; color: var(--charcoal-soft); }
