/* =========================================================================
   RECEPTA 2.0, forenelighedslag
   Vidensiderne og de juridiske sider beholder deres oprindelige markup, så
   den compliance-følsomme tekst ikke røres. Dette ark giver de gamle
   klassenavne (.hero, .value, .card, .biv, .kort, ul.check ...) 2.0-udseende.
   Indlæses EFTER recepta-2.css.
   ========================================================================= */

/* ---------- Sidehoved på de gamle sider ---------- */
.hero { text-align: left; padding: 40px 0 4px; }
.hero h1 { font-size: clamp(29px, 5vw, 46px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 12px; text-wrap: balance; }
.hero p { color: var(--muted); font-size: 17px; max-width: 62ch; }
.eyebrow, .kicker {
  display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 700; margin-bottom: 8px;
}
.lead, .lede { color: var(--muted); font-size: 17px; margin-bottom: 8px; max-width: 68ch; }
.opdateret { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.opdateret a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Brødtekst ---------- */
article, main { padding-bottom: 24px; }
article section, main section { margin-top: 34px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -.018em; }
main h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 10px; }
h2 { font-size: clamp(21px, 3vw, 27px); margin-bottom: 10px; }
h3 { font-size: 17px; }
p { color: var(--muted); font-size: 16px; margin-bottom: 12px; line-height: 1.65; }
a { color: var(--accent-dark); }
strong, b { color: var(--ink); }

/* Lister uden klasse: diskret blå prik */
article ul:not([class]), main ul:not([class]) { list-style: none; margin: 0 0 12px; }
article ul:not([class]) li, main ul:not([class]) li {
  position: relative; padding: 5px 0 5px 20px; color: var(--muted); font-size: 16px;
}
article ul:not([class]) li::before, main ul:not([class]) li::before {
  content: ""; position: absolute; left: 3px; top: 1.05em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Kort ---------- */
.card, .value, .kort {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; margin-bottom: 14px;
}
.card h2, .value h3, .kort h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.value h3 { color: var(--accent-dark); }
.card p, .value p, .kort p { font-size: 15px; margin-bottom: 10px; }
.card p:last-child, .value p:last-child, .kort p:last-child { margin-bottom: 0; }
.card h3 { color: var(--ink); }
.subtitle {
  display: block; font-size: 12px; color: var(--accent-text); font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 8px;
}

/* ---------- Ja/nej-lister ---------- */
ul.check, ul.cross, ul.tips, ul.roed { list-style: none; margin: 6px 0 14px; }
ul.check li, ul.cross li, ul.tips li, ul.roed li {
  position: relative; padding: 6px 0 6px 30px; color: var(--muted); font-size: 15.5px; line-height: 1.6;
}
ul.check li::before, ul.tips li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--accent);
}
ul.check li::after, ul.tips li::after {
  content: "✓"; position: absolute; left: 5px; top: 6px; color: #fff; font-size: 11px; font-weight: 700;
}
ul.cross li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 19px; height: 19px;
  border-radius: 50%; background: #9c5b5b;
}
ul.cross li::after { content: "✕"; position: absolute; left: 5.5px; top: 6px; color: #fff; font-size: 10px; font-weight: 700; }
ul.roed li { color: var(--ink); }
ul.roed li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--warn-ink);
}
ul.roed li::after { content: "!"; position: absolute; left: 8px; top: 6px; color: #fff; font-size: 11px; font-weight: 800; }

/* ---------- Bivirkningsrækker ---------- */
.biv { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.biv:last-of-type { border-bottom: none; }
.biv b { flex: 0 0 160px; color: var(--ink); font-weight: 600; }
.biv span { color: var(--muted); }
@media (max-width: 520px) { .biv { flex-direction: column; gap: 2px; } .biv b { flex: none; } }

/* ---------- Advarsler ---------- */
.alarm { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.alarm h2, .alarm h3 { color: var(--warn-ink); }
.akut { font-size: 14px; color: var(--warn-ink); font-weight: 700; margin-top: 10px; }
.note, .warn-note, .mitid-info {
  font-size: 14px; color: var(--muted); background: var(--band);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 20px; line-height: 1.65;
}
.note a, .warn-note a { color: var(--accent-dark); font-weight: 600; }
.warn-note { background: var(--accent-light); border-color: #C3D3F2; color: var(--ink); }
.mitid-info strong { color: var(--ink); }

/* ---------- Tabeller ---------- */
table {
  width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 560px) { table { font-size: 14px; } th, td { padding: 9px 11px; } }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff; width: auto;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-brand, .btn-orange { background: var(--accent); color: #fff; }
.btn-ghost, .btn.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover, .btn.secondary:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--white); }
.btn-mitid { background: #0060e6; border-color: #0060e6; }
.btn-mitid:hover { background: #004fbe; border-color: #004fbe; }
.btn:disabled { opacity: .6; cursor: wait; }
.knapper, .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
article > .btn, main > .btn { margin-top: 26px; }

/* ---------- 404 ---------- */
.kode { font-size: 14px; font-weight: 700; letter-spacing: .18em; color: var(--accent-dark); margin-bottom: 14px; }
.kontakt { margin-top: 30px; font-size: 15px; color: var(--muted); }
.kontakt a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }

/* ---------- Login ---------- */
main .card#loginCard, main .card {
  box-shadow: 0 2px 4px rgba(26, 29, 46, .05), 0 14px 34px rgba(26, 29, 46, .07);
}
.card .sub { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.msg { display: none; font-size: 14px; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.msg.error { display: block; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.msg.success { display: block; background: #eaf6ef; color: var(--ok); border: 1px solid #cbe7d6; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input {
  width: 100%; padding: 13px 14px; font-size: 15px; color: var(--ink); font-family: inherit;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 13px; outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus { border-color: var(--accent); background: var(--white); }
.linkrow { text-align: center; margin-top: 14px; font-size: 14px; }
.linkrow a, .linkrow button {
  color: var(--accent-dark); background: none; border: none; cursor: pointer;
  font-size: 14px; text-decoration: underline; font-family: inherit;
}
.hidden { display: none !important; }

/* ---------- Gamle indpakninger ---------- */
.wrap, .inner { max-width: 820px; margin: 0 auto; padding: 0 18px; }
.hero.wrap, article.wrap { max-width: 820px; }
/* 20/8-26: min-width:0 af samme grund som i recepta-2.css — tabeller med
   white-space:nowrap må ikke kunne tvinge main bredere end skærmen. */
main { width: 100%; max-width: 820px; margin: 0 auto; min-width: 0; padding-left: 18px; padding-right: 18px; }
main.bred { max-width: 1240px; }

/* ---------- Knapfarver vinder over de gamle linkfarver ----------
   .kontakt a og lignende arvede regler er mere specifikke end .btn og
   farvede knapteksten mørkeblå på blå bund (1,5:1). Her sættes den fast. */
a.btn, a.btn:visited, a.btn:hover, a.btn-brand, a.btn-orange, a.btn-mitid { color: #fff; }
a.btn-ghost, a.btn-ghost:visited, a.btn.secondary { color: var(--ink); }
a.btn-ghost:hover, a.btn.secondary:hover { color: var(--accent-dark); }

/* Knapper inde i prosa: `article.prosa a` (0,1,2) slår `a.btn` (0,1,1), så
   knapteksten blev mørkeblå på blå. Her får knappen den specificitet, den skal
   have for at vinde, uanset hvor i brødteksten den står. */
article a.btn, article a.btn:visited, main a.btn, main a.btn:visited,
article.prosa a.btn, .side-hoved-kol a.btn { color: #fff; }
article a.btn.ghost, main a.btn.ghost, article.prosa a.btn.ghost,
.side-hoved-kol a.btn.ghost { color: var(--ink); }
article a.btn.ghost:hover, main a.btn.ghost:hover { color: var(--accent-dark); }
.slutbaand a.btn.ghost { color: #fff; }
