/* Wie lebt mein Essen? Oat paper, dark ink, clay as the one accent, moss as the quiet "how close" tone.
   Mobile first (375 px), wider screens get more air, not more columns, except the product cards. */
:root {
  --bg: #F4EEE3; --surface: #FBF8F2; --sunk: #EFE7DA; --ink: #231E19; --muted: #61574D; --line: #DCD1C1;
  --accent: #A3462A; --accent-hover: #8C3A21; --accent-ink: #FFFFFF; --accent-soft: #F3DED3;
  --moss: #4F6B4A; --moss-deep: #3B5338; --moss-soft: #E1E7D6; --track: #E4DACB;
  --focus: #1F5C8A00;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 16px; --r-s: 10px;
  --shadow: 0 1px 0 rgba(35, 30, 25, .06), 0 6px 18px -10px rgba(35, 30, 25, .25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191613; --surface: #231F1B; --sunk: #1E1A17; --ink: #F0E8DC; --muted: #B5A999; --line: #3D352D;
    --accent: #E4906B; --accent-hover: #F0A585; --accent-ink: #1E120C; --accent-soft: #3D2A20;
    --moss: #A3BE96; --moss-deep: #C2D6B6; --moss-soft: #2A3326; --track: #3A332C;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 20px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #191613; --surface: #231F1B; --sunk: #1E1A17; --ink: #F0E8DC; --muted: #B5A999; --line: #3D352D;
  --accent: #E4906B; --accent-hover: #F0A585; --accent-ink: #1E120C; --accent-soft: #3D2A20;
  --moss: #A3BE96; --moss-deep: #C2D6B6; --moss-soft: #2A3326; --track: #3A332C;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 20px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body);
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.18; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: 2.15rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: var(--accent-hover); } }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.label { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 10px; }

/* Header: wordmark left, language right */
.top {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .in { max-width: 680px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.langsw { display: flex; border: 1.5px solid var(--line); border-radius: 99px; padding: 2px; background: var(--surface); }
.langsw button { min-width: 44px; min-height: 40px; border: 0; border-radius: 99px; background: none; font-size: .85rem; font-weight: 650; color: var(--muted); }
.langsw button.on { background: var(--ink); color: var(--bg); }

main { max-width: 680px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 20px; min-width: 0; }
main:focus { outline: none; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 22px;
  border-radius: 99px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: 1.05rem; text-align: center; text-decoration: none; }
@media (hover: hover) { .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); } }
.btn.ghost { background: transparent; color: var(--accent); }
@media (hover: hover) { .btn.ghost:hover { background: var(--accent-soft); color: var(--accent); } }
.btn.quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
@media (hover: hover) { .btn.quiet:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); } }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.btn .arr { font-size: 1.2em; line-height: 1; }
.linkbtn { background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  min-height: 44px; font-size: 1rem; align-self: flex-start; padding: 0 2px; text-align: left; }
.linkbtn.mini { min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; font-size: .95rem; }
.backlink { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }

/* Start / language */
.hero { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.hero .art { width: 100%; max-width: 360px; align-self: center; aspect-ratio: 16 / 10; }
.hero h1 { font-size: 2.35rem; }
.hero .lead { font-size: 1.1rem; }
.kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.kicker span { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.langpick { display: grid; gap: 12px; }
.langpick button { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 14px 20px;
  border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); text-align: left; box-shadow: var(--shadow); }
.langpick button.on { border-color: var(--accent); }
@media (hover: hover) { .langpick button:hover { border-color: var(--accent); } }
.langpick .pt { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.langpick .ps { color: var(--muted); font-size: .9rem; }

/* Progress: 8 steps */
.steps { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; }
.steps i { height: 6px; border-radius: 99px; background: var(--track); }
.steps i.done { background: var(--moss); }
.steps i.now { background: var(--accent); }
.meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 650; }
.qtitle { font-size: 1.6rem; }
.hint { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--muted); font-size: .98rem; }

/* Answer options */
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; gap: 14px; align-items: flex-start; width: 100%; min-height: 60px; padding: 15px 16px; text-align: left;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
@media (hover: hover) { .opt:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); } }
.opt .mark { flex: none; width: 26px; height: 26px; margin-top: 1px; border: 2px solid var(--muted); border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 750; color: var(--muted); }
.opt.multi .mark { border-radius: 7px; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt.sel .mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt.sel .mark::after { content: ""; width: 6px; height: 12px; border: solid var(--accent-ink); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.opt.multi .mark::before { content: attr(data-l); }
.opt.sel.multi .mark::before { content: none; }
.opt:disabled:not(.sel) { opacity: .5; cursor: default; }
.opt .tx { display: flex; flex-direction: column; gap: 2px; }
.opt .tx b { font-weight: 650; }
.mustpill { display: inline-block; align-self: flex-start; margin-top: 4px; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.status { font-size: .875rem; color: var(--muted); }

/* Cards and blocks */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow); }
.card.best { border: 2px solid var(--moss); }
.badge { align-self: flex-start; background: var(--moss); color: var(--surface); font-size: .78rem; font-weight: 700; padding: 3px 11px; border-radius: 99px; }
.must { background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; display: inline-block; }
:root[data-theme="dark"] .must { color: var(--accent-hover); }

/* Profile */
.profile { display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: center; }
.profile .ring { width: 108px; height: 108px; }
.profile .bandword { font-family: var(--display); font-size: 1.45rem; color: var(--ink); line-height: 1.2; }
.profile .note { grid-column: 1 / -1; }
.rows { display: flex; flex-direction: column; gap: 9px; }
.row { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 2.2rem; gap: 10px; align-items: center; }
.row .t { font-size: .9rem; }
.bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; display: block; }
.bar i { display: block; height: 100%; background: var(--moss); border-radius: 99px; }
.row .v { font-size: .85rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Closeness ring */
.ring { flex: none; display: block; }
.ring .tr { stroke: var(--track); }
.ring .fg { stroke: var(--moss); stroke-linecap: round; }
.ring text { fill: var(--ink); font-family: var(--display); font-weight: 600; }
.ring .u { fill: var(--muted); font-family: var(--body); font-weight: 600; }

/* Product cards */
.prods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pcard { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 14px 14px; text-align: left; min-width: 0;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); position: relative; overflow: hidden; }
@media (hover: hover) { .pcard:hover { border-color: var(--accent); } }
.pcard .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.pcard .ic svg { width: 36px; height: 36px; }
.pcard .pt { font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.15; }
.pcard .tz { font-size: .875rem; font-weight: 650; color: var(--moss-deep); }
:root[data-theme="dark"] .pcard .tz { color: var(--moss); }
.pcard .ps { font-size: .8rem; color: var(--muted); margin-top: auto; }
.pcard .go { position: absolute; right: 12px; top: 14px; color: var(--muted); font-size: 1.2rem; }

.cta { background: var(--moss-soft); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1.5px solid color-mix(in srgb, var(--moss) 35%, transparent); }
.cta h2 { font-size: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 600; }
@media (hover: hover) { .chips button:hover { border-color: var(--accent); } }
.chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips.onmoss button { border-color: color-mix(in srgb, var(--moss) 45%, transparent); }

/* Product screen */
.phead { display: flex; gap: 14px; align-items: center; }
.phead .ic { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.phead .ic svg { width: 34px; height: 34px; }
.phead h1 { font-size: 1.9rem; }
.teaser { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.teaser .ring { width: 88px; height: 88px; grid-row: span 1; }
.teaser .tt { display: flex; flex-direction: column; gap: 4px; }
.teaser .tl { font-weight: 600; font-size: .95rem; }
.teaser .meaning { grid-column: 1 / -1; }
.teaser h2 { font-size: 1.15rem; font-family: var(--display); }
.teaser .btn { grid-column: 1 / -1; margin-top: 6px; }
.sortbar { display: flex; flex-direction: column; gap: 2px; }
.std { width: 100%; text-align: left; background: none; border: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; min-width: 0; }
.std .ring { width: 68px; height: 68px; }
.std .nm { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.std h3 { font-size: 1.12rem; }
.strip { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.strip i { position: relative; flex: 1; max-width: 22px; height: 100%; border-radius: 4px; background: var(--track); overflow: hidden; }
.strip i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--moss); }
.strip i.unk { background: transparent; border: 1.5px dashed var(--line); }
.strip i.na { background: repeating-linear-gradient(135deg, var(--track) 0 3px, transparent 3px 6px); }
.strip i.must { outline: 2px solid var(--accent); outline-offset: 1px; padding: 0; }
.striplab { font-size: .76rem; color: var(--muted); }
.price p + p { margin-top: 8px; }
.gap { border-left: 3px solid var(--moss); padding-left: 10px; }
.tap { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 12px;
  border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--sunk); font-size: .92rem; font-weight: 600; color: var(--ink); }
@media (hover: hover) { .tap:hover { border-color: var(--accent); } }
.tap .chev { transition: transform .2s; color: var(--accent); }
.tap[aria-expanded="true"] .chev { transform: rotate(180deg); }
h3.grp { margin: 12px 0 -6px; font-size: .95rem; color: var(--muted); font-family: var(--body); font-weight: 650; letter-spacing: .02em; }

.detail { display: flex; flex-direction: column; gap: 14px; }
.drow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: .9rem; padding-top: 14px; border-top: 1px solid var(--line); }
.drow .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: .98rem; }
.drow .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drow .l { color: var(--muted); font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.ladder { display: inline-flex; gap: 5px; align-items: center; flex: none; }
.ladder i { width: 14px; height: 14px; border-radius: 50%; background: var(--track); box-sizing: border-box; }
.ladder i.r { background: var(--moss); }
.ladder i.w { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.kb { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-s); background: var(--sunk); }
.kb .l { font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .ladder i { width: 12px; height: 12px; }

ul.links { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 8px; }
.farms { display: flex; flex-direction: column; gap: 12px; }
.farm .fh { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.farm h3 { font-size: 1.08rem; }
.farm .ring { width: 56px; height: 56px; }
select { font: inherit; min-height: 48px; padding: 6px 12px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.where { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 6px; }

details { border-radius: var(--r-s); }
details > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 650; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 700; line-height: 1; flex: none; }
details[open] > summary::before { content: "\2212"; }
details.box { background: var(--surface); border: 1.5px solid var(--line); padding: 4px 16px 14px; }
details.box > summary { margin-bottom: 4px; }
details.box > p + p { margin-top: 10px; }

/* Knowledge screen */
.wish { background: var(--accent-soft); border-radius: var(--r-s); padding: 10px 12px; }
.wish .l, .fact .l { font-weight: 700; }
.rung { padding: 12px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.rung.me { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.rung details > summary { min-height: 44px; font-size: .9rem; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }

footer.foot { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Motion only for those who accept it */
@media (prefers-reduced-motion: no-preference) {
  .opt, .pcard, .btn, .chips button, .tap { transition: border-color .15s, background-color .15s, transform .12s; }
  .pcard:active, .opt:active { transform: scale(.985); }
  .view { animation: in .22s ease-out; }
  @keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .ring .fg { transition: stroke-dasharray .5s ease-out; }
}

@media (min-width: 560px) {
  .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 2.8rem; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  main { padding-top: 40px; gap: 24px; }
  .hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px 36px; align-items: center; }
  .hero .art { grid-column: 2; grid-row: 1 / span 4; max-width: none; }
  main.wide { max-width: 980px; }
  .top .in.wide { max-width: 980px; }
}
@media (max-width: 370px) {
  .brand b { font-size: .95rem; white-space: normal; line-height: 1.15; }
  .brand { gap: 8px; min-width: 0; }
  .brand svg { width: 30px; height: 30px; }
  .top .in { gap: 8px; }
  .langsw button { min-width: 38px; }
  .row { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) 2.1rem; }
  .drow .pair { grid-template-columns: 1fr; }
}

/* Line drawings */
main { position: relative; }
main > * { position: relative; z-index: 1; }
main > .bleed { position: absolute; z-index: 0; top: 18px; right: -70px; width: 300px; height: auto; color: var(--accent); opacity: .14; pointer-events: none; }
.qart { display: flex; justify-content: flex-end; height: 92px; margin: -6px -16px -14px 0; color: var(--ink); opacity: .8; }
.qart svg { height: 100%; width: auto; }
.langart { display: flex; align-items: flex-end; gap: 18px; color: var(--ink); }
.langart svg { height: 64px; width: auto; }
.langart svg:first-child { height: 88px; }
.herd { display: flex; gap: 16px; align-items: flex-end; color: var(--muted); flex-wrap: wrap; margin-bottom: -8px; }
.herd svg { height: 38px; width: auto; }
.herd .a-cow, .herd .a-pig { height: 42px; }
.ctitle { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ctitle svg { height: 46px; width: auto; flex: none; color: var(--muted); }
.cta .ctitle svg { color: var(--moss-deep); }
.mustnote .tired { height: 22px; width: auto; vertical-align: -5px; margin-right: 6px; color: var(--muted); }
.pcard .ic svg, .phead .ic svg { width: 46px; height: 46px; }
.phead .ic svg { width: 44px; height: 44px; }
@media (min-width: 900px) { main > .bleed { width: 440px; right: -140px; } .qart { height: 120px; } }

/* Video cards */
.vstrip { display: flex; flex-direction: column; gap: 10px; }
.vhead { font-size: 1.15rem; }
.vrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 82%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; }
.card .vrow { margin-right: 0; padding-right: 0; grid-auto-columns: minmax(230px, 88%); }
.vcard { scroll-snap-align: start; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.vbtn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; }
.vpic { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--sunk); overflow: hidden; }
.vpic img, .vpic iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.vnopic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.vnopic svg { width: 46%; height: auto; }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(25, 22, 19, .72); color: #fff; display: grid; place-items: center; }
.play svg { width: 26px; height: 26px; margin-left: 3px; }
.vbtn:focus-visible .play { background: var(--accent); }
@media (hover: hover) { .vbtn:hover .play { background: var(--accent); } }
.vlen { position: absolute; right: 8px; bottom: 8px; background: rgba(25, 22, 19, .78); color: #fff; font-size: .75rem; font-weight: 650; padding: 2px 7px; border-radius: 6px; }
.vtx { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.vtx h3 { font-size: 1rem; }
.vwarn { color: var(--accent); font-weight: 600; }
.vcard > .vwarn { padding: 10px 14px; border-bottom: 1.5px solid var(--line); }
.vcard > .vwarn:focus { outline: none; }
.vcard > .vwarn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.vnote { font-size: .76rem; color: var(--muted); }
h1[tabindex="-1"]:focus, main:focus { outline: none; }
.go { display: flex; flex-direction: column; gap: 10px; }
.howlong { font-weight: 650; text-align: center; font-size: 1rem; }
@media (min-width: 900px) { .go { max-width: 420px; } .howlong { text-align: left; } }
/* Start picture in dark mode: the near hills get darker, not lighter, so the scene keeps its depth */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art .fh1 { fill: #44573E; } :root:not([data-theme="light"]) .art .fh2 { fill: #33432F; opacity: 1; } }
:root[data-theme="dark"] .art .fh1 { fill: #44573E; }
:root[data-theme="dark"] .art .fh2 { fill: #33432F; opacity: 1; }

/* Note "no option reaches 100 %": calm card, no alarm colours */
.card.calm { background: var(--surface); border: 1.5px solid var(--line); }
.card.calm h2 { font-size: 1.15rem; }
.card.calm details.box { margin-top: 10px; background: var(--bg); }
.sharednote { margin: 0 0 10px; }
.sharednote .linkbtn { min-height: 44px; padding: 0 2px; font-size: inherit; }
.sharebox { display: flex; flex-direction: column; gap: 6px; }
.play.ext svg { margin-left: 0; }
/* "Warum nicht?" part: larger, calm, one block per wish */
#no100.card.calm { padding: 22px 20px; gap: 14px; border-width: 2px; }
#no100.card.calm h2 { font-size: 1.45rem; line-height: 1.2; font-family: var(--display); }
#no100 details.why { padding: 6px 18px 18px; border-color: var(--line); }
#no100 details.why > summary { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; padding: 12px 0; }
#no100 .whyic { flex: none; display: inline-flex; }
#no100 .whyic .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
#no100 .whyic .ic svg { width: 28px; height: 28px; }
#no100 details.why > summary::before { display: none; }
#no100 details.why > summary::after { content: "\2212"; margin-left: auto; color: var(--accent); font-size: 1.2rem; }
#no100 details.why:not([open]) > summary::after { content: "+"; }
#no100 .whyitem { padding: 18px 0 8px; border-top: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
#no100 .whyitem:first-of-type { border-top: 0; padding-top: 6px; }
#no100 .whyitem h3 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 600; margin: 0; }
#no100 .whyh { font-family: var(--display); font-weight: 700; font-size: 1.28rem; line-height: 1.25; color: var(--ink); margin: 0; }
#no100 .whyp { font-size: 1.02rem; line-height: 1.6; margin: 0; }
#no100 .whygap { margin: 0; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; font-size: .95rem; }
#no100 .whysrc { margin: 0; color: var(--muted); line-height: 1.7; }
#no100 .whysrc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
#no100 .whyclose { margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--line); font-size: .95rem; }
.lifebar { margin: 2px 0 4px; }
.lifebar .lb-track { height: 16px; border-radius: 8px; background: var(--track); overflow: hidden; position: relative; }
.lifebar .lb-fill { display: block; height: 100%; min-width: 6px; background: var(--accent); border-radius: 8px; }
.lifebar.unk .lb-track { background: repeating-linear-gradient(90deg, var(--track) 0 8px, transparent 8px 14px); }
.lifebar .lb-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.lifebar .lb-cap b { color: var(--ink); font-weight: 600; }
.lifebar .lb-cap i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--track); border: 1.5px solid var(--line); }
.lifebar .lb-a i { background: var(--accent); border-color: var(--accent); }
.card.calm .linkbtn.mini { display: inline; min-height: 0; padding: 12px 0; margin: -12px 0; line-height: 1.5; }

.hero .sub { margin: -.25rem 0 .75rem; color: var(--muted, var(--ink)); font-size: 1.05rem; font-style: italic; }
.profile.small .bandword { font-size: 1rem; }
details.vals { margin-top: .5rem; }
details.vals > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent); }
details.vals .rows { margin-top: .5rem; }
.vpic .vnopic { display: flex; align-items: center; justify-content: center; }

/* Result flow: punch lines on the product cards first, demand score smaller below */
.lead { font-size: 1.05rem; margin: 0 0 14px; }
.pcard .tz.miss { color: var(--accent); font-size: .92rem; line-height: 1.25; }
:root[data-theme="dark"] .pcard .tz.miss { color: var(--accent-hover); }
.pcard .tn { font-size: .85rem; color: var(--ink); line-height: 1.25; }
.pcard .tw { font-size: .8rem; font-weight: 650; color: var(--accent); }
:root[data-theme="dark"] .pcard .tw { color: var(--accent-hover); }
.card.demand { margin-top: 18px; }
.card.demand h2 { font-size: 1.05rem; margin: 0 0 8px; }
.profile.small .ring { width: 64px; height: 64px; }
.nanote { margin: 0; grid-column: 1 / -1; }

/* Plant-based card after "Warum nicht?" (moss, calm, small) */
.card.plant { gap: 10px; padding: 16px 18px; border-left: 4px solid var(--moss); }
.card.plant .plhead { display: flex; align-items: center; gap: 12px; }
.card.plant .sprout { flex: none; width: 44px; height: 44px; color: var(--moss); }
.card.plant h2 { font-family: var(--display); font-size: 1.15rem; line-height: 1.25; margin: 0; }
.card.plant .plrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.card.plant .plrows li { padding-bottom: 8px; border-bottom: 1px solid var(--line); line-height: 1.45; overflow-wrap: anywhere; }
.card.plant .plrows li:last-child { border-bottom: 0; padding-bottom: 0; }
.card.plant .plnum { margin: 0; color: var(--muted); }
.card.plant .plmore { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.card.plant .plrows b { display: block; }
.card.plant .plrows li { display: flex; gap: 12px; align-items: center; }
.card.plant .plic { flex: none; width: 34px; height: 34px; color: var(--moss); }

/* Profile card: header button, then the three summary lines (each its own tap target) */
.pcard .ph { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; min-width: 0; }
.pcard .phrow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pcard .ps { margin-top: 0; }
.sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sl { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; align-items: baseline; width: 100%; min-height: 44px; padding: 7px 10px 9px; text-align: left;
  background: var(--sunk); border: 1px solid transparent; border-radius: var(--r-s); }
@media (hover: hover) { .sl:hover { border-color: var(--moss); } }
.sl-t { font-size: .8rem; font-weight: 650; color: var(--muted); overflow-wrap: anywhere; }
.sl-v { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--moss-deep); white-space: nowrap; }
.sl-n { grid-column: 1 / -1; font-size: .86rem; line-height: 1.25; overflow-wrap: anywhere; }
.sl-m { grid-column: 1 / -1; display: block; height: 5px; margin-top: 4px; border-radius: 99px; background: var(--track); overflow: hidden; }
.sl-m i { display: block; height: 100%; background: var(--moss); border-radius: 99px; }
.pcard .fishn { margin: 0; }
.top3 { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.top3 .tl { font-weight: 600; }
.top3 .btn { margin-top: 4px; }
.sharebox .small { overflow-wrap: anywhere; word-break: break-word; }
#sharemsg:not(:empty) { padding: 8px 12px; border-radius: var(--r-s); background: var(--moss-soft); color: var(--ink); }

/* 320 px: nothing may push the page wider than the screen (the decorative bleed drawing is cut at the edge) */
html, body { max-width: 100%; }
main { overflow-x: clip; }
.brand { min-width: 0; }
.top .in > * { min-width: 0; }
.langsw { flex: none; }
/* a long site name (Danish, Swedish) wraps onto two lines instead of running under the language switch; a name that fits stays as it was */
.brand b { white-space: normal; line-height: 1.15; }

/* Country menu (playbook 5.5), drawn only when a language has more than one country: the country's name as a pill like the language
   switch, opening a short list. With it the header gets the class hasc; below 480 px the menu moves to a second line under the
   language switch, so the brand keeps exactly the look of the header without the menu and the pill never covers it (Phase A5b,
   the most conservative option, needs Fable: confirm). A header without the menu is unchanged. */
.cmenu { position: relative; flex: none; }
.cmenu summary { list-style: none; display: flex; align-items: center; min-height: 44px; padding: 0 12px 0 14px; border: 1.5px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 650; white-space: nowrap; cursor: pointer; }
.cmenu summary::-webkit-details-marker { display: none; }
.cmenu summary::after { content: "\25BE"; margin-left: 6px; color: var(--muted); }
.cmenu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 11rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-s); }
.cmenu li a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.cmenu li.cgrp { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
/* Phase A9: "other countries" is one closed group inside the menu (a nested details), its list flows inside the menu box */
.cmenu .cgrp summary { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: .85rem; font-weight: 500; color: var(--muted); }
.cmenu .cgrp ul { position: static; min-width: 0; padding: 0 0 0 8px; border: 0; background: none; max-height: 50vh; overflow-y: auto; }
.cmenu li a[aria-current] { font-weight: 650; background: var(--moss-soft); }
.top .in.hasc { gap: 8px; }
@media (max-width: 480px) {
  .top .in.hasc { flex-wrap: wrap; row-gap: 2px; }
  .top .in.hasc .cmenu { order: 3; flex: 1 0 100%; display: flex; justify-content: flex-end; }
  .top .in.hasc .cmenu summary { min-height: 40px; }
}
/* ES E6 (A10g): on a route whose brand and language switch do not fit side by side (class hnarrow on <html>, set by the build), the
   brand wraps onto two lines next to the switch instead of pushing the switch onto a line of its own; the menu stays on the second line */
@media (max-width: 480px) {
  .hnarrow .top .in.hasc .brand { flex: 1 1 0; }
}
