/* Layout: one wide striped wordmark on top, then a quiet two-column editorial grid (label left, content right). */
:root {
  --bg: #ffffff;
  --surface: #f2f0ee;
  --fg: #26211e;
  --muted: #6b6560;
  --rule: #e6e2de;
  color-scheme: light;
  --red: #9b3a3f;
  --stripe-a: #9b3a3f;
  --stripe-b: #3a3330;
  --on-red: #ffffff;

  --display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  padding-inline: 1rem;
  padding-block: 0 3rem;
}
.wrap { max-width: 68rem; margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Top bar */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.bar a { text-decoration: none; }
.bar a:hover { color: var(--red); }

/* Hero */
.hero { padding-block: 2rem 0; }
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(3.5rem, 15vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--red);
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 0.42em, var(--stripe-b) 0.42em 0.84em);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere;
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 1.75rem;
  align-items: end;
}
.lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.4;
  font-weight: 500;
  text-wrap: balance;
}
.status {
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.6rem 0.8rem;
  max-width: 20rem;
}
.status b { color: var(--red); font-weight: 500; }

/* Figures */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  min-width: 0;
  border-block: 2px solid var(--fg);
}
.figures div { padding: 1rem 1rem 1rem 0; }
.figures div + div { padding-left: 1rem; border-left: 1px solid var(--rule); }
.figures dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  order: 2;
}
.figures dd {
  margin: 0;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.figures div { display: flex; flex-direction: column; gap: 0.35rem; }

/* Sections */
section { padding-block: 3.5rem 0; }
.sec {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1rem 3rem;
}
.sec > h2 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}
.sec > h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.4rem;
  margin-bottom: 0.8rem;
  background: var(--red);
}
.prose { max-width: 40rem; min-width: 0; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; min-width: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.timeline h3 { margin: 0 0 0.2rem; font-size: 1.05rem; font-weight: 700; }
.timeline p { margin: 0; color: var(--muted); max-width: 36rem; }

/* Legends */
.legends {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}
.legends li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--rule);
}
.legends .n { font-weight: 700; }
.legends .y {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.legends .pos { color: var(--muted); font-size: 0.85rem; font-weight: 400; margin-left: 0.4rem; }

/* Plans */
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.plans li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}
.plans li:last-child { border-bottom: 1px solid var(--rule); }
.plans h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.plans p { margin: 0; color: var(--muted); }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.tag.next { background: var(--red); color: var(--on-red); }

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--fg);
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer p { margin: 0; max-width: 44rem; }
.footstripe {
  height: 0.7rem;
  margin-top: 1rem;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 1.2rem, var(--stripe-b) 1.2rem 2.4rem);
}

/* News: one lead story with a scoreline in place of a photo, then a row of three */
.news { display: grid; gap: 2rem; min-width: 0; }
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.scoreboard {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  border-top: 0.6rem solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--stripe-a) 0 1.2rem, var(--bg) 1.2rem 2.4rem) 1;
}
.scoreboard .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: clamp(2.4rem, 7vw, 4.2rem); }
.scoreboard .row b { font-variant-numeric: tabular-nums; }
.scoreboard .row.win b { color: #d9969a; }
.scoreboard small {
  font-family: var(--mono);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-top: 0.5rem;
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .cat { color: var(--red); font-weight: 500; }
.lead h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
.lead p, .card p { margin: 0 0 0.75rem; color: var(--muted); }
.more { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.more:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.card { min-width: 0; display: flex; flex-direction: column; }
.card .score {
  white-space: nowrap;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 1.85rem;
  line-height: 1;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--fg);
  font-variant-numeric: tabular-nums;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; line-height: 1.25; text-wrap: balance; }
.card .more { margin-top: auto; }

/* Matches */
.matches { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; min-width: 0; }
.matches h3 {
  margin: 0 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fixtures, .results { list-style: none; margin: 0; padding: 0; }
.fixtures li, .results li {
  display: grid;
  gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.7rem;
  border-top: 1px solid var(--rule);
}
.fixtures li:last-child, .results li:last-child { border-bottom: 1px solid var(--rule); }
.fixtures li { grid-template-columns: 6.5rem minmax(0, 1fr); }
.results li { grid-template-columns: 4rem minmax(0, 1fr) auto; }
.when, .date { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.when b { display: block; color: var(--fg); font-weight: 500; font-size: 0.95rem; }
.comp { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.teams { font-weight: 600; }
.res { display: flex; align-items: baseline; gap: 0.6rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.chip {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.chip.v { background: var(--red); border-color: var(--red); color: var(--on-red); }
.chip.t { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.note { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* Articles */
.articles { display: grid; gap: 3rem; min-width: 0; }
.articles article { max-width: 40rem; min-width: 0; scroll-margin-top: 1rem; }
.articles h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}
.articles .ingress { font-size: 1.15rem; font-weight: 500; line-height: 1.45; margin: 0 0 1rem; }
.articles p { margin: 0 0 1rem; }
.sources { font-size: 0.8rem; color: var(--muted); padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.sources a { color: var(--muted); }

@media (max-width: 760px) {
  .lead { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .matches { grid-template-columns: minmax(0, 1fr); }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .status { justify-self: start; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .sec { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .legends { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0.75rem; }
  .plans li { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .plans .tag { justify-self: start; }
}

/* Site header: masthead with striped brand, main menu with dropdowns, section sub-menu */
.site { border-bottom: 1px solid var(--fg); }
html, body { overflow-x: clip; }

/* Banner: full-bleed dark band with brush strokes, shield, brush-script wordmark and the Duomo fading in from the right */
.banner {
  --ink: #121010; --hot: #c0232b; --paper: #f1ece8;
  position: relative;
  margin-inline: calc(50% - 50vw);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.bn-duomo {
  position: absolute; z-index: -1; top: 0; right: 0; height: 100%; width: min(42%, 34rem); max-width: none;
  object-fit: cover; object-position: 25% 65%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    repeating-linear-gradient(-58deg, transparent 0 1.2rem, rgba(192,35,43,.8) 1.2rem 1.55rem, transparent 1.55rem 2.6rem, rgba(192,35,43,.45) 2.6rem 2.8rem, transparent 2.8rem 4.6rem) left top / 14rem 100% no-repeat,
    radial-gradient(ellipse 45% 80% at 100% 50%, rgba(192,35,43,.3), transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 14rem, transparent 70%, #000); mask-image: linear-gradient(90deg, #000, transparent 14rem, transparent 70%, #000);
}
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .14; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.bn-in {
  position: relative; z-index: 1; max-width: 68rem; margin-inline: auto; padding: clamp(1.4rem, 5vw, 3.6rem) 1rem;
  display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 1.8rem);
}
.bn-logo { flex: none; display: block; width: clamp(5.2rem, 14vw, 11rem); line-height: 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.bn-logo svg, .bn-logo img { width: 100%; height: auto; display: block; }
.bn-slash { flex: none; align-self: stretch; width: .35rem; margin-block: .4rem; background: var(--hot); transform: skewX(-14deg); border-radius: 2px; }
.bn-word { position: relative; margin: 0; min-width: 0; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-stretch: 62%; font-weight: 250; font-size: clamp(2.6rem, 10.5vw, 7rem); line-height: 1; color: var(--paper); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.bn-word span { display: block; padding-bottom: .02em; }
.bn-word i { font-style: normal; color: var(--hot); font-weight: 300; }
.bn-swoosh { position: absolute; left: 0; bottom: -.12em; width: 96%; height: .16em; }

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1rem 2rem;
  padding-block: 0.6rem 0;
}
.brand {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: 0.85;
  text-transform: uppercase;
  text-decoration: none;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 0.42em, var(--stripe-b) 0.42em 0.84em);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
  padding-bottom: 0.9rem;
}
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.menu > li { position: relative; }
.menu > li > a {
  display: block;
  padding: 0.7rem 0.8rem 0.9rem;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 0.3rem solid transparent;
}
.menu > li > a:hover { color: var(--red); }
.menu > li:first-child > a { padding-left: 0; }
.menu > li > a[aria-current] { border-bottom-color: var(--red); }
.menu .soon { color: var(--muted); }
.drop {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 13rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 0.3rem solid var(--red);
  display: none;
}
.menu > li:hover .drop, .menu > li:focus-within .drop { display: block; }
.drop a { display: block; padding: 0.45rem 0.9rem; text-decoration: none; font-size: 0.95rem; }
.drop a:hover { background: var(--surface); color: var(--red); }
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.subnav a { text-decoration: none; color: var(--muted); }
.subnav a:hover { color: var(--red); }
.subnav a[aria-current] { color: var(--red); font-weight: 500; }

/* Page heading */
.pagehead { padding-block: 2.5rem 0.5rem; display: grid; gap: 0.75rem; }
.pagehead .eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.pagehead h1 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}
.pagehead p { margin: 0; max-width: 40rem; font-size: 1.1rem; color: var(--muted); }

/* Section index tiles (Klubben, Historie) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0 2rem; }
.tiles li { border-top: 2px solid var(--fg); }
.tiles a { display: grid; gap: 0.3rem; padding-block: 0.9rem 1.4rem; text-decoration: none; }
.tiles b { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1.05; }
.tiles span { color: var(--muted); }
.tiles a:hover b { color: var(--red); }

/* Squad */
.squad { display: grid; gap: 2.5rem; min-width: 0; }
.group h3 {
  margin: 0 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0 1.5rem; }
.players li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-block: 0.8rem;
  border-top: 1px solid var(--rule);
}
.players.nonum li { grid-template-columns: minmax(0, 1fr); }
.players .no {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 0.9;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.players .pn { display: block; font-weight: 700; line-height: 1.25; }
.players .meta { display: block; font-size: 0.85rem; color: var(--muted); }
.players .meta + .meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; }
.players .flag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.05rem 0.4rem; background: var(--surface); color: var(--muted); margin-top: 0.3rem; }

/* People lists (staff, leadership) */
.people { list-style: none; margin: 0; padding: 0; min-width: 0; }
.people li {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--rule);
}
.people li:last-child { border-bottom: 1px solid var(--rule); }
.people .role { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 0.15rem; }
.people .who b { display: block; }
.people .who span { font-size: 0.9rem; color: var(--muted); }
.sources-block { font-size: 0.8rem; color: var(--muted); margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sources-block a { color: var(--muted); }

/* Timeline periods with a sticky jump bar */
.jump {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.7rem;
  margin-top: 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.jump a {
  flex: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--rule);
}
.jump a:hover { border-color: var(--red); color: var(--red); }
.period { scroll-margin-top: 4rem; }
.period .intro { margin: 0 0 1rem; max-width: 40rem; }

/* Stats */
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem 2.5rem; min-width: 0; }
.stat h3 { margin: 0 0 0.5rem; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; }
.stat ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.stat li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.stat .rk { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.stat .nm b { display: block; }
.stat .nm span { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.stat .val { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.stat li:first-child .val { color: var(--red); }
.stat .snote { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--muted); }

.notice {
  border: 1px solid var(--rule);
  border-left: 0.4rem solid var(--red);
  padding: 1rem 1.25rem;
  max-width: 40rem;
}
.notice p { margin: 0 0 0.5rem; }
.notice p:last-child { margin: 0; }

@media (max-width: 760px) {
  .masthead { padding-block: 0.3rem 0; gap: 0.25rem 1rem; }
  .bn-duomo { width: 38%; opacity: .55; }
  .brand { font-size: 2.4rem; padding-bottom: 0.4rem; }
  .menu > li:first-child > a { padding-left: 0; }
  .subnav { padding-block: 0.6rem; gap: 0.2rem 1rem; font-size: 0.72rem; }
  .pagehead { padding-block: 1.5rem 0; gap: 0.5rem; }
  .pagehead h1 { font-size: 2.6rem; }
  .pagehead p { font-size: 1rem; }
  section { padding-block: 2.25rem 0; }
  .people li { grid-template-columns: minmax(0, 1fr); }
  /* Fem faner på én linje på mobil (Fredrik 9.10.2026) */
  .menu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .menu > li > a { padding: 0.5rem 0.35rem 0.7rem; font-size: clamp(0.82rem, 3.6vw, 1rem); white-space: nowrap; }
  .menu > li:last-child > a { padding-right: 0; }
  .drop { display: none !important; }
}

.sec.stack { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.sec.stack > h2 { display: flex; align-items: center; gap: 0.8rem; }
.sec.stack > h2::before { margin-bottom: 0; }

/* News feed: one article per row, picture left, text right, "Les mer" opens the full text */
.feed { gap: 0; }
.feed .item {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem 2rem;
  align-items: stretch;
  padding-block: 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.feed .item:last-child { border-bottom: 0; margin-bottom: 0; }
.feed .txt { display: flex; flex-direction: column; min-width: 0; }
.feed .txt h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.feed .ingress { margin-bottom: 1rem; }
.feed .body { padding-top: 0.25rem; }
.art-fig { margin: 0; position: relative; min-height: 15rem; overflow: hidden; background: var(--surface); }
.art-fig img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Bildemerking i utvidet tekst, ikke på bildet (Fredrik 9.10.2026) */
.credit { font-size: 0.75rem; color: var(--muted); font-style: italic; margin-top: 0.5rem; }
.item:has(.readmore[aria-expanded="true"]) .art-fig { align-self: start; height: 20rem; }
.art-fig .badge, .art-fig .comp-mark {
  position: absolute;
  top: 0;
  padding: 0.25rem 0.5rem;
  background: rgba(20, 16, 14, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: "Aptos Display", "Aptos", var(--body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.art-fig .badge { left: 0; }
.art-fig .comp-mark { right: 0; font-weight: 500; letter-spacing: 0.08em; }
.feed .meta { display: grid; gap: 0.1rem; margin-bottom: 0.6rem; }
.feed .meta p { margin: 0; }
.feed .meta .kicker { margin: 0; }
.feed .pub, .feed .byline { font-size: 0.82rem; color: var(--muted); }
.feed .byline { font-weight: 600; color: var(--fg); }
.readmore {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1rem;
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--red);
  border: 0;
  cursor: pointer;
}
.readmore:hover { background: var(--fg); }
.readmore[aria-expanded="true"] { margin-top: 1rem; background: transparent; color: var(--red); border: 1px solid var(--red); }
@media (max-width: 760px) {
  /* Mobil (Fredrik 9.10.2026): bilde i full bredde men lavere, tittel rett under, mindre tilleggsinfo */
  .feed .item { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding-block: 0 1.75rem; margin-bottom: 1.75rem; }
  .art-fig { min-height: 0; height: auto; max-width: 100%; }
  .art-fig img:not(.comp-logo) { position: static; width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .item:has(.readmore[aria-expanded="true"]) .art-fig { height: auto; }
  .art-fig .comp-logo { height: 2rem; }
  /* Rekkefølge på mobil: tittel, ingress, kategori og dato, forfatter, «Les mer» (Fredrik 9.10.2026) */
  .feed .txt > * { order: 4; }
  .feed .txt h3 { order: 1; }
  .feed .ingress { order: 2; }
  .feed .meta { order: 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.6rem; margin-bottom: 0.9rem; }
  .feed .meta .byline { flex-basis: 100%; font-size: 0.75rem; }
  .feed .meta .pub { font-size: 0.75rem; }
  .feed .txt h3 { font-size: 1.35rem; line-height: 1.12; margin-bottom: 0.4rem; }
  .feed .ingress { margin-bottom: 0.6rem; }
  .readmore { margin-top: 0; }
}

.art-fig .comp-logo {
  position: absolute;
  inset: 0 0 auto auto;
  width: auto;
  height: 2.6rem;
  padding: 0.2rem;
  background: #f7f7f7;
  object-fit: contain;
}
.art-fig .comp-logo.el { background: #000; padding: 0.15rem; }

/* Category filter above the feed */
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: -0.5rem 0 0.5rem; }
.filters button {
  font: 600 0.78rem/1 var(--body); letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0.5rem 0.8rem; border: 1px solid var(--rule); background: transparent; color: var(--muted); cursor: pointer;
}
.filters button[aria-pressed="true"] { border-color: var(--fg); background: var(--fg); color: #fff; }
.feed .item[hidden] { display: none; }
.k-skraablikk .cat { color: var(--fg); }

/* Spillerbørs */
.bors { margin: 1.5rem 0 1rem; }
.bors h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.2rem; }
.bors-note { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.6rem; }
.bors table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.bors th { text-align: left; font: 500 0.7rem var(--mono, "IBM Plex Mono", monospace); text-transform: uppercase; color: var(--muted); padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--fg); }
.bors td { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bors .pl b { display: block; font-weight: 600; }
.bors .pl small { color: var(--muted); font-size: 0.75rem; }
.bors .pl i { display: none; font-style: normal; font-weight: 400; color: var(--muted); font-size: 0.75rem; margin-left: 0.3rem; }
.bors .pos { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.bors .cm { color: var(--fg); }
.die { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding: 0 0.3rem; font-weight: 700; font-size: 0.95rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.die.d5, .die.d6 { background: var(--red); border-color: var(--red); color: #fff; }
.die.d4 { border-color: var(--fg); }
.die.d1, .die.d2 { color: var(--muted); }
.die.na { color: var(--muted); border-style: dashed; }
@media (max-width: 760px) {
  .bors table, .bors tbody, .bors tr { display: block; }
  .bors thead { display: none; }
  .bors tr { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
  .bors td { border: 0; padding: 0; }
  .bors .pl { grid-column: 1; grid-row: 1; }
  .bors .pl i { display: inline; }
  .bors .pl small { display: block; }
  .bors .pos { display: none; }
  .bors .sc { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .bors .cm { grid-column: 1; grid-row: 2; font-size: 0.82rem; color: var(--muted); }
  .bors .die { min-width: 1.7rem; height: 1.7rem; font-size: 0.88rem; }
}

/* Liga og statistikk: standings, rankings and Milan's goal+assist list */
.lg-stamp { margin: -0.4rem 0 0.8rem; font-size: 0.8rem; color: var(--muted); }
.lg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.lg-table th { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); text-align: right; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--fg); white-space: nowrap; }
.lg-table td { text-align: right; padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.lg-table .tm { text-align: left; width: 100%; white-space: normal; }
.lg-table .n { text-align: left; color: var(--muted); width: 2rem; }
.lg-table .pt { font-weight: 700; }
.lg-table tr.us td { background: color-mix(in srgb, var(--red) 9%, transparent); }
.lg-table tr.us .tm { font-weight: 700; color: var(--red); box-shadow: inset 3px 0 0 var(--red); padding-left: 0.6rem; }
.lg-table tr.us .n { box-shadow: inset 3px 0 0 var(--red); }
.lg-table tr.us .n + .tm { box-shadow: none; }
.lg-note, .lg-src { font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; }
.lg-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2rem; }
.lg-card { min-width: 0; }
.lg-card h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; margin: 0 0 0.6rem; }
.lg-rank { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.lg-rank li { display: grid; grid-template-columns: 1.8rem 1fr auto; gap: 0.6rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.lg-rank .rk { color: var(--muted); font: 500 0.8rem var(--mono); }
.lg-rank .nm b { font-weight: 600; }
.lg-rank .nm span { margin-left: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.lg-rank .val { font-weight: 700; font-size: 1.05rem; }
.lg-rank .val small { font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.lg-rank li.us .nm b { color: var(--red); }
.lg-points .tm small { display: block; font-size: 0.75rem; color: var(--muted); }
.lg-points .viz { width: 30%; min-width: 7rem; }
.lg-points .mp-bar { display: flex; height: 0.7rem; background: var(--surface); }
.lg-points .mp-bar i, .lg-points .key i { display: block; height: 100%; }
.lg-points .g { background: var(--red); }
.lg-points .a { background: var(--stripe-b); }
.lg-points .key { display: inline-flex; align-items: center; gap: 0.3rem; text-transform: none; letter-spacing: 0; }
.lg-points .key i { width: 0.6rem; height: 0.6rem; display: inline-block; margin-left: 0.4rem; }
.lg-legal { margin-top: 2.5rem; font-size: 0.85rem; }
@media (max-width: 600px) {
  .lg-table .x { display: none; }
  .lg-table { font-size: 0.88rem; }
  .lg-points .viz { min-width: 4.5rem; width: 25%; }
  .lg-points .key { display: none; }
}

.lg-block { min-width: 0; }

/* Statistikk: faner per lag */
.lg-tabs { display: flex; flex-wrap: wrap; gap: 0 1.4rem; border-bottom: 1px solid var(--fg); margin: 0 0 1.6rem; }
.lg-tabs button { font: 600 0.95rem var(--display); background: none; border: 0; padding: 0.7rem 0; margin-bottom: -1px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.lg-tabs button:hover { color: var(--fg); }
.lg-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--red); }
.lg-panel { min-width: 0; max-width: 52rem; }
.lg-panel > .lg-card h3 { display: none; }
.lg-posf { margin: 0 0 1rem; }
.lg-bors .tm small { display: block; font-size: 0.75rem; color: var(--muted); }
.lg-bors .die { margin-left: auto; }
.lg-empty { padding: 1.4rem; background: var(--surface); color: var(--muted); }
.st-team { padding: 2rem 0 1rem; }
@media (max-width: 640px) { .lg-tabs { gap: 0 1rem; } .lg-tabs button { font-size: 0.88rem; } }

/* Språkvelger øverst til høyre i banneret */
.lang { position: absolute; z-index: 2; top: 0.7rem; right: max(1rem, calc(50vw - 33rem)); display: flex; gap: 0.35rem; }
.lang a { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.4rem; border-radius: 3px; color: var(--paper); text-decoration: none; font: 500 0.68rem var(--mono); letter-spacing: 0.06em; opacity: 0.6; background: rgba(18, 16, 16, 0.55); }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { box-shadow: inset 0 -2px 0 var(--red); }
.lang svg { width: 1.15rem; height: 0.8rem; display: block; border-radius: 1px; }
@media (max-width: 640px) { .lang { top: 0.45rem; right: 0.6rem; gap: 0.2rem; } .lang span { display: none; } .lang a { padding: 0.3rem; } }
@media (max-width: 640px) { .lg-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .lg-tabs button { white-space: nowrap; flex: none; } }

/* Statistikk: liga eller lag øverst, faner under */
.lg-groups { display: flex; gap: 0; margin: 0 0 0.4rem; border: 1px solid var(--fg); width: max-content; max-width: 100%; }
.lg-groups button { font: 700 0.85rem var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.6rem 1.2rem; background: #fff; color: var(--fg); border: 0; cursor: pointer; }
.lg-groups button + button { border-left: 1px solid var(--fg); }
.lg-groups button[aria-pressed="true"] { background: var(--fg); color: #fff; }
.lg-tabs[hidden], .lg-panel[hidden] { display: none; }

/* Kampdag-stripe med Discord-lenke */
.matchbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-size: 0.92rem; }
.matchbar[hidden] { display: none; }
.matchbar .mb-txt { margin: 0; }
.matchbar .mb-lbl { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-right: 0.4rem; }
.matchbar .mb-teams { font-weight: 700; }
.matchbar .mb-when, .matchbar .mb-comp { color: var(--muted); }
.matchbar .mb-comp::before { content: "· "; }
.mb-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.8rem; border: 1px solid var(--fg); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.mb-btn svg { width: 1.1rem; height: 1.1rem; }
.mb-btn.off { opacity: 0.55; border-style: dashed; }
.matchbar.on { margin-inline: calc(50% - 50vw); padding-inline: max(1rem, calc(50vw - 33rem)); background: var(--red); color: #fff; border: 0; }
.matchbar.on .mb-lbl, .matchbar.on .mb-when, .matchbar.on .mb-comp { color: rgba(255, 255, 255, 0.85); }
.matchbar.on .mb-btn { background: #fff; color: var(--red); border-color: #fff; }
.matchbar.on .mb-btn.off { opacity: 0.8; }

/* Glidende tidslinje (Fredrik 9.10.2026) */
.tl { margin-top: 1.5rem; min-width: 0; }
.tl-eras { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
.tl-eras button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; max-width: 11rem; text-align: left; font: inherit; cursor: pointer; padding: 0.45rem 0.7rem; background: var(--bg); color: var(--fg); border: 1px solid var(--rule); }
.tl-eras b { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.tl-eras span { font-size: 0.72rem; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tl-eras button:hover { border-color: var(--red); }
.tl-eras button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tl-eras button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.85); }
.tl-ctrl { display: none; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.tl.js .tl-ctrl { display: flex; }
.tl-y { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.tl-range { flex: 1; min-width: 0; accent-color: var(--red); }
.tl-prev, .tl-next { flex: none; width: 2.2rem; height: 2.2rem; font-size: 1.3rem; line-height: 1; cursor: pointer; background: var(--bg); color: var(--fg); border: 1px solid var(--rule); }
.tl-prev:hover, .tl-next:hover { border-color: var(--red); color: var(--red); }
.tl-track { list-style: none; margin: 1rem 0 0; padding: 2.4rem 0 1rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; position: relative; scrollbar-width: thin; }
.tl-card { flex: none; width: min(80vw, 17rem); scroll-snap-align: start; position: relative; padding: 1.1rem 1rem 1rem; background: var(--surface); border-top: 3px solid var(--rule); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.tl-card::before { content: ""; position: absolute; top: -0.6rem; left: 1rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--rule); }
.tl-card::after { content: ""; position: absolute; top: -3px; right: -1rem; width: 1rem; height: 3px; background: var(--rule); }
.tl-card:last-child::after { display: none; }
.tl-card.tl-first { border-top-color: var(--fg); }
.tl-card.on { border-top-color: var(--red); background: #f7eceb; }
.tl-card.on::before { border-color: var(--red); background: var(--red); }
.tl-era-lab { position: absolute; top: -2.3rem; left: 0; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.tl-card time { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.tl-card h3 { margin: 0.35rem 0 0.35rem; font-size: 1rem; font-weight: 700; line-height: 1.2; }
.tl-card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.tl-stories { margin-top: 2.5rem; }
.tl-story { padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--rule); scroll-margin-top: 4rem; }
.tl.js ~ .tl-stories .tl-story { margin-top: 0; }
.tl-story h2 { margin: 0.2rem 0 0.6rem; }
.tl-story .intro { font-size: 1.1rem; font-weight: 500; max-width: 40rem; margin: 0 0 1rem; }
@media (max-width: 760px) {
  .tl-card { width: 78vw; }
  .tl-story .intro { font-size: 1.02rem; }
}

/* Økonomi-fanen (Fredrik 9.10.2026) */
.fin-lede { font-size: 1.15rem; max-width: 42rem; margin: 1.5rem 0 0; }
.fin-sec { min-width: 0; }
.fin-seclede { max-width: 40rem; margin: 0 0 1.25rem; font-size: 1.05rem; }
.fin-sec > * + * { margin-top: 1.5rem; }
.fin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); padding: 1px 0 0 1px; }
.fin-tile { padding: 1rem; min-width: 0; border: 1px solid var(--rule); margin: -1px 0 0 -1px; }
.fin-lab { margin: 0; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.fin-val { margin: 0.3rem 0 0.35rem; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.fin-exp { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.fin-tablewrap { overflow-x: auto; max-width: 100%; }
.fin-table { border-collapse: collapse; width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.fin-table caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
.fin-table th, .fin-table td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fin-table thead th { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid var(--fg); white-space: nowrap; }
.fin-table tbody th { font-weight: 600; white-space: nowrap; }
.fin-note { font-size: 0.85rem; color: var(--muted); max-width: 40rem; margin: 0.6rem 0 0; }
.fin-sec > .fin-note { margin-top: 0.6rem; }
.fin-gloss { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem 2rem; }
.fin-gloss dt { font-weight: 700; }
.fin-gloss dd { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; }
.fin-upd { font-size: 0.82rem; color: var(--muted); margin-top: 2.5rem; max-width: 40rem; }
@media (max-width: 760px) {
  .fin-val { font-size: 1.6rem; }
  /* Tabellene blir kort på mobil: én rad per kort, kolonnenavnet til venstre */
  .fin-table, .fin-table tbody, .fin-table tr, .fin-table th, .fin-table td { display: block; }
  .fin-table thead { display: none; }
  .fin-table tr { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
  .fin-table tbody th { white-space: normal; border: 0; padding: 0 0 0.3rem; }
  .fin-table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: 0.15rem 0; text-align: right; }
  .fin-table td::before { content: attr(data-label); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); text-align: left; padding-top: 0.15rem; flex: none; max-width: 45%; }
  .fin-table caption { display: block; }
}

/* Regnskap-siden (Fredrik 9.10.2026) */
.rk-filter { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.7rem; margin-top: 1.5rem; background: var(--bg); border-bottom: 1px solid var(--rule); }
.rk-filter > span { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-right: 0.3rem; }
.rk-filter button { flex: none; font-family: var(--mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; padding: 0.4rem 0.7rem; cursor: pointer; background: var(--bg); color: var(--fg); border: 1px solid var(--rule); }
.rk-filter button:hover { border-color: var(--red); color: var(--red); }
.rk-filter button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.rk-chart { position: relative; width: 100%; min-width: 0; margin-top: 0.75rem; }
.rk-chart svg { display: block; overflow: visible; }
.rk-chart [tabindex]:focus { outline: none; }
.rk-chart [tabindex]:focus-visible { outline: 2px solid var(--fg); }
.rk-ax { font-family: var(--mono); font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.rk-ax-on { fill: var(--fg); font-weight: 600; }
.rk-val { font-size: 12px; font-weight: 600; fill: var(--fg); text-anchor: middle; font-variant-numeric: tabular-nums; }
.rk-dot .rk-val { text-anchor: inherit; }
.rk-grid { stroke: #ece8e4; stroke-width: 1; }
.rk-zero { stroke: #b9b3ad; stroke-width: 1; }
.rk-limit { stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 4 3; }
.rk-limlab { font-family: var(--mono); font-size: 10px; fill: var(--fg); }
.rk-trail { fill: none; stroke: #d8d2cc; stroke-width: 1.5; }
.rk-col { opacity: 0.5; transition: opacity 0.15s; }
.rk-col.on, .rk-col:hover { opacity: 1; }
.rk-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.82rem; color: var(--muted); }
.rk-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.rk-legend i { width: 0.75rem; height: 0.75rem; border-radius: 2px; display: inline-block; }
.rk-tip { position: absolute; z-index: 50; pointer-events: none; background: var(--bg); border: 1px solid var(--rule); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); padding: 0.45rem 0.6rem; font-size: 0.82rem; line-height: 1.45; max-width: 16rem; }
.rk-tip-h { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.rk-tip b { font-weight: 700; color: var(--fg); }
.rk-tip span { color: var(--muted); }
.rk-key { display: inline-block; width: 0.8rem; height: 2px; vertical-align: middle; margin-right: 0.4rem; }
.rk-h3 { margin: 2rem 0 0.25rem; font-size: 1.05rem; font-weight: 700; }
.rk-note { margin: 0; font-size: 0.9rem; color: var(--muted); max-width: 40rem; }
.rk-est { margin-top: 1.25rem; font-size: 0.82rem; }
.rk-status { margin-top: 1.5rem; }
.rk-tv { margin-top: 1rem; }
.rk-tv summary { cursor: pointer; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.rk-tv summary:hover { color: var(--red); }
.rk-tv[open] summary { margin-bottom: 0.75rem; }
.rk-pl td { text-align: right; white-space: nowrap; }
.rk-pl thead th:not(:first-child) { text-align: right; }
.rk-pl tr.rk-sum th, .rk-pl tr.rk-sum td { font-weight: 700; border-bottom: 1px solid var(--fg); }
.rk-pl tr.rk-res th, .rk-pl tr.rk-res td { font-weight: 800; font-size: 1.05em; border-bottom: 2px solid var(--fg); }
.rk-pl td:nth-child(3) { color: var(--muted); }
@media (max-width: 760px) {
  .rk-pl, .rk-pl thead, .rk-pl tbody, .rk-pl tr { display: table; width: 100%; }
  .rk-pl { display: table; }
  .rk-pl thead { display: table-header-group; }
  .rk-pl tbody { display: table-row-group; }
  .rk-pl tr { display: table-row; padding: 0; }
  .rk-pl th, .rk-pl td { display: table-cell; padding: 0.45rem 0.4rem 0.45rem 0; }
  .rk-pl tbody th { white-space: normal; padding-bottom: 0.45rem; border-bottom: 1px solid var(--rule); }
  .rk-pl td { text-align: right; border-bottom: 1px solid var(--rule); }
  .rk-pl td::before { content: none; }
}
.rk-na { font-family: var(--mono); font-size: 10px; fill: var(--muted); text-anchor: middle; }
