/* ──────────────────────────────────────────────────────────────────────────
   article.css — ren, læsevenlig vidensartikel-skabelon til Hjælpecenteret.
   Bruges af guide-/artikelsiderne. Ingen hero, ingen store illustrationer:
   typografi og struktur bærer siden. Bygger på tokens fra style.css.
   ────────────────────────────────────────────────────────────────────────── */

.article {
  background: var(--white);
  /* Toppadding rydder den fastgjorte header-pille (position: fixed, ~80px),
     så artiklen starter et naturligt stykke under navigationen — ikke oppe i den. */
  padding: clamp(104px, 12vw, 140px) 0 clamp(64px, 8vw, 104px);
}

/* Læsekolonne: cap på ~68ch så linjelængden holder sig læsevenlig. */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Tilbage-link står ALENE øverst på sin egen linje (blok, ikke inline),
   så det ikke smelter sammen med kategorien til en breadcrumb-kæde. */
.article-back {
  display: flex; width: fit-content; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 500; color: var(--t2);
  text-decoration: none; margin-bottom: 30px;
  transition: color var(--transition);
}
.article-back:hover { color: var(--t1); }
.article-back svg { width: 15px; height: 15px; }

/* Kategori-eyebrow: egen linje under tilbage-linket, i platformens grønne
   accent (samme grønne tekst som .section-label.green / .blog-tag.cat-green)
   som visuel markør af hvilket område artiklen tilhører. */
.article-eyebrow {
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-txt);
  margin-bottom: 16px;
}

.article h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.04; letter-spacing: -0.015em; color: var(--t1);
  text-wrap: balance; margin: 0 0 20px;
}

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: .85rem; color: var(--t3); margin-bottom: 30px;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--t3); }
.article-meta strong { color: var(--t2); font-weight: 600; }

.article-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.62; color: var(--t2);
  text-wrap: pretty; margin: 0 0 30px;
}

/* Valgfrit header-billede øverst i artiklen. Holdes i læsekolonnen, så den
   rene, typografi-baerede skabelon bevares. */
.article-hero { margin: 4px 0 34px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; display: block; border-radius: var(--radius-lg); }
.article-hero figcaption { margin-top: 10px; font-size: .78rem; color: var(--t3); }

.article-divider { height: 1px; background: var(--border); border: 0; margin: 0 0 36px; }

/* ── Brødtekst ── */
.article-body { color: #2b2926; }
.article-body > * + * { margin-top: 22px; }

.article-body p {
  font-size: 1.06rem; line-height: 1.78; color: #2b2926;
  text-wrap: pretty;
}

.article-body h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12;
  letter-spacing: -0.01em; color: var(--t1);
  margin-top: 48px; text-wrap: balance;
}
.article-body h2 + p, .article-body h2 + ul { margin-top: 16px; }

.article-body h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.18rem, 1.8vw, 1.4rem); line-height: 1.2;
  color: var(--t1); margin-top: 34px;
}
.article-body h3 + p, .article-body h3 + ul { margin-top: 12px; }

.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li {
  font-size: 1.06rem; line-height: 1.7; color: #2b2926;
  margin-bottom: 10px; padding-left: 4px;
}
.article-body li::marker { color: var(--t3); }

.article-body strong { color: var(--t1); font-weight: 600; }

.article-body a {
  color: var(--t1); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.article-body a:hover { color: var(--t2); }

/* Faktaboks / opsummering inde i artiklen. */
.article-callout {
  background: var(--subtle); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 28px;
}
.article-callout h3 { margin-top: 0; font-size: 1.15rem; }
.article-callout p, .article-callout li { font-size: .98rem; }
.article-callout :last-child { margin-bottom: 0; }

/* Diskret ansvarsfraskrivelse i bunden. */
.article-note {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .9rem; line-height: 1.65; color: var(--t3);
}

/* ── Relaterede artikler: binder Blog, Hjaelpecenter og Lovkrav sammen til
      een vidensbase, saa laeseren let kan gaa videre til naeste emne. ── */
.article-related { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--border); }
.article-related h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1.3rem; letter-spacing: -0.01em; color: var(--t1); margin: 0 0 18px;
}
.article-related-list { display: grid; gap: 12px; }
.article-related-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.article-related-item:hover { border-color: var(--border-md); transform: translateY(-2px); box-shadow: var(--shadow); }
.article-related-cat {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-txt);
}
.article-related-title {
  font-family: var(--display); font-weight: 700; font-size: 1.14rem;
  line-height: 1.18; letter-spacing: -0.01em; color: var(--t1);
}

@media (max-width: 560px) {
  .article-body > * + * { margin-top: 20px; }
}
