/* Bygget af build/css.py fra src/forside.html. Ret kilden, ikke denne fil. */
/* Layout: én kolonne på mobil. "Lige nu" øverst med næste kampe og næste træning, fire fliser i 2x2, stille fod. Samme tokens som Håndbog og Kampguide. */
:root{
  --ground:#F1F4EB; --surface:#FFFFFF; --ink:#13201A; --muted:#5D6D61;
  --line:#D7DFD1; --line-strong:#B9C6B3;
  --pitch:#1B4A2A; --pitch-deep:#12341D; --chalk:#F6F8F0;
  --brand:#448E34; --brand-ink:#2C5F22; --brand-tint:#E6F0E1;
  --c-blaa:#2E6FBA; --c-gul:#E4B41C; --c-lilla:#7A4BA8; --c-groen:#3F9C3B; --c-roed:#C8392E;
  --disp:"Bricolage Grotesque","Arial Narrow",Impact,sans-serif;
  --body:"Schibsted Grotesk",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --ground:#0C140F; --surface:#131E16; --ink:#E6ECE2; --muted:#9DAC9F;
  --line:#233227; --line-strong:#334737; --pitch:#173E24; --pitch-deep:#0F2A18; --chalk:#F1F5EC;
  --brand:#62B14F; --brand-ink:#A6D797; --brand-tint:#182919;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--body);font-size:16.5px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
.disp{font-family:var(--disp);font-variation-settings:"wdth" 80,"opsz" 96;font-weight:800;letter-spacing:-.01em;line-height:.95}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:10px}

.wrap{max-width:860px;margin-inline:auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:14px 40px;display:flex;flex-direction:column;gap:18px}

.head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:6px}
.head .eyebrow{font-size:11px;letter-spacing:.26em;text-transform:uppercase;font-weight:600;color:var(--muted)}
.head h1{margin:2px 0 0;font-size:clamp(38px,10vw,56px);color:var(--ink)}
.head .lock{display:flex;align-items:center;gap:12px}
.head .lock img{height:48px;width:auto;flex:none}
@media (min-width:700px){.head .lock{gap:16px}.head .lock img{height:64px}}
.head .season{font-size:13px;color:var(--muted);text-align:right;line-height:1.3}
.head .season b{display:block;color:var(--ink);font-weight:700}

.now{background:var(--pitch);color:var(--chalk);border-radius:16px;padding:16px 16px 14px;position:relative;overflow:hidden}
.now .lines{position:absolute;right:-30px;top:-20px;width:46%;height:auto;opacity:.14;pointer-events:none}
.now .lines *{fill:none;stroke:#fff;stroke-width:2}
.now .lab{font-size:11px;letter-spacing:.24em;text-transform:uppercase;font-weight:600;opacity:.85;position:relative}
.now ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px;position:relative}
.now li{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:start}
/* Trykbare rækker: pil til højre. Træningen øverst som lyst felt, så det ses, at den kan trykkes */
.now li[role="link"]{grid-template-columns:72px 1fr 20px;cursor:pointer}
.now li .go{align-self:center;display:grid;place-items:center;width:20px;height:20px;opacity:.7}
.now li .go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.now li.trn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:12px 10px 12px 12px;margin:2px -6px 4px}
.now li.trn[role="link"]{grid-template-columns:66px 1fr 32px}
.now li.trn .go{width:32px;height:32px;border-radius:50%;background:var(--chalk);color:var(--pitch);opacity:1}
.now li.trn .go svg{width:16px;height:16px;stroke-width:2.8}
.now li.trn .t span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media (hover:hover){.now li[role="link"]:hover .go{opacity:1}.now li.trn[role="link"]:hover{background:rgba(255,255,255,.16)}}
.now li[role="link"]:focus-visible{outline:2px solid var(--chalk);outline-offset:2px;border-radius:10px}
.now .d{font-family:var(--disp);font-variation-settings:"wdth" 85,"opsz" 48;font-weight:800;font-size:22px;line-height:1;padding-top:2px;white-space:nowrap}
.now .d small{display:block;font-family:var(--body);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;opacity:.8;margin-top:3px;white-space:normal}
.now .t{font-size:16px;line-height:1.35;min-width:0}
.now .t b{font-weight:700}
.now .t span{display:block;font-size:14px;opacity:.85}
.now .t span.m{opacity:1;color:rgba(246,248,240,.85)}
.now .t .meet{color:#fff;font-weight:700}
.now .t .tag{display:table;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;padding:1px 6px;border-radius:4px;background:rgba(255,255,255,.16);margin:0 0 4px}
.now .t .tag.A{background:var(--c-groen);box-shadow:inset -10px 0 0 var(--c-lilla);padding-right:16px}
.now .t .tag.B{background:var(--c-blaa);box-shadow:inset -10px 0 0 var(--c-gul);padding-right:16px}
.now .t .tag.T{background:transparent;border:1px solid rgba(255,255,255,.6);padding:0 5px}
.now .hint{font-size:14px;opacity:.8;margin:8px 0 0;position:relative}
.now .more{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-size:14px;font-weight:600;color:var(--chalk);border-bottom:1px solid rgba(255,255,255,.35);padding-bottom:1px;position:relative}
.now .srcnote{font-size:12.5px;opacity:.8;margin:10px 0 0;position:relative}
.now .more svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{display:flex;flex-direction:column;justify-content:space-between;gap:22px;min-height:148px;padding:13px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--line);color:var(--ink);transition:transform .12s ease,border-color .12s ease;min-width:0}
.tile:hover{border-color:var(--brand)}
.tile:active{transform:scale(.985)}
.tile svg{width:28px;height:28px;stroke:var(--brand-ink);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tile b{display:block;font-family:var(--disp);font-variation-settings:"wdth" 78,"opsz" 48;font-weight:800;font-size:20px;line-height:1;letter-spacing:-.01em;overflow-wrap:normal;hyphens:manual}
.tile span{display:block;font-size:13.5px;color:var(--muted);margin-top:5px;line-height:1.35}
.tile.prim{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}
.tile.prim svg{stroke:#fff}
.tile.prim span{color:rgba(255,255,255,.8)}
.tilew{position:relative;display:flex;min-width:0}
.tilew > .tile{flex:1}
.tile-x{display:none}

.foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px;font-size:13.5px;color:var(--muted)}
.foot .lock{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:10px;text-decoration:none;color:var(--ink);font-weight:600;font-size:15px}
.foot .lock svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.foot .lock:hover{border-color:var(--brand);color:var(--brand-ink)}

/* Ændringsbjælken øverst (forside.js): kamp flyttet eller aflyst, tid på plads, mødetid, besked fra trænerne. Kun når der er noget. */
.chg{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;animation:chg-in .32s cubic-bezier(.2,.8,.2,1) both}
.chg-h{display:flex;align-items:stretch}
.chg[hidden]{display:none}
.chg-a{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 4px 8px 14px;color:var(--ink);text-decoration:none;font-size:14.5px;line-height:1.3}
.chg-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--c-gul)}
.k-cancel>.chg-dot,.k-gone>.chg-dot{background:var(--c-roed)}
.k-note>.chg-dot{background:var(--brand)}
.chg-tx{min-width:0;flex:1;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.chg-tx b{font-weight:700;margin-right:6px}
.chg-n{flex:none;align-self:center;display:inline-flex;align-items:center;gap:2px;min-height:32px;margin:0 2px;border:0;cursor:pointer;font:inherit;font-size:12px;font-weight:700;color:var(--brand-ink);background:var(--brand-tint);border-radius:6px;padding:0 6px 0 8px;white-space:nowrap}
.chg-n svg{width:14px;height:14px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:rotate .25s}
.chg.open .chg-n svg{rotate:180deg}
.chg-n::before{content:"";position:absolute;inset:-6px}.chg-n{position:relative}
.chg-l{display:none;border-top:1px solid var(--line)}
.chg.open .chg-l{display:block;animation:chg-in .25s ease both}
.chg-r{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 14px;color:var(--ink);text-decoration:none;font-size:14.5px;line-height:1.3}
.chg-r+.chg-r{border-top:1px solid var(--line)}
.chg-x{flex:none;width:44px;border:0;background:none;color:var(--muted);cursor:pointer;display:grid;place-items:center;padding:0}
.chg-x svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round}
.chg.out{animation:chg-out .22s ease-in both}
@keyframes chg-in{from{opacity:0;transform:translateY(-6px)}}
@keyframes chg-out{to{opacity:0;transform:translateY(-6px)}}

@media (min-width:700px){
  .wrap{padding-block:28px 60px;gap:22px}
  .tiles{grid-template-columns:repeat(4,1fr);gap:12px}
  .tile{min-height:170px;padding:18px;justify-content:flex-start;gap:30px}
  .tile b{font-size:clamp(16px,1.35vw,20px);font-variation-settings:"wdth" 78,"opsz" 48}
  .now{padding:22px 24px 20px}
  .now ul{grid-template-columns:1fr 1fr;gap:12px 32px;grid-auto-flow:row dense}
  .now li.A{grid-column:1}
  .now li.B{grid-column:2}
  .now li.trn{grid-column:1/-1;margin:2px 0 6px}
}
/* Mobil: topbjælken viser allerede logo og Årgang 2016, og ugens program nås fra flisen lige nedenunder,
   så Holdkalender står over folden, også på en lille telefon */
/* Computer: fliserne viser næste lag under Lige nu. Programmet: ugens øvelser og næste uges tema. Kalenderen: kampene efter
   dem i Lige nu. Håndbog og Kampguide: tre faste genveje (blokken). Listerne står i bunden, så fliserne flugter. */
@media (min-width:900px){
  .tile{min-height:236px}
  .tile > div{flex:1;display:flex;flex-direction:column;min-width:0}
  .tilew.has-x .tile .sub{display:none}
  .tile-x{display:block;list-style:none;margin:auto 0 0;padding:12px 0 0;font-size:13.5px;line-height:1.3;color:var(--muted)}
  .tile-x li{display:block;padding:5px 0;border-top:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tile-x li:first-child{border-top:0}
  .tile-x b{display:inline;font:inherit;font-weight:700;color:var(--ink);letter-spacing:0}
  .tile-x .nx{color:var(--ink);font-weight:600}
  .tile-x .hd{display:inline-block;min-width:18px;margin:0 4px 0 2px;padding:0 4px;border-radius:4px;font-style:normal;font-size:11px;font-weight:700;line-height:17px;text-align:center;color:#fff;vertical-align:1px}
  .tile-x .hd.A{background:var(--c-groen)}
  .tile-x .hd.B{background:var(--c-blaa)}
  .tile.prim .tile-x{color:rgba(255,255,255,.8)}
  .tile.prim .tile-x li{border-color:rgba(255,255,255,.18)}
  .tile.prim .tile-x .nx,.tile.prim .tile-x b{color:#fff}
  .tilew.has-l .tile{padding-bottom:104px}
  .tile-l{position:absolute;left:18px;right:18px;bottom:16px;padding:0}
  .tile-l a{color:var(--brand-ink);font-weight:600}
  .tile-l a:hover{text-decoration:underline;text-underline-offset:3px}
}
@media (max-width:699px){
  .wrap{gap:12px;padding-top:12px}
  .head{display:none}
  .now .more{display:none}
  .tile{min-height:108px;gap:12px}
}
@media (prefers-reduced-motion:reduce){.tile{transition:none}.chg,.chg.out{animation:none}}
