/* Self-hosted fonts (SIL Open Font License, see fonts/LICENSES.txt) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-italic.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/courier-prime-400.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/courier-prime-700.woff2) format("woff2"); }
/* Direction A: Recipe box. Newsreader + Courier Prime, index cards and divider tabs. */
:root {
  --paper: #FAF6EF;
  --card: #FFFDF8;
  --ink: #2B2B2B;
  --soft: #6B645B;
  --accent: #C8553D;
  --meal: #5B7F5A;
  --coffee: #7A4E2D;
  --org: #4F6D8A;
  --bake: #C99A2E;
  --rule: rgba(79, 109, 138, .22);
  --serif: "Newsreader", Georgia, serif;
  --type: "Courier Prime", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(200, 85, 61, .5); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Masthead */
.top { padding: 26px 0 0; }
.top .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { font-size: 30px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; }
.brand i { font-weight: 400; color: var(--accent); }
.top-links { font-family: var(--type); font-size: 15px; display: flex; gap: 22px; }
.top-links a { text-decoration: none; }

/* Divider tabs, like a recipe box */
.tabs { margin-top: 22px; border-bottom: 2px solid var(--ink); }
.tabs .wrap { display: flex; gap: 6px; align-items: flex-end; }
.tab {
  font-family: var(--type); font-size: 15px; text-decoration: none; color: #fff;
  padding: 9px 18px 7px; border-radius: 7px 7px 0 0; position: relative; top: 2px;
}
.tab.meal { background: var(--meal); }
.tab.org { background: var(--org); margin-left: 24px; }
.tab.coffee { background: var(--coffee); margin-left: 48px; }
.tab.bake { background: var(--bake); color: var(--ink); margin-left: 72px; }
.tab:hover { color: #fff; filter: brightness(1.08); }
.tab.bake:hover { color: var(--ink); }

/* Lead: photo plus this week's card */
.lead { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; padding: 44px 0 64px; align-items: start; }
.lead figure { margin: 0; }
.lead figcaption { font-family: var(--type); font-size: 14px; color: var(--soft); margin-top: 10px; }
.lead h1 { font-size: 46px; line-height: 1.08; font-weight: 500; letter-spacing: -.015em; margin: 0 0 14px; }
.lead h1 a { text-decoration: none; }
.lead .standfirst { font-size: 21px; color: var(--soft); margin: 0 0 30px; font-style: italic; }

.index-card {
  background: var(--card);
  background-image: linear-gradient(to bottom, transparent 46px, var(--accent) 46px, var(--accent) 48px, transparent 48px);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 6px 14px -8px rgba(60,40,20,.25);
  padding: 12px 26px 26px; transform: rotate(-.6deg);
}
.index-card h2 { font-family: var(--type); font-size: 17px; font-weight: 700; margin: 0 0 22px; height: 30px; line-height: 30px; }
.index-card ol { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px); list-style: none; margin: 0; padding: 0; font-family: var(--type); font-size: 16px; line-height: 32px; }
.index-card li span { display: inline-block; width: 58px; color: var(--accent); }
.index-card .more { font-family: var(--type); font-size: 15px; display: inline-block; margin-top: 14px; }

/* Recipe box list */
.section-title { font-size: 15px; font-family: var(--type); font-weight: 400; color: var(--soft); margin: 0 0 6px; }
.box-list { border-top: 1px solid var(--ink); margin-bottom: 70px; }
.entry {
  display: grid; grid-template-columns: 140px 1fr 210px; gap: 28px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid rgba(43,43,43,.18); text-decoration: none;
}
.entry .kind { font-family: var(--type); font-size: 14px; }
.entry .kind::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 0; }
.kind.meal::before { background: var(--meal); } .kind.org::before { background: var(--org); }
.kind.coffee::before { background: var(--coffee); } .kind.bake::before { background: var(--bake); }
.entry h3 { font-size: 28px; line-height: 1.15; font-weight: 500; margin: 0 0 4px; }
.entry p { margin: 0; color: var(--soft); font-size: 17px; }
.entry.noimg { grid-template-columns: 140px 1fr; }
.entry img { width: 210px; height: 140px; object-fit: contain; object-position: right center; }  /* whole photo, no crop (food stays in frame) */
.entry:hover h3 { color: var(--accent); }

/* Dividers for the four topics */
.dividers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 72px; }
.divider { padding-top: 34px; position: relative; }
.divider .t {
  position: absolute; top: 0; height: 36px; padding: 7px 14px; border-radius: 7px 7px 0 0;
  font-family: var(--type); font-size: 15px; color: #fff;
}
.divider:nth-child(1) .t { left: 0; background: var(--meal); }
.divider:nth-child(2) .t { left: 22%; background: var(--org); }
.divider:nth-child(3) .t { left: 44%; background: var(--coffee); }
.divider:nth-child(4) .t { right: 0; background: var(--bake); color: var(--ink); }
.divider .body { padding: 18px 18px 20px; min-height: 210px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.divider:nth-child(1) .body { background: color-mix(in srgb, var(--meal) 14%, var(--card)); }
.divider:nth-child(2) .body { background: color-mix(in srgb, var(--org) 14%, var(--card)); }
.divider:nth-child(3) .body { background: color-mix(in srgb, var(--coffee) 12%, var(--card)); }
.divider:nth-child(4) .body { background: color-mix(in srgb, var(--bake) 18%, var(--card)); }
.divider ul { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.35; }
.divider li + li { margin-top: 10px; }

/* Planner teaser */
.planner { display: grid; grid-template-columns: 4fr 6fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 2px solid var(--ink); }
.planner h2 { font-size: 38px; line-height: 1.1; font-weight: 500; margin: 0 0 12px; }
.planner p { margin: 0 0 18px; color: var(--soft); }
.btn { display: inline-block; font-family: var(--type); font-size: 16px; background: var(--ink); color: var(--paper); padding: 12px 20px; text-decoration: none; border-radius: 3px; }
.btn:hover { background: var(--accent); color: #fff; }
.week { width: 100%; border-collapse: collapse; font-family: var(--type); font-size: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.week th, .week td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.week th { font-weight: 700; background: #F3EDE2; }
.week td.f { color: var(--accent); }

footer { border-top: 1px solid rgba(43,43,43,.25); padding: 26px 0 40px; font-family: var(--type); font-size: 14px; color: var(--soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.proto-note { background: #EDE6D8; font-family: var(--type); font-size: 13px; padding: 6px 0; color: var(--soft); }

/* ---------- Recipe page ---------- */
.crumbs { font-family: var(--type); font-size: 14px; color: var(--soft); margin: 34px auto 14px; max-width: 720px; text-align: center; }
.post-head { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.post-head h1 { font-size: 54px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; margin: 0 0 16px; }
.post-head .standfirst { font-size: 22px; font-style: italic; color: var(--soft); margin: 0; }
.facts { font-family: var(--type); font-size: 15px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted rgba(43,43,43,.3); }
.facts div:last-child { border-bottom: 0; }
.jump { display: inline-block; margin-top: 16px; font-family: var(--type); font-size: 15px; border: 1px solid var(--ink); padding: 7px 14px; text-decoration: none; color: var(--ink); }
.jump:hover { background: var(--ink); color: var(--paper); }
.post-photo { margin: 40px 0 0; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.post-photo img { width: 100%; height: auto; }
.post-photo figcaption { font-family: var(--type); font-size: 14px; color: var(--soft); }
.post-body { display: grid; grid-template-columns: 1fr 640px 1fr; padding: 40px 0 10px; }
.post-body > * { grid-column: 2; }
.post-body p { margin: 0 0 1.1em; }
.post-body h2 { font-size: 30px; font-weight: 500; line-height: 1.2; margin: 1.4em 0 .4em; }
.post-body h3 { margin: 1.6em 0 .3em; font-weight: 600; }
.aside { max-width: 230px; grid-column: 3 !important; font-family: var(--type); font-size: 14px; color: var(--soft); padding-left: 28px; align-self: start; }

.recipe-card {
  max-width: 900px; margin: 64px auto 70px; background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 24px -14px rgba(60,40,20,.35);
  --pad: 40px; padding: 22px var(--pad) 36px; scroll-margin-top: 16px;
}
/* The red rule is the header's border, so a title that wraps pushes it and the card down (3 Dec). */
.recipe-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  min-height: 54px; margin: 0 calc(-1 * var(--pad)) 6px; padding: 0 var(--pad) 8px;
  border-bottom: 2px solid var(--accent); }
.recipe-card header h2 { font-family: var(--type); font-size: 22px; margin: 0; }
.recipe-card .meta { font-family: var(--type); font-size: 14px; color: var(--soft); margin: 10px 0 0; }
.recipe-card .print { font-family: var(--type); font-size: 14px; background: none; border: 1px solid var(--ink); padding: 6px 12px; cursor: pointer; color: var(--ink); }
.recipe-card .print:hover { background: var(--ink); color: var(--paper); }
.recipe-cols { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; margin-top: 28px; }
.recipe-cols h3 { font-family: var(--type); font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.ingredients { list-style: none; padding: 0; margin: 0; font-family: var(--serif); font-size: 17px;
  line-height: 1.35; }
.ingredients li { border-bottom: 1px solid var(--rule); padding: 6px 0; }  /* one rule per complete item (3 Dec) */
.steps { margin: 0; padding-left: 1.3em; }
.steps li { margin-bottom: 14px; padding-left: 6px; }
.steps li::marker { font-family: var(--type); color: var(--accent); }
.store { margin-top: 24px; font-family: var(--serif); font-size: 17px; border-top: 1px dotted rgba(43,43,43,.35); padding-top: 14px; }

@media (max-width: 900px) {
  body { font-size: 18px; }
  .lead, .planner, .post-head, .recipe-cols { grid-template-columns: 1fr; gap: 28px; }
  .lead h1 { font-size: 36px; }
  .post-head h1 { font-size: 38px; }
  .entry { grid-template-columns: 1fr 110px; gap: 16px; }
  .entry .kind { grid-column: 1 / -1; }
  .entry img { width: 110px; height: 90px; grid-column: 2; grid-row: 2; }
  .entry h3 { font-size: 22px; }
  .dividers { grid-template-columns: 1fr 1fr; }
  .tabs .wrap { overflow-x: auto; }
  .tab { white-space: nowrap; }
  .tab.org, .tab.coffee, .tab.bake { margin-left: 0; }
  .post-photo { grid-template-columns: 1fr; gap: 10px; }
  .post-body { grid-template-columns: 1fr; } .post-body > *, .aside { grid-column: 1 !important; padding-left: 0; }
  .recipe-card { --pad: 20px; padding: 20px var(--pad) 28px; margin: 48px -8px 50px; }
  .post-body ul, .post-body ol { padding-left: 1.4em; }
  .post-body ul.ingredients { padding-left: 0; }
}
@media (max-width: 560px) { .dividers { grid-template-columns: 1fr; } .top-links { display: none; } }
@media print {
  .top, .tabs, .crumbs, .post-head, .post-photo, .post-body, footer, .proto-note, .print { display: none !important; }
  body { background: #fff; } .recipe-card { box-shadow: none; margin: 0; }
}
.lead-img { width: 100%; height: auto; }
.tabs .wrap { scrollbar-width: none; }
.planner > * { min-width: 0; }
@media (max-width: 900px) { .week { display: block; overflow-x: auto; font-size: 13px; }  .index-card { transform: none; } }

/* Site additions (30 Nov) */
.tab.on { box-shadow: inset 0 -4px 0 rgba(0,0,0,.22); }
a.t { text-decoration: none; }
.divider .soon, .soon-big { color: var(--soft); font-style: italic; }
.entry .flag, .related .flag, .draft-note { font-family: var(--type); font-size: 14px; font-style: normal; color: #fff; background: var(--accent); padding: 2px 6px; vertical-align: middle; }
.draft-note { display: block; margin-top: 16px; padding: 10px 14px; }
.topic-head { padding: 44px 0 26px; }
.topic-head h1 { font-size: 54px; line-height: 1.05; font-weight: 500; margin: 0 0 8px; letter-spacing: -.015em; }
.topic-head .standfirst { font-size: 21px; font-style: italic; color: var(--soft); margin: 0; }
.page { max-width: 700px; padding-top: 44px; padding-bottom: 70px; }
.page h1 { font-size: 46px; line-height: 1.1; font-weight: 500; margin: 0 0 20px; }
.page h2 { font-size: 26px; font-weight: 500; margin: 1.6em 0 .4em; }
.page p, .page li { margin: 0 0 1em; }
.slot { background: #EDE6D8; font-family: var(--type); font-size: 15px; padding: 2px 4px; }
.page .updated { font-family: var(--type); font-size: 14px; color: var(--soft); }
footer .amazon { margin: 14px 0 0; }
.week caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--soft); padding-top: 8px; }
.post-split { display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: start; margin: 40px 0 10px; }
.split-photo { margin: 0; }
.split-photo img { width: 100%; height: auto; }
.split-photo figcaption { font-family: var(--type); font-size: 14px; color: var(--soft); margin-top: 10px; }
.post-text p { margin: 0 0 1.1em; }
.post-text h2 { font-size: 30px; font-weight: 500; margin: 1.3em 0 .4em; }
.post-text .side-note { font-family: var(--type); font-size: 15px; color: var(--soft); border-top: 1px dotted rgba(43,43,43,.35); padding-top: 14px; margin-top: 28px; }
@media (max-width: 900px) { .post-split { grid-template-columns: 1fr; gap: 24px; } }

/* Week planner */
.planner-page { padding-top: 44px; padding-bottom: 70px; }
.planner-page > h1 { font-size: 54px; line-height: 1.05; font-weight: 500; letter-spacing: -.015em; margin: 0 0 18px; }
.planner-top { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.planner-top .standfirst { font-size: 22px; font-style: italic; color: var(--soft); margin: 0 0 16px; }
.small-note { font-family: var(--type); font-size: 14px; color: var(--soft); }
.plan-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.plan-form h2 { grid-column: 1 / -1; margin-bottom: 6px; }
.plan-form label { font-family: var(--type); font-size: 14px; display: block; }
.plan-form select { display: block; width: 100%; margin-top: 4px; font: 16px var(--serif); padding: 7px 8px; border: 1px solid rgba(43,43,43,.5); border-radius: 3px; background: #fff; color: var(--ink); }
.plan-form .btn { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; margin-top: 6px; }
.plan-note { grid-column: 1 / -1; font-family: var(--type); font-size: 15px; color: var(--accent); margin: 0; }
.plan-results { margin-top: 60px; }
.plan-cols { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; margin-bottom: 50px; }
.plan-cols .index-card:nth-child(2) { transform: rotate(.5deg); }
.plan-results .index-card ol li { display: grid; grid-template-columns: 86px 1fr; line-height: 1.5; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.plan-results .index-card ol { background: none; line-height: 1.5; }
.plan-results .index-card li span { width: auto; }
.plan-results h3 { font-family: var(--type); font-size: 15px; margin: 14px 0 4px; }
.plan-results .ingredients label { cursor: pointer; }
.plan-results .ingredients input { accent-color: var(--accent); }
.plan-results .week td { min-width: 120px; }
.plan-results .btn { border: 0; cursor: pointer; margin-top: 10px; }
@media (max-width: 900px) {
  .planner-top, .plan-cols, .plan-form { grid-template-columns: 1fr; gap: 20px; }
  .planner-page > h1 { font-size: 38px; }
}
@media print {
  .planner-page > h1, .planner-top, .plan-results .btn, .proto-note { display: none !important; }
  .plan-results { margin: 0; } .index-card { box-shadow: none; transform: none !important; border: 1px solid #999; }
  .plan-cols { grid-template-columns: 1fr 1fr; }
  .top, .tabs, footer { display: none !important; }
}

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 560px; margin-top: 24px; }
.contact-form label { font-family: var(--type); font-size: 14px; display: block; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 4px; font: 17px/1.4 var(--serif); padding: 9px 10px; border: 1px solid rgba(43,43,43,.5); border-radius: 3px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus, .plan-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-family: var(--type); font-size: 15px; color: var(--accent); margin: 0; }
.form-done { font-size: 20px; font-style: italic; }

/* Product picks (affiliate) */
.aff-note { font-family: var(--type); font-size: 14px; color: var(--soft); margin: 18px auto 0; max-width: 820px; text-align: center; }
.picks { max-width: 760px; margin: 36px auto; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.12);
  background-image: linear-gradient(to bottom, transparent 54px, var(--accent) 54px, var(--accent) 56px, transparent 56px); padding: 16px 30px 10px; }
.picks h2 { font-family: var(--type); font-size: 18px; font-weight: 700; margin: 0 0 26px; height: 30px; line-height: 30px; }
.picks ul { list-style: none; margin: 0; padding: 0; }
.pick { padding: 16px 0; border-bottom: 1px dotted rgba(43,43,43,.35); }
.pick:last-child { border-bottom: 0; }
.pick.has-img { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; }
.pick img { width: 110px; height: 110px; object-fit: contain; }
.pick h3 { font-size: 22px; font-weight: 500; line-height: 1.2; margin: 0 0 4px; }
.pick p { margin: 0 0 10px; color: var(--soft); font-size: 17px; }
.pick-btn { display: inline-block; font-family: var(--type); font-size: 15px; border: 1px solid var(--ink); padding: 7px 14px; text-decoration: none; color: var(--ink); }
.pick-btn:hover { background: var(--ink); color: var(--paper); }
.pick-btn.off { opacity: .45; }
@media (max-width: 900px) { .picks { padding: 14px 18px 6px; margin: 28px -8px; } }
@media print { .picks, .aff-note { display: none !important; } }
.pick .look { color: var(--ink); margin-bottom: 6px; }
.pick .lbl { font-family: var(--type); font-size: 14px; color: #A9442F; margin-right: 6px; }

/* Article layout tidy-up (3 Dec, after the chicken and rice layout grade).
   Facts box and picks box line up with the 640px text column and photos.
   On phones the ingredient list uses the reading font, so lines wrap less. */
.post-head .facts, .post-facts .facts { max-width: 640px; margin-left: auto; margin-right: auto; }
.picks { max-width: 640px; }
@media (max-width: 900px) { .picks { max-width: none; } }
@media (max-width: 600px) { .ingredients { font-size: 18px; } }

/* Layout grade fixes 8-10 (4 Dec). */
/* 10: facts side by side on wider screens, label small on top, value under it; stacked on phones. */
@media (min-width: 601px) {
  .post-facts .facts { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center !important; }
  .post-facts .facts div { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 10px 8px; border-bottom: 0; border-left: 1px dotted rgba(43,43,43,.3); }
  .post-facts .facts div:first-child { border-left: 0; }
  .post-facts .facts div span:first-child { font-size: 13px; color: var(--soft); }
}
@media (max-width: 600px) {
  /* 8: smaller topic tabs that wrap instead of running off the screen */
  .tabs .wrap { flex-wrap: wrap; overflow-x: visible; row-gap: 4px; }
  .tab { font-size: 13px; padding: 6px 10px 5px; }
  /* 9: smaller recipe card title and step indent */
  .recipe-card header h2 { font-size: 18px; }
  .steps { padding-left: 1.1em; }
  .steps li { padding-left: 2px; }
}

/* Second layout grade (4 Dec). */
main > .wrap:last-child > .post-body { padding-bottom: 50px; }
@media (max-width: 600px) {
  .post-body h2 { font-size: 25px; }
  .post-head .standfirst { font-size: 19px; }
  .aff-note { font-size: 13px; }
}

/* Third layout grade (4 Dec). */
.post-body ul.ingredients, .post-body ol.steps { margin-bottom: 1.1em; }
@media (max-width: 600px) {
  /* more of the top photo on the first screen */
  .crumbs { display: none; }
  .post-head { margin-top: 18px !important; }  /* inline margin on the recipe pages; keeps the title off the affiliate line once the crumbs are hidden */
  .aff-note { margin-top: 6px; }
  .post-photo { margin-top: 18px !important; }
  /* tabs as an even 2 x 2 grid */
  .tabs .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .tab { text-align: center; }
  /* footer links easier to tap */
  footer nav { row-gap: 8px; }
  footer nav a { padding: 4px 0; }
}

/* Fourth layout grade (4 Dec). */
/* Lists sit as close to their heading as paragraphs do. */
.post-body h2 + ul, .post-body h2 + ol, .post-body h3 + ul, .post-body h3 + ol { margin-top: 0; }
/* "Storing" label in the recipe card: the dotted rule moves above the label. */
.recipe-cols .steps + h3 { margin-top: 24px; padding-top: 14px; border-top: 1px dotted rgba(43,43,43,.35); }
.recipe-cols h3 + .store { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 600px) { .recipe-card .print { padding: 11px 14px; min-height: 44px; } }
/* More from the recipe box (the <related> tag) */
.related { margin: 2.2em 0 0; }
.related h2 { font-family: var(--type); font-size: 15px; font-weight: 400; color: var(--soft); margin: 0 0 6px; }
.post-body .related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.related li { border-bottom: 1px solid rgba(43,43,43,.18); }
.related li a { display: flex; align-items: center; gap: 18px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.related img { width: 96px; height: 64px; object-fit: contain; object-position: left center; flex: none; }
.related span { font-size: 21px; line-height: 1.2; }
.related li a:hover span { color: var(--accent); }
.related .rel-more { display: inline-block; margin-top: 12px; font-family: var(--type); font-size: 15px; }
@media (max-width: 600px) { .related img { width: 80px; height: 54px; } .related span { font-size: 19px; } }

/* Fifth layout grade (4 Dec). */
.post-head h1 { text-wrap: balance; }
.post-body h2[id] { scroll-margin-top: 16px; }
.post-body h2 + figure { margin-top: 2px !important; }   /* grid: margins add, so 12px (h2) + 2px = 14px gap; figures carry an inline 32px margin */
.post-body figure + h3 { margin-top: 11px; }               /* same 43px gap as an h3 after a paragraph (grade 6 spacing) */
.steps { padding-left: 1.8em; }
.steps li::marker { color: #A9442F; }
/* Desktop: the ingredients stay in view while you read the steps (only when the screen is tall enough to show them). */
@media (min-width: 901px) and (min-height: 760px) {
  .recipe-cols > div:first-child { position: sticky; top: 16px; align-self: start; }
}
@media print {
  .recipe-cols > div:first-child { position: static; }
  .post-facts, .draft-note, .related { display: none !important; }
}
/* Tablet: keep the 640px text column the photos use. */
@media (max-width: 900px) {
  .post-body { grid-template-columns: minmax(0, 640px); justify-content: center; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .picks { max-width: 640px; margin-left: auto; margin-right: auto; }
}
/* Phones: top links stay visible on their own short line, and bigger tap targets. */
@media (max-width: 560px) {
  .top-links { display: flex; width: 100%; font-size: 13px; gap: 18px; margin-top: 2px; }
  .tabs { margin-top: 12px; }
  .top { padding-top: 18px; }
  .top .wrap { row-gap: 2px; }
}
@media (max-width: 600px) {
  .tab { padding: 10px 10px 9px; }
  .jump, .pick-btn { padding: 10px 14px; }
  .related .rel-more { padding: 10px 0; }
  .steps { padding-left: 1.7em; }
}

/* Sixth layout grade (4 Dec). */
/* 2: numbered lists in the article body keep the steps indent (the 900px ".post-body ol" rule was undoing it). */
.post-body ol.steps { padding-left: 1.8em; }
@media (max-width: 600px) { .post-body ol.steps { padding-left: 1.7em; } }
/* 3: less space above sub-headings, and smaller ones on phones, so they read as a step below the h2s. */
.post-body > h3 { margin-top: 1em; }
@media (max-width: 600px) { .post-body > h3 { font-size: 20px; } }
/* 4: balanced line breaks on headings that can wrap. */
.post-body h2, .pick h3, .recipe-card header h2 { text-wrap: balance; }
/* 10: intro line on the same 640px measure as the body text. */
.post-head .standfirst { max-width: 640px; margin-left: auto; margin-right: auto; }
/* 11: solid "See it on Amazon" buttons; the "no link yet" version stays a faded outline. */
.pick-btn { background: var(--ink); color: var(--paper); }
.pick-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-btn.off, .pick-btn.off:hover { background: none; border-color: var(--ink); color: var(--ink); opacity: .45; cursor: default; }
/* 6: tablets only, ingredients in two columns. */
@media screen and (min-width: 601px) and (max-width: 900px) {
  .recipe-card .ingredients { columns: 2; column-gap: 32px; }
  .recipe-card .ingredients li { break-inside: avoid; }
}
/* 7: bigger tap area for the phone header links. */
@media (max-width: 560px) { .top-links a { padding: 10px 0; } }
/* 5: the printed recipe card fits one US Letter page. */
@media print {
  body { font-size: 14px; }
  .recipe-card { padding: 0; }
  .recipe-card header { margin: 0 0 6px; padding: 0 0 8px; min-height: 0; }
  .recipe-cols { grid-template-columns: 5fr 7fr; gap: 28px; margin-top: 16px; }
  .ingredients, .store { font-size: 13px; }
  .steps li { margin-bottom: 8px; }
}
/* Picks box straight after the recipe card: even gaps card / picks / next section. */
.wrap:has(> .recipe-card):has(+ .wrap > .picks) > .recipe-card { margin-bottom: 0; }
.wrap:has(> .recipe-card) + .wrap > .picks { margin-top: 56px; margin-bottom: 56px; }
@media (max-width: 900px) { .wrap:has(> .recipe-card) + .wrap > .picks { margin-top: 40px; margin-bottom: 40px; } }

/* Seventh layout grade (4 Dec). */
/* Item 1 (article change): the intro now sits under the photo in .post-dek.
   Gaps: jump button to photo 28px (18px on phones), photo to intro 22px, intro to facts 24px. */
.post-photo { margin-top: 28px !important; }
.post-head.post-dek { margin-top: 22px !important; }
.post-dek + .post-facts { margin-top: 24px !important; }
@media (max-width: 600px) {
  .post-photo { margin-top: 18px !important; }
  .post-dek + .post-facts { margin-top: 20px !important; }
}
/* 2: balanced line breaks on the intro. */
.post-head .standfirst { text-wrap: balance; }
/* 4: title size on tablets. */
@media (min-width: 601px) and (max-width: 900px) { .post-head h1 { font-size: 46px; } }
/* 5: the tab you're on is bold with a slightly stronger band. */
.tab.on { font-weight: 700; box-shadow: inset 0 -5px 0 rgba(0,0,0,.28); }
/* 6: sauce ingredient lists in the article body in two columns above 600px. */
@media screen and (min-width: 601px) {
  .post-body ul.ingredients { columns: 2; column-gap: 32px; }
  .post-body ul.ingredients li { break-inside: avoid; }
}
/* 7: stopgap until the 3:2 thumbs, centre the square thumbs in their frame. */
.related img { object-position: center; }
/* 8: balanced line breaks on the affiliate note. */
.aff-note { text-wrap: balance; }
/* 9: bigger footer tap targets on phones. */
@media (max-width: 600px) { footer nav a { padding: 10px 0; } }

/* Guide pages (first one: fridge zones; 4 Dec). */
/* 4: zone sub-headings break into even lines. */
.post-body > h3 { text-wrap: balance; }
/* 5: a lead-in paragraph sits as close to its list as paragraphs sit to each other. */
.post-body p + ul, .post-body p + ol { margin-top: 0; }
/* 2: tablets keep the cheat sheet a real table, so the rows fill its box. */
@media (min-width: 601px) and (max-width: 900px) { .post-body .week { display: table; } }
/* 3: cheat sheet text closer to the body size on phones and tablets. */
@media (max-width: 900px) { .post-body .week { font-size: 15px; } }
/* 1: printing a page with no recipe card.
   With a table in the body: print just the table(s) and the heading right above each one.
   With no table: print the article text without photos. */
@media print {
  body:not(:has(.recipe-card)) .post-body { display: block !important; padding: 0; }
  body:not(:has(.recipe-card)) .post-body figure { display: none !important; }
  body:not(:has(.recipe-card)):has(.post-body .week) .post-body > :not(.week):not(:has(+ .week)) { display: none !important; }
  .post-body .week { display: table !important; font-size: 15px; box-shadow: none; }
  .post-body h2:has(+ .week) { margin: 0 0 12px; }
}

/* Table fixes (4 Dec, from the spacing report and the Sunday meal plan layout grade).
   Tested on all 16 pages with tables at 375, 768, 1024 and 1440, and in print. */
/* 1: a paragraph or list right after a table gets the normal paragraph gap (it was 0). Headings after a table are unchanged. */
.post-body .week + p, .post-body .week + ul, .post-body .week + ol { margin-top: 1.1em; }
/* 2: table text 15px at every width (it was 14px on desktop, 15px below 900px). */
.post-body .week { font-size: 15px; }
/* 3: table headers stay on one line on tablets and desktops ("Store section" wrapped). Not on phones: it made tables taller there. */
@media (min-width: 601px) { .post-body .week th { white-space: nowrap; } }
/* 4: phones. Tighter cells, and schedule tables (class="week steps") show each time as a bold line above its step. */
@media (max-width: 600px) {
  .post-body .week th, .post-body .week td { padding: 8px 8px; }
  .week.steps thead { display: none; }
  .week.steps, .week.steps tbody, .week.steps tr, .week.steps td { display: block; }
  .week.steps td:first-child { font-weight: 700; border-bottom: 0; padding-bottom: 0; }
  .week.steps td:last-child { border-top: 0; padding-top: 2px; }
}
/* 5: print, pages with a table and no recipe card. The page title prints (smaller, no jump button), table rows never split
   across pages, and nothing trailing adds a blank last page. Recipe card prints are unchanged. */
@media print {
  .post-body .week tr { break-inside: avoid; }
  .post-body .week th, .post-body .week td { padding: 6px 8px; }
  body:not(:has(.recipe-card)):has(.post-body .week) .post-head:not(.post-dek) { display: block !important; margin: 0 !important; }
  body:not(:has(.recipe-card)):has(.post-body .week) .post-head .jump { display: none !important; }
  body:not(:has(.recipe-card)):has(.post-body .week) .post-head h1 { font-size: 26px; margin: 0 0 10px; }
  main, main > .wrap, .post-body { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .post-body > .week { margin-bottom: 0; }
  html, body { height: auto !important; }
}

/* Ideas roundup layout grade (small-kitchen-organization; 4 Dec). */
/* 1: the gap from an h3 down to its photo was 24-35px, more than double the gap under an h2 (12-14px). Now 14-15px at every width. */
.post-body h3 + figure { margin-top: 8px !important; }
/* 2: print, pages with a table and no recipe card. When a lead-in paragraph sits between a heading and its table,
   print the heading and leave the lead-in out, so the printed chart starts with its own heading, not mid-thought. */
@media print {
  body:not(:has(.recipe-card)):has(.post-body .week) .post-body > h2:not(.week):has(+ p + .week) { display: block !important; margin: 0 0 12px; }
  body:not(:has(.recipe-card)):has(.post-body .week) .post-body > h2:not(.week) + p:not(.week):has(+ .week) { display: none !important; }
}

/* Product pin landing (4 Dec). Product pins link to <slug>#picks;
   leave the same 16px gap above the box as the other jump targets. */
#picks { scroll-margin-top: 16px; }

/* Cookie choice bar (4 Dec). Shown only on the live site, only to UK and EU visitors who haven't chosen yet,
   by the short script at the end of each page. Same look as the site's buttons; 44px tap targets; never printed. */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 720px; margin: 0 auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 3px;
  box-shadow: 0 6px 24px rgba(43, 43, 43, .18); padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.consent p { margin: 0; flex: 1 1 280px; font-size: 16px; line-height: 1.45; }
.consent div { display: flex; gap: 8px; flex-wrap: wrap; }
.consent button { font-family: var(--type); font-size: 15px; min-height: 44px; padding: 8px 16px; border-radius: 3px; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.consent button[data-a="no"] { background: transparent; color: var(--ink); }
.consent button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media print { .consent { display: none !important; } }
