/*
 * Cardheist design system v2 — port af claude.ai/design-prototypen
 * "Cardheist redesign inspiration" (sept. 2026, se DESIGN.md).
 *
 * Lyst tema som standard, mørkt tema via [data-theme="dark"] (brugervalg,
 * cookie ch_theme) eller prefers-color-scheme når intet valg er truffet.
 * Alle farver bor i tokens; komponenter må aldrig hardcode oklch/hex.
 *
 * Google Fonts loades fra <head> i layout via preconnect + preload-trick.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Selv-hostede fonte (OFL) — variable woff2 fra Google Fonts v17/v24, latin + latin-ext.
   Erstatter fonts.googleapis-kæden (preconnect → CSS → gstatic), som Lighthouse
   regnede ind i FCP/LCP-stien (~1 s simuleret på slow-4G). display: swap. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/dm-sans-latin-ext-149277ba.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: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/dm-sans-latin-c3a50c50.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: 'JetBrains Mono'; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/jetbrains-mono-latin-ext-cc1590e8.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: 'JetBrains Mono'; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/jetbrains-mono-latin-8a992d39.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; }

:root {
  color-scheme: light;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --bg: #f4f5f9;
  --bg-2: #eceef4;
  --surface: #ffffff;
  --surface-2: #f2f3f7;
  --border: #e3e6ee;
  --border-2: #cdd2de;
  --ink: #0f1424;
  --muted: #4b5468;
  --faint: #646d84; /* 4.7:1 på --bg — 11-13px-tekst kræver ≥4.5 */

  --accent: #2352e3;
  --accent-h: #1a42c4;
  --accent-soft: #e7edfd;
  --accent-ink: #ffffff;

  --success: #15803d;
  --success-soft: #e6f6ec;
  --success-on-soft: #106631; /* ≥4.5:1 på --accent-soft (in-stock i .best-rækker) */
  --danger: #d32020; /* 4.8:1 på --bg */
  --danger-soft: #fdeaea;
  --danger-ink: #ffffff; /* tekst oven på --danger-flader (badge-off, deal-save) */
  --warn: #b45309;
  --warn-soft: #fdf1e0;

  --shadow-sm: 0 1px 2px rgba(15, 20, 36, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 20, 36, 0.08);
  --shadow-lg: 0 18px 44px rgba(15, 20, 36, 0.14);

  /* Bagudkompatible aliaser — ældre views bruger --gold som accent. */
  --gold: var(--accent);
  --gold-h: var(--accent-h);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1220;
  --bg-2: #141830;
  --surface: #191e33;
  --surface-2: #232946;
  --border: #2a3150;
  --border-2: #3b4467;
  --ink: #f2f4fa;
  --muted: #b4bacd;
  --faint: #939bb1; /* 5.1:1 på --surface-2 */

  --accent: #6b8dff;
  --accent-h: #88a4ff;
  --accent-soft: #1d2a57;
  --accent-ink: #0b1130;

  --success: #4ade80;
  --success-soft: #133524;
  --success-on-soft: #4ade80;
  --danger: #f87171;
  --danger-soft: #3d1a1a;
  --danger-ink: #0f1220; /* hvid på #f87171 er kun 2.8:1 */
  --warn: #fbbf24;
  --warn-soft: #3b2a0c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1220;
    --bg-2: #141830;
    --surface: #191e33;
    --surface-2: #232946;
    --border: #2a3150;
    --border-2: #3b4467;
    --ink: #f2f4fa;
    --muted: #b4bacd;
    --faint: #939bb1; /* 5.1:1 på --surface-2 */
    --accent: #6b8dff;
    --accent-h: #88a4ff;
    --accent-soft: #1d2a57;
    --accent-ink: #0b1130;
    --success: #4ade80;
    --success-soft: #133524;
    --success-on-soft: #4ade80;
    --danger: #f87171;
    --danger-soft: #3d1a1a;
    --danger-ink: #0f1220; /* hvid på #f87171 er kun 2.8:1 */
    --warn: #fbbf24;
    --warn-soft: #3b2a0c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
  }
}

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
img { max-width: 100%; }

/* Typografi ------------------------------------------------------------- */
.display { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.025em; }
.mono { font-family: var(--font-mono); }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.price { font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.01em; }
.price-old { font-family: var(--font-mono); color: var(--faint); text-decoration: line-through; font-weight: 500; }
.h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: 15px; color: var(--muted); line-height: 1.55; }
.holo { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.text-accent { color: var(--accent); }
/* Links inde i brødtekst må ikke kun skille sig ud på farve (a11y link-in-text-block). */
a.text-accent { text-decoration: underline; text-underline-offset: 2px; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* Layout ----------------------------------------------------------------- */
.page-wrap { max-width: 1480px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 767px) { .page-wrap { padding: 0 14px; } }

.section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.section-link { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 13px; flex-wrap: wrap; padding-top: 14px; color: var(--faint); }
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 1023px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Kort & flader ---------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.card-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.card-tile:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-md); }

/* Knapper ---------------------------------------------------------------- */
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 10px;
  transition: background .15s, transform .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-2);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }

.btn-dark {
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-dark:hover { opacity: 0.9; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 34px; min-width: 34px; padding: 0 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}
.icon-btn:hover { background: var(--surface-2); }
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
}

/* Chips & badges --------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-family: var(--font-mono); font-size: 11px; color: var(--faint); font-weight: 600; }
.chip.active .n { color: var(--bg); opacity: 0.7; }
.chip.dashed { border-style: dashed; color: var(--muted); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--muted);
}

.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 6px; line-height: 1.2; text-transform: uppercase;
}
.badge-new { background: var(--accent); color: var(--accent-ink); }
.badge-off { background: var(--danger); color: var(--danger-ink); }
.badge-pre { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }
.badge-edition {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  gap: 5px; text-transform: none;
}
.badge-edition::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge-edition.ja::before { background: var(--danger); }
.badge-edition.ko::before { background: var(--warn); }
.badge-edition.zh::before { background: var(--success); }
/* Spil-badge: ink-tekst + farvet prik — spilfarverne (fx Pokémon-orange) er under 3:1 som tekst på lys flade. */
.badge-game { border: 1px solid var(--g-accent, var(--accent)); color: var(--ink); background: transparent; gap: 5px; }
.badge-game::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g-accent, var(--accent)); flex-shrink: 0; }

.stock { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--success); }
.stock.pre { color: var(--warn); }
.stock.out { color: var(--faint); }

/* Formularer ------------------------------------------------------------- */
.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }
.select { appearance: auto; }
.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; font-size: 13px; }
.check input { accent-color: var(--accent); }
.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 13px; border: 1px solid; }
.flash-alert { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.flash-notice { background: var(--success-soft); border-color: var(--success); color: var(--success); }

/* Switch (toggle) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 36px; height: 20px; border-radius: 999px; background: var(--border-2); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-container {
  display: flex; align-items: center; gap: 16px;
  height: 58px; max-width: 1480px; margin: 0 auto; padding: 0 32px;
}
@media (max-width: 767px) { .header-container { padding: 0 14px; gap: 8px; } }
@media (max-width: 479px) {
  /* Smalle telefoner (360-414px): logo + hjerte + login + region + tema skal stå på én linje uden overflow. */
  .header-container { padding: 0 8px; gap: 6px; }
  .header-right { gap: 3px; }
  .header-right .icon-btn { min-width: 30px; height: 30px; padding: 0 5px; }
  .header-right .btn-dark { padding: 7px 9px; font-size: 12px; }
  .region-btn { padding: 6px 6px; gap: 3px; }
  .brand-word { font-size: 17px; }
  .brand { gap: 7px; }
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-word { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.brand-word span { color: var(--accent); }
.header-search { flex: 1; max-width: 520px; min-width: 160px; }
.header-search .input { padding: 8px 12px 8px 36px; font-size: 13.5px; background: var(--surface-2); border-color: var(--border); }
.header-search .input:focus { background: var(--surface); }
.header-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.header-search .scope { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 10px; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 5px; pointer-events: none; }
.header-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.region-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; cursor: pointer;
}
.region-btn:hover { border-color: var(--border-2); }
.theme-toggle { color: var(--muted); }
.theme-toggle .sun, .theme-toggle .moon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .moon { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .sun { display: block; }
}
@media (max-width: 899px) {
  .header-search, .header-signin-label { display: none !important; }
}

/* Game bar ----------------------------------------------------------------- */
.game-bar { border-bottom: 1px solid var(--border); background: var(--surface); }
.game-bar-inner {
  display: flex; align-items: center; gap: 2px;
  max-width: 1480px; margin: 0 auto; padding: 0 32px; height: 42px;
  overflow-x: auto; scrollbar-width: none;
}
.game-bar-inner::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .game-bar-inner { padding: 0 14px; } }
.game-scope {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; color: var(--ink); text-decoration: none;
  padding: 6px 10px 6px 0; margin-right: 6px; border-right: 1px solid var(--border); white-space: nowrap;
}
.game-scope .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--g-accent, var(--ink)); }
.game-bar a.nav-item {
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.game-bar a.nav-item:hover { color: var(--ink); background: var(--surface-2); }
.game-bar a.nav-item.active { color: var(--accent); background: var(--accent-soft); }
.game-bar .switch-link {
  margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; padding-left: 12px;
}
.game-bar .switch-link:hover { color: var(--ink); }

/* Mobil-bundbar ---------------------------------------------------------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 7px; font-size: 10.5px; font-weight: 700; color: var(--faint); text-decoration: none;
}
.mobile-bar a.active { color: var(--accent); }
.mobile-bar svg { width: 20px; height: 20px; }
@media (max-width: 899px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 64px; }
}

/* Hero-søgning ------------------------------------------------------------ */
.hero-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 14px;
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow-md);
  max-width: 680px;
}
.hero-search .input { border: none; box-shadow: none; padding: 10px 4px; font-size: 16px; background: transparent; }
.hero-search .btn-primary { padding: 12px 20px; font-size: 14px; flex-shrink: 0; }
.hero-search svg { color: var(--faint); flex-shrink: 0; }
@media (max-width: 559px) {
  .hero-search { padding: 4px 4px 4px 12px; }
  .hero-search .btn-primary { padding: 10px 12px; font-size: 13px; }
}
.jump-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Produktkort ------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
@media (max-width: 559px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.product-grid > a { min-width: 0; }

.product-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px; text-decoration: none; color: inherit; position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-md); }
.product-card .art { position: relative; border-radius: 10px; overflow: hidden; }
.product-card .art .overlay-tl { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; z-index: 2; }
.product-card .art .overlay-tr { position: absolute; top: 6px; right: 6px; z-index: 2; }
.product-card .art .overlay-bl { position: absolute; bottom: 8px; left: 8px; z-index: 2; }
.product-card .type { margin-top: 10px; }
.product-card .name {
  font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-top: 3px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.product-card .price { font-size: 16px; }
.product-card .price-old { font-size: 11px; margin-left: 4px; }
.heart-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; text-decoration: none; box-shadow: var(--shadow-sm);
}
.heart-btn:hover { border-color: var(--danger); color: var(--danger); }
.heart-btn.on { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.heart-form { display: inline; margin: 0; }

/* Pack-shape (gradient-fallback bag produktbilleder) ---------------------- */
.pack-shape {
  aspect-ratio: 0.62;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pack-shape::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 45%, transparent 55%),
    repeating-linear-gradient(45deg, transparent 0, transparent 4px, rgba(255, 255, 255, 0.04) 4px, rgba(255, 255, 255, 0.04) 5px);
  pointer-events: none;
}
.pack-foil {
  position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%);
  width: 60%; height: 15%; border-radius: 3px;
  background: linear-gradient(115deg, rgba(255,255,255,0.55), rgba(255,255,255,0.9), rgba(255,255,255,0.55));
}
.pack-label {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  text-align: center; color: white; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); pointer-events: none;
}
.pack-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface); border-radius: 8px; padding: 6px; }

/* Spil-fliser (picker) ---------------------------------------------------- */
.picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1023px) { .picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 479px)  { .picker-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.game-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: var(--shadow-sm);
}
.game-tile:hover { transform: translateY(-4px); border-color: var(--g-accent, var(--accent)); box-shadow: var(--shadow-md); }
.game-tile .banner { height: 56px; border-radius: 10px; background: linear-gradient(120deg, var(--c1), var(--c2)); margin-bottom: 14px; }
.game-tile .name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.game-tile .tagline { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.game-tile .stats { display: flex; gap: 14px; margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.game-tile .stats .in { color: var(--success); }
.game-tile.compact { padding: 10px 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; }
.game-tile.compact .swatch { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(120deg, var(--c1), var(--c2)); }
.game-tile.compact .name { font-size: 13px; font-weight: 700; }

/* Serie-/sæt-fliser -------------------------------------------------------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 559px) { .set-grid { grid-template-columns: minmax(0, 1fr); } }
.set-tile {
  display: flex; align-items: center; gap: 12px; padding: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.set-tile:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.set-code {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  letter-spacing: 0.02em; overflow: hidden; text-align: center; line-height: 1.1; padding: 2px;
}
.set-code.lg { width: 72px; height: 72px; border-radius: 14px; font-size: 13px; }
.set-tile .name { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-tile .meta { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.era-head { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; }
.era-head:first-child { margin-top: 0; }
.era-head .line { flex: 1; height: 1px; background: var(--border); }
.era-head .years { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* Udgivelses-tidslinje (game home / new) ---------------------------------- */
.timeline { position: relative; }
.timeline-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 20px 0 22px; position: relative; }
.timeline-group + .timeline-group { border-top: 1px solid var(--border); }
@media (max-width: 1023px) { .timeline-group { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.timeline-meta { display: flex; flex-direction: column; gap: 4px; }
.timeline-meta .label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.timeline-meta .label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline-meta .label.past { color: var(--faint); }
.timeline-meta .label.past::before { background: var(--border-2); }
.timeline-meta .set-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.timeline-meta .set-name:hover { color: var(--accent); }
.timeline-meta .set-sub { font-size: 12.5px; color: var(--faint); }
.timeline-meta .set-stock { font-family: var(--font-mono); font-size: 11.5px; color: var(--success); }
.more-tile {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed var(--border-2); border-radius: 14px; padding: 20px; min-height: 140px;
  font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none;
}
.more-tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.preorder-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 8px;
}
.preorder-strip .set-code-sm { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

/* Deal-rækker (liste) ------------------------------------------------------ */
.deal-list { display: flex; flex-direction: column; gap: 10px; }
.deal-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.deal-row:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.deal-row .name { font-size: 14.5px; font-weight: 700; }
.deal-row .sub { font-size: 12px; color: var(--faint); margin-top: 2px; }
.deal-row .price { font-size: 18px; }
.deal-row .save { display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--danger-ink); background: var(--danger); padding: 3px 8px; border-radius: 6px; margin-top: 4px; }
@media (max-width: 767px) {
  .deal-row { grid-template-columns: 48px minmax(0, 1fr); row-gap: 8px; }
  .deal-row > :nth-child(3) { grid-column: 2; }
  .deal-row > :nth-child(4) { grid-column: 1 / -1; }
}

/* Produktside ---------------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
@media (max-width: 1023px) { .product-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.product-hero-art {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--c1, #fcd34d), var(--c2, #dc2626));
  display: flex; align-items: center; justify-content: center;
}
.product-hero-art img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.25)); }
.product-hero-art .credit { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 10px; color: #fff; background: rgba(0,0,0,0.55); padding: 4px 8px; border-radius: 6px; }
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.buy-cta { width: 100%; padding: 13px 18px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.buy-cta .price { font-size: 15px; }
.action-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.action-row > * { width: 100%; }
@media (max-width: 559px) { .action-row { grid-template-columns: minmax(0, 1fr); } }
.action-row .btn-ghost, .action-row button, .action-row a { padding: 10px 12px; font-size: 13px; }
.specs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.specs-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.specs-grid .v { font-size: 15px; font-weight: 700; }
.specs-grid .k { font-family: var(--font-mono); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
@media (max-width: 559px) { .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.score-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; position: relative; }
.score-ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--border) 0); flex-shrink: 0; }
.score-ring span { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.score-card .tier { font-size: 13px; font-weight: 800; color: var(--warn); }
.score-card .lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.score-card details { position: static; }
.score-card summary { list-style: none; cursor: pointer; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.score-card summary::-webkit-details-marker { display: none; }
.score-card .explain { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(320px, 90vw); background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-lg); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.score-card .explain b { color: var(--ink); }
.score-chip { font-size: 10.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; }

.retailer-row { display: grid; grid-template-columns: 52px minmax(0, 1.4fr) minmax(0, 0.8fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; }
@media (max-width: 767px) {
  .retailer-row { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 8px; padding: 12px; }
  .retailer-row > :nth-child(3) { grid-column: 2 / 4; }
  .retailer-row > :nth-child(4) { grid-column: 1 / 3; text-align: left !important; }
  .retailer-row > :nth-child(5) { grid-column: 3 / 4; grid-row: 3 / 4; align-self: end; }
}
.retailer-row.unavailable .retailer-logo { filter: grayscale(1); } /* ikke opacity — bogstav-fallback skal holde kontrast */
/* Accent-soft-flader: --faint (4.4:1) og --success (4.3:1) klarer ikke 4.5:1 → løft til muted/success-on-soft. */
.retailer-row.best, .stat-tiles > div.now { background: var(--accent-soft); --faint: var(--muted); --success: var(--success-on-soft); }
.retailer-logo { width: 44px; height: 32px; border-radius: 7px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; overflow: hidden; }
.retailer-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.stat-tiles > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.stat-tiles .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.stat-tiles .v { font-family: var(--font-mono); font-weight: 700; font-size: 14px; margin-top: 2px; }
.stat-tiles > div.now .v { color: var(--accent); }
@media (max-width: 559px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.edition-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.edition-chip.current { border-color: var(--accent); color: var(--accent); }
.edition-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.edition-chip .p { font-family: var(--font-mono); color: var(--muted); font-weight: 600; }

/* FAQ / SEO-tekst ---------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-list details { border-bottom: 1px solid var(--border); padding: 0 16px; }
.faq-list details:last-child { border-bottom: none; }
.faq-list summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { color: var(--faint); font-size: 18px; font-weight: 400; transition: transform .15s; }
.faq-list details[open] summary .plus { transform: rotate(45deg); }
.faq-list details p { font-size: 13.5px; color: var(--muted); line-height: 1.6; padding: 0 0 14px; }
.prose p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.prose h2 { font-size: 20px; font-weight: 800; margin: 28px 0 10px; letter-spacing: -0.02em; }
.prose h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 14px 0 4px; }

/* Tabs (Stimulus) ------------------------------------------------------------ */
[data-tabs-target="tab"] {
  padding: 10px 16px; border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
[data-tabs-target="tab"][data-active="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs-row { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
@media (max-width: 767px) {
  .tabs-row { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .tabs-row::-webkit-scrollbar { display: none; }
  .tabs-row [data-tabs-target="tab"] { flex: 0 0 auto; }
}

/* Søgning / browse ----------------------------------------------------------- */
.search-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
@media (max-width: 1023px) { .search-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.filters { position: sticky; top: 116px; }
@media (max-width: 1023px) { .filters { position: static; } }
.filter-group { margin-bottom: 18px; }
.filter-group .kicker { margin-bottom: 8px; display: block; }
.filter-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; cursor: pointer; text-decoration: none; color: var(--ink); }
.filter-row .n { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.filter-row .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.filter-row.active { font-weight: 700; color: var(--accent); }
.results-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head .count { font-size: 14px; color: var(--muted); }
.results-head .count b { color: var(--ink); font-family: var(--font-mono); }
.results-head .sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.results-head select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); font-size: 13px; color: var(--ink); }

/* Autocomplete --------------------------------------------------------------- */
.ac-field { position: relative; }
.ac-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; }
.ac-box {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 380px; overflow-y: auto;
}
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--border); }
.ac-item:last-child { border-bottom: none; }
.ac-item.ac-active, .ac-item:hover { background: var(--surface-2); }
.ac-thumb { width: 34px; height: 48px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.ac-meta { display: flex; flex-direction: column; min-width: 0; }
.ac-name { font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sub { font-size: 11px; color: var(--faint); margin-top: 2px; }

/* Region-dropdown ------------------------------------------------------------ */
.region-dropdown { box-shadow: var(--shadow-lg); }
@media (max-width: 559px) {
  .region-dropdown { position: fixed !important; top: auto !important; bottom: 74px !important; left: 14px !important; right: 14px !important; width: auto !important; }
}

/* Footer --------------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 56px; padding: 36px 0 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 28px; max-width: 1480px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 559px)  { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 0 14px; } }
.footer-grid .kicker { margin-bottom: 10px; display: block; color: var(--ink); }
.footer-grid a, .footer-grid button { display: block; font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 0; background: transparent; border: none; cursor: pointer; text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--ink); }
.footer-bottom { max-width: 1480px; margin: 24px auto 0; padding: 16px 32px 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--faint); }
@media (max-width: 559px) { .footer-bottom { padding: 16px 14px 0; } }
.social-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.social-icon-link:hover { color: var(--accent); border-color: var(--accent); }

/* Diverse -------------------------------------------------------------------- */
.scroll-x { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
/* Paint-budget på mobil (Lighthouse 4× CPU): off-screen kort/rækker springer
   layout + raster over. Deals (200 rækker m. gradient-fliser), søgning (48 kort m.
   pack-gradienter + billeder) og forsiden (100+ set-tiles) gav FCP ~1,4 s, mens
   produktsiden (få elementer) lå på 0,3 s. contain-intrinsic-size holder scroll-
   højden stabil, indtil elementet rendres. */
.product-card, .deal-row, .set-tile, .card-tile { content-visibility: auto; }
.product-card { contain-intrinsic-size: auto 320px; }
.deal-row { contain-intrinsic-size: auto 112px; }
.set-tile { contain-intrinsic-size: auto 66px; }
.card-tile { contain-intrinsic-size: auto 300px; }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Ingen indgangs-animation på initial load: opacity 0 → 1 udskyder LCP (H1) med
   animationens længde på hver sidevisning. Animationen kører kun ved Turbo-
   navigation (body får data-turbo-preview/visited-markering via Turbo). */
html[data-turbo-visited] .fade-in { animation: fade-in .35s ease-out; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 559px) { .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
@media (max-width: 559px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.series-grid > a, .category-grid > a { min-width: 0; }
.tcg-grid { display: grid; gap: 10px; }
@media (max-width: 767px) { .tcg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.featured-tile { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 28px; align-items: center; }
@media (max-width: 767px) { .featured-tile { grid-template-columns: minmax(0, 1fr); gap: 16px; } .featured-tile > :first-child { justify-self: center; } }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { font-size: 13px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); text-decoration: none; background: var(--surface); min-width: 38px; text-align: center; }
.pagination span[aria-current] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.pagination span.disabled { color: var(--faint); } /* ingen opacity — 13px-tekst skal holde 4.5:1 */
@media (max-width: 767px) {
  a.btn-primary, a.btn-ghost, button.btn-primary, button.btn-ghost { min-height: 44px; }
}
.narrow { max-width: 720px; margin: 0 auto; padding: 48px 32px 32px; }
@media (max-width: 767px) { .narrow { padding: 32px 14px 24px; } }
.auth-box { max-width: 440px; margin: 0 auto; padding: 48px 24px 32px; }
.auth-box .input { margin-bottom: 14px; }

/* Guides (redesign 09-2026) — artikel-krop oven på .prose ---------------------- */
.guide-body p, .guide-body li { font-size: 16px; color: var(--ink); line-height: 1.7; }
.guide-body p { margin-bottom: 16px; }
.guide-body h2 { font-size: 24px; margin-top: 36px; }
.guide-body h3 { font-size: 17px; margin-top: 22px; margin-bottom: 8px; }
.guide-body ul, .guide-body ol { padding-left: 22px; margin-bottom: 16px; }
.guide-body li { margin-bottom: 6px; }
.guide-body p a, .guide-body li a, .guide-body td a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.guide-body p a:hover, .guide-body li a:hover, .guide-body td a:hover { color: var(--accent-h); }
.guide-body img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); margin: 8px 0 16px; }
.guide-body blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 16px 0; color: var(--muted); }
.guide-body pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; margin-bottom: 16px; }
.guide-body table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.guide-body th, .guide-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide-body th { background: var(--surface-2); font-weight: 700; }
