/*
 * Miniheist design system — "forged grimdark" (Claude Design MINIHEIST.dc.html).
 * Obsidian/gunmetal base, weathered-brass framing, molten-ember orange reserved
 * for prices/discounts/CTAs, oxidized-verdigris teal as subtle secondary.
 * Deliberately distinct from the gold-lane siblings (brickheist/cardheist).
 *
 * Display = Saira Condensed (industrial grotesque), body = IBM Plex Sans,
 * labels = IBM Plex Mono. Fonts loades fra <head> i layout via preconnect +
 * preload-trick, så CSS-parsing ikke blokeres på font-CSS-discovery.
 */

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

:root {
  --bg: #0e0f12;            /* obsidian base */
  --bg-2: #101217;          /* lifted base */
  --surface: #15171c;       /* gunmetal panel */
  --surface-2: #1a1e25;     /* lifted / forged-steel panel */
  --border: #23272f;
  --border-2: #2c3038;
  --ink: #e7e3da;           /* warm cream */
  --muted: #9aa0a8;
  --faint: #7e848c;
  --gold: #b08d57;          /* weathered brass — primary framing accent */
  --gold-h: #c9a877;        /* lit brass */
  --brass-dim: #5e4d32;     /* dim brass — frame/hover borders */
  --ember: #ff6a2b;         /* molten ember — prices, discounts, CTA */
  --ember-h: #ff7e44;       /* forge glow */
  --ember-ink: #160a03;     /* dark ink on ember surfaces */
  --teal: #5fae8f;          /* oxidized verdigris — secondary signal */
}

html, body { height: 100%; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(255, 106, 43, 0.06), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 0%, rgba(176, 141, 87, 0.05), transparent 65%);
}

::selection { background: rgba(255, 106, 43, 0.32); color: #fff; }

/* Industrial condensed display face. Uppercase + tight tracking is the
   forged-grimdark signature; weight is left to inline styles. */
.display {
  font-family: 'Saira Condensed', sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Monospace label/eyebrow utility (mil-spec stencil feel). */
.mono { font-family: 'IBM Plex Mono', monospace; }

/* Brand wordmark accent — solid weathered brass (no rainbow holo here;
   that gradient is the siblings' lane). Class name kept for markup parity. */
.holo {
  color: var(--gold);
  background: none;
  -webkit-text-fill-color: var(--gold);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  animation: none;
}

.card-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: transform .2s ease, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.card-tile:hover {
  transform: translateY(-4px);
  border-color: var(--brass-dim);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 1px var(--brass-dim), 0 12px 46px rgba(255, 106, 43, .1);
}

/* Primary action = molten ember. Sharp, forged, Saira-condensed uppercase. */
/* Default-padding: de fleste brug sætter egen inline padding (vinder), men en
   knap uden stod som et tæt tekst-label (wishlist-CTA'erne, crawl 11-10-2026). */
.btn-primary {
  padding: 11px 22px;
  background: var(--ember);
  color: var(--ember-ink);
  border: none;
  cursor: pointer;
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 8px 26px rgba(255, 106, 43, .24);
  transition: background .15s, transform .15s;
}
.btn-primary:hover {
  background: var(--ember-h);
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 11px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-2);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 3px;
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--brass-dim);
  color: #f2efe7;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 3px;
  background: rgba(176, 141, 87, 0.07);
  border: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-h);
}

.pack-shape {
  aspect-ratio: 0.62;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.4);
}
.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,
    var(--gold),
    #e2c690,
    var(--gold));
}
.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;
}

.game-tile {
  position: relative;
  cursor: pointer;
  padding: 28px 20px 22px;
  border-radius: 4px;
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s, border-color .25s, background .25s;
  overflow: hidden;
  text-decoration: none;
  display: block;
  font-family: inherit;
  text-align: center;
  color: inherit;
  width: 100%;
}
.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, var(--accent-glow), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.game-tile:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
}
.game-tile:hover::before { opacity: 0.6; }
.game-tile.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: 0 0 0 1px var(--accent), 0 18px 44px rgba(0, 0, 0, .45);
}
.game-tile.compact { padding: 14px 14px 12px; text-align: left; }
.game-tile.compact .game-pack { transform: scale(0.7); }

.scroll-x {
  display: flex;
  gap: 14px;
  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; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.fade-in { animation: fade-in .45s ease-out; }

a { color: inherit; }
button { font-family: inherit; }

[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(--ember);
}

/* Mobile menu */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
}
.mobile-panel {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 500;
  padding: 20px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-panel.open { display: flex; }
/* heist#218 Fase E — kun panelets direkte nav-links; links inde i
   autocomplete-dropdownen (.ac-item) og region-pickeren må ikke arve dem. */
.mobile-panel > a {
  display: block;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
}
@media (max-width: 767px) {
  .nav-desktop, .header-desktop-only { display: none !important; }
  .hamburger { display: inline-flex; }
}

/* ---------------------------------------------------------------------------
   Responsive layout primitives
   --------------------------------------------------------------------------- */

/* Page-wide container: fixed max-width on desktop, slimmer padding on mobile */
.page-wrap { max-width: var(--container-page); margin: 0 auto; padding: 0 32px; }
@media (max-width: 767px) { .page-wrap { padding: 0 14px; } }

/* Product show: sidebar (380px) + main column → stacked on tablet/mobile */
.product-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 48px; }
@media (max-width: 1023px) { .product-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Sticky pack art: drop sticky on mobile so left column doesn't dominate */
@media (max-width: 1023px) { .product-layout .pack-sticky { position: static !important; } }

/* Sticky køb-bar på produktsiden (heist#368). Skjult (glider ud under
   skærmkanten) mens hero-knappen er synlig; sticky-cta-controlleren sætter
   .is-shown. Fixed + transform = ingen layout-shift (CLS). Under
   mobilmenuen (z 500). */
.sticky-buy { display: none; }
@media (max-width: 767px) {
  .sticky-buy {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
    background: var(--surface); border-top: 1px solid var(--border-2);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .5);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(100%); visibility: hidden;
    transition: transform .2s ease, visibility .2s;
  }
  .sticky-buy.is-shown { transform: none; visibility: visible; }
  .sticky-buy-price { min-width: 0; display: flex; flex-direction: column; }
  .sticky-buy-price .price { font-size: 22px; font-weight: 700; line-height: 1.05; color: var(--gold); }
  .sticky-buy-price .at { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy form { flex: 1; margin: 0; }
  .sticky-buy .btn-primary { width: 100%; padding: 12px 16px; font-size: 14px; }
  body:has(.sticky-buy) { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-buy { transition: none; } }

/* Search: filter sidebar (230px) + results → stacked on tablet/mobile */
.search-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; }
@media (max-width: 1023px) { .search-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Filter sidebar: sticky on desktop, static collapsible on mobile */
@media (max-width: 1023px) {
  .search-layout aside .filters-card { position: static !important; max-height: none !important; }
}

/* Game picker: 5 tiles on desktop, 2 on phones, 3 on small tablets */
.picker-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 1023px) { .picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 559px)  { .picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Product card grids: pin to 2-col on phones (auto-fill at 195px shows 1) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 14px; }
@media (max-width: 559px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* heist#340 — regionsforsidens spil-hubs, forhandlere og guides. Samme forged-
   flader som game-tile (surface→bg-2, 4px radius); spillets accent på kanten. */
.region-hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
@media (max-width: 559px) { .region-hubs { grid-template-columns: minmax(0, 1fr); } }
.region-hub { padding: 18px 18px 16px; border-radius: 4px; background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-top: 2px solid var(--accent); min-width: 0; }
.region-hub-label { font-size: 10px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin: 10px 0 6px; }
.region-hub-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.region-hub-links li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; min-width: 0; }
.region-hub-links a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-hub-links a:hover { color: var(--accent); }
.region-hub-links span { color: var(--faint); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.region-hub-open { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; }
.region-retailers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.region-retailers li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font-size: 13px; min-width: 0; }
.region-retailers strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-retailers span { color: var(--faint); flex-shrink: 0; }
.region-guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.region-guides a { color: var(--ink); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--border-2); }
.region-guides a:hover { color: var(--gold); }

.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)); } }

/* Grid-items skal kunne skrumpe under tekstens min-content, ellers tvinger
   lange nowrap-navne layoutviewporten bred på mobil (Chrome zoomer ud) */
.series-grid > a, .category-grid > a { min-width: 0; }

/* TCG switcher: dynamic column count desktop, force 2-col on phones */
.game-grid { display: grid; gap: 10px; }
@media (max-width: 767px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Featured deal tile: 3-col (image + body + CTA) → stacked on phones */
.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; text-align: left; }
  .featured-tile > :first-child { justify-self: center; }
}

/* Game banner: image side hides on phone, headline takes full width */
@media (max-width: 767px) {
  .game-banner { padding: 28px 22px !important; flex-wrap: wrap; }
  .game-banner .banner-art { display: none !important; }
}

/* Footer columns: 4 → 2 → 1 */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; max-width: var(--container-page); margin: 0 auto; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 479px)  { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Action row (buy + favorite buttons): drop min-width on mobile, stack full-width */
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .action-row { flex-direction: column; }
  .action-row > * { width: 100% !important; min-width: 0 !important; flex: none !important; }
}

/* Specs grid (product show): N-col on desktop → 2-col on mobile */
.specs-grid { display: grid; }
@media (max-width: 559px) {
  .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .specs-grid > div { border-right: none !important; }
  .specs-grid > div:nth-child(odd):not(:last-child) { border-right: 1px solid var(--border) !important; }
  .specs-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* Tabs row: enable horizontal scroll on overflow */
.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; }
}

/* Retailers row: 5-col desktop table → stack on phones */
.retailer-row { display: grid; grid-template-columns: 60px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr) 100px; align-items: center; gap: 14px; padding: 14px 16px; }
@media (max-width: 767px) {
  .retailer-row { grid-template-columns: 60px 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; }
}

/* Header container: shrink padding and gap on phones */
.header-container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; max-width: var(--container-page); margin: 0 auto; padding: 0 32px; }
@media (max-width: 767px) { .header-container { padding: 0 14px; gap: 8px; } }

/* Region-picker dropdown: full-width sheet on phones instead of 280px floating */
@media (max-width: 559px) {
  .region-dropdown {
    position: fixed !important;
    top: auto !important;
    bottom: 14px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
  }
}

/* Touch targets: ensure buttons/links are at least 44px tappable on phones,
   except inside card-tile grids which have their own large hit-area. */
@media (max-width: 767px) {
  a.btn-primary, a.btn-ghost, button.btn-primary, button.btn-ghost { min-height: 44px; }
}

/* heist#56 Slice 2 — søge-autocomplete dropdown.
   Wrapperen sættes position:relative så .ac-box kan position:absolute. */
.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: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  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; }

/* --- heist#380: hub-blokke (billigst lige nu, prisfald 30 dage) ------- */
.hub-insights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1023px) { .hub-insights { grid-template-columns: minmax(0, 1fr); } }
.hub-panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 8px; }
.hub-insights-sub { font-size: 12px; color: var(--faint); margin: 4px 0 12px; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hub-table th, .hub-table td { padding: 9px 6px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.hub-table th { border-top: 0; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hub-table td:first-child { overflow-wrap: anywhere; }
.hub-table td:not(:first-child) { white-space: nowrap; color: var(--muted); }
.hub-table td a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass-dim); }
.hub-table td a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.hub-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hub-table td.num:last-child { color: var(--ink); font-weight: 600; }
.hub-table s { color: var(--faint); }
.hub-type { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.hub-table td.hub-drop { color: var(--teal); font-weight: 700; }
.hub-table .hub-narrow { display: none; font-size: 11px; font-weight: 400; }
@media (max-width: 639px) {
  .hub-table .hub-wide { display: none; }
  .hub-table .hub-narrow { display: block; }
}

/* --- Guide-brødtekst (Action Text-HTML fra vault + GuideRenderer-grids) -----
   Resettet nulstiller al margin/padding, så prosaen stod som én ustylet klump
   (crawl 11-10-2026). Flow-spacing via child-selektorer, så produkt-gridets
   card-tiles (egne inline styles) ikke arver prosa-regler. Forged-udtrykket:
   Saira-overskrifter med messing-nitte, ember kun som signal (blockquote-kant,
   link-hover), aldrig som flade. */
.guide-body { font-size: 16.5px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.guide-body > * + * { margin-top: 1.1em; }
.guide-body > p { color: #d9d5cc; }
.guide-body strong, .guide-body b { color: #f2efe7; font-weight: 600; }
.guide-body em, .guide-body i { font-style: italic; }

.guide-body > h2, .guide-body > h3, .guide-body > h4 {
  font-family: 'Saira Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.guide-body > h2 {
  position: relative;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-top: 2.1em;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.guide-body > h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--gold);
}
.guide-body > h3 { font-size: 20px; font-weight: 600; color: var(--gold-h); margin-top: 1.8em; }
.guide-body > h4 { font-size: 17px; font-weight: 600; color: var(--muted); margin-top: 1.6em; }
.guide-body > h2 + *, .guide-body > h3 + *, .guide-body > h4 + * { margin-top: 0.6em; }
.guide-body > :first-child { margin-top: 0; }

.guide-body :is(p, li, td, th, blockquote, figcaption, dd) a {
  color: var(--gold-h);
  text-decoration: underline;
  text-decoration-color: var(--brass-dim);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.guide-body :is(p, li, td, th, blockquote, figcaption, dd) a:hover { color: var(--ember-h); text-decoration-color: var(--ember); }

/* Lister: messing-nitter (ul) og mono-tal (ol) i stedet for browser-bullets. */
.guide-body > ul, .guide-body > ol { list-style: none; color: #d9d5cc; }
.guide-body > ul > li, .guide-body > ol > li { position: relative; padding-left: 28px; }
.guide-body > ul > li + li, .guide-body > ol > li + li { margin-top: 0.55em; }
.guide-body > ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.guide-body > ol { counter-reset: guide-ol; }
.guide-body > ol > li { counter-increment: guide-ol; padding-left: 34px; }
.guide-body > ol > li::before {
  content: counter(guide-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.guide-body li > ul, .guide-body li > ol { margin-top: 0.45em; padding-left: 1.2em; list-style: square; }

.guide-body > blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--ember);
  background: var(--surface);
  border-radius: 0 4px 4px 0;
  color: var(--muted);
  font-size: 17px;
}
.guide-body > blockquote > * + * { margin-top: 0.7em; }

.guide-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}
.guide-body > hr { border: 0; height: 1px; background: var(--border-2); margin: 2.4em 0; }

/* Tabeller: scrollbare på mobil i stedet for at sprænge viewporten. */
.guide-body > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}
.guide-body > table th, .guide-body > table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.guide-body > table th {
  border-top: 0;
  background: var(--surface-2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Billeder (Action Text-attachments) — ikke kortene i produkt-gridet. */
.guide-body img:not(.product-grid img) { display: block; max-width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--border); }
.guide-body figure { margin: 1.8em 0; }
.guide-body figcaption {
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* GuideRenderer-grids midt i prosaen: luft over/under og kortenes egen rytme. */
.guide-body > .product-grid { margin: 1.8em 0 2em; font-size: 14px; line-height: 1.4; }
