:root { color-scheme: light; --bg: #FAF6EF; --surface: #FFFDF9; --surface-2: #F3ECE2; --text: #2A211C; --muted: #6B5E55; --line: #E8DFD3; --accent: #B04E2B; --accent-contrast: #FFFFFF; --accent-soft: #F3E1D6; --accent-ink: #933F22; --green: #4A6645; --green-soft: #E3EADF; --warn: #8A5A00; --warn-soft: #F6EAD0; --danger: #A3342B; --danger-soft: #F6DEDA; --scrim: rgba(28, 23, 20, 0.45); --shadow: 0 1px 2px rgba(42, 33, 28, 0.06), 0 6px 20px rgba(42, 33, 28, 0.08); --font-title: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif; --font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif; --t-xs: 12px; --t-sm: 13.5px; --t-md: 15.5px; --t-lg: 17px; --t-xl: 20px; --t-2xl: 26px; --t-3xl: 32px; --t-cooking: 28px; --t-cooking-tablet: 36px; --lh-body: 1.45; --lh-reading: 1.6; --lh-heading: 1.15; --lh-display: 1.08; --lh-cooking: 1.35; --space-xxs: 2px; --space-xs: 4px; --space-sm: 8px; --space-md: 12px; --space-lg: 16px; --space-xl: 20px; --space-2xl: 24px; --space-3xl: 32px; --space-gutter: 20px; --space-gutter-tablet: 40px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-sheet: 22px; --r-pill: 999px; --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --duration-base: 200ms; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #1C1714; --surface: #27201B; --surface-2: #312822; --text: #F3ECE4; --muted: #B5A89D; --line: #3A322C; --accent: #E48A63; --accent-contrast: #1C1714; --accent-soft: #3B2A22; --accent-ink: #E48A63; --green: #9DB894; --green-soft: #26301F; --warn: #E7BC6A; --warn-soft: #3A2F1A; --danger: #F0907F; --danger-soft: #3D2320; --scrim: rgba(0, 0, 0, 0.6); --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.3); } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #1C1714; --surface: #27201B; --surface-2: #312822; --text: #F3ECE4; --muted: #B5A89D; --line: #3A322C; --accent: #E48A63; --accent-contrast: #1C1714; --accent-soft: #3B2A22; --accent-ink: #E48A63; --green: #9DB894; --green-soft: #26301F; --warn: #E7BC6A; --warn-soft: #3A2F1A; --danger: #F0907F; --danger-soft: #3D2320; --scrim: rgba(0, 0, 0, 0.6); --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.3); }

@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/atkinson-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/atkinson-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/newsreader-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/newsreader-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-text);
  font-size: 1rem; line-height: 1.5; font-variant-numeric: tabular-nums; min-height: 100vh; display: flex; flex-direction: column;
  --t-xs: .78rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.1rem; --t-xl: 1.3rem; --t-2xl: 1.65rem; --t-3xl: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem);
  --gutter: 20px; --warn-ink: var(--warn);
}
img { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); font-weight: 700; }
.skip:focus { top: 12px; }
main { flex: 1; }
.a-muted { color: var(--muted); }
.a-small { font-size: var(--t-sm); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- App notice (smart banner) and language hint ---------- */
.a-web-smart { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter) 8px 8px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.a-web-smart[hidden] { display: none; }
.a-web-smart-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); flex: none; border-radius: 50%; cursor: pointer; }
.a-web-smart-logo { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; flex: none; }
.a-web-smart-logo svg { width: 100%; height: 100%; display: block; }
.a-web-smart-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.a-web-smart-text b { font-size: var(--t-sm); }
.a-web-smart-text small { color: var(--muted); font-size: var(--t-xs); }
.a-web-smart-btn { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.a-lang-hint { display: flex; align-items: center; gap: 10px; padding: 6px var(--gutter); background: var(--accent-soft); font-size: var(--t-sm); }
.a-lang-hint[hidden] { display: none; }
.a-lang-hint > .ic { color: var(--accent-ink); }
.a-lang-hint p { flex: 1; min-width: 0; }
.a-lang-hint a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--text); }

/* ---------- Header & footer ---------- */
.a-web-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.a-web-head-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); flex-wrap: wrap; }
.a-web-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-title); font-weight: 600; font-size: 1.45rem; color: var(--accent); text-decoration: none; }
.a-web-logo svg { width: 32px; height: 32px; border-radius: 8px; }
.a-web-head nav ul { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.a-web-head nav a:not(.a-web-cta-sm) { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.a-web-head nav a:not(.a-web-cta-sm):hover, .a-web-head nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.a-web-cta-sm { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-ink); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.a-web-cta-sm:hover { background: var(--accent-soft); }
.a-web-head-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.a-web-lang a { gap: 4px; }
.a-web-foot { margin-top: 40px; padding: 22px var(--gutter) 28px; color: var(--muted); font-size: var(--t-xs); text-align: center; border-top: 1px solid var(--line); background: var(--surface); }
.a-web-foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; margin-bottom: 8px; }
.a-web-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.a-web-foot p + p { margin-top: 4px; }

/* ---------- Page building blocks ---------- */
.a-web-pad { padding: 18px var(--gutter) 24px; max-width: 760px; margin: 0 auto; }
.a-web-wide { padding: 18px var(--gutter) 24px; max-width: 1120px; margin: 0 auto; }
.a-web-crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; color: var(--muted); font-size: var(--t-xs); margin-bottom: 6px; }
.a-web-crumbs li + li::before { content: "›"; margin-right: 6px; }
.a-web-crumbs a { color: var(--muted); display: inline-block; padding: 12px 0; margin: -12px 0; }
.a-web-title { font-family: var(--font-title); font-weight: 600; font-size: var(--t-3xl); line-height: 1.1; letter-spacing: -.012em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.a-web-h2 { font-family: var(--font-title); font-weight: 600; font-size: var(--t-xl); line-height: 1.2; margin: 28px 0 10px; }
.a-rsub { color: var(--muted); font-size: var(--t-lg); margin-top: 4px; }
.a-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.a-intro { font-size: var(--t-md); line-height: 1.6; margin: 14px 0; max-width: 68ch; }
.a-web-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; color: var(--muted); font-size: var(--t-sm); }
.a-stars { display: inline-flex; color: var(--accent); vertical-align: middle; }
.a-stars .ic { width: 16px; height: 16px; }
.a-equip { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: var(--t-sm); }
.a-equip .ic { color: var(--muted); }
.a-ki-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: var(--t-xs); }
.a-allergens { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); font-size: var(--t-sm); }
.a-allergens .ic { color: var(--warn); }
.a-preview-banner { position: sticky; top: 0; z-index: 11; display: flex; gap: 10px; align-items: center; padding: 10px var(--gutter); background: var(--warn-soft); font-size: var(--t-sm); }
.a-preview-banner .ic { color: var(--warn); }
.a-fallback { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--t-sm); }
.a-fallback .ic { color: var(--accent-ink); }
.a-fallback a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--text); }

.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 20px; border-radius: 999px; border: 1px solid transparent; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.a-btn--primary { background: var(--accent); color: var(--accent-contrast); }
.a-btn--primary:hover { filter: brightness(1.06); }
.a-btn--ghost { background: transparent; border-color: var(--line); }
.a-btn--ghost:hover { background: var(--surface-2); }
.a-btn--block { width: 100%; }
.a-btn--sm { min-height: 44px; padding: 0 16px; font-size: var(--t-sm); }
.a-row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; align-items: center; }

.a-web-ctacard { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin: 22px 0 6px; padding: 16px; border-radius: var(--r-lg); background: var(--accent-soft); }
.a-web-ctacard p { color: var(--text); font-size: var(--t-sm); margin-top: 2px; }
.a-web-ctacard .a-row-btns { grid-column: 1 / -1; margin: 8px 0 0; }
.a-web-cta-ic { width: 30px; height: 30px; color: var(--accent-ink); }

.a-empty { text-align: center; padding: 36px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.a-empty-ic { width: 52px; height: 52px; color: var(--accent); margin-bottom: 4px; }
.a-empty h1, .a-empty h2 { font-size: var(--t-lg); font-weight: 700; }
.a-empty p { color: var(--muted); max-width: 40ch; }

/* ---------- Recipe ---------- */
.a-web-hero { position: relative; aspect-ratio: 4 / 3; max-height: 460px; width: 100%; background: var(--surface-2); overflow: hidden; }
.a-web-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .a-web-hero { aspect-ratio: 21 / 9; } }
.a-web-hero-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.a-web-hero-ph .ic { width: 48px; height: 48px; }
.a-video-len, .a-ki-label { position: absolute; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(18, 12, 8, .72); color: #fff; font-size: var(--t-xs); font-weight: 700; }
.a-video-len { left: 16px; }
.a-ki-label { right: 16px; }
.a-portions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 10px; }
.a-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.a-stepper a, .a-stepper button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--text); text-decoration: none; cursor: pointer; }
.a-stepper a:hover, .a-stepper button:hover { background: var(--surface-2); }
.a-stepper [aria-disabled="true"] { opacity: .35; pointer-events: none; }
.a-stepper output { min-width: 3.2em; text-align: center; font-weight: 700; }
.a-portions-form { display: flex; align-items: center; gap: 8px; }
.a-portions-form input { width: 5em; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; }
.js .a-portions-form { display: none; }
.a-web-ings li { display: grid; grid-template-columns: minmax(84px, auto) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.a-web-ings .a-group { display: block; padding: 14px 0 4px; border-bottom: 0; font-weight: 700; color: var(--muted); font-size: var(--t-sm); }
.a-web-ings .a-note, .a-web-ings .a-pantry { color: var(--muted); }
.a-web-steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.a-web-steps li > div { flex: 1; min-width: 0; }
.a-step-num { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.a-step-img { margin-top: 10px; border-radius: var(--r-md); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; max-width: 420px; }
.a-step-timer { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--muted); font-size: var(--t-sm); }
.a-web-list { display: grid; gap: 6px; }
.a-web-list li { padding-left: 1.1em; position: relative; }
.a-web-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.a-web-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.a-web-table th, .a-web-table td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.a-web-table td { text-align: right; font-weight: 700; }
.a-credits { margin-top: 28px; font-size: var(--t-xs); color: var(--muted); }
.a-credits li + li { margin-top: 2px; }
.a-locked { text-align: center; margin: 22px 0; padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.a-locked .ic { width: 40px; height: 40px; color: var(--accent); }
.a-locked p { color: var(--muted); max-width: 42ch; }
.a-locked-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.a-locked-list li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: var(--t-sm); color: var(--muted); }
@media (min-width: 1024px) {
  .a-web-recipe .a-web-pad { max-width: 1040px; }
  .a-web-recipe-cols { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .a-web-recipe-cols > section:first-child { position: sticky; top: 16px; }
}

/* ---------- Cards & lists ---------- */
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 16px; }
.a-card { position: relative; min-width: 0; }
.a-card a { color: inherit; text-decoration: none; display: block; }
.a-card a:hover .a-card-title { text-decoration: underline; }
.a-card-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.a-card-media img { width: 100%; height: 100%; object-fit: cover; }
.a-card-body { display: flex; flex-direction: column; gap: 2px; padding-top: 9px; }
.a-card-title { font-family: var(--font-title); font-weight: 600; font-size: var(--t-lg); line-height: 1.2; }
.a-card-meta { color: var(--muted); font-size: var(--t-sm); }
.a-chip { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: var(--t-xs); font-weight: 700; }
.a-chip + .a-chip { left: auto; right: 8px; }
.a-ki-chip { position: absolute; right: 8px; bottom: 8px; display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(18, 12, 8, .72); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.a-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 12px; flex-wrap: wrap; }
.a-sechead h2 { font-family: var(--font-title); font-weight: 600; font-size: var(--t-2xl); line-height: 1.2; }
.a-sechead a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: var(--t-sm); }
.a-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.a-tiles a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.a-tiles a:hover { background: var(--surface-2); }
.a-tiles small { color: var(--muted); font-weight: 400; }
.a-pager { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }

/* ---------- Home page ---------- */
.a-web-landing-hero { display: grid; gap: 24px; align-items: center; padding: 28px var(--gutter) 8px; max-width: 1120px; margin: 0 auto; }
@media (min-width: 900px) { .a-web-landing-hero { grid-template-columns: 1fr 1fr; padding-top: 48px; } }
.a-web-landing-hero .a-web-title { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.3rem); }
.a-lead { font-size: var(--t-lg); line-height: 1.5; margin-top: 12px; max-width: 46ch; }
.a-dayp { display: block; position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; background: var(--surface-2); aspect-ratio: 4 / 3; }
.a-dayp img { width: 100%; height: 100%; object-fit: cover; }
.a-dayp-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; background: linear-gradient(to top, rgba(18, 12, 8, .82), rgba(18, 12, 8, 0)); display: flex; flex-direction: column; gap: 2px; }
.a-dayp-text .a-eyebrow { color: #fff; }
.a-dayp-text b { font-family: var(--font-title); font-weight: 600; font-size: var(--t-2xl); line-height: 1.15; }
.a-dayp-text small { font-size: var(--t-sm); }
.a-dayp:hover b { text-decoration: underline; }
.a-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.a-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.a-benefits li { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.a-benefits b { display: block; font-family: var(--font-title); font-weight: 600; font-size: var(--t-lg); }
.a-benefits span { color: var(--muted); font-size: var(--t-sm); }

/* ---------- Collection, invitation, app ---------- */
.a-web-landing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 28px; }
.a-collage-mini { display: grid; width: 150px; aspect-ratio: 1; gap: 2px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); place-items: center; }
.a-collage-mini img { width: 100%; height: 100%; object-fit: cover; }
.a-collage-mini--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; place-items: stretch; }
.a-collage-mini--3 img:first-child { grid-row: span 2; }
.a-collage-mini--2 { grid-template-columns: 1fr 1fr; place-items: stretch; }
.a-collage-mini--1 { place-items: stretch; }
.a-collage-mini .ic { width: 40px; height: 40px; color: var(--muted); }
.a-center-ic { width: 56px; height: 56px; color: var(--accent); }
.a-web-mini { width: 100%; text-align: left; margin: 8px 0; }
.a-web-mini li { border-bottom: 1px solid var(--line); }
.a-web-mini a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: inherit; text-decoration: none; min-height: 68px; }
.a-web-mini a:hover b { text-decoration: underline; }
.a-web-mini img, .a-web-mini .a-thumb-ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.a-web-mini span { display: flex; flex-direction: column; min-width: 0; }
.a-web-mini b { font-family: var(--font-title); font-weight: 600; }
.a-web-mini small { color: var(--muted); font-size: var(--t-xs); }
.a-web-howto { text-align: left; list-style: decimal; padding-left: 22px; margin: 6px 0 10px; line-height: 1.8; }
.a-avatars { display: flex; justify-content: center; gap: 6px; }
.a-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

/* ---------- Store badges (official artwork, see public/stores/README.md) ---------- */
.a-store-badge { display: inline-block; text-decoration: none; }
/* Clear space: Apple asks for at least 10 % of the badge height, Google for a quarter – 10 px covers both. */
.a-store-badge--apple { margin: 10px; }
.a-store-badge--play { margin: 0; }
.a-store-badge img { display: block; width: auto; }
.a-store-badge--apple img { height: 40px; }
/* The Google Play web badge carries its own clear space inside the image, so it is rendered taller. */
.a-store-badge--play img { height: 60px; }
.a-stores-soon { margin-top: 18px; max-width: 46ch; }

/* ---------- Translated user text ---------- */
.a-translated { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; font-size: var(--t-sm); }
.a-translated-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: var(--t-xs); }
.a-translated summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-ink); cursor: pointer; }
.a-translated details > span { display: block; color: var(--muted); }

/* ---------- Report link ---------- */
.a-report-link { margin: 18px 0 0; font-size: var(--t-sm); }
.a-report-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); }

/* ---------- Forms (notice form, licence search) ---------- */
.a-form { max-width: 46rem; }
.a-field { margin: 22px 0; border: 0; padding: 0; }
.a-field > label, .a-field legend { display: block; font-weight: 700; padding: 0; overflow-wrap: anywhere; hyphens: auto; }
.a-field-hint { color: var(--muted); font-size: var(--t-sm); margin: 2px 0 6px; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.a-field-error { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0; color: var(--danger); font-size: var(--t-sm); font-weight: 700; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.a-field input[type="text"], .a-field input[type="email"], .a-field textarea {
  display: block; width: 100%; max-width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit;
}
.a-field textarea { min-height: 9rem; line-height: 1.5; resize: vertical; }
.a-field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.a-check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; }
.a-check input { width: 22px; height: 22px; margin: 11px 0; flex: none; accent-color: var(--accent); }
.a-check label { padding: 11px 0; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.a-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Beta sign-up: the three steps above the form. */
.a-beta-steps { margin: 12px 0 20px; padding-left: 20px; color: var(--muted); }
.a-beta-steps li { margin: 4px 0; }
.a-form-errors { margin: 18px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--danger-soft); border: 1px solid var(--danger); }
.a-form-errors h2 { font-size: var(--t-md); font-weight: 700; margin-bottom: 4px; }
.a-form-errors ul { display: grid; gap: 2px; list-style: disc; padding-left: 20px; overflow-wrap: anywhere; hyphens: auto; }
.a-form-errors a { color: var(--text); }
.a-form-errors:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Legal texts ---------- */
.a-legal section { margin: 18px 0; }
.a-legal h2 { font-size: var(--t-md); font-weight: 700; margin-bottom: 4px; }
/* Legal texts carry long URLs, e-mail addresses and DOIs – they must break instead of widening the page. */
.a-legal p, .a-legal li, .a-legal h2, .a-legal h3, .a-web-h2 { overflow-wrap: anywhere; hyphens: auto; }
.a-legal p { line-height: 1.6; white-space: pre-line; max-width: 72ch; }
.a-legal-meta { color: var(--muted); font-size: var(--t-sm); margin-top: 6px; }
.a-legal-note { margin: 12px 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--t-sm); }
.a-legal-h3 { font-size: var(--t-sm); font-weight: 700; margin: 16px 0 4px; color: var(--muted); }
.a-title-ic { width: 32px; height: 32px; color: var(--accent); vertical-align: -.16em; margin-right: 6px; }
.a-search { margin: 12px 0; }
.a-search label { display: block; font-weight: 700; margin-bottom: 4px; }
.a-search-row { display: flex; flex-wrap: wrap; gap: 8px; }
.a-search input { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; }
.a-licenses { display: grid; gap: 4px; font-size: var(--t-sm); }
.a-licenses li { overflow-wrap: anywhere; }

@media (min-width: 768px) { body { --gutter: 32px; } }
@media print {
  .a-web-smart, .a-lang-hint, .a-web-head nav, .a-web-ctacard, .a-portions, .a-web-foot ul { display: none !important; }
  body { background: #fff; color: #000; }
}
