:root {
  color-scheme: light;
  --blue: #263e66;
  --blue-light: #a6c2e5;
  --blue-pale: #eff5fc;
  --orange: #e6792e;
  --orange-ink: #a8490c;
  --orange-pale: #fff9f0;
  --ink: var(--blue);
  --ink-soft: #52627a;
  --white: #fff;
  --line: #dce3ec;
  --soft: #f7f9fc;
  --mint: var(--blue-pale);
  --green: var(--blue);
  --yellow: var(--orange-pale);
  --tomato: var(--orange);
  --tomato-dark: var(--orange-ink);
  --radius: 14px;
  --shadow: 0 10px 28px rgb(38 62 102 / 8%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button, input, select { min-height: 44px; }
button { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 4px; }
button { border: 0; }
button, a, summary { transition: color .16s, background-color .16s, border-color .16s; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline-offset: 2px; }
input { caret-color: var(--blue); }
input::placeholder { color: #68768b; opacity: 1; }
::selection { color: var(--blue); background: #dce9fa; }
* { scrollbar-color: #a6b6cf #f3f6fb; scrollbar-width: thin; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3 { text-wrap: balance; }
h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(36px,4.6vw,60px); letter-spacing: -.03em; line-height: 1.06; margin-bottom: 20px; }
h2 { font-size: clamp(25px,2.6vw,34px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 10px; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px; }
h4 { font-size: 18px; margin: 0 0 16px; }
p { margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 100; background: white; padding: 12px 20px; border: 2px solid var(--blue); }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1180px; width: calc(100% - 80px); margin: auto; padding: 26px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; text-decoration: none; }
.brand img { display: block; width: 244px; height: auto; }
.household-pill { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; color: var(--blue); background: var(--orange-pale); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.household-pill svg { width: 23px; color: var(--blue); }
.household-pill strong, .household-pill small { display: block; }
.household-pill strong { font-weight: 600; }
.household-pill small { margin-top: 2px; text-decoration: underline; text-underline-offset: 3px; }
.household-pill:hover { background: var(--blue-pale); }
.household-pill .household-chevron { width: 16px; height: 16px; }
.household-pill[aria-expanded="true"] .household-chevron { transform: rotate(180deg); }
.household-settings { width: min(1180px,calc(100% - 80px)); margin: 0 auto 32px; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.household-settings > p { max-width: 65ch; color: var(--ink-soft); }
.household-fields { max-width: 700px; margin: 28px 0; }
.household-row { display: grid; grid-template-columns: minmax(90px,1fr) auto minmax(185px,1.5fr); align-items: end; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.household-row > label:first-child { align-self: center; font-weight: 600; }
.count-stepper { display: flex; align-items: center; }
.count-stepper button { display: grid; place-items: center; width: 44px; padding: 8px; border: 1px solid var(--line); background: var(--blue-pale); border-radius: 8px; }
.count-stepper button:hover { border-color: var(--blue); }
.count-stepper input { width: 56px; padding: 8px 3px; border: 0; text-align: center; background: white; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.count-stepper input::-webkit-inner-spin-button,.count-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.appetite-field span { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink-soft); }
.appetite-field select { width: 100%; padding: 10px 28px 10px 12px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.household-preview { font-weight: 600; }
.household-help { max-width: 70ch; font-size: 14px; color: var(--ink-soft); }
.household-actions { display: flex; align-items: center; gap: 24px; margin: 24px 0 16px; }
.portion-explainer { max-width: 70ch; font-size: 14px; }
.portion-explainer summary { padding: 8px 0; min-height: 44px; font-weight: 600; }
.portion-explainer p { color: var(--ink-soft); }
.form-error { color: #a32922; font-weight: 600; }
.recipe-portion-guide { grid-column: 1 / -1; padding: 20px; background: var(--blue-pale); border-radius: 12px; }
.recipe-portion-guide p:last-child { margin-bottom: 0; }
.recipe-portion-guide small { display: block; color: var(--ink-soft); }
.household-shopping-note { margin: 20px 0; color: var(--ink-soft); font-size: 14px; }
main { width: min(1180px,calc(100% - 80px)); margin: 0 auto 80px; }
.view-tabs { position: sticky; top: 0; z-index: 20; display: flex; align-items: stretch; gap: 36px; padding: 0; margin: 0 0 40px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tab-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 65px; padding: 14px 2px; color: var(--ink-soft); background: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; }
.tab-button.active { color: var(--blue); }
.tab-button.active::after { content: ''; position: absolute; height: 3px; border-radius: 2px; bottom: -1px; left: 0; right: 0; background: var(--orange); }
.tab-button:hover { color: var(--orange-ink); }
.nav-short { display: none; }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; font-size: 12px; border-radius: 6px; background: var(--blue-pale); color: var(--blue); font-variant-numeric: tabular-nums; }
#app-content { outline: 0; }
.view { min-width: 0; }
.home-intro { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 64px; margin: 8px 0 68px; }
.intro-copy { padding: 16px 0; }
.intro-copy p { max-width: 28ch; font-size: 18px; color: var(--ink-soft); margin-bottom: 28px; }
.feature-photo { position: relative; display: block; overflow: hidden; text-decoration: none; border-radius: 16px; background: var(--orange-pale); }
.feature-photo img { display: block; width: 100%; height: 350px; object-fit: cover; object-position: center 60%; }
.photo-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 22px; background: var(--orange-pale); }
.photo-caption strong { font-size: 16px; }
.photo-caption > span { font-size: 13px; color: var(--orange-ink); white-space: nowrap; }
.feature-photo:hover .photo-caption { background: #fff0de; }
.primary-button,.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 19px; min-height: 48px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 15px; }
.primary-button { background: var(--blue); color: white; }
.primary-button:hover { background: #365787; }
.secondary-button { border: 1px solid #b1bfd1; color: var(--blue); background: #fff; }
.secondary-button:hover { background: var(--blue-pale); border-color: var(--blue); }
.text-button { background: transparent; padding: 10px 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.text-button:hover { color: var(--orange-ink); }
.back-button { margin-bottom: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 28px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { margin-bottom: 0; color: var(--ink-soft); }
.section-note { max-width: 40ch; color: var(--ink-soft); }
.section-intro { max-width: 65ch; color: var(--ink-soft); }
#weekly-plan { scroll-margin-top: 100px; }
.plan-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.plan-toolbar p { color: var(--ink-soft); margin: 0; }
.plan-settings { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.plan-settings summary { min-height: 58px; padding: 18px 0; font-weight: 600; }
.plan-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 8px 0 26px; }
.plan-choices label { display: grid; gap: 8px; font-weight: 500; font-size: 15px; }
.plan-choices select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #aab8cc; border-radius: 8px; background: #fff; }
.day-navigation { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.day-picker { display: flex; gap: 8px; }
.day-picker button { min-width: 54px; min-height: 48px; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: var(--soft); color: var(--ink-soft); font-weight: 600; }
.day-picker button[aria-pressed="true"] { background: var(--blue); color: white; }
.day-picker button:hover { background: #dce9fa; color: var(--blue); }
.breakfast-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding: 24px 28px; border-radius: 12px; background: var(--orange-pale); }
.breakfast-banner span,.breakfast-banner strong,.breakfast-banner small { display: block; }
.breakfast-banner span { color: var(--orange-ink); font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.breakfast-banner strong { font-size: 19px; line-height: 1.3; }
.breakfast-banner small { color: var(--ink-soft); font-size: 14px; margin-top: 7px; }
.day-grid { display: grid; gap: 28px; }
.day-card { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 14px; }
.day-top { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.day-top h3 { margin: 0; }
.day-top > span { font-size: 14px; color: var(--ink-soft); }
.day-meals { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; }
.meal-block { min-width: 0; }
.meal-label { display: block; color: var(--orange-ink); font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.meal-block strong { display: block; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px; }
.meal-block p { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.meal-block .portion-guide { font-size: 14px; }
.dinner-block { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.dinner-block img { width: 118px; height: 155px; border-radius: 10px; object-fit: cover; }
.dinner-block .secondary-button { margin-top: 15px; }
.dinner-block .text-button { display: block; font-size: 14px; }
.whole-week { grid-template-columns: repeat(2,minmax(0,1fr)); }
.whole-week .day-meals { grid-template-columns: 1fr; gap: 24px; }
.whole-week .meal-block strong { font-size: 19px; }
.whole-week .dinner-block { border-top: 1px solid var(--line); padding-top: 22px; }
.power-guide { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; margin-top: 56px; padding: 32px; border-radius: 12px; background: var(--blue-pale); }
.power-guide p { color: var(--ink-soft); margin-bottom: 0; }
.power-guide ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 18px; }
.power-guide li { font-size: 15px; color: var(--ink-soft); }
.power-guide li strong { color: var(--blue); }
.recipe-tools { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 32px 0 18px; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #aab8cc; border-radius: 10px; flex: 1; max-width: 430px; }
.search-box input { padding: 12px 0; min-width: 0; width: 100%; border: 0; background: transparent; }
.search-box:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-box input:focus-visible { outline: 0; }
.recipe-filters { display: flex; gap: 8px; }
.recipe-filters button { padding: 10px 15px; background: white; color: var(--ink-soft); border-radius: 8px; white-space: nowrap; font-size: 14px; }
.recipe-filters button[aria-pressed="true"] { background: var(--blue-pale); color: var(--blue); font-weight: 700; }
.result-count { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.recipe-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.recipe-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; scroll-margin-top: 94px; }
.recipe-card summary { display: flex; align-items: center; gap: 20px; list-style: none; padding: 24px; min-height: 122px; }
.recipe-card summary::-webkit-details-marker { display: none; }
.recipe-card summary:hover { background: var(--soft); }
.recipe-summary { flex: 1; min-width: 0; }
.recipe-summary h3 { font-size: 20px; margin-bottom: 7px; }
.recipe-summary > span { display: block; color: var(--ink-soft); font-size: 14px; }
.recipe-thumb { width: 86px; height: 106px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; }
.recipe-summary .video-label { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; color: var(--orange-ink); font-size: 12px; font-weight: 600; }
.video-label svg { width: 15px; height: 15px; }
.expand-icon { width: 23px; height: 23px; margin-left: auto; color: var(--blue); }
.recipe-card[open] { grid-column: 1 / -1; border-color: #a9bdd7; }
.recipe-card[open] summary { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.recipe-card[open] .expand-icon { transform: rotate(45deg); }
.recipe-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px 48px; padding: 28px 32px 32px; }
.recipe-body > p,.recipe-body > ul,.recipe-body > h4,.recipe-body > .table-wrap { grid-column: 1 / -1; }
.recipe-body ul,.recipe-body ol { padding-left: 22px; margin: 0; }
.recipe-body li { padding-left: 4px; margin-bottom: 12px; line-height: 1.55; }
.recipe-body ol li { padding-left: 8px; margin-bottom: 20px; }
.recipe-body li::marker { color: var(--orange-ink); font-weight: 600; }
.recipe-costing { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid var(--line); }
.recipe-costing p { max-width: 74ch; color: var(--ink-soft); margin-bottom: 0; font-size: 15px; }
.stretch-note { grid-column: 1 / -1; background: var(--orange-pale); border-radius: 10px; padding: 22px 24px; font-size: 15px; }
.stretch-note > strong { display: block; margin-bottom: 8px; }
.stretch-note p { margin: 0; color: var(--ink-soft); }
.recipe-audio { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.recipe-audio button { padding: 10px 16px; border: 1px solid #acbbd0; background: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; }
.recipe-audio button:hover { background: var(--blue-pale); }
.read-status { flex-basis: 100%; margin: 0; color: var(--ink-soft); font-size: 14px; }
.read-status:empty { display: none; }
.reading-now { background: #fff0db; color: var(--blue); outline: 2px solid var(--orange-ink); outline-offset: 4px; border-radius: 3px; }
.recipe-videos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 24px; padding: 22px 24px; border-radius: 10px; background: var(--blue-pale); }
.video-link { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; min-height: 44px; }
.video-link > span { margin-left: auto; }
.recipe-videos p { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; max-width: 65ch; }
.recipe-empty { padding: 40px 0; }
.serve-price { display: inline-flex; gap: 5px; align-items: baseline; color: var(--orange-ink); background: var(--orange-pale); padding: 5px 9px; border-radius: 6px; margin: 10px 0 0; }
.serve-price strong { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.serve-price small { font-size: 12px; }
.price-note { font-size: 12px !important; margin-top: 8px; }
.shopping-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.progress-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--blue-pale); padding: 24px 28px; border-radius: 12px; margin: 32px 0; }
.progress-row strong,.progress-row span { display: block; }
.progress-row span { margin-top: 5px; font-size: 14px; color: var(--ink-soft); }
.progress-track { height: 8px; background: #d1ddec; border-radius: 8px; overflow: hidden; }
.progress-track span { height: 100%; background: var(--blue); margin: 0; }
.shopping-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; margin-bottom: 40px; }
.shopping-group { min-width: 0; }
.shopping-group h3 { font-size: 20px; border-bottom: 2px solid var(--blue-light); padding-bottom: 16px; margin-bottom: 12px; }
.shopping-group ul { padding: 0; margin: 0; list-style: none; }
.shopping-item label { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 12px; padding: 14px 0; cursor: pointer; }
.shopping-item input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--blue); }
.shopping-item strong,.shopping-item small { display: block; }
.shopping-item strong { font-size: 16px; font-weight: 600; }
.shopping-item small { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.shopping-item.checked strong { color: var(--ink-soft); text-decoration: line-through; }
.optional-tag { display: inline-block; font-style: normal; background: var(--blue-pale); color: var(--blue); border-radius: 4px; margin-left: 7px; padding: 2px 5px; font-size: 11px; }
.price-hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.price-hero p { max-width: 54ch; margin-bottom: 0; color: var(--ink-soft); }
.total-card { padding: 24px 30px; background: var(--orange-pale); border-radius: 12px; }
.total-card span,.total-card strong,.total-card small { display: block; }
.total-card span { font-size: 14px; }
.total-card strong { font-size: 38px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 4px 0; }
.total-card small { color: var(--ink-soft); font-size: 13px; }
.price-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 20px; }
.switch-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.switch-label input { accent-color: var(--blue); min-height: 20px; width: 20px; height: 20px; }
.danger { color: #9d3e2d; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th { text-align: left; font-size: 13px; background: var(--blue-pale); padding: 17px 18px; font-weight: 600; }
.price-table td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table strong,.price-table small { display: block; }
.price-table strong { font-size: 15px; font-weight: 600; }
.price-table small { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }
.price-table td > label:has([data-optional]) { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 14px; }
.price-table [data-optional] { min-height: 18px; width: 18px; height: 18px; accent-color: var(--blue); }
.price-input-wrap { position: relative; display: block; width: 110px; }
.price-input-wrap > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.price-input { width: 100%; padding: 10px 10px 10px 28px; border: 1px solid #aab8cc; border-radius: 8px; background: white; }
.week-cost { min-width: 155px; font-weight: 600; }
.week-cost small { font-weight: 400; }
.fixed-price-label { font-size: 13px; color: var(--ink-soft); }
.price-footnote { max-width: 80ch; color: var(--ink-soft); font-size: 14px; margin: 24px 0 0; }
.special-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
.special-intro > p { color: var(--ink-soft); }
.special-form { display: grid; gap: 24px; margin-top: 32px; }
.special-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.special-form input,.special-form select { width: 100%; min-width: 0; border: 1px solid #aab8cc; border-radius: 8px; background: white; padding: 12px; }
.special-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.unit-input { position: relative; display: block; }
.unit-input input { padding-right: 42px; }
.unit-input em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-soft); }
.unit-input.currency input { padding-left: 28px; padding-right: 12px; }
.unit-input.currency em { left: 12px; right: auto; }
.food-safety-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.special-result { min-height: 400px; display: flex; flex-direction: column; background: var(--orange-pale); border-radius: 14px; padding: 32px; }
.empty-special-state { margin: auto; text-align: center; max-width: 35ch; }
.empty-special-state > span { display: none; }
.empty-special-state p { color: var(--ink-soft); margin-bottom: 0; }
.special-result-head { padding-bottom: 20px; border-bottom: 1px solid #e5d6c7; }
.special-result-head span,.special-result-head strong,.special-result-head small { display: block; }
.special-result-head strong { font-size: 25px; margin: 8px 0; }
.special-result-head small { color: var(--ink-soft); }
.swap-list { display: grid; gap: 24px; margin: 24px 0; }
.swap-card { display: grid; grid-template-columns: 75px 1fr; gap: 18px; }
.swap-day { font-size: 14px; color: var(--orange-ink); font-weight: 600; }
.swap-card strong,.swap-card small,.swap-arrow { display: block; }
.swap-card small { color: var(--ink-soft); font-size: 14px; }
.swap-arrow { margin: 8px 0; font-size: 13px; }
.special-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.applied-message { font-size: 14px; margin: 22px 0 0; }
.pair-note { padding: 30px 32px; margin: 32px 0 40px; background: var(--orange-pale); border-radius: 12px; max-width: 850px; }
.pair-note p { max-width: 70ch; }
.pair-note p:last-child { color: var(--ink-soft); margin: 0; font-size: 14px; }
.paired-recipes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.paired-recipes article { padding-top: 24px; border-top: 2px solid var(--blue-light); }
.paired-recipes p { max-width: 45ch; color: var(--ink-soft); }
footer { max-width: 1180px; width: calc(100% - 80px); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0 36px; border-top: 1px solid var(--line); font-size: 14px; }
footer strong { font-weight: 600; }
footer a { color: var(--ink-soft); }
footer .instagram-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blue); }
.instagram-link img { display: block; flex: 0 0 24px; }
.toast { position: fixed; z-index: 60; bottom: 24px; left: 50%; transform: translate(-50%,20px); width: max-content; max-width: calc(100% - 40px); padding: 14px 20px; background: white; border: 1px solid var(--blue); border-radius: 10px; opacity: 0; pointer-events: none; font-size: 14px; transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 1000px) {
 .site-header,footer,.household-settings { width: calc(100% - 48px); }
 main { width: calc(100% - 48px); }
 .home-intro { gap: 32px; }
 .feature-photo img { height: 300px; }
 .photo-caption { display: block; }
 .photo-caption > span { display: block; margin-top: 5px; }
 .recipe-tools { display: block; }
 .search-box { max-width: none; }
 .recipe-filters { margin-top: 16px; }
 .recipe-card summary { gap: 14px; padding: 20px; }
 .recipe-thumb { width: 68px; height: 92px; }
 .recipe-summary h3 { font-size: 18px; }
 .shopping-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .day-meals { gap: 28px; }
 .special-layout { gap: 32px; }
}
@media (max-width: 700px) {
 html { scroll-padding-top: 20px; }
 body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
 .site-header { width: calc(100% - 40px); padding: 22px 0 26px; align-items: center; gap: 12px; }
 .brand img { width: clamp(150px,45vw,190px); }
 .household-pill { max-width: 170px; font-size: 12px; line-height: 1.35; padding: 9px 10px; gap: 7px; flex: 0 1 auto; }
 .household-pill svg { display: none; }
 .household-pill .household-chevron { display: block; }
 .household-settings { width: calc(100% - 40px); padding: 24px 20px; }
 .household-settings h2 { font-size: 24px; }
 .household-row { grid-template-columns: 1fr auto; gap: 16px; }
 .appetite-field { grid-column: 1 / -1; }
 .household-fields { margin: 12px 0 24px; }
 main { width: calc(100% - 40px); margin-bottom: 48px; }
 .view-tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; gap: 0; justify-content: space-around; border-bottom: 0; padding: 4px 10px calc(5px + env(safe-area-inset-bottom)); margin: 0; box-shadow: 0 -3px 16px rgb(38 62 102 / 4%); }
 .tab-button { min-height: 64px; flex: 1; flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 12px; }
 .tab-button svg { width: 23px; height: 23px; }
 .tab-button.active::after { bottom: auto; top: -4px; left: 24%; right: 24%; }
 .nav-label,.count-badge { display: none; }
 .nav-short { display: inline; }
 .home-intro { display: flex; flex-direction: column; gap: 28px; align-items: stretch; margin: 4px 0 46px; }
 .intro-copy { padding: 0; }
 h1 { font-size: 42px; margin-bottom: 14px; }
 .intro-copy p { font-size: 16px; max-width: 31ch; margin-bottom: 20px; }
 .feature-photo img { height: 220px; object-position: center 60%; }
 .photo-caption { display: flex; padding: 16px; }
 .photo-caption strong { font-size: 15px; }
 .photo-caption > span { font-size: 12px; margin: 0; }
 .section-heading { display: block; margin-bottom: 24px; }
 .section-heading > .secondary-button { margin-top: 20px; font-size: 13px; min-height: 44px; padding: 9px 13px; }
 .section-note { margin-top: 10px; max-width: 40ch; }
 .plan-toolbar { display: block; margin-bottom: 12px; }
 .plan-toolbar p { font-size: 15px; }
 .plan-toolbar .text-button { margin-top: 5px; font-size: 14px; }
 .plan-choices { grid-template-columns: 1fr; gap: 22px; }
 .plan-settings { margin-bottom: 24px; }
 .plan-settings summary { font-size: 15px; }
 .day-navigation { display: block; margin-bottom: 18px; }
 .day-picker { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
 .day-picker button { min-width: 0; min-height: 47px; padding: 9px 0; font-size: 12px; border-radius: 8px; }
 #week-overview { display: block; margin: 7px 0 0 auto; font-size: 13px; }
 .breakfast-banner { display: block; padding: 22px; margin-bottom: 24px; }
 .breakfast-banner strong { font-size: 19px; }
 .breakfast-banner .text-button { font-size: 14px; margin-top: 10px; }
 .day-card { padding: 24px 22px; }
 .day-top { display: block; padding-bottom: 18px; margin-bottom: 24px; }
 .day-top > span { display: block; margin-top: 4px; font-size: 13px; }
 .day-meals { grid-template-columns: 1fr; gap: 30px; }
 .meal-block strong { font-size: 21px; }
 .dinner-block { padding-top: 24px; border-top: 1px solid var(--line); gap: 16px; }
 .dinner-block img { width: 76px; height: 108px; }
 .dinner-block .secondary-button { padding: 10px 12px; font-size: 13px; gap: 8px; }
 .whole-week { grid-template-columns: 1fr; }
 .power-guide { grid-template-columns: 1fr; padding: 26px 24px; gap: 26px; margin-top: 40px; }
 .recipe-tools { margin: 28px 0 20px; }
 .recipe-filters { gap: 4px; justify-content: flex-start; }
 .recipe-filters button { padding: 9px 12px; font-size: 13px; }
 .recipe-list { grid-template-columns: 1fr; gap: 18px; }
 .recipe-card { scroll-margin-top: 20px; }
 .recipe-card summary { gap: 14px; padding: 20px 18px; }
 .recipe-summary h3 { font-size: 19px; }
 .recipe-summary > span { font-size: 13px; }
 .recipe-thumb { width: 65px; height: 95px; }
 .expand-icon { width: 20px; height: 20px; }
 .recipe-body { grid-template-columns: 1fr; gap: 30px; padding: 24px 22px; }
 .recipe-body h4 { font-size: 18px; }
 .recipe-body li { font-size: 16px; }
 .recipe-videos { padding: 16px; grid-template-columns: 1fr; gap: 24px; }
 .video-link { font-size: 14px; }
 .recipe-audio { gap: 8px; }
 .recipe-audio button { padding: 9px 13px; }
 .stretch-note { padding: 20px; }
 .serve-price strong { font-size: 20px; }
 .shopping-actions { margin-top: 22px; }
 .progress-row { grid-template-columns: 1fr; gap: 20px; padding: 24px; margin: 28px 0; }
 .shopping-groups { grid-template-columns: 1fr; gap: 32px; }
 .shopping-item label { padding: 15px 0; }
 .price-hero { grid-template-columns: 1fr; gap: 26px; }
 .total-card { padding: 22px 24px; }
 .price-tools { align-items: start; margin-top: 26px; }
 .switch-label { font-size: 14px; align-items: start; }
 .switch-label input { flex: 0 0 auto; }
 .price-tools .text-button { padding: 0; font-size: 13px; }
 #view-prices .table-wrap { overflow: visible; border: 0; border-radius: 0; }
 #view-prices .price-table,#view-prices .price-table tbody { display: block; }
 #view-prices .price-table thead { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
 #view-prices .price-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
 #view-prices .price-table td { display: block; border: 0; padding: 0; min-width: 0; }
 #view-prices .price-table td:first-child { grid-column: 1 / -1; }
 #view-prices .price-table td:nth-child(2) { grid-column: 1 / -1; font-size: 14px; }
 #view-prices .price-table td:nth-child(3)::before,#view-prices .price-table td:nth-child(4)::before { content: attr(data-label); display: block; font-size: 12px; margin-bottom: 8px; color: var(--ink-soft); }
 #view-prices .price-table td:nth-child(5) { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
 #view-prices .price-table td:nth-child(5)::before { content: 'Week cost'; font-size: 12px; color: var(--ink-soft); margin-right: 12px; }
 .price-input-wrap { width: 100%; }
 .special-layout { grid-template-columns: 1fr; gap: 32px; }
 .special-form { gap: 22px; }
 .special-form-row { gap: 16px; }
 .special-result { min-height: 270px; padding: 24px; }
 .special-actions { display: grid; }
 .pair-note { padding: 24px; }
 .paired-recipes { grid-template-columns: 1fr; gap: 32px; }
 footer { width: calc(100% - 40px); display: block; padding: 25px 0 30px; font-size: 13px; }
 footer strong,footer a { display: block; }
 footer a { margin-top: 10px; }
 .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
 .site-header,main,footer,.household-settings { width: calc(100% - 32px); }
 .brand img { width: 150px; }
 .household-pill { font-size: 12px; max-width: 140px; }
 .photo-caption { display: block; }
 .photo-caption > span { margin-top: 6px; }
 .recipe-card summary { gap: 10px; padding: 18px 14px; }
 .recipe-thumb { width: 52px; height: 84px; }
 .recipe-summary h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
 *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print { .view-tabs,.site-header,.household-settings,.recipe-audio,.recipe-tools,.back-button,footer,.toast { display: none !important; } main { width: 100%; } body { padding: 0; } .recipe-card { break-inside: avoid; } }

/* Keep meal cost legible and consistent across the library and planner. */
.recipe-summary .serve-price { display: inline-flex; color: var(--orange-ink); }
.meal-block .serve-price { margin: 0 0 12px; }
.meal-block .serve-price strong { display: inline; font-size: 21px; margin: 0; }
.price-note { display: block; color: var(--ink-soft); margin-bottom: 10px; }
.cost-explainer { font-size: 14px; color: var(--ink-soft); max-width: 75ch; }
.photo-caption b { font-size: 21px; }
.method-pending { padding: 16px; background: var(--orange-pale); border-radius: 8px; font-size: 15px; }
