/* Dalleth field notebook: calm, editorial, phone-first. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-500.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-600.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-italic-500.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-italic-400.woff2) format("woff2"); }

/* THEME: brand colours. Defaults = the Dalleth look. A client build overrides these in css/theme.css
   (from clients/<id>/client.json "theme"). Danger/safety colours further down are fixed on purpose. */
:root {
  --brand: #1E3A5F;          /* woad: headings, links, buttons, active states */
  --brand-2: #2F527D;        /* lighter brand: eyebrows, secondary text */
  --brand-wash: #E4E8EE;     /* pale brand tint backgrounds */
  --brand-rule: #A3B1C1;     /* brand-tinted borders and dashed outlines */
  --brand-ink: #fff;         /* text/icons on a brand background */
  --brand-ink-soft: #D6DEE9; /* small text on a brand background */
  --brand-ink-2: #E9EEF5;    /* body text in brand boxes (rules box) */
  --bg: #F5EFE6;             /* page background (cream) */
  --bg-glass: rgba(245, 239, 230, .94); /* top bar (page background, translucent) */
  --card: #FDFBF6;           /* cards and panels (paper) */
  --card-veil: rgba(253, 251, 246, .55);
  --card-veil-2: rgba(253, 251, 246, .5);
  --field: #fff;             /* inputs and chips */
  --ink: #3B2117;            /* body text */
  --ink-2: #5A4A40;
  --mute: #777875;
  --faint: #9A958E;
  --faint-2: #A9A49C;
  --faint-3: #A09A91;
  --rule: #D9D0C2;           /* borders */
  --wash: #F7F3EC;           /* callout / reference box backgrounds */
  --wash-2: #EFE8DC;         /* off month cells */
  --hatch: #F7F2EA;          /* image placeholder stripes */
  --hatch-2: #F2ECE2;
  --accent: #9A5A14;         /* legend / highlight accent */
  --accent-wash: #F6EAD8;
  --warn: #8B3A3A;
  --warn-wash: #F6E4E0;
  --warn-rule: #D7B3AD;
  --warn-ink: #5B2A24;
  --warn-on-brand: #FFD9D2;
  --chef: #5E6B3A;
  --chef-rule: #B9C09A;
  --chef-wash: #F1F2E6;
  /* In season category bands (white label on the colour; each >= 4.5:1 with #fff, WCAG AA) */
  --cat-ink: #FFFFFF;        /* label text on a category band */
  --cat-veg: #52794A;        /* vegetables: sage/leaf green */
  --cat-fruit: #7A4E7E;      /* fruit: plum/damson */
  --cat-meat: #A2423A;       /* meat: brick red */
  --cat-game: #85663F;       /* game: earthy brown */
  --cat-fish: #3F6E9A;       /* fish: deep slate blue */
  --cat-shellfish: #377A86;  /* shellfish: sea teal */
  --cat-fungi: #7A6A5B;      /* fungi: mushroom taupe */
  --cat-wild: #6B7530;       /* herbs & wild: olive/moss (also wild group 4, leaves/greens/herbs) */
  /* wild food groups (forage calendar, Ingredients): fungi, fruit, wild and shellfish above are reused for groups 1, 2, 4, 7 */
  --cat-nuts: #8D5733;       /* 3 nuts and seeds: warm hazel brown */
  --cat-flowers: #A0506A;    /* 5 flowers: soft muted rose */
  --cat-roots: #8A6416;      /* 6 roots: earthy ochre */
  --cat-spices: #B05200;     /* 9 spices and seasonings: saffron */
  --cat-wildveg: #615A35;    /* wild vegetables (roots, stalks, shoots): earthy green-brown, 6.95:1 with white */
  --cat-medicinal: #587173;  /* medicinal (historical record): dusty teal-grey, 5.22:1 with white */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tap: 48px;
  --r: 10px;
  --nav-h: 64px;
  --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--brand); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: .005em; font-variant-numeric: lining-nums; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
p { margin: 0 0 .7em; }
.i { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px;
  min-height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 8px 0;
  background: var(--bg-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar-title { flex: 1; min-width: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brand); padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title img { height: 30px; width: auto; }
.topbar-right { display: flex; gap: 4px; }
.icon-btn {
  width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border: 0; background: transparent;
  color: var(--brand); border-radius: 50%;
}
.icon-btn:active { background: var(--brand-wash); }

/* ---------- layout ---------- */
.view { padding: 18px 18px calc(var(--nav-h) + var(--safe-b) + 28px); max-width: 720px; margin: 0 auto; outline: none; }
.view.flush { padding-left: 0; padding-right: 0; }
.view.flush > .pad { padding-left: 18px; padding-right: 18px; }
.loading { display: grid; place-items: center; gap: 12px; min-height: 60vh; color: var(--mute); font-family: var(--serif); font-style: italic; font-size: 20px; }
.loading img { opacity: .8; }

.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 6px; }
.eyebrow.woad { color: var(--brand-2); }
.lede { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--ink-2); font-style: italic; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.section { margin: 28px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head a { font-size: 15px; font-weight: 600; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
.ornament { display: flex; align-items: center; gap: 12px; color: var(--brand-rule); margin: 26px 0 18px; }
.ornament::before, .ornament::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.ornament span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--brand-rule); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 12px; }
.card.tight { padding: 12px 14px; }
.card-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-height: 64px; }
.card-link .grow { flex: 1; min-width: 0; }
.card-link h3 { font-size: 22px; }
.card-link .chev { color: var(--brand-rule); }
.card-link > .i:first-child { color: var(--brand); width: 26px; height: 26px; }
.stack > * + * { margin-top: 10px; }

/* ---------- home ---------- */
.hero { text-align: center; padding: 8px 0 4px; }
.hero img { width: 210px; height: auto; margin: 6px auto 12px; }
.hero .eyebrow { margin-top: 2px; }
.timeline-strip {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 18px 14px; margin: 0 -18px;
  scrollbar-width: none; position: relative; scroll-padding: 0 18px;
}
.timeline-strip::-webkit-scrollbar { display: none; }
.tl-item {
  flex: none; width: 128px; scroll-snap-align: start; text-decoration: none; color: inherit; position: relative;
  padding: 26px 8px 4px 0; min-height: 96px;
}
.tl-item::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1.5px solid var(--brand-rule); }
.tl-item:first-child::before { left: 6px; }
.tl-item::after { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--brand); }
.tl-item.has-course::after { background: var(--brand); }
.tl-item .tl-name { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--brand); line-height: 1.05; display: block; }
.tl-item .tl-date { font-size: 12.5px; padding-right: 6px; color: var(--mute); display: block; margin-top: 4px; line-height: 1.25; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick {
  display: flex; flex-direction: column; gap: 10px; justify-content: space-between; min-height: 104px; padding: 14px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink);
}
.quick .i { color: var(--brand); width: 26px; height: 26px; }
.quick b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--brand); line-height: 1.1; display: block; }
.quick small { color: var(--mute); font-size: 13px; line-height: 1.3; display: block; margin-top: 2px; }
.quick.primary { grid-column: 1 / -1; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); min-height: 96px; flex-direction: row; align-items: center; }
.quick.primary b, .quick.primary .i { color: var(--brand-ink); }
.quick.primary small { color: var(--brand-ink-soft); }
.progress { height: 6px; border-radius: 3px; background: var(--brand-wash); overflow: hidden; margin: 10px 0 6px; }
.progress > span { display: block; height: 100%; background: var(--brand); }

/* ---------- periods ---------- */
.period-list { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.period-list::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 16px; border-left: 1.5px solid var(--brand-rule); }
.period-list li { position: relative; }
.period-list li + li { margin-top: 10px; }
.period-list li::before { content: ""; position: absolute; left: -22px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--brand); }
.period-list li.has-course::before { background: var(--brand); }
.period-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 72px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: inherit; }
.period-row .grow { flex: 1; min-width: 0; }
.period-row h3 { font-size: 23px; }
.period-row .dates { font-size: 14px; color: var(--mute); }
.fillbar { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.fill { font-size: 11.5px; letter-spacing: .04em; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--rule); color: var(--mute); white-space: nowrap; }
.fill.on { border-color: var(--brand-2); color: var(--brand); background: var(--brand-wash); }

.period-head { padding: 6px 18px 0; }
.period-head h1 { font-size: 40px; }
.period-head .dates { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink-2); margin-top: 4px; }
.source-line { font-size: 13px; color: var(--mute); margin-top: 8px; line-height: 1.4; }
.pn { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pn a { font-size: 14px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 2px; max-width: 48%; }
.pn a .i { width: 18px; height: 18px; }

.tabs {
  position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 10; background: var(--bg);
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 18px; border-bottom: 1px solid var(--rule); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 42px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--brand-rule);
  background: transparent; color: var(--brand); font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center;
}
.tab[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tab .count { font-weight: 400; opacity: .75; margin-left: 6px; font-size: 13px; }
.tabpanel { padding: 18px; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; border: 1px solid currentColor; line-height: 1.3; white-space: nowrap; vertical-align: middle;
}
.tag.evidence { color: var(--brand); background: var(--brand-wash); border-color: var(--brand-2); }
.tag.legend { color: var(--accent); background: var(--accent-wash); border-style: dashed; font-family: var(--serif); font-size: 13px; letter-spacing: .16em; font-style: italic; }
.tag.plausible { color: var(--ink-2); background: transparent; border-color: var(--rule); }
.tag.caution, .tag.warn { color: var(--warn); background: var(--warn-wash); border-color: var(--warn); }
.tag.chef { color: var(--chef); border-color: var(--chef-rule); background: var(--chef-wash); }
.tag.stub { color: var(--mute); border-color: var(--rule); background: transparent; }
.tag.reworked { color: var(--brand); border-color: var(--brand-2); }
.tag.empty { color: var(--mute); border-color: var(--rule); border-style: dashed; }
.tag.old { color: var(--mute); border-color: var(--rule); font-style: italic; text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: 12px; }
.tag .i { width: 13px; height: 13px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- empty states ---------- */
.empty-state {
  border: 1.5px dashed var(--brand-rule); border-radius: var(--r); padding: 22px 18px; text-align: center; background: var(--card-veil);
}
.empty-state .i { width: 30px; height: 30px; color: var(--brand-rule); margin: 0 auto 8px; }
.empty-state h3 { font-size: 22px; margin-bottom: 6px; }
.empty-state p { color: var(--ink-2); font-size: 15.5px; margin: 0 auto .5em; max-width: 34ch; }
.empty-state .tiny { color: var(--mute); }
.empty-state.left { text-align: left; }
.empty-state.left p { margin-left: 0; max-width: none; }
.coming { display: inline-block; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--brand-2); margin-bottom: 4px; }
.subempty { padding: 12px 0; border-top: 1px solid var(--rule); }
.subempty:first-of-type { border-top: 0; }
.subempty h4 { font-size: 19px; margin-bottom: 2px; }
.subempty p { margin: 0; font-size: 14.5px; color: var(--mute); font-style: italic; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--rule); }
.list > li:last-child { border-bottom: 1px solid var(--rule); }
.row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 2px; text-decoration: none; color: inherit; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--brand); line-height: 1.15; }
.row .sub { font-size: 13.5px; color: var(--mute); }
.row .chev { color: var(--brand-rule); width: 18px; }
.group-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 22px 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- forms ---------- */
.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px; }
.input, select.input, textarea.input {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--brand-rule);
  background: var(--field); font-size: 17px; appearance: none; -webkit-appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.searchbox { position: relative; }
.searchbox .i { position: absolute; left: 12px; top: 13px; color: var(--mute); }
.searchbox .input { padding-left: 42px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px;
  border-radius: 99px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 16px; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--brand); }
.btn.quiet { background: transparent; border-color: var(--rule); color: var(--ink-2); }
.btn.danger { background: transparent; color: var(--warn); border-color: var(--warn-rule); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn .i { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: transparent; border: 1.5px dashed var(--brand-rule); color: var(--mute); font-weight: 400; cursor: default; }
.btn[disabled]:active { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--brand); border-radius: 12px; overflow: hidden; }
.seg button { min-height: 52px; border: 0; background: transparent; color: var(--brand); font-weight: 600; font-size: 15px; line-height: 1.15; padding: 4px 6px; }
.seg button + button { border-left: 1px solid var(--brand-rule); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--brand-rule);
  background: var(--field); color: var(--ink); font-size: 15.5px; line-height: 1.2; text-align: left;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip.core { background: var(--brand-wash); border-color: var(--brand-2); color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: default; }
.chip.core .i { width: 14px; height: 14px; }
.chip.old { background: transparent; border-style: dashed; border-color: var(--rule); color: var(--faint); font-style: italic; cursor: default; }
.chip.off { background: transparent; color: var(--mute); border-color: var(--rule); cursor: default; }
.chip .warnmark { color: var(--warn); }
.chip[aria-pressed="true"] .warnmark { color: var(--warn-on-brand); }
.chip .inlarder { width: 15px; height: 15px; color: var(--chef); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filterbar { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.filterbar::-webkit-scrollbar { display: none; }
.filterbar .chip { flex: none; }
.filterbar.wrap { flex-wrap: wrap; overflow: visible; }

/* ---------- ingredients ---------- */
.photo-slot {
  aspect-ratio: 1; border-radius: 8px; border: 1px dashed var(--brand-rule); background: repeating-linear-gradient(135deg, var(--hatch) 0 8px, var(--hatch-2) 8px 16px);
  display: grid; place-items: center; color: var(--brand-rule); text-align: center; font-size: 10.5px; line-height: 1.2; padding: 4px;
}
.photo-slot.big { aspect-ratio: 4 / 3; border-radius: var(--r); font-size: 13.5px; gap: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.photo-slot.big .i { width: 34px; height: 34px; }
.safety-box { border-radius: var(--r); padding: 14px; border: 1.5px solid var(--warn); background: var(--warn-wash); color: var(--warn); }
.safety-box h3 { color: var(--warn); font-size: 21px; display: flex; gap: 8px; align-items: center; }
.safety-box p { color: var(--warn-ink); margin: 6px 0 0; font-size: 15.5px; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.months span { text-align: center; font-size: 11px; padding: 6px 0; border-radius: 4px; background: var(--wash-2); color: var(--faint-2); }
.months span.on { background: var(--brand); color: var(--brand-ink); }
.months span.now { outline: 1.5px solid var(--brand-2); outline-offset: -1.5px; }
dl.facts { margin: 0; }
dl.facts > div { padding: 12px 0; border-top: 1px solid var(--rule); }
dl.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 5px; }
dl.facts dd { margin: 0; }
.tbf { color: var(--faint-3); font-style: italic; font-family: var(--serif); font-size: 18px; }

/* ---------- forage ---------- */
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.month-tile {
  min-height: 74px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--card); padding: 10px 10px 8px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
}
.month-tile b { font-family: var(--serif); font-size: 21px; color: var(--brand); font-weight: 600; line-height: 1; }
.month-tile small { font-size: 12px; color: var(--faint-2); }
.month-tile.now { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); }
.month-tile.now small { color: var(--brand-2); font-weight: 600; }
.month-tile[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); }
.month-tile[aria-pressed="true"] b, .month-tile[aria-pressed="true"] small { color: var(--brand-ink); }

/* ---------- larder ---------- */
.larder-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 14px 0; border-top: 1px solid var(--rule); }
.larder-item:last-child { border-bottom: 1px solid var(--rule); }
.larder-item h3 { font-size: 22px; }
.larder-item .meta { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.larder-item .notes { grid-column: 1 / -1; font-size: 14.5px; color: var(--ink-2); font-style: italic; margin: 2px 0 0; }
.larder-item .acts { display: flex; gap: 0; }
.pill { font-size: 12.5px; padding: 2px 9px; border-radius: 99px; background: var(--brand-wash); color: var(--brand); font-weight: 600; }
details.add { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 0 16px; }
details.add[open] { padding-bottom: 16px; }
details.add > summary { list-style: none; min-height: 56px; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brand); cursor: pointer; }
details.add > summary::-webkit-details-marker { display: none; }
details.add > summary .i { color: var(--brand); }

/* ---------- menu builder ---------- */
.menu-card { display: block; text-decoration: none; color: inherit; }
.menu-card h3 { font-size: 23px; }
.range-summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.name-input { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--brand); border: 0; border-bottom: 1px dashed var(--brand-rule); background: transparent; width: 100%; padding: 4px 0; border-radius: 0; min-height: var(--tap); }
.name-input:focus { outline: none; border-bottom: 1.5px solid var(--brand); }
.saved { font-size: 12.5px; color: var(--chef); display: inline-flex; align-items: center; gap: 4px; }
.saved .i { width: 14px; height: 14px; }
.rules-box { background: var(--brand); color: var(--brand-ink-2); border-radius: var(--r); padding: 14px 16px; }
.rules-box h3 { color: var(--brand-ink); font-size: 20px; margin-bottom: 6px; }
.rules-box ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.45; }
.rules-box li + li { margin-top: 4px; }
.rules-box summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.rules-box summary::-webkit-details-marker { display: none; }
.section-divider { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; color: var(--brand); }
.section-divider b { font-family: var(--serif); font-size: 15px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; border-top: 1px solid var(--brand-rule); }
.slot { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 16px 14px; position: relative; }
.slot + .slot { margin-top: 12px; }
.slot.is-empty { background: var(--card-veil-2); border-style: dashed; border-color: var(--brand-rule); }
.slot.is-skipped { opacity: .55; }
.slot-top { display: flex; gap: 12px; align-items: flex-start; }
.slot-num { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 18px; margin-top: 2px; font-variant-numeric: lining-nums; }
.slot.is-empty .slot-num { border-style: dashed; border-color: var(--brand-rule); color: var(--mute); }
.slot-head { flex: 1; min-width: 0; }
.slot-period { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; }
.slot-period .d { color: var(--mute); letter-spacing: .02em; text-transform: none; font-weight: 400; }
.slot h3 { font-size: 25px; margin: 3px 0 6px; }
.slot h3.noname { color: var(--faint); font-style: italic; font-weight: 500; }
.slot .role { font-size: 15px; color: var(--ink-2); margin: 10px 0 0; }
.slot .kv { margin: 10px 0 0; font-size: 14.5px; }
.slot .kv dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }
.slot .kv dd { margin: 2px 0 0; color: var(--ink-2); }
.slot details.more > summary { list-style: none; cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14.5px; min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.slot details.more > summary::-webkit-details-marker { display: none; }
.slot details.more > summary .i { width: 16px; height: 16px; transition: transform .15s; }
.slot details.more[open] > summary .i { transform: rotate(90deg); }
.core-line { margin-top: 12px; font-size: 14.5px; }
.core-line .lbl, .picks .lbl, .old-line .lbl { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 4px; }
.core-line u { text-underline-offset: 3px; color: var(--brand); text-decoration-color: var(--brand-2); }
.picks { margin-top: 12px; }
.picks .chips .chip { min-height: 34px; font-size: 14px; padding: 4px 11px; }
.old-line { margin-top: 12px; color: var(--faint); font-size: 14.5px; font-style: italic; }
.old-line .items { color: var(--faint); }
.slot-sourcing { margin-top: 12px; font-size: 13.5px; border-left: 3px solid var(--brand-rule); padding: 2px 0 2px 10px; }
.slot-sourcing .lbl { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 4px; }
.slot-sourcing p { margin: 0 0 6px; }
.slot-actions { display: flex; gap: 8px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.slot-actions .btn { flex: 1; }
.slot-actions .btn.skip { flex: none; }
.slot-warn { margin-top: 10px; font-size: 13.5px; color: var(--warn); background: var(--warn-wash); border-radius: 8px; padding: 6px 10px; display: flex; gap: 6px; }
.slot-warn .i { width: 17px; height: 17px; }
.ref-box { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--brand-rule); background: var(--wash); font-size: 14px; color: var(--ink-2); border-radius: 0 8px 8px 0; }
.menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(30, 26, 22, .38); display: flex; align-items: flex-end; }
.sheet {
  background: var(--bg); width: 100%; max-width: 720px; margin: 0 auto; max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; box-shadow: 0 -8px 30px rgba(0, 0, 0, .16);
}
.sheet-head { padding: 10px 16px 10px; border-bottom: 1px solid var(--rule); }
.sheet-head .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--rule); margin: 0 auto 10px; }
.sheet-head .top { display: flex; align-items: flex-start; gap: 8px; }
.sheet-head h2 { font-size: 24px; flex: 1; min-width: 0; }
.sheet-body { overflow-y: auto; padding: 8px 16px 16px; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 10px 16px calc(10px + var(--safe-b)); border-top: 1px solid var(--rule); background: var(--card); }
.pool { margin-top: 16px; }
.pool-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.pool-head b { font-family: var(--serif); font-size: 19px; color: var(--brand); font-weight: 600; }
.pool-note { font-size: 13.5px; color: var(--mute); font-style: italic; margin: -2px 0 8px; }

/* ---------- misc ---------- */
.toast.warn { background: var(--warn); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 60; background: var(--brand); color: var(--brand-ink); padding: 10px 18px; border-radius: 99px; font-size: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); max-width: 90vw; text-align: center; }
.note-callout { font-size: 14px; color: var(--ink-2); background: var(--wash); border-radius: 8px; padding: 10px 12px; }
.inferred { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-left: 4px; }

/* ---------- bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--card); border-top: 1px solid var(--rule);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--mute); font-size: 12px; font-weight: 600; letter-spacing: .03em; position: relative; }
.bottomnav a .i { width: 25px; height: 25px; }
.bottomnav a.active { color: var(--brand); }
.bottomnav a.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2.5px; background: var(--brand); border-radius: 0 0 2px 2px; }

@media (min-width: 560px) { .quick-grid { grid-template-columns: 1fr 1fr 1fr; } .month-grid { grid-template-columns: repeat(4, 1fr); } }
@media print { .bottomnav, .topbar, .slot-actions, .menu-actions { display: none !important; } body { background: #fff; } }

/* ---------------------------------------------------------------- Danger & lookalikes (v0.5 re-issue) */
:root { --danger: #B00000; --danger-dark: #7A0000; --danger-wash: #FDECEC; --safe: #2F6B2F; --safe-wash: #EAF4E6; }
.tag.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.safety-box.danger { border: 2px solid var(--danger); background: var(--danger-wash); }
.safety-box.danger h3 { color: var(--danger); }
.dz-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.dz-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; background: var(--danger); color: #fff !important; font-weight: 700; text-decoration: none; font-size: 14px; }
.dz-link small { font-weight: 400; opacity: .9; }
.dz-link .i { width: 16px; height: 16px; }
.dz-homecard, .dz-morecard { display: flex; align-items: center; gap: 12px; background: var(--danger); color: #fff !important; border: 0; border-radius: var(--r); padding: 14px 16px; text-decoration: none; margin: 4px 0 14px; }
.dz-homecard .i, .dz-morecard .i { color: #fff; width: 26px; height: 26px; flex: none; }
.dz-homecard b { display: block; font-size: 17px; }
.dz-homecard small { display: block; font-size: 13.5px; opacity: .95; }
.dz-morecard h3, .dz-morecard .small { color: #fff; }
.dz-homecard .chev, .dz-morecard .chev { margin-left: auto; width: 18px; height: 18px; }
.dz-eyebrow { color: var(--danger) !important; }
.dz-banner { display: flex; gap: 10px; align-items: flex-start; background: var(--danger); color: #fff; border-radius: var(--r); padding: 12px 14px; margin: 12px 0; }
.dz-banner p { margin: 0; font-size: 15.5px; line-height: 1.35; }
.dz-banner .i { width: 24px; height: 24px; flex: none; color: #fff; margin-top: 1px; }
.dz-banner.slim p { font-size: 13.5px; }
.dz-emergency { border: 2px solid var(--danger); border-radius: var(--r); padding: 10px 14px; background: var(--danger-wash); }
.dz-emergency h3 { margin: 0 0 4px; color: var(--danger); font-size: 16px; }
.dz-emergency p { margin: 4px 0; }
.dz-phone { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.dz-phone a { font-weight: 800; font-size: 22px; color: var(--danger-dark); text-decoration: none; }
.dz-phone span, .dz-phone small { color: var(--ink); }
.lvl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-top: 4px; }
.lvl .i { width: 13px; height: 13px; }
.lvl-deadly { background: #7A0000; color: #fff; }
.lvl-serious { background: var(--danger); color: #fff; }
.lvl-irritant { background: #C0501A; color: #fff; }
.lvl-care { background: #F3D9A0; color: #5A3A00; }
.lvl-text-deadly { color: #7A0000; } .lvl-text-serious { color: var(--danger); } .lvl-text-irritant { color: #C0501A; } .lvl-text-care { color: #8A5A00; }
.dz-h { margin: 18px 0 6px; font-size: 20px; }
.dz-row { align-items: center; gap: 12px; }
.dz-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.dz-thumb.none .i { width: 22px; height: 22px; color: var(--mute); }
.dz-conf { color: var(--mute); margin-top: 3px; }
.dz-chips { margin: 6px 0 4px; }
.dz-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-top: 8px; }
.dz-gallery figure { margin: 0; flex: 0 0 86%; scroll-snap-align: start; }
.dz-gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; display: block; }
.dz-gallery figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; margin-top: 4px; }
.dz-gallery figcaption .tiny { color: var(--mute); }
.dz-toxic dt { color: var(--danger); }
.dz-toxic dd { color: var(--danger-dark); font-weight: 600; }
.dz-id { margin: 0; padding-left: 18px; }
.dz-id li { margin: 3px 0; }
.dz-cmp { border: 1px solid var(--rule); border-radius: var(--r); padding: 10px; margin: 10px 0 14px; background: var(--card); }
.dz-cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dz-side { border-radius: 8px; overflow: hidden; border: 3px solid; display: flex; flex-direction: column; }
.dz-side img, .dz-side .photo-slot { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.dz-side img { display: block; }
.dz-side .photo-slot { display: flex; }
.dz-side-h { min-height: 46px; font-weight: 800; font-size: 13px; padding: 6px 8px; display: flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: .03em; }
.dz-side-h .i { width: 14px; height: 14px; }
.dz-side-n { padding: 6px 8px; font-size: 13.5px; display: flex; flex-direction: column; }
.dz-side-n i { color: var(--mute); font-size: 12.5px; }
.dz-side.dont { border-color: var(--danger); }
.dz-side.dont .dz-side-h { background: var(--danger); color: #fff; }
.dz-side.pick { border-color: var(--safe); }
.dz-side.pick .dz-side-h { background: var(--safe); color: #fff; }
.dz-side.confused { border-color: #8A8A8A; }
.dz-side.confused .dz-side-h { background: #8A8A8A; color: #fff; }
.dz-how { margin-top: 8px; }
.dz-how h4 { margin: 0 0 2px; font-size: 15px; }
.dz-how p { margin: 0; }
.dz-cmp-credit { margin: 6px 0 0; }
.dz-nophoto { flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; color: var(--mute); }
.dz-fungi { border: 2px solid var(--danger); background: var(--danger-wash); }
.dz-fungi h3 { color: var(--danger); display: flex; gap: 6px; align-items: center; }
.dz-fungi h3 .i { width: 18px; height: 18px; }
.dz-src li { margin: 4px 0; word-break: break-word; }

/* update bar (service worker) */
.sw-update { white-space: nowrap; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 1000; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; }

/* comparison links from edible-with-care ingredients (not red) */
.dz-link.cmp { background: #F3D9A0; color: #5A3A00 !important; }
.dz-care { display: block; margin-top: 4px; font-size: 12.5px; color: #5A3A00; background: #FFF4DC; border-radius: 6px; padding: 4px 6px; }
.safety-box.care { border: 2px solid #D9A93A; background: #FFF6E0; }
.safety-box.care h3 { color: #7A5200; }

/* wild food galleries (v0.2): illustrations shown whole on paper */
.dz-gallery figure.illus img { object-fit: contain; background: var(--card); border: 1px solid rgba(0,0,0,.08); }

/* ---------- seasonality (shared UK dataset) ---------- */
.ss-item > summary { list-style: none; cursor: pointer; }
.ss-item > summary::-webkit-details-marker { display: none; }
.ss-item > summary .chev { transform: rotate(90deg); transition: transform .15s; }
.ss-item[open] > summary .chev { transform: rotate(-90deg); }
.ss-item .tag { vertical-align: 3px; }
.ss-body { padding: 0 2px 12px; color: var(--ink-2); }
.ss-body p { margin: 0 0 8px; }
.ss-body a { color: var(--brand); }
.chip.ss-now { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); }

/* category bands: a solid block of the category colour, edge to edge, white label; matching left edge on rows */
.ss-cat-veg { --cat: var(--cat-veg); }
.ss-cat-fruit { --cat: var(--cat-fruit); }
.ss-cat-meat { --cat: var(--cat-meat); }
.ss-cat-game { --cat: var(--cat-game); }
.ss-cat-fish { --cat: var(--cat-fish); }
.ss-cat-shellfish { --cat: var(--cat-shellfish); }
.ss-cat-fungi { --cat: var(--cat-fungi); }
.ss-cat-wild { --cat: var(--cat-wild); }
.group-label.ss-cat {
  background: var(--cat, var(--brand)); color: var(--cat-ink);
  margin: 26px -18px 0; padding: 11px 18px; font-size: 13px; letter-spacing: .14em;
}
.group-label.ss-cat span {
  margin-left: auto; min-width: 24px; padding: 1px 8px; border-radius: 999px; text-align: center; letter-spacing: 0;
  background: rgba(255, 255, 255, .2); color: var(--cat-ink); font-weight: 600;
}
.ss-list > li:first-child { border-top: 0; }
.ss-list > li { border-left: 4px solid var(--cat, var(--rule)); }
.ss-list > li > .ss-item > summary.row, .ss-list .ss-body { padding-left: 12px; }
.ss-sub { /* kitchen-use group subheading inside a category band */
  display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 0 6px 12px;
  border-left: 4px solid var(--cat, var(--rule)); border-bottom: 1px solid var(--rule);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cat, var(--mute));
}
.ss-sub span { margin-left: auto; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.ss-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.ss-meta .tag.ss-fam { font-size: 11px; padding: 1px 7px; text-transform: none; letter-spacing: .02em; font-weight: 500; color: var(--ink-2); background: transparent; border-color: var(--rule); vertical-align: 0; }
.ss-allergens { font-size: 12px; color: var(--warn); }
.ss-allergens.none { color: var(--mute); }
.ss-aka { font-size: .8em; font-weight: 400; color: var(--mute); }

/* wild food groups: same bands and left edges as In season; Danger keeps the fixed danger red (not themeable) */
.wg-mushrooms { --cat: var(--cat-fungi); }
.wg-berries { --cat: var(--cat-fruit); }
.wg-nuts { --cat: var(--cat-nuts); }
.wg-leaves { --cat: var(--cat-wild); }
.wg-flowers { --cat: var(--cat-flowers); }
.wg-roots { --cat: var(--cat-roots); }
.wg-veg { --cat: var(--cat-wildveg); }
.wg-medicinal { --cat: var(--cat-medicinal); }
.wg-warnings { --cat: var(--danger); }
.wg-seashore { --cat: var(--cat-shellfish); }
.wg-spices { --cat: var(--cat-spices); }
.wg-danger { --cat: var(--danger); }
.wg-other { --cat: var(--brand); }
.group-label.ss-cat.wg-danger, .group-label.ss-cat.wg-danger span { color: #fff; }
.group-label.ss-cat.wg-other, .group-label.ss-cat.wg-other span { color: var(--brand-ink); }
.ss-list > li > a.row { padding-left: 12px; }
.wg-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 6px; font-size: 13px; color: var(--ink-2); }
.wg-key { display: inline-flex; align-items: center; gap: 6px; }
.wg-key i { width: 12px; height: 12px; border-radius: 3px; background: var(--cat); flex: none; }
button.wg-key { min-height: 34px; padding: 4px 11px 4px 9px; border-radius: 99px; border: 1px solid var(--rule); background: var(--field); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
button.wg-key[aria-pressed="true"] { background: var(--cat); border-color: var(--cat); color: var(--cat-ink); }
button.wg-key[aria-pressed="true"] i { background: currentColor; }
button.wg-key.wg-danger[aria-pressed="true"] { color: #fff; }
.field + .wg-legend { margin: 10px 0 4px; gap: 6px 6px; }

/* ---------- calm danger styling (Oct 2026): thin 1px red outline + red "DANGER!" text instead of solid red blocks.
   The safety wording is unchanged; only the visual weight is reduced. #B00000 = 7.38:1 on white, 6.4:1 on cream. */
.tag.danger { color: var(--danger); background: transparent; border: 1px solid var(--danger); font-weight: 800; letter-spacing: .04em; }
.dz-word { display: inline-block; flex: none; color: var(--danger); border: 1px solid var(--danger); border-radius: 4px; padding: 0 5px; font-size: 12px; font-weight: 800; letter-spacing: .04em; line-height: 1.5; background: transparent; }
.safety-box.danger { border: 1px solid var(--danger); background: transparent; }
.safety-box.danger h3 { color: var(--danger); font-size: 18px; }
.safety-box.danger p { color: var(--ink); }
.dz-link { background: transparent; color: var(--danger) !important; border: 1px solid var(--danger); font-weight: 700; }
.dz-link.cmp { background: transparent; color: #7A5200 !important; border-color: #B88A2E; }
.dz-homecard, .dz-morecard { background: transparent; color: var(--ink) !important; border: 1px solid var(--danger); }
.dz-homecard .i, .dz-morecard .i { color: var(--danger); }
.dz-homecard b, .dz-morecard h3 { color: var(--danger); }
.dz-morecard .small { color: var(--ink-2); }
.dz-banner { background: transparent; color: var(--danger-dark); border: 1px solid var(--danger); }
.dz-banner .i { color: var(--danger); }
.dz-emergency, .dz-fungi { border-width: 1px; background: transparent; }
.lvl-deadly, .lvl-serious, .lvl-irritant, .lvl-care { background: transparent; border: 1px solid currentColor; }
.lvl-deadly { color: #7A0000; } .lvl-serious { color: var(--danger); } .lvl-irritant { color: #A3410F; } .lvl-care { color: #7A5200; }
.dz-side { border-width: 1px; }
.dz-side.dont .dz-side-h { background: transparent; color: var(--danger); border-bottom: 1px solid var(--danger); }
.dz-side.pick .dz-side-h { background: transparent; color: var(--safe); border-bottom: 1px solid var(--safe); }
.dz-side.confused .dz-side-h { background: transparent; color: #5E5E5E; border-bottom: 1px solid #8A8A8A; }
/* Danger / Warnings section band: an outlined label, not a solid red block */
.group-label.ss-cat.wg-danger, .group-label.ss-cat.wg-warnings { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.group-label.ss-cat.wg-danger span, .group-label.ss-cat.wg-warnings span { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
button.wg-key.wg-danger[aria-pressed="true"], button.wg-key.wg-warnings[aria-pressed="true"] { background: transparent; color: var(--danger); border-color: var(--danger); }
button.wg-key.wg-warnings[aria-pressed="true"] i { background: var(--danger); }

/* ---------- usage sections (wild.uses[]) */
.use-links { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.use-links a { color: var(--cat, var(--brand)); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.use-links a.wg-warnings { color: var(--danger); }
.use-block { margin-top: 14px; }
.use-block > .group-label { margin-bottom: 8px; }
.med-notice { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--cat-medicinal); border-radius: 8px; padding: 8px 10px; margin: 8px 0; color: var(--ink); font-size: 14px; }
.med-notice p { margin: 0; }
.med-notice .i { width: 18px; height: 18px; flex: none; color: var(--cat-medicinal); margin-top: 1px; }
.sea-notice { border-color: var(--cat-shellfish); }
.sea-notice .i { color: var(--cat-shellfish); }
.sea-notice p + p { margin-top: 6px; }
.claims { list-style: none; padding: 0; margin: 8px 0; }
.claims li { border-left: 3px solid var(--cat-medicinal); padding: 4px 0 8px 10px; margin: 0 0 10px; }
.claims p { margin: 4px 0; }
.rate { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; border: 1px solid; }
.rate-scientific { color: #1F5E33; border-color: #1F5E33; }
.rate-traditional { color: #4A5E60; border-color: #587173; }
.rate-folklore { color: #6E5A2E; border-color: #9A8450; border-style: dashed; }

/* ---------- responsible fishing (Oct 2026): calm thin-outline rating chips, never solid blocks */
.gf-chip { font-family: var(--sans); display: inline-flex; align-items: center; flex: none; border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; font-size: 12.5px; font-weight: 700; line-height: 1.6; letter-spacing: .02em; white-space: nowrap; background: transparent; vertical-align: 2px; }
.gf-green { color: var(--safe); background: var(--safe-wash); }
.gf-amber { color: var(--accent); background: var(--accent-wash); }
.gf-red { color: var(--warn); background: var(--warn-wash); }
.gf-none { color: var(--mute); border-style: dashed; font-weight: 600; }
.gf-panel { border: 1px solid var(--cat-fish); border-radius: var(--r); padding: 12px 14px; background: var(--card); }
.gf-panel h2 { margin-top: 0; color: var(--cat-fish); }
.gf-best { display: flex; gap: 10px; align-items: flex-start; }
.gf-best .gf-chip { margin-top: 2px; }
.gf-best p { margin: 0; font-size: 15px; }
.gf-h { font-size: 18px; margin: 14px 0 6px; }
.gf-h small { font-family: var(--sans); font-size: 12px; font-weight: 400; }
.gf-methods, .gf-subs, .gf-all ul { list-style: none; padding: 0; margin: 0; }
.gf-methods li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.gf-methods li:first-child { border-top: 0; }
.gf-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.gf-all { margin: 8px 0 4px; }
.gf-all summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; min-height: 40px; display: flex; align-items: center; }
.gf-all li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--rule); }
.gf-all li .gf-chip { margin-top: 2px; }
.gf-facts { margin-top: 12px; }
.gf-subs li { border-left: 2px solid var(--cat-fish); padding: 4px 0 6px 10px; margin: 0 0 10px; }
.gf-subhead { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gf-src { margin: 10px 0 0; }
.ss-item .gf-chip { vertical-align: 3px; }

/* Recipes (modules "recipes" + "recipeForm") */
.field .hint, .rc-allergens .hint { display: block; font-size: 13.5px; color: var(--mute); margin-top: 5px; line-height: 1.35; }
.rc-photo { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--rule); background: var(--hatch); }
.rc-ings { list-style: none; padding: 0; margin: 8px 0 0; }
.rc-ings li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.rc-ings li b { font-weight: 600; color: var(--brand); }
.rc-method { padding-left: 1.4em; margin: 8px 0 0; }
.rc-method li { margin-bottom: 10px; padding-left: 4px; }
.rc-notes { white-space: pre-line; margin: 8px 0 0; }

.ss-al-link { color: inherit; text-decoration: none; }
.ss-al-link .ss-allergens { text-decoration: underline dotted; text-underline-offset: 2px; }
.al-list .title { margin-bottom: 4px; }
.al-list p { margin: 4px 0; }
/* Recipes: three ways to add, then Ready to send */

/* Pre-sale safety (15 Oct 2026): banner on every species/Danger page, first-run acknowledgement, medicinal blocks */
.safe-banner { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 10px 12px; border: 1.5px solid #b3261e; border-radius: 10px; background: #fdf1ef; color: #3b0d0a; font-size: .86rem; line-height: 1.35; }
.safe-banner svg { flex: 0 0 20px; width: 20px; height: 20px; color: #b3261e; margin-top: 2px; }
.safe-banner p { margin: 0 0 4px; }
.safe-banner a { color: #b3261e; font-weight: 600; }
.safe-gate { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 16, 12, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.safe-card { background: #fffdf8; color: #1d1a16; max-width: 480px; width: 100%; max-height: 90vh; overflow: auto; border-radius: 14px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.safe-card h2 { margin: 2px 0 10px; }
.safe-card p { margin: 0 0 10px; line-height: 1.4; }
.safe-tick { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-weight: 600; }
.safe-tick input { flex: 0 0 22px; width: 22px; height: 22px; }
.safe-card .btn { width: 100%; padding: 12px; font-size: 1rem; }
.safe-card .btn[disabled] { opacity: .45; }
.med-h { margin: 14px 0 6px; font-size: 1rem; }

/* Dalleth's own fish ratings: deliberately not traffic-light colours */
.fr-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 4px; font-size: .82rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; border: 1.5px solid; }
.fr-good { background: #1f3a5f; border-color: #1f3a5f; color: #fff; }
.fr-care { background: #fff; border-color: #6b4e8a; color: #4b3463; border-style: dashed; }
.fr-rest { background: repeating-linear-gradient(135deg, #e7e4df 0 6px, #d6d1ca 6px 12px); border-color: #55606b; color: #2f363d; }
.fr-none { background: transparent; border-color: #b9b2a7; color: #6f675c; border-style: dotted; font-weight: 400; }
.fr-mini { font-size: .7rem; padding: 1px 6px; }
.fr-box { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.fr-box p { margin: 6px 0 0; }
.fr-key li { display: block; }
/* species pages: warnings fold away; the pop-up carries them */
.sp-card .dz-id { margin: 4px 0 10px; padding-left: 18px; }
.sp-card .dz-id li { margin-bottom: 4px; line-height: 1.35; }
.sp-card .btn { margin-top: 6px; }

.sp-deadly { border: 2px solid #b3261e; background: #fdecea; color: #8a1c1c; border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.sp-deadly h3 { color: #b3261e; margin: 0 0 4px; font-size: 1rem; display: flex; gap: 6px; align-items: center; }
.sp-deadly ul { margin: 0; padding-left: 18px; } .sp-deadly b { color: #b3261e; }
.priv-list li { margin-bottom: 10px; }
.safe-banner.compact { margin: 8px 0 12px; padding: 8px 10px; font-size: .82rem; }

/* ---- edition modules (logoPill, shoppingRedGreen) ---- */
.d-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; border: 1px solid var(--brand-rule); border-radius: 999px; background: var(--card); vertical-align: middle; }
.d-pill img { border-radius: 50%; display: block; }
.d-pill b { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .28em; text-transform: uppercase; color: var(--brand); }
.d-by { font-family: var(--serif); font-size: 17px; color: var(--brand); margin-left: 8px; vertical-align: middle; }
.shop-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.shop-tile { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; text-align: left; font: inherit; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--rule); border-radius: var(--r); color: var(--ink); }
.shop-n { flex: 1; min-width: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--brand); line-height: 1.15; }
.shop-p { flex: 0 1 auto; max-width: 48%; font-size: 13px; line-height: 1.3; color: var(--mute); text-align: right; white-space: normal; }
.shop-cue { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.shop-tile.shop-green { background: #E3F1E6; border-color: #1E6B34; }
.shop-tile.shop-green .shop-n, .shop-tile.shop-green .shop-cue { color: #1E6B34; }
.shop-tile.shop-red { background: #F6E4E0; border-color: #B3261E; }
.shop-tile.shop-red .shop-n, .shop-tile.shop-red .shop-cue { color: #B3261E; }
.shop-tile.shop-green .shop-p, .shop-tile.shop-red .shop-p { color: var(--ink-2); }
.shop-tile:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.shop-g { color: #1E6B34; } .shop-r { color: #B3261E; }
.shop-total b { font-family: var(--serif); font-size: 20px; color: var(--brand); }

/* Compact segmented UK/US and region toggles (Forage, Seasons, Danger, Shopping) */
.chips.seg { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 4px; margin: 14px 0 16px; padding: 2px; }
.chips.seg + .chips.seg { margin-top: -6px; }
.chips.seg .chip { min-height: 32px; padding: 4px 12px; font-size: 13px; line-height: 1.2; border-radius: 16px; position: relative; }
.chips.seg .chip::after { content: ""; position: absolute; inset: -6px -2px; }  /* ~44px tap area without the visual bulk */

/* 23:02 22 Oct: big home / book buttons, mother-daughter areas */
.home-big { display: grid; gap: 12px; }
.bigbtn { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--rule); color: var(--brand); text-decoration: none; margin-top: 10px; }
.home-big .bigbtn { margin-top: 0; }
.bigbtn .i { width: 30px; height: 30px; flex: none; }
.bigbtn span { flex: 1; }
.bigbtn b { font-family: var(--serif); font-size: 22px; font-weight: 600; display: block; line-height: 1.15; }
.bigbtn small { display: block; color: var(--mute); font-size: 13px; margin-top: 3px; }
.bigbtn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); min-height: 92px; }
.bigbtn.primary small { color: var(--brand-ink-soft); }
.bigbtn.primary b { font-size: 26px; }
.bigbtn.small { padding: 12px 16px; }
.bigbtn.small b { font-size: 18px; }
.bigbtn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bookbtn { display: flex; flex-direction: column; justify-content: center; min-height: 84px; padding: 14px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.bookbtn b { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.1; }
.bookbtn small { color: var(--brand-ink-soft); font-size: 12px; margin-top: 4px; }
.md-area { margin-top: 12px; }
.md-area .list { border-left: 5px solid var(--mc, var(--brand-rule)); box-shadow: -1px 0 0 var(--mco, transparent); }
.row.md-mother .title { font-weight: 700; color: var(--brand); }
.md-pill { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(46,125,50,.14); border: 1px solid rgba(46,125,50,.35); color: #1b5e20; font-family: var(--sans, system-ui); font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }

/* ---------------------------------------------------------------- v2 (LOCAL DRAFT): book themes, matrix, ingredient methods */
.v2-shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v2-tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 92px; padding: 12px; border-radius: 12px; background: var(--bk-bg); color: #fff; text-decoration: none; border-bottom: 4px solid var(--bk-trim); }
.v2-tile b { font-size: 18px; } .v2-tile small { color: var(--bk-trim); font-size: 12px; }
.v2-tile.locked { filter: saturate(.35); opacity: .8; }
.v2-band { background: var(--bk-bg); color: #fff; margin: 0 -16px; padding: 18px 16px 14px; border-bottom: 4px solid var(--bk-trim); }
.v2-band h1 { color: #fff; margin: 2px 0 0; } .v2-band .eyebrow { color: var(--bk-trim); } .v2-band p.small { color: #fff; opacity: .9; margin: 6px 0 0; }
.v2-grid { overflow-x: auto; margin-top: 14px; padding-bottom: 8px; }
.v2-row { display: grid; grid-template-columns: 116px repeat(var(--slots), 108px); gap: 6px; margin-bottom: 6px; width: max-content; }
.v2-mother, .v2-cell { min-height: 84px; border-radius: 10px; padding: 8px; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.v2-mother { position: sticky; left: 0; z-index: 1; background: var(--bk-bg); color: #fff; border: 0; border-left: 4px solid var(--bk-trim); }
.v2-mother .v2-en, .v2-mother .v2-r { color: var(--bk-trim); }
.v2-cell { background: var(--card); color: var(--ink); border: 1px solid var(--rule); position: relative; }
/* Favourite cue is the gold star only — no second perimeter outline that stacks with stock status. */
.v2-cell.gold { outline: none; }
.v2-cell.empty { background: transparent; border: 1px dashed var(--rule); cursor: default; }
.v2-cell.lockd { align-items: center; justify-content: center; background: var(--wash-2); color: var(--mute); font-size: 20px; }
.v2-cell.sel, .v2-mother.sel { box-shadow: 0 0 0 3px var(--bk-trim); }
.v2-nm { font-size: 14px; line-height: 1.2; } .v2-en { display: block; font-size: 11px; line-height: 1.25; color: var(--mute); }
.v2-r { font-size: 12px; font-variant-numeric: tabular-nums; margin-top: auto; color: var(--ink-2); }
.v2-star { color: #C9A227; position: absolute; top: 4px; right: 6px; } summary .v2-star { position: static; }
.v2-sheet { position: relative; border-top: 4px solid var(--bk-bg); padding-top: 8px; }
.v2-x { position: absolute; right: 0; top: 4px; font-size: 26px; border: 0; background: none; color: var(--ink); min-width: 48px; min-height: 48px; cursor: pointer; }
.v2-panel { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin-top: 8px; background: var(--card); }
.v2-panel > summary { cursor: pointer; min-height: 40px; list-style: none; } .v2-panel > summary::-webkit-details-marker { display: none; }
.v2-panel > summary::after { content: '+'; float: right; font-size: 20px; color: var(--mute); } .v2-panel[open] > summary::after { content: '\2212'; }
.v2-panel > summary .v2-nm, .v2-panel > summary .v2-en { display: inline; } .v2-panel > summary .v2-en::before { content: ' · '; }
.v2-panel.mother { border-left: 4px solid var(--bk-bg); }
.v2-meths { padding-left: 18px; margin: 6px 0; } .v2-meth { margin: 6px 0; }
.v2-plate { border-bottom: 1px solid var(--rule); padding: 10px 0; } .v2-plate summary { cursor: pointer; min-height: 32px; }
.v2-shop { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.v2-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bk-bg); color: #fff; font-size: 12px; border-bottom: 2px solid var(--bk-trim); }
.v2-own { display: flex; gap: 10px; align-items: center; min-height: 48px; }
/* v2 method cards (book-card look) + book card PNGs */
.v2-mdet > summary { cursor: pointer; list-style: none; }
.v2-mdet > summary::-webkit-details-marker { display: none; }
.v2-mdet[open] > summary { margin-bottom: 8px; }
.v2-mcard { margin: 8px 0 4px; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.v2-png { display: block; width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.v2-row.mothers-only { grid-template-columns: minmax(0, 1fr); width: auto; }

/* scrollfix 23 Oct: opened panels/cards land below the sticky top bar and are never clipped, at any viewport height */
html { scroll-padding-top: calc(var(--top-h) + var(--safe-t) + 8px); scroll-padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px); }
body { min-height: 100vh; min-height: 100dvh; }
.v2-sheet, .v2-panel, .v2-mdet, .v2-meth, .v2-more, .card, details { scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 10px); scroll-margin-bottom: calc(var(--nav-h) + var(--safe-b) + 10px); }
.v2-panel, .v2-sheet { overflow: visible; max-height: none; }
.rc-photo, .v2-png, .rc-photo.v2-png { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.v2-mcard { overflow: clip; height: auto; max-height: none; }

/* UX 23 Oct: Dalleth navy/cream everywhere; book cover colours only as accents inside a book (shelf tiles unchanged) */
.v2-band { background: transparent; color: var(--ink); margin: 0; padding: 12px 0 8px; border-top: 4px solid var(--bk-bg); border-bottom: 1px solid var(--rule); box-shadow: inset 0 2px 0 var(--bk-trim); }
.v2-band h1 { color: var(--brand); } .v2-band .eyebrow { display: inline-block; color: #fff; background: var(--bk-bg); border-bottom: 2px solid var(--bk-trim); padding: 2px 8px; border-radius: 999px; }
.v2-band p.small { color: var(--ink-2); opacity: 1; }
.v2-mother { background: var(--card); color: var(--brand); border: 1px solid var(--rule); border-left: 4px solid var(--bk-bg); box-shadow: inset 0 -2px 0 var(--bk-trim); }
.v2-mother .v2-en, .v2-mother .v2-r { color: var(--ink-2); }
.v2-cell.sel, .v2-mother.sel { box-shadow: 0 0 0 2px var(--bk-bg); }
.v2-sheet { border-top: 3px solid var(--bk-bg); }
.v2-panel.mother { border-left: 4px solid var(--bk-bg); }
html.world-tier .v2-band { border-top-color: #111; } html.world-tier .v2-band h1::after { content: ''; display: block; width: 40px; height: 2px; background: #111; margin-top: 6px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; text-align: left; }
.v2-thumb { display: block; width: 100%; margin: 8px 0; padding: 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); overflow: hidden; cursor: pointer; font: inherit; color: var(--brand); text-align: left; }
.v2-thumb img { display: block; width: 100%; height: 120px; object-fit: cover; object-position: top; }
.v2-thumb span { display: block; padding: 8px 10px; font-weight: 600; min-height: 24px; }
.v2-open { margin: 6px 0; min-height: 40px; }
/* full-screen card viewer: above every header, own scroller, card never clipped */
body.cv-on { overflow: hidden; }
.cv { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--bg); }
.cv-bar { flex: 0 0 auto; display: flex; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 4px) 8px 4px; background: var(--brand); }
.cv-close { min-height: 44px; min-width: 88px; border: 0; border-radius: 10px; background: transparent; color: var(--brand-ink); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; text-align: left; padding: 0 10px; }
.cv-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cv-in { max-width: 720px; margin: 0 auto; padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.cv-img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.cv .v2-mcard { margin: 0; }
/* shopping book buttons in their cover colours, same style as the matrix shelf tiles */
.bookbtn.bk-tile { background: var(--bk-bg); color: #fff; border-bottom: 4px solid var(--bk-trim); border-radius: 12px; }
.bookbtn.bk-tile small { color: var(--bk-trim); }


/* Pro Combos + shopping columns + receipt scan (UX 23 Oct) */
.pc-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 10px 0; }
.pc-parts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pc-parts dd { margin: 0; font-weight: 600; }
.pc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.pc-btns .btn { flex: 1 1 150px; min-height: 52px; justify-content: center; }
.pc-n { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--bk-trim, var(--brand-2)); color: var(--bk-bg, #fff); font-size: 13px; }
.cv-step { margin: 0 0 18px; scroll-snap-align: start; }
.cv-scroll { scroll-snap-type: y proximity; }
.cv-lab { margin: 4px 2px 6px; font-size: 13px; letter-spacing: .04em; color: var(--mute); }
.pc-ticks { list-style: none; padding: 0; margin: 12px 0; } .pc-ticks li { border-bottom: 1px solid var(--rule); }
.pc-ticks label { display: flex; align-items: center; gap: 10px; min-height: 52px; } .pc-ticks input { width: 24px; height: 24px; }
.shop-head { display: flex; gap: 8px; padding: 14px 14px 6px; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.shop-head .shop-n, .shop-tile .shop-n { flex: 1 1 auto; min-width: 0; }
.shop-c { flex: 0 0 26%; text-align: right; font-size: 14px; line-height: 1.25; }
.shop-c small { display: block; font-size: 11px; color: var(--mute); }
.shop-c.mine { font-weight: 700; }
.shop-tile .shop-cue { display: block; }
.rc-list { list-style: none; padding: 0; margin: 10px 0; }
.rc-row { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.rc-raw { font-family: ui-monospace, monospace; font-size: 14px; margin-bottom: 6px; overflow-wrap: anywhere; }
.rc-ctl { display: flex; gap: 8px; } .rc-ctl select { flex: 1 1 auto; min-width: 0; min-height: 44px; font: inherit; }
.rc-pr { display: flex; align-items: center; gap: 2px; } .rc-pr input { width: 78px; min-height: 44px; font: inherit; }

/* ---- My shopping list: notepad sheet (UX 23 Oct). Patrick Hand, SIL OFL 1.1 (fonts/PatrickHand-OFL.txt), self-hosted. ---- */
@font-face { font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/patrick-hand-400.woff2) format("woff2"); }
.ql-paper { position: relative; margin-top: 14px; padding: 26px 16px 18px 46px; border-radius: 4px 4px 8px 8px; color: #23305A;
  font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 22px; line-height: 34px;
  background: linear-gradient(90deg, transparent 33px, rgba(200,70,70,.45) 33px, rgba(200,70,70,.45) 35px, transparent 35px),
    repeating-linear-gradient(180deg, #FFFDF6 0 33px, #C9D6EA 33px 34px); background-color: #FFFDF6;
  box-shadow: 0 1px 0 #e9e2cf, 0 6px 18px rgba(20,32,70,.14); transform-origin: top center; }
.ql-paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 4px 4px 0 0;
  background: radial-gradient(circle at 8px 6px, #E9E2CF 3px, transparent 3.5px) 0 0 / 22px 12px repeat-x, #1B2A4A; }
.ql-open { animation: ql-unfold .45s cubic-bezier(.2,.8,.3,1.1) both; }
@keyframes ql-unfold { 0% { transform: perspective(900px) rotateX(-70deg) scaleY(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ql-total { font-family: inherit; line-height: 1.3; margin-bottom: 8px; } .ql-total b { font-size: 24px; font-weight: 400; } .ql-total .small { font-family: var(--sans, sans-serif); font-size: 13px; }
.ql-h { font-family: inherit; font-weight: 400; font-size: 25px; line-height: 34px; margin: 6px 0 0; color: #B3261E; text-decoration: underline wavy rgba(179,38,30,.45) 1.5px; text-underline-offset: 5px; }
.ql-list { list-style: none; margin: 0; padding: 0; }
.ql-item { all: unset; box-sizing: border-box; width: 100%; min-height: 34px; display: flex; align-items: baseline; gap: 10px; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.ql-item:focus-visible { outline: 2px dashed #24408E; outline-offset: 2px; }
.ql-n { flex: 1; min-width: 0; } .ql-t { position: relative; display: inline; }
.ql-t::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 2.5px; border-radius: 2px; background: #24408E; transform: scaleX(0) rotate(-1.5deg); transform-origin: left center; transition: transform .32s ease-out; }
.ql-got .ql-t::after { transform: scaleX(1) rotate(-1.5deg); }
.ql-got .ql-n, .ql-got .ql-p { color: #7C86A3; }
.ql-p { flex: none; font-size: 18px; } .ql-p small { font-size: 12px; margin-left: 3px; color: #7C86A3; }
.ql-foot { font-size: 16px; line-height: 1.3; margin: 12px 0 0; color: #5A6585; } .ql-empty { margin: 0; font-size: 24px; }
/* doodle easter eggs: overlay, never blocks taps */
.dd-fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.dd { position: absolute; width: 72px; height: 72px; }
/* onion: drops in, makes the page cry two biro tears, then bursts */
.dd-onion { left: var(--x); top: var(--y); animation: dd-fall .45s cubic-bezier(.5,0,.9,.6) both, dd-sob .5s .45s ease-in-out, dd-pop .2s 1.05s ease-out forwards; }
@keyframes dd-sob { 25%,75% { transform: scaleX(1.08) scaleY(.94); } 50% { transform: scaleX(.95) scaleY(1.05); } }
.dd-tear { position: absolute; left: calc(var(--x) + 32px + var(--tx)); top: calc(var(--y) + 30px); width: 8px; height: 12px; border: 2px solid #24408E; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; opacity: 0;
  animation: dd-tear .5s .5s ease-in forwards; }
@keyframes dd-tear { 0% { opacity: 1; transform: translateY(0) scale(.6); } 100% { opacity: 0; transform: translateY(46px) scale(1); } }
/* carrot: thrown like a dart, sticks point-first, wobbles, bursts */
.dd-carrot { left: var(--x); top: var(--y); transform-origin: 20% 85%; animation: dd-dart .4s cubic-bezier(.3,.7,.6,1) both, dd-wobble .55s .4s ease-out, dd-pop .2s 1s ease-out forwards; }
@keyframes dd-dart { from { transform: translate(60vw, -40vh) rotate(-20deg); } to { transform: translate(0,0) rotate(0); } }
@keyframes dd-wobble { 20% { transform: rotate(9deg); } 40% { transform: rotate(-7deg); } 60% { transform: rotate(4deg); } 80% { transform: rotate(-2deg); } }
/* celery: drops in and snaps in half */
.dd-celery { left: var(--x); top: var(--y); animation: dd-fall .5s cubic-bezier(.5,0,.9,.6) both; }
.dd-half { position: absolute; inset: 0; width: 72px; height: 72px; }
.dd-l { clip-path: inset(0 0 52% 0); animation: dd-snapl .55s .55s ease-in forwards; }
.dd-r { clip-path: inset(48% 0 0 0); animation: dd-snapr .55s .55s ease-in forwards; }
@keyframes dd-snapl { 0% { transform: none; } 25% { transform: rotate(-28deg) translate(-6px,-4px); } 100% { transform: rotate(-70deg) translate(-40px,30px); opacity: 0; } }
@keyframes dd-snapr { 0% { transform: none; } 25% { transform: rotate(24deg) translate(6px,2px); } 100% { transform: rotate(80deg) translate(40px,40px); opacity: 0; } }
/* fish: flops onto the page, wriggles, flips once, swims off the edge */
.dd-fish { left: var(--x); top: var(--y); animation: dd-flop .35s cubic-bezier(.5,0,.9,.6) both, dd-wrig .4s .35s ease-in-out, dd-flip .3s .75s ease-in-out, dd-swim .45s 1.05s ease-in forwards; }
@keyframes dd-flop { 0% { transform: translateY(calc(-1 * var(--y) - 90px)) rotate(90deg); } 80% { transform: translateY(6px) rotate(-6deg) scaleY(.8); } 100% { transform: none; } }
@keyframes dd-wrig { 20%,60% { transform: skewY(9deg) rotate(4deg); } 40%,80% { transform: skewY(-9deg) rotate(-4deg); } }
@keyframes dd-flip { 50% { transform: translateY(-36px) rotate(180deg) scaleX(-1); } 100% { transform: scaleX(-1); } }
@keyframes dd-swim { from { transform: scaleX(-1); } to { transform: translateX(calc(100vw - var(--x) + 40px)) scaleX(-1); } }
.dd-bit { position: absolute; left: calc(var(--x) + 34px); top: calc(var(--y) + 34px); width: 10px; height: 2.6px; border-radius: 2px; background: #24408E; opacity: 0;
  animation: dd-burst .5s .98s ease-out forwards; }
@keyframes dd-burst { 0% { opacity: 1; transform: translate(0,0) rotate(var(--rot)); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 22px)) rotate(calc(var(--rot) + 180deg)); } }
.dd-steak { width: 84px; height: 84px; right: 0; top: var(--y); animation: dd-frisbee 1.5s cubic-bezier(.4,0,.6,1) both; }
@keyframes dd-frisbee {
  0% { transform: translate(110px, 0) rotate(0); }
  30% { transform: translate(calc(-100vw + 120px), -70px) rotate(-540deg); }
  55% { transform: translate(-30px, 20px) rotate(-1000deg); }
  60% { transform: translate(0, 20px) rotate(-1080deg) scale(.55, 1.25); }
  70% { transform: translate(0, 24px) rotate(-1080deg) scale(.6, 1.2); opacity: 1; }
  100% { transform: translate(0, 220px) rotate(-1080deg) scale(.6, 1.35); opacity: 0; } }
.dd-drumstick { left: var(--x); top: calc(var(--y) + 120px); animation: dd-baton 1.4s ease-in-out both; }
@keyframes dd-baton {   /* hops up, twirls like a baton, takes a bow, ducks away */
  0% { transform: translateY(80px) scale(.4); opacity: 0; }
  20% { transform: translateY(-120px) scale(1); opacity: 1; }
  50% { transform: translateY(-120px) rotate(720deg); }
  65% { transform: translateY(-120px) rotate(720deg) skewX(-18deg) scaleY(.85); }
  78% { transform: translateY(-120px) rotate(720deg); opacity: 1; }
  100% { transform: translateY(60px) rotate(720deg) scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ql-open, .dd, .dd-half, .dd-tear, .dd-bit { animation: none; } .ql-t::after { transition: none; } .dd-fx { display: none; } }

/* Staples page: add/remove own items; receipt add-to-Staples */
.shop-list li { position: relative; }
.st-rm { position: absolute; right: -6px; top: -6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy, #1d2b4f); background: var(--cream, #fbf6ea); color: var(--navy, #1d2b4f); font-size: 18px; line-height: 1; }
.st-add { display: grid; gap: 10px; }
.st-add label { display: grid; gap: 4px; font-weight: 600; }
.st-add input, .st-add select, .rc-st input, .rc-st select { min-height: 44px; font-size: 16px; padding: 6px 10px; border: 1.5px solid #c9c2ae; border-radius: 10px; background: #fff; }
.rc-st { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; padding: 8px; border-radius: 10px; background: rgba(29,43,79,.05); }
.rc-st[hidden] { display: none; }
.rc-chk { display: flex; gap: 8px; align-items: center; font-weight: 600; min-height: 36px; }
.rc-chk input { width: 22px; height: 22px; }

/* ===== Recipe book viewer (recipe cards only): one card per page, 3D page-turn ===== */
.bk-viewer { background: #2a2620; }
.bk-viewer .cv-bar { justify-content: space-between; }
.bk-count { color: var(--brand-ink); font-size: 14px; letter-spacing: .04em; padding-right: 10px; opacity: .9; }
.bk-stage { position: relative; flex: 1 1 auto; min-height: 0; perspective: 1800px; perspective-origin: 0 50%; touch-action: pan-y; overflow: hidden; margin: 8px 8px 0; }
.bk-page { position: absolute; inset: 0; transform-origin: 0 50%; transform: rotateY(var(--a, 0deg)); backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }
.bk-page.bk-anim { transition: transform .46s cubic-bezier(.3,.1,.25,1); }
.bk-page.bk-gone:not(.bk-anim) { visibility: hidden; }
.bk-paper { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; background-color: #fbf6ea;
  /* gentle weathering on the edges only: warm vignette + faint grain; the centre stays clean so the card is crisp */
  background-image:
    radial-gradient(ellipse at center, rgba(255,255,255,0) 62%, rgba(150,110,60,.16) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 6px 0 10px -6px rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.35);
  /* slightly uneven deckled edges */
  clip-path: polygon(0 0, 18% .25%, 41% 0, 63% .3%, 86% 0, 100% .2%, 99.7% 14%, 100% 37%, 99.6% 58%, 100% 79%, 99.7% 100%, 77% 99.7%, 52% 100%, 29% 99.6%, 8% 100%, 0 99.8%); }
.bk-paper::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;   /* soft curl shadow while turning */
  background: linear-gradient(90deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.22) 85%, rgba(255,255,255,.35) 100%); opacity: var(--curl, 0); }
.bk-page.bk-anim .bk-paper::after { transition: opacity .46s; }
.bk-scroll { position: absolute; inset: 14px 12px 10px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bk-scroll .cv-img { box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.bk-nav { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 10px); }
.bk-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(251,246,234,.6); background: transparent; color: #fbf6ea; font-size: 28px; line-height: 1; cursor: pointer; }
.bk-arrow:disabled { opacity: .3; }
.bk-dots { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.bk-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(251,246,234,.35); }
.bk-dots i.on { background: #C9A46A; transform: scale(1.25); }
/* reduced motion: simple slide/fade, no 3D */
.bk-calm .bk-page { transform: none !important; opacity: 0; transition: opacity .2s; }
.bk-calm .bk-page.bk-cur { opacity: 1; z-index: 999 !important; }
@media (prefers-reduced-motion: reduce) { .bk-page { transform: none !important; transition: opacity .2s !important; } .bk-paper::after { display: none; } }

/* ===== Pro Combos: cream card, accent strip, story, chips, light buttons ===== */
.v2-plate.pc-card { border: 0; background: #fbf6ea; border-left: 4px solid var(--bk-trim, #C9A46A); border-radius: 10px; padding: 0 14px; margin: 0 0 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pc-card summary { list-style: none; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-card summary::-webkit-details-marker { display: none; }
.pc-card summary::after { content: '\203A'; font-size: 22px; color: var(--mute); transition: transform .2s; }
.pc-card[open] summary::after { transform: rotate(90deg); }
.pc-name { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; font-weight: 600; color: var(--brand, #1d2b4f); line-height: 1.25; }
.pc-story { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #3b3a36; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pc-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(29,43,79,.06); font-size: 13px; color: var(--brand, #1d2b4f); }
.pc-chip i { font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pc-acts { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; }
.pc-open2 { flex: 1 1 auto; min-height: 46px; border-radius: 10px; border: 1.5px solid var(--brand, #1d2b4f); background: transparent; color: var(--brand, #1d2b4f); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.pc-basket { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--brand, #1d2b4f); background: transparent; color: var(--brand, #1d2b4f); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pc-basket svg { width: 22px; height: 22px; }

.pc-open2:disabled, .pc-basket:disabled { opacity: .4; }
.bk-stage, .bk-stage * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* labelled combo buttons (Jonathan 23 Oct) */
.pc-acts{display:flex;gap:10px}
.pc-acts .pc-open2,.pc-acts .pc-basket{flex:1 1 0;width:auto;height:auto;min-height:44px;border-radius:12px;padding:10px 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:1rem}

/* ===== Every-item doodles (data/doodles.json, inline SVG): generic gags, each <=1.5 s, ends invisible, never blocks taps ===== */
.dd-g { left: var(--x); top: var(--y); display: block; }
.dd-g svg { width: 100%; height: 100%; display: block; }
@keyframes dd-in { from { transform: translateY(-46vh) rotate(-25deg); } to { transform: none; } }
@keyframes dd-out { to { opacity: 0; transform: scale(.4); } }
.dd-g-burst { animation: dd-in .5s cubic-bezier(.5,0,.9,.6) both, dd-squish .35s .5s ease-out, dd-pop .2s .9s ease-out forwards; }
@keyframes dd-squish { 40% { transform: scale(1.2,.8); } 100% { transform: none; } }
.dd-g-pop { animation: dd-in .45s cubic-bezier(.5,0,.9,.6) both, dd-shake .3s .45s linear, dd-pop .15s .75s ease-out forwards; }
@keyframes dd-shake { 25% { transform: translateX(-4px) rotate(-4deg); } 75% { transform: translateX(4px) rotate(4deg); } }
.dd-g-splat { animation: dd-in .45s cubic-bezier(.6,0,1,.6) both, dd-splatk 1s .45s ease-in forwards; }
@keyframes dd-splatk { 0% { transform: scale(1.5,.45) translateY(30px); } 40% { transform: scale(1.5,.45) translateY(30px); opacity: 1; } 100% { transform: scale(1.5,.45) translateY(130px); opacity: 0; } }
.dd-g-roll { left: auto; right: -90px; animation: dd-roll 1.4s cubic-bezier(.3,.1,.6,1) both; }
@keyframes dd-roll { 0% { transform: translateX(0) rotate(0); } 85% { opacity: 1; } 100% { transform: translateX(calc(-100vw - 100px)) rotate(-760deg); opacity: 0; } }
.dd-g-bounce { animation: dd-bounce 1.35s cubic-bezier(.3,0,.7,1) both; }
@keyframes dd-bounce { 0% { transform: translate(0,-40vh); } 30% { transform: translate(20px,0) scale(1.15,.85); } 45% { transform: translate(40px,-90px); } 60% { transform: translate(60px,0) scale(1.1,.9); } 72% { transform: translate(75px,-36px); } 84% { transform: translate(90px,0); opacity: 1; } 100% { transform: translate(120px,-10px) scale(.5); opacity: 0; } }
.dd-g-spin { animation: dd-spin 1.3s ease-in-out both; }
@keyframes dd-spin { 0% { transform: scale(0) rotate(0); } 25% { transform: scale(1.1) rotate(200deg); } 70% { transform: scale(1) rotate(1080deg); opacity: 1; } 100% { transform: scale(0) rotate(1440deg); opacity: 0; } }
.dd-g-sprout { transform-origin: 50% 100%; animation: dd-sprout 1.45s ease-out both; }
@keyframes dd-sprout { 0% { transform: scaleY(0) translateY(30px); } 30% { transform: scaleY(1.15); } 40% { transform: scaleY(1); } 70% { transform: rotate(0); opacity: 1; } 100% { transform: rotate(40deg) scaleY(.5) translateY(20px); opacity: 0; } }
.dd-g-sway { transform-origin: 50% 100%; animation: dd-in .4s ease-out both, dd-swayk 1s .4s ease-in-out forwards; }
@keyframes dd-swayk { 20% { transform: rotate(14deg); } 45% { transform: rotate(-12deg); } 65% { transform: rotate(8deg); opacity: 1; } 100% { transform: rotate(-80deg) translateX(-40px); opacity: 0; } }
.dd-g-flutter { animation: dd-flutter 1.5s ease-in-out both; }
@keyframes dd-flutter { 0% { transform: translate(0,-30vh) rotate(0); opacity: 0; } 10% { opacity: 1; } 30% { transform: translate(40px,-18vh) rotate(25deg); } 55% { transform: translate(-30px,-6vh) rotate(-25deg); } 80% { transform: translate(30px,30px) rotate(20deg); opacity: 1; } 100% { transform: translate(-10px,70px) rotate(-10deg); opacity: 0; } }
.dd-g-flame { animation: dd-in .4s ease-out both, dd-hot .7s .4s linear, dd-out .3s 1.1s ease-in forwards; }
@keyframes dd-hot { 0%,100% { transform: none; filter: none; } 10%,30%,50%,70%,90% { transform: translate(-3px,1px) rotate(-3deg); } 20%,40%,60%,80% { transform: translate(3px,-1px) rotate(3deg); } 50% { filter: drop-shadow(0 -6px 0 #D2452A); } }
.dd-g-squash { animation: dd-in .4s ease-out both, dd-squeeze .6s .4s ease-in-out, dd-out .4s 1s ease-in forwards; }
@keyframes dd-squeeze { 30% { transform: scale(.7,1.25); } 60% { transform: scale(1.25,.75); } }
.dd-g-peel { animation: dd-in .4s ease-out both, dd-peelk 1s .4s ease-in forwards; }
@keyframes dd-peelk { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); transform: translateX(30px) rotate(12deg); } }
.dd-g-split { animation: dd-in .4s ease-out both, dd-splitk 1s .4s ease-in forwards; }
@keyframes dd-splitk { 0%,30% { transform: none; } 50% { transform: rotate(-12deg) scale(1.1); } 70% { transform: rotate(10deg) scale(1.1); opacity: 1; } 100% { transform: translateY(60px) scale(.6); opacity: 0; } }
.dd-g-boomerang { left: auto; right: -80px; animation: dd-boom 1.45s ease-in-out both; }
@keyframes dd-boom { 0% { transform: translate(0,0) rotate(0); } 45% { transform: translate(calc(-100vw + 60px),-80px) rotate(-720deg); } 85% { transform: translate(-60px,10px) rotate(-1440deg); opacity: 1; } 100% { transform: translate(40px,20px) rotate(-1600deg); opacity: 0; } }
.dd-g-swing { transform-origin: 56% 10%; animation: dd-in .4s ease-out both, dd-swingk 1s .4s ease-in-out forwards; }
@keyframes dd-swingk { 20% { transform: rotate(30deg); } 45% { transform: rotate(-26deg); } 70% { transform: rotate(14deg); opacity: 1; } 100% { transform: rotate(-6deg) translateY(80px); opacity: 0; } }
.dd-g-thud { animation: dd-in .35s cubic-bezier(.7,0,1,.5) both, dd-thudk .3s .35s ease-out, dd-out .5s .95s ease-in forwards; }
@keyframes dd-thudk { 30% { transform: scale(1.2,.8) translateY(8px); } 100% { transform: none; } }
.dd-g-thud::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -6px; height: 3px; background: #24408E; border-radius: 2px; transform: scaleX(0); animation: dd-dust .4s .35s ease-out forwards; }
@keyframes dd-dust { 50% { transform: scaleX(1.3); opacity: 1; } 100% { transform: scaleX(1.6); opacity: 0; } }
.dd-g-hop { animation: dd-hopk 1.4s ease-in-out both; }
@keyframes dd-hopk { 0% { transform: translateY(40px) scale(.5); opacity: 0; } 15% { transform: translateY(-60px) rotate(-10deg); opacity: 1; } 30% { transform: translateY(0) scale(1.15,.85); } 45% { transform: translateY(-70px) rotate(12deg); } 60% { transform: translateY(0) scale(1.15,.85); } 75% { transform: translateY(-80px) rotate(-180deg); opacity: 1; } 100% { transform: translateY(120px) rotate(-360deg); opacity: 0; } }
.dd-g-sizzle { animation: dd-in .4s ease-out both, dd-sizzlek .7s .4s linear, dd-curl .4s 1.1s ease-in forwards; }
@keyframes dd-sizzlek { 0%,100% { transform: none; } 15%,45%,75% { transform: translateY(-3px) skewX(6deg); } 30%,60%,90% { transform: translateY(2px) skewX(-6deg); } }
@keyframes dd-curl { to { transform: scale(.4,.1) rotate(10deg); opacity: 0; } }
.dd-g-jiggle { animation: dd-in .4s ease-out both, dd-jig .7s .4s ease-in-out, dd-out .35s 1.1s forwards; }
@keyframes dd-jig { 20% { transform: scale(1.12,.88); } 40% { transform: scale(.9,1.1); } 60% { transform: scale(1.06,.94); } 80% { transform: scale(.97,1.03); } }
.dd-g-waddle { left: -90px; animation: dd-waddle 1.5s linear both; }
@keyframes dd-waddle { 0% { transform: translateX(0) rotate(0); } 12.5% { transform: translateX(12vw) rotate(-10deg); } 25% { transform: translateX(24vw) rotate(10deg); } 37.5% { transform: translateX(36vw) rotate(-10deg); } 50% { transform: translateX(48vw) rotate(10deg); } 62.5% { transform: translateX(60vw) rotate(-10deg); } 75% { transform: translateX(72vw) rotate(10deg); } 87.5% { transform: translateX(84vw) rotate(-10deg); opacity: 1; } 100% { transform: translateX(calc(100vw + 100px)) rotate(0); opacity: 1; } }
.dd-g-flip { animation: dd-flipk 1.3s cubic-bezier(.3,0,.6,1) both; }
@keyframes dd-flipk { 0% { transform: translateY(40px) scale(.4); opacity: 0; } 20% { opacity: 1; } 50% { transform: translateY(-110px) rotate(-360deg); } 80% { transform: translateY(10px) rotate(-720deg) scaleX(-1); opacity: 1; } 100% { transform: translateY(60px) rotate(-720deg) scaleX(-1) scale(.5); opacity: 0; } }
.dd-g-squirt { animation: dd-in .4s ease-out both, dd-jet .9s .5s cubic-bezier(.5,0,1,.4) forwards; }
.dd-g-squirt::before { content: ""; position: absolute; left: 20px; top: 70px; width: 34px; height: 30px; border-radius: 50%; background: #24408E; opacity: 0; animation: dd-ink .9s .45s ease-out forwards; }
@keyframes dd-jet { 0% { transform: none; } 15% { transform: scale(.9,1.15); } 100% { transform: translateY(-75vh) scale(.8,1.3); } }
@keyframes dd-ink { 0% { opacity: .7; transform: scale(.3); } 100% { opacity: 0; transform: translateY(70vh) scale(2.4); } }
.dd-g-chomp { animation: dd-in .4s ease-out both, dd-chompk .7s .4s steps(2) , dd-out .35s 1.1s forwards; }
@keyframes dd-chompk { 0%,50%,100% { transform: scaleY(1); } 25%,75% { transform: scaleY(.6) rotate(-8deg); } }
.dd-g-scuttle { animation: dd-in .35s ease-out both, dd-scut 1.1s .35s linear forwards; }
@keyframes dd-scut { 0% { transform: translateX(0); } 10%,30%,50%,70% { transform: translateX(var(--s,0)) translateY(-4px) rotate(-6deg); } 20%,40%,60%,80% { transform: translateX(var(--s,0)) rotate(6deg); } 100% { transform: translateX(calc(100vw)); } }
.dd-g-scuttle { --s: 30px; }
.dd-g-splash { width: 96px; height: 96px; margin: -12px 0 0 -12px; animation: dd-splashk 1.3s ease-out both; }
@keyframes dd-splashk { 0% { transform: rotate(var(--rot)) scale(.1); opacity: 0; } 12% { transform: rotate(var(--rot)) scale(1.15); opacity: 1; } 22% { transform: rotate(var(--rot)) scale(1); } 60% { opacity: .9; } 100% { transform: rotate(var(--rot)) scale(1.05); opacity: 0; } }
.dd-drop { width: 7px; height: 7px; border-radius: 50%; background: #24408E; left: calc(var(--x) + 36px); top: calc(var(--y) + 36px); animation-name: dd-burst !important; animation-duration: .6s !important; }
@media (prefers-reduced-motion: reduce) { .dd-g, .dd-g::before, .dd-g::after, .dd-drop { animation: none; } }
/* corn rocket: rumble .3s, blast off up the list .55s, popcorn burst at the top; trail draws in behind; ~1.2 s total */
.dd-g-rocket { animation: dd-rumble .3s linear both, dd-blast .55s .3s cubic-bezier(.6,0,.9,.4) forwards, dd-gone .1s .85s linear forwards; }
@keyframes dd-gone { to { opacity: 0; transform: translateY(-300px) scale(.8,1.25); } }
@keyframes dd-rumble { 0%,100% { transform: none; } 20%,60% { transform: translate(-3px,1px) rotate(-3deg); } 40%,80% { transform: translate(3px,-1px) rotate(3deg); } }
@keyframes dd-blast { 0% { transform: translateY(0) scaleY(1); } 15% { transform: translateY(6px) scale(1.1,.85); } 100% { transform: translateY(-300px) scale(.8,1.25); opacity: 1; } }
.dd-trail { position: absolute; left: calc(var(--x) + 6px); top: calc(var(--y) - 230px); width: 60px; height: 300px; clip-path: inset(100% 0 0 0); animation: dd-trailk .9s .32s ease-out forwards; }
.dd-trail svg { width: 60px; height: 300px; overflow: visible; }
.dd-trail svg path { stroke-dasharray: 5 6; }
@keyframes dd-trailk { 0% { clip-path: inset(100% 0 0 0); opacity: 1; } 55% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.dd-pc { position: absolute; left: calc(var(--x) + 26px); top: calc(var(--y) - 260px); width: 14px; height: 12px; border: 2px solid #24408E; border-radius: 50% 45% 55% 40%; background: #FBF6EA; opacity: 0; animation: dd-pck .4s .82s ease-out forwards; }
@keyframes dd-pck { 0% { opacity: 1; transform: translate(0,0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 14px)) scale(1.1) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .dd-g-rocket, .dd-trail, .dd-pc { animation: none; } }

/* shopping quick list: notepad scrolls internally, action buttons pinned above the bottom nav (iOS safe area respected) */
.ql-paper.ql-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 22px; scroll-padding-bottom: 22px; }
.pc-btns.ql-pin { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 30; margin: 0 auto; max-width: 760px; padding: 8px 16px; flex-wrap: nowrap; background: var(--bg, #fff); box-shadow: 0 -6px 14px rgba(0,0,0,.06); }
.pc-btns.ql-pin .btn { flex: 1 1 0; min-width: 0; font-size: .92rem; }
.ql-paper.ql-scroll { padding-bottom: 40px; scroll-padding-bottom: 40px; box-sizing: border-box; }
.bub-sec { border-top: 1px solid rgba(0,0,0,.1); padding: 8px 0; }
.bub-sec summary { font-weight: 700; cursor: pointer; padding: 6px 0; min-height: 36px; }
.bub-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 4px; }
.bub { border: 2px solid #c9c9c9; background: #fff; border-radius: 999px; padding: 10px 14px; font: inherit; min-height: 44px; cursor: pointer; text-transform: capitalize; }
.bub-red { border-color: #c0392b; background: #fdecea; color: #8e2318; }
.bub-green { border-color: #2e8b57; background: #e7f6ee; color: #1d5e3a; }
.cty-list { display: grid; gap: 8px; margin: 12px 0; }
.cty-flag { font-size: 1.4em; }

/* ---------- small brand mark, top-right of the top bar (23 Oct) ---------- */
.tb-logo { display: inline-flex; align-items: center; gap: 5px; align-self: center; padding: 2px 9px 2px 2px; margin-right: 4px; border: 1px solid var(--brand-rule); border-radius: 999px; background: var(--card); text-decoration: none; opacity: .92; flex: none; }
.tb-logo img { width: 20px; height: 20px; border-radius: 50%; display: block; }
.tb-logo span { display: flex; flex-direction: column; line-height: 1; }
.tb-logo b { font-family: var(--serif); font-weight: 600; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--brand); }
.tb-logo i { font-family: var(--serif); font-size: 9.5px; color: var(--brand); opacity: .75; margin-top: 1px; }

/* ---------- swipe page-turns (23 Oct): arrows replaced by tappable dots + a hint ---------- */
.bk-nav-swipe { flex-direction: column; justify-content: center; gap: 4px; padding-top: 6px; }
.bk-dot { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; }
.bk-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(251,246,234,.35); transition: background .2s, transform .2s; }
.bk-dot.on::before { background: #fbf6ea; transform: scale(1.25); }
.bk-hint { margin: 0; font-size: 11px; letter-spacing: .04em; color: rgba(251,246,234,.6); }
.bk-stage { touch-action: pan-y; }
.bk-stage .bk-cur { translate: var(--edge, 0px) 0; transition: translate .25s ease; }
.bk-stage .bk-cur.bk-anim { transition: transform .46s cubic-bezier(.3,.1,.25,1), translate .25s ease; }   /* was overriding the flip: back-turns snapped */
.bk-page.bk-far { visibility: hidden; will-change: auto; content-visibility: hidden; }   /* pages not next to the open one aren't painted */
.bk-paper { contain: paint; }
.bk-dragging .bk-stage .bk-cur { transition: none; }
.bk-stage img { -webkit-user-drag: none; }
.bk-nav-swipe .bk-dots { gap: 0; }
.bk-dot.on::before { background: #C9A46A; }

/* ---- What can I make: doodle tiles (UX 23 Oct) ---- */
.ck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .ck-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ck-grid > p { grid-column: 1 / -1; }
.ck-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px; background: var(--card); border: 1.5px solid var(--rule); border-radius: 16px; text-decoration: none; color: var(--brand); box-shadow: 0 1px 0 var(--rule); transition: transform .12s, border-color .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.ck-tile:nth-child(3n+1) { transform: rotate(-1deg); } .ck-tile:nth-child(3n) { transform: rotate(1deg); }
.ck-tile:active, .ck-tile:focus-visible { transform: scale(.94); border-color: var(--brand); background: var(--brand-wash); outline: none; }
.ck-art { width: 62px; height: 62px; display: grid; place-items: center; }
.ck-art svg, .ck-art img { width: 100%; height: 100%; }
.ck-init { width: 52px; height: 52px; border: 2.4px solid #24408E; border-radius: 50% 46% 52% 48%; display: grid; place-items: center; font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 30px; color: #24408E; text-transform: lowercase; }
.ck-lbl { font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 18px; line-height: 1.1; text-align: center; color: var(--ink); overflow-wrap: anywhere; }

/* ---- How to use Dalleth: swipeable intro (UX 23 Oct) ---- */
.ht-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(30,22,16,.55); display: grid; place-items: center; padding: 16px; }
.ht-box { position: relative; width: min(420px, 100%); background: var(--card); border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.3); overflow: hidden; padding: 0 4px 16px; }
.ht-skip { position: absolute; top: 10px; right: 12px; z-index: 2; background: none; border: 0; font: inherit; font-size: 15px; color: var(--mute); padding: 6px 8px; }
.ht-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ht-track::-webkit-scrollbar { display: none; }
.ht-card { flex: 0 0 100%; scroll-snap-align: center; padding: 26px 24px 4px; box-sizing: border-box; text-align: center; }
.ht-card h2 { margin: 4px 0 10px; }
.ht-card p { margin: 0 0 10px; }
.ht-art { display: block; width: 96px; height: 96px; margin: 6px auto 8px; }
.ht-art svg, .ht-art img { width: 100%; height: 100%; }
.ht-hint { font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 17px; }
.ht-go { margin-top: 6px; }
.ht-dots { display: flex; gap: 9px; justify-content: center; }
.ht-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--rule); }
.ht-dots button.on { background: var(--brand); transform: scale(1.25); }
.ht-link { text-align: center; margin: 18px 0 0; }
.ht-link a { font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 19px; color: var(--brand); }

/* ---- Jonny One More: animated tutorial, context help, forage warning (UX 23 Oct) ---- */
.ht-bar { display: flex; align-items: center; gap: 10px; padding: 12px 12px 0 18px; }
.ht-prog { flex: 1; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.ht-prog i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.ht-box .ht-skip { position: static; }
.ht-card { padding-top: 6px; }
.ht-stage { position: relative; height: 168px; margin: 0 auto 8px; width: 240px; max-width: calc(100% - 24px); padding: 12px 14px 8px; box-sizing: border-box; }
.ht-stage .jn { position: absolute; left: calc(50% - 46px); bottom: 8px; width: 92px; height: 128px; max-width: 42%; max-height: calc(100% - 20px); overflow: visible; }
.ht-card.on .jn { animation: jn-walkon .7s ease-out both, jn-bob 1.6s ease-in-out .7s infinite; }
.ht-card.on .jn-walk .jn-l1 { animation: jn-step .35s ease-in-out infinite alternate; transform-origin: 50px 92px; }
.ht-card.on .jn-walk .jn-l2 { animation: jn-step .35s ease-in-out infinite alternate-reverse; transform-origin: 50px 92px; }
.jn-waving { transform-origin: 50px 62px; animation: jn-wave .6s ease-in-out infinite alternate; }
.jn-wagging { transform-origin: 50px 62px; animation: jn-wag .3s ease-in-out infinite alternate; }
@keyframes jn-walkon { from { transform: translateX(-140px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes jn-bob { 50% { transform: translateY(-4px); } }
@keyframes jn-step { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes jn-wave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes jn-wag { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.ht-serious { background: linear-gradient(#fff8ee, var(--card)); }
.ht-serious h2 { color: var(--warn, #9b2c1f); }
.ht-serious .jn { animation: jn-walkon .7s ease-out both !important; }
.ht-say { font-size: 16px; min-height: 5.5em; }
.ht-next { background: none; border: 0; font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 19px; color: var(--brand); padding: 6px 10px; }
.gg { position: absolute; display: block; pointer-events: none; opacity: 0; }
.gg svg { width: 100%; height: 100%; }
.ht-card.on .gg, .ch-man .gg { opacity: 1; }
.gg-corn { width: 46px; height: 46px; top: 10px; left: -40px; }
.ht-card.on .gg-corn, .ch-man .gg-corn { animation: gg-whiz 1.4s ease-in .9s both; }
@keyframes gg-whiz { 0% { transform: translate(0, 60px) rotate(60deg); } 100% { transform: translate(300px, -40px) rotate(70deg); opacity: 0; } }
.gg-banana { width: 40px; height: 20px; bottom: 0; left: 140px; }
/* banana: walks on, slips, lands fully flat with a puff, then lies there styling it out */
.ht-card.on [data-g="banana"] .jn { transform-origin: 50px 136px; animation: jn-slip 3.2s ease-in-out both; }
@keyframes jn-slip { 0% { transform: translateX(-140px); } 35% { transform: translateX(10px); } 45% { transform: translateX(26px) rotate(-30deg) translateY(-14px); } 55% { transform: translateX(30px) rotate(-90deg); } 100% { transform: translateX(30px) rotate(-90deg); } }
.ht-card.on [data-g="banana"] .jn-waving { animation: jn-wave .6s ease-in-out 2.2s infinite alternate; }
.gg-puff { width: 70px; height: 34px; left: 80px; bottom: -4px; }
.ht-card.on .gg-puff { animation: gg-puff 1s ease-out 1.6s both; }
@keyframes gg-puff { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.5) translateY(-10px); } }
.gg-egg { width: 22px; height: 28px; left: 89px; top: -30px; }
.ht-card.on .gg-egg { animation: gg-drop .7s ease-in 1s both; }
@keyframes gg-drop { 0% { transform: translateY(0); opacity: 1; } 99% { transform: translateY(32px); opacity: 1; } 100% { opacity: 0; } }
.gg-yolk { width: 46px; height: 22px; left: 77px; top: 2px; }
.ht-card.on .gg-yolk { animation: gg-show .3s 1.7s both; }
@keyframes gg-show { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.gg-receipt { width: 26px; height: 0; left: 150px; top: 40px; overflow: hidden; }
.ht-card.on .gg-receipt, .ch-man .gg-receipt { animation: gg-unroll 3.4s ease-in-out .6s both; }
/* slides down, stretches, then shoots back up out of the way of the text */
@keyframes gg-unroll { 0% { height: 0; transform: none; } 40% { height: 150px; } 60% { height: 190px; transform: scaleX(1.25); } 75% { height: 190px; transform: none; } 100% { height: 0; transform: translateY(-60px); opacity: 0; } }
.gg-mush { width: 50px; height: 50px; left: 150px; bottom: 0; }
.gg-book { width: 64px; height: 40px; left: 150px; top: 50px; }
.ht-card.on .gg-leaf { transform-origin: 35px 0; animation: gg-turn 1.4s ease-in-out .8s infinite; }
@keyframes gg-turn { 50% { transform: scaleX(-1); } }
.gg-phone { width: 30px; height: 48px; left: 150px; top: 40px; }
.gg-flash { left: 140px; top: 30px; width: 50px; height: 50px; border-radius: 50%; background: #fff6c8; }
.ht-card.on .gg-flash { animation: gg-flash 1.6s ease-out 1s infinite; }
@keyframes gg-flash { 0%, 100% { opacity: 0; } 10% { opacity: .9; } }
.gg-sign { left: 140px; top: 20px; font-family: "Patrick Hand", cursive; font-size: 18px; color: #24408E; border: 2px solid #24408E; border-radius: 8px; padding: 2px 8px; transform: rotate(-6deg); white-space: nowrap; }
/* jig */
.ht-card.on [data-g="jig"] .jn { animation: jn-walkon .6s ease-out both, jn-jig .5s ease-in-out .6s infinite; }
@keyframes jn-jig { 0% { transform: rotate(-10deg) translateY(0); } 25% { transform: rotate(0) translateY(-12px) scaleX(-1); } 50% { transform: rotate(10deg) translateY(0) scaleX(-1); } 75% { transform: rotate(0) translateY(-12px); } 100% { transform: rotate(-10deg); } }
.gg-notes { left: 150px; top: 6px; font-size: 26px; color: #24408E; }
.ht-card.on .gg-notes { animation: gg-notes 1.4s ease-out .6s infinite; }
@keyframes gg-notes { from { transform: translateY(20px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(20px, -20px); opacity: 0; } }
/* bury: foods fly in and pile up on him */
.gg-food { width: 40px; height: 40px; }
.gg-f0 { left: 64px; top: 90px; } .gg-f1 { left: 100px; top: 92px; } .gg-f2 { left: 82px; top: 62px; } .gg-f3 { left: 56px; top: 50px; } .gg-f4 { left: 106px; top: 54px; } .gg-f5 { left: 84px; top: 22px; }
.ht-card.on .gg-food, .ch-man .gg-food { animation: gg-fly-in .5s cubic-bezier(.3,1.4,.6,1) both; }
.gg-f0 { animation-delay: .8s !important; } .gg-f1 { animation-delay: 1.1s !important; } .gg-f2 { animation-delay: 1.4s !important; } .gg-f3 { animation-delay: 1.7s !important; } .gg-f4 { animation-delay: 2s !important; } .gg-f5 { animation-delay: 2.3s !important; }
@keyframes gg-fly-in { from { opacity: 0; transform: translate(160px, -120px) rotate(200deg); } to { opacity: 1; transform: none; } }
.ht-card.on [data-g="bury"] .jn { animation: jn-walkon .6s ease-out both, jn-squash .4s ease-in 2.3s both; transform-origin: 50px 140px; }
@keyframes jn-squash { to { transform: scaleY(.6); } }
/* assemble: book flies in, ingredients drop onto a plate */
.gg-fly-book { width: 60px; height: 38px; left: 150px; top: 10px; }
.ht-card.on .gg-fly-book { animation: gg-fly-book 1s ease-out .6s both; }
@keyframes gg-fly-book { from { opacity: 0; transform: translate(-220px, -40px) rotate(-30deg); } to { opacity: 1; transform: none; } }
.gg-plate { width: 70px; height: 26px; left: 148px; bottom: 0; }
.ht-card.on .gg-plate { animation: gg-show .3s 1.4s both; }
.gg-ing { width: 18px; height: 18px; bottom: 12px; }
.gg-i0 { left: 160px; } .gg-i1 { left: 176px; } .gg-i2 { left: 192px; }
.ht-card.on .gg-ing { animation: gg-ing .5s ease-in both; }
.gg-i0 { animation-delay: 1.7s !important; } .gg-i1 { animation-delay: 2s !important; } .gg-i2 { animation-delay: 2.3s !important; }
@keyframes gg-ing { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }
.gg-steam { left: 170px; bottom: 34px; color: #24408E; font-size: 18px; }
.ht-card.on .gg-steam { animation: gg-notes 1.4s ease-out 2.8s infinite; }
/* flap: books fly like birds, he ducks and dodges */
.gg-bird { width: 46px; height: 30px; }
.gg-b0 { top: 10px; } .gg-b1 { top: 40px; } .gg-b2 { top: 70px; }
.ht-card.on .gg-bird { animation: gg-bird 2.4s linear infinite; }
.gg-b1 { animation-delay: .8s !important; } .gg-b2 { animation-delay: 1.6s !important; }
@keyframes gg-bird { from { left: 230px; opacity: 1; } to { left: -60px; opacity: 1; } }
.ht-card.on .gg-wl { transform-origin: 35px 22px; animation: gg-wing .25s ease-in-out infinite alternate; }
.ht-card.on .gg-wr { transform-origin: 35px 22px; animation: gg-wing .25s ease-in-out infinite alternate-reverse; }
@keyframes gg-wing { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }
.ht-card.on [data-g="flap"] .jn { animation: jn-walkon .6s ease-out both, jn-duck 1.2s ease-in-out .6s infinite; transform-origin: 50px 140px; }
@keyframes jn-duck { 0%, 100% { transform: none; } 25% { transform: scaleY(.7) translateX(-10px); } 50% { transform: translateX(14px) rotate(8deg); } 75% { transform: scaleY(.75) translateX(4px); } }
/* magnify: walks about peering through a glass */
.gg-mag { width: 34px; height: 34px; left: 120px; top: 40px; }
.gg-tag { left: 176px; bottom: 6px; font-family: "Patrick Hand", cursive; color: #24408E; border: 2px solid #24408E; border-radius: 6px; padding: 0 6px; font-size: 15px; }
.ht-card.on [data-g="magnify"] .jn, .ht-card.on [data-g="magnify"] .gg-mag { animation: jn-pace 4s ease-in-out infinite; }
.ht-card.on [data-g="magnify"] .gg-mag { opacity: 1; }
@keyframes jn-pace { 0%, 100% { transform: translateX(-50px); } 45% { transform: translateX(40px); } 50% { transform: translateX(40px) scaleX(-1); } 95% { transform: translateX(-50px) scaleX(-1); } }
/* weather: sun, snow, rain, wind */
/* logo */
.gg-logo { right: -6px; top: 0; font-family: "Patrick Hand", cursive; color: #fff; background: var(--brand, #24408E); border-radius: 8px; padding: 2px 8px; font-size: 15px; }
.ht-card.on .gg-logo { animation: gg-logo 1.6s ease-in-out .8s infinite; }
@keyframes gg-logo { 50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(36,64,142,.25); } }
/* context help: Go away */
.ch-host.ch-leave { animation: ch-leave 1.4s ease-in both; }
@keyframes ch-leave { 0%, 40% { transform: none; opacity: 1; } 100% { transform: translateX(-120vw); opacity: 0; } }
.ch-ctl .ch-x { color: var(--warn, #9b2c1f); }
/* forage rows + boxes */
.fg-item details > summary { list-style: none; cursor: pointer; }
.fg-item details > summary::-webkit-details-marker { display: none; }
.fg-item details[open] > summary .chev { transform: rotate(90deg); }
.fg-body { padding: 4px 14px 14px; }
.fg-dl { margin: 0 0 8px; } .fg-dl dt { font-weight: 700; font-size: 13px; margin-top: 8px; } .fg-dl dd { margin: 2px 0 0; }
.sure120 { border: 2px solid var(--warn, #9b2c1f); background: #fff1ee; color: #6b1b12; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.greedy-box { border: 2px solid #3d7a3a; background: #eef7ec; color: #1f4a1d; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.safe-banner.compact { position: relative; padding-right: 38px; }
.sb-x { position: absolute; top: 6px; right: 6px; border: 0; background: none; font-size: 22px; line-height: 1; color: inherit; padding: 4px 8px; cursor: pointer; }
/* ---- t2102u-t2104u: one unique gag per tour step (.gx). Base state = final frame (used by reduced motion); .sq = one-at-a-time sequences ---- */
.gx svg text { font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 9px; fill: #24408E; stroke: none; }
.gx .sq { opacity: 0; }
.gx-hello { left: 146px; top: 2px; font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 18px; color: #24408E; background: #fff; border: 2px solid #24408E; border-radius: 14px 14px 14px 2px; padding: 0 9px; }
.gx-clock { left: 150px; top: 8px; width: 70px; height: 64px; }
.gx-fridge { left: 152px; top: 56px; width: 66px; height: 90px; }
.gx-mybooks { left: 150px; top: 70px; width: 70px; height: 64px; }
.gx-combo { left: 140px; top: 94px; width: 80px; height: 56px; }
.gx-pages { left: 150px; top: 40px; width: 70px; height: 64px; }
.gx-list { left: 156px; top: 40px; width: 60px; height: 84px; }
.gx-traffic { left: 148px; top: 30px; width: 72px; height: 100px; }
.gx-holdbook { left: 148px; top: 4px; width: 72px; height: 140px; }
.gx-shelf { left: 150px; top: 30px; width: 70px; height: 110px; }
.gx-snap { left: 148px; top: 40px; width: 72px; height: 80px; }
.gx-flags { left: 150px; top: 22px; width: 70px; height: 66px; }
.gx-ptag { left: 160px; top: 112px; width: 58px; height: 27px; }
.gx-seasons { left: 160px; top: 6px; width: 56px; height: 66px; }
.gx-basket { left: 150px; top: 46px; width: 70px; height: 100px; }
.gx-moretab { left: 152px; top: 40px; width: 66px; height: 96px; }
.gx-qr { left: 156px; top: 44px; width: 60px; height: 76px; }
.gx-padlock { left: 154px; top: 54px; width: 64px; height: 80px; }
.gx-pan { left: 144px; top: 78px; width: 76px; height: 70px; }
.gx .fg-n { font-size: 8px; }
.gx .hb-lbl, .gx .ls-h { font-size: 8px; }
.gx .hb-undo { text-decoration: underline; fill: #B83D3D; }
.gx .tl-card { stroke: #2e9e4f; }
.gx .cl-h { transform-origin: 22px 26px; } .gx .th-m { transform-origin: 57px 46px; }
.gx .fr-d { transform-origin: 4px 50px; transform: scaleX(.1); } .gx .fr-c { transform: translate(18px, -18px); }
.gx .pg-leaf { transform-origin: 35px 0; } .gx .pg-thumb { transform-origin: 64px 50px; }
.gx .hb-cov { transform-origin: 36px 0; transform: scaleX(-1); opacity: 0; } .gx .hb-ing { transform: translate(var(--dx), var(--dy)); } .gx .hb-ring { stroke-dasharray: 63; stroke-dashoffset: 0; }
.gx .ls-x { stroke-dasharray: 42; stroke-dashoffset: 0; }
.gx .sh-b { transform-origin: 32px 52px; transform: rotate(-12deg); } .gx .sn-cp { opacity: 0; } .gx .sn-fl { opacity: 0; }
.gx .qr-s { transform: translateY(40px); } .gx .pl-sh { transform: translateY(-7px); } .gx .pl-k { transform: translateX(-10px); }
.gx .fg-w { transform-origin: 6px 19px; } .gx .ss-leaf { transform-origin: 23px 19px; } .gx .ss-snow, .gx .ss-sun { transform-origin: 24px 22px; }
.gx .pn-fl { transform-origin: 30px 60px; } .gx .pn-p { transform-origin: 66px 32px; }
.ht-card.on [data-g="prices"] .jn, .ht-card.on [data-g="prices"] .gg-mag { animation: jn-pace 4s ease-in-out infinite; }
:is(.ht-card.on, .ch-man) .gx-hello { animation: gx-pop 3s ease-out .8s infinite both; transform-origin: 0 100%; }
:is(.ht-card.on, .ch-man) .gx .cl-h { animation: gx-spin 2s linear infinite; }
:is(.ht-card.on, .ch-man) .gx .cl-m { transform-origin: 22px 26px; animation: gx-spin 12s linear infinite; }
:is(.ht-card.on, .ch-man) .gx .th-m { animation: gx-rise 2s ease-in-out infinite alternate both; }
:is(.ht-card.on, .ch-man) .gx .fr-d { animation: gx-door 4s ease-in-out .6s infinite both; }
:is(.ht-card.on, .ch-man) .gx .fr-c { animation: gx-carrot 4s ease-out .6s infinite both; }
:is(.ht-card.on, .ch-man) .gx .fr-dish { animation: gx-dish 4s ease-out .6s infinite both; }
:is(.ht-card.on, .ch-man) .gx .fr-st { animation: gx-steam 1.2s ease-in-out infinite; }
:is(.ht-card.on, .ch-man) .gx .mb-on { animation: gx-glow 1.6s ease-in-out infinite alternate; }
:is(.ht-card.on, .ch-man) .gx .mb-sp { animation: gx-twinkle 1.6s ease-in-out infinite alternate; transform-origin: 66px 8px; }
:is(.ht-card.on, .ch-man) .gx .cb-i { animation: gx-in 5s cubic-bezier(.3,1.4,.6,1) .6s infinite both; transform-box: fill-box; transform-origin: center; }
:is(.ht-card.on, .ch-man) .gx .pg-leaf { animation: gx-flip 2s ease-in-out infinite; }
:is(.ht-card.on, .ch-man) .gx .pg-thumb { animation: gx-thumb 2s ease-in-out infinite; }
:is(.ht-card.on, .ch-man) .gx .ls-i { animation: gx-drop 6s ease-out .4s infinite both; }
:is(.ht-card.on, .ch-man) .gx .ls-x { animation: gx-strike 6s ease-in-out .4s infinite both; }
:is(.ht-card.on, .ch-man) .gx .tl-card { animation: gx-tl 4.5s linear infinite; }
:is(.ht-card.on, .ch-man) .gx .hb-cov { animation: gx-hb-cov 6s ease-in-out infinite both; }
:is(.ht-card.on, .ch-man) .gx .hb-fin { animation: gx-hb-fin 6s ease-out infinite both; }
:is(.ht-card.on, .ch-man) .gx .hb-ring { animation: gx-hb-ring 6s linear infinite both; }
:is(.ht-card.on, .ch-man) .gx .hb-ing { animation: gx-hb-ing 6s ease-in infinite both; }
:is(.ht-card.on, .ch-man) .gx .hb-ok { animation: gx-hb-ok 6s linear infinite both; }
:is(.ht-card.on, .ch-man) .gx .sh-b { animation: gx-tilt 4s ease-in-out .4s infinite both; }
:is(.ht-card.on, .ch-man) .gx .sh-p { animation: gx-peel 4s ease-out .4s infinite both; }
:is(.ht-card.on, .ch-man) .gx .sn-fl { animation: gx-flash 3.5s ease-out .5s infinite both; }
:is(.ht-card.on, .ch-man) .gx .sn-cp { animation: gx-capture 3.5s ease-in-out .5s infinite both; }
:is(.ht-card.on, .ch-man) .gx .fg-w { animation: gx-wave 1.1s ease-in-out infinite alternate; }
:is(.ht-card.on, .ch-man) .gx .ss-sun { animation: gx-spin 6s linear infinite; }
:is(.ht-card.on, .ch-man) .gx .ss-leaf { animation: gx-leaf 1.5s ease-in infinite; }
:is(.ht-card.on, .ch-man) .gx .ss-snow { animation: gx-spin 3s linear infinite; }
:is(.ht-card.on, .ch-man) .gx .ss-rain { animation: gx-rain .75s linear infinite; }
:is(.ht-card.on, .ch-man) .gx .bs-i { animation: gx-fall 5s cubic-bezier(.5,0,.8,.6) .4s infinite both; }
:is(.ht-card.on, .ch-man) .gx .mt-tab { animation: gx-press 4s ease-in-out infinite both; transform-box: fill-box; transform-origin: center; }
:is(.ht-card.on, .ch-man) .gx .mt-r { animation: gx-rowup 4s ease-out infinite both; }
:is(.ht-card.on, .ch-man) .gx .qr-s { animation: gx-scan 3s ease-in-out infinite both; }
:is(.ht-card.on, .ch-man) .gx .qr-ok { animation: gx-qrok 3s linear infinite both; }
:is(.ht-card.on, .ch-man) .gx .pl-k { animation: gx-key 4s ease-in-out .4s infinite both; }
:is(.ht-card.on, .ch-man) .gx .pl-sh { animation: gx-shackle 4s ease-in-out .4s infinite both; }
:is(.ht-card.on, .ch-man) .gx .pn-fl { animation: gx-flame .3s ease-in-out infinite alternate; }
:is(.ht-card.on, .ch-man) .gx .pn-st { animation: gx-steam 1.6s ease-in-out infinite; }
:is(.ht-card.on, .ch-man) .gx .pn-p { animation: gx-toss 2.4s ease-in-out infinite; }
@keyframes gx-s2 { 0% { opacity: 0; } 4%, 44% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes gx-s3 { 0% { opacity: 0; } 3%, 29% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes gx-s3l { 0%, 33% { opacity: 1; } 33.4%, 100% { opacity: 0; } }
@keyframes gx-s4 { 0% { opacity: 0; } 3%, 21% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes gx-tl { 0%, 33.3% { stroke: #d93a2b; } 33.4%, 66.6% { stroke: #e8b923; } 66.7%, 100% { stroke: #2e9e4f; } }
@keyframes gx-pop { 0% { opacity: 0; transform: scale(.3); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes gx-spin { to { transform: rotate(360deg); } }
@keyframes gx-rise { from { transform: scaleY(.25); } to { transform: none; } }
@keyframes gx-door { 0%, 8% { transform: none; } 28%, 82% { transform: scaleX(.1); } 96%, 100% { transform: none; } }
@keyframes gx-carrot { 0%, 26% { opacity: 0; transform: none; } 42%, 82% { opacity: 1; transform: translate(18px, -18px); } 92%, 100% { opacity: 0; transform: translate(18px, -18px); } }
@keyframes gx-dish { 0%, 44% { opacity: 0; transform: translateY(8px); } 56%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes gx-steam { 0% { opacity: 0; transform: translateY(3px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes gx-glow { from { filter: drop-shadow(0 0 0 #e8b923); } to { filter: drop-shadow(0 0 4px #e8b923); } }
@keyframes gx-twinkle { from { opacity: .2; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes gx-in { 0% { opacity: 0; transform: scale(.2) translateY(-10px); } 8%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes gx-flip { 0%, 25% { transform: none; } 60%, 100% { transform: scaleX(-1); } }
@keyframes gx-thumb { 0%, 25% { transform: none; } 60% { transform: translateX(-30px) rotate(-10deg); opacity: 1; } 70%, 100% { transform: translateX(-30px); opacity: 0; } }
@keyframes gx-drop { 0% { opacity: 0; transform: translateY(-14px); } 8%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes gx-strike { 0%, 14% { stroke-dashoffset: 42; } 22%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gx-hb-cov { 0%, 6% { transform: none; opacity: 1; } 16% { transform: scaleX(-1); opacity: 1; } 18%, 100% { transform: scaleX(-1); opacity: 0; } }
@keyframes gx-hb-fin { 0%, 14% { opacity: 0; transform: translateY(14px); } 20%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(14px); } }
@keyframes gx-hb-ring { 0%, 20% { stroke-dashoffset: 63; opacity: 1; } 45% { stroke-dashoffset: 0; opacity: 1; } 50%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gx-hb-ing { 0%, 45% { opacity: 0; transform: none; } 48% { opacity: 1; transform: translateY(-6px); } 64%, 86% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(25deg); } 94%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes gx-hb-ok { 0%, 62% { opacity: 0; } 66%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes gx-tilt { 0%, 10% { transform: none; } 25%, 85% { transform: rotate(-12deg); } 100% { transform: none; } }
@keyframes gx-peel { 0%, 22% { opacity: 0; transform: translateY(-30px) scaleY(.2); } 42%, 85% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes gx-flash { 0%, 30% { opacity: 0; } 33% { opacity: .95; } 48%, 100% { opacity: 0; } }
@keyframes gx-capture { 0%, 34% { opacity: 0; transform: none; } 40% { opacity: 1; transform: none; } 62%, 82% { opacity: 1; transform: translate(-26px, 4px) scale(.5); } 92%, 100% { opacity: 0; transform: translate(-26px, 4px) scale(.5); } }
@keyframes gx-wave { from { transform: skewY(-3deg) scaleX(.97); } to { transform: skewY(3deg); } }
@keyframes gx-leaf { from { transform: translate(-4px, -8px) rotate(-20deg); } to { transform: translate(4px, 6px) rotate(25deg); } }
@keyframes gx-rain { from { transform: translateY(-3px); opacity: 1; } to { transform: translate(-2px, 5px); opacity: .2; } }
@keyframes gx-fall { 0% { opacity: 0; transform: translateY(-46px); } 6% { opacity: 1; } 16%, 84% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes gx-press { 0%, 8% { transform: none; } 12% { transform: scale(1.5); } 18%, 100% { transform: none; } }
@keyframes gx-rowup { 0%, 15% { opacity: 0; transform: translateY(20px); } 30%, 88% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes gx-scan { 0% { transform: none; } 55% { transform: translateY(40px); } 100% { transform: translateY(40px); } }
@keyframes gx-qrok { 0%, 55% { opacity: 0; } 62%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gx-key { 0% { opacity: 0; transform: translateX(10px); } 15% { opacity: 1; } 30% { transform: translateX(-10px); } 40%, 85% { transform: translateX(-10px) scaleY(.3); opacity: 1; } 100% { opacity: 0; transform: translateX(-10px) scaleY(.3); } }
@keyframes gx-shackle { 0%, 42% { transform: none; } 55%, 90% { transform: translateY(-7px); } 100% { transform: none; } }
@keyframes gx-flame { from { transform: scaleY(.85); } to { transform: scaleY(1.12) skewX(3deg); } }
@keyframes gx-toss { 0%, 60%, 100% { transform: none; } 75% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .gx .sq.sq-end { opacity: 1; } .gx .hb-ok { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ht-wrap *, .ch-wrap * { animation: none !important; transition: none !important; } .gg { opacity: 1; } .gg-receipt { height: 120px; } }
/* context help */
.ch-wrap { position: fixed; inset: 0; z-index: 90; cursor: pointer; }
.ch-dim { position: absolute; inset: 0; background: rgba(20,14,10,.62); }
.ch-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(20,14,10,.62), 0 0 0 3px #C9A46A; transition: all .3s ease; pointer-events: none; }
.ch-ctl { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; z-index: 2; }
.ch-ctl button { background: var(--card); border: 0; border-radius: 16px; padding: 6px 12px; font: inherit; font-size: 14px; color: var(--brand); }
.ch-fast .ch-ff { background: var(--brand); color: var(--brand-ink, #fff); }
.ch-host { position: absolute; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; gap: 10px; }
.ch-host.ch-top { bottom: auto; top: calc(54px + env(safe-area-inset-top, 0px)); }
.ch-host.in { animation: ch-in .45s ease-out both; }
.ch-fast .ch-host.in { animation-duration: .05s; }
@keyframes ch-in { from { transform: translateX(-110%); } to { transform: none; } }
.ch-man { position: relative; flex: 0 0 88px; width: 88px; height: 118px; order: -1; padding: 8px 6px 6px; box-sizing: border-box; background: var(--card); border-radius: 44px 44px 16px 16px; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
.ch-man .jn { width: 72px; height: 100px; max-width: 100%; max-height: 100%; background: transparent; border-radius: 0; animation: jn-bob 1.6s ease-in-out infinite; overflow: visible; }
.ch-man .gg { left: 58px; top: -12px; }
.ch-bubble { flex: 1; background: var(--card); border-radius: 16px 16px 16px 4px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ch-bubble p { margin: 0; font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 19px; line-height: 1.25; color: var(--ink); }
.ch-bubble small { color: var(--mute); font-size: 12px; }
.tb-logo, .d-pill { cursor: help; }
/* forage warning card + gate */
.fw-card { display: flex; gap: 12px; background: #fff8ee; border: 2px solid #9b2c1f; border-radius: 14px; padding: 12px; margin: 0 0 14px; }
.fw-card h3 { color: #9b2c1f; margin: 0 0 6px; }
.fw-card p { font-size: 14.5px; margin: 0 0 6px; }
.fw-man { flex: 0 0 76px; padding: 6px 4px 2px; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: center; } .fw-man .jn { width: 64px; height: 90px; max-width: 100%; overflow: visible; }
.fg-gate .safe-card { max-height: 90vh; overflow-y: auto; }
.fg-gate .fw-card { border: 0; padding: 0; background: none; }
.ht-left { text-align: left; margin: 0 0 14px; }
/* deadly fungi photo cards (Danger page) */
.dz-fungi-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.dz-fcard{display:flex;flex-direction:column;gap:2px;background:#fff;border-radius:10px;padding:6px;text-decoration:none;color:inherit;font-size:13px}
.dz-fcard img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.dz-fcard i{font-size:12px;opacity:.8}.dz-fcard small{font-size:10px;opacity:.7;line-height:1.2}

/* green3: persistent compact forage banner */
.fw-mini{border:2px solid #b3261e;border-radius:10px;background:#fdecea;margin:8px 0 0;padding:6px 10px}
.fw-mini summary{cursor:pointer;color:#7a1712;list-style:none}
.fw-mini summary::-webkit-details-marker{display:none}
.fw-mini-open{float:right;text-decoration:underline;font-size:13px}
.fw-mini-hide{display:none;float:right;text-decoration:underline;font-size:13px}
.fw-mini[open] .fw-mini-open{display:none}
.fw-mini[open] .fw-mini-hide{display:inline}
.fw-mini-full{position:relative}
.fw-mini-x{position:absolute;top:4px;right:0;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:#b3261e;color:#fff;font-size:20px;line-height:44px;cursor:pointer}
.fw-mini-close{display:block;margin:8px auto 4px;border-color:#b3261e;color:#7a1712}
.fw-mini-em{margin:4px 0 10px;color:#7a1712}
.fw-mini-em a{font-weight:700;color:#b3261e}
.fg-photo img{width:100%;height:auto;max-height:260px;object-fit:cover;border-radius:12px;display:block}

/* Cook it with: ingredient buttons (24 Oct) */
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 4px; }
/* Pro Combo buttons match the standard .btn colour (24 Oct) */
.pc-acts .pc-open2, .pc-acts .pc-basket { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pc-acts .pc-basket svg { color: var(--brand-ink); }

/* 24 Oct: whole card inline, no crop */
.v2-thumb img { height: auto; object-fit: contain; }
/* stock-take traffic light */
/* Stock-take (matrix cards): subtle fill inside the square + one thin coloured border.
   Replaces stacked thick outline rings that overlapped with gold/sel on narrow phones. */
.stk{position:relative;outline:none;transition:background-color .2s,border-color .2s,box-shadow .2s;-webkit-touch-callout:none;user-select:none}
.v2-cell.stk-red{background-color:rgba(217,58,43,.14);border-color:#d93a2b}
.v2-cell.stk-yellow{background-color:rgba(232,185,35,.18);border-color:#c9a015}
.v2-cell.stk-green{background-color:rgba(46,158,79,.14);border-color:#2e9e4f}
.v2-mother.stk-red{background-image:linear-gradient(rgba(217,58,43,.22),rgba(217,58,43,.22))}
.v2-mother.stk-yellow{background-image:linear-gradient(rgba(232,185,35,.24),rgba(232,185,35,.24))}
.v2-mother.stk-green{background-image:linear-gradient(rgba(46,158,79,.22),rgba(46,158,79,.22))}
details.stk.stk-red,button.stk.stk-red:not(.v2-cell):not(.v2-mother){box-shadow:inset 0 0 0 9999px rgba(217,58,43,.10);border-color:#d93a2b}
details.stk.stk-yellow,button.stk.stk-yellow:not(.v2-cell):not(.v2-mother){box-shadow:inset 0 0 0 9999px rgba(232,185,35,.12);border-color:#c9a015}
details.stk.stk-green,button.stk.stk-green:not(.v2-cell):not(.v2-mother){box-shadow:inset 0 0 0 9999px rgba(46,158,79,.10);border-color:#2e9e4f}
details.stk{border-radius:12px}
.v2-cell.sel,.v2-mother.sel{box-shadow:inset 0 0 0 2px var(--bk-trim)}
.stk::after{content:"";position:absolute;left:0;bottom:0;height:5px;width:0;background:#e8b923;border-radius:3px;pointer-events:none;opacity:0}
.stk.stk-hold::after{opacity:1;width:100%;transition:width .6s linear}

.gd-groups, .gd-cuts { display: grid; gap: 10px; margin: 12px 0; }
.gd-group, .gd-cut { justify-content: flex-start; text-align: left; min-height: 60px; gap: 12px; }
.gd-group span, .gd-cut span { display: flex; flex-direction: column; }
.gd-group small, .gd-cut small { font-weight: 400; opacity: .75; }

/* 24 Oct (screen recording): matrix cells are plain buttons. No lift, no drag ghost, no text-selection menu.
   The sauce column stays sticky whatever its traffic-light status (.stk set position:relative, which broke Espagnole/Tomato rows). */
.v2-mother, .v2-mother.stk { position: sticky !important; left: 0; z-index: 2; }
.v2-cell, .v2-mother { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.v2-cell:active, .v2-mother:active, .v2-cell:hover, .v2-mother:hover { transform: none !important; }
.v2-cell img, .v2-mother img, .v2-cell svg, .v2-mother svg { -webkit-user-drag: none; pointer-events: none; }
/* every tap/hold target app-wide: no Android/iOS text-selection or callout menu */
button, .btn, a.card, .card-link, .stk, [data-stk], .wcm-sq, .bigbtn, label.safe-tick, .bottomnav a, img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

/* Mother Matrix dish grid (24 Oct) */

/* 24 Oct: technique tiles in Cook it with / item guides = same squares as the mains tiles */
.gd-sq { margin: 12px 0; }
.gd-sq .ck-tile { font: inherit; cursor: pointer; aspect-ratio: 1 / 1; justify-content: center; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gd-sq .ck-lbl { font-size: .8rem; line-height: 1.15; text-align: center; }
.gd-sq .gd-n { font-size: .68rem; opacity: .7; text-align: center; }

.bp-step { margin: 12px 0 4px; } .bp-step .eyebrow { margin: 0 0 4px; }
.bp-sq .ck-tile[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-wash); box-shadow: 0 0 0 2px var(--brand); }
.bp-go { margin-top: 12px; }
#v2plate { -webkit-user-select: none; user-select: none; }/* v0.5.32 Build a plate: sauce chip (no sauce row) + five techniques */
.bp-sauce{display:inline-flex;gap:6px;align-items:baseline;margin:4px 0 2px;padding:5px 12px;border:1.5px solid currentColor;border-radius:999px;font-size:.92rem}
.bp-sauce.muted{border-style:dashed}
.bp-5 .ck-tile[disabled]{opacity:.4}
.bp-5{grid-template-columns:repeat(3,minmax(0,1fr))}

/* press-and-hold on a card page adds what you're missing (v0.5.46) */
.bk-page{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.bk-page.stk-hold::after{content:"";position:absolute;left:8%;right:8%;bottom:14px;height:6px;border-radius:3px;background:linear-gradient(#e8b923,#e8b923) 0/0 100% no-repeat,rgba(0,0,0,.25);animation:bkHold .6s linear forwards;pointer-events:none;z-index:5}
@keyframes bkHold{to{background-size:100% 100%,auto}}
.bk-hold-hint{margin:4px 12px 2px;text-align:center;font-size:12px;color:rgba(251,246,234,.75)}
.toast-act{margin-left:12px;background:transparent;border:1px solid currentColor;color:inherit;border-radius:99px;padding:2px 10px;font:inherit;font-size:14px}
/* t2094u/t2096u hold feedback in the Dalleth scheme: woad note/card on a soft woad dim; cream chips and buttons */
.hf{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(30,58,95,.38);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;transition:opacity .2s;pointer-events:none}
.hf.on{opacity:1;pointer-events:auto}.hf.off{opacity:0;transition:opacity .3s}
.hf-box{max-width:min(320px,calc(100vw - 32px));background:var(--brand);color:var(--brand-ink);border:1px solid var(--brand-rule);border-radius:14px;padding:12px 16px;font-size:15px;line-height:1.35;text-align:center;box-shadow:0 8px 30px rgba(30,58,95,.35);overflow-wrap:anywhere}
.hf-undo{background:none;border:0;color:var(--brand-ink-soft);text-decoration:underline;font:inherit;padding:2px 4px;margin-left:4px;cursor:pointer}
.hf-card{width:100%;max-height:calc(100vh - 32px);overflow:auto;text-align:left;padding:16px}
.hf-t{font-weight:700;font-size:17px;margin:0 0 2px;color:var(--brand-ink)}.hf-s{margin:0 0 10px;color:var(--brand-ink-soft);font-size:13px}
.hf-cuts{display:flex;flex-wrap:wrap;gap:8px}
.hf-cut{background:transparent;color:var(--brand-ink);border:1px solid var(--brand-rule);border-radius:999px;padding:8px 12px;font:inherit;font-size:14px;cursor:pointer;min-height:40px}
.hf-cut[aria-pressed=true]{background:var(--bg);color:var(--brand);border-color:var(--bg);font-weight:700}
.hf-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.hf-acts button{font:inherit;border-radius:10px;padding:9px 14px;border:1px solid var(--brand-rule);background:none;color:var(--brand-ink);cursor:pointer}
.hf-acts .hf-ok{background:var(--bg);color:var(--brand);border-color:var(--bg);font-weight:700}.hf-ok:disabled{opacity:.5}
[data-bp="main"],.v2-thumb[data-stk]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

/* v0.5.51 Dalleth red "pop" for primary actions (palette: woad, cream, red). Not used for warnings. */
:root { --pop: #B83D3D; --pop-dark: #8F2E2E; --pop-ink: #FFFFFF; }
.btn.primary, .pc-acts .pc-open2, .pc-acts #bpGo, .btn.v2-shop, .ht-go, .ht-next, .hf-acts .hf-ok { background: var(--pop); border-color: var(--pop); color: var(--pop-ink); }
.ht-next { border: 1.5px solid var(--pop); border-radius: 99px; padding: 6px 16px; }
.btn.primary:active, .pc-acts .pc-open2:active, .btn.v2-shop:active, .ht-go:active, .ht-next:active, .hf-acts .hf-ok:active { background: var(--pop-dark); border-color: var(--pop-dark); }
.hf-cut[aria-pressed=true] { background: var(--pop); color: var(--pop-ink); border-color: var(--bg); }
.pc-acts .pc-open2:disabled, .hf-acts .hf-ok:disabled { opacity: .5; }
.ch-ctl .ch-next { background: var(--pop); border-color: var(--pop); color: var(--pop-ink); }
.ch-ctl .ch-next:active { background: var(--pop-dark); border-color: var(--pop-dark); }
/* tick-off fx for every shopping item (data/tick-fx.json, tools/build_tick_fx.py): woad biro doodle + one motion + little particles, ~1 s, never blocks taps */
.tk { position: absolute; left: var(--x); top: var(--y); width: 72px; height: 72px; animation-fill-mode: both; }
.tk svg { width: 100%; height: 100%; overflow: visible; }
.tk-m-smash { animation: tk-drop .4s cubic-bezier(.6,0,1,.6) both, tk-smash .25s .4s ease-out forwards; }
.tk-m-cork { animation: tk-in .3s ease-out both, tk-wob .4s .3s ease-in-out, tk-out .3s .75s ease-in forwards; }
.tk-m-glug { transform-origin: 50% 90%; animation: tk-in .3s ease-out both, tk-tip .9s .3s ease-in-out forwards; }
.tk-m-lid { animation: tk-in .3s ease-out both, tk-jolt .35s .3s ease-out, tk-out .3s .8s ease-in forwards; }
.tk-m-burst { animation: tk-in .3s ease-out both, tk-swell .35s .3s ease-in, tk-pop .12s .65s ease-out forwards; }
.tk-m-shake { transform-origin: 50% 30%; animation: tk-in .25s ease-out both, tk-shake .55s .25s linear, tk-out .3s .8s ease-in forwards; }
.tk-m-bounce { animation: tk-hop 1.05s cubic-bezier(.3,0,.7,1) both; }
.tk-m-squeeze { animation: tk-in .3s ease-out both, tk-sq .45s .3s ease-in-out, tk-out .3s .8s ease-in forwards; }
.tk-m-wobble { transform-origin: 50% 100%; animation: tk-in .3s ease-out both, tk-wob .5s .3s ease-in-out, tk-out .3s .85s ease-in forwards; }
.tk-m-jelly { transform-origin: 50% 100%; animation: tk-in .3s ease-out both, tk-jel .55s .3s ease-in-out, tk-out .3s .85s ease-in forwards; }
.tk-m-melt { transform-origin: 50% 100%; animation: tk-in .3s ease-out both, tk-melt .8s .3s ease-in forwards; }
.tk-m-crack { animation: tk-in .3s ease-out both, tk-shake .3s .3s linear, tk-crk .45s .6s ease-in forwards; }
.tk-m-sizzle { animation: tk-in .25s ease-out both, tk-jit .1s .25s linear 6, tk-out .3s .85s ease-in forwards; }
.tk-m-squash { transform-origin: 50% 100%; animation: tk-drop .35s cubic-bezier(.6,0,1,.6) both, tk-flat .3s .35s ease-out forwards, tk-out .3s .85s ease-in forwards; }
.tk-m-wiggle { animation: tk-in .3s ease-out both, tk-wig .5s .3s ease-in-out, tk-out .3s .85s ease-in forwards; }
.tk-m-curl { animation: tk-in .3s ease-out both, tk-curl .75s .3s ease-in forwards; }
.tk-m-scuttle { animation: tk-in .25s ease-out both, tk-scut .85s .25s ease-in forwards; }
.tk-m-jet { animation: tk-in .25s ease-out both, tk-jet .65s .35s cubic-bezier(.5,0,1,.5) forwards; }
.tk-m-slurp { transform-origin: 50% 100%; animation: tk-in .25s ease-out both, tk-slurp .7s .3s ease-in forwards; }
.tk-m-flutter { animation: tk-flut 1.1s ease-in-out both; }
.tk-m-roll { animation: tk-roll 1.1s cubic-bezier(.3,.1,.6,1) both; }
.tk-m-thud { animation: tk-drop .35s cubic-bezier(.7,0,1,.5) both, tk-thud .25s .35s ease-out, tk-out .35s .8s ease-in forwards; }
.tk-m-sprout { transform-origin: 50% 100%; animation: tk-sprt .45s ease-out both, tk-wob .35s .45s ease-in-out, tk-out .3s .85s ease-in forwards; }
.tk-m-sway { transform-origin: 50% 100%; animation: tk-in .3s ease-out both, tk-sway .6s .3s ease-in-out, tk-out .3s .85s ease-in forwards; }
.tk-m-float { animation: tk-in .3s ease-out both, tk-rise .8s .3s ease-in forwards; }
.tk-m-shiver { animation: tk-in .3s ease-out both, tk-jit .06s .3s linear 8, tk-out .3s .85s ease-in forwards; }
.tk-m-pop { animation: tk-in .3s cubic-bezier(.3,1.6,.6,1) both, tk-hop1 .3s .3s ease-out, tk-pop .15s .75s ease-out forwards; }
@keyframes tk-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes tk-out { to { opacity: 0; transform: scale(.6); } }
@keyframes tk-pop { to { opacity: 0; transform: scale(1.5); } }
@keyframes tk-drop { from { opacity: 0; transform: translateY(-90px) rotate(-12deg); } 30% { opacity: 1; } to { transform: none; } }
@keyframes tk-smash { 0% { transform: scale(1.2,.7); } 100% { opacity: 0; transform: scale(1.6,.2) translateY(20px); } }
@keyframes tk-wob { 25% { transform: rotate(10deg); } 50% { transform: rotate(-8deg); } 75% { transform: rotate(5deg); } }
@keyframes tk-tip { 30%,80% { transform: rotate(-95deg); opacity: 1; } 100% { transform: rotate(-95deg); opacity: 0; } }
@keyframes tk-jolt { 40% { transform: translateY(-14px) scale(1.05,.95); } 70% { transform: translateY(3px) scale(.96,1.04); } }
@keyframes tk-swell { to { transform: scale(1.3,1.2); } }
@keyframes tk-shake { 0%,100% { transform: rotate(0); } 15%,55% { transform: rotate(160deg); } 35%,75% { transform: rotate(200deg); } }
@keyframes tk-hop { 0% { opacity: 0; transform: translateY(40px) scale(.4); } 25% { opacity: 1; transform: translateY(-40px); } 45% { transform: translateY(0) scale(1.15,.85); } 65% { transform: translateY(-22px); } 80% { transform: none; opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) scale(.7); } }
@keyframes tk-hop1 { 50% { transform: translateY(-16px); } }
@keyframes tk-sq { 50% { transform: scale(.75,1.15); } }
@keyframes tk-jel { 20% { transform: scale(1.2,.8); } 40% { transform: scale(.85,1.15); } 60% { transform: scale(1.1,.9); } 80% { transform: scale(.95,1.05); } }
@keyframes tk-melt { 40% { transform: scale(1.15,.6); } 100% { opacity: 0; transform: translateX(26px) scale(1.5,.1); } }
@keyframes tk-crk { 0% { clip-path: inset(0); } 100% { opacity: 0; transform: translateY(24px) rotate(25deg); clip-path: polygon(0 0,100% 0,100% 40%,70% 55%,45% 40%,20% 55%,0 40%); } }
@keyframes tk-jit { 25% { transform: translate(2px,-1px) rotate(2deg); } 75% { transform: translate(-2px,1px) rotate(-2deg); } }
@keyframes tk-flat { to { transform: scale(1.35,.55); } }
@keyframes tk-wig { 25%,75% { transform: skewX(14deg); } 50% { transform: skewX(-14deg); } }
@keyframes tk-curl { 50% { transform: rotate(-200deg) scale(.8); } 100% { opacity: 0; transform: rotate(-360deg) scale(.4); } }
@keyframes tk-scut { 0%,100% { transform: none; } 20%,60% { transform: translateX(-18px) rotate(-6deg); } 40%,80% { transform: translateX(18px) rotate(6deg); } 100% { opacity: 0; transform: translateX(140px); } }
@keyframes tk-jet { 30% { transform: scale(1.1,.8); } 100% { opacity: 0; transform: translateY(-180px) scale(.8,1.2); } }
@keyframes tk-slurp { 40% { transform: scale(1.05,.95); } 100% { opacity: 0; transform: translateY(-60px) scale(.2,1.4); } }
@keyframes tk-flut { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: none; } 50% { transform: translate(-14px,-24px) rotate(-20deg); } 80% { opacity: 1; transform: translate(12px,-48px) rotate(18deg); } 100% { opacity: 0; transform: translate(0,-70px) rotate(0); } }
@keyframes tk-roll { 0% { opacity: 0; transform: translateX(-60px) rotate(-180deg); } 20% { opacity: 1; } 75% { opacity: 1; transform: translateX(40px) rotate(120deg); } 100% { opacity: 0; transform: translateX(110px) rotate(260deg); } }
@keyframes tk-thud { 40% { transform: scale(1.25,.75) translateY(8px); } }
@keyframes tk-sprt { from { opacity: 0; transform: scaleY(0); } 70% { transform: scaleY(1.15); opacity: 1; } to { transform: none; } }
@keyframes tk-sway { 25%,75% { transform: skewX(12deg); } 50% { transform: skewX(-12deg); } }
@keyframes tk-rise { 100% { opacity: 0; transform: translateY(-70px); } }
.tk-p { position: absolute; left: calc(var(--x) + 32px); top: calc(var(--y) + 32px); width: 8px; height: 8px; box-sizing: border-box; opacity: 0; animation: tk-fly .55s ease-out both; }
@keyframes tk-fly { 0% { opacity: 0; transform: translate(0,0) scale(.4) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(1) rotate(var(--r)); } }
.tk-p-shard { width: 12px; height: 10px; border: 2px solid #24408E; border-width: 2px 0 0 2px; transform-origin: 0 0; clip-path: polygon(0 0,100% 0,0 100%); background: rgba(36,64,142,.12); }
.tk-p-drop { border-radius: 50% 50% 50% 50%/60% 60% 40% 40%; background: #24408E; }
.tk-p-bubble, .tk-p-ring { width: 10px; height: 10px; border: 2px solid #24408E; border-radius: 50%; }
.tk-p-puff { width: 18px; height: 18px; border-radius: 50%; background: rgba(36,64,142,.16); border: 1.5px dashed rgba(36,64,142,.55); }
.tk-p-speck, .tk-p-crumb { width: 4px; height: 4px; border-radius: 50%; background: #24408E; }
.tk-p-crumb { width: 6px; height: 5px; border-radius: 40% 60% 50% 45%; }
.tk-p-grain { width: 4px; height: 9px; border: 1.5px solid #24408E; border-radius: 50%; }
.tk-p-bean { width: 9px; height: 7px; border: 2px solid #24408E; border-radius: 60% 60% 50% 50%; }
.tk-p-clove { width: 9px; height: 12px; border: 2px solid #24408E; border-radius: 60% 60% 45% 45%/80% 80% 30% 30%; }
.tk-p-steam, .tk-p-squiggle { width: 6px; height: 16px; border-left: 2px solid #24408E; border-radius: 50%; }
.tk-p-squiggle { width: 14px; height: 10px; border: 2px solid #24408E; border-color: #24408E transparent; border-radius: 50%; }
.tk-p-leaf { width: 9px; height: 14px; border: 2px solid #24408E; border-radius: 50% 0; }
.tk-p-flame { width: 10px; height: 14px; border: 2px solid #B83D3D; border-radius: 50% 50% 50% 50%/60% 60% 40% 40%; background: rgba(224,162,26,.35); }
.tk-p-spark { width: 10px; height: 2.6px; border-radius: 2px; background: #24408E; }
.tk-p-star { width: 12px; height: 12px; background: #24408E; clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
.tk-p-ice { width: 12px; height: 12px; background: linear-gradient(#24408E,#24408E) center/2px 100% no-repeat, linear-gradient(#24408E,#24408E) center/100% 2px no-repeat; }
.tk-p-blob { width: 14px; height: 11px; border: 2px solid #24408E; border-radius: 55% 45% 50% 50%/60% 60% 40% 40%; background: rgba(255,255,255,.8); }
.tk-p-yolk { width: 14px; height: 14px; border: 2px solid #24408E; border-radius: 50%; background: rgba(224,170,40,.55); }
.tk-p-ink { width: 16px; height: 16px; border-radius: 50%; background: rgba(36,64,142,.45); }
@media (prefers-reduced-motion: reduce) { .tk, .tk-p { animation: none; } }
/* More tab (3 Nov 2026): small "About & legal" group at the bottom */
.group-label.more-legal { margin-top: 22px; }
.more-legal-list .card-link { padding-top: 10px; padding-bottom: 10px; }
.more-legal-list .card-link h3 { font-size: 1rem; }

.bk-page img, .v2-thumb img, [data-stk] img { -webkit-user-drag: none; user-drag: none; }   /* t2127u: no image drag stealing a long-press */

/* t2220u hold-add confirm: every ingredient, bought ones unticked */
.hf-list{list-style:none;margin:0;padding:0;max-height:52vh;overflow:auto}
.hf-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 2px;border-bottom:1px solid var(--brand-rule);cursor:pointer;color:var(--brand-ink)}
.hf-row input{width:22px;height:22px;flex:none;accent-color:#B83D3D}
.hf-nm{flex:1}.hf-got{font-size:12px;color:var(--brand-ink-soft);border:1px solid var(--brand-rule);border-radius:999px;padding:2px 8px;white-space:nowrap}
.hf-conf .hf-acts button{min-height:44px}
/* Unlock celebration (t2211u): see celebrate() in app.js */
.uc-fx { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(243,235,224,.94); animation: uc-in .4s ease-out; overflow: hidden; cursor: pointer; }
.uc-fx.uc-out { opacity: 0; transition: opacity .35s; }
.uc-stage { position: relative; width: 220px; height: 260px; display: flex; align-items: center; justify-content: center; }
.uc-man { width: 190px; height: 234px; overflow: visible; }
.uc-fx:not(.uc-thanks) .uc-man { animation: uc-bounce .5s ease-in-out .3s 6 alternate; transform-origin: 50% 90%; }
.uc-fx:not(.uc-thanks) .uc-arm-l { animation: uc-arml .25s ease-in-out .3s 12 alternate; transform-origin: 50px 62px; }
.uc-fx:not(.uc-thanks) .uc-arm-r { animation: uc-armr .25s ease-in-out .3s 12 alternate; transform-origin: 50px 62px; }
.uc-fx:not(.uc-thanks) .uc-leg-l { animation: uc-armr .5s ease-in-out .3s 6 alternate; transform-origin: 50px 92px; }
.uc-bit { position: absolute; left: 50%; top: 45%; width: 26px; height: 26px; margin: -13px; opacity: 0; animation: uc-fly 1.1s cubic-bezier(.2,.7,.4,1) both; }
.uc-bit svg { width: 100%; height: 100%; display: block; }
.uc-splat { width: 34px; height: 34px; margin: -17px; }
.uc-line { margin: 10px 0 0; font-size: 1.45rem; font-weight: 700; line-height: 1.25; color: #1E3A5F; text-align: center; animation: uc-pop .5s ease-out .5s both; }
.uc-line span { font-size: 1rem; font-weight: 600; color: #B83D3D; }
.uc-skip { position: absolute; bottom: 28px; font-size: .8rem; color: #1E3A5F; opacity: .6; }
.uc-buy-wrap { margin: 10px 16px 0; text-align: center; animation: uc-pop .5s ease-out .7s both; }
.uc-buy { color: #1E3A5F; font-size: .95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.uc-buy:focus-visible { outline: 2px solid #B83D3D; outline-offset: 3px; }
.uc-thanks { background: rgba(30,58,95,.25); justify-content: flex-end; padding-bottom: 96px; }
.uc-card { display: flex; align-items: center; gap: 10px; max-width: 340px; margin: 0 16px; padding: 12px 16px 12px 10px; background: #F3EBE0; border: 2px solid #1E3A5F; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.18); animation: uc-pop .45s ease-out both; }
.uc-card .uc-man { width: 70px; height: 86px; flex: none; margin: 2px; overflow: visible; }
.uc-card p { margin: 0; color: #1E3A5F; font-size: 1rem; line-height: 1.35; }
.uc-card b { color: #B83D3D; }
.uc-wave { animation: uc-wave .35s ease-in-out .3s 6 alternate; transform-origin: 50px 62px; }
@keyframes uc-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes uc-pop { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes uc-bounce { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-16px) rotate(6deg); } }
@keyframes uc-arml { to { transform: rotate(40deg); } }
@keyframes uc-armr { to { transform: rotate(-40deg); } }
@keyframes uc-wave { to { transform: rotate(-30deg); } }
@keyframes uc-fly { 0% { opacity: 0; transform: translate(0,0) scale(.3); } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .uc-fx, .uc-fx *, .uc-fx .uc-man { animation: none !important; } .uc-bit { opacity: 1; transform: translate(calc(var(--dx) * .7), calc(var(--dy) * .7)); } .uc-out { transition: none; } }

/* === t2363u mother-wall all14 === */
/* t2381u/t2382u/t2383u: continuous opaque patterned frame on ALL sides of mother
   tiles (left/top/right/bottom + between via row-gap). Frame is the scroll mask —
   daughters pass under the right overhang with no cream/white gap. Subgrid row
   tracks keep each mother face top+bottom aligned with its daughter-row faces.
   Outer wall uses equal border-radius on left and right. */
.v2-book, .v2-chart { max-width: 100%; min-width: 0; }
.v2-chart {
  --wall-w: 132px;
  --wall-overhang: 12px; /* opaque patterned mask width (right frame = overhang) */
  --frame: 8px;          /* patterned padding around mother faces (L/T/B; R uses overhang) */
  --row-gap: 6px;        /* patterned strip between mother rows */
  --row-min: 84px;
  --wall-radius: 14px;   /* equal curve left and right */
  --rows: 1;
  position: relative;
  display: grid;
  grid-template-columns: var(--wall-w) minmax(0, 1fr);
  grid-template-rows: repeat(var(--rows), minmax(var(--row-min), auto));
  column-gap: 0;
  row-gap: var(--row-gap);
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 0;
  overflow: visible;
}
.v2-wall {
  grid-column: 1;
  grid-row: 1 / span var(--rows);
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  width: var(--wall-w);
  max-width: var(--wall-w);
  /* Overhang only into lanes — no outer cream margins beside the pattern */
  margin: 0 calc(-1 * var(--wall-overhang)) 0 0;
  /* Pattern padding all four sides; right pad == overhang so mask is solid pattern */
  padding: var(--frame) var(--wall-overhang) var(--frame) var(--frame);
  border-radius: var(--wall-radius);
  box-shadow: 6px 0 14px rgba(59, 33, 23, .18);
  background-color: var(--bk-bg);
  background-image: var(--wall-pattern);
  background-size: 12px 12px;
  pointer-events: none; /* pattern is decorative; mothers re-enable */
}
.v2-wall .v2-mother,
.v2-wall .v2-mother.stk {
  pointer-events: auto;
  position: relative !important;
  left: auto !important;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0; /* row track (subgrid) owns height; keep stretch */
  align-self: stretch;
  box-sizing: border-box;
  background-color: var(--card);
  background-image: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  box-shadow: none;
}
.v2-wall .v2-mother .v2-en,
.v2-wall .v2-mother .v2-r { color: var(--ink-2); }
.v2-wall .v2-mother.stk-red {
  background-color: var(--card);
  background-image: linear-gradient(rgba(217,58,43,.14), rgba(217,58,43,.14));
  border-color: #d93a2b;
}
.v2-wall .v2-mother.stk-yellow {
  background-color: var(--card);
  background-image: linear-gradient(rgba(232,185,35,.18), rgba(232,185,35,.18));
  border-color: #c9a015;
}
.v2-wall .v2-mother.stk-green {
  background-color: var(--card);
  background-image: linear-gradient(rgba(46,158,79,.14), rgba(46,158,79,.14));
  border-color: #2e9e4f;
}
.v2-wall .v2-mother.sel { box-shadow: inset 0 0 0 2px var(--bk-trim); }
.v2-lanes {
  grid-column: 2;
  grid-row: 1 / span var(--rows);
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: max-content;
  align-items: stretch;
  box-sizing: border-box;
  min-width: 0;
  /* Same vertical frame as wall so mother/daughter faces share top+bottom edges */
  margin: 0;
  padding: var(--frame) 16px var(--frame) 0;
  /* No left cream gutter — cards emerge from under patterned overhang */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 16px;
}
.v2-lane-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 108px;
  gap: var(--row-gap);
  min-height: 0;
  height: auto;
  align-self: stretch;
  align-items: stretch;
  width: max-content;
  margin: 0;
  box-sizing: border-box;
}
.v2-lane-row .v2-cell {
  height: auto;
  min-height: 0;
  align-self: stretch;
  box-sizing: border-box;
}

/* Per-book wall patterns (decorative geometry; trim colour from theme) */
.v2-chart[data-book="thai"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20'><g fill='none' stroke='%23C9A46A' stroke-width='1.15' opacity='0.9'><path d='M10 2 L13 7 L18 10 L13 13 L10 18 L7 13 L2 10 L7 7 Z'/><circle cx='10' cy='10' r='1.4' fill='%23C9A46A' stroke='none'/></g></svg>");
}
.v2-chart[data-book="cajun"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><g fill='none' stroke='%23D9B26A' stroke-width='1.1' opacity='0.9'><path d='M8 2 L10 6 L14 8 L10 10 L8 14 L6 10 L2 8 L6 6 Z'/></g></svg>");
}
.v2-chart[data-book="caribbean"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'><path d='M0 6 Q5 1 10 6 T20 6' fill='none' stroke='%23E6CF9A' stroke-width='1.2' opacity='0.9'/></svg>");
}
.v2-chart[data-book="caribbean"] .v2-wall { background-size: 14px 10px; }
.v2-chart[data-book="chinese"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><g fill='none' stroke='%23C9A55A' stroke-width='1.1' opacity='0.9'><rect x='2' y='2' width='10' height='10'/><path d='M7 2 V12 M2 7 H12'/></g></svg>");
}
.v2-chart[data-book="french"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M7 1 L13 7 L7 13 L1 7 Z' fill='none' stroke='%23C8B07A' stroke-width='1.15' opacity='0.9'/></svg>");
}
.v2-chart[data-book="greek"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'><path d='M1 8 H5 V2 H9 V8 H13 V2 H17' fill='none' stroke='%23D8C38F' stroke-width='1.2' opacity='0.9'/></svg>");
}
.v2-chart[data-book="greek"] .v2-wall { background-size: 16px 10px; }
.v2-chart[data-book="indian"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><g fill='none' stroke='%23F0D9A8' stroke-width='1.1' opacity='0.9'><path d='M8 1 L15 8 L8 15 L1 8 Z'/><circle cx='8' cy='8' r='2'/></g></svg>");
}
.v2-chart[data-book="italian"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><g fill='none' stroke='%23DCC892' stroke-width='1.1' opacity='0.9'><path d='M0 8 L8 0 L16 8 L8 16 Z'/><path d='M4 8 L8 4 L12 8 L8 12 Z'/></g></svg>");
}
.v2-chart[data-book="japanese"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16'><g fill='none' stroke='%23C77F63' stroke-width='1.05' opacity='0.9'><path d='M9 1 L17 5.5 L17 12.5 L9 17 L1 12.5 L1 5.5 Z' transform='scale(0.85) translate(1.5,-0.5)'/></g></svg>");
}
.v2-chart[data-book="korean"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><g fill='none' stroke='%23E8DDBF' stroke-width='1.1' opacity='0.9'><rect x='1' y='1' width='5' height='5'/><rect x='8' y='1' width='5' height='5'/><rect x='1' y='8' width='5' height='5'/><rect x='8' y='8' width='5' height='5'/></g></svg>");
}
.v2-chart[data-book="mexican"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><g fill='none' stroke='%23D9A441' stroke-width='1.1' opacity='0.9'><path d='M8 1 L11 5 L15 5 L12 8 L13 12 L8 10 L3 12 L4 8 L1 5 L5 5 Z'/></g></svg>");
}
.v2-chart[data-book="mideast"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><g fill='none' stroke='%23D2B47A' stroke-width='1.1' opacity='0.9'><path d='M8 1 L9.5 6 L14.5 6 L10.5 9 L12 14 L8 11 L4 14 L5.5 9 L1.5 6 L6.5 6 Z'/></g></svg>");
}
.v2-chart[data-book="soulfood"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'><path d='M0 5 L3 1 L6 5 L9 1 L12 5 L15 1 L18 5' fill='none' stroke='%23E3C48A' stroke-width='1.2' opacity='0.9'/></svg>");
}
.v2-chart[data-book="soulfood"] .v2-wall { background-size: 14px 10px; }
.v2-chart[data-book="spanish"] {
  --wall-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><g fill='none' stroke='%23E9DCC6' stroke-width='1.1' opacity='0.9'><rect x='1' y='1' width='12' height='12' rx='1'/><path d='M1 7 H13 M7 1 V13'/></g></svg>");
}
/* t2384u: on-matrix hold tip (owned books) */
.v2-hold-hint { margin: 8px 0 0; color: var(--ink-2); }

/* Contain page-level X scroll to lanes only */
.v2-book { overflow-x: clip; }
