/* Shared layout safeguards and calm, consistent section treatments. */
*{box-sizing:border-box}body{color:#1e2a24}main,section,article,form,fieldset,.body,.controls,.field{min-width:0}img{max-width:100%}h1{font-size:clamp(30px,5vw,44px)!important;line-height:1.12!important;overflow-wrap:break-word}h2{line-height:1.2}p,li,label{overflow-wrap:anywhere}input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;min-width:0;width:100%;font:inherit}input[type=checkbox],input[type=radio]{flex:0 0 auto;width:20px;height:20px}button,.button{min-height:44px;white-space:normal}dialog{width:min(680px,calc(100% - 24px));max-height:90dvh;padding:24px}dialog h2{padding-right:10px}.controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:3px!important;width:100%;padding:8px 6px max(8px,env(safe-area-inset-bottom))!important}.nav button,.nav a{min-width:0;width:100%;min-height:64px;margin:0!important;padding:7px 2px!important;line-height:1.25;font-size:11px!important}.nav b{display:block;line-height:1.1;font-size:25px!important}.nav a b{font-size:25px!important}main{padding-bottom:110px!important}.card{position:relative;display:flex!important;flex-direction:column!important;overflow:hidden;min-width:0}.card .art{width:100%!important;height:190px!important;min-height:190px!important;flex:none!important}.card .art>svg{width:100%;height:100%;object-fit:contain}.card .body{width:100%;padding:20px}.card .heart{position:absolute!important;inset:12px 12px auto auto!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;aspect-ratio:1!important;padding:0!important;display:grid!important;place-items:center;background:#ffffffed;border:1px solid #d9e0da;border-radius:50%;color:#244c3b;z-index:2}.heart svg{width:24px!important;height:24px!important;display:block;flex:none}.plate-note{font-size:14px;line-height:1.5;color:#526052}.recipe-options{margin:16px 0;padding:15px 0;border-block:1px solid #e0e5de}.recipe-options summary{min-height:44px;cursor:pointer;font-weight:700;line-height:1.5}.recipe-options .portion-entry{margin:12px 0}.meal-overview{padding:18px;border-radius:16px;background:#eef3eb;margin:18px 0}.meal-overview p:last-child{margin-bottom:0}body[data-mode=pantry] .meal-overview{background:#eaf0fa}body[data-mode=plan] .meal-overview{background:#f1eaf6}.ingredient{gap:16px;align-items:baseline}.ingredient .quantity{flex:0 0 auto;text-align:right}.steps li{margin-bottom:18px;line-height:1.65}.panel{max-width:100%}.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr))}#roast-schedule{padding-left:22px}#roast-schedule li{margin:12px 0}.eyebrow{line-height:1.6;letter-spacing:.12em}.cost-panel .eyebrow{color:#f5dfaf!important}header nav{display:flex;flex-wrap:wrap;gap:10px}header nav a{max-width:100%}#course-filter{min-height:48px;border:1px solid #cbd6cb;border-radius:12px;padding:10px;margin:8px 0 18px}.inputrow>*{min-width:0}.checks label{display:flex;align-items:center;gap:8px}.checks label input{flex-shrink:0}@media(max-width:600px){.controls{grid-template-columns:1fr}.panel{padding:22px!important}.ingredient{font-size:16px}.ingredient .quantity{max-width:40%}.nav button,.nav a{font-size:10px!important}.card .art{height:180px!important;min-height:180px!important}.hero h1{font-size:36px!important}.inputrow{flex-wrap:wrap}.inputrow input{flex:1 1 180px}.main-ingredient{padding:14px}.portion-entry{padding:14px}.plan-row{width:100%}}
/* Real touch controls for browsing and actions, with one consistent treatment. */
a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:13px 18px;border-radius:13px;background:#edf2e9;color:var(--green,#1f4d3a);text-decoration:none!important;font-weight:700;line-height:1.4;border:1px solid #d9e2d6;max-width:100%;text-align:center}a.button:visited{color:var(--green,#1f4d3a)}a.button.primary{background:var(--green,#1f4d3a);color:white!important;border-color:transparent}.category-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.action-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.fancy-section>a.primary{width:100%}.world-cuisines{border-block:1px solid #dde4d8;padding:16px 0;margin:20px 0;scroll-margin-top:20px}.panel>p>a:only-child,.panel>a:not(.button),header a:not(.brand){display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;min-height:44px;border-radius:11px;background:#edf2e9;color:var(--green,#1f4d3a);text-decoration:none;line-height:1.4;font-weight:650}header a{font-size:12px!important}.generated-recipe summary{cursor:pointer;font-weight:700;min-height:48px;display:list-item;padding:12px 0}.creator-ingredients{padding-left:22px}.creator-ingredients li{padding:6px 0}.creator-intro{background:#eef3eb}.ready-notice{padding:16px;background:#edf4e8;border-radius:12px}.notice{line-height:1.6}.generated-recipe{margin-block:24px}.creator-ingredients strong{font-variant-numeric:tabular-nums}#creator-status{scroll-margin-top:20px}#meal-creator textarea{resize:vertical;min-height:100px}header{flex-wrap:wrap}.pricing-table{width:100%}.pricing-table td,.pricing-table th{text-align:left;padding:14px;border-bottom:1px solid #dbe3d7}.install-state{padding:14px;border-radius:12px;background:#eef3eb}body[data-mode=pantry] a.button{background:#e8eef8;color:#294a78;border-color:#cbd9ed}body[data-mode=plan] a.button{background:#eee6f4;color:#654578;border-color:#d9cae2}@media(max-width:600px){.category-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.action-buttons>*{flex:1 1 100%}header a:not(.brand){font-size:11px!important;padding:8px 10px!important}.pricing-table th,.pricing-table td{font-size:13px;padding:12px 8px}}
@media print{header,.nav,.action-buttons,#meal-creator,.creator-intro,#creator-status,#saved-creations,body>button{display:none!important}main{padding:0!important}.panel{break-inside:avoid;box-shadow:none!important;border:0}details:not([open])>*:not(summary){display:block!important}.generated-recipe{break-before:page}a[href]:after{content:none!important}}
/* Header owns its layout; do not inherit the former right-hand width cap. */
.site-header{display:grid!important;grid-template-columns:minmax(130px,1fr) auto;gap:12px!important;align-items:center!important;padding:18px max(18px,calc((100% - 980px)/2))!important;width:100%;max-width:100%;margin:0}.site-header .brand{margin:0!important;max-width:100%!important;white-space:nowrap;font-size:22px}.site-header>.brand{padding:0;background:none;justify-content:flex-start;text-decoration:none;color:var(--green)}.site-header>[data-account-link]{max-width:200px;margin:0!important;font-size:12px!important;text-align:center}.site-header .header-menu{grid-column:1/-1;width:100%;max-width:100%!important;border:0;padding:0;margin:0}.site-header .header-menu>summary{min-height:44px;cursor:pointer;list-style-position:inside;font-weight:700;padding:12px 16px;background:#edf2e9;border:1px solid #d9e2d6;border-radius:12px}.site-header .header-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:100%;gap:8px!important;padding:10px 0 0;justify-content:stretch!important}.site-header .header-actions>*{width:100%;max-width:100%;margin:0!important;min-height:44px;font-size:12px!important;padding:10px!important;justify-content:center;text-align:center}.site-header .header-menu:not([open])>.header-actions{display:none!important}.kitchen-creation{padding:18px 0;border-top:1px solid #dbe3d7}.kitchen-creation summary{min-height:44px;font-weight:700;cursor:pointer;padding:12px 0}.meal-modes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}.meal-modes button{font-size:13px;min-width:0;padding:10px 6px}@media(min-width:800px){.site-header .header-menu>summary{display:none}.site-header .header-menu:not([open])>.header-actions{display:grid!important}}@media(max-width:600px){.site-header{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:16px!important}.site-header .brand{font-size:19px!important}.site-header>[data-account-link]{max-width:160px!important;font-size:11px!important;padding:9px 12px!important}.site-header .header-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.meal-modes button{font-size:12px}.main-ingredient h3{font-size:20px}}
@media(min-width:800px){.site-header .header-menu>summary{display:list-item}.site-header .header-menu:not([open])>.header-actions{display:none!important}}
.perfect-pairings{background:#f3f5eb;border:1px solid #d9e2cc;border-radius:20px;padding:22px;margin:28px 0}.perfect-pairings h2{font-size:26px}.pairing-label{display:inline-block;background:#e7eee0;color:#244c3b;border-radius:20px;padding:6px 11px;font-size:12px;font-weight:700}.pairing-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.pairing-tabs button[aria-pressed=true]{background:#1f4d3a;color:white}.pairings-dialog{width:min(780px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid #d7dfd2;border-radius:20px;padding:24px;background:#fbf5e9;color:#1e2a24}.pairings-dialog::backdrop{background:#10271899}.pairing-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.pairing-dialog-head h2{font-size:24px}.close-pairings{flex:0 0 44px;font-size:24px;padding:0}.drink-option{background:white;border:1px solid #dce4d5;border-radius:16px;padding:20px;margin:16px 0}.drink-option li{margin:8px 0;line-height:1.6}.drink-option .check{display:flex;gap:10px;align-items:flex-start}.original-food{margin:0 0 18px;background:#f1efe7;border-radius:16px;overflow:hidden}.original-food img{display:block;width:100%;height:auto!important;max-height:none;object-fit:contain!important;aspect-ratio:auto!important}.original-food figcaption{padding:10px 14px;font-size:12px;color:#53604f}.photo-dish-card{display:flex;flex-direction:column}.photo-dish-card .original-food{background:#f2eee4}.photo-variants{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.photo-dish-card .action-buttons{margin-top:auto}#photo-detail .original-food{max-width:900px;margin-inline:auto}#photo-detail details{margin:20px 0}.perfect-pairings .action-buttons button{min-width:0}body[data-mode=pantry] .perfect-pairings{background:#edf2fb;border-color:#cedbeb}body[data-mode=plan] .perfect-pairings{background:#f2eaf6;border-color:#dacae3}@media(max-width:600px){.perfect-pairings{padding:18px}.pairing-tabs{grid-template-columns:1fr}.pairing-tabs button{width:100%;min-height:48px}.pairing-dialog-head h2{font-size:20px}.pairings-dialog{padding:18px}.drink-option{padding:18px}.photo-variants{grid-template-columns:1fr}}
.photo-dish-card .original-food img{max-height:320px!important;width:auto!important;max-width:100%;margin-inline:auto}#photo-detail .original-food img{max-height:640px!important;width:auto!important;max-width:100%;margin-inline:auto}@media(max-width:600px){#photo-detail .original-food img{max-height:460px!important}}

/* Keep comparison controls legible in every section palette. */
body[data-mode] .cost-panel button.primary,body .cost-panel button.primary{background:#F3D7A1!important;color:#1F4D3A!important;border:2px solid #F3D7A1!important;opacity:1}body .cost-panel h2,body .cost-panel label{color:#fff!important}body .cost-panel .cost-result{color:#fff!important}body .cost-panel button.primary:hover{background:#ffe7bb!important}

/* The same six destinations remain available on standalone pages. */
.shared-bottom-nav{position:fixed;inset:auto 0 0;z-index:40;background:#fffef9f5;border-top:1px solid #dce2d8;box-shadow:0 -3px 16px #1f4d3a08;backdrop-filter:blur(12px)}.shared-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#536558;text-decoration:none;font-weight:650;border-radius:14px;text-align:center}.shared-bottom-nav a.selected{background:#eaf0e4;color:#1f4d3a}.shared-bottom-nav a.fitness-tab{background:#eaf0fa;color:#294a78}.shared-bottom-nav .preview-label{font-size:9px;color:inherit;line-height:1}.shared-bottom-nav~#toast,body:has(.shared-bottom-nav) #toast{bottom:100px}body:has(.shared-bottom-nav) .consent{bottom:100px}

.archive-stage{padding:18px 20px;margin:20px 0;background:#fbf5e9;border:1px solid #e8dfce;border-radius:16px}.archive-stage h3{color:#1f4d3a;margin-top:0}.archive-stage h4{margin-bottom:8px}.archive-stage li{margin-bottom:8px}

.dietary-topic{scroll-margin-top:20px}.dietary-topic a{display:inline-block;min-height:44px;padding:10px 0;margin-right:12px;font-weight:650;color:#1f4d3a}
