/* Layout: one-column mobile app — hero, "nu & næste", day timeline, bottom tab bar. FOF yellow circle + pink dot as the only flourish. */
/* FOF designguide (juni 2025): hvid baggrund, sort tekst, 18 farver i skiftende brug,
   cirklen som "5. element". Typografi: Mabry (brandfont) – her med kompatibilitetsfonten Manrope.
   Har I Mabry som webfont (woff2), så læg filerne i /fonts og fjern kommentaren om @font-face nedenfor. */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
/*
@font-face { font-family: "Mabry Pro"; src: url("fonts/MabryPro-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Mabry Pro"; src: url("fonts/MabryPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mabry Pro"; src: url("fonts/MabryPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
*/
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --fg: #111111;
  --muted: #5F5E5A;
  --line: #E3E1DC;
  --yellow: #FFFFA7;       /* Pop corn */
  --yellow-ink: #111111;
  --pink: #FAB0A6;         /* Lys grape */
  --beige: #D1B89E;        /* Cappuccino */
  --beige-soft: #F4EDE5;
  --yellow-soft: #FFFFD9;
  --ok: #44855A;           /* Flaske grøn */
  --warn: #C05E45;         /* Terracotta */
  --tomat: #F15546;
  --logo-dot: #F15546;
  --circle: #FFFFA7;
  --font: "Mabry Pro", "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 640px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 calc(96px + env(safe-area-inset-bottom, 0px)); }

/* Hero */
.hero { position: relative; padding-block: 28px 20px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: var(--circle); right: -40px; top: -30px; z-index: 0; transition: background 1.2s ease; }
.hero > * { position: relative; z-index: 1; }
.logo { display: block; width: 190px; max-width: 60%; height: auto; }
.logo .dot { fill: var(--logo-dot); transition: fill 1.2s ease; }
.hero h1 { font-weight: 300; font-size: clamp(38px, 11vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 10px; text-wrap: balance; color: var(--fg); }
.hero .when { font-size: 17px; }

/* Now / next */
.now { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 22px; }
.now .lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.now .row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: baseline; cursor: pointer; }
.now .row + .row { border-top: 1px solid var(--line); padding-top: 10px; }
.now .t { font-variant-numeric: tabular-nums; font-weight: 600; }
.now .title { min-width: 0; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }

/* Day switch */
.days { display: flex; gap: 8px; margin-bottom: 14px; position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); padding-block: 10px; z-index: 5; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Timeline */
.list { display: grid; }
.item { display: grid; grid-template-columns: 52px 1fr 36px; gap: 10px; padding-block: 13px; border-bottom: 1px solid var(--line); align-items: start; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.item .t { font-variant-numeric: tabular-nums; font-weight: 600; padding-top: 1px; }
.item .body { min-width: 0; display: grid; gap: 3px; }
.item .ttl { font-weight: 500; }
.item .sub { color: var(--muted); font-size: 14px; }
.item .sub-list { color: var(--muted); font-size: 14px; display: grid; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; }
.item.brk .ttl { color: var(--muted); font-weight: 400; }
.item.brk .t { color: var(--muted); font-weight: 400; }
.item.is-now { background: var(--yellow-soft); border-radius: 10px; padding-inline: 8px; margin-inline: -8px; width: calc(100% + 16px); }
.item.is-past { opacity: .55; }
.star { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.star svg { width: 22px; height: 22px; }
.star[aria-pressed="true"] { color: var(--fg); }
.star[aria-pressed="true"] svg path { fill: var(--yellow); stroke: var(--fg); }

.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; justify-self: start; color: var(--yellow-ink); }
.tag.a { background: var(--yellow); }
.tag.b { background: var(--beige); }
.tag.mine { background: var(--pink); }

/* Modules */
.mods { display: grid; gap: 8px; margin-top: 8px; }
.mod { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 34px 1fr; gap: 8px; background: var(--surface); cursor: pointer; text-align: left; }
.mod .code { font-weight: 700; }
.mod .mt { font-weight: 500; min-width: 0; }
.mod.sel { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.mod.sel.a { background: var(--yellow-soft); }
.mod.sel.b { background: var(--beige-soft); }

/* Sections */
h2 { font-weight: 300; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; margin: 6px 0 14px; text-wrap: balance; }
h3 { font-weight: 700; font-size: 17px; margin: 0; }
.muted { color: var(--muted); }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 18px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; }
.stack { display: grid; gap: 12px; }
.pending { display: inline-block; font-size: 12px; font-weight: 600; background: var(--beige-soft); color: var(--muted); border-radius: 5px; padding: 1px 7px; }
.day-h { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 18px 0 2px; }

/* News */
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; }
.msg.new { border-color: var(--pink); }
.msg time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Bottom bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.tabs-in { max-width: 640px; margin: 0 auto; display: flex; }
.tab { flex: 1; border: 0; background: none; padding: 9px 4px 10px; display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; position: relative; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-selected="true"] { color: var(--fg); }
.tab[aria-selected="true"] .ic { background: var(--yellow); color: var(--yellow-ink); }
.tab .ic { border-radius: 999px; padding: 2px 14px; display: grid; place-items: center; }
.badge { position: absolute; top: 5px; left: calc(50% + 10px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: var(--yellow-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

/* Sheet */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 30; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: var(--bg); border-radius: 20px 20px 0 0; max-height: 88%; overflow-y: auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); padding-block: 10px calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet-in { max-width: 600px; margin: 0 auto; display: grid; gap: 14px; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 4px; }
.sheet h2 { margin: 0; font-size: 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn { border: 1px solid var(--fg); background: var(--fg); color: var(--bg); border-radius: 999px; padding: 10px 18px; font-weight: 600; cursor: pointer; justify-self: start; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.speakers { display: grid; gap: 2px; }

/* Feedback */
.fb { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.rate { display: flex; gap: 6px; }
.rate button { flex: 1; max-width: 56px; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 18px; cursor: pointer; }
.rate button[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-ink); border-color: var(--fg); }
.scale { display: flex; justify-content: space-between; max-width: 304px; font-size: 12px; color: var(--muted); }
textarea, input[type=text] { width: 100%; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.note { font-size: 14px; color: var(--muted); }
.ok { color: var(--ok); font-weight: 600; font-size: 14px; }
.err { color: var(--warn); font-size: 14px; }

/* Admin results */
.res { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line); }
.res .avg { font-variant-numeric: tabular-nums; font-weight: 700; }
.bar { grid-column: 1 / -1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fg); }
.comments { grid-column: 1 / -1; margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }

/* Sange */
.songbody { white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; max-width: 36em; }
.singing { border-color: var(--pink); }
.tab { min-width: 0; }
.tab { font-size: 11px; white-space: nowrap; padding-inline: 2px; }

/* Postkassen */
.mailstage { position: relative; display: grid; justify-items: center; padding-block: 8px 4px; }
.mailstage .mailbox { width: 170px; max-width: 60%; height: auto; transform-origin: 50% 100%; }
.mailbox.gulp { animation: gulp .5s ease-out 1s; }
@keyframes gulp { 30% { transform: scale(1.04, .97); } 60% { transform: rotate(-2deg); } 100% { transform: none; } }
.envelope { position: absolute; left: 50%; top: 0; width: 150px; max-width: 70%; padding: 10px 8px; transform: translate(-50%, -20px); opacity: 0;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 16px rgb(0 0 0 / .12);
  text-align: center; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); pointer-events: none; }
.envelope.go { animation: post 1.3s ease-in forwards; }
@keyframes post {
  0% { opacity: 0; transform: translate(-50%, -40px) rotate(-4deg); }
  25% { opacity: 1; transform: translate(-50%, 0) rotate(0); }
  55% { opacity: 1; transform: translate(-50%, 34px) scaleY(1); }
  100% { opacity: 0; transform: translate(-50%, 62px) scaleY(.15); }
}
@media (prefers-reduced-motion: reduce) { .envelope.go, .mailbox.gulp { animation: none; } }
.mailcard { cursor: pointer; border-color: #C8102E; }
.mailcard-in { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.mailcard-in > div { min-width: 0; }
.mailcard .mini .mailbox { width: 56px; height: auto; }
.sender-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sender-row > div { min-width: 0; }
@media (max-width: 420px) { .sender-row { grid-template-columns: 1fr; } }

/* Programændringer */
.tag.chg { background: var(--yellow); }
.tag.cx { background: var(--warn); color: #FFFFFF; }
.sub.notice { color: var(--fg); font-weight: 600; }
.item.is-changed { box-shadow: inset 3px 0 0 var(--yellow); padding-left: 8px; margin-left: -8px; width: calc(100% + 8px); }
.item.is-cancelled .ttl { text-decoration: line-through; color: var(--muted); }
.item.is-cancelled .t { text-decoration: line-through; color: var(--muted); }
.changecard { background: var(--yellow-soft); gap: 2px; }
select { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .logo .dot, .hero::before { transition: none; } }
