/* FamCook Fulda Workshop — visual system derived from the workshop deck
   (charcoal / cream / orange, editorial serif headlines, functional sans, line circles). */
:root {
  --charcoal: #2B2723;
  --charcoal-2: #3B3632;
  --charcoal-3: #4A443F;
  --cream: #F4EFE8;
  --white: #FFFFFF;
  --orange: #E8590C;
  --orange-dark: #B9440A;
  --muted: #A39A90;      /* muted text on charcoal */
  --muted-dark: #6B635B; /* muted text on cream */
  --line: rgba(244, 239, 232, 0.14);
  --love: #E8590C;
  --like: #5FA35A;
  --unsure: #E0A030;
  --dislike: #D2463C;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Cambria, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Calibri, Arial, sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--charcoal); color: var(--cream);
  font: 16px/1.5 var(--sans); overflow-x: hidden;
}
a { color: var(--orange); }
button { font: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 120px; position: relative; }

/* line-circle motif */
.circles { position: fixed; pointer-events: none; z-index: 0; right: -140px; top: -120px; width: 420px; height: 420px; opacity: .55; }
.wrap > * { position: relative; z-index: 1; }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--white); margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 9vw, 52px); line-height: 1.05; }
h2 { font-size: clamp(26px, 6.5vw, 34px); line-height: 1.12; }
h3 { font-size: 20px; }
.lead { font-size: 18px; color: var(--cream); opacity: .9; font-style: italic; font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--white); letter-spacing: .01em; }
.brand span { color: var(--orange); }
.who { font-size: 13px; color: var(--muted); text-align: right; }

/* forms & buttons */
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 6px; letter-spacing: .02em; }
input[type=text], input[type=password], textarea {
  width: 100%; border: 1.5px solid var(--charcoal-3); background: var(--charcoal-2); color: var(--white);
  border-radius: 12px; padding: 14px 14px; font: 17px/1.4 var(--sans); outline: none;
}
input:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 89, 12, .25); }
textarea { min-height: 104px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 16px; letter-spacing: .01em;
  background: var(--orange); color: var(--white); text-decoration: none;
}
.btn:disabled { background: var(--charcoal-3); color: var(--muted); cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--charcoal-3); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px 0; }
.error { color: #FFB59A; font-size: 14px; margin-top: 10px; min-height: 1em; }

.card { background: var(--charcoal-2); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.cream-card { background: var(--cream); color: var(--charcoal); border-radius: var(--radius); padding: 20px; }
.cream-card h2, .cream-card h3 { color: var(--charcoal); }

/* resume code */
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 22px; letter-spacing: .25em; color: var(--white);
  background: var(--charcoal); border: 1px dashed var(--charcoal-3); border-radius: 10px; padding: 8px 12px; display: inline-block; }

/* progress */
.progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.bar { flex: 1; height: 4px; background: var(--charcoal-3); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--orange); border-radius: 4px; transition: width .3s; }
.progress .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* dish */
.dish-img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--charcoal-2); margin-bottom: 18px;
  border: 1px solid var(--line); }
.dish-img { position: relative; margin: 0 0 18px; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-img figcaption { position: absolute; right: 8px; bottom: 6px; font-size: 10px; background: rgba(43,39,35,.65); padding: 2px 7px; border-radius: 6px; }
.dish-img figcaption a { color: var(--cream); text-decoration: none; opacity: .85; }
.dish-img.placeholder { display: flex; align-items: center; justify-content: center; position: relative; }
.dish-img.placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dish-img.placeholder .ph-label { position: relative; text-align: center; padding: 0 24px; }
.dish-img.placeholder .ph-name { font-family: var(--serif); font-size: 26px; color: var(--white); font-weight: 700; line-height: 1.15; }
.dish-img.placeholder .ph-note { font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: .08em; text-transform: uppercase; }
.dish-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--charcoal-3); color: var(--cream); }
.summary { font-family: var(--serif); font-size: 18px; color: var(--cream); margin: 0 0 18px; }
.section-t { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
ul.ingr { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.ingr li { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--charcoal-3); color: var(--cream); }
ol.steps { padding-left: 0; margin: 0; list-style: none; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 12px 40px; color: var(--cream); }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--orange); color: var(--orange); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
details.prep summary { cursor: pointer; list-style: none; }
details.prep summary::-webkit-details-marker { display: none; }
details.prep summary .section-t::after { content: " ＋"; color: var(--orange); }
details.prep[open] summary .section-t::after { content: " −"; }

/* rating panel (cream, like the deck's light slides) */
.rate { margin-top: 26px; background: var(--cream); color: var(--charcoal); border-radius: 18px; padding: 20px 16px 18px; }
.rate h3 { color: var(--charcoal); font-size: 21px; margin-bottom: 4px; }
.rate .hint { color: var(--muted-dark); font-size: 14px; margin: 0 0 14px; }
.liking { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; padding: 6px 0 2px; }
.liking::before { /* the traffic-light rail */
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 2px; background: #D9CFC3; z-index: 0; }
.lk { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
  padding: 0 2px; color: var(--muted-dark); -webkit-tap-highlight-color: transparent; }
.lk .dot { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cream);
  border: 2.5px solid var(--c); transition: transform .15s, box-shadow .15s, background .15s; }
.lk .dot svg { width: 28px; height: 28px; fill: none; stroke: var(--c); stroke-width: 2.2; }
.lk .dot .fillme { fill: var(--c); stroke: none; }
.lk .t { font-size: 12.5px; line-height: 1.2; font-weight: 600; text-align: center; min-height: 2.4em; }
.lk[aria-checked=true] .dot { background: var(--c); transform: scale(1.12); box-shadow: 0 0 0 5px var(--cream), 0 0 0 8px var(--c); }
.lk[aria-checked=true] .dot svg { stroke: var(--white); }
.lk[aria-checked=true] .dot .fillme { fill: var(--white); }
.lk[aria-checked=true] .t { color: var(--charcoal); font-weight: 800; }
.liking.has-choice .lk[aria-checked=false] { opacity: .45; }
.lk:focus-visible .dot { outline: 3px solid var(--charcoal); outline-offset: 4px; }
.lk-love { --c: var(--love); } .lk-like { --c: var(--like); } .lk-unsure { --c: var(--unsure); } .lk-dislike { --c: var(--dislike); }
.choice-line { margin: 14px 0 0; min-height: 1.5em; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--charcoal); text-align: center; }
.rate label.f { color: var(--muted-dark); }
.rate textarea { background: var(--white); color: var(--charcoal); border-color: #D9CFC3; }
.rate .count { font-size: 12px; color: var(--muted-dark); text-align: right; margin-top: 4px; }
.rate .error { color: var(--orange-dark); }

/* sticky nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: linear-gradient(to top, var(--charcoal) 70%, rgba(43,39,35,0));
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }
.nav .in { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.nav .btn.ghost { flex: 0 0 auto; }
.nav .btn:not(.ghost) { flex: 1; }

/* hold / stop screens */
.hold { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); display: inline-block; margin-right: 10px;
  animation: pulse 1.8s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,89,12,.6); } 70% { box-shadow: 0 0 0 14px rgba(232,89,12,0); } 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0); } }
.tiny-code { margin-top: 26px; font-size: 13px; color: var(--muted); }
.tiny-code b { font-family: ui-monospace, Menlo, monospace; letter-spacing: .18em; color: var(--cream); }

/* overview grid of dishes */
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.dots button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--charcoal-3); background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.dots button.done { border-color: var(--orange); color: var(--orange); }
.dots button.cur { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; background: var(--white); color: var(--charcoal); padding: 10px 18px;
  border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 10; box-shadow: 0 6px 24px rgba(0,0,0,.3); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* groups & criteria */
ul.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.members li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--white); }
ul.members li.me { font-weight: 700; }
.av { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); flex: 0 0 auto; }
.row-input { display: flex; gap: 8px; }
.row-input input { flex: 1; min-width: 0; }
.row-input .btn { flex: 0 0 auto; }
ol.crit { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; gap: 8px; }
ol.crit li { counter-increment: c; display: flex; align-items: center; gap: 10px; background: var(--charcoal-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 12px 12px 14px; }
ol.crit li::before { content: counter(c); color: var(--orange); font-weight: 700; font-size: 13px; min-width: 18px; }
ol.crit .ct { flex: 1; color: var(--white); font-size: 16px; }
ol.crit .by { font-size: 12px; color: var(--muted); white-space: nowrap; max-width: 30%; overflow: hidden; text-overflow: ellipsis; }
ol.crit .del { background: none; border: 1px solid var(--charcoal-3); color: var(--muted); width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
ol.crit .del:hover { color: var(--white); border-color: var(--orange); }

/* plenary */
.tally { display: flex; gap: 10px; margin: 6px 0 14px; position: sticky; top: 0; z-index: 3; background: var(--charcoal); padding: 10px 0; }
.tally span { flex: 1; text-align: center; border-radius: 999px; padding: 8px 10px; font-size: 14px; border: 1.5px solid var(--charcoal-3); }
.tally .t-core { border-color: var(--orange); color: var(--orange); }
.tally .t-ext { border-color: var(--cream); color: var(--cream); }
.tally b { font-size: 17px; }
ul.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.plist li { background: var(--charcoal-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.pl-label { font-family: var(--serif); font-size: 19px; color: var(--white); margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; }
.seg button { min-height: 42px; border-radius: 999px; border: 1.5px solid var(--charcoal-3); background: transparent; color: var(--muted);
  font-weight: 700; font-size: 13px; cursor: pointer; }
.seg button[aria-checked=true].s-core { background: var(--orange); border-color: var(--orange); color: var(--white); }
.seg button[aria-checked=true].s-extended { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.seg button[aria-checked=true].s-not_considered { background: var(--charcoal-3); border-color: var(--muted); color: var(--white); }
ol.crit.final li::before { color: var(--orange); }
ol.crit.final.ext li::before { color: var(--cream); }

/* scales */
.scale-task { margin-bottom: 14px; }
ol.ladder { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
ol.ladder li { display: flex; gap: 10px; align-items: flex-start; color: var(--cream); font-size: 15px; }
ol.ladder.compact li { font-size: 13.5px; gap: 8px; }
.lv { min-width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange); display: inline-flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.lrow { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.lrow input { padding: 10px 12px; font-size: 15px; }
.lrow input.desc { margin-top: 6px; font-size: 13.5px; padding: 8px 12px; }
.propopt { display: block; width: 100%; text-align: left; background: var(--charcoal); border: 1.5px solid var(--charcoal-3); border-radius: 14px; padding: 12px 14px;
  margin-top: 10px; color: inherit; cursor: pointer; font: inherit; }
.propopt[aria-checked=true] { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.propopt .pk2 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.propopt[aria-checked=true] .pk2 { color: var(--orange); }
/* phase 9 */
.steps4 ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
ul.dishlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.dishlist button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--charcoal-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; color: var(--white); cursor: pointer; font: inherit; }
ul.dishlist button.done { border-color: rgba(95,163,90,.6); }
ul.dishlist img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
textarea.prompt { min-height: 140px; font: 12px/1.45 ui-monospace, Menlo, monospace; color: var(--cream); margin-bottom: 10px; }
.card.good { border-color: rgba(95,163,90,.7); margin-top: 12px; } .card.bad { border-color: var(--unsure); margin-top: 12px; }
.sbar { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 10px 0; }
.sbar-l { font-size: 14px; color: var(--white); font-weight: 600; }
.sbar-t { display: flex; gap: 4px; } .sbar-t span { flex: 1; height: 10px; border-radius: 5px; background: var(--charcoal-3); }
.sbar-t span.on { background: var(--orange); }
.sbar-v { font-size: 12px; color: var(--muted); }
details.manual { margin-top: 18px; } details.manual summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.mrow { margin: 12px 0; } .mopts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; margin-top: 4px; }
/* profile */
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.pcard { background: var(--charcoal-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.ptag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ptag.pos { background: rgba(232,89,12,.18); color: var(--orange); } .ptag.neg { background: rgba(210,70,60,.15); color: #F08A80; }
.ptag.none { background: var(--charcoal-3); color: var(--muted); }
.strip { display: grid; gap: 6px; margin-top: 12px; align-items: end; }
.strip .col { display: flex; flex-direction: column; align-items: center; gap: 6px; border-bottom: 1px solid var(--charcoal-3); }
.dots2 { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 3px; min-height: 18px; max-width: 64px; }
.dots2 i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.clab { font-size: 11px; color: var(--cream); text-align: center; line-height: 1.2; padding-bottom: 4px; }
.clab span { color: var(--muted); font-size: 10px; }
