:root {
  --paper: #faf8f3;
  --surface: #fffefa;
  --ink: #2d372b;
  --muted: #626b5b;
  --olive: #46543b;
  --sage: #edf0e5;
  --line: #dedfd4;
  --rust: #a05b38;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
input, select { font-size: 16px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 16px; padding: 14px; background: var(--ink); color: white; z-index: 40; }
.skip:focus { top: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { line-height: 1.08; letter-spacing: -1.7px; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.8px; }
.header-inner, main { max-width: 1248px; margin: auto; padding-left: 40px; padding-right: 40px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; flex-shrink: 0; font-family: var(--serif); font-size: 23px; letter-spacing: -.5px; }
.brand-mark { width: 46px; height: 46px; border: 1px solid #7b876d; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 1px; padding: 1px 0 0 1px; }
.brand-mark span { margin: 0; font: 400 19px/1 Georgia, serif; letter-spacing: 0; }
.brand-sub { display: block; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 9px; line-height: 1; letter-spacing: 2.3px; margin-top: 8px; color: var(--muted); }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; color: var(--muted); }
.desktop-nav a.active { color: var(--olive); font-weight: 600; }
.saved-count { border-radius: 20px; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--sage); font-size: 11px; }
.eyebrow { font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: 1px; }
.button { min-height: 50px; padding: 12px 18px; border: 1px solid var(--olive); border-radius: 9px; background: var(--olive); color: white; display: inline-flex; justify-content: center; align-items: center; gap: 14px; font-size: 15px; font-weight: 550; text-decoration: none; }
.button .icon { width: 19px; height: 19px; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.icon-button { background: transparent; border: 1px solid var(--line); color: var(--ink); width: 48px; height: 48px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.collection { padding: 40px 0 52px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.section-heading h1 { margin: 0; font-size: 48px; }
.section-heading:focus, #collection-title:focus { outline: none; }
.section-description { font-size: 14px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.collection-controls { display: contents; }
.search { grid-column: 2; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 10px; width: min(380px, 100%); background: var(--surface); border: 1px solid #c9cebf; border-radius: 10px; padding: 0 4px 0 15px; min-height: 52px; color: var(--muted); }
.search:focus-within { border-color: var(--olive); box-shadow: 0 0 0 2px #46543b25; }
.search input { border: 0; padding: 14px 0; outline: none; min-width: 0; width: 100%; color: var(--ink); background: transparent; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.clear-search { width: 44px; height: 44px; border: 0; }
.filter-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 24px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { display: inline-flex; justify-content: center; align-items: center; padding: 10px 15px; min-height: 44px; min-width: 44px; border-radius: 30px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; }
.filter.active { border-color: var(--olive); background: var(--olive); color: white; }
.category-select { display: none; position: relative; min-width: 0; }
.category-select select { appearance: none; width: 100%; min-height: 48px; padding: 11px 40px 11px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); }
.category-select > .icon { position: absolute; right: 12px; top: 14px; pointer-events: none; }
#result-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.recipe-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.recipe-card { position: relative; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface); min-width: 0; }
.recipe-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.recipe-card-link:focus-visible { outline-offset: -4px; }
.card-image { aspect-ratio: 1.6; background: var(--sage); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.category-tag { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 8px; }
.save-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; min-height: 46px; padding: 11px; background: #fffefaf5; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; }
.recipe-card > .save-button { position: absolute; top: 12px; right: 12px; }
.save-button[aria-pressed='true'] { background: var(--olive); color: white; border-color: var(--olive); }
.save-button[aria-pressed='true'] .icon { fill: currentColor; }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.recipe-card h2 { font-size: 27px; letter-spacing: -.6px; line-height: 1.22; margin: 0 0 20px; overflow-wrap: anywhere; }
.card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); gap: 10px; }
.card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.card-meta > span { display: flex; align-items: center; gap: 5px; }
.card-meta .icon { width: 16px; height: 16px; }
.card-arrow { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.card-arrow .icon { width: 16px; height: 16px; }
.mobile-nav { display: none; }
.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; border: 1px dashed #cbd1c0; border-radius: 12px; background: var(--surface); }
.empty > .icon { width: 36px; height: 36px; color: var(--olive); margin-bottom: 18px; }
.empty h2 { font-size: 30px; margin-bottom: 12px; }
.empty p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.empty .button { margin-top: 8px; }
.food-placeholder { height: 100%; background: var(--sage); display: flex; align-items: center; justify-content: center; color: #7a856b; }
.food-placeholder .icon { width: 56px; height: 56px; stroke-width: 1; }
.toast { position: fixed; z-index: 25; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 8px 10px 8px 18px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 6px 20px #26321f20; font-size: 14px; line-height: 1.5; max-width: calc(100vw - 32px); width: max-content; min-height: 52px; display: flex; align-items: center; gap: 16px; }
.toast button { min-width: 52px; min-height: 44px; padding: 8px; border: 0; background: none; color: white; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb { display: flex; gap: 14px; align-items: center; padding-top: 18px; font-size: 13px; color: var(--muted); }
.back-link { display: inline-flex; gap: 8px; min-height: 44px; align-items: center; font-size: 14px; text-decoration: none; color: var(--olive); }
.back-link .icon { width: 18px; height: 18px; }
.recipe-header { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 24px 0 38px; border-bottom: 1px solid var(--line); }
.recipe-header.without-photo { grid-template-columns: minmax(0, 760px); }
.recipe-header h1 { font-size: clamp(38px, 4vw, 55px); line-height: 1.12; margin-bottom: 18px; overflow-wrap: anywhere; }
.recipe-description { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; max-width: 440px; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 0 0 26px; }
.recipe-fact { max-width: 440px; }
.fact-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.fact-label .icon { width: 16px; height: 16px; }
.recipe-fact p { font-size: 14px; line-height: 1.65; margin: 0; }
.recipe-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.save-recipe { border-radius: 9px; background: transparent; border-color: var(--line); font-size: 15px; padding: 12px 15px; min-height: 50px; }
.recipe-photo { height: 360px; overflow: hidden; border-radius: 12px; background: var(--sage); }
.recipe-photo > img { width: 100%; height: 100%; object-fit: cover; }
.recipe-content { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.35fr); gap: 32px 48px; padding-top: 36px; align-items: start; }
.recipe-content section { min-width: 0; }
.recipe-content h2 { font-size: 32px; margin: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.recipe-content p, .recipe-content li { font-size: 16px; line-height: 1.75; }
.recipe-content p { margin-bottom: 16px; }
.recipe-content h3, .cook-ingredients h3 { font: 600 17px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0; margin: 28px 0 12px; }
.recipe-content ul, .recipe-content ol, .cook-step ul, .cook-ingredients ul { padding-left: 22px; }
.recipe-content img { height: auto; }
.recipe-content hr, .cook-ingredients hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.recipe-content blockquote, .cook-ingredients blockquote { margin: 18px 0; padding-left: 16px; border-left: 2px solid #bcc5ae; }
.ingredients { grid-column: 1; grid-row: 1 / span 2; border: 1px solid #d9dfce; background: var(--sage); padding: 26px; border-radius: 12px; }
.ingredients .section-title { margin-bottom: 12px; }
.reset-ingredients { border: 0; background: none; color: var(--olive); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; min-width: 44px; min-height: 44px; padding: 8px 0 8px 8px; }
.ingredient-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ingredient-hint, .ingredient-count { font-size: 13px !important; color: var(--muted); margin: 0 !important; }
progress { appearance: none; border: 0; width: 100%; height: 4px; border-radius: 5px; background: #d5dcc9; overflow: hidden; color: var(--olive); }
progress::-webkit-progress-bar { background: #d5dcc9; border-radius: 5px; }
progress::-webkit-progress-value { background: var(--olive); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--olive); border-radius: 5px; }
.ingredients > ul { margin: 0; padding: 0; list-style: none; }
.ingredients > ul > li { border-bottom: 1px solid #d5ddc9; padding: 0; }
.ingredients > ul > li:last-child { border-bottom: 0; }
.ingredients > ul > li:not(:has(label)) { padding: 12px 0; }
.ingredients label { display: flex; gap: 12px; align-items: start; cursor: pointer; min-height: 52px; padding: 13px 0; }
.ingredients input { accent-color: var(--olive); width: 22px; height: 22px; margin: 3px 0 0; flex-shrink: 0; cursor: pointer; }
.ingredients input:checked + span { color: #68735e; text-decoration: line-through; }
.instructions { grid-column: 2; }
.cook-button { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--olive); border-radius: 8px; font-size: 13px; }
.cook-button .icon { width: 17px; height: 17px; }
.instructions > ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; }
.instructions > ol > li { counter-increment: step; position: relative; padding: 2px 0 24px 45px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.instructions > ol > li:last-child { border: 0; padding-bottom: 0; margin-bottom: 0; }
.instructions > ol > li::before { content: counter(step); position: absolute; left: 0; top: 2px; font: 16px var(--serif); border-radius: 50%; background: #eee8dc; color: #69563c; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.instructions > ul > li, .instructions li li { margin-bottom: 10px; }
.notes, .detail-section { grid-column: 2; border-top: 1px solid var(--line); padding-top: 24px; }
.notes .section-title, .detail-section .section-title { margin-bottom: 16px; }
.notes h2, .detail-section h2 { font-size: 27px; }
.notes p, .notes li { font-size: 14px; color: var(--muted); }
.notes a, .detail-section a { overflow-wrap: anywhere; }
.recipe-end { text-align: center; border-top: 1px solid var(--line); margin-top: 36px; padding: 18px 0 28px; }
.cook-dialog { width: min(680px, calc(100% - 40px)); height: min(800px, calc(100dvh - 40px)); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px #1d281b20; overflow: hidden; }
.cook-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.cook-dialog::backdrop { background: #20291f99; backdrop-filter: blur(4px); }
.cook-heading { padding: 20px 28px 0; }
.cook-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cook-dialog-header .eyebrow { margin: 0; color: var(--muted); }
.cook-dialog h2 { font-size: 28px; margin: 0 0 20px; }
.cook-step-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
#cook-step-count { color: var(--olive); font-weight: 600; }
.cook-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 28px 28px; }
.cook-step { padding: 28px 0; font-size: 22px; line-height: 1.65; overflow-wrap: anywhere; outline: none; }
.cook-step h3 { font-size: 29px; line-height: 1.2; margin: 0 0 20px; }
.cook-step p:last-child { margin-bottom: 0; }
.cook-step ul { font-size: 19px; }
.cook-step li { margin-bottom: 14px; }
.cook-reference { border: 1px solid var(--line); border-radius: 10px; background: var(--sage); }
.cook-reference summary { list-style: none; min-height: 52px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 550; }
.cook-reference summary::-webkit-details-marker { display: none; }
.cook-reference summary .icon:last-child { margin-left: auto; }
.cook-reference[open] summary .icon:last-child { transform: rotate(180deg); }
.cook-ingredients { padding: 0 18px 16px; font-size: 16px; line-height: 1.7; }
.cook-ingredients li { margin-bottom: 10px; }
.cook-navigation { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--line); background: var(--paper); }
.cook-navigation .button { min-height: 54px; }
.not-found { min-height: 65vh; padding-top: 80px; padding-bottom: 80px; }
.not-found h1 { font-size: 48px; }
.not-found p { color: var(--muted); font-size: 16px; }
@media (hover: hover) {
  .recipe-card:hover { box-shadow: 0 5px 22px #3440280b; border-color: #bdc7b1; }
  .button:hover { background: #35422d; }
  .button-secondary:hover, .icon-button:hover, .save-button:hover, .filter:not(.active):hover, .cook-button:hover { background: var(--sage); color: var(--ink); }
}
@media (min-width: 1100px) { .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .header-inner, main { padding-left: 28px; padding-right: 28px; }
  .recipe-header, .recipe-content { gap: 28px; }
}
@media (max-width: 900px) {
  .recipe-header { grid-template-columns: 1fr; }
  .recipe-header h1 { max-width: 670px; }
  .recipe-photo { height: 300px; }
  .recipe-content { display: flex; flex-direction: column; }
  .recipe-content section { width: 100%; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 82px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .header-inner, main { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .header-inner { min-height: 70px; }
  .brand { font-size: 21px; gap: 11px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark span { font-size: 16px; }
  .brand-sub { font-size: 8px; letter-spacing: 2px; margin-top: 6px; }
  .recipe-view .site-header { position: sticky; top: 0; z-index: 15; background: #faf8f3f5; backdrop-filter: blur(16px); }
  .desktop-nav { gap: 0; }
  .collection-view .desktop-nav, .desktop-nav a:first-child { display: none; }
  .desktop-nav a:last-child { font-size: 0; gap: 0; width: 44px; justify-content: center; position: relative; }
  .desktop-nav .saved-count { position: absolute; right: -5px; top: -1px; font-size: 10px; background: var(--olive); color: white; }
  .collection { display: block; padding: 26px 0 28px; }
  .section-heading h1 { font-size: 38px; letter-spacing: -1.3px; }
  .section-description { font-size: 14px; }
  .collection-controls { display: block; position: sticky; top: 0; z-index: 10; background: var(--paper); margin: 12px -20px 8px; padding: 12px 20px; }
  .search { width: 100%; }
  .filters { display: none; }
  .filter-row { margin: 12px 0 0; gap: 14px; }
  .category-select { display: block; flex: 1; max-width: 245px; }
  .recipe-grid { grid-template-columns: 1fr; gap: 12px; }
  .recipe-card { padding: 15px; }
  .recipe-card-link { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 15px; }
  .card-image { width: 96px; height: 116px; border-radius: 8px; }
  .card-content { padding: 0; }
  .category-tag { font-size: 12px; margin: 0 0 6px; }
  .recipe-card h2 { font-size: 21px; letter-spacing: -.35px; line-height: 1.25; margin: 0 0 6px; }
  .card-bottom { border: 0; padding: 0 34px 0 0; min-height: 44px; }
  .card-meta { font-size: 12px; gap: 5px 10px; }
  .card-meta .icon { width: 15px; height: 15px; }
  .card-arrow { display: none; }
  .recipe-card > .save-button { top: auto; bottom: 8px; right: 8px; background: transparent; border-color: transparent; }
  .recipe-card > .save-button[aria-pressed='true'] { background: var(--olive); }
  .mobile-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #faf8f3f5; backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 7px max(12px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); gap: 6px; }
  .mobile-nav a, .mobile-nav button { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--muted); text-decoration: none; border: 0; background: transparent; border-radius: 9px; }
  .mobile-nav .icon { width: 21px; height: 21px; }
  .mobile-nav a.active, .mobile-nav a[aria-current] { color: var(--olive); background: var(--sage); font-weight: 600; }
  .mobile-nav .saved-count { min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .mobile-nav .mobile-cook { background: var(--olive); color: white; }
  .collection-view:has(#search:focus) .mobile-nav { display: none; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .breadcrumb { padding-top: 10px; font-size: 12px; }
  .recipe-header { gap: 22px; padding: 14px 0 28px; }
  .recipe-header h1 { font-size: 37px; letter-spacing: -1.3px; margin-bottom: 16px; }
  .recipe-description { font-size: 16px; margin-bottom: 20px; }
  .recipe-facts { margin-bottom: 22px; gap: 16px; }
  .recipe-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .recipe-actions .button { padding: 12px; gap: 8px; font-size: 14px; }
  .save-recipe { font-size: 14px; padding: 12px; }
  .recipe-photo { height: 200px; border-radius: 10px; }
  .recipe-content { gap: 30px; padding-top: 28px; }
  .ingredients { padding: 22px 20px; }
  .recipe-content h2 { font-size: 30px; }
  .recipe-content p, .recipe-content li { font-size: 16px; }
  .recipe-content .notes p, .recipe-content .notes li { font-size: 14px; }
  .section-title { margin-bottom: 20px; }
  .instructions > ol > li { padding-left: 40px; }
  .notes h2, .detail-section h2 { font-size: 26px; }
  .recipe-end { margin-top: 28px; }
}
@media (max-width: 700px), (max-height: 500px) {
  .cook-dialog { width: 100%; max-width: none; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .cook-heading { padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .cook-dialog-header { margin-bottom: 8px; }
  .cook-dialog h2 { font-size: 23px; line-height: 1.25; margin-bottom: 16px; }
  .cook-step-meta { font-size: 12px; }
  .cook-body { padding: 0 max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); }
  .cook-step { font-size: 21px; padding: 24px 0; }
  .cook-step h3 { font-size: 27px; }
  .cook-step ul { font-size: 18px; }
  .cook-navigation { padding: 14px max(20px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); gap: 10px; }
  .cook-navigation .button { padding: 12px; gap: 8px; }
}
@media (max-height: 500px) {
  .cook-heading { padding-top: 8px; }
  .cook-dialog-header { float: right; margin: 0 0 8px 16px; }
  .cook-dialog-header .eyebrow { display: none; }
  .cook-dialog h2 { font-size: 20px; margin: 8px 0; }
  .cook-step-meta { margin-bottom: 8px; }
  .cook-navigation { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .cook-navigation .button { min-height: 46px; }
}
@media (max-width: 360px) {
  .header-inner, main { padding-left: 16px; padding-right: 16px; }
  .collection-controls { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .recipe-card { padding: 12px; }
  .recipe-card-link { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .card-image { width: 80px; height: 104px; }
  .recipe-card h2 { font-size: 20px; }
  .recipe-header h1 { font-size: 33px; }
  .ingredients { padding: 20px 16px; }
  .recipe-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .recipe-actions > .button { grid-column: 1 / -1; }
  .recipe-actions .save-recipe { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  :root { color: black; background: white; }
  body { padding: 0; }
  body:has(dialog[open]) { overflow: visible; }
  .site-header, .mobile-nav, .breadcrumb, .recipe-actions, .recipe-photo, .recipe-end, .reset-ingredients, .ingredient-status, .cook-button, .skip, .toast, .cook-dialog { display: none !important; }
  .recipe-page { max-width: none; padding: 0; }
  .recipe-header { display: block; padding: 0 0 14px; }
  .recipe-header h1 { font-size: 28pt; max-width: none; }
  .recipe-description { max-width: none; font-size: 10pt; }
  .recipe-facts { margin-bottom: 0; }
  .recipe-fact { max-width: none; }
  .recipe-content { display: block; padding-top: 20px; }
  .recipe-content section { margin-bottom: 22px; }
  .recipe-content h2 { font-size: 17pt; }
  .section-title { margin-bottom: 10px; }
  .ingredients { border: 0; background: none; padding: 0; }
  .ingredients > ul { columns: 2; column-gap: 30px; }
  .ingredients > ul > li { border: 0; font-size: 10pt; break-inside: avoid; padding: 3px 0; }
  .ingredients label { min-height: 0; padding: 0; }
  .ingredients input { display: none; }
  .ingredients input:checked + span { color: black; text-decoration: none; }
  .instructions > ol > li { font-size: 10pt !important; padding: 0 0 8px 35px !important; border: 0; margin-bottom: 7px; break-inside: avoid; }
  .instructions > ol > li::before { background: none; font-size: 12pt; width: 22px; height: 22px; }
  .notes, .detail-section { padding-top: 15px; }
  .notes p, .notes li { font-size: 9pt; }
  .notes a[href]::after { content: ' (' attr(href) ')'; font-size: 8pt; overflow-wrap: anywhere; }
  h2, h3 { break-after: avoid; }
}
