/* fumble.dk – kraftig sans-serif typografi, ét sammenhængende udtryk */

:root {
  /* Signal-paletten */
  --bg: #f4f1ea;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #3c3a36;
  --muted: #6e6a62;
  --line: #e4dfd3;
  --accent: #e8501a;
  --accent-ink: #ffffff;
  --header: #141414;
  --win: #141414;
  --chip-bg: #eeeae0;
  --radius: 10px;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1b1a18;
    --ink: #f3f0ea;
    --ink-2: #d4d0c8;
    --muted: #9a958c;
    --line: #2c2a26;
    --accent: #ff6a33;
    --accent-ink: #111110;
    --header: #0a0a09;
    --chip-bg: #25231f;
    --win: #ffffff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--header);
  color: #fff;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 3px solid var(--accent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand .icon { width: 36px; height: 36px; flex: none; }
.brand .wordmark { height: 30px; width: auto; display: block; --accent: #ff6a33; }
.main-nav { display: flex; gap: 2px; }
@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding-top: 10px; }
  .brand .icon { width: 30px; height: 30px; }
  .brand .wordmark { height: 22px; }
  .main-nav { justify-content: space-between; margin: 6px -12px 4px; }
  .main-nav a { font-size: 14px; padding: 8px 12px; }
}
.main-nav a {
  text-decoration: none; padding: 8px 12px; border-radius: 6px;
  font: 700 15px/1 var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.04em;
  color: #c3c8d0;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; background: rgba(255,255,255,0.08); }

main.wrap { padding-top: 20px; padding-bottom: 48px; }

/* ---------- Typografi-hjælpere ---------- */
.kicker {
  margin: 0 0 6px; color: var(--accent);
  font: 800 13px/1.2 var(--display); font-stretch: 90%; text-transform: uppercase; letter-spacing: 0.08em;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.section-head h2 { margin: 0; font: 900 22px/1 var(--display); font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.01em; }
.section-head a { font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; }
.page-head { margin: 8px 0 24px; }
.page-head h1 { margin: 0; font: 900 clamp(34px, 6vw, 56px)/0.95 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.005em; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.note { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Kildemærker og hold-chips ---------- */
.src {
  display: inline-flex; align-items: center; gap: 5px;
  font: 800 12px/1 var(--display); font-stretch: 90%; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--src);
}
@media (prefers-color-scheme: dark) { .src { color: var(--ink-2); } }
.src::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--src); }
.lang {
  font: 700 9px/1 var(--body); letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 2px 3px;
}
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--chip-bg); border-radius: 999px; padding: 3px 9px 3px 7px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--team); }
.chip:hover { color: var(--ink); }

/* ---------- Resultatbånd ---------- */
.scores {
  display: flex; gap: 16px; align-items: stretch; overflow-x: auto;
  margin: 0 -16px 28px; padding: 0 16px 6px; scrollbar-width: thin;
}
.scores-group { display: flex; flex-direction: column; gap: 6px; }
.scores-label { margin: 0; font: 800 12px/1 var(--display); font-stretch: 90%; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.scores-row { display: flex; gap: 8px; }
.scores-all {
  align-self: center; white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 13px;
  padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.scores .game { min-width: 132px; }

/* ---------- Kampkort ---------- */
.game {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; display: flex; flex-direction: column; gap: 3px;
}
.game-status { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.game-in .game-status span:first-child { color: var(--accent); }
.tv { overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.gt { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); }
.gt-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--team); flex: none; }
.gt-name { text-decoration: none; font-weight: 600; flex: 1; white-space: nowrap; }
.gt-score { font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.game-post .gt { color: var(--muted); }
.gt.win { color: var(--win); }
.gt.win .gt-name { font-weight: 800; }

/* ---------- Forside-grid ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
@media (max-width: 960px) { .home-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Historier ---------- */
.story { padding: 16px 0; border-bottom: 1px solid var(--line); }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.multi { font-weight: 700; color: var(--ink-2); }
.story-title { margin: 0; font: 800 19px/1.2 var(--body); letter-spacing: -0.01em; }
.story-title a { text-decoration: none; }
.story-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.orig { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }
.summary { margin: 6px 0 0; color: var(--ink-2); }
.story-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.story-foot:empty { display: none; }

.story-lead {
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 26px 26px 22px; border: 0;
  position: relative; overflow: hidden;
}
.story-lead::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent);
}
.story-lead > * { position: relative; z-index: 1; }
.story-lead .story-title { font: 900 clamp(28px, 4.2vw, 46px)/0.98 var(--display); font-stretch: 78%; text-transform: uppercase; max-width: 22ch; }
.story-lead .story-meta, .story-lead .orig, .story-lead .more-sources summary { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.story-lead .summary { color: color-mix(in srgb, var(--bg) 85%, transparent); font-size: 17px; max-width: 60ch; }
.story-lead .src { color: var(--bg); filter: none; }
.story-lead .multi { color: var(--bg); }
.story-lead .chip { background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); }
.story-lead .lang { border-color: color-mix(in srgb, var(--bg) 30%, transparent); color: inherit; }
.story-lead .more-sources ul a { color: var(--bg); }

.big-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 8px; }
@media (max-width: 640px) { .big-grid { grid-template-columns: 1fr; } }
.story-big .story-title { font: 900 25px/1.02 var(--display); font-stretch: 82%; text-transform: uppercase; }
.story-list .story-title { font-size: 17px; }

.more-sources summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; }
.more-sources summary::-webkit-details-marker { display: none; }
.more-sources summary::before { content: '▸ '; }
.more-sources[open] summary::before { content: '▾ '; }
.more-sources ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.more-sources li { display: grid; gap: 2px; font-size: 14px; }
.more-sources li a { text-decoration: none; }
.more-sources li a:hover { text-decoration: underline; }

/* ---------- Sidekolonne ---------- */
.side-box { margin-bottom: 32px; }
.side-dk .section-head { border-color: #d4a017; }
.latest { list-style: none; margin: 0; padding: 0; }
.latest li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.latest-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.latest a { text-decoration: none; font-weight: 600; line-height: 1.35; }
.latest a:hover { text-decoration: underline; }

/* ---------- Program ---------- */
.page-narrow { max-width: 820px; }
.week-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 6px; }
.week-nav a {
  min-width: 34px; text-align: center; padding: 7px 6px; border-radius: 6px; text-decoration: none;
  font: 800 15px/1 var(--display); background: var(--surface); border: 1px solid var(--line);
}
.week-nav a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day { margin-bottom: 28px; }
.day-head { margin: 0 0 10px; font: 900 20px/1 var(--display); font-stretch: 80%; text-transform: uppercase; }
.day-games { display: grid; gap: 8px; }
.game-row { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: center; }
.game-row .game-status span:first-child { visibility: hidden; }
.game-row .game-post .game-status span:first-child, .game-row .game-in .game-status span:first-child { visibility: visible; }
.game-extra { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.kick { font: 800 16px/1 var(--display); color: var(--ink); }
@media (max-width: 560px) { .game-row { grid-template-columns: 1fr; gap: 4px; } .game-extra { padding-left: 4px; } }

/* ---------- Hold ---------- */
.divisions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.division h2 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font: 900 18px/1 var(--display); font-stretch: 80%; text-transform: uppercase; }
.division ul { list-style: none; margin: 0; padding: 0; }
.division a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.division .city { font-weight: 400; color: var(--muted); }
.team-hero { border-left: 8px solid var(--team); padding: 4px 0 4px 18px; margin: 8px 0 28px; }
.team-hero h1 { margin: 0; font: 900 clamp(36px, 7vw, 64px)/0.95 var(--display); font-stretch: 75%; text-transform: uppercase; }
.team-hero .city { display: block; font-size: 0.45em; color: var(--muted); letter-spacing: 0.02em; }
.record { margin: 8px 0 0; font: 900 28px/1 var(--display); }
.record span { font: 500 14px var(--body); color: var(--muted); }
.schedule { width: 100%; border-collapse: collapse; font-size: 14px; }
.schedule td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.schedule .wk { width: 76px; white-space: nowrap; font: 800 13px/1 var(--display); font-stretch: 90%; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.schedule .opp { white-space: nowrap; }
.schedule .opp a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; }
.schedule .at { display: inline-block; width: 30px; color: var(--muted); font-size: 12px; }
.schedule .result { text-align: right; white-space: nowrap; }
.schedule .when { font-size: 12px; color: var(--muted); }
.schedule .bye td { color: var(--muted); font-style: italic; }
.res { font: 800 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.res-W { color: #1f9d55; }
.res-L { color: var(--accent); }
.res-T, .res-live { color: var(--ink-2); }

/* ---------- Historieside og om ---------- */
.story-sources { list-style: none; padding: 0; margin: 0; }
.story-sources li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.story-sources a { font-weight: 700; font-size: 17px; text-decoration: none; }
.prose p, .prose li { max-width: 65ch; font-size: 16px; }
.prose h2 { font: 900 22px/1 var(--display); font-stretch: 80%; text-transform: uppercase; margin: 28px 0 8px; }
.source-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Status ---------- */
.status { width: 100%; border-collapse: collapse; font-size: 14px; }
.status th, .status td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.status .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: #2ea043; }
.status .bad .dot { background: var(--accent); }
.status .err { color: var(--accent); font-size: 12px; max-width: 260px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.site-footer p { max-width: 70ch; margin: 0 0 16px; }
.footer-teams { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-teams a { text-decoration: none; }
.footer-teams a:hover { color: var(--ink); }

/* ---------- Resultatboks (forside) ---------- */
.board { background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden; margin:0 0 28px; }
.board-head { display:flex; align-items:center; gap:8px; height:34px; padding:0 4px 0 12px; border-bottom:1px solid var(--line); white-space:nowrap; min-width:0; }
.board-title { font:900 16px/1 var(--display); font-stretch:80%; text-transform:uppercase; text-decoration:none; }
.board-title:hover { color:var(--accent); }
.board-sub, .board .bye { font-size:11px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; }
.board .bye b { font-weight:600; color:var(--ink-2); }
.board-nav { margin-left:auto; display:flex; gap:2px; flex:none; }
.board-nav button { width:28px; height:26px; border-radius:6px; border:0; background:transparent; color:var(--ink);
  font:700 17px/1 var(--body); cursor:pointer; display:none; place-items:center; }
.board.js .board-nav button { display:grid; }
.board-nav button:hover:not(:disabled) { background:var(--bg); }
.board-nav button:disabled { opacity:.25; cursor:default; }
.board-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); margin-bottom:-1px; }
.board .g { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:6px; height:28px; padding:0 10px;
  border-right:1px solid var(--line); border-bottom:1px solid var(--line); font-size:12.5px; color:var(--muted); min-width:0; }
.board .g:nth-child(4n) { border-right:0; }
.board .tm { display:flex; align-items:center; font-weight:700; min-width:0; text-decoration:none; color:var(--tc); }
.board .tm:hover { text-decoration:underline; }
.board .tm.h { justify-content:flex-end; }
.board .tm.w { font-weight:900; }
.board .g-post .tm:not(.w) { opacity:.8; }
@media (prefers-color-scheme: dark) { .board .tm { color:color-mix(in srgb, var(--tc) 55%, #fff); } }
.board .mid b { font-weight:inherit; }
.board .mid b.sw { font-weight:900; color:var(--ink); }
.board .mid b.sl { font-weight:500; color:var(--muted); }
.board .mid { font:800 13.5px/1 var(--display); font-variant-numeric:tabular-nums; color:var(--ink); text-align:center; white-space:nowrap; }
.board .mid em { font-style:normal; color:var(--muted); font-weight:600; padding:0 1px; }
.board .mid sup { font:700 8px/1 var(--body); color:var(--muted); vertical-align:top; margin-left:2px; }
.board .g-pre .mid { font:600 11px/1 var(--body); color:var(--muted); }
.board .g-in .mid { color:var(--accent); }
.board-more { display:none; align-items:center; justify-content:center; width:100%; height:32px; border:0; border-top:1px solid var(--line);
  background:transparent; font:600 12px/1 var(--body); color:var(--ink-2); cursor:pointer; }
.board-more .m-close, .board.open .board-more .m-open { display:none; }
.board.open .board-more .m-close { display:inline; }
@media (min-width:1100px) {
  .board-grid { grid-template-columns:repeat(8, minmax(0,1fr)); }
  .board .g:nth-child(4n) { border-right:1px solid var(--line); }
  .board .g:nth-child(8n) { border-right:0; }
  .board .g { gap:4px; padding:0 8px; }
  .board .g-pre .mid { font-size:10.5px; }
}
@media (max-width:640px) {
  .board-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .board .g:nth-child(4n) { border-right:1px solid var(--line); }
  .board .g:nth-child(2n) { border-right:0; }
  .board-sub { display:none; }
  .board.js:not(.open) .g.x { display:none; }
  .board.js .board-more { display:flex; }
}
