/* ==========================================================================
   Minimatch · Namensseiten (Ranglisten, Listen, Seite pro Name)
   Baut auf style.css auf (Farben, Schrift, Buttons, Kopf und Fuß).
   ========================================================================== */

.nav a[aria-current="page"] { background: var(--surface); }

/* Unterleiste mit den Listen, nur auf dem Handy (dort ist .nav ausgeblendet) */
.subnav { display: none; border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .875rem; }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 980px) { .subnav { display: block; } }

.navne { padding-block: 24px clamp(48px, 7vw, 88px); }
.navne > * + * { margin-top: clamp(32px, 5vw, 48px); }
.navne h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.08; }
.navne h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 40em; margin-top: 12px; }
.intro p + p { margin-top: 12px; }
.intro p { max-width: 44em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--muted); }
.navne > .crumbs + * { margin-top: 16px; }

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border-radius: var(--r-tile); padding: 16px 18px; }
.fact b { display: block; font-size: 1.6rem; line-height: 1.1; }
.fact span { font-size: .875rem; color: var(--muted); }

/* Kurve */
.chart { margin: 0; background: var(--card); border-radius: var(--r-card); padding: 20px 20px 14px; box-shadow: var(--shadow-card); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-size: 13px; fill: var(--muted); font-family: var(--font); }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis { stroke: var(--line); }
.chart .area { fill: var(--surface); }
.chart .line { fill: none; stroke: var(--deep); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart figcaption { font-size: .8125rem; color: var(--muted); margin-top: 6px; }

/* Ranglisten */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.rank { width: 100%; border-collapse: collapse; font-size: 1rem; }
.rank caption { text-align: left; font-weight: 700; font-size: 1.25rem; padding-bottom: 8px; }
.rank th, .rank td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.rank th { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.rank td.n, .rank th.n { text-align: right; font-variant-numeric: tabular-nums; }
.rank td.pl { width: 3em; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank a { color: var(--ink); font-weight: 700; text-decoration: none; }
.rank a:hover { text-decoration: underline; }
.chg { font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.chg.up { color: #3E7A4C; }
.chg.down { color: #B5574B; }
.chg.same { color: var(--muted); }
.chg.new { color: var(--deep); background: var(--surface); padding: 2px 8px; border-radius: var(--r-pill); }

/* Chips und Namenslisten */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chips span { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.chips a:hover { background: var(--surface); }
.chips a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.letters a { min-width: 44px; text-align: center; }
.namelist { columns: 4 170px; column-gap: 24px; }
.namelist li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.namelist a { font-weight: 700; color: var(--ink); text-decoration: none; }
.namelist a:hover { text-decoration: underline; }
.namelist .plain { font-weight: 600; }
.namelist small { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Karten mit Highlights (Nye på listen, Største stigning) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--r-card); padding: 20px 22px; box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: 10px; }
.card li { padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; }
.card a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* FAQ und Absätze */
.qa h3 { margin-top: 20px; }
.qa p { margin-top: 6px; max-width: 44em; }
details.years summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
details.years table { max-width: 420px; }

/* Godkendt-Block und CTA */
.godkendt { background: var(--sand); border-radius: var(--r-card); padding: clamp(20px, 4vw, 32px); }
.godkendt p { margin-top: 10px; max-width: 48em; }
.cta { background: var(--brand); border-radius: var(--r-card); padding: clamp(24px, 5vw, 44px); text-align: center; }
.cta p { max-width: 34em; margin: 10px auto 20px; }

/* Suche „Er navnet godkendt?“ */
.search { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.search input { flex: 1 1 240px; height: 52px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); font: inherit; background: #fff; }
.result { margin-top: 14px; font-weight: 600; min-height: 1.6em; }
.result.ok { color: #3E7A4C; }
.result.no { color: #B5574B; }

.year-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-src { font-size: .8125rem; }
@media (max-width: 560px) {
  .chart { padding: 14px 10px 10px; }
  .chart text { font-size: 24px; }
  .chart .line { stroke-width: 5; }
}
