/* Gluten-free recipes – one stylesheet, no framework. Mobile first. */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --tint: #fff6ec;
  --ink: #241a12;
  --ink-2: #4a3d31;
  --muted: #76675a;
  --line: #ece2d4;
  --accent: #b9440f;        /* AA on white and on --bg */
  --accent-dark: #93340a;
  --accent-soft: #fdeadb;
  --gold: #f2a93b;
  --green: #2f6b3a;
  --green-soft: #e8f3e6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(36, 26, 18, .06);
  --shadow: 0 1px 2px rgba(36, 26, 18, .05), 0 8px 24px -8px rgba(36, 26, 18, .14);
  --shadow-lg: 0 2px 4px rgba(36, 26, 18, .05), 0 18px 40px -12px rgba(36, 26, 18, .22);
  --wrap: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 1.6em 0 .55em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); margin-top: .35em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h1 small { display: block; font: 600 1rem var(--sans); color: var(--muted); margin-top: .4em; letter-spacing: 0; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -3rem; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: .5rem; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 24px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center-block { text-align: center; padding-block: 2rem; }
.muted, .hint { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
main { display: block; min-height: 60vh; outline: none; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 1em; height: 1em; }

/* ---------- Buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55em 1.25em; border: 2px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff; font: 650 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s; box-shadow: 0 6px 16px -8px rgba(185, 68, 15, .7); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--accent); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-dark); }
.btn-icon { width: 46px; padding: 0; }
.btn-sm { min-height: 38px; padding: .3em 1em; font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0; }
.chips a { display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: .35em 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 550; box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips span { color: var(--muted); font-size: .8em; font-weight: 600; background: var(--bg); border-radius: 999px; padding: 0 .45em; }
.chips a[aria-current] span { color: var(--ink); background: #f3e9dc; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .75rem 0; }
.badges li { font-size: .78rem; font-weight: 650; padding: .2em .7em; border-radius: 999px; background: var(--green-soft); color: var(--green); letter-spacing: .01em; }
.badges .b-gf { background: var(--accent-soft); color: #8a2f08; }
.badges .b-vg { background: #dff0dc; color: #1f5127; }
.badges .b-lc { background: #f1ede7; color: #5f5246; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.hdr { display: flex; align-items: center; gap: .75rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 700 1.12rem var(--serif); min-width: 0; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-search { display: none; flex: 1; max-width: 440px; margin-left: auto; position: relative; }
.hdr-search input { width: 100%; min-height: 44px; padding: .4em 3em .4em 1.1em; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.hdr-search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.hdr-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hdr-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.hdr-icon:hover { background: var(--accent-soft); color: var(--accent); }
.only-mobile { margin-left: auto; }
.site-nav { border-top: 1px solid var(--line); display: none; background: #fff; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 auto; padding-block: .5rem; display: flex; flex-direction: column; }
.site-nav a { display: block; padding: .75rem .25rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a[aria-current] { color: var(--accent); }
@media (min-width: 900px) {
  .hdr-search { display: block; }
  .only-mobile, .nav-toggle { display: none; }
  .site-nav { display: block; background: transparent; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: .25rem; padding-block: .35rem; }
  .site-nav a { padding: .4rem .85rem; font-size: .95rem; border-radius: 999px; }
  .site-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
  .site-nav a[aria-current] { background: var(--ink); color: #fff; }
  .site-nav .sep { margin-left: auto; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1rem auto 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: #bcae9d; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Card grid ---------- */
.grid { list-style: none; padding: 0; margin: 1.25rem 0 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card > a { color: var(--ink); text-decoration: none; display: block; }
.card > a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f1e7d8; transition: transform .4s; }
.card:hover .card-img { transform: scale(1.03); }
.card-title { font: 700 1.02rem/1.3 var(--sans); margin: .8rem .9rem .35rem; letter-spacing: -.005em; }
.card:hover .card-title { color: var(--accent); }
.card-meta { display: flex; align-items: center; gap: .35rem; margin: 0 .9rem; color: var(--muted); font-size: .85rem; }
.card-meta .i + span + .i { margin-left: .5rem; }
.card .badges { margin: .5rem .9rem .9rem; }
.card .badges li { font-size: .72rem; }

/* ---------- Home ---------- */
.hero-home { background: radial-gradient(1200px 400px at 85% -10%, #fbd9b9 0%, transparent 60%), linear-gradient(180deg, #fdeee0 0%, var(--bg) 100%); padding: 2rem 0 1.5rem; }
.hero-home h1 { margin-top: .2em; max-width: 20ch; }
.big-search { display: flex; gap: .5rem; max-width: 660px; margin: 1.4rem 0 .6rem; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); }
.big-search input { flex: 1; min-width: 0; min-height: 48px; padding: .5em 1.1em; border: 0; border-radius: 999px; font: inherit; background: transparent; color: var(--ink); }
.big-search input:focus { outline: none; }
.big-search:focus-within { box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft); }
.big-search .btn { min-height: 48px; box-shadow: none; }
.center-block .big-search { margin-inline: auto; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sec-head a { font-weight: 650; white-space: nowrap; text-decoration: none; }
.tiles { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tiles a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.tiles img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1e7d8; transition: transform .4s; }
.tiles a:hover img { transform: scale(1.05); }
.tiles a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20, 12, 4, .78)); }
.tile-label, .tile-count { position: absolute; left: .9rem; z-index: 1; }
.tile-label { bottom: 1.7rem; font: 700 1.2rem var(--serif); }
.tile-count { bottom: .6rem; font-size: .8rem; opacity: .92; }
.posts { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .posts:not(.posts-col) { grid-template-columns: repeat(3, 1fr); } }
.posts a { display: block; height: 100%; padding: 1.1rem 1.25rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border-top: 4px solid var(--gold); }
.posts h2, .posts h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.posts a:hover h2, .posts a:hover h3 { color: var(--accent); }
.posts p { margin: 0; color: var(--muted); font-size: .93rem; }
.guide details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .2rem 1.1rem; margin-bottom: .6rem; }
.guide summary { cursor: pointer; font-weight: 700; padding: .8rem 0; }

/* ---------- Listing ---------- */
.list-head { padding-bottom: .25rem; }
.about-cat { border-top: 1px solid var(--line); margin-top: 1rem; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 2rem; }
.pager ol { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Prose (imported rich text) ---------- */
.prose > * { max-width: 760px; }
.prose.narrow > *, .narrow .prose > * { max-width: none; }
.prose.intro > *, .prose.panel > * { max-width: none; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose h4 { font: 700 1rem var(--sans); margin: 1.2em 0 .4em; }
.prose table, .table-scroll table { border-collapse: collapse; width: 100%; font-size: .93rem; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.table-scroll { overflow-x: auto; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 16px 1rem; margin-block: 1.5rem; width: calc(100% - 32px); max-width: calc(var(--wrap) - 48px); }
@media (min-width: 700px) { .panel { padding: 1.75rem 2rem 1.25rem; } }
.panel h2:first-child { margin-top: 0; display: flex; align-items: center; gap: .5rem; }
.panel h2 .i { color: var(--accent); }
.panel > * { max-width: 820px; }

/* ---------- Recipe page ---------- */
.recipe-hero { display: grid; gap: 1.25rem; padding-top: .5rem; }
@media (min-width: 1000px) { .recipe-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; padding-top: 1rem; } .recipe-hero.no-cover { grid-template-columns: 1fr; } }
.rh-text h1 { margin: .35em 0 .4em; }
.kicker { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; font-size: .8rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.kicker a { color: var(--accent); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.rh-img { margin: 0; position: relative; }
.rh-img::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: calc(var(--radius) + 6px); background: var(--accent-soft); z-index: -1; }
.rh-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); background: #f1e7d8; }
@media (max-width: 999px) { .rh-img::before { display: none; } .rh-img { margin-inline: -16px; } .rh-img img { border-radius: 0; box-shadow: none; } }
@media (min-width: 700px) and (max-width: 999px) { .rh-img { margin-inline: 0; } .rh-img img { border-radius: var(--radius); } }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0 0; }
.facts { list-style: none; margin: 1.75rem 0 0; padding: .9rem 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 1.1rem 1.5rem; } }
.facts li { display: flex; align-items: center; gap: .7rem; }
.facts .i { width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.facts span { display: flex; flex-direction: column; line-height: 1.25; }
.facts small { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }
.facts b { font-size: 1.02rem; }
.intro { margin-top: 2rem; font-size: 1.06rem; }
.note { display: flex; gap: .6rem; align-items: flex-start; background: var(--tint); border: 1px solid #f6dcc3; padding: .8rem 1rem; border-radius: var(--radius-sm); color: var(--ink-2); }
.note .i { margin-top: .25em; color: var(--accent); }
.src { font-style: italic; color: var(--muted); }
.ad { margin: 1.5rem 0; text-align: center; }
.ad ins[data-ad-status="unfilled"] { display: none !important; }
.ad-top { margin: .5rem 0 1rem; text-align: left; }
.ad-top::before { content: attr(aria-label); display: block; font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.ad-box { display: flex; justify-content: flex-start; overflow: hidden; max-width: 100%; }
.ad-top:has(ins[data-ad-status="unfilled"]) { display: none; }
.recipe-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-block: 1.5rem 2rem; padding-block: 0; }
.recipe-card > * { min-width: 0; }
@media (min-width: 1000px) {
  .recipe-card { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 3rem; }
  .rc-ing { position: sticky; top: 8rem; align-self: start; max-height: calc(100vh - 9rem); overflow: auto; }
}
.rc-ing { background: var(--tint); border: 1px solid #f3dcc5; border-radius: var(--radius); padding: 1.25rem 1.1rem 1rem; }
@media (min-width: 700px) { .rc-ing { padding: 1.5rem 1.5rem 1.25rem; } }
.rc-ing-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.rc-ing-head h2, .rc-steps > h2 { margin: 0; }
.rc-steps > h2 { margin-bottom: 1.25rem; }
.sub-h { font: 750 .82rem var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 1.5rem 0 .5rem; }
.units { display: inline-flex; border: 1px solid #ecd3bb; border-radius: 999px; padding: 3px; background: #fff; }
.units button { min-height: 36px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; font: 650 .86rem var(--sans); color: var(--muted); cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.ing { list-style: none; padding: 0; margin: 0 0 .5rem; }
.ing li { border-bottom: 1px solid #f1dcc7; padding: .6rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: .5rem; }
.ing li:last-child { border-bottom: 0; }
.ing label { display: flex; gap: .7rem; align-items: baseline; cursor: pointer; }
.ing input { position: absolute; opacity: 0; }
.ing label::before { content: ""; flex: none; width: 1.2rem; height: 1.2rem; border: 2px solid #d5bea5; border-radius: 6px; transform: translateY(.22em); background: #fff; transition: background .15s, border-color .15s; }
.ing input:checked + label::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--green); }
.ing input:checked + label { color: var(--muted); text-decoration: line-through; }
.ing input:focus-visible + label::before { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.amt { font-weight: 750; white-space: nowrap; min-width: 4.6em; color: var(--ink); }
.u-us { display: none; }
.units-us .u-us { display: inline; }
.units-us .u-metric { display: none; }
.rc-ing h3 { font: 750 .82rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 1.25rem 0 .2rem; }
.rc-ing h3 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.tip { margin: 0; font-size: .9rem; color: var(--ink-2); }
.tip summary { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; color: var(--accent); font-weight: 650; list-style: none; min-height: 28px; padding: 0 .55rem; border-radius: 999px; background: #fff; border: 1px solid #f0d5bd; font-size: .8rem; }
.tip summary:hover { border-color: var(--accent); }
.tip summary::-webkit-details-marker { display: none; }
.tip[open] { grid-column: 1 / -1; background: #fff; border-radius: 10px; padding: .5rem .75rem; margin: .5rem 0 0 1.9rem; }
.tip[open] summary { border: 0; padding: 0; background: none; }
.tip p { margin: .3rem 0; }
.equip { padding-left: 1.2rem; margin: 0; }
.equip li::marker { color: var(--accent); }
.wake { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #f1dcc7; font-size: .92rem; color: var(--ink-2); }
.wake input { width: 1.15rem; height: 1.15rem; accent-color: var(--green); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 1rem; padding-bottom: 1.75rem; position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 1.3rem; top: 2.8rem; bottom: .4rem; width: 2px; background: var(--line); }
.step-n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: 0; border-radius: 50%; background: var(--accent); color: #fff; font: 750 1.05rem var(--sans); box-shadow: 0 6px 14px -6px rgba(185, 68, 15, .7); }
.step-body { display: grid; gap: .9rem; padding-top: .35rem; }
.step-body p { margin: 0; font-size: 1.06rem; line-height: 1.65; }
.step-img { border-radius: var(--radius-sm); width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover; background: #f1e7d8; box-shadow: var(--shadow); }
.more-links { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; margin-top: 1rem; }
.related { margin-top: 2.5rem; }
.related > h2 { margin-bottom: .25rem; }

/* ---------- Search ---------- */
.search-form { background: var(--surface); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 700px) { .search-form { padding: 1.25rem 1.5rem; } }
.sf-q { display: flex; gap: .5rem; }
.sf-q input { flex: 1; min-width: 0; min-height: 48px; padding: .4em 1.1em; border: 2px solid var(--line); border-radius: 999px; font: inherit; color: var(--ink); background: var(--bg); }
.sf-q input:focus { border-color: var(--accent); outline: none; background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
[hidden] { display: none !important; }
.sf-filters { margin-top: .75rem; }
.sf-filters summary { cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; list-style: none; }
.sf-filters summary::-webkit-details-marker { display: none; }
.sf-filters summary::after { content: ""; width: .5rem; height: .5rem; margin-left: .25rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.sf-filters[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.sf-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sf-grid { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; margin: .5rem 0 .75rem; }
@media (min-width: 900px) { .sf-grid { grid-template-columns: repeat(4, 1fr); } }
.sf-grid > label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sf-grid select { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 .7rem; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; text-transform: none; letter-spacing: 0; }
.sf-diets { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem .5rem; }
.sf-diets legend { font-size: .82rem; font-weight: 650; color: var(--muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .05em; }
.check { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; cursor: pointer; }
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 650; }
.check input { accent-color: var(--green); }

/* ---------- Flour tables ---------- */
.table-wrap { overflow-x: auto; margin: 1rem 0; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.nutri { border-collapse: collapse; width: 100%; font-size: .9rem; white-space: nowrap; }
.nutri th, .nutri td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); text-align: right; }
.nutri tbody tr:hover td, .nutri tbody tr:hover th { background: #fdf8f2; }
.nutri th[scope=row], .nutri thead th:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.nutri thead th { background: #faf1e5; }
.nutri thead button { all: unset; cursor: pointer; font-weight: 700; }
.nutri thead button:focus-visible { outline: 3px solid #1d4ed8; }
.nutri thead th[aria-sort] button::after { content: " ↓"; }
.nutri thead th[aria-sort=ascending] button::after { content: " ↑"; }
.nutri tr.sel th, .nutri tr.sel td { background: var(--accent-soft); font-weight: 700; }

/* ---------- Video & print pages ---------- */
.video-box video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow-lg); }
.video-ing { margin-top: 1.5rem; display: block; }
.print-page { max-width: 780px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; background: #231912; color: #e6d8c6; font-size: .93rem; }
.site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .logo { color: #fff; }
.foot { display: grid; gap: 1.75rem; padding-block: 2.5rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .foot { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot p { color: #cbbba7; max-width: 42ch; }
.foot h2 { font: 750 .78rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: .25rem 0 .75rem; }
.foot ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.foot li { margin-bottom: .4rem; }
.foot li a { display: inline-block; padding: .15rem 0; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.1rem 1.6rem; border-top: 1px solid #3d3026; color: #b3a28d; font-size: .86rem; }
.foot-legal p { margin: 0; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.foot-legal a { color: #d9c9b4; }

/* ---------- Cookie notice ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; max-width: 640px; margin-inline: auto;
  padding: .85rem 1.1rem; background: var(--ink); color: #fff; border-radius: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); font-size: .92rem; }
.cookie p { margin: 0; flex: 1 1 260px; }
.cookie a { color: #ffd2b0; }
.cookie .btn { box-shadow: none; }
.cookie[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Print: recipe card only, both unit systems ---------- */
@media print {
  @page { margin: 1.5cm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .site-header, .site-footer, .crumbs, .actions, .ad, .related, .cookie, .wake, .units, .skip, .tip summary, .step-img, .about-cat, .chips, .more-links, .no-print, .facts .i, .rh-img::before { display: none !important; }
  .recipe-hero { display: block; }
  .rh-img img { max-height: 6cm; width: auto; box-shadow: none; }
  .facts, .rc-ing, .panel { box-shadow: none; background: none; border: 0; padding: 0; }
  .recipe-card { display: block; }
  .rc-ing { position: static; max-height: none; overflow: visible; margin-bottom: 1rem; }
  .u-us { display: inline !important; }
  .u-us::before { content: " / "; font-weight: 400; }
  .u-same { display: none !important; }
  .step-n { box-shadow: none; }
  .steps li::before { display: none; }
  a { color: #000; text-decoration: none; }
  .steps li { break-inside: avoid; }
}
