@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700..800&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

/* ===================================================================
   GAY-POLICE.EU — kunskapsbas om casino utan svensk licens
   Vänligt hjälpcenter: frågor och svar, mjuka rundade former,
   luftiga kort och lugna skuggor. Pedagogisk och tillgänglig ton.
   Palett: violett + magenta på ljust lavendelpapper.
=================================================================== */
:root {
  /* ----- Palett (obligatoriska namn) ----- */
  --color-primary: #6d28d9; /* violett — stämpel/brand    */
  --color-accent: #db2777; /* magenta — dekorativ accent   */
  --color-bg: #faf7fe; /* ljust lavendelpapper           */
  --color-surface: #ffffff; /* kort/ytor                  */
  --color-text: #1e1633; /* brödtext, mörk plommon        */

  /* ----- Interna alias (används i hela filen) ----- */
  --papier: var(--color-bg);
  --papier-tief: #f1e9fb; /* djupare lavendel / dämpad yta */
  --linie: #e7ddf5; /* hårlinjer                          */
  --tinte: var(--color-text); /* bläck                     */
  --stempel: var(--color-primary); /* stämpel/accentyta    */
  --stempel-dunkel: #241041; /* mörk violett (FAQ-sektion)  */
  --marker: #f6c6e4; /* markering, mjuk rosa               */
  --tinte-08: rgba(30, 22, 51, 0.08);

  /* ----- Typography ----- */
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo,
    Consolas, monospace;

  /* ----- Type scale ----- */
  --step-body: 1.0625rem;
  --step-h3: clamp(1.2rem, 1rem + 1vw, 1.45rem);
  --step-h2: clamp(1.55rem, 1.2rem + 1.6vw, 2.15rem);
  --step-h1: clamp(2.35rem, 1.4rem + 4.4vw, 4.4rem);

  /* ----- Layout / spacing ----- */
  --maxw: 1140px;
  --header-h: 70px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* ----- Mjuka skuggor (rundade kort) ----- */
  --radius: 20px;
  --radius-lg: 28px;
  --schatten: 0 22px 48px -22px rgba(109, 40, 217, 0.42);
  --schatten-tinte: 0 14px 32px -16px rgba(30, 22, 51, 0.22);
}

/* ===================== Reset / base ===================== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.62;
  color: var(--tinte);
  background-color: var(--papier);
  /* subtle 26px dot-grid lavender texture */
  background-image: radial-gradient(var(--tinte-08) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  background-position: -6px -6px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--tinte);
}
h1 {
  font-size: var(--step-h1);
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
h2 {
  font-size: var(--step-h2);
  margin: 2.6rem 0 0.9rem;
}
h3 {
  font-size: var(--step-h3);
  line-height: 1.08;
  margin: 1.9rem 0 0.6rem;
}
p {
  margin: 0 0 1.05rem;
}

a {
  color: var(--stempel);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-accent);
  transition: background-color 0.12s ease, color 0.12s ease,
    box-shadow 0.12s ease;
}
/* soft highlight sweep on hover */
a:hover {
  color: var(--tinte);
  background: var(--marker);
  text-decoration-color: var(--tinte);
  box-shadow: 0 0 0 3px var(--marker);
  border-radius: 4px;
}

strong {
  font-weight: 600;
  background: var(--marker);
  color: var(--tinte);
  padding: 0.02em 0.2em;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--marker);
  color: var(--tinte);
}

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

/* ===================== Utility wrap ===================== */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* ===================== Skip link ===================== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--stempel);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--schatten-tinte);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
  background: var(--stempel);
  box-shadow: var(--schatten-tinte);
}

/* ===================== Reading progress bar ===================== */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--stempel), var(--color-accent));
  z-index: 120;
  will-change: width;
}

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo:hover {
  background: none;
  box-shadow: none;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tinte);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover {
  background: var(--marker);
  color: var(--tinte);
  box-shadow: none;
}
/* current page chip is filled */
.main-nav a[aria-current="page"] {
  background: var(--stempel);
  color: #fff;
}
.main-nav a[aria-current="page"]:hover {
  background: var(--stempel-dunkel);
  color: #fff;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0;
  background: var(--color-surface);
  border: 2px solid var(--linie);
  border-radius: 14px;
  box-shadow: var(--schatten-tinte);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.nav-toggle:hover {
  transform: translateY(-1px);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--stempel);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    border-top: 1px solid var(--linie);
    box-shadow: var(--schatten-tinte);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease,
      visibility 0.18s ease;
  }
  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem var(--gap) 1rem;
  }
  .main-nav a {
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
  }
}

/* ===================== Hero — soft rounded shapes, centered ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.25rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--linie);
  text-align: center;
  background-color: var(--papier);
  /* livelier multi-color gradient mesh */
  background-image: radial-gradient(
      42% 55% at 12% 6%,
      color-mix(in srgb, var(--color-primary) 16%, transparent),
      transparent 70%
    ),
    radial-gradient(
      38% 48% at 88% 10%,
      color-mix(in srgb, var(--color-accent) 15%, transparent),
      transparent 68%
    ),
    radial-gradient(
      48% 54% at 80% 98%,
      color-mix(in srgb, var(--marker) 55%, transparent),
      transparent 72%
    ),
    radial-gradient(
      40% 46% at 6% 94%,
      color-mix(in srgb, var(--color-primary) 10%, transparent),
      transparent 70%
    );
}
/* large soft blobs that gently drift behind the centered content */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
  will-change: transform;
}
.hero::before {
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  top: -22%;
  left: -12%;
  background: radial-gradient(
    circle at 35% 35%,
    color-mix(in srgb, var(--color-primary) 22%, transparent),
    transparent 70%
  );
  animation: heroFloatA 17s ease-in-out infinite;
}
.hero::after {
  width: min(46vw, 500px);
  height: min(46vw, 500px);
  bottom: -30%;
  right: -10%;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--color-accent) 30%, transparent),
    transparent 70%
  );
  opacity: 0.7;
  animation: heroFloatB 21s ease-in-out infinite;
}
@keyframes heroFloatA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6%, 8%) scale(1.08);
  }
}
@keyframes heroFloatB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-7%, -6%) scale(1.1);
  }
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* pill eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--stempel);
  background: var(--papier-tief);
  padding: 0.45rem 1.05rem;
  margin: 0 0 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--linie);
}
.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.6rem);
}
.byline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--tinte) 72%, var(--papier));
  margin: 1rem 0 1.4rem;
}
.byline a {
  color: var(--stempel);
  text-decoration-color: var(--color-accent);
}
.hero p.lede {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--tinte);
  max-width: 60ch;
  margin: 0 auto 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  padding: 0.9rem 1.55rem;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, color 0.12s ease;
}
.btn-primary {
  background: var(--stempel);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(109, 40, 217, 0.62);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--stempel);
  color: #fff;
  box-shadow: 0 20px 36px -12px rgba(109, 40, 217, 0.72);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--tinte);
  border-color: var(--linie);
  box-shadow: var(--schatten-tinte);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--papier-tief);
  color: var(--tinte);
}
.btn:active {
  transform: translateY(0);
}

/* ===================== Layout (article + TOC) ===================== */
.layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 3.25rem) 0 3.5rem;
}
.layout > * {
  min-width: 0;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    order: -1;
  }
}

/* ===================== Table of contents — question index ===================== */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  align-self: start;
  background: var(--color-surface);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-tinte);
  overflow: hidden;
}
.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--stempel);
  margin: 0;
  padding: 0.75rem 1rem;
  line-height: 1.2;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin: 0;
}
.toc a {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.42rem 1rem;
  color: var(--tinte);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.32;
  border-left: 4px solid transparent;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
}
.toc a:hover {
  background: var(--marker);
  color: var(--tinte);
  box-shadow: none;
}
.toc a:hover::before {
  color: var(--tinte);
}
.toc a.is-active {
  font-weight: 600;
  border-left-color: var(--stempel);
  background: color-mix(in srgb, var(--stempel) 10%, var(--color-surface));
}

/* ===================== Article ===================== */
.article {
  counter-reset: sec;
}
.article > :first-child {
  margin-top: 0;
}
.article p {
  max-width: 68ch;
}
.article ul,
.article ol {
  padding-left: 1.3rem;
  margin: 0 0 1.3rem;
  max-width: 66ch;
}
.article li {
  margin-bottom: 0.45rem;
}

/* numbered section headings (Q-index style) */
.article h2 {
  counter-increment: sec;
  border-top: 1px solid var(--linie);
  padding-top: 1.1rem;
  margin: 3rem 0 1rem;
}
.article h2::before {
  content: "Fråga " counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.45rem;
}
.article h3 {
  color: var(--tinte);
}

/* plain variant (om oss / integritetspolicy) — inga fråge-nummer */
.article.plain {
  counter-reset: none;
}
.article.plain h2 {
  counter-increment: none;
}
.article.plain h2::before {
  content: none;
}

/* figures */
.article figure {
  margin: 2rem 0;
}
.article figure img {
  border: 1px solid var(--linie);
  border-radius: var(--radius-lg);
  box-shadow: var(--schatten);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: var(--papier-tief);
}
.article figcaption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--tinte) 74%, var(--papier));
  margin-top: 0.9rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--marker);
}

/* ===================== Callout ===================== */
.callout {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.5rem 1.6rem 1.5rem 1.85rem;
  margin: 2.6rem 0;
}
.callout::before {
  content: "?";
  position: absolute;
  top: -18px;
  left: -14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: var(--schatten-tinte);
}
.callout p {
  margin: 0;
  max-width: none;
}
.callout strong {
  background: var(--marker);
}

/* ===================== Comparison table ===================== */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  background: var(--color-surface);
}
table.cmp th,
table.cmp td {
  text-align: left;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--linie);
  border-right: 1px solid var(--linie);
  vertical-align: top;
}
table.cmp th:last-child,
table.cmp td:last-child {
  border-right: none;
}
table.cmp thead th {
  background: var(--stempel);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-right-color: color-mix(in srgb, #fff 25%, var(--stempel));
  border-bottom: none;
}
table.cmp tbody th {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tinte);
  background: var(--papier-tief);
  white-space: nowrap;
}
table.cmp tbody tr:last-child th,
table.cmp tbody tr:last-child td {
  border-bottom: none;
}

/* ===================== Pros / cons ===================== */
.procons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.2rem 0;
}
@media (max-width: 560px) {
  .procons {
    grid-template-columns: 1fr;
  }
}
.procons-col {
  background: var(--color-surface);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-tinte);
  padding: 0;
  overflow: hidden;
}
.procons-col h3 {
  margin: 0;
  padding: 0.72rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.procons-pro h3 {
  background: var(--stempel);
  color: #fff;
}
.procons-con h3 {
  background: var(--papier-tief);
  color: var(--tinte);
}
.procons ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.3rem;
}
.procons li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
}
.procons li:last-child {
  margin-bottom: 0;
}
.procons-pro li::before,
.procons-con li::before {
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
}
.procons-pro li::before {
  content: "+";
  color: var(--stempel);
}
.procons-con li::before {
  content: "\2212"; /* − minus */
  color: var(--color-accent);
}

/* ===================== Link box (sources / read-more) ===================== */
.linkbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  background: var(--papier-tief);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-tinte);
  padding: 1.7rem;
  margin: 2.6rem 0;
}
@media (max-width: 560px) {
  .linkbox {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
}
.linkbox h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tinte);
  margin: 0 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--marker);
}
.linkbox ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.linkbox li {
  margin-bottom: 0.65rem;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
}
.linkbox li:last-child {
  margin-bottom: 0;
}
.linkbox li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-accent);
}
.linkbox .internal li::before {
  content: "\2192"; /* → */
}
.linkbox .external li::before {
  content: "\2197"; /* ↗ */
}
.linkbox a {
  text-decoration-color: var(--color-accent);
}

/* ===================== Author box ===================== */
.author-box {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.6rem;
  margin: 2.8rem 0 0.5rem;
}
.author-box img {
  width: 88px;
  height: 88px;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--schatten-tinte);
}
.author-box .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0.15rem 0 0;
}
.author-box .position {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0.35rem 0 0.7rem;
}
.author-box p.bio {
  margin: 0;
  color: var(--tinte);
  font-size: 0.95rem;
  max-width: 62ch;
}
@media (max-width: 480px) {
  .author-box {
    flex-direction: column;
  }
}

/* ===================== FAQ — soft dark help section ===================== */
.faq {
  background: var(--stempel-dunkel);
  color: var(--papier);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--linie);
  background-image: radial-gradient(
    rgba(246, 198, 228, 0.06) 1.1px,
    transparent 1.2px
  );
  background-size: 26px 26px;
}
.faq h2 {
  color: var(--papier);
  margin: 0 0 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--marker);
}
.faq h2::after {
  content: "· HJÄLPCENTER";
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--marker);
  vertical-align: middle;
  margin-left: 0.6rem;
}
.faq-item {
  border: 1px solid rgba(246, 198, 228, 0.28);
  border-radius: 16px;
  background: rgba(246, 198, 228, 0.04);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--papier);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--marker);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  flex: none;
}
.faq-item[open] {
  border-color: var(--marker);
}
.faq-item[open] summary::after {
  content: "\2212"; /* − */
}
.faq-item[open] summary {
  color: var(--marker);
}
.faq-item .answer {
  padding: 0 1.25rem 1.2rem;
  color: rgba(250, 247, 254, 0.84);
}
.faq-item .answer p {
  margin: 0;
  max-width: 74ch;
}
.faq-item .answer a {
  color: var(--marker);
  text-decoration-color: var(--marker);
}
.faq-item .answer a:hover {
  background: var(--marker);
  color: var(--stempel-dunkel);
}
.faq strong {
  background: var(--marker);
  color: var(--tinte);
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--tinte);
  color: var(--papier);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.25rem;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer-logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.footer-logo:hover {
  background: none;
  box-shadow: none;
}
.footer-logo img {
  height: 34px;
  width: auto;
}
.footer-col p {
  color: rgba(250, 247, 254, 0.72);
  font-size: 0.92rem;
  margin: 1rem 0 0;
  max-width: 42ch;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--papier);
  margin: 0 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(250, 247, 254, 0.2);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: rgba(250, 247, 254, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  text-decoration-color: var(--color-accent);
}
.footer-col a:hover {
  background: var(--marker);
  color: var(--tinte);
  box-shadow: 0 0 0 3px var(--marker);
  border-radius: 4px;
}

/* Responsible-gambling note (18+) */
.rg-note {
  position: relative;
  display: block;
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(250, 247, 254, 0.32);
  border-radius: 16px;
  background: rgba(246, 198, 228, 0.06);
  font-size: 0.86rem;
  color: rgba(250, 247, 254, 0.78);
  max-width: 42ch;
}
.rg-note strong {
  display: inline-block;
  background: var(--marker);
  color: var(--tinte);
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  margin-right: 0.35rem;
  border-radius: 999px;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 254, 0.2);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: rgba(250, 247, 254, 0.6);
}
.footer-bottom p {
  margin: 0 0 0.5rem;
  max-width: none;
}
.footer-disclaimer {
  font-size: 0.8rem;
}

/* ===================== Scroll reveal (JS-driven) ===================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===================== Print ===================== */
@media print {
  .site-header,
  .nav-toggle,
  .main-nav,
  .read-progress,
  aside,
  .toc,
  .site-footer,
  .hero-actions,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000;
    font-size: 11pt;
  }
  .hero::before,
  .hero::after {
    display: none;
  }
  .layout {
    display: block;
    padding: 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  strong {
    background: none;
    text-decoration: underline;
  }
  .callout,
  .table-wrap,
  .author-box,
  .procons-col,
  .article figure img,
  .linkbox {
    box-shadow: none !important;
    border-color: #000;
  }
  .callout::before {
    background: #000;
  }
  .faq {
    background: #fff;
    color: #000;
  }
  .faq h2,
  .faq-item summary {
    color: #000;
  }
  .faq-item {
    border-color: #000;
  }
  .faq-item .answer {
    color: #000;
  }
}
