/* ==========================================================================
   Alhede-Cup – fælles stylesheet for den offentlige side og admin
   ========================================================================== */

:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --text: #15201a;
  --muted: #5b6a62;
  --line: #e2e8e4;
  --line-strong: #cfd8d3;
  --accent: #13803c;
  --accent-hover: #0f6a31;
  --accent-ink: #ffffff;
  --accent-soft: #e7f5ec;
  --accent-ring: rgba(19, 128, 60, .28);
  --brand: #25b24c;
  --hero-1: #13803c;
  --hero-2: #25b24c;
  --win: #13803c;
  --loss: #b03a3a;
  --live: #d6452f;
  --warn-bg: #fff6da;
  --warn-ink: #6b4e00;
  --err-bg: #fde8e8;
  --err-ink: #8a1c1c;
  --b-tag: #eef2f0;
  --tip-bg: #15201a;
  --tip-ink: #ffffff;
  --shadow: 0 1px 2px rgba(16, 32, 24, .05), 0 4px 14px rgba(16, 32, 24, .06);
  --shadow-lg: 0 10px 30px rgba(16, 32, 24, .12);
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1411;
    --surface: #161e1a;
    --surface-2: #1b2520;
    --text: #e7eeea;
    --muted: #9aaba2;
    --line: #26312b;
    --line-strong: #34413a;
    --accent: #4fd27a;
    --accent-hover: #6ade8f;
    --accent-ink: #06240f;
    --accent-soft: #163322;
    --accent-ring: rgba(79, 210, 122, .32);
    --hero-1: #0f5a2b;
    --hero-2: #13803c;
    --win: #4fd27a;
    --loss: #f19a9a;
    --live: #ff7a63;
    --warn-bg: #3a3112;
    --warn-ink: #f3d98b;
    --err-bg: #3d1a1a;
    --err-ink: #f4b4b4;
    --b-tag: #222d27;
    --tip-bg: #e7eeea;
    --tip-ink: #0e1411;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* ---------- Grundlag ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 1.25rem 0 .5rem; line-height: 1.15; letter-spacing: -.02em; }
h2, .h2 { font-size: 1.15rem; margin: 0 0 .75rem; display: block; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
small, .small { font-size: .82rem; }
code { background: var(--b-tag); padding: .05rem .35rem; border-radius: 6px; font-size: .9em; }
.icon { flex: none; vertical-align: -3px; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 6px; }

/* ---------- Offentligt sidehoved ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.05rem; line-height: 1.15; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.logo { border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 0 1px var(--line); }
.daynav { display: flex; flex-wrap: wrap; gap: .3rem; }
.daynav a {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.daynav a:hover { background: var(--b-tag); color: var(--text); }
.daynav a.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Forside-banner ---------- */
.hero {
  display: flex; align-items: center; gap: 1.25rem; margin: 1.25rem 0 1rem; padding: 1.5rem;
  border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, var(--hero-2) 0%, var(--hero-1) 60%);
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 .25rem; color: #fff; }
.hero p { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, .9); }
.hero-logo { flex: none; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
@media (max-width: 520px) { .hero { padding: 1.1rem; gap: .9rem; } .hero-logo { width: 64px; height: 64px; } }

/* ---------- Kort og struktur ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
.card > h2:first-child, .card > .title-row:first-child h2 { margin-top: 0; }
.crumbs { margin: 1.1rem 0 0; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.foot { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; padding-top: 1.5rem; padding-bottom: 2.5rem; }
.foot img { border-radius: 50%; background: #fff; flex: none; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.title-row h1, .title-row h2 { margin-bottom: .5rem; }

/* ---------- Knapper ---------- */
.button, button, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 40px; padding: .5rem 1rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: background-color .15s, box-shadow .15s, transform .05s;
}
.button:hover, button:hover { background: var(--accent-hover); color: var(--accent-ink); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; }
button.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
button.secondary:hover { background: var(--b-tag); }
button.ghost { background: transparent; color: var(--text); border-color: transparent; }
button.ghost:hover { background: var(--b-tag); }
button.danger { background: transparent; color: var(--err-ink); border-color: color-mix(in srgb, var(--err-ink) 35%, transparent); }
button.danger:hover { background: var(--err-bg); }
button.small { min-height: 32px; padding: .25rem .65rem; font-size: .85rem; border-radius: 8px; }
button.link { background: none; border: 0; min-height: 0; padding: 0; color: var(--accent); font-weight: inherit; text-decoration: underline; }
form.inline { display: inline; margin: 0; }

/* ---------- Formularer ---------- */
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: .5rem .7rem; min-height: 40px; max-width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input[type=search] { width: 100%; font-size: 1.05rem; min-height: 46px; padding-left: .9rem; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
textarea { width: 100%; min-height: 8rem; }
input.num { width: 5.5rem; }
input.score { width: 4rem; text-align: center; font-size: 1.15rem; font-weight: 700; }
input.time { width: 7rem; }
label { display: inline-flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
label > span { display: block; }
label > span .tip { vertical-align: -2px; margin-left: .15rem; }
label.check { flex-direction: row; align-items: center; gap: .5rem; color: var(--text); font-weight: 500; font-size: .95rem; }
label.wide { display: flex; margin-bottom: 1rem; }
label.wide input { width: 100%; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem 1.1rem; margin-bottom: 1rem; }
.grid.narrow { grid-template-columns: repeat(auto-fill, minmax(130px, 170px)); }
.grid label > input:not([type=checkbox]), .grid label > select { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.filter { margin: .5rem 0 1rem; }

/* ---------- ⓘ-tips ---------- */
.tip { position: relative; display: inline-flex; color: var(--muted); cursor: help; border-radius: 50%; }
.tip .icon { width: 16px; height: 16px; }
.tip:hover, .tip:focus-visible, .tip.open { color: var(--accent); }
.tip::after {
  content: attr(data-tip); position: absolute; z-index: 30; left: -10px; top: calc(100% + 8px);
  width: max-content; max-width: min(300px, 78vw); padding: .55rem .7rem; border-radius: 8px;
  background: var(--tip-bg); color: var(--tip-ink); box-shadow: var(--shadow-lg);
  font-size: .82rem; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .12s, transform .12s, visibility .12s; pointer-events: none;
}
.tip:hover::after, .tip:focus-visible::after, .tip.open::after { opacity: 1; visibility: visible; transform: none; }
.js .tip::after { position: fixed; left: var(--tip-x, 8px); top: var(--tip-y, 8px); }

/* ---------- Lister ---------- */
.teamlist, .divlist { list-style: none; padding: 0; margin: .5rem 0 0; }
.teamlist li a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.teamlist li a:hover { color: var(--accent); }
.teamlist .muted { font-size: .85rem; font-weight: 500; }
.divlist { columns: 2 220px; }
.divlist li { padding: .25rem 0; break-inside: avoid; }
.divlist a { font-weight: 600; }
details summary { cursor: pointer; color: var(--accent); margin: .6rem 0; font-weight: 600; }

/* ---------- Kampe ---------- */
.matches { list-style: none; padding: 0; margin: 0; }
.match { border-top: 1px solid var(--line); padding: .7rem 0; }
.match:first-child { border-top: 0; }
.match .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .7rem; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.match .meta .time {
  font-weight: 750; color: var(--text); font-size: .9rem; font-variant-numeric: tabular-nums;
  background: var(--b-tag); padding: .05rem .5rem; border-radius: 6px;
}
.match.done .meta .time { background: transparent; padding-left: 0; }
.match .side { display: flex; justify-content: space-between; gap: 1rem; padding: .1rem 0; }
.match .side a { text-decoration: none; font-weight: 600; color: var(--text); }
.match .side a:hover { color: var(--accent); }
.match .side a, .match .side .placeholder { overflow-wrap: anywhere; }
.match .side b { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.match .side.win a, .match .side.win b { font-weight: 800; color: var(--win); }
.match .note { font-size: .78rem; color: var(--muted); }
.placeholder { color: var(--muted); font-style: italic; }
.now { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 999px; background: var(--b-tag); color: var(--muted); font-size: .74rem; font-weight: 600; font-style: normal; }
.next-match .now { background: rgba(255, 255, 255, .2); color: #fff; }
.pool-progress { font-size: .8rem; font-weight: 650; color: var(--muted); background: var(--b-tag); padding: .15rem .6rem; border-radius: 999px; }
.pool-progress.done { color: var(--accent); background: var(--accent-soft); }
a.me { font-weight: 800; color: var(--accent) !important; }

/* ---------- Tabeller ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: .55rem .5rem; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:hover td, table tr:hover td { background: var(--surface-2); }
th.l, td.l { text-align: left; white-space: normal; }
td.l a { text-decoration: none; font-weight: 600; color: var(--text); }
td.l a:hover { color: var(--accent); }
tr.me td { background: var(--accent-soft) !important; font-weight: 800; }
tr.me td.l a { color: var(--accent); }
.tag { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 750; }
.tag.a { background: var(--accent); color: var(--accent-ink); }
.tag.b { background: var(--b-tag); color: var(--text); }
@media (max-width: 480px) {
  .standings th, .standings td { padding: .45rem .25rem; }
  .standings .gd { display: none; }
}

/* ---------- Beskeder ---------- */
.flash { padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.flash.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn-ink) 25%, transparent); }
.flash.err { background: var(--err-bg); color: var(--err-ink); border-color: color-mix(in srgb, var(--err-ink) 25%, transparent); }
ul.warnings { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius-sm); padding: .7rem 1rem .7rem 2rem; }

.testdata-public { background: var(--warn-bg); color: var(--warn-ink); text-align: center; font-weight: 700; font-size: .9rem; padding: .5rem 16px; border-bottom: 1px solid var(--line); }

/* ---------- Mine hold ---------- */
#mine-hold { margin-bottom: 1.25rem; scroll-margin-top: 80px; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.team-card p { margin: .6rem 0 0; }
.tc-head { display: flex; flex-direction: column; }
.tc-name { font-size: 1.15rem; font-weight: 800; text-decoration: none; color: var(--text); letter-spacing: -.01em; }
.tc-standing { font-weight: 650; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.team-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.team-head h1 { margin-bottom: 0; }
.team-head p { margin-top: .2rem; }
.next-match {
  display: grid; gap: .1rem; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-top: .75rem;
  color: #fff; background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
}
.next-match a { color: #fff; font-weight: 700; }
.next-match.live { background: linear-gradient(135deg, #a8321f, var(--live)); }
.next-match.empty { color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line-strong); }
.nm-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; display: flex; align-items: center; gap: .5rem; }
.nm-time { font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nm-court { font-weight: 700; }
.nm-meta { font-size: .82rem; opacity: .85; }
.badge { display: inline-block; background: #fff; color: var(--live); border-radius: 999px; padding: .05rem .55rem; font-size: .72rem; letter-spacing: 0; text-transform: none; font-weight: 800; }
.next-match.live .badge { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .next-match.live .badge { animation: none; } }
.result { white-space: nowrap; font-variant-numeric: tabular-nums; }
.result.r-v { color: var(--win); }
.result.r-t { color: var(--loss); }
.paths { list-style: none; padding: 0; margin: 0; }
.paths li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.paths li:last-child { border-bottom: 0; }
.find-team p { margin-top: 0; }
.follow button { min-height: 42px; }
.team-head { margin-bottom: 1rem; }

/* ==========================================================================
   Admin
   ========================================================================== */
body.admin { --sidebar: 248px; }
body.admin .wrap { max-width: 1180px; padding-bottom: 3rem; }
.admin table td, .admin table th { text-align: left; }
.admin td form { margin: 0; }
.admin td .row { flex-wrap: nowrap; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  display: flex; flex-direction: column; gap: 1rem; padding: 1rem .75rem;
  background: var(--surface); border-right: 1px solid var(--line);
}
.sidebar .brand { margin: 0 .4rem .25rem; }
.sidenav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sidenav a {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.sidenav a .icon { color: var(--muted); }
.sidenav a:hover { background: var(--b-tag); color: var(--text); }
.sidenav a.active { background: var(--accent-soft); color: var(--accent); }
.sidenav a.active .icon { color: var(--accent); }
.sidebar-user { display: flex; align-items: center; gap: .55rem; padding: .7rem .5rem 0; border-top: 1px solid var(--line); margin: 0; }
.sidebar-user .who { flex: 1; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; flex: none; }
.admin-main { margin-left: var(--sidebar); min-height: 100vh; }
body.no-nav .admin-main { margin-left: 0; }
.mobilebar { display: none; }
.help-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
  .admin-main { margin-left: 0; }
  .mobilebar {
    position: sticky; top: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between;
    padding: .5rem 16px; background: color-mix(in srgb, var(--surface) 90%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .mobilebar .brand { margin: 0; }
  .js .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .js body.nav-open .sidebar { transform: none; }
  html:not(.js) .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  html:not(.js) .admin-main { margin-left: 0; }
}

.tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; padding: .25rem; background: var(--b-tag); border-radius: 12px; width: fit-content; max-width: 100%; }
.tabs a { padding: .45rem .9rem; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: .92rem; text-decoration: none; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.stat { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stats .card { margin: 0; }
.stats .card h2 { font-size: 1rem; }
.login { max-width: 400px; margin: 3rem auto; }
.login label { display: flex; margin-bottom: .9rem; }
.login input { width: 100%; }
.login button { width: 100%; }
.order-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.order-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.order-list li .grow { flex: 1; display: inline-flex; align-items: center; gap: .35rem; }
.order-list li.off { color: var(--muted); }
.num-badge { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .85rem; flex: none; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .9rem; counter-reset: step; }
.steps li { counter-increment: step; padding: .3rem .75rem; border-radius: 999px; background: var(--b-tag); color: var(--muted); font-size: .85rem; font-weight: 600; }
.steps li::before { content: counter(step) ". "; }
.steps li.done { background: var(--accent-soft); color: var(--accent); }
.steps li.done::before { content: "✓ "; }
.steps li.current { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist a { text-decoration: none; color: var(--text); }
.checklist a:hover { color: var(--accent); }
.checklist .mark { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; background: var(--b-tag); box-shadow: inset 0 0 0 2px var(--line-strong); }
.checklist li.done .mark { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.checklist li.warn .mark { background: var(--warn-bg); color: var(--warn-ink); box-shadow: none; }
.checklist .muted { display: block; font-size: .85rem; }

/* ---------- Hjælp ---------- */
.help { max-width: 80ch; }
.help h2 { font-size: 1.3rem; margin-top: .25rem; }
.help h3 { margin-top: 1.25rem; }
.help li { margin: .3rem 0; }
.help section { scroll-margin-top: 1rem; }
.toc { columns: 2 240px; padding-left: 1.2rem; margin: 0; }
.toc li { break-inside: avoid; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: .7rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: .9rem 0; }
.callout.warn { border-color: var(--warn-ink); background: var(--warn-bg); color: var(--warn-ink); }
.ui { font-weight: 700; white-space: nowrap; }
.help table td, .help table th { text-align: left; white-space: normal; vertical-align: top; }
.help table th { text-transform: none; font-size: .85rem; letter-spacing: 0; }

/* ---------- Udskrift ---------- */
@media print {
  .top, .filter, .foot, details summary, .sidebar, .mobilebar, .tabs, .follow, .help-link { display: none !important; }
  .admin-main { margin: 0 !important; }
  .card, .team-card { border: 0; padding: 0; box-shadow: none; }
  .hero, .next-match { background: none !important; color: #000 !important; box-shadow: none; padding: 0; }
  .hero h1, .hero p, .next-match a { color: #000 !important; }
  body { background: #fff; color: #000; }
  details > * { display: block; }
}
