/* ==========================================================================
   piperspincasino.biz — "Deutschlandkarte" theme
   Paper map look: parchment background, graticule grid, contour lines,
   black–red–gold flag accents, river blue and map-pin markers.

   1. Tokens          6. Hero & map        11. FAQ / CTA / author
   2. Base            7. Stats             12. Footer
   3. Utilities       8. Layout & TOC      13. Cookie banner & sticky CTA
   4. Header          9. Article content   14. Legal pages
   5. Buttons        10. Tables
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --paper: #f5f0e3;
  --paper-2: #ece4cf;
  --card: #fbf8ef;
  --ink: #1d2a33;
  --text: #33404a;
  --muted: #5e6a73;
  --line: #d9cdb0;
  --line-strong: #b5a47a;
  --red: #c8141b;
  --red-dark: #9e0f15;
  --gold: #f2b705;
  --gold-soft: #fcebb0;
  --black: #141414;
  --water: #b9d6e4;
  --water-dark: #3d7493;
  --land: #e7dfc4;
  --forest: #5d7d4d;

  --flag: linear-gradient(90deg, var(--black) 0 33.33%, var(--red) 33.33% 66.66%, var(--gold) 66.66% 100%);
  --flag-v: linear-gradient(180deg, var(--black) 0 33.33%, var(--red) 33.33% 66.66%, var(--gold) 66.66% 100%);

  --font-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: 16px;
  --header-h: 64px;
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;
  --r-pill: 999px;
  --shadow: 0 1px 0 rgba(29, 42, 51, 0.06), 0 10px 28px -14px rgba(29, 42, 51, 0.35);
  --shadow-lg: 0 2px 0 rgba(29, 42, 51, 0.06), 0 24px 50px -22px rgba(29, 42, 51, 0.5);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Contour lines (topographic) used as a subtle page texture */
  --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23b5a47a' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M-20 120c60-40 120 30 190-10s120-70 270-20'/%3E%3Cpath d='M-20 150c70-40 130 35 200-5s120-60 260-10'/%3E%3Cpath d='M-20 180c80-35 140 40 210 0s120-50 250 0'/%3E%3Cpath d='M60 300c20-50 90-60 130-30s40 80-20 95-130-10-110-65z'/%3E%3Cpath d='M85 305c15-30 65-38 92-18s25 52-15 62-92-8-77-44z'/%3E%3Cpath d='M112 310c10-15 38-20 52-9s12 28-9 33-50-6-43-24z'/%3E%3Cpath d='M260 330c40-30 120-10 150 30'/%3E%3Cpath d='M250 360c45-30 130-12 170 30'/%3E%3C/g%3E%3C/svg%3E");
  /* Graticule (latitude / longitude grid) */
  --graticule:
    repeating-linear-gradient(0deg, rgba(61, 116, 147, 0.07) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, rgba(61, 116, 147, 0.07) 0 1px, transparent 1px 120px);
}

@media (min-width: 960px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: var(--contours), var(--graticule);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

svg {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 3.25rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
}

h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.45rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--water-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

strong {
  color: var(--ink);
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

table {
  border-collapse: collapse;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 3. Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  border-radius: var(--r-m);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.text-gradient {
  color: var(--red);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 4. Topbar & header
   ========================================================================== */
.topbar {
  position: relative;
  padding: 0.45rem 0 0.55rem;
  background: var(--ink);
  color: #d8dee2;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--flag);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar a {
  color: var(--gold);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 2.2em;
  padding: 0.1em 0.45em;
  border: 2px solid var(--red);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 239, 0.94);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 -1px var(--paper), 0 4px 0 -1px var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo img {
  width: 38px;
  height: 38px;
  transition: transform 0.3s var(--ease);
}

.logo:hover img {
  transform: translateY(-3px);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav {
  position: absolute;
  top: 100%;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  display: none;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: var(--card);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.nav.is-open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-m);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--red);
}

.header-cta {
  display: none;
}

@media (min-width: 480px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .logo {
    margin-right: 0;
  }

  .nav {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.1rem;
  }

  .nav-list a {
    position: relative;
    padding: 0.4rem 0.75rem;
    font-size: 0.97rem;
    line-height: 1.4;
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.15rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
  }

  .nav-list a:hover {
    background: none;
  }

  .nav-list a:hover::after {
    transform: scaleX(1);
  }

  .header-cta {
    margin-left: 0.75rem;
  }
}

/* 5. Buttons & small components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--cta {
  background: var(--red);
  border-color: var(--red-dark);
  color: #fff;
  box-shadow: 0 4px 0 var(--red-dark), 0 12px 24px -10px rgba(200, 20, 27, 0.6);
}

.btn--cta:hover {
  background: #d91d24;
  color: #fff;
  box-shadow: 0 6px 0 var(--red-dark), 0 16px 28px -10px rgba(200, 20, 27, 0.65);
}

.btn--cta:active {
  box-shadow: 0 2px 0 var(--red-dark);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: #2a3b47;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.0625rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow .icon {
  color: var(--forest);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

.icon-badge .icon {
  width: 22px;
  height: 22px;
}

.callout {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--water);
  border-left: 5px solid var(--water-dark);
  border-radius: var(--r-m);
  background: rgba(185, 214, 228, 0.3);
}

.callout .icon {
  margin-top: 0.3rem;
  color: var(--water-dark);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warning {
  border-color: var(--gold-soft);
  border-left-color: var(--red);
  background: rgba(252, 235, 176, 0.45);
}

.callout--warning .icon {
  color: var(--red);
}

.tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag--success {
  background: rgba(93, 125, 77, 0.15);
  color: var(--forest);
}

/* 6. Hero & map
   ========================================================================== */
.hero {
  position: relative;
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  gap: 2rem;
}

.hero__content > p {
  max-width: 62ch;
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.check-list .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  stroke-width: 3;
}

/* Map card: framed like an atlas page */
.map-card {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-l) - 4px);
  pointer-events: none;
}

.map-card__frame {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0 2rem;
  border-radius: var(--r-m);
  background:
    repeating-linear-gradient(0deg, rgba(61, 116, 147, 0.09) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(61, 116, 147, 0.09) 0 1px, transparent 1px 48px),
    radial-gradient(120% 90% at 30% 20%, #d7e8f0, #c3dbe7);
}

.de-map {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.de-map__land {
  fill: var(--land);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.de-map__river {
  fill: none;
  stroke: #6fa6c3;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.de-map__route {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  animation: route-dash 30s linear infinite;
}

@keyframes route-dash {
  to {
    stroke-dashoffset: -400;
  }
}

.de-map__city circle {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 2;
}

.de-map__city text {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--land);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.de-map__capital circle {
  fill: var(--red);
}

.de-map__pin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pin-drop 2.6s var(--ease) infinite alternate;
}

@keyframes pin-drop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

.de-map__label {
  fill: var(--water-dark);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.compass {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 64px;
  height: 64px;
}

.map-scale {
  position: absolute;
  left: 14px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
}

.map-scale::before {
  content: "";
  display: block;
  width: 96px;
  height: 6px;
  border: 1px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 0 25%, var(--card) 25% 50%, var(--ink) 50% 75%, var(--card) 75%);
}

/* Bonus card: the map legend */
.bonus-card {
  position: relative;
  z-index: 2;
  margin: -1.25rem 10px 0;
  border: 2px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.bonus-card::before {
  content: "";
  display: block;
  height: 8px;
  border-radius: calc(var(--r-l) - 2px) calc(var(--r-l) - 2px) 0 0;
  background: var(--flag);
}

.bonus-card__inner {
  padding: 1.25rem 1.25rem 1.1rem;
  text-align: center;
}

.bonus-card__label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bonus-card__amount {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 5vw, 2.3rem);
  line-height: 1.1;
}

.bonus-card__amount .text-gradient {
  display: block;
}

.bonus-card__sub {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.bonus-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.1rem;
}

.bonus-facts div {
  padding: 0.5rem 0.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-m);
  background: var(--paper);
}

.bonus-facts dt {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bonus-facts dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.small-print {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.small-print a {
  color: inherit;
}

@media (min-width: 960px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 3.5rem;
  }

  .bonus-card {
    margin: -2rem 1.5rem 0;
  }
}

/* 7. Stats
   ========================================================================== */
.section {
  padding: 3rem 0;
}

.section--tight {
  padding: 1.75rem 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
}

.stat:hover {
  transform: translateY(-3px);
}

.stat__value {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

@media (max-width: 379.98px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .stat {
    padding: 1.1rem;
  }

  .stat__value {
    font-size: 1.6rem;
  }
}

/* 8. Layout & TOC
   ========================================================================== */
.layout {
  display: grid;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.toc {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary .icon {
  transition: transform 0.25s var(--ease);
}

.toc[open] summary .icon {
  transform: rotate(180deg);
}

.toc ol {
  margin: 0;
  padding: 0 0.6rem 0.9rem;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  position: relative;
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--r-s);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.side-offer {
  display: none;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3.5rem;
    padding-top: 3rem;
  }

  .sidebar {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    display: grid;
    gap: 1rem;
    max-height: calc(100vh - var(--header-h) - 2.5rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .content {
    grid-column: 1;
    grid-row: 1;
  }

  .side-offer {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 1.6rem 1.25rem 1.4rem;
    border: 2px solid var(--ink);
    border-radius: var(--r-l);
    background: var(--card);
    text-align: center;
  }

  .side-offer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--flag);
  }

  .side-offer p {
    margin: 0 0 1rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
  }

  .side-offer small {
    display: block;
    margin-top: 0.625rem;
    color: var(--muted);
    font-size: 0.75rem;
  }
}

/* 9. Article content
   ========================================================================== */
.content {
  min-width: 0;
}

.content > section {
  position: relative;
  padding: 1.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: rgba(251, 248, 239, 0.88);
  box-shadow: var(--shadow);
}

.content > section + section {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .content > section {
    padding: 2.25rem 2.5rem;
  }
}

.content h2 {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

/* Map-pin marker in front of each section title */
.content h2::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  margin-top: 0.22em;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  transform: rotate(-45deg);
}

.content h3 {
  margin-top: 1.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px dashed var(--line);
}

.content ul,
.content ol {
  padding-left: 1.4rem;
}

.content li {
  margin-bottom: 0.4rem;
}

.content ul li::marker {
  color: var(--red);
}

.content ol li::marker {
  color: var(--red);
  font-weight: 700;
}

/* Steps as route waypoints */
.content ol.steps,
.steps {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 2.4rem;
  margin: 0;
  padding: 0.35rem 0 1rem 3.1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 2.3rem;
  bottom: 0.1rem;
  left: 1.05rem;
  border-left: 2px dashed var(--red);
}

.steps li:last-child {
  padding-bottom: 0.25rem;
}

.steps li:last-child::after {
  display: none;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0 0.5rem;
}

/* Author byline: top right of the content */
.byline {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.byline__card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: right;
}

.byline__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.byline__label {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.byline__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.byline__date {
  color: var(--muted);
  font-size: 0.8125rem;
}

.byline__avatar,
.author__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--flag-v);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* 10. Tables (map legend look)
   ========================================================================== */
.table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.5;
}

.data-table--wide {
  min-width: 620px;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--gold);
}

.data-table tbody th {
  color: var(--ink);
  font-weight: 700;
}

.data-table--kv tbody th {
  width: 40%;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(236, 228, 207, 0.55);
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--gold-soft);
}

.data-table tr.is-total > * {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 800;
  border-top: 2px solid var(--ink);
}

/* 11. FAQ / CTA / author
   ========================================================================== */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--card);
  transition: border-color 0.2s;
}

.faq__item[open] {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--red);
}

.faq__item summary .icon {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: var(--paper-2);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}

.faq__item[open] summary .icon {
  background: var(--gold);
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.15rem 1rem;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--ink);
  color: #d8dee2;
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contours);
  opacity: 0.5;
  pointer-events: none;
}

.final-cta > * {
  position: relative;
}

.final-cta__title {
  color: #fff;
}

.final-cta .small-print {
  color: #aeb8bf;
}

.author {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-l);
  text-align: center;
}

.author__avatar {
  width: 64px;
  height: 64px;
  font-size: 1.3rem;
}

.author__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author__name {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

/* 12. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 3rem 0 2rem;
  background: var(--ink);
  color: #c4ccd2;
  font-size: 0.9375rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--flag);
}

.site-footer a {
  color: #e9edf0;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer .logo {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-about p {
  max-width: 40ch;
  margin-top: 1rem;
}

.footer-title {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links .link-btn {
  color: #e9edf0;
}

.rg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
}

.rg-badge .icon {
  color: var(--gold);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  color: #9fabb3;
  font-size: 0.8125rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

/* 13. Cookie banner & sticky CTA
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 200;
  max-width: 460px;
  padding: 1.1rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-banner__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.cookie-banner__title .icon {
  color: var(--red);
}

.cookie-banner p {
  margin-bottom: 0.75rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions .btn {
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .cookie-banner {
    left: 24px;
    bottom: 24px;
  }
}

.sticky-cta {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  margin-bottom: env(safe-area-inset-bottom, 0px);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: rgba(251, 248, 239, 0.96);
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  transform: translateY(140%);
  transition: transform 0.3s var(--ease), visibility 0.3s;
}

.sticky-cta.is-visible {
  visibility: visible;
  transform: none;
}

.sticky-cta img {
  width: 34px;
  height: 34px;
}

.sticky-cta__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.3;
}

.sticky-cta__text small {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
}

.has-sticky-cta .site-footer {
  padding-bottom: 6.5rem;
}

@media (min-width: 960px) {
  .sticky-cta {
    display: none;
  }

  .has-sticky-cta .site-footer {
    padding-bottom: 2rem;
  }
}

/* 14. Legal pages
   ========================================================================== */
.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero__lead {
  max-width: 65ch;
  font-size: 1.1rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
  list-style: none;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.875rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--line-strong);
}

.breadcrumb [aria-current="page"] {
  color: var(--muted);
}

.legal-layout {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

nav.toc {
  padding-top: 0.9rem;
}

.toc__title {
  margin: 0 1.1rem 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3rem;
  }

  .legal-layout .toc {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    align-self: start;
  }
}

.prose {
  min-width: 0;
  padding: 1.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: rgba(251, 248, 239, 0.9);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .prose {
    padding: 2.25rem 2.5rem;
  }
}

.prose > section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--line);
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--red);
}

.prose address {
  font-style: normal;
}
