/* Light & airy theme (always light) */
:root {
  color-scheme: light;
  --bg: #fdfcfa;
  --surface: #ffffff;
  --surface-2: #f6f4f0;
  --ink: #2b2b28;
  --ink-soft: #66645e;
  --muted: #9b978f;
  --line: #ece9e3;
  --accent: #c0704f;       /* soft terracotta */
  --accent-ink: #ffffff;
  --green: #6b8a62;        /* sage */
  --green-soft: #f0f4ed;
  --warn-bg: #fdf7ea;
  --warn-ink: #8a6a2c;
  --swap-bg: #eef4fa;
  --swap-ink: #3d6488;
  --shadow: 0 1px 3px rgba(40,35,25,.04);
  --radius: 16px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
}
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { color: var(--accent); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a.active { background: var(--surface-2); color: var(--ink); }
.nav a.nav-em { color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }
@media (max-width: 1400px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 10px; }
}

.allergen-bar { background: var(--green-soft); color: var(--ink); font-size: .92rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.allergen-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--surface); border: 1px solid var(--line); padding: 1px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--green); }
.chip::before { content: "✕ "; opacity: .7; }
.bar-note { color: var(--ink-soft); }

main { padding-top: 28px; padding-bottom: 60px; outline: none; min-height: 60vh; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; margin-bottom: 34px; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--accent); }
.stat span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }

.search { display: flex; gap: 8px; margin: 18px 0 0; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin: 10px 0 40px; }
.tile { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); transition: transform .12s ease; }
.tile:hover { transform: translateY(-2px); }
.tile .emoji { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.tile b { font-family: var(--serif); font-size: 1.15rem; display: block; }
.tile span.count { color: var(--muted); font-size: .9rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.section-head a { font-weight: 600; text-decoration: none; }

/* Page header */
.page-head { margin-bottom: 18px; }
.page-head p { color: var(--ink-soft); max-width: 46em; font-size: 1.08rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; align-items: center; }
.filter-btn { text-decoration: none; font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-label { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 18px; font-size: .95rem; }
.subnav a { text-decoration: none; }

.group-title { margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); scroll-margin-top: 80px; }
.group-title small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 6px; }

/* Recipe cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; position: relative; }
.card h3 { font-size: 1.18rem; margin: 0; padding-right: 34px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card .site { font-size: .88rem; color: var(--muted); font-weight: 600; }
.card .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); }
.card .desc { margin: 0; color: var(--ink); }
.note { font-size: .9rem; border-radius: 10px; padding: 8px 10px; line-height: 1.4; }
.note b { font-weight: 700; }
.note.swap { background: var(--swap-bg); color: var(--swap-ink); }
.note.watch { background: var(--warn-bg); color: var(--warn-ink); }
.note.ok { background: var(--green-soft); color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.tag { font-size: .78rem; color: var(--ink-soft); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }
.diff { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.diff.easy { color: var(--green); } .diff.medium { color: #b07a1a; } .diff.involved { color: var(--accent); }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; }
.go { font-weight: 700; text-decoration: none; font-size: .95rem; }
.save { position: absolute; top: 12px; right: 12px; background: none; border: none; cursor: pointer; font-size: 1.35rem; line-height: 1; color: var(--muted); padding: 4px; }
.save[aria-pressed="true"] { color: var(--accent); }
.course-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .12s; }
.plan-card:hover { transform: translateY(-2px); }
.plan-card .band { padding: 18px 18px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.plan-card .band .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.plan-card .band h3 { margin: 4px 0 2px; font-size: 1.3rem; }
.plan-card .band p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.plan-card ul { list-style: none; margin: 0; padding: 12px 18px 16px; font-size: .95rem; }
.plan-card li { padding: 3px 0; display: flex; gap: 8px; }
.plan-card li span { color: var(--muted); min-width: 74px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }

.plan-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow); }
.plan-hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-soft); font-size: .95rem; }
.plan-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .plan-layout { grid-template-columns: 1fr; } }
.course-list { display: grid; gap: 14px; }
.side-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: sticky; top: 80px; }
@media (max-width: 900px) { .side-panel { position: static; } }
.timeline { list-style: none; padding: 0; margin: 0 0 16px; }
.timeline li { padding: 8px 0 8px 16px; border-left: 3px solid var(--line); position: relative; font-size: .95rem; }
.timeline li b { display: block; color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.tips { padding-left: 18px; font-size: .95rem; }
.tips li { margin-bottom: 6px; }

/* Guide */
.guide { display: grid; gap: 18px; }
.guide-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; scroll-margin-top: 80px; }
.guide-sec h2 { display: flex; align-items: center; gap: 10px; }
.guide-sec table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 8px 0 14px; }
.guide-sec th, .guide-sec td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-sec th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: .95rem; margin: 8px 0; }
.callout.good { background: var(--green-soft); color: var(--green); }

.sources { columns: 3 240px; column-gap: 24px; padding: 0; list-style: none; }
.sources li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.sources a { text-decoration: none; font-weight: 600; }

/* Buttons & shopping list */
.btn { font: inherit; font-weight: 600; font-size: .95rem; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.add-list { font: inherit; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: 3px 10px; cursor: pointer; margin-left: auto; }
.add-list[aria-pressed="true"] { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.list-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.list-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .list-layout { grid-template-columns: 1fr; } .list-layout aside { order: -1; } }
.shop { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.li input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.li label { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; cursor: pointer; }
.li-name { font-weight: 600; }
.li-amt { color: var(--ink-soft); }
.li-sub, .li-warn, .li-pick, .li-coco, .li-from { flex-basis: 100%; font-size: .85rem; }
.li-sub { color: var(--muted); font-style: italic; }
.li-warn { color: var(--warn-ink); }
.li-coco { color: var(--muted); }
.li-pick { color: var(--green); font-weight: 600; }
.li-from summary { color: var(--muted); cursor: pointer; }
.li-from div { color: var(--ink-soft); padding-left: 8px; }
.li.done { opacity: .5; }
.li.done .li-name { text-decoration: line-through; }
.wfm { flex: none; font-size: .8rem; font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.staples summary { cursor: pointer; list-style: none; }
.cart-recipes { list-style: none; padding: 0; margin: 0 0 10px; }
.cart-recipes li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cart-recipes a { color: var(--ink); text-decoration: none; }
.mult { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.mult button { font: inherit; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.mult .rm { color: var(--muted); }
.small { font-size: .85rem; }

/* Photos */
.card { overflow: hidden; }
.card-img { display: block; margin: -18px -18px 4px; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.ph-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; background: linear-gradient(135deg, var(--surface-2), var(--green-soft)); }
.save { background: var(--surface); border-radius: 999px; width: 36px; height: 36px; box-shadow: var(--shadow); z-index: 2; }
.card h3 { padding-right: 0; }

/* Recipe page */
.recipe { margin-top: 8px; }
.recipe-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; margin-bottom: 28px; }
@media (max-width: 860px) { .recipe-head { grid-template-columns: 1fr; gap: 16px; } }
.recipe-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); box-shadow: var(--shadow); }
.recipe-photo img, .recipe-photo .ph-fallback { width: 100%; height: 100%; object-fit: cover; display: flex; font-size: 5rem; }
.recipe-intro h1 { margin: 4px 0 6px; }
.by { color: var(--ink-soft); margin-bottom: 14px; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.recipe-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; min-width: 96px; }
.recipe-facts span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.recipe-facts b { font-size: 1.02rem; }
.recipe-intro .desc { font-size: 1.1rem; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recipe-actions .btn { text-decoration: none; }
.recipe-actions .add-list { margin-left: 0; font-size: .95rem; padding: 8px 14px; border-radius: 10px; }
.save-inline { position: static; width: auto; height: auto; box-shadow: none; font-size: 1.1rem; color: var(--accent); }
.recipe-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .recipe-body { grid-template-columns: 1fr; } }
.recipe-ings, .recipe-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.recipe-ings .note { margin-bottom: 8px; }
.recipe-side .btn { text-decoration: none; display: inline-block; }
.ings { list-style: none; padding: 0; margin: 10px 0 0; }
.ing { border-bottom: 1px solid var(--line); }
.ing:last-child { border-bottom: none; }
.ing input { position: absolute; opacity: 0; pointer-events: none; }
.ing label { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 10px 32px; position: relative; cursor: pointer; font-size: 1.05rem; }
.ing label::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 6px; background: var(--surface); }
.ing input:checked + label::before { background: var(--green); border-color: var(--green); }
.ing input:checked + label::after { content: "✓"; position: absolute; left: 4px; top: 10px; color: #fff; font-size: .9rem; font-weight: 700; }
.ing input:checked + label .ing-line { text-decoration: line-through; color: var(--muted); }
.ing input:focus-visible + label::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.ing-swap { font-size: .9rem; color: var(--swap-ink); background: var(--swap-bg); border-radius: 6px; padding: 1px 8px; align-self: flex-start; }
.ing-warn { font-size: .85rem; color: var(--warn-ink); }
.ing-warn.coco { color: var(--muted); }
a.tag { text-decoration: none; }
.print-only { display: none; }

.storage { margin: 16px 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.storage .recipe-facts div { min-width: 0; flex: 1 1 120px; }
.storage-table td, .storage-table th { font-size: .92rem; }

.pack { list-style: none; padding: 0; margin: 0 0 16px; font-size: .95rem; }
.pack li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.pack input { margin-top: 4px; accent-color: var(--green); }
.pack input:checked + label { text-decoration: line-through; color: var(--muted); }

/* Meal builder */
.builder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px; margin-bottom: 20px; }
.builder-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.builder-row .filter-label { min-width: 130px; }
.anchor-form { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.anchor-form input { flex: 1; min-width: 0; font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.meal-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.meal-head h2 { margin: 0; }
.meal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.meal-slot { display: flex; flex-direction: column; gap: 6px; }
.meal-slot .card { flex: 1; }
.slot-bar { display: flex; justify-content: space-between; align-items: center; }
.slot-btn { font-size: 1.05rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; cursor: pointer; margin-left: 4px; }
.slot-btn[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); }
@media (max-width: 600px) { .builder-row .filter-label { min-width: 100%; } }

.empty { text-align: center; padding: 50px 10px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0; font-size: .92rem; color: var(--ink-soft); }

@media print {
  .site-header, .allergen-bar, .site-footer, .save, .filters, .search, .no-print, .crumbs { display: none !important; }
  .print-only { display: block !important; }
  .recipe-head { grid-template-columns: 1fr 2fr; }
  .recipe-body { grid-template-columns: 1fr; }
  .recipe-photo { box-shadow: none; }
  .recipe-ings, .recipe-side, .recipe-facts div { border-color: #ccc; }
  .ing label::before { border-color: #999; }
  .card, .plan-hero, .side-panel { box-shadow: none; break-inside: avoid; }
  body { background: #fff; color: #000; }
}

/* ───────── Airy minimalist refinements ───────── */
body { line-height: 1.65; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h3 { font-weight: 500; }
main { padding-top: 44px; padding-bottom: 90px; }

.site-header { background: rgba(253,252,250,.85); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; }
.brand { font-weight: 500; letter-spacing: -.01em; }
.nav a { font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
.nav a:hover, .nav a.active { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav a.nav-em { font-weight: 500; }
@media (max-width: 1400px) { .nav { background: var(--bg); } }

.allergen-bar { background: transparent; border-bottom: 1px solid var(--line); font-size: .86rem; padding: 12px 0; color: var(--ink-soft); }
.allergen-bar strong { font-weight: 500; }
.chip { background: transparent; border-color: var(--line); color: var(--ink-soft); font-weight: 500; }
.chip::before { color: var(--accent); opacity: 1; }

.hero { margin: 24px 0 56px; gap: 48px; }
.hero p.lede { font-size: 1.12rem; line-height: 1.7; }
.stat { border: none; background: var(--surface-2); padding: 22px 12px; }
.stat b { font-weight: 400; color: var(--ink); font-size: 2.2rem; }

.search input { border-radius: 999px; padding: 13px 20px; background: var(--surface); border-color: var(--line); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(192,112,79,.10); }

.tiles { gap: 14px; margin-bottom: 64px; }
.tile { box-shadow: none; border-color: var(--line); padding: 22px 18px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: #d9d4ca; transform: translateY(-1px); }
.tile b { font-weight: 400; }

.section-head { margin: 52px 0 16px; }
.section-head a, .subnav a { font-weight: 500; }

.card, .plan-card, .plan-hero, .side-panel, .guide-sec, .recipe-ings, .recipe-side, .builder, .li { box-shadow: none; border-color: var(--line); }
.card { padding: 20px 20px 16px; gap: 10px; }
.card-img { margin: -20px -20px 6px; }
.card h3 { font-size: 1.22rem; font-weight: 400; }
.card .site { font-weight: 500; letter-spacing: .02em; font-size: .82rem; text-transform: uppercase; }
.card-actions { border-top: 1px solid var(--line); }
.note { border-radius: 10px; font-size: .88rem; }
.tag { background: transparent; border: 1px solid var(--line); }
.grid, .plan-grid, .meal-grid { gap: 22px; }
.group-title { border-bottom: 1px solid var(--line); margin-top: 48px; }
.save { box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.filter-btn { border-color: var(--line); background: var(--surface); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn { border-radius: 999px; font-weight: 500; padding: 9px 18px; }
.btn.ghost { background: transparent; }
.add-list[aria-pressed="true"] { background: var(--green-soft); }

.plan-card .band { background: transparent; border-bottom: 1px solid var(--line); }
.plan-card .band h3 { font-weight: 400; font-size: 1.4rem; }
.course-label, .plan-card .band .k { letter-spacing: .12em; font-weight: 600; font-size: .72rem; }

.recipe-photo { box-shadow: none; }
.recipe-facts div { background: transparent; }

.site-footer { background: transparent; }

.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: -24px 0 24px; }
.collection { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: linear-gradient(135deg, #fff, var(--surface-2)); }
.collection span { font-size: 2rem; }
.collection b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.collection p { margin: 2px 0 0; color: var(--ink-soft); font-size: .95rem; }
.collection:hover { border-color: #d9d4ca; }

.diy { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 24px; }
.diy h3 { font-size: 1rem; margin-bottom: 6px; }
.diy a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.diy a:hover { border-color: var(--accent); }

/* Build a meal: picker + anchor */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.pick { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .15s, transform .15s; }
.pick:hover { border-color: var(--accent); transform: translateY(-1px); }
.pick-img { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.pick-img img, .pick-img .ph-fallback { width: 100%; height: 100%; object-fit: cover; display: flex; }
.pick-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.pick-body b { font-family: var(--serif); font-weight: 400; font-size: 1.08rem; line-height: 1.25; }
.pick-cta { color: var(--accent); font-weight: 500; font-size: .9rem; margin-top: 4px; }
.anchor-hero { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center; margin: 4px 0 36px; }
@media (max-width: 760px) { .anchor-hero { grid-template-columns: 1fr; } }
.anchor-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; background: var(--surface-2); }
.anchor-photo img, .anchor-photo .ph-fallback { width: 100%; height: 100%; object-fit: cover; display: flex; font-size: 4rem; }
.anchor-hero .desc { font-size: 1.1rem; color: var(--ink-soft); }
.adjust { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 18px; }
.meal-head p { margin: 4px 0 0; max-width: 46em; }

/* Eating out */
.eo-tips { margin-bottom: 20px; }
.eo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.eo { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.eo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.eo-head h3 { margin: 0; font-weight: 400; font-size: 1.3rem; }
.eo-meta { font-size: .9rem; color: var(--ink-soft); }
.cov-row { display: flex; flex-wrap: wrap; gap: 4px; }
.cov { font-size: .75rem; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line); }
.cov.yes { color: var(--green); background: var(--green-soft); border-color: transparent; }
.cov.no { color: var(--warn-ink); background: var(--warn-bg); border-color: transparent; }
.eo .note ul { margin: 4px 0 0; padding-left: 18px; }
.eo-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.eo-actions .btn { text-decoration: none; }
.eo-head h3 a { color: var(--ink); text-decoration: none; }
.eo-head h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.eo[hidden] { display: none; }
.check-list { columns: 3 220px; list-style: none; padding: 0; }
.check-list li { padding: 5px 0; break-inside: avoid; }
.check-list li[hidden] { display: none; }
.check-list a { text-decoration: none; }
