/* Recipes is a subdomain of chriswiki.com and follows its default "Chimero noir" preset:
   greyscale palette, IBM Plex Sans body, Newsreader headings, pill navigation, split sections. */
:root{color-scheme:light dark;--bg:oklch(.965 0 0);--fg:oklch(.2 0 0);--muted:oklch(.5 0 0);--line:oklch(.86 0 0);--surface:oklch(.93 0 0);--accent:oklch(.9 0 0);--focus:oklch(.2 0 0);--radius:.45rem;--sans:"IBM Plex Sans",ui-sans-serif,system-ui,sans-serif;--serif:"Plantin","Plantijn","Newsreader",Georgia,serif;--pad:2rem;--width:58rem;font-family:var(--sans);font-size:16.96px;line-height:1.7;background:var(--bg);color:var(--fg)}
@media(prefers-color-scheme:dark){:root{--bg:oklch(0 0 0);--fg:oklch(.82 0 0);--muted:oklch(.62 0 0);--line:oklch(.24 0 0);--surface:oklch(.14 0 0);--accent:oklch(.2 0 0);--focus:oklch(.82 0 0)}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh;display:flex;flex-direction:column}
a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}a:hover{text-decoration-thickness:2px}
button,input,select,textarea{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}[hidden]{display:none!important}
::selection{background:var(--fg);color:var(--bg)}
h1,h2,h3{font-family:var(--serif);letter-spacing:-.01em;line-height:1.15;margin:0}
h1{font-size:clamp(2rem,4vw,2.25rem);font-weight:700;max-width:22ch;text-wrap:balance}h2{font-size:1.25rem;font-weight:600}h3{font-size:1.15rem;font-weight:600}
p{margin:0 0 1rem;max-width:65ch}
.lead{font-size:1.125rem;line-height:1.65}
.meta,.small{color:var(--muted);font-size:.875rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;top:-100px;left:20px;padding:12px 20px;background:var(--fg);color:var(--bg);z-index:10}.skip:focus{top:12px}

/* Header matches the main site's top navigation. */
.site-header{position:sticky;top:0;z-index:5;background:color-mix(in oklch,var(--bg) 92%,transparent);border-bottom:1px solid color-mix(in oklch,var(--line) 80%,transparent);padding:1.25rem var(--pad)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--pad);max-width:min(1200px,100%);margin:0 auto}
.brand{display:flex;align-items:baseline;gap:1.2rem;margin:0;font-family:var(--serif);white-space:nowrap;max-width:none}
.brand-name{font-size:1.5rem;font-weight:700;text-decoration:none;letter-spacing:-.01em}.brand-role{font-size:1.4rem}
.site-header nav{display:flex;align-items:center;gap:.75rem;white-space:nowrap}
.site-header nav a{font-family:var(--serif);font-size:1.125rem;font-weight:500;text-decoration:none;padding:.35rem .65rem;border:1px solid transparent;border-radius:999px}
.site-header nav a:hover{background:color-mix(in oklch,var(--surface) 88%,transparent);border-color:color-mix(in oklch,var(--line) 80%,transparent)}
.site-header nav [aria-current]{background:color-mix(in oklch,var(--accent) 60%,transparent);border-color:var(--line)}

.content{flex:1;width:100%;max-width:calc(var(--width) + var(--pad) * 2);margin:0 auto;padding:3.4rem var(--pad) 2rem}
.site-footer{text-align:center;color:var(--muted);font-size:.85rem;padding:2rem var(--pad) 2.5rem;border-top:1px solid color-mix(in oklch,var(--line) 80%,transparent)}
.site-footer p{margin:0 auto .4rem;max-width:none}.site-footer p:last-child{display:flex;justify-content:center;gap:1rem;font-size:.75rem}.site-footer a{text-decoration:none}.site-footer a:hover{text-decoration:underline}

/* Split sections: a label column and a content column, divided by thin rules. */
.split{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,2fr);gap:.75rem 1.5rem;border-top:1px solid color-mix(in oklch,var(--line) 80%,transparent);padding-top:1.5rem;margin-top:1.5rem}
.split-label h2{margin-bottom:.35rem}.split-label .small{margin:0}

.intro,.recipe-heading,.shopping-heading{padding-bottom:1.5rem}
.intro h1,.recipe-heading h1,.shopping-heading h1{margin-bottom:1.25rem}
.recipe-index{display:flex;flex-direction:column}
.recipe-index article{padding:0 0 1.5rem}.recipe-index article+article{border-top:1px solid color-mix(in oklch,var(--line) 60%,transparent);padding-top:1.25rem}
.recipe-index h3{font-size:1.3rem;margin-bottom:.4rem}.recipe-index h3 a{text-decoration:none}.recipe-index h3 a:hover{text-decoration:underline}
.recipe-index article>p{color:var(--muted);margin-bottom:.4rem}.recipe-index .meta{font-size:.8rem}.recipe-index .actions{margin-top:.6rem}
.archive ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}

/* Controls follow the main site's button treatment. */
.button,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 1.5rem;border:1px solid var(--fg);border-radius:.35rem;font-size:.875rem;font-weight:500;text-decoration:none;white-space:nowrap;cursor:pointer;line-height:1.3}
.button{background:var(--fg);color:var(--bg)}.secondary{background:transparent;color:var(--fg);border-color:var(--line)}
.button:hover,.secondary:hover{opacity:.85;text-decoration:none}.button:active,.secondary:active{transform:translateY(1px)}
button:disabled{opacity:.55;cursor:wait}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;margin-top:1.25rem}.actions>a{font-size:.875rem}
.action-status:empty,.recipe-add-status:empty,.choice-status:empty,.prompt-status:empty{display:none}
.share-status:empty{display:none}.share-status{margin-top:1rem}.manual-link{margin-top:1rem}
.flavor-links{font-size:.85rem;line-height:1.9}.cooking-guidance{max-width:70ch}
.back{margin:0 0 1.5rem;font-size:.875rem}.back a{text-decoration:none}.back a:hover{text-decoration:underline}

/* Option pickers: native radios styled as segmented choices. */
.choices{display:flex;flex-wrap:wrap;gap:1rem 2rem;margin-top:1.5rem}
.choice{border:0;padding:0;margin:0;min-width:0}.choice legend{font-size:.8rem;font-weight:500;color:var(--muted);padding:0;margin-bottom:.4rem;text-transform:uppercase;letter-spacing:.06em}
.choice-options{display:flex;flex-wrap:wrap;gap:.5rem}
.choice-options label{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:0 1rem;border:1px solid var(--line);border-radius:.35rem;font-size:.875rem;font-weight:500;cursor:pointer}
.choice-options label:has(input:checked){border-color:var(--fg);background:color-mix(in oklch,var(--accent) 50%,transparent)}
.choice-options input{width:16px;height:16px;margin:0;accent-color:var(--fg);cursor:pointer}
.choice>p{margin:.5rem 0 0}.choice-status{margin:.75rem 0 0}
.print-only{display:none}

/* Recipe body */
.recipe-prompt{border-top:1px solid var(--line);padding-top:1rem;margin-top:1.5rem}.recipe-prompt>summary,.flavor-list>summary{cursor:pointer;min-height:44px;padding:.5rem 0;font-size:.875rem;width:fit-content}.recipe-prompt .actions{margin-top:.75rem}.prompt-preview{margin-top:.75rem;max-width:75ch}
.prompt-preview summary{cursor:pointer;font-size:.875rem;padding:.5rem 0;width:fit-content;text-decoration:underline;text-underline-offset:.18em}
.prompt-preview .field{margin-top:.75rem}.prompt-preview textarea{line-height:1.6;font-size:.95rem}
.recipe-body{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:3rem;border-top:1px solid color-mix(in oklch,var(--line) 80%,transparent);padding-top:1.5rem;margin-top:1.5rem}
.recipe-body h2{margin-bottom:.4rem}
.ingredients{list-style:none;padding:0;margin:1rem 0}
.ingredients label{display:flex;gap:.75rem;align-items:flex-start;padding:.45rem 0;cursor:pointer}
.ingredients strong{font-weight:600}
.ingredients label:has(input:checked) span{color:var(--muted);text-decoration:line-through}
input[type=checkbox]{width:18px;height:18px;accent-color:var(--fg);flex-shrink:0;margin:.3rem 0 0;cursor:pointer}
.steps{padding-left:1.5rem;margin:1rem 0 1.5rem}.steps li{padding-left:.4rem;margin-bottom:1rem}.steps li::marker{font-family:var(--serif);font-weight:600}
.notes{border-top:1px solid color-mix(in oklch,var(--line) 80%,transparent);padding-top:1.25rem;margin-top:1.5rem}.notes h3{margin-bottom:.6rem}.notes p{font-size:.94rem}
.unrecorded{border-top:1px solid color-mix(in oklch,var(--line) 80%,transparent);padding-top:1rem}
.nutrition table{width:100%;max-width:32rem;border-collapse:collapse;font-variant-numeric:tabular-nums;margin-bottom:1rem}
.nutrition th,.nutrition td{text-align:right;padding:.45rem 0 .45rem 1rem;border-bottom:1px solid color-mix(in oklch,var(--line) 70%,transparent);font-size:.94rem}
.nutrition th:first-child{text-align:left;padding-left:0;font-weight:500}.nutrition thead th{font-weight:500;color:var(--muted);font-size:.8rem}
.variations dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem 2rem}.variations dt{font-weight:600}.variations dd{margin:.25rem 0 0;font-size:.94rem}

/* Shared grocery list */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label{font-size:.85rem;font-weight:500}
.field input,.field select,.field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:.35rem;background:var(--bg);color:var(--fg);font:inherit}
.field input::placeholder{color:var(--muted);opacity:1}.field textarea{resize:vertical}input,textarea{caret-color:var(--fg)}
.grocery-add{display:grid;grid-template-columns:1.25fr .85fr 1fr auto;gap:1rem;align-items:end;padding:1.5rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.grocery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0 4px}.grocery-toolbar>div{display:flex;gap:10px}
.grocery-feedback{display:flex;align-items:center;gap:16px;min-height:54px;margin-bottom:18px}.grocery-feedback p{font-size:.9rem;margin:0}.grocery-feedback:has(p:empty):has(button[hidden]){min-height:0}
.grocery-group{margin-bottom:2.5rem}.grocery-group>h2{padding:0 0 .75rem;border-bottom:1px solid var(--line)}.grocery-group>ul{list-style:none;padding:0;margin:0}
.grocery-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 24px;border-bottom:1px solid color-mix(in oklch,var(--line) 70%,transparent);padding:1rem 0;break-inside:avoid}
.grocery-check{display:flex;align-items:flex-start;gap:14px;cursor:pointer;min-height:44px}.grocery-copy{display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.grocery-copy strong{font-weight:500}
.buy-quantity{font-size:.9rem;color:var(--muted)}.is-checked .grocery-copy{text-decoration:line-through;color:var(--muted)}
.grocery-row-actions{display:flex;gap:14px;align-items:flex-start}
.text-button{border:0;background:transparent;color:var(--muted);font-size:.85rem;text-decoration:underline;text-underline-offset:.2em;cursor:pointer;min-height:44px;padding:0 3px}.text-button:hover{color:var(--fg)}
.grocery-note,.grocery-sources{grid-column:1/-1;margin:0 0 0 33px;font-size:.85rem;color:var(--muted);max-width:75ch;overflow-wrap:anywhere}.grocery-sources{list-style:none;padding:0}.grocery-sources li+li{margin-top:5px}
.grocery-edit{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.edit-note{grid-column:1/-1}.edit-actions{grid-column:1/-1;display:flex;gap:12px}
.grocery-help{border-top:1px solid var(--line);padding-top:1.5rem;margin-top:2.5rem}.grocery-help h2,.grocery-empty h2{margin-bottom:.6rem}.grocery-empty{padding:2rem 0}.grocery-help p{max-width:70ch}

@media(max-width:900px){.recipe-body{gap:2rem}.grocery-add{grid-template-columns:1fr 1fr}.grocery-edit{grid-template-columns:1fr 1fr}.grocery-edit .field:nth-child(3){grid-column:1/-1}}
@media(max-width:760px){
  :root{--pad:1.25rem}
  .header-inner{flex-direction:column;align-items:flex-start;gap:.5rem}
  .brand{gap:.75rem}.brand-name{font-size:1.25rem}.brand-role{font-size:1.15rem}
  .site-header{padding:.9rem var(--pad) .6rem}.site-header nav{gap:.35rem;margin-left:-.65rem}.site-header nav a{font-size:1rem}
  .content{padding-top:2rem}
  .split,.recipe-body,.variations dl{grid-template-columns:1fr}
  .recipe-body{gap:1.5rem}
  .choices{flex-direction:column;gap:1rem}
  .scale-choice .choice-options label{padding:0 .35rem;gap:.3rem}
  .grocery-add{gap:16px 12px}.grocery-add .field:first-child,.grocery-add>.button{grid-column:1/-1}
  .grocery-row{gap:6px 10px}.grocery-row-actions{gap:8px}.grocery-toolbar{gap:10px}.grocery-toolbar>div{gap:8px}.grocery-toolbar button{padding:0 12px}
  .grocery-feedback{align-items:flex-start;flex-direction:column;gap:10px}.grocery-edit{grid-template-columns:1fr}.grocery-help{margin-top:1.5rem}
}
@media(max-width:380px){.site-header nav a{padding:.3rem .45rem;font-size:.95rem}}
@media print{
  :root{--bg:white;--fg:black;--muted:#444;--line:#bbb;--surface:white;--accent:white;color-scheme:light}
  body{font-size:11pt;display:block}.content{max-width:none;padding:0}
  .site-header,.site-footer,.back,.actions,.choices,.choice-status,.share-status,.manual-link,.skip,.recipe-prompt,.grocery-add,.grocery-toolbar button,.grocery-feedback,.grocery-row-actions,.grocery-help{display:none!important}
  .print-only{display:block;font-weight:600}h1{font-size:24pt}.lead{font-size:11pt}
  .split{grid-template-columns:1fr;break-inside:avoid}.recipe-body{gap:24px}.steps li,.variations div{break-inside:avoid}
  a{text-decoration:none}.grocery-row{grid-template-columns:1fr;padding:8px 0}.grocery-group{margin-bottom:16px}.grocery-check{min-height:0}
}

[hidden]{display:none!important}
.recipe-search{max-width:36rem;margin-top:1.5rem}
@media print{.history-gaps,.recipe-search{display:none!important}}

.choice-options label{max-width:100%;min-width:0}.choice-options label span{min-width:0;overflow-wrap:anywhere}.choice-options input{flex-shrink:0}
