/*
Theme Name: Diet Dilemmas
Description: Diet Dilemmas recipes, editorial guides and browser-based kitchen tools.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: diet-dilemmas
*/
*{box-sizing:border-box}:root{--forest:#173f32;--deep:#0d2b22;--oat:#f3ecdc;--paper:#fffdf7;--tomato:#c94d39;--mustard:#d5a632;--ink:#25332e;--muted:#69736e;--line:#d9d1c1}html{scroll-behavior:smooth}body{margin:0;background:var(--oat);color:var(--ink);font:16px/1.68 Arial,sans-serif}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}.wrap{width:min(1160px,calc(100% - 40px));margin:auto}.notice{padding:8px;background:var(--mustard);color:var(--deep);text-align:center;font-size:.75rem;font-weight:900;letter-spacing:.1em}.head{position:sticky;top:0;z-index:40;background:rgba(23,63,50,.97);color:#fff;border-bottom:1px solid #ffffff22}.navrow{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{font:800 1.5rem Georgia,serif}.brand em{font-style:normal;color:#f4c753}.nav{display:flex;align-items:center;gap:22px;font-size:.84rem;font-weight:800}.nav a:hover{color:#f4c753}.button{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;background:var(--tomato);color:#fff;border:1px solid var(--tomato);font-weight:900;box-shadow:4px 4px 0 #0d2b2240;cursor:pointer}.button.alt{background:transparent;border-color:#fff}.menu{display:none;background:none;border:1px solid #ffffff88;color:#fff;padding:8px 11px}.hero{background:var(--forest);color:#fff;padding:72px 0 0}.hero-grid{display:grid;grid-template-columns:.88fr 1.12fr;gap:48px;align-items:center}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.74rem;font-weight:950;color:var(--mustard)}.hero h1,.pagehero h1,.section h2{font-family:Georgia,serif;line-height:1.03}.hero h1{font-size:clamp(3rem,6.5vw,5.4rem);margin:16px 0}.hero p{font-size:1.18rem;color:#e1ede7}.actions{display:flex;gap:13px;flex-wrap:wrap;margin:26px 0 48px}.hero-image{position:relative}.hero-image img{height:590px;width:100%;object-fit:cover;border-radius:160px 160px 0 0;border:1px solid #ffffff44}.hero-image:after{content:'EVIDENCE • TRADEOFFS • REAL LIFE';position:absolute;bottom:24px;left:-22px;background:var(--mustard);color:var(--deep);padding:11px 15px;font-weight:950;font-size:.75rem}.trust{background:var(--paper);border-bottom:1px solid var(--line)}.trustrow{display:grid;grid-template-columns:repeat(3,1fr)}.trustrow div{padding:25px;border-right:1px solid var(--line)}.trustrow b{display:block;color:var(--forest);font:700 1.25rem Georgia,serif}.section{padding:76px 0}.section h2{font-size:clamp(2.35rem,5vw,3.8rem);margin:10px 0 18px}.lead{font-size:1.12rem;color:var(--muted);max-width:780px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:34px}.card{background:var(--paper);border:1px solid var(--line);padding:26px;box-shadow:8px 8px 0 #c8bda8}.card .num{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--mustard);font-weight:950}.card h3{font:700 1.45rem Georgia,serif}.card a{color:var(--tomato);font-weight:900}.green{background:var(--deep);color:#fff}.green .lead{color:#cbdad3}.green .card{background:#173f32;border-color:#3d6657;box-shadow:8px 8px 0 #d5a63244}.split{display:grid;grid-template-columns:1fr 1fr;gap:46px;align-items:center}.split img{width:100%;min-height:430px;height:100%;object-fit:cover;border-radius:6px 90px 6px 6px;box-shadow:14px 14px 0 var(--mustard)}.checklist{display:grid;gap:12px}.check{background:var(--paper);border-left:6px solid var(--tomato);padding:15px 18px}.pagehero{background:linear-gradient(120deg,var(--forest),var(--deep));color:#fff;padding:72px 0}.pagehero h1{font-size:clamp(2.8rem,6vw,4.8rem);margin:13px 0}.pagehero p{max-width:760px;color:#dbe9e2;font-size:1.16rem}.article{max-width:820px}.article h2{font:700 2rem Georgia,serif;margin-top:36px}.article li{margin:7px 0}.callout{background:#fff4dc;border-left:6px solid var(--mustard);padding:18px;margin:28px 0}.form{display:grid;gap:14px;background:var(--paper);padding:28px;border:1px solid var(--line);box-shadow:9px 9px 0 var(--forest)}.form label{font-weight:800}.form input,.form textarea,.form select{width:100%;padding:13px;border:1px solid #a9b0a8;font:inherit}.form textarea{min-height:140px}.success{display:none;background:#e6f2e9;color:#184d31;padding:12px;font-weight:800}.cta{background:var(--mustard);padding:58px 0}.ctarow{display:flex;justify-content:space-between;align-items:center;gap:28px}.cta h2{font:700 2.6rem Georgia,serif;margin:0}.foot{background:#081f18;color:#cfddd6;padding:48px 0 24px}.footgrid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:36px}.foot h3{color:#fff}.foot a{display:block;margin:7px 0}.fine{border-top:1px solid #ffffff22;margin-top:30px;padding-top:18px;font-size:.8rem}.disclaimer{font-size:.82rem;color:#aebdb6;max-width:760px}@media(max-width:930px){.nav{display:none;position:absolute;left:0;right:0;top:76px;background:var(--forest);padding:20px;flex-direction:column;align-items:flex-start}.nav.open{display:flex}.menu{display:block}.hero-grid,.split{grid-template-columns:1fr}.hero-image img{height:430px;border-radius:90px 90px 0 0}.cards{grid-template-columns:1fr 1fr}.trustrow{grid-template-columns:1fr}.footgrid{grid-template-columns:1fr}.ctarow{display:block}.cta .button{margin-top:20px}}@media(max-width:620px){.wrap{width:min(100% - 26px,1160px)}.hero{padding-top:52px}.cards{grid-template-columns:1fr}.hero-image img{height:320px}.hero-image:after{left:8px}.section{padding:58px 0}}.hero.cinematic{position:relative;min-height:720px;padding:0;display:flex;align-items:center;overflow:hidden}.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero.cinematic:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0d2b22f2 0%,#0d2b22d8 38%,#0d2b2233 72%)}.hero.cinematic .wrap{position:relative;z-index:2}.hero-copy{width:min(650px,100%);padding:90px 0}.decoder{display:grid;grid-template-columns:.85fr 1.15fr;background:var(--forest);color:#fff}.decoder-copy,.decoder-form{padding:48px}.decoder-copy h2{font:700 3rem/1 Georgia,serif}.decoder-form{background:var(--paper);color:var(--ink);display:grid;gap:15px}.decoder-form label{font-weight:800}.decoder-form select{width:100%;padding:13px;border:1px solid #9aa69e}.decoder-result{background:#f5ecd8;border-left:5px solid var(--mustard);padding:18px}.decoder-result strong{display:block;font:700 1.3rem Georgia,serif}.source-label{display:inline-block;background:#e4eee8;color:#24513e;padding:5px 9px;font-size:.7rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}@media(max-width:930px){.decoder{grid-template-columns:1fr}.hero.cinematic{min-height:650px}.hero.cinematic:after{background:linear-gradient(90deg,#0d2b22ed,#0d2b2288)}}@media(max-width:620px){.decoder-copy,.decoder-form{padding:30px 22px}.hero-copy{padding:70px 0}.hero.cinematic{min-height:620px}}
:root{--tomato:#ad3b29}body{font-family:"Source Sans 3",Arial,sans-serif}
.skip{position:absolute;top:0;left:12px;z-index:60;background:white;color:var(--deep);padding:10px;transform:translateY(-110%)}.skip:focus{transform:translateY(0)}
:focus-visible{outline:3px solid #927025;outline-offset:4px}
[hidden]{display:none!important}.green .check{color:var(--ink)}.hero.cinematic{min-height:620px}.hero.cinematic .actions{margin-bottom:0}
.button{font:700 1rem/1.3 "Source Sans 3",Arial,sans-serif}.button.secondary{color:var(--forest);background:transparent;border-color:var(--forest)}
.featured{background:#e9dec8}.guide-card h3{margin:15px 0 8px}.guide-card p{margin-bottom:0}.guide-card a,.card h3 a{color:var(--forest);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.guide-card a:hover,.card h3 a:hover{color:var(--tomato)}
.filters,.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 18px}
.filters label,.tool-panel label{display:grid;gap:5px;font-weight:700}
.filters input,.filters select,.tool-panel input,.tool-panel textarea,.tool-panel select{min-width:0;width:100%;font:inherit;color:var(--ink);background:#fff;padding:10px;border:1px solid #9aa69e;border-radius:0}
.tool-panel{background:var(--paper);border:1px solid var(--line);padding:clamp(18px,4vw,42px);scroll-margin-top:95px}.tool-panel h2{font-size:clamp(1.9rem,4vw,3rem)}.tool-list{display:grid;gap:25px}.tool-panel fieldset{min-width:0;border:1px solid var(--line);padding:14px;display:grid;gap:12px}.tool-panel legend{font-weight:800}.tool-panel [role=status]:empty{display:none}
.editorial-article{font-size:1.12rem}.editorial-article h2{line-height:1.2}.editorial-article a:not(.button){text-decoration:underline;text-underline-offset:3px;color:var(--forest)}.related-title{margin-top:56px!important}
@media(max-width:570px){.filters,.tool-grid{grid-template-columns:1fr}.hero.cinematic{min-height:545px}}
@media print{body:has(#plan-form) :is(.notice,.head,.pagehero,.foot,.cta,.skip,#compare,#price,#plan-form .actions,#plan-status){display:none!important}body:has(#plan-form){background:white}.tool-panel{border:0;padding:0}.tool-panel input,.tool-panel textarea{border:0;padding:0}.section{padding:0}}

.recipe-back a{text-decoration:underline;text-underline-offset:3px}.recipe-layout,.video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.recipe-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}.recipe-layout article h2{margin-top:12px}
.ingredients{list-style:none;padding:0}.ingredients label{display:block;line-height:1.5;padding:8px 0;border-bottom:1px solid var(--line);font-weight:500}.ingredients input{width:auto;accent-color:var(--forest);margin-right:8px}.ingredients label:has(input:checked){text-decoration:line-through}
.recipe-videos{margin-top:50px}.video-card h3{font-size:1.6rem;margin:0}.video-credit{font-weight:700;color:var(--forest)}.video-player{aspect-ratio:16/9;display:grid;place-items:center;background:linear-gradient(135deg,var(--deep),var(--forest));overflow:hidden}.video-player iframe{display:block;width:100%;height:100%;border:0}
.planner-picker{margin:24px 0;padding:18px;border:1px solid var(--line);background:#f3ecdc}.planner-picker h3{margin-top:0}
@media(max-width:720px){.recipe-layout,.video-grid{grid-template-columns:1fr}}
@media print{body:has(#recipe) :is(.notice,.head,.foot,.cta,.skip,.recipe-back,.recipe-videos,#recipe .actions),#planner-picker{display:none!important}body:has(#recipe){background:white}.recipe-layout{display:block}.pagehero{padding:0;background:white;color:black}.pagehero p{color:#222}}

.weekly-menu{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:24px}
.weekly-menu .tool-panel{padding:clamp(18px,3vw,34px)}.week-meals ol{list-style:none;padding:0;margin:18px 0}
.week-row{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid var(--line)}.week-row a,.week-meals a:not(.button),.tool-link{text-decoration:underline;text-underline-offset:3px;color:var(--forest)}
.week-servings{max-width:13rem}.weekly-menu .actions{margin-bottom:16px}.week-shopping .ingredients{margin-top:0}.week-shopping .ingredients li:first-child{border-top:1px solid var(--line)}
.week-presets{margin:20px 0;padding:16px 18px;background:#edf2e5;border-left:4px solid var(--forest)}
#week-favourites{scroll-margin-top:105px}#week-favourites h3{margin-top:0}#week-favourite-preview{font-weight:700}
.week-saved>summary{cursor:pointer;font-weight:800}.week-saved form{margin:14px 0}.week-saved form button{margin-top:8px}
#week-saved-preview{margin-top:16px;padding:12px;background:var(--paper)}#week-saved-preview ol{list-style:none;padding:0}#week-saved-preview li{margin:7px 0}#week-saved-preview a{text-decoration:underline}
.week-saved-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.week-saved button:disabled{opacity:.6;cursor:default}
.week-presets details{margin:10px 0 14px}.week-presets summary{cursor:pointer;font-weight:700}.week-presets details ol{list-style:decimal;margin:8px 0 0;padding-left:24px}
.week-presets p:last-child{margin:10px 0 0;font-size:.92rem}
.week-extras{margin:16px 0}.week-extras summary{cursor:pointer;font-weight:700}.week-extras label{margin-top:10px}.week-extras p{font-size:.9rem}
.week-pantry{background:#edf2e5;padding:10px 14px;margin:16px 0}.week-pantry p{margin:0}.week-pantry p+p{margin-top:6px}
.week-pantry-flag{display:inline-block;margin-left:8px;padding:1px 6px;background:#edf2e5;color:var(--forest);font-size:.77rem;font-weight:700;text-decoration:none}
.week-shopping button:disabled{opacity:.6;cursor:default}
@media(max-width:790px){.weekly-menu{grid-template-columns:1fr}}
@media print{body:has(#weekly-menu) :is(.notice,.head,.foot,.cta,.skip,.weekly-menu .actions,.week-presets,.week-extras,.week-pantry,.week-pantry-flag,.week-recipe-link,.week-meals>p:last-child,#week-status){display:none!important}
.weekly-menu{display:block}.week-row{break-inside:avoid}.week-shopping .ingredients{columns:2}.week-shopping .ingredients li{break-inside:avoid}}

.pantry-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}
#pantry-form label:has(input[type=checkbox]){display:flex;gap:9px;align-items:baseline;font-weight:500}
#pantry-form input[type=checkbox]{width:auto;flex:none;accent-color:var(--forest);margin:0}
.pantry-controls{display:flex;align-items:end;flex-wrap:wrap;gap:18px}.pantry-ready{align-self:center}.pantry-results{margin-top:42px}
.pantry-match{font-weight:800;color:var(--forest);margin-top:16px}.pantry-missing{font-size:.95rem}.pantry-results .tool-link{display:inline-block;margin-top:16px}
@media(max-width:960px){.pantry-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.pantry-groups{grid-template-columns:1fr}.pantry-controls{align-items:start;flex-direction:column}.pantry-ready{align-self:start}}

.season-intro{display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:center;margin-bottom:38px}
.season-intro img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:4px 56px 4px 4px}
.season-jumps{display:flex;gap:8px;flex-wrap:wrap}.season-jumps a{border:1px solid var(--forest);padding:5px 12px;color:var(--forest);font-weight:700}.season-jumps a:hover{background:var(--forest);color:white}
.season-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.season-card{border:1px solid var(--line);background:var(--paper);scroll-margin-top:100px}
.season-card header{background:#d9e5ce;padding:20px 26px;color:var(--deep)}.season-card:nth-child(2) header{background:#f0dcae}.season-card:nth-child(3) header{background:#ecd0bb}.season-card:nth-child(4) header{background:#d5e2df}
.season-card header h2,.season-card header p{margin:0}.season-body{padding:22px 26px}.season-body h3{font:700 1.55rem Georgia,serif;margin:10px 0}.season-body .actions,.season-next .actions{margin-bottom:12px}
.season-produce{font-weight:700;color:var(--forest);margin-top:0}.season-next{margin-top:44px}
@media(max-width:740px){.season-intro,.season-grid{grid-template-columns:1fr}.season-intro img{aspect-ratio:16/9}.season-intro{gap:18px}}

.card .save-recipe{margin-top:14px}.pantry-results .save-recipe{display:flex}
.save-recipe[aria-pressed=true]{background:#edf2e5}.recipe-box-status:empty{margin:0}

.video-section,.video-card{scroll-margin-top:100px}.video-section{margin-top:38px}.video-section .video-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.video-card{display:flex;flex-direction:column}.video-card .video-player{margin-top:14px}
.video-technique{background:#edf2e5;border-left:4px solid var(--forest);padding:12px 14px;margin:0 0 18px}.video-technique h4,.video-technique p{margin:0}.video-technique h4{color:var(--forest);margin-bottom:4px}
.video-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px;margin-top:auto}.video-actions a{text-decoration:underline;text-underline-offset:3px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.recipe-video-link{display:block;width:fit-content;margin-top:6px;font-size:.95rem;font-weight:700}
@media print{.recipe-video-link{display:none!important}}
.directory-card h2{font:700 1.45rem Georgia,serif;margin:14px 0}.directory-card[hidden]{display:none}.directory-card a:hover{text-decoration:underline}
.dd-brand { flex: 0 1 220px; min-width: 0; line-height: 1; }
.dd-brand a { display: inline-block; max-width: 100%; }
.dd-brand img { display: block; width: min(220px, 48vw); height: auto; max-height: 52px; object-fit: contain; object-position: left center; }
