/* 1.5.0 cooking mode (#cooking-mode): photo header (assets/hero/cook-dusk.webp) with the recipe name, step and portions;
   lime primary buttons, clock icons on the timer chips. Loaded after cooking.css and activity-sessions.css. */
.cook-inner{--cook-gutter-l:max(18px,env(safe-area-inset-left));--cook-gutter-r:max(18px,env(safe-area-inset-right));padding-top:0}
@media(max-width:400px){.cook-inner{--cook-gutter-l:max(14px,env(safe-area-inset-left));--cook-gutter-r:max(14px,env(safe-area-inset-right))}}
/* The header bleeds to the edges and under the status bar; its own padding restores the gutters. */
.cook-inner>header.cook-hero{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;min-height:calc(240px + env(safe-area-inset-top));margin:0 calc(-1 * var(--cook-gutter-r)) 16px calc(-1 * var(--cook-gutter-l));padding:calc(8px + env(safe-area-inset-top)) var(--cook-gutter-r) 18px var(--cook-gutter-l);overflow:hidden;border-radius:0 0 28px 28px;background:var(--hero);color:var(--on-dark)}
.cook-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%}
.cook-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,var(--scrim) 0,transparent 110px),linear-gradient(180deg,transparent 30%,var(--hero-image-overlay) 68%,var(--scrim) 100%)}
/* Dark theme: no card edge, the photo fades into the page. */
:root[data-theme=dark] .cook-inner>header.cook-hero{border-radius:0}
:root[data-theme=dark] .cook-hero-shade{background:linear-gradient(180deg,var(--scrim) 0,transparent 110px),linear-gradient(180deg,transparent 30%,var(--hero-image-overlay) 64%,var(--bg) 100%)}
.cook-hero-top,.cook-hero-copy{position:relative;z-index:1}
.cook-hero-top{display:flex;justify-content:space-between;align-items:center;min-height:52px}
.cook-hero .cook-label{color:var(--on-dark)}
.cook-hero .cook-label::before{box-shadow:0 0 0 3px var(--glass-2)}
.cook-hero-top button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--glass-2);border-radius:50%;background:var(--glass-2);color:var(--on-dark);font-size:22px;line-height:1;box-shadow:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.cook-hero-copy{padding-top:36px}
.cook-inner .cook-hero h2{margin:0 0 10px;font-size:clamp(26px,7vw,34px);line-height:1.1;letter-spacing:-.02em;color:var(--on-dark);text-shadow:0 2px 14px var(--scrim)}
.cook-hero-meta{display:flex;flex-wrap:wrap;gap:8px}
.cook-hero-meta .livu-pill{padding:6px 11px;font-size:12px;background:var(--glass-2);color:var(--on-dark);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.cook-hero-meta .livu-pill svg{width:14px;height:14px}
/* Step dots keep their frost card; the meta line is now just the "steps to go" hint. */
.cook-progress{margin:0 0 12px}
.cook-progress-meta{font-size:12px}
.cook-progress-meta strong{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.cook-progress-steps [aria-current=step]::before{background:var(--brand);box-shadow:0 0 0 2px var(--lime)}
.cook-step{border-radius:22px;box-shadow:none}
/* Timer chips with a clock icon. */
.cook-active-timer{gap:10px;padding-left:10px}
.cook-active-timer>svg{flex:none;width:18px;height:18px;color:var(--brand)}
.cook-active-timer.is-running>svg{color:var(--ok)}
.cook-active-timer.is-done>svg{color:var(--ok)}
/* Primary buttons: solid lime. Secondary: tint. */
.cook-timer-actions [data-cook-timer]{background:var(--lime);color:var(--on-accent);border:0}
.cook-timer.is-running [data-cook-timer]{background:var(--glass-2);color:var(--on-dark);border:1px solid var(--glass-2)}
.cook-timer.is-done [data-cook-timer]{background:var(--lime);color:var(--on-accent)}
.cook-alert-prompt .primary,[data-cook-custom] .primary{background:var(--lime);color:var(--on-accent)}
.cook-inner footer .primary{background:var(--lime);color:var(--on-accent);border:0;box-shadow:none;font-weight:700}
.cook-inner footer [data-cook-finish]{background:var(--lime-soft);color:var(--ink);border:1px solid var(--lime);box-shadow:none}
.cook-inner footer .ghost{background:var(--surface);border:1px solid var(--line)}

/* 18 September 2026: the photo header runs edge to edge without rounded corners in both themes; step text as bullets (one sentence each) with a lime dot. */
.cook-inner>header.cook-hero{border-radius:0}
.cook-inner .cook-instruction-list{list-style:none;margin:0;padding:0;display:grid;gap:12px;font-size:clamp(18px,4.8vw,22px);line-height:1.45;font-weight:600}
.cook-inner .cook-instruction-list li{position:relative;padding-left:26px}
.cook-inner .cook-instruction-list li::before{content:'';position:absolute;left:2px;top:.55em;width:10px;height:10px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px var(--lime-soft)}

/* A solid viewport dock: content reserves its measured height, including large text and safe areas. */
#cooking-mode .cook-inner{padding-bottom:calc(var(--cook-footer-height,100px) + var(--cook-keyboard,0px) + 20px);scroll-padding-bottom:calc(var(--cook-footer-height,100px) + 20px)}
#cooking-mode .cook-inner>footer{position:fixed;inset:auto 0 0;width:min(100%,720px);box-sizing:border-box;margin:0 auto;padding:14px var(--cook-gutter-r) calc(14px + env(safe-area-inset-bottom)) var(--cook-gutter-l);background:var(--bg);border-top:1px solid var(--line);box-shadow:0 -6px 20px var(--shadow-1);z-index:8}
#cooking-mode .cook-inner>footer button{white-space:normal;min-width:0;line-height:1.3}
#cooking-mode .cook-inner>footer [data-cook-finish]{background:var(--lime);color:var(--on-accent)}
