/* Selected C layout: three palettes, the same component geometry. */
html[data-theme=modern] body.theme-c{--ink:#202f3a;--muted:#56646d;--paper:#fff;--canvas:#f4f6f8;--accent:#285e6a;--soft:#e6eff0;--line:#bdcbd1;--hero:#e7eef1;--hero-decoration:#d7e5e9;--on-accent:#fff;--field:#f8fafb}
html[data-theme=warm] body.theme-c{--ink:#49372d;--muted:#726055;--paper:#fffaf0;--canvas:#f7efdf;--accent:#91452c;--soft:#eee0c9;--line:#c1ac8c;--hero:#eee0c9;--hero-decoration:#e2cfb2;--on-accent:#fff;--field:#fffcf5}
html[data-theme=dark] body.theme-c{--ink:#edf2ef;--muted:#bbc9c2;--paper:#202d28;--canvas:#141e1a;--accent:#a9dbc0;--soft:#31483d;--line:#738e80;--hero:#243b30;--hero-decoration:#365242;--on-accent:#112a1e;--field:#18261f}
.theme-c{--hero:#e7eef1;--hero-decoration:#d7e5e9;--on-accent:#fff;--field:#f8fafb}
.theme-c .hero{background:var(--hero);padding-top:35px;padding-bottom:32px}.theme-c .hero:before{border-color:var(--hero-decoration)}.theme-c .hero h1{font-size:clamp(2.4rem,4.5vw,4rem)}.theme-c .hero .subheading{color:var(--muted)}.theme-c .search-box{background:var(--field)}.theme-c .button,.theme-c .filter-group button[aria-pressed=true],.theme-c .scale button[aria-pressed=true]{color:var(--on-accent)}.theme-c .button.secondary{color:var(--accent);background:transparent}.theme-c .brand-mark{color:var(--on-accent)}.theme-c .skip{background:var(--accent);color:var(--on-accent)}.theme-c input::placeholder{color:var(--muted);opacity:1}
.theme-control{display:flex;gap:8px;align-items:center;font-size:12px}.theme-control label{font-weight:600}.theme-control select{min-height:44px;max-width:145px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px;padding:7px 26px 7px 10px}.theme-control option{background:var(--paper);color:var(--ink)}.site-header{gap:18px}.top-nav{gap:20px}.theme-c .site-header{height:auto;min-height:92px;padding-block:15px}.theme-status{font-size:11px;color:var(--muted)}
.fridge-panel{margin-bottom:27px;padding:25px;background:var(--paper);border:1px solid var(--line);border-radius:16px;display:block!important}.fridge-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.fridge-head h2{font-size:25px;margin-bottom:8px}.fridge-head p{font-size:13px;color:var(--muted);margin-bottom:18px;max-width:630px}.fridge-form{display:flex;gap:10px;align-items:flex-end}.fridge-field{flex:1;min-width:0}.fridge-field label{display:block;font-weight:600;font-size:12px;margin-bottom:7px}.fridge-field input{width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--line);border-radius:8px;background:var(--field);color:var(--ink)}.fridge-form .button{min-height:48px}.fridge-input-help{font-size:11px;color:var(--muted);margin:8px 0 12px}.suggestions-label{font-size:11px;color:var(--muted);display:block;margin-bottom:7px}.ingredient-suggestions{display:flex;gap:7px;flex-wrap:wrap}.suggestion{background:var(--soft);border:1px solid transparent;border-radius:20px;font-size:12px;padding:8px 12px;min-height:40px}.suggestion:hover{border-color:var(--accent)}.ingredient-chips{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0;margin:18px 0 12px}.ingredient-chip{display:flex;gap:10px;align-items:center;background:var(--soft);border:1px solid var(--accent);border-radius:7px;font-size:13px;max-width:100%;padding-left:11px}.ingredient-chip span{overflow-wrap:anywhere}.ingredient-chip button{border:0;background:transparent;min-width:40px;min-height:40px;font-size:22px;line-height:1}.ingredient-chip.unknown{border-style:dashed}.fridge-options{display:flex;flex-wrap:wrap;gap:15px 30px;align-items:center;border-top:1px solid var(--line);padding-top:17px;margin-top:17px}.pantry-label{display:flex;gap:10px;align-items:flex-start;font-size:12px;flex:1 1 290px;cursor:pointer}.pantry-label input{margin:1px 0 0}.missing-control{display:flex;align-items:center;gap:10px;font-size:12px}.missing-control select{min-height:44px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--paper);max-width:175px}.fridge-status{font-size:12px;color:var(--muted);margin:15px 0 0;line-height:1.6}.fridge-note{font-size:11px;color:var(--muted);margin:7px 0 0}.results-line{align-items:center}.results-line button{font-size:12px;min-height:40px;border:0;background:transparent;text-decoration:underline}.match-section h3{font-size:20px;letter-spacing:normal;margin:0 0 18px;font-weight:600}.match-section+.match-section{margin-top:32px}.match-section>p{font-size:13px;color:var(--muted)}.match-details{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;font-size:12px}.match-details p{margin:8px 0;line-height:1.6;overflow-wrap:anywhere}.match-badge{display:block;font-size:12px;color:var(--accent);font-weight:650}.missing-list{font-weight:600}.fridge-active .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.fridge-active .card h3{min-height:0}.theme-c .card h3{min-height:2.6em}.theme-c .card-draft{font-size:11px}.photo-caption{font-size:11px;color:var(--muted);line-height:1.65;margin-top:9px}.photo-caption a{color:var(--accent)}.photo-disclosure{font-size:12px;color:var(--muted);margin:14px 0 0}.theme-c .card img{aspect-ratio:1.5;object-fit:cover;background:var(--soft)}.theme-c .detail-hero img{object-fit:cover;aspect-ratio:1.25}.theme-c .search-panel{margin-bottom:18px}.theme-c .section-head{margin-top:27px}.fridge-active .empty{margin-top:25px}.theme-c .results-line>span:last-child{display:inline}.site-footer a{color:var(--accent)}
@media(max-width:850px){.theme-control{gap:6px}.top-nav{gap:12px}.theme-control label{font-size:11px}.theme-control select{font-size:12px;max-width:130px}.fridge-active .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.theme-c .site-header{align-items:flex-start;flex-wrap:wrap;gap:12px;padding-block:17px}.site-header .brand{flex:1 1 185px}.top-nav{width:100%;justify-content:space-between;gap:15px}.theme-control{margin-left:auto}.theme-control label{font-size:12px}.theme-control select{min-height:44px;max-width:150px;font-size:13px}.top-nav .about-link{display:none}.theme-c .hero{padding:29px 18px}.theme-c .hero h1{font-size:2.5rem}.fridge-panel{padding:17px}.fridge-head h2{font-size:23px}.fridge-head{gap:10px}.fridge-head .clear-filters{font-size:11px;white-space:nowrap}.fridge-form{flex-wrap:wrap;gap:9px}.fridge-field{flex-basis:100%}.fridge-form .button{width:100%}.suggestion{min-height:42px;font-size:11px;padding-inline:10px}.fridge-options{gap:16px}.pantry-label{font-size:12px}.missing-control{justify-content:space-between;width:100%;font-size:12px}.missing-control select{max-width:165px}.results-line{align-items:flex-start;font-size:12px}.results-line>span{max-width:230px}.fridge-active .cards{grid-template-columns:1fr}.fridge-active .card>a{display:block}.fridge-active .card img{height:auto;aspect-ratio:1.8;min-height:0}.fridge-active .card-copy{padding:18px}.match-details{font-size:13px}.theme-c .card-draft{font-size:10px}.theme-c .card h3{font-size:18px}.match-section h3{font-size:20px}.theme-c .detail-hero h1{font-size:2.5rem}.photo-caption{font-size:11px}.fridge-note{font-size:11px}.theme-c .results-line>span:last-child{display:inline}}
@media(max-width:360px){.theme-c .hero h1{font-size:2.1rem}.theme-c .card img{aspect-ratio:auto;min-height:165px}.fridge-active .card img{aspect-ratio:1.8;min-height:0}.theme-c .card h3{min-height:0}.fridge-head{display:block}.fridge-head .clear-filters{padding-left:0;min-height:44px;margin-bottom:10px}.missing-control{flex-wrap:wrap}.missing-control select{max-width:none;width:100%}}
@media print{html[data-theme] body.theme-c{--ink:#000;--muted:#333;--paper:#fff;--canvas:#fff;--accent:#000;--line:#999;--soft:#fff}.theme-control,.theme-status,.fridge-panel,.photo-caption,.photo-disclosure{display:none!important}}
.catalogue-search{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(160px,220px);gap:18px;align-items:end}.catalogue-search .filter-wrap{grid-column:1/-1}.catalogue-search .filter-group{flex-wrap:wrap}.catalogue-search .browse-select label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.catalogue-search select{width:100%;min-height:46px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:9px}.catalogue-search .clear-filters{justify-self:start}.hero-browse{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.time-grid{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))}.time-note{font-size:12px;color:var(--muted)}.recipe-source{border-top:1px solid var(--line);padding-top:24px;margin-top:28px}.recipe-source h2{font-size:24px}.recipe-source p{font-size:14px;line-height:1.7}.recipe-source a{color:var(--accent);text-underline-offset:3px}.theme-c img.preserve-full{object-fit:contain;background:var(--paper)}
@media(max-width:620px){.catalogue-search{grid-template-columns:1fr!important}.catalogue-search .filter-wrap{grid-column:auto}.hero-browse .button{font-size:13px}.theme-c .card h3{min-height:0}}
@media print{.recipe-source{break-inside:avoid}.recipe-source p{font-size:10pt}.recipe-source h2{font-size:14pt}}

.method-stage{margin:1.5rem 0 2rem}.method-stage h3{font-size:1.15rem;line-height:1.5;margin-bottom:1rem}.doneness-check{margin:.6rem 0;color:var(--muted);font-size:.94rem;line-height:1.65}.before-start{margin:0 0 2rem;padding:1.2rem;border:1px solid var(--line);border-radius:14px}.before-start h2{font-size:1.4rem}.recipe-content .time-note{max-width:65ch}.biryani-feature{display:flex;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}.guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1.5rem}.guide-card{border:1px solid var(--line);border-radius:18px;overflow:hidden}.guide-card img{width:100%;height:220px;object-fit:cover}.guide-card>div{padding:1.2rem}.guide-card h2{font-size:1.5rem}.guide-card p{line-height:1.75}.guide-page{padding-block:2rem}.guide-page>.subheading{max-width:70ch}@media print{.method-stage h3{break-after:avoid}.doneness-check{color:#222}.before-start{break-inside:avoid}.guide-grid{display:block}.guide-card{break-inside:avoid}}
