/* Sidetype-CSS for de håndskrevne indholdssider (regler.html, privatliv.html).
   Tokens, skrifter, header, footer og knapper kommer fra /css/site.css. */

/* ── Hero ── */
.hero { padding: 64px 24px 48px; max-width: 760px; margin: 0 auto; }
.hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: 17px; color: var(--muted); max-width: 580px; line-height: 1.75; }

/* ── Main layout ── */
main { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }

/* ── Section titles ── */
.section-title {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 20px; margin-top: 56px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Intro box ── */
.intro-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 12px; }
.intro-box p { color: var(--muted); font-size: 15px; }
.intro-box strong { color: var(--text); }

/* ── Rule cards ── */
.rule-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 12px; position: relative; overflow: hidden; transition: border-color .2s;
}
.rule-card:hover { border-color: color-mix(in srgb, var(--text) 18%, transparent); }
.rule-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; }
.rule-card.red::before    { background: var(--no); }
.rule-card.yellow::before { background: var(--warn); }
.rule-card.green::before  { background: var(--ok); }
.rule-card.blue::before,
.rule-card.brand::before  { background: var(--brand); }

.rule-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.rule-emoji { font-size: 24px; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.rule-title { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 2px; }
.rule-subtitle { font-size: 12px; color: var(--muted); }
.rule-body { font-size: 14.5px; color: var(--muted); line-height: 1.75; padding-left: 38px; }
.rule-body strong { color: var(--text); }
.rule-note { margin-top: 12px; }
.rule-note .rule-body { padding-left: 0; }

/* ── Distance pills: 100 m (fyrværkeri) og 200 m (raketter) har samme farver som ringene på kortet ── */
.dist-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-left: 38px; }
.dist-pill {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; border: 1px solid transparent;
}
.dist-pill.fw, .dist-pill.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.dist-pill.rk { background: var(--no-bg); border-color: var(--no-line); color: var(--no); }
.dist-pill .pill-icon { font-size: 14px; }

/* ── Wind explainer ── */
.wind-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; margin-top: 12px; margin-left: 38px;
  font-size: 13.5px; color: var(--muted); line-height: 1.65;
}
.wind-box strong { color: var(--text); }

/* ── Infografik: bevidst nat-panel i begge temaer ── */
.night-figure { margin: 20px 0; }
.night-figure img { display: block; width: 100%; height: auto; background: var(--night); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.night-figure figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ── Zone table ── */
.zone-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1px; margin-top: 4px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--border);
}
.zone-cell { background: var(--surface); padding: 12px 14px; font-size: 13px; text-align: center; }
.zone-cell.header {
  background: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .06em; color: var(--muted); text-transform: uppercase;
}
.zone-cell.check { color: var(--ok); font-size: 16px; }
.zone-cell.cross { color: color-mix(in srgb, var(--muted) 55%, transparent); font-size: 16px; }
.zone-cell.label { text-align: left; color: var(--text); font-size: 13px; }

/* ── Data sources ── */
.source-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 10px; display: flex; gap: 16px; align-items: flex-start;
}
.source-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.source-body { flex: 1; min-width: 0; }
.source-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 3px; color: var(--text); }
.source-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.source-link { font-size: 12px; color: var(--brand); text-decoration: none; margin-top: 4px; display: inline-block; }
.source-link:hover { text-decoration: underline; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--text); }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.7; }
.faq-a strong { color: var(--text); }
.faq-a a { color: var(--brand); }

/* ── Result badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; vertical-align: middle;
}
.badge.ok       { background: var(--ok-bg);   color: var(--ok); }
.badge.advarsel { background: var(--warn-bg); color: var(--warn); }
.badge.forbudt  { background: var(--no-bg);   color: var(--no); }

hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Tekstkort (privatliv.html) ── */
main .card { border-radius: var(--radius); padding: 24px 28px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--text); }
.card a { color: var(--brand); text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card ul { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 8px 0 12px 20px; }
.card li { margin-bottom: 4px; }
.card .contact-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 18px; border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand); font-size: 15px; font-weight: 500; transition: border-color .2s;
}
.card .contact-link:hover { border-color: var(--brand); text-decoration: none; }

@media (max-width: 520px) {
  .zone-cell { padding: 9px 8px; font-size: 12px; }
  .zone-cell.header { font-size: 10px; }
  .rule-card, main .card { padding: 18px 18px; }
  .rule-body, .dist-row { padding-left: 0; }
  .wind-box { margin-left: 0; }
}
