/* Holoskop design system: plain CSS, no build step.
   Sections: fonts → tokens → base → layout → header/footer → components → pages → utilities.
   Colours are defined only in the token section. */

/* ---- Fonts (self-hosted, Latin subsets; licences in fonts/) ---- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.a216f0edd26c.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-var-latin.275710a24346.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
/* Arial scaled to Inter's metrics, so swapping the font does not shift the layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%;
}

/* ---- Tokens ---- */
:root {
  /* Brand colours come from the parrot logo: parrot blue (accent), telescope gold
     (calls to action), outline navy (text, frames, dark areas). */
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #e6ecf4;
  --text: #14233f;
  --muted: #4a5670;
  --border: #dfe5ee;
  --border-strong: #8590a6;
  --accent: #1d5fa8;
  --accent-hover: #14467f;
  --accent-text: #ffffff;
  --accent-soft: #e3f0fa;
  --accent-soft-text: #14233f;
  --link: #1d5fa8;
  --good: #11603a;
  --good-bg: #e3f5ea;
  --warn: #7a4300;
  --warn-bg: #fef3c7;
  --bad: #9b1c1c;
  --bad-bg: #fde8e8;
  /* Product photos have white backgrounds, so their frame stays light in dark mode. */
  --media-bg: #ffffff;
  --placeholder-bg: #eef1f6;
  --shadow-sm: 0 1px 2px rgb(20 35 63 / 0.12);
  --shadow-bar: 0 -6px 20px rgb(20 35 63 / 0.1);
  /* Holo accent: in light mode every stop has ≥ 3:1 against white, so the search frame stays visible. */
  --holo-1: #0b93bf;
  --holo-2: #7b6cff;
  --holo-3: #d94fa7;
  --holo-4: #b08400;
  --holo: linear-gradient(125deg, var(--holo-1), var(--holo-2) 40%, var(--holo-3) 70%, var(--holo-4));
  /* Pastel holo for areas with navy text on them (strips, badges): the same in both themes. */
  --holo-pastel: linear-gradient(125deg, #7de2fc, #b9a6ff 40%, #ffb4e6 70%, #ffe58a);
  --gold: #f4b324;
  --ink: #14233f;
  /* Hard offset shadow under framed elements ("sticker" look of the logo). */
  --lift: 0 2px 0 grey;
  --hero-bg: #e3f0fa;
  --hero-border: #cfe0f0;
  --banner-bg: #1d5fa8;
  --footer-bg: #14233f;
  --tag-code-bg: #14233f;
  --tag-code-text: #ffffff;
  --best-row: #f7f4ff;
  /* Dark mode gives the parrot a light sticker edge; its navy outline would vanish. */
  --mascot-filter: none;

  --font-text: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Inter Fallback", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --gutter: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1426;
  --surface: #13203a;
  --surface-2: #1b2c4d;
  --text: #eef2fa;
  --muted: #a9b6cf;
  --border: #26375a;
  --border-strong: #5d7099;
  --accent: #8cc2ff;
  --accent-hover: #b9dbff;
  --accent-text: #0b1426;
  --accent-soft: #1f3b66;
  --accent-soft-text: #eef2fa;
  --link: #8cc2ff;
  --good: #7ee2a8;
  --good-bg: #173b2a;
  --warn: #ffd27a;
  --warn-bg: #3a2c0b;
  --bad: #ff9c9c;
  --bad-bg: #3b1620;
  --media-bg: #f4f5fa;
  --placeholder-bg: #1b2c4d;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-bar: 0 -6px 20px rgb(0 0 0 / 0.4);
  --holo-1: #7de2fc;
  --holo-2: #b9a6ff;
  --holo-3: #ffb4e6;
  --holo-4: #ffe58a;
  --lift: 0 2px 0 #03070f;
  --hero-bg: #10213f;
  --hero-border: #22375c;
  --footer-bg: #060d1b;
  --tag-code-bg: #eef2fa;
  --tag-code-text: #0b1426;
  --best-row: #1a2546;
  --mascot-filter: drop-shadow(2px 0 0 #e8f1ff) drop-shadow(-2px 0 0 #e8f1ff) drop-shadow(0 2px 0 #e8f1ff) drop-shadow(0 -2px 0 #e8f1ff);
  color-scheme: dark;
}

/* Same values as above: the system setting applies unless the visitor chose light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1426;
    --surface: #13203a;
    --surface-2: #1b2c4d;
    --text: #eef2fa;
    --muted: #a9b6cf;
    --border: #26375a;
    --border-strong: #5d7099;
    --accent: #8cc2ff;
    --accent-hover: #b9dbff;
    --accent-text: #0b1426;
    --accent-soft: #1f3b66;
    --accent-soft-text: #eef2fa;
    --link: #8cc2ff;
    --good: #7ee2a8;
    --good-bg: #173b2a;
    --warn: #ffd27a;
    --warn-bg: #3a2c0b;
    --bad: #ff9c9c;
    --bad-bg: #3b1620;
    --media-bg: #f4f5fa;
    --placeholder-bg: #1b2c4d;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-bar: 0 -6px 20px rgb(0 0 0 / 0.4);
    --holo-1: #7de2fc;
    --holo-2: #b9a6ff;
    --holo-3: #ffb4e6;
    --holo-4: #ffe58a;
    --lift: 0 2px 0 #03070f;
    --hero-bg: #10213f;
    --hero-border: #22375c;
    --footer-bg: #060d1b;
    --tag-code-bg: #eef2fa;
    --tag-code-text: #0b1426;
    --best-row: #1a2546;
    --mascot-filter: drop-shadow(2px 0 0 #e8f1ff) drop-shadow(-2px 0 0 #e8f1ff) drop-shadow(0 2px 0 #e8f1ff) drop-shadow(0 -2px 0 #e8f1ff);
    color-scheme: dark;
  }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font-text);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.1; margin: 1.25rem 0 0.5rem; }
h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); line-height: 1.2; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
del { color: var(--muted); }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

/* ---- Layout ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 24px; } }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 2.25rem 0 1rem; }
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 600; font-size: 0.95rem; }

.two-col { display: grid; gap: 16px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---- Header ---- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.logo:hover { color: var(--text); }
/* Round parrot head in a holo ring: logo, footer, best price, price bar. */
.head-badge { display: inline-block; flex: none; width: 48px; height: 48px; padding: 3px; border-radius: 50%; background: var(--holo); }
.head-badge img { display: block; width: 100%; height: 100%; border-radius: 50%; background: #e3f0fa; object-fit: cover; }
.head-badge.pastel { background: var(--holo-pastel); }
.head-badge.small { width: 32px; height: 32px; padding: 2px; }
.head-badge.tiny { width: 22px; height: 22px; padding: 0; background: none; }
/* "Holo" of the word mark in the holo gradient. */
.holo-text { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer .holo-text { background-image: var(--holo-pastel); }
.main-nav { position: relative; display: flex; align-items: center; gap: 4px 20px; order: 3; flex-basis: 100%; }
.main-nav a { position: relative; color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 0; white-space: nowrap; }
.main-nav a:hover { color: var(--link); }
.nav-menu summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-weight: 500; white-space: nowrap; cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover { color: var(--link); }
.nav-menu[open] summary svg { transform: rotate(180deg); }
/* Narrow screens: the panel spans the navigation row, which is as wide as the page. */
.nav-menu-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); }
.nav-menu-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nav-menu-title { margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.nav-menu ul { margin: 0; padding: 0; list-style: none; }
.main-nav .nav-menu li a { display: flex; align-items: center; min-height: 44px; padding: 0; white-space: normal; }
.main-nav .nav-menu-all { display: block; margin-top: 12px; padding: 12px 0 0; border-top: 1px solid var(--border); font-weight: 600; color: var(--link); white-space: normal; }
.main-nav a[aria-current], .nav-menu.is-current summary { font-weight: 700; }
.nav-menu summary { position: relative; }
.main-nav > a[aria-current]::after, .nav-menu.is-current summary::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: var(--holo); }
.header-search { order: 2; flex-basis: 100%; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; order: 1; }
@media (min-width: 960px) {
  .main-nav { order: 0; flex-basis: auto; }
  .nav-menu { position: relative; }
  .nav-menu-panel { right: auto; width: 26rem; margin-top: 8px; }
  .main-nav .nav-menu li a { min-height: 36px; }
  .header-search { order: 0; flex: 1 1 260px; max-width: 460px; margin-left: auto; }
  .header-search + .header-actions { margin-left: 0; }
}

.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-height: 0; padding: 0;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px;
}
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
/* The switches need the inline script; without it the system setting applies. */
:root:not(.js) .js-only { display: none; }
/* Signed-in state comes from the hint cookie (accounts.middleware); without it: guest view. */
:root.signed-in .guest-only, :root:not(.signed-in) .signed-in-only { display: none !important; }
.account-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 5px;
  border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); font-weight: 600; text-decoration: none;
}
.account-chip:hover { background: var(--surface-2); color: var(--text); }
.avatar {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%; background: var(--holo); color: #0d0f1c;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
/* Small "online" dot. */
.account-chip .avatar::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: #22a45d; border: 2px solid var(--surface);
}
/* Phones: only the avatar, the label stays for screen readers. */
@media (max-width: 479px) {
  .account-chip { padding: 0 5px; }
  .account-chip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Footer ---- */
/* Always navy, in both themes: fixed colours instead of tokens. */
.site-footer { margin-top: 4rem; padding: 2.25rem 0 1.75rem; background: var(--footer-bg); font-size: 0.9rem; color: #c3cee2; }
.site-footer p { margin: 0 0 0.75rem; max-width: 85ch; }
.site-footer a { color: #d6e2f3; }
.site-footer a:hover { color: #ffffff; }
.footer-brand { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 1rem; }
.footer-brand .head-badge { width: 56px; height: 56px; background: var(--holo-pastel); }
.footer-name { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #ffffff; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 0.75rem 0; }
.footer-nav a { padding: 6px 0; font-weight: 500; }
/* "Cookie-Einstellungen" is a button (it opens the consent banner) that looks like the links next to it. */
.footer-nav .link-button { min-height: 0; padding: 6px 0; background: none; border: 0; border-radius: 0; color: #d6e2f3; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.footer-nav .link-button:hover { background: none; color: #ffffff; }

/* Consent banner for web analytics (PLAN.md Phase 23): fixed at the bottom, so it never shifts the layout; not modal, the page stays usable.
   Layout: brand + tabs, the active panel, then category switches and three equal buttons. */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-height: 85vh; overflow-y: auto; background: var(--surface); color: var(--text); border-top: 1px solid var(--border-strong); box-shadow: var(--shadow-bar); }
.consent-banner:focus { outline: none; }
.consent-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.consent-box { padding-top: 8px; padding-bottom: 10px; font-size: 0.92rem; }
.consent-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; border-bottom: 1px solid var(--border); }
.consent-brand { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 8px; font-family: var(--font-display); font-weight: 700; }
.consent-tabs { display: flex; }
.consent-tabs [role="tab"] { min-height: 40px; padding: 6px 14px; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--text); font-weight: 600; }
.consent-tabs [role="tab"]:hover { background: var(--surface-2); color: var(--text); border-color: transparent; border-bottom-color: var(--border-strong); }
.consent-tabs [role="tab"][aria-selected="true"] { color: var(--link); border-bottom-color: var(--accent); }
.consent-panel { padding: 8px 0; }
.consent-panel p { margin: 0 0 4px; }
.consent-title { font-weight: 700; }
.consent-details { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.consent-details dt { font-weight: 700; }
.consent-details dd { margin: 0; }
.consent-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 24px; }
.consent-body > .consent-panel { grid-column: 1; }
/* Buttons sit right of the active panel, their top aligned with its first line. */
.consent-foot { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 24px; padding-top: 8px; }
.consent-categories { display: flex; }
.consent-categories[hidden] { display: none; }
.consent-switch { display: flex; align-items: center; gap: 10px; padding: 4px 18px; font-weight: 600; cursor: pointer; }
.consent-switch + .consent-switch { border-left: 1px solid var(--border); }
.consent-switch:first-child { padding-left: 0; }
.consent-switch:has(input:disabled) { cursor: default; color: var(--muted); }
/* Switch drawn on the checkbox itself: keyboard, label click and screen readers ("Schalter") work natively. */
.consent-switch input { appearance: none; position: relative; flex: none; width: 44px; min-height: 0; height: 24px; margin: 0; padding: 0; border: 2px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); cursor: inherit; transition: background-color 0.15s; }
.consent-switch input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--border-strong); transition: transform 0.15s; }
.consent-switch input:checked { background: var(--accent); border-color: var(--accent); }
.consent-switch input:checked::before { transform: translateX(20px); background: var(--surface); }
.consent-switch input:disabled { opacity: 0.55; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.consent-actions [hidden] { display: none; }
.consent-actions .button.secondary { border: 2px solid var(--accent); color: var(--link); }
.consent-actions .button.secondary:hover { background: var(--accent-soft); color: var(--link); border-color: var(--accent); }
@media (max-width: 559px) {
  .consent-tabs { width: 100%; }
  .consent-tabs [role="tab"] { flex: 1 1 0; padding: 6px 4px; }
  .consent-body { grid-template-columns: minmax(0, 1fr); }
  .consent-foot { grid-column: 1; grid-row: auto; flex-direction: column; align-items: stretch; padding: 8px 0 0; border-top: 1px solid var(--border); }
  .consent-categories { justify-content: space-around; }
  .consent-actions { flex-wrap: nowrap; gap: 8px; margin-left: 0; }
  .consent-actions .button { flex: 1 1 0; min-width: 0; padding: 6px 8px; white-space: normal; line-height: 1.2; font-size: 0.88rem; }
}
.site-footer .small { color: #a9b6cf; border-top: 1px solid #2a3c60; padding-top: 14px; }

/* ---- Forms and buttons ---- */
input, select, textarea, button {
  font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 12px; min-height: 44px;
}
input::placeholder { color: var(--muted); opacity: 1; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px;
  background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); border-radius: 10px;
  cursor: pointer; font-weight: 700; text-decoration: none; white-space: nowrap;
}
button:hover, .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.button.secondary, button.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); font-weight: 600; }
.button.secondary:hover, button.secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.button.soft, button.soft { background: var(--accent-soft); color: var(--accent-soft-text); border-color: transparent; }
.button.soft:hover, button.soft:hover { background: var(--accent-soft); color: var(--accent-soft-text); border-color: var(--accent); }
button.danger, .button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button.danger:hover, .button.danger:hover { background: var(--bad-bg); color: var(--bad); }
.button.large { min-height: 50px; padding: 0 24px; font-size: 1.05rem; border-radius: 12px; }
/* Telescope gold: the one call to action of a block (price alerts). Navy text in both themes. */
.button.gold, button.gold { background: var(--gold); color: #14233f; border: 2px solid #14233f; box-shadow: 0 4px 0 #14233f; }
.button.gold:hover, button.gold:hover { background: #ffc94d; color: #14233f; border-color: #14233f; }
.button.gold:active, button.gold:active { transform: translateY(2px); box-shadow: 0 2px 0 #14233f; }

.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 1rem 0 1.5rem; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.grow { flex: 1 1 240px; }
.field.check { flex-direction: row; align-items: center; min-height: 44px; gap: 8px; }
.field.check input { min-height: auto; width: 20px; height: 20px; accent-color: var(--accent); }
.field label { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.field.check label { color: var(--text); font-size: 1rem; }

/* Holo frame: the gradient is the parent's background, the content sits on a surface inside. */
.holo-frame { padding: 2px; border-radius: var(--radius-lg); background: var(--holo); }
.holo-frame > .holo-inner { border-radius: calc(var(--radius-lg) - 2px); background: var(--surface); }
.holo-frame:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.holo-frame.lift { padding: 3px; box-shadow: var(--lift); }
.holo-frame.lift > .holo-inner { border-radius: calc(var(--radius-lg) - 3px); }
/* Header strip of a holo card ("Gesichtet", "Bester Preis"): pastel holo, slowly shimmering. */
.holo-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 9px 16px;
  font-family: var(--font-text); letter-spacing: 0; line-height: 1.4;
  background: var(--holo-pastel); background-size: 250% 250%; color: #14233f; font-weight: 700; font-size: 0.9rem;
  animation: holo-shift 7s ease-in-out infinite alternate;
}
.holo-strip .end { margin-left: auto; font-weight: 600; font-size: 0.85rem; }
.holo-strip .eyebrow { color: #14233f; }
@keyframes holo-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .holo-strip, .alarm-banner { animation: none; } }
/* The parrot: light sticker edge in dark mode. */
.mascot { display: block; height: auto; filter: var(--mascot-filter); }
.sparkle { position: absolute; z-index: 2; pointer-events: none; }

/* Holo frame without a wrapper (form fields): the gradient shows through a transparent
   border, so the field keeps its own shape and the native select arrow. */
.holo-field {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box;
}
select.holo-field { padding-right: 32px; background-color: var(--surface); }
/* The opened list of a select is drawn by the browser: without explicit colours it falls back
   to a white background while keeping the light text of the dark theme. */
select option, select optgroup { background-color: var(--surface); color: var(--text); }

.search-box .holo-inner { display: flex; gap: 6px; padding: 5px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; }
.search-box input:focus-visible { outline: none; }
.search-box.compact { border-radius: var(--radius); }
.search-box.compact .holo-inner { border-radius: calc(var(--radius) - 2px); padding: 0; }
.search-box.compact input { min-height: 40px; }
.search-box.large .holo-inner { padding: 6px; }
.search-box.large input { min-height: 50px; font-size: 1.06rem; }
.search-box.large button { min-height: 50px; padding: 0 24px; font-size: 1.05rem; border-radius: 11px; }

/* ---- Chips, tags and badges ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-current] { border-color: var(--accent); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; line-height: 1.5; padding: 1px 9px; border-radius: 7px; background: var(--surface-2); color: var(--text); }
.tag.code { background: var(--tag-code-bg); color: var(--tag-code-text); font-weight: 700; }
a.tag { text-decoration: none; }
a.tag:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.tag.outline { background: var(--surface); border: 1px solid var(--border); }
.tag.amazon { background: var(--accent-soft); color: var(--accent-soft-text); }

.badge { display: inline-block; font-size: 0.8rem; font-weight: 600; line-height: 1.5; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.badge.good { color: var(--good); background: var(--good-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }
/* "Gesichtet": something rare the parrot spotted (drops, met alerts, best offer). */
.badge.holo { color: #14233f; background: var(--holo-pastel); font-weight: 700; }
.badge.soft { color: var(--accent-soft-text); background: var(--accent-soft); }
.badge.gold { color: #14233f; background: var(--gold); font-weight: 700; }
.badge:has(> .head-badge) { display: inline-flex; align-items: center; gap: 5px; padding-left: 2px; }
.avail { font-weight: 600; }
.avail-in_stock, .avail-low_stock { color: var(--good); }
.avail-preorder { color: var(--warn); }
.avail-out_of_stock { color: var(--bad); }
.avail-unknown { color: var(--muted); }

/* ---- Prices ---- */
.price, .num, .figure { font-variant-numeric: tabular-nums; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.price.big { font-size: clamp(2.4rem, 2rem + 1.6vw, 3rem); line-height: 1.05; margin: 0.1rem 0; }
.price.muted { font-family: var(--font-text); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }

/* ---- Cards ---- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
.card p { margin: 0; }
.card .tags { margin: 6px 0 2px; }
.card-title { font-family: var(--font-text); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--link); text-decoration: underline; }
/* Language flag before product names: tells the editions apart in lists. */
.flag { display: inline-block; vertical-align: -1px; margin-right: 7px; border-radius: 2px; box-shadow: 0 0 0 1px var(--border-strong); }
h1 > .flag { width: 33px; height: 22px; vertical-align: 2px; margin-right: 12px; border-radius: 3px; }
.card .price { margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 6px 20px 18px; margin: 1rem 0; }
.panel h2 { margin: 0.9rem 0 0.5rem; font-size: 1.25rem; }

/* Product images: always contained in a light frame of fixed shape (no layout shift). */
.card-media, .product-media, .thumb { display: flex; align-items: center; justify-content: center; background: var(--media-bg); border-radius: 10px; overflow: hidden; }
.card-media { aspect-ratio: 4 / 3; margin-bottom: 6px; }
.product-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-img.placeholder { width: 38%; height: auto; }
.card-media:has(> .placeholder), .product-media:has(> .placeholder), .thumb:has(> .placeholder) { background: var(--placeholder-bg); }
.thumb { width: 56px; height: 56px; flex: none; }
.thumb .product-img.placeholder { width: 60%; }

/* ---- Lists with thumbnails (drops, restocks, releases) ---- */
.list-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px 6px; }
.list-card > h2, .list-card > h3 { margin: 0; }
.list-card > p { margin: 2px 0 8px; }
.list-card > .section-head { margin: 0 0 4px; }
.change-list { list-style: none; padding: 0; margin: 0; }
.change-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.change-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.change-text a { font-weight: 600; color: var(--text); text-decoration: none; }
.change-text a:hover { color: var(--link); text-decoration: underline; }
.change-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.change-price .price { font-size: 1.15rem; }
@media (max-width: 559px) {
  /* Narrow screens: the price moves below the name instead of squeezing it. */
  .change-list li { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; }
  .change-list .thumb { width: 48px; height: 48px; grid-row: span 2; }
  .change-list .change-price { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; text-align: left; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .card { padding: 10px; }
  .card .price { font-size: 1.15rem; }
}

/* ---- Segmented switch (comparison period) ---- */
.period-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 1rem; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 11px; }
.segmented a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 38px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.segmented a:hover { color: var(--text); }
.segmented a[aria-current] { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow-sm); }

/* ---- Tables: rows become stacked cards on small screens ---- */
.table-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-top: 1px solid var(--border); vertical-align: middle; }
thead th { border-top: 0; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
th { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
td.total { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
td.action { text-align: right; }
tr.unavailable td { color: var(--muted); }
tr.unavailable .button { opacity: 0.8; }
tr.is-best { background: var(--best-row); }

.more-marketplaces { margin-top: 8px; }
.more-marketplaces summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 8px 0; }
.more-marketplaces .market-list { margin-top: 8px; }
/* One slim box per marketplace below the price history. */
.market-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.market-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.market-row p { margin: 0; }
.market-row-name { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.market-row-price { color: var(--muted); }
.market-row-total { font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 599px) {
  .market-row .button { flex: 1 1 100%; }
}
/* Amazon partner link (Phase 24): a plain box, deliberately unlike the offers and the best price. */
.amazon-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.amazon-text { flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; }
.amazon-text p { margin: 0; }
@media (max-width: 599px) {
  .amazon-box .button { flex: 1 1 100%; }
}
/* Accessories (Phase 25): ad cards with a dashed border like the Amazon box, never like offers. */
.accessory-card { border-style: dashed; }
.accessory-card .card-title { font-size: 0.98rem; }
.accessory-card .fit-note { color: var(--muted); }
.accessory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 8px; }
.accessory-actions .button { flex: 1 1 auto; }
.ad-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 1rem 0; color: var(--muted); font-size: 0.92rem; }
.partner-note { color: var(--muted); margin-top: 0.75rem; }
.language-note { color: var(--warn); }
/* Shop logo next to the shop name: a light chip in both themes, since most logos are made for white. */
.shop-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.shop-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 32px; min-width: 32px; max-width: 108px; padding: 3px 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); vertical-align: middle; overflow: hidden; }
.shop-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 24px; }
.shop-logo.mono { padding: 0 6px; background: var(--surface-2); color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; }
.shop-logo.small { height: 26px; min-width: 26px; max-width: 88px; padding: 2px 5px; margin-right: 4px; }
.shop-logo.small img { max-height: 20px; }
.shop-logo.small.mono { font-size: 0.7rem; }

@media (max-width: 720px) {
  .table-box:has(> table.stack) { background: none; border: 0; border-radius: 0; overflow: visible; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 10px; padding: 8px 14px; }
  table.stack tr.is-best { border: 2px solid transparent; background: linear-gradient(var(--best-row), var(--best-row)) padding-box, var(--holo) border-box; }
  table.stack td { border: 0; padding: 3px 0; text-align: left; white-space: normal; }
  table.stack td[data-label]:not([data-label="Shop"]):not([data-label="Marktplatz"]):not([data-label="Produkt"])::before {
    content: attr(data-label) ": "; color: var(--muted); font-size: 0.875rem; font-family: var(--font-text); font-weight: 400;
  }
  table.stack td.action { padding: 8px 0 6px; }
  table.stack td.action .button { display: flex; width: 100%; }
}

/* ---- Price chart ---- */
/* The SVG plot stretches to the full width at a fixed height; the axes are HTML
   placed in percent of the plot, so their text keeps its size. */
.chart { margin: 0; --chart-height: 260px; }
.chart-grid { display: grid; grid-template-columns: auto auto 1fr 28px auto; grid-template-rows: var(--chart-height) 24px; column-gap: 8px; }
.chart .plot { position: relative; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.chart .axis { position: relative; color: var(--muted); font-size: 12px; font-family: var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart .axis span { position: absolute; line-height: 1; }
.chart .axis-price { min-width: 64px; }
.chart .axis-price span { right: 0; transform: translateY(-50%); }
.chart .axis-shops span { left: 0; transform: translateY(-50%); }
.chart .axis-time { grid-column: 3; align-self: end; height: 16px; }
.chart .axis-time span { transform: translateX(-50%); }
.chart .axis-time span:first-child { transform: none; }
.chart .axis-time span:last-child { transform: translateX(-100%); }
/* Vertical axis titles; the left one reads bottom to top. */
.chart .axis-title { writing-mode: vertical-rl; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; font-family: var(--font-text); white-space: nowrap; }
.chart .axis-title-price { grid-column: 1; transform: rotate(180deg); }
.chart .axis-title-shops { grid-column: 5; }
.chart .grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .hit { fill: transparent; }
.chart .bar { fill: var(--muted); opacity: 0.2; }
/* Zero-length paths with round caps and unscaled strokes stay round when the plot stretches. */
.chart .dot, .chart .dot-ring { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; }
.chart .dot-ring { stroke: var(--text); stroke-width: 11px; }
.chart .dot { stroke: var(--surface); stroke-width: 6px; }
.chart .day:hover .hit { fill: var(--muted); opacity: 0.08; }
.chart .day:hover .bar { opacity: 0.4; }
.chart .day:hover .dot, .chart .day:hover .dot-ring { opacity: 1; }
.chart .line { pointer-events: none; fill: none; stroke: url(#holo-line); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .h1 { stop-color: var(--holo-1); }
.chart .h2 { stop-color: var(--holo-2); }
.chart .h3 { stop-color: var(--holo-3); }
.chart .h4 { stop-color: var(--holo-4); }
@media (max-width: 559px) { .chart { --chart-height: 200px; } .chart .axis-price { min-width: 0; } }
.chart figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* ---- Navigation helpers ---- */
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 1.5rem 0; }
.pagination a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-weight: 600; text-decoration: none; }
/* Hub pages: numbers on wide screens, "Seite N von M" on phones (the links stay in the HTML). */
.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination .page-number { min-width: 44px; justify-content: center; padding: 0 10px; }
.pagination span.page-number { display: inline-flex; align-items: center; min-height: 44px; border: 2px solid var(--accent); border-radius: 10px; font-weight: 700; }
.page-gap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--muted); }
.pagination:has(.page-numbers) .page-status { display: none; }
@media (max-width: 720px) {
  .pagination { gap: 12px; justify-content: space-between; }
  .page-numbers { display: none; }
  .pagination:has(.page-numbers) .page-status { display: inline; }
}
.breadcrumbs { font-size: 0.875rem; margin-top: 1rem; color: var(--muted); }
.breadcrumbs a { display: inline-block; padding: 4px 0; }

/* ---- Messages and notices ---- */
.notice { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: var(--radius); }
.messages { list-style: none; padding: 0; margin: 1rem 0; }
.message { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 8px; }
.message.success { border-left-color: var(--good); }
.message.error { border-left-color: var(--bad); }

/* ---- Home page ---- */
/* Full-width sky band without leaving the .wrap column: the shadow paints the sides,
   clip-path keeps it from adding a horizontal scrollbar. */
.band { background: var(--hero-bg); box-shadow: 0 0 0 100vmax var(--hero-bg); clip-path: inset(0 -100vmax); border-bottom: 1px solid var(--hero-border); }
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 48px; padding: 2.25rem 0 2.5rem; }
.hero-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.03; letter-spacing: -0.03em; }
.eyebrow { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.eyebrow.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--text); letter-spacing: 0.05em; }
.eyebrow.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--holo); }
.lead { margin: 0; font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.hero .search-box { margin-top: 6px; max-width: 760px; }
/* The parrot stands behind the "Gesichtet" card: wings on its top edge, tail out on the right. */
.spotter { position: relative; flex: 1 1 300px; max-width: 360px; padding-top: 150px; }
.spotter .mascot { position: absolute; z-index: 0; top: 0; right: -76px; width: 380px; max-width: none; }
.spotter .sparkle-1 { left: -26px; top: 6px; }
.spotter .sparkle-2 { left: -6px; top: 84px; }
.spotter .sparkle-3 { right: -84px; top: 140px; }
.spotter.alone { padding-top: 0; min-height: 280px; }
.spotter.alone .mascot { position: static; width: 100%; max-width: 380px; margin-left: auto; }
@media (max-width: 1340px) {
  /* Less room right of the column: the tail stays inside the page. */
  .spotter .mascot { right: -28px; }
  .spotter .sparkle-3 { right: -24px; }
}
@media (max-width: 899px) {
  .spotter { max-width: none; flex-basis: 100%; padding-top: 112px; }
  .spotter .mascot { width: 240px; right: 0; }
  .spotter .sparkle-1 { left: auto; right: 220px; top: 4px; }
  .spotter .sparkle-2, .spotter .sparkle-3 { display: none; }
}
.top-drop { position: relative; z-index: 1; border-radius: 20px; }
.top-drop > .holo-inner { border-radius: 17px; overflow: hidden; }
.top-drop-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.top-drop .card-media { aspect-ratio: 16 / 9; margin: 0; border-radius: 12px; }
.top-drop .product-name { font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.top-drop .product-name:hover { color: var(--link); text-decoration: underline; }
.top-drop p { margin: 0; }
.top-drop .price { font-size: 1.9rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding: 0; font-size: 0.9rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { color: var(--good); flex: none; }
.section-head h2 .icon, .market-title .icon { vertical-align: -4px; margin-right: 8px; }

/* ---- Market page (all drops and restocks) ---- */
.band > .breadcrumbs { padding-top: 14px; margin-bottom: 0; }
/* The parrot stands on the band's lower edge and looks through its telescope at the headline. */
.market-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 32px; }
.market-hero-text { display: flex; flex-direction: column; gap: 14px; padding: 1.5rem 0 2.25rem; }
.market-hero h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.market-hero .mascot { width: 300px; margin-right: -8px; }
@media (max-width: 759px) {
  /* Narrow screens: heading full width, the parrot stands next to the lead. */
  .market-hero { display: block; position: relative; }
  .market-hero-text { padding: 1rem 0 1.5rem; }
  .market-hero .lead { padding-right: 150px; font-size: 1.02rem; }
  .market-hero .mascot { position: absolute; right: -12px; bottom: 0; width: 146px; margin: 0; }
}
.market-lists { margin-top: 1.75rem; }
/* Period switch, and on the home page the link to all market changes on the right. */
.market-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 1rem; }
.market-toolbar .period-switch { margin: 0; }
.market-toolbar .more { font-weight: 600; font-size: 0.95rem; }
.list-card h2 { font-size: 1.3rem; }
.list-card .count { display: inline-block; margin-left: 6px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-family: var(--font-text); font-size: 0.85rem; font-weight: 700; line-height: 1.7; vertical-align: 3px; letter-spacing: 0; }
.list-card .empty { margin: 4px 0 14px; }
.list-more { display: block; padding: 12px 0 10px; border-top: 1px solid var(--border); font-weight: 600; font-size: 0.95rem; }
.market-note { margin: 1.5rem 0 0; max-width: 80ch; }

/* "Am Horizont": upcoming sets on a navy panel (navy in both themes). */
.horizon { margin-top: 2.25rem; padding: 20px 22px 22px; border-radius: var(--radius-lg); background: #14233f; color: #ffffff; border: 1px solid var(--border); }
.horizon .section-head { margin: 0 0 14px; }
.horizon .section-head .small { display: block; color: #c3cee2; margin-top: 2px; }
.horizon a { color: #ffffff; }
.horizon .more { color: #f9cf6a; }
.release-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.release-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #1d2f52; }
.release-list .change-text a { color: #ffffff; }
.release-list .small { color: #c3cee2; }
.release-list .change-price { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; text-align: left; }
.release-list .price { font-size: 1.05rem; }
.release-date { grid-row: span 2; text-align: center; line-height: 1.1; padding: 6px 0; border-radius: 10px; background: var(--gold); color: #14233f; }
.release-date .day { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.release-date .month { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.release-date.open { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--gold); }
:root[data-theme="dark"] .horizon { background: var(--surface); }
:root[data-theme="dark"] .release-list li { background: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .horizon { background: var(--surface); }
  :root:not([data-theme="light"]) .release-list li { background: var(--surface-2); }
}

/* Price alert banner: the parrot stands on it and looks out over the top edge. */
.alarm-banner {
  position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 120px;
  padding: 40px 500px 40px 40px; border-radius: 22px; color: #ffffff;
  border: 4px solid transparent; background: linear-gradient(var(--banner-bg), var(--banner-bg)) padding-box, var(--holo-pastel) border-box;
  background-size: 100% 100%, 250% 250%; box-shadow: var(--lift);
  animation: holo-border 7s ease-in-out infinite alternate;
}
@keyframes holo-border { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 100% 50%; } }
.alarm-banner h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: #ffffff; }
.alarm-banner p { margin: 0; max-width: 56ch; color: #e6eefa; font-size: 1.05rem; }
.alarm-banner .button-group, .alarm-banner > .button { margin-top: 6px; }
.alarm-banner > .button { align-self: flex-start; }
.alarm-banner .button:not(.secondary) { background: var(--gold); color: #14233f; border: 2px solid #14233f; box-shadow: 0 4px 0 #14233f; }
.alarm-banner .button:not(.secondary):hover { background: #ffc94d; color: #14233f; }
.alarm-banner .button.secondary { color: #ffffff; border-color: #c3d7f2; }
.alarm-banner .button.secondary:hover { background: rgb(255 255 255 / 0.12); color: #ffffff; }
.alarm-banner .mascot {
  position: absolute; right: 32px; bottom: 14px; width: 440px;
  filter: var(--mascot-filter) drop-shadow(0 8px 10px rgb(10 20 40 / 0.3));
}
@media (max-width: 959px) {
  .alarm-banner { margin-top: 90px; padding: 110px 22px 24px; }
  .alarm-banner .mascot { width: 240px; right: 12px; bottom: auto; top: -84px; }
}
/* Empty "Meine Alarme": the banner in the narrower account column. */
.alerts-empty { margin-top: 1.5rem; padding: 36px 300px 36px 36px; }
.alerts-empty .mascot { width: 290px; right: 18px; bottom: 50%; transform: translateY(50%); }
@media (max-width: 959px) {
  .alerts-empty { margin-top: 100px; padding: 110px 22px 24px; }
  .alerts-empty .mascot { width: 240px; right: 12px; bottom: auto; top: -84px; transform: none; }
}
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-text); }

/* ---- Product page ---- */
.product-head { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; margin-top: 1rem; }
.product-figure { margin: 0; flex: 1 1 280px; max-width: 420px; }
.product-figure figcaption { margin-top: 4px; }
.product-media { aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius-lg); }
@media (max-width: 759px) { .product-media { aspect-ratio: 4 / 3; } }
.product-summary { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.product-summary h1 { margin: 0; }
.product-summary .meta { margin: 0; }
.best { margin: 0; }
.best .holo-inner { overflow: hidden; }
.best-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.best p { margin: 0; }
.price-bar p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-bar .badge { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 2px; font-size: 0.75rem; }
.best-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; }
.best-label { font-size: 0.9rem; font-weight: 600; color: var(--good); }
.best-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.9rem; }
.offers-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 2.25rem 0 0.75rem; }
.offers-head h2 { margin: 0; }
.offers-head p { margin: 0; }
/* Paged offer table: the stacked layout sets display on rows, so hidden needs its own rule. */
table.offers tr[hidden], .offer-pager[hidden] { display: none; }
.offer-pager { flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.offer-pager button { min-height: 44px; padding: 0 14px; }
.offer-pager .pager-number { min-width: 44px; padding: 0 10px; }
.offer-pager button:disabled { opacity: 0.45; cursor: default; }
.offer-pager button.secondary:disabled:hover { background: transparent; }
.offer-pager-status { order: 10; flex-basis: 100%; text-align: center; }
@media (max-width: 720px) {
  /* Prev, status, next in one row; page numbers would wrap on phones. */
  .offer-pager { flex-wrap: nowrap; justify-content: space-between; }
  .offer-pager .pager-number { display: none; }
  .offer-pager-status { order: 0; flex-basis: auto; }
}
.history { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-top: 2.25rem; }
.history h2 { margin: 0; }
.history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 8px; }

/* Price bar: sticks to the bottom while the product page scrolls (CSS only). */
.price-bar {
  position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px 14px;
  margin-top: 2rem; padding: 8px 10px 8px 8px; border-radius: var(--radius-lg);
  border: 3px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box;
  box-shadow: 0 10px 30px rgb(10 20 40 / 0.25);
}
.price-bar .price { font-size: 1.3rem; }
.price-bar .button { margin-left: auto; }
.price-bar .head-badge { width: 40px; height: 40px; padding: 2px; }
@media (max-width: 759px) {
  .price-bar {
    bottom: 0; margin: 1.5rem calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    border: 0; border-top: 3px solid transparent; border-radius: 0;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box; box-shadow: var(--shadow-bar);
  }
  .price-bar .price { font-size: 1.4rem; display: block; line-height: 1.2; }
  .price-bar .head-badge { display: none; }
  .has-price-bar .best-actions .shop-link { display: none; }
  .best-actions { margin-left: 0; width: 100%; }
  .best-actions .button { flex: 1 1 auto; }
}

/* ---- Search and category pages ---- */
/* The telescope parrot peeks over the filter panel and points at the heading. */
.page-head { position: relative; }
.page-head-text { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding-right: 340px; }
.page-head-text h1, .page-head-text .lead { margin: 0; }
/* Anchored to the text's bottom, so the cut wings (lowest ~15 %) hide behind the panel;
   tilted around the body so the telescope points up at the heading. */
.page-head .peek { position: absolute; z-index: 0; right: 28px; bottom: -20px; width: 360px; transform: rotate(-7deg); transform-origin: 80% 100%; }
/* Category pages: more text beside it, so the taller crop with the whole wings fits. */
.page-head .peek.tall { width: 340px; bottom: -30px; }
.page-head-text:has(> .peek.tall) { padding-right: 400px; }
@media (max-width: 899px) {
  .page-head-text:has(> .peek.tall) { padding-right: 0; min-height: 0; }
  .page-head .peek.tall { display: none; }
}
.page-head > .filters { position: relative; z-index: 1; }
.page-head .filters { margin-top: 10px; box-shadow: var(--lift); }
@media (max-width: 759px) {
  .page-head-text { padding-right: 0; min-height: 0; }
  .page-head .peek { display: none; }
}
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.filter-chips .chip { gap: 6px; min-height: 34px; background: var(--accent-soft); color: var(--accent-soft-text); border-color: transparent; font-weight: 600; }
.empty-search { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0 12px; }
.empty-search .mascot { width: 260px; }
.empty-search h2 { margin: 0; }
.empty-search p { margin: 0; color: var(--muted); }

/* ---- Set pages ---- */
.page-tags { margin-top: 1.25rem; }
.page-tags + h1 { margin-top: 0.5rem; }
.set-band { padding: 4px 0 28px; }
.set-band .breadcrumbs { margin-top: 0; padding-top: 16px; }
.set-band .tag.outline { background: var(--surface); }
.set-band h1 { margin: 0.5rem 0 1rem; }
.set-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.set-stat { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); line-height: 1.3; }
.set-stat.holo-field { border-width: 3px; padding-left: 10px; }
a.set-stat { color: var(--text); text-decoration: none; }
a.set-stat:hover { color: var(--text); box-shadow: var(--shadow-sm); }
.set-stat .eyebrow { font-size: 0.72rem; }
.set-stat .price { font-size: 1.2rem; }
.set-groups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); align-items: start; }
.set-list { list-style: none; margin: 0; padding: 0; }
.set-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.set-list li a { font-weight: 600; flex: 1 1 0; min-width: 0; color: var(--text); text-decoration: none; }
.set-list li a:hover { color: var(--link); text-decoration: underline; }
.set-list .tag.code { min-width: 52px; text-align: center; }
.list-card h2 .small { font-family: var(--font-text); font-weight: 400; letter-spacing: 0; }
.jump-nav { margin: 1rem 0 1.25rem; }
.jump-nav .chip { font-weight: 600; gap: 8px; }
.jump-nav .chip .small { font-weight: 500; }

/* ---- Account pages (/konto/) ---- */
.account-page { max-width: 820px; }
.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 1.5rem; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.account-user { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.account-user .small { overflow-wrap: anywhere; }
.empty-state { padding-top: 20px; }
.empty-state h2 { margin-top: 12px; }
.account-page > h1 { margin-top: 1.5rem; }
.account-nav { align-items: center; }
/* Divider between the account pages and "Abmelden". */
.nav-sep { width: 1px; height: 22px; margin: 0 6px; background: var(--border-strong); }
.account-nav a[aria-current] { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow-sm); }
.panel p { margin: 0.4rem 0; }
.back-link { display: inline-block; margin-top: 1rem; padding: 6px 0; font-weight: 600; font-size: 0.95rem; }
.back-link + h1 { margin-top: 0.5rem; }
/* Forms of allauth's manage pages (e-mail, password, Google) sit on a card. */
.account-page .stack-form { max-width: 600px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }

.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 1.5rem; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.avatar-large { width: 72px; height: 72px; font-size: 1.8rem; background: var(--holo-pastel); color: #14233f; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--holo-2); }
.profile-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-text p { margin: 0; }
.profile-email { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; overflow-wrap: anywhere; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
@media (max-width: 479px) { .stat-tiles { gap: 8px; } .stat-tile { padding: 12px; } .stat-value { font-size: 1.5rem; } }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; }
.stat-tile:hover { border-color: var(--accent); color: var(--text); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.stat-tile.spotted { position: relative; border: 3px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box; padding: 12px 16px; }
.stat-tile.spotted .head-badge { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; padding: 2px; }
@media (max-width: 479px) { .stat-tile.spotted .head-badge { display: none; } }
.settings { padding: 6px 22px 8px; }
.settings h2 { margin: 1rem 0 0.25rem; }
.settings-list { list-style: none; margin: 0; padding: 0; }
.settings-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--border); }
.settings-list li:first-child { border-top: 0; }
.settings-label { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.settings-label .small { font-weight: 400; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
.danger-zone h2 { color: var(--bad); }
.panel .button-group { margin: 12px 0 4px; }

/* Sign-in pages: one card, the form next to a blue panel the parrot stands on. */
.auth-shell { display: flex; justify-content: center; padding: 7rem 0 0.5rem; }
.auth-split { display: flex; flex-wrap: wrap; width: 100%; max-width: 980px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--lift); }
.auth-card { flex: 1 1 380px; min-width: 0; padding: 28px 24px 24px; }
@media (min-width: 520px) { .auth-card { padding: 36px 40px 32px; } }
.auth-card h1 { margin: 0 0 6px; font-size: 1.9rem; }
.auth-aside {
  position: relative; flex: 1 1 320px; min-width: 0; margin: 10px; padding: 150px 30px 30px; border-radius: 18px; color: #ffffff;
  border: 4px solid transparent; background: linear-gradient(var(--banner-bg), var(--banner-bg)) padding-box, var(--holo-pastel) border-box;
}
.auth-aside .mascot { position: absolute; right: 14px; top: -120px; width: 340px; max-width: calc(100% - 28px); filter: var(--mascot-filter) drop-shadow(0 8px 10px rgb(10 20 40 / 0.3)); }
.auth-aside h2 { margin: 0 0 14px; font-size: 1.7rem; color: #ffffff; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #e6eefa; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; }
.benefits .check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #14233f; border: 2px solid #14233f; }
@media (max-width: 759px) {
  .auth-shell { padding-top: 1.5rem; }
  .auth-aside { padding-top: 24px; margin-top: 90px; }
  /* Behind the panel, so the box overlaps the parrot; the card's own stacking context
     keeps it in front of the card background. */
  .auth-split { isolation: isolate; }
  .auth-aside .mascot { width: 220px; top: -96px; z-index: -1; }
}
.auth-card h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.auth-lead { margin: 0 0 20px; color: var(--muted); }
.auth-card .stack-form { max-width: none; margin: 0; }
.auth-card .messages { margin: 16px 0 0; }
.auth-social .provider-list { margin: 0; }
.auth-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.auth-note p { margin: 0; font-size: 0.8rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 0.875rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { margin: 18px 0 0; font-size: 0.9rem; text-align: center; }
button.block, .button.block { display: flex; width: 100%; min-height: 48px; font-size: 1.02rem; }

/* "Mit Google anmelden": colours, border and logo after Google's branding guidelines. */
.google-button {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px;
  background: #ffffff; color: #1f1f1f; border: 1px solid #747775; border-radius: 999px;
  font-family: "Roboto", var(--font-text); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.google-button:hover { background: #f2f2f2; color: #1f1f1f; border-color: #747775; box-shadow: 0 1px 3px rgb(60 64 67 / 0.3); }
.google-g { flex: none; }
:root[data-theme="dark"] .google-button { background: #131314; color: #e3e3e3; border-color: #8e918f; }
:root[data-theme="dark"] .google-button:hover { background: #1f1f20; color: #e3e3e3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .google-button { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  :root:not([data-theme="light"]) .google-button:hover { background: #1f1f20; color: #e3e3e3; }
}

.stack-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; margin: 1rem 0; }
.stack-form .field input:not([type="checkbox"]):not([type="radio"]), .stack-form .field select, .stack-form .field textarea { width: 100%; }
.stack-form .field.check { align-items: flex-start; min-height: auto; gap: 10px; }
.stack-form .field.check input { flex: none; margin-top: 3px; }
.form-actions, .button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button-group form { margin: 0; }
.form-errors, .errorlist { color: var(--bad); font-size: 0.9rem; }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; }
.help ul { margin: 4px 0; padding-left: 1.2rem; }
.provider-list { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-direction: column; gap: 8px; }
.stack-form .field input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.form-errors ul, .form-errors .errorlist { margin: 0; }
/* Honeypot of the signup form: off screen for people, still filled in by bots. */
.field.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Price alerts: form and list */
.account-page > .section-head { margin: 1.5rem 0 0.75rem; }
.account-page > .section-head h1 { margin: 0; }
.product-name { font-weight: 600; color: var(--text); text-decoration: none; }
.product-name:hover { color: var(--link); text-decoration: underline; }
.alert-product { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.alert-product .thumb { width: 64px; height: 64px; }
.alert-product-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.alert-product-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: 1 1 200px; }
.alert-form { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; max-width: none; }
.alert-form > p { margin: 0; }
.input-affix { display: flex; align-items: center; max-width: 240px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.input-affix:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.input-affix input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.15rem; font-family: var(--font-display); font-weight: 600; }
.input-affix input:focus-visible { outline: none; }
.input-affix > span { padding: 0 14px 0 4px; color: var(--muted); font-weight: 600; }
.option-list { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 2px; }
.option-list legend { padding: 0; margin-bottom: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.option { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.option input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); }
.option label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option .form-errors { grid-column: 2; }

.alert-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alert-card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.alert-card.paused { opacity: 0.7; }
/* A met alert: the parrot spotted the price. */
.alert-card.met { border: 3px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box; box-shadow: var(--lift); padding: 12px 14px; }
.alerts-head { position: relative; }
.alerts-head .section-head { margin: 1.5rem 0 0.25rem; }
.alerts-head .section-head h1 { margin: 0; }
.alerts-head > p { margin: 0; max-width: calc(100% - 300px); }
/* Tall crop: the whole head stands above the first alert card, only the cut wings
   (lower ~30 % of the picture) hide behind it. */
.alerts-head .peek { position: absolute; right: 16px; bottom: -74px; width: 260px; z-index: 0; }
.alerts-head + .alert-list { position: relative; z-index: 1; margin-top: 34px; }
@media (max-width: 639px) {
  .alerts-head > p { max-width: none; }
  .alerts-head .peek { display: none; }
  .alerts-head + .alert-list { margin-top: 0.75rem; }
}
.alert-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alert-card-offer { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.alert-card-offer .price { font-size: 1.15rem; }
.alert-card-status { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.alert-card-actions { grid-column: 3; justify-content: flex-end; }
.alert-card-actions .button, .alert-card-actions button { min-height: 38px; padding: 4px 14px; font-size: 0.9rem; }
@media (max-width: 639px) {
  .alert-card { grid-template-columns: 48px minmax(0, 1fr); }
  .alert-card .thumb { width: 48px; height: 48px; }
  .alert-card-offer { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; text-align: left; }
  .alert-card-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---- Utilities ---- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.3rem; }
/* Landing pages: guide text and links to related hubs below the product list. */
.hub-text { margin-top: 48px; }
.hub-overview { margin-top: 48px; }
.hub-overview h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hub-sets { padding-left: 1.2em; }
.hub-sets li { margin-bottom: 4px; }
.hub-text h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hub-subnav { margin: 16px 0 8px; }
.hub-links { margin-top: 40px; }
.hub-links .chips { margin-bottom: 12px; }
/* Product and set pages: text from our own data and related products. */
.set-intro { max-width: 70ch; margin: 0 0 24px; color: var(--muted); }
.about { margin-top: 2.25rem; max-width: 70ch; }
.related { margin-top: 2.25rem; }
.small { font-size: 0.875rem; color: var(--muted); }
.muted { color: var(--muted); }
.meta { color: var(--muted); margin: 0.25rem 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
