/* Ribe-Esbjerg HH – site styles. Tokens follow the REHH Brand Guidelines (juli 2026), see docs/brand.md. */

:root {
  /* REHH brand palette (Brand Guidelines, juli 2026). Primary blues + gradient, secondary warm and neutral tones. */
  --brand-deep: #0A0094;
  --brand-blue: #1762E1;
  --brand-navy: #21205C;
  --brand-cyan: #00B1FD;
  --brand-sky: #98DAFB;
  --brand-cream: #FFF3D9;
  --brand-ivory: #FFFAF0;
  --brand-sand: #C3AD94;
  --brand-gold: #946E1D;
  --brand-mauve: #8B5A73;
  --brand-gradient: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand-blue) 100%);

  /* Roles used by the components below */
  --bg: #1a1950;            /* navy, slightly deeper than #21205C so cards and panels lift off it */
  --bg-2: var(--brand-navy);
  --surface: #262566;
  --surface-2: #2f2e78;
  --line: rgba(152, 218, 251, .16);
  --line-2: rgba(152, 218, 251, .32);
  --blue: var(--brand-blue);
  --blue-2: var(--brand-navy);
  --accent: var(--brand-cyan);
  --accent-2: var(--brand-sky);
  --cream: var(--brand-cream);
  --text: var(--brand-ivory);
  --muted: #bcc8e6;
  --dim: #8891bf;
  --ink: var(--brand-navy);
  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-script: 'Permanent Marker', 'Segoe Print', cursive;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  /* Content is centred at --site-width; backgrounds stay full-bleed. --pad is the side padding that centres it. */
  --site-width: 1640px;
  --gutter: clamp(20px, 6vw, 112px);
  --pad: max(var(--gutter), calc((100% - var(--site-width)) / 2));
  /* 6-kantet boldmoenster: light outline for blue surfaces, dark outline for cream panels. */
  --hex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='112' height='128' viewBox='0 0 112 128'><path d='M56 2 108 32v64L56 126 4 96V32Z' fill='none' stroke='%2398DAFB' stroke-opacity='.16' stroke-width='1.5'/></svg>");
  --hex-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='112' height='128' viewBox='0 0 112 128'><path d='M56 2 108 32v64L56 126 4 96V32Z' fill='none' stroke='%230A0094' stroke-opacity='.14' stroke-width='1.5'/></svg>");
  --cut: 17%; /* horizontal run of a -30 degree cut across a full-height panel, used by clip-paths */
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; line-height: .95; margin: 0; font-weight: 400; }
.script { font-family: var(--font-script); color: var(--accent-2); line-height: 1.05; margin: 0; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; color: var(--accent-2); font-weight: 400; }
.lead { font-size: 19px; color: var(--muted); text-wrap: pretty; }
.meta { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.meta svg { flex-shrink: 0; }
.hexbg { background-color: var(--bg-2); background-image: var(--hex); }
.rule { height: 1px; background: var(--line); flex-grow: 1; }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--line-2); background: transparent; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.btn:hover { color: var(--text); border-color: var(--accent); }
.btn.primary { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn.primary:hover { background: var(--brand-cyan); color: var(--ink); border-color: var(--brand-cyan); }
.btn.cream { background: var(--cream); color: var(--brand-deep); border-color: var(--cream); }
.btn.cream:hover { background: #fff; color: var(--brand-deep); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 11px; }
.btn.active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.badge { display: inline-flex; align-items: center; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); color: var(--muted); line-height: 1; white-space: nowrap; }
.badge.home { background: rgba(0, 177, 253, .14); color: var(--brand-sky); border-color: var(--brand-cyan); }
.crest { width: 36px; height: 36px; border-radius: 7px; background: var(--brand-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 10px; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; }
.crest.own { height: 40px; }
.crest.lg { width: 44px; height: 44px; font-size: 12px; }
.crest.lg.own { height: 48px; }
.photo { background: linear-gradient(160deg, var(--brand-blue) 0%, var(--brand-navy) 70%); position: relative; overflow: hidden; }
.photo::after { content: ""; position: absolute; inset: 0; background: var(--hex); opacity: .5; pointer-events: none; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.has-img::after { display: none; }
.photo > .over { position: relative; z-index: 1; }
.logo-tile { background: var(--brand-ivory); height: 88px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; color: #1b2a44; font-size: 15px; text-align: center; }
.logo-tile img { max-height: 100%; width: auto; object-fit: contain; }
.logo-tile.lg { height: 120px; font-size: 22px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head .h { display: flex; flex-direction: column; gap: 6px; }
.section-head h2 { font-size: 34px; }
.tier-head { display: flex; align-items: center; gap: 20px; }
.tier-head .count { font-size: 12px; color: var(--dim); }
.prose { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 760px; }
.prose h2, .prose h3 { font-family: var(--font-display); text-transform: uppercase; color: var(--text); line-height: 1.05; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 22px; }
.prose p:first-child { color: var(--text); font-size: 21px; font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 28px; border-left: 3px solid var(--accent); font-family: var(--font-script); font-size: 30px; line-height: 1.15; color: var(--text); }

/* ---------- layout ---------- */
.container { padding-left: var(--pad); padding-right: var(--pad); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.g-6 { gap: 6px; } .g-10 { gap: 10px; } .g-14 { gap: 14px; } .g-20 { gap: 20px; } .g-32 { gap: 32px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 max(24px, calc((100% - var(--site-width)) / 2)); border-bottom: 1px solid var(--line); background: rgba(26, 25, 80, .97); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand .crest.own { width: 40px; height: 46px; }
.brand .name { display: flex; flex-direction: column; line-height: 1; }
.brand .name .t { font-size: 15px; }
.brand .name .s { font-size: 9px; letter-spacing: .32em; color: var(--muted); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a.nav { font-family: var(--font-display); text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .14em; padding: 8px 2px; color: var(--text); border-bottom: 2px solid transparent; }
.site-nav a.nav:hover { color: var(--accent-2); }
.site-nav a.nav.active { color: var(--accent); border-color: var(--accent); }
.site-nav .btn { height: 40px; padding: 0 16px; margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

/* page hero */
.page-hero { position: relative; min-height: 400px; padding: 72px var(--pad); display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .bg { position: absolute; right: 0; top: 0; width: 56%; height: 100%; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.page-hero .content { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.page-hero .script { font-size: 40px; }
.page-hero h1 { font-size: clamp(48px, 7vw, 80px); }
.page-hero .lead { max-width: 640px; }

/* front page */
.front-page { display: flex; flex-direction: column; gap: 20px; padding: 20px 20px 0; max-width: calc(var(--site-width) + 40px); margin: 0 auto; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .7fr) minmax(0, .45fr); gap: 20px; }
.matchday { position: relative; background-color: var(--brand-blue); background-image: var(--hex), linear-gradient(100deg, var(--brand-deep) 0%, var(--brand-blue) 120%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 40%); overflow: hidden; border: 1px solid var(--line-2); }
.matchday .main { position: relative; padding: 44px 40px; display: flex; flex-direction: column; gap: 22px; }
.matchday.single { grid-template-columns: minmax(0, 1fr); }
.matchday .script { font-size: 54px; }
.matchday h1 { font-size: clamp(36px, 4vw, 58px); max-width: 440px; }
.matchday .facts { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.matchday .facts .display { font-size: 24px; font-weight: 400; }
.matchday .cta { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
/* cream cut panel (as in the ad footers): the -30 degree diagonal is cut off the top-left corner, so content sits right of it */
/* countdown zone: no fill and no extra pattern, the box background runs straight through */
.matchday .action { position: relative; padding: 40px 28px 40px 24px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.matchday .action .eyebrow { color: var(--brand-sky); }
.matchday .action .countdown { gap: 16px; }
.matchday .action .countdown .display { font-size: 42px; color: var(--brand-ivory); text-shadow: 0 2px 14px rgba(26, 25, 80, .55); }
.matchday .action .countdown span:last-child { color: var(--brand-sky); font-size: 11px; }
.matchday .action .cta { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 4px; }
.matchday .action .more { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--brand-ivory); display: inline-flex; align-items: center; gap: 8px; }
.matchday .action .more:hover { color: var(--brand-sky); }
/* match photo behind the whole box: solid navy where the text sits, opening up towards the countdown zone */
.matchday > .bg { position: absolute; inset: 0; z-index: 0; }
.matchday > .bg img { object-position: center 30%; }
.matchday > .bg::after { content: ""; display: block !important; position: absolute; inset: 0; opacity: 1; background: linear-gradient(100deg, var(--brand-navy) 0%, rgba(33, 32, 92, .92) 24%, rgba(33, 32, 92, .45) 55%, rgba(33, 32, 92, .55) 100%), var(--hex-light); }
.matchday .main, .matchday .action { position: relative; z-index: 1; }
.matchday .main .display, .matchday .main .script { text-shadow: 0 2px 14px rgba(26, 25, 80, .55); }
.countdown { display: flex; gap: 14px; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.countdown .display { font-size: 26px; }
.countdown span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.result-card { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.result-card .score { display: flex; flex-direction: column; line-height: .95; }
.result-card .score .display { font-size: 78px; }
.result-card .score .display.away { color: var(--brand-cyan); }
.result-card .foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.player-tile { display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: var(--text); min-height: 320px; }
.player-tile .num { font-size: 44px; color: var(--accent); }
.player-tile .nm { font-size: 18px; font-weight: 600; }
.player-tile .pos { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.player-tile .more { font-family: var(--font-display); text-transform: uppercase; font-size: 11px; letter-spacing: .18em; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.partner-band { background-color: var(--cream); background-image: var(--hex-dark); color: var(--brand-deep); padding: 32px 32px 36px; display: flex; flex-direction: column; gap: 22px; }
.partner-band .head { display: flex; align-items: center; gap: 20px; }
.partner-band .script { font-size: 30px; color: var(--brand-blue); }
.partner-band .eyebrow { color: var(--brand-deep); }
.partner-band .rule { background: rgba(10, 0, 148, .2); }
.venue-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.venue-card h2 { font-size: 28px; }
.venue-card .facts { border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.venue-card .facts .eyebrow { color: var(--muted); }
.venue-card .facts .display { font-size: 20px; font-weight: 400; }
.upcoming-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.upcoming-card .head { display: flex; justify-content: space-between; align-items: center; }
.upcoming-card .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.upcoming-card .item { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--text); }
.upcoming-card .item .when { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.upcoming-card .item .teams { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upcoming-card .item .teams .display { min-width: 0; }
.upcoming-card .item .teams .display { font-size: 16px; font-weight: 400; }
.upcoming-card .item .teams .sep { color: var(--dim); }
.upcoming-card .item .meta .badge { margin-left: auto; }
.news-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .45fr); gap: 20px; }
.feature { min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; color: var(--text); }
.feature .over { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.feature h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.02; }
.feature p { color: var(--muted); font-size: 15px; }
.latest { padding: 28px; display: flex; flex-direction: column; }
.latest .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.latest a.item { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); }
.latest a.item .d { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.latest a.item .t { font-size: 16px; font-weight: 600; line-height: 1.2; }
.quick { display: flex; flex-direction: column; gap: 20px; }
.quick a { flex-grow: 1; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--text); min-height: 140px; }
.quick a .t { font-size: 18px; font-weight: 600; }
.quick a .s { font-size: 12px; color: var(--muted); }
.statement { height: 220px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; gap: 24px; }
.statement h2 { font-size: clamp(30px, 4vw, 52px); }
.statement h2 span { color: var(--brand-sky); }

/* match cards */
.match-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.match-card .head { display: flex; justify-content: space-between; align-items: center; }
.match-card .comp { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.match-card .teams { display: flex; flex-direction: column; gap: 10px; }
.team-row { display: flex; align-items: center; gap: 12px; }
.team-row .display { font-size: 19px; font-weight: 400; color: var(--accent-2); }
.team-row.own .display { color: var(--text); }
.match-card .when { display: flex; flex-direction: column; gap: 6px; }
.match-card .score { display: flex; align-items: baseline; gap: 12px; }
.match-card .score .display { font-size: 36px; color: var(--accent); }
.match-card .score .tag { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.match-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; gap: 12px; }
.match-card .foot .btn { height: 36px; padding: 0 14px; font-size: 11px; }
.match-card .foot .link { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-display); }

/* standings */
.standings { display: flex; flex-direction: column; }
.standings .r { display: grid; grid-template-columns: 48px minmax(0, 1fr) 80px 80px 80px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.standings .r.head { padding: 12px 20px; font-size: 11px; letter-spacing: .16px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.standings .r .num { text-align: right; color: var(--muted); }
.standings .r .pts { text-align: right; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.standings .r .team { font-family: var(--font-display); text-transform: uppercase; font-size: 15px; font-weight: 600; }
.standings .r.own { background: rgba(23, 98, 225, .35); border-left: 3px solid var(--brand-cyan); }
.standings .r:last-child { border-bottom: 0; }

/* news */
.news-card { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.news-card .photo { aspect-ratio: 3 / 2; }
.news-card.big .photo { aspect-ratio: 16 / 10; }
.news-card .cat { font-size: 12px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.news-card .cat span { color: var(--muted); }
.news-card h3 { font-size: 22px; font-weight: 600; line-height: 1.1; text-wrap: pretty; }
.news-card.big h3 { font-size: 30px; }
.news-card p { color: var(--muted); font-size: 15px; text-wrap: pretty; }
.news-card:hover h3 { color: var(--accent-2); }
.news-list-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--text); }
.news-list-item .photo { aspect-ratio: 4 / 3; }
.news-list-item .t { font-family: var(--font-display); text-transform: uppercase; font-size: 19px; font-weight: 600; line-height: 1.15; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }
.pagination .btn { width: 40px; padding: 0; height: 40px; }
.article-hero { height: min(640px, 70vh); display: flex; align-items: flex-end; padding: 0 var(--pad) 56px; }
.article-hero .over { max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.article-hero .back { font-family: var(--font-display); text-transform: uppercase; font-size: 12px; letter-spacing: .16em; display: flex; align-items: center; gap: 8px; }
.article-hero h1 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.02; text-wrap: pretty; }
.article-body { padding: 64px var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; }
.aside-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }

/* team */
.player-card { aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: var(--text); }
.player-card.gk { background: linear-gradient(160deg, var(--brand-gold) 0%, var(--brand-navy) 70%); }
.player-card .num { position: absolute; top: 6px; left: 12px; font-size: 72px; color: rgba(255, 255, 255, .14); z-index: 1; }
.player-card .over { display: flex; flex-direction: column; gap: 4px; }
.player-card .pos { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.player-card .nm { font-size: 18px; font-weight: 600; }
.staff-card { padding: 20px; display: flex; align-items: center; gap: 14px; }
.staff-card .photo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 4px; }
.staff-card .nm { font-size: 16px; font-weight: 600; }
.staff-card .role { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* partners */
.package { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.package.hl { border-color: var(--accent); background: var(--surface-2); }
.package h3 { font-size: 26px; }
.package .price { font-family: var(--font-display); text-transform: uppercase; font-size: 16px; color: var(--accent); }
.package ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.package li { display: flex; gap: 8px; font-size: 14px; }
.package li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.package .btn { margin-top: auto; }

/* blocks */
.blocks { display: flex; flex-direction: column; gap: 48px; max-width: 880px; }
.umb-block-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.umb-block-list > :not(.person-card) { grid-column: 1 / -1; }
.umb-block-list > .prose, .umb-block-list > .values-box, .umb-block-list > .cta-box, .umb-block-list > section { margin-top: 20px; }
.umb-block-list > .block-heading { margin-top: 28px; }
.umb-block-list > :first-child { margin-top: 0; }
.person-card { padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.person-card .nm { font-size: 16px; font-weight: 600; }
.person-card .role { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.person-card .meta { font-size: 14px; color: var(--muted); }
.values-box { background-color: var(--brand-blue); background-image: var(--hex), linear-gradient(100deg, var(--brand-deep) 0%, var(--brand-blue) 120%); border: 1px solid var(--line-2); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.values-box .script { font-size: 44px; }
.values-box .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.values-box .v { border: 1px solid var(--line-2); padding: 20px; font-family: var(--font-display); text-transform: uppercase; font-size: 22px; font-weight: 700; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.link-grid a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; color: var(--text); font-family: var(--font-display); text-transform: uppercase; font-size: 14px; font-weight: 600; }
.link-grid a svg { color: var(--accent); }
.cta-box { background-color: var(--brand-blue); background-image: var(--hex), linear-gradient(100deg, var(--brand-deep) 0%, var(--brand-blue) 120%); border: 1px solid var(--line-2); padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; }
.cta-box .script { font-size: 38px; }
.cta-box .t { font-size: 22px; font-weight: 600; }
.cta-box .contacts { display: flex; gap: 24px; flex-wrap: wrap; margin: 6px 0; }

/* partner strip + footer */
.partner-strip { padding: 40px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.partner-strip .head { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; }


.site-footer { padding: 64px var(--pad) 0; background: var(--bg); }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .col a { color: var(--muted); font-size: 14px; }
.site-footer .col a:hover { color: var(--accent-2); }
.site-footer .social { display: flex; gap: 8px; margin-top: 6px; }
.site-footer .social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); color: var(--text); }
.site-footer .bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-row .player-tile { display: none; }
  .news-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .news-row .quick { grid-column: span 2; flex-direction: row; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 1100px) {
  .site-nav { display: none; position: fixed; inset: 84px 0 0 0; background: var(--bg-2); flex-direction: column; align-items: flex-start; padding: 24px; gap: 6px; overflow: auto; }
  .site-nav.open { display: flex; z-index: 60; }
  .site-nav a.nav { font-size: 18px; padding: 10px 0; }
  .site-nav .btn { margin: 16px 0 0; }
  .nav-toggle { display: inline-flex; }
  .hero-row, .news-row, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .news-row .quick { grid-column: auto; flex-direction: column; }
  .front-page > .grid-2, .grid-2, .person-grid { grid-template-columns: minmax(0, 1fr); }
  .upcoming-card .list { grid-template-columns: minmax(0, 1fr); }
  .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .statement { height: auto; padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .matchday { grid-template-columns: minmax(0, 1fr); }
  .matchday .main { padding: 32px 24px; }
  /* stacked: the diagonal and its sky edge move to the top of the countdown zone */
  .matchday .action { padding: 24px 24px 28px; }
  .matchday > .bg::after { background: linear-gradient(180deg, rgba(33, 32, 92, .5) 0%, rgba(33, 32, 92, .9) 60%), var(--hex-light); }
  .page-hero { min-height: 300px; padding: 56px var(--pad); }
  .page-hero .bg { width: 100%; opacity: .3; mask-image: none; -webkit-mask-image: none; }
  .link-grid, .values-box .grid, .umb-block-list { grid-template-columns: minmax(0, 1fr); }
  .result-card .score .display { font-size: 60px; }
}

/* shop */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; color: var(--text); transition: border-color .15s; }
.product:hover { border-color: var(--accent); }
.product .img { aspect-ratio: 1; background: #fff; position: relative; overflow: hidden; }
.product .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.product:hover .img img { transform: scale(1.04); }
.product .img .badge { position: absolute; left: 12px; top: 12px; }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.product .brand { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.product .nm { font-size: 18px; font-weight: 600; line-height: 1.15; }
.product .sizes { font-size: 12px; color: var(--dim); }
.product .foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.product .price { font-size: 22px; color: var(--text); }
.product .buy { font-family: var(--font-display); text-transform: uppercase; font-size: 11px; letter-spacing: .16em; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.brand img.logo { width: 46px; height: 47px; }
.site-footer img.logo { width: 64px; height: 65px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .product .body { padding: 12px; } }

/* logo marquee (front page band and bottom strip) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee .track { display: flex; gap: 16px; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .logo-tile { width: 200px; flex-shrink: 0; padding: 12px 18px; }
.marquee .logo-tile.lg { width: 260px; height: 120px; }
.marquee .logo-tile img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; flex-wrap: wrap; width: auto; } }

/* player page: tall hero with the portrait anchored at the top and aligned right */
.player-hero { min-height: min(720px, 80vh); }
.player-hero .bg { width: 50%; opacity: .95; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.player-hero .bg img { object-position: top center; }
.player-hero .content { padding-bottom: 24px; }
@media (max-width: 900px) { .player-hero { min-height: 520px; justify-content: flex-end; } .player-hero .bg { width: 100%; opacity: .5; } }

/* readable text on photo tiles: a dark gradient between the image and the copy */
.feature.photo::after, .shortcut.photo::after { content: ""; display: block !important; position: absolute; inset: 0; opacity: 1; background: linear-gradient(180deg, rgba(26, 25, 80, .05) 0%, rgba(26, 25, 80, .45) 45%, rgba(26, 25, 80, .94) 100%); pointer-events: none; }
.feature h2, .feature p { text-shadow: 0 2px 12px rgba(26, 25, 80, .6); }

/* front page shortcuts: Holdet / Kampprogram / Nyheder */
.shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shortcut { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 300px; padding: 28px; color: var(--text); border: 1px solid var(--line); }
.shortcut .over { display: flex; flex-direction: column; gap: 6px; }
.shortcut .t { font-size: 34px; }
.shortcut .s { color: var(--muted); font-size: 15px; }
.shortcut .go { font-family: var(--font-display); text-transform: uppercase; font-size: 11px; letter-spacing: .18em; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.shortcut:hover .t { color: var(--accent-2); }
.shortcut:hover img { transform: scale(1.03); }
.shortcut img { transition: transform .4s; }
@media (max-width: 900px) { .shortcuts { grid-template-columns: minmax(0, 1fr); } .shortcut { min-height: 220px; } }
.player-tile img, .player-card img { object-position: top center; }

/* match programme as a list */
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px 200px; align-items: center; gap: 24px; padding: 16px 24px; }
.match-row .when { display: flex; flex-direction: column; gap: 2px; }
.match-row .when .d { font-size: 17px; font-weight: 600; }
.match-row .when .t { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.match-row .teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.match-row .team-row.away { justify-content: flex-end; text-align: right; }
.match-row .team-row .display { font-size: 17px; }
.match-row .vs { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; min-width: 56px; text-align: center; }
.match-row .score { font-size: 24px; color: var(--accent); min-width: 56px; text-align: center; }
.match-row .score .sep { color: var(--dim); margin: 0 3px; }
.match-row .score.loss { color: var(--muted); }
.match-row .venue { font-size: 13px; }
.match-row .tail { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.match-row.played { background: var(--bg-2); }
@media (max-width: 1300px) {
  .match-row { grid-template-columns: 180px minmax(0, 1fr) 190px; }
  .match-row .venue { display: none; }
}
@media (max-width: 800px) {
  .match-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .match-row .teams { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  /* row-reverse flips the main axis, so flex-end packs the crest and name against the left edge like the home row */
  .match-row .team-row.away { justify-content: flex-end; flex-direction: row-reverse; text-align: left; }
  .match-row .vs, .match-row .score { text-align: left; }
  .match-row .tail { justify-content: flex-start; }
}

/* rotating player tile on the front page */
.rotator { padding: 0; }
.rotator .slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: var(--text); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.rotator .slide.active { opacity: 1; pointer-events: auto; }
.rotator .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 25, 80, 0) 40%, rgba(26, 25, 80, .9) 100%); }
.rotator .slide .over { position: relative; z-index: 1; }
.rotator .slide img { object-position: top center; }

/* bigger logo that does not change the header height */
.brand img.logo { width: 72px; height: 73px; margin: -12px 0; }
.site-footer img.logo { width: 84px; height: 85px; }

/* grids that used to be inline styles; they need class hooks so the phone breakpoint can collapse them */
.venue-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.news-featured { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.logo-wall { gap: 16px; }
body.nav-open { overflow: hidden; }
body { overflow-x: hidden; }

/* ---------- phones ---------- */
@media (max-width: 1100px) {
  .venue-row, .news-featured { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .site-header { height: 72px; padding: 0 20px; }
  .site-nav { inset: 72px 0 0 0; }
  .brand img.logo { width: 60px; height: 61px; margin: -10px 0; }
  .brand .name .t { font-size: 14px; }

  /* section pages */
  .page-hero { min-height: 240px; padding: 40px var(--pad); }
  .page-hero .script { font-size: 34px; }
  .page-hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .page-hero .lead, .lead { font-size: 17px; }
  .section-head h2 { font-size: 28px; }
  .container.stack { padding-top: 40px !important; padding-bottom: 48px !important; gap: 40px !important; }

  /* front page */
  .front-page { gap: 14px; padding: 14px 14px 0; }
  .matchday .main { padding: 28px 20px; gap: 18px; }
  .matchday .action { padding: 44px 20px 24px; }
  .matchday .action .countdown .display { font-size: 40px; }
  .matchday .script { font-size: 44px; }
  .matchday h1 { font-size: 32px; }
  .matchday .facts .display { font-size: 20px; }
  .result-card, .venue-card, .upcoming-card, .latest { padding: 20px; }
  .result-card .score .display { font-size: 52px; }
  .venue-card h2 { font-size: 24px; }
  .venue-card .facts { gap: 10px; }
  .venue-card .facts .eyebrow { font-size: 10px; letter-spacing: .14em; }
  .venue-card .facts .display { font-size: 17px; }
  .upcoming-card .list { gap: 12px; }
  .partner-band { padding: 24px 20px 28px; gap: 18px; }
  .partner-band .head { flex-wrap: wrap; gap: 8px 16px; }
  .partner-band .head .rule { display: none; }
  .partner-band .script { font-size: 30px; }
  .shortcuts { gap: 14px; }
  .shortcut { min-height: 180px; padding: 20px; }
  .shortcut .t { font-size: 28px; }
  .feature { min-height: 300px; padding: 22px; }
  .quick { gap: 14px; }
  .quick a { min-height: 110px; padding: 18px; }
  .statement { padding: 28px 20px; }
  .statement h2 { font-size: 30px; }

  /* news */
  .news-featured { gap: 24px; }
  .news-list-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
  .news-list-item .t { font-size: 17px; }
  .news-card h3 { font-size: 20px; }
  .news-card.big h3 { font-size: 26px; }
  .article-hero { height: auto; min-height: 60vh; padding: 160px var(--pad) 32px; }
  .article-hero h1 { font-size: 30px; }
  .article-body { padding: 40px var(--pad); gap: 32px; }
  .prose { font-size: 17px; }
  .prose p:first-child { font-size: 19px; }
  .prose h2 { font-size: 26px; }
  .prose h3 { font-size: 20px; }
  .prose blockquote { font-size: 24px; padding-left: 18px; }

  /* matches */
  .filters { gap: 6px; }
  .match-row .when .d { font-size: 16px; }
  .match-row .team-row .display { font-size: 16px; }
  .standings .r { grid-template-columns: 32px minmax(0, 1fr) 40px 48px 44px; padding: 12px 10px; }
  .standings .r.head { padding: 10px; letter-spacing: .12em; }
  .standings .r .team { font-size: 13px; }
  .standings .r .pts { font-size: 15px; }

  /* team + partners + shop + blocks */
  .grid-5, .grid-6, .logo-wall.grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall.grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .logo-wall .logo-tile { padding: 10px 12px; font-size: 13px; }
  .logo-wall.grid-6 .logo-tile { height: 64px !important; font-size: 11px; }
  .package { padding: 24px 20px; }
  .package h3 { font-size: 22px; }
  .player-card .num { font-size: 56px; }
  .staff-card { padding: 14px; }
  .product .nm { font-size: 15px; }
  .product .price { font-size: 17px; }
  .product .foot { flex-wrap: wrap; gap: 4px 10px; }
  .values-box { padding: 24px 20px; }
  .values-box .script { font-size: 36px; }
  .values-box .v { padding: 14px 16px; font-size: 18px; }
  .prose, .values-box .v, .cta-box, .person-card { overflow-wrap: anywhere; }
  .cta-box { padding: 24px 20px; }
  .cta-box .script { font-size: 32px; }
  .cta-box .t { font-size: 20px; }
  .cta-box .contacts { gap: 10px 20px; }
  .blocks { gap: 36px; }
  .link-grid a { padding: 16px; }

  /* footer */
  .partner-strip { padding: 28px var(--pad); }
  .site-footer { padding-top: 48px; }
  .site-footer .cols { gap: 28px; }
  .site-footer .bottom { margin-top: 32px; flex-wrap: wrap; gap: 6px 16px; }
}


/* ---------- brand elements (Brand Guidelines: dobbeltpil, -30 graders snit, creme paneler) ---------- */
.dbl-arrow { display: inline-block; width: 22px; height: 16px; background: currentColor; clip-path: polygon(0 0, 30% 0, 55% 50%, 30% 100%, 0 100%, 25% 50%, 0 0, 45% 0, 75% 0, 100% 50%, 75% 100%, 45% 100%, 70% 50%); flex-shrink: 0; }
.cut-right { clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.cut-left { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
.panel-cream { background-color: var(--cream); background-image: var(--hex-dark); color: var(--brand-deep); }
.panel-cream .display, .panel-cream .eyebrow { color: var(--brand-deep); }
.panel-cream .script { color: var(--brand-blue); }
.matchday .script { color: var(--brand-sky); }
.page-hero { background-image: var(--hex), linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-deep) 160%); }
.statement { background-image: var(--brand-gradient); }
.partner-band .head .display { color: var(--brand-deep); }

/* player cards: number in an angled blue tab on a cream hex panel, as on the autograph cards */
.player-card { background: var(--cream); background-image: var(--hex-dark); }
.player-card .num { top: 0; left: 0; font-size: 34px; color: #fff; background: var(--brand-blue); padding: 8px 22px 8px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); opacity: 1; line-height: 1; }
.player-card .over { background: linear-gradient(180deg, rgba(33, 32, 92, 0), rgba(33, 32, 92, .88)); margin: 0 -16px -16px; padding: 40px 16px 16px; }

/* Bebas Neue needs a little more size at small scales */
.crest { font-size: 14px; letter-spacing: .04em; }
.crest.lg { font-size: 17px; }
.crest.own { background: var(--brand-ivory) url("/img/logo.svg") center / 78% no-repeat; color: transparent; border-radius: 6px; }
.site-nav a.nav { font-size: 15px; letter-spacing: .1em; }
.badge { font-size: 12px; }
.eyebrow { font-size: 13px; }
.countdown span { font-size: 11px; }

/* body: navy grund, deep blue only as accent */
.site-footer { background: var(--brand-navy); border-top: 1px solid var(--line); }
.partner-strip { background: var(--bg-2); }
.card { background: var(--surface); }

/* Bebas Neue is a single-weight face: never let the browser synthesise bold, and give small headlines more size and air */
.display, .btn, .badge, .eyebrow, .crest, .standings .r .team, .standings .r .pts, .match-row .when .d, .news-list-item .t, .shortcut .go, .product .buy, .product .price, .package .price, .site-nav a.nav, .latest a.item .t { font-weight: 400 !important; }
.display { letter-spacing: .03em; }
.news-card h3 { font-size: 26px; line-height: 1.05; letter-spacing: .03em; }
.news-card.big h3 { font-size: 40px; }
.news-list-item .t { font-size: 24px; line-height: 1.05; letter-spacing: .03em; }
.latest a.item .t { font-size: 20px; line-height: 1.1; }
.feature h2 { font-size: clamp(32px, 3.4vw, 52px); }
.player-card .nm, .staff-card .nm, .person-card .nm { font-size: 22px; }
.team-row .display { font-size: 21px; }
.match-row .when .d { font-size: 20px; }
.shortcut .t { font-size: 40px; }
.product .nm { font-size: 22px; }
.section-head h2 { font-size: 40px; }
.prose h2 { font-size: 36px; } .prose h3 { font-size: 26px; }


/* =====================================================================
   LIGHT THEME: sand/cream page with navy text. Blue surfaces keep the dark
   roles through .on-dark-style overrides on the components themselves.
   ===================================================================== */
:root {
  --hex-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='112' height='128' viewBox='0 0 112 128'><path d='M56 2 108 32v64L56 126 4 96V32Z' fill='none' stroke='%2398DAFB' stroke-opacity='.16' stroke-width='1.5'/></svg>");
  --bg: #FBF1DE;                 /* between cream #FFF3D9 and ivory, easy on the eye as a page ground */
  --bg-2: var(--brand-cream);
  --surface: var(--brand-ivory);
  --surface-2: #F4E7CB;
  --line: rgba(33, 32, 92, .14);
  --line-2: rgba(33, 32, 92, .28);
  --accent: var(--brand-blue);
  --accent-2: var(--brand-deep);
  --text: var(--brand-navy);
  --muted: #4d4c7d;
  --dim: #8483a8;
  --ink: var(--brand-navy);
  --hex: var(--hex-dark);
}
body { background: var(--bg); }
.card { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 0 rgba(33, 32, 92, .06); }
.hexbg { background-color: var(--bg-2); background-image: var(--hex-dark); }
.script { color: var(--brand-blue); }
.eyebrow { color: var(--brand-blue); }
.site-header { background: rgba(255, 250, 240, .96); border-bottom-color: var(--line); }
.site-nav a.nav { color: var(--brand-navy); }
.site-nav a.nav.active { color: var(--brand-blue); border-color: var(--brand-blue); }
.site-nav { background: var(--brand-ivory); }
.nav-toggle { color: var(--brand-navy); border-color: var(--line-2); }
.btn { color: var(--brand-navy); border-color: var(--line-2); }
.btn:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.badge { color: var(--muted); border-color: var(--line-2); }
.badge.home { background: rgba(23, 98, 225, .1); color: var(--brand-blue); border-color: var(--brand-blue); }
.crest.own { border: 1px solid var(--line); }
.logo-tile { border: 1px solid var(--line); }
.standings .r.own { background: rgba(23, 98, 225, .12); border-left-color: var(--brand-blue); }
.result-card .score .display.away { color: var(--brand-blue); }
.team-row .display { color: var(--brand-blue); }
.team-row.own .display { color: var(--brand-navy); }
.match-row.played { background: var(--surface-2); }
.match-row .score { color: var(--brand-blue); }
.match-row .score.loss { color: var(--muted); }
.news-card:hover h3, .shortcut:hover .t { color: var(--brand-blue); }
.prose { color: #3d3c6e; }
.prose blockquote { color: var(--brand-deep); }
.prose a { color: var(--brand-blue); }
.person-card .meta, .staff-card .role, .person-card .role, .player-card .pos, .product .brand, .package .price, .package li svg, .link-grid a svg { color: var(--brand-blue); }
.product .img { border-bottom: 1px solid var(--line); }
.pagination .btn.active, .filters .btn.active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

/* Components that stay blue: restore the dark roles inside them */
.matchday, .values-box, .cta-box, .statement, .page-hero, .partner-band, .partner-strip, .site-footer, .photo, .player-hero, .rotator {
  --text: var(--brand-ivory); --muted: #cfe3f5; --dim: #8fb4d8;
  --line: rgba(152, 218, 251, .2); --line-2: rgba(152, 218, 251, .36);
  --accent: var(--brand-cyan); --accent-2: var(--brand-sky); --hex: var(--hex-light);
  color: var(--text);
}
.matchday .script, .values-box .script, .cta-box .script, .page-hero .script, .partner-band .script { color: var(--brand-sky); }
.matchday .eyebrow, .values-box .eyebrow, .cta-box .eyebrow, .page-hero .eyebrow, .partner-band .eyebrow, .partner-strip .eyebrow, .site-footer .eyebrow { color: var(--brand-sky); }
.page-hero { background-color: var(--brand-navy); background-image: var(--hex-light), linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-deep) 160%); border-bottom: 0; }
.page-hero .lead { color: #cfe3f5; }
.partner-band { background-color: var(--brand-deep); background-image: var(--hex-light), linear-gradient(100deg, var(--brand-deep) 0%, var(--brand-blue) 130%); color: var(--brand-ivory); }
.partner-band .rule { background: rgba(152, 218, 251, .3); }
.partner-band .head .display { color: var(--brand-ivory); }
.partner-strip { background: var(--brand-navy); border-color: var(--brand-navy); }
.partner-strip .display { color: var(--brand-sky); }
.site-footer { background: var(--brand-navy); border-top: 0; }
.site-footer .col a { color: #cfe3f5; }
.site-footer .col a:hover { color: var(--brand-sky); }
.site-footer .social a { border-color: rgba(152, 218, 251, .36); color: var(--brand-ivory); }
.site-footer .bottom { border-top-color: rgba(152, 218, 251, .2); color: #8fb4d8; }
.values-box .v { border-color: rgba(152, 218, 251, .4); color: var(--brand-ivory); }
.cta-box .meta { color: var(--brand-ivory); }
.player-card { background: var(--brand-cream); background-image: var(--hex-dark); border: 1px solid var(--line); }
.statement .btn { color: var(--brand-ivory); border-color: rgba(152, 218, 251, .5); }
.statement .btn:hover { color: var(--brand-sky); border-color: var(--brand-sky); }
.result-card, .venue-card, .upcoming-card, .latest { color: var(--brand-navy); }
.shortcut { border-color: transparent; }
.article-hero .back { color: var(--brand-sky); }
.feature .over, .shortcut .over, .player-tile .over, .rotator .slide .over { color: var(--brand-ivory); }
.feature p, .shortcut .s { color: #dfe9f7; }

/* header: navy bar so the silver crest and white nav read clearly on the cream page */
.site-header { background: var(--brand-navy); border-bottom: 0; }
.site-header .brand .name .t { color: var(--brand-ivory); }
.site-header .brand .name .s { color: var(--brand-sky); }
.site-nav a.nav { color: var(--brand-ivory); }
.site-nav a.nav:hover { color: var(--brand-sky); }
.site-nav a.nav.active { color: var(--brand-sky); border-color: var(--brand-sky); }
.site-nav { background: var(--brand-navy); }
.site-nav .btn.primary { background: var(--brand-blue); color: #fff; }
.nav-toggle { color: var(--brand-ivory); border-color: rgba(152, 218, 251, .4); }
@media (max-width: 1100px) { .site-nav a.nav { color: var(--brand-ivory); } }

/* calmer page: hex pattern only on blue surfaces and cream panels, not as page wallpaper */
.hexbg { background-image: none; background-color: var(--surface-2); }
.page-hero { background-image: var(--hex-light), linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-deep) 160%); }
.news-list-item { border-top-color: var(--line); }
.news-list-item:last-child { border-bottom: 1px solid var(--line); }
.section-head h2, .prose h2, .prose h3 { color: var(--brand-navy); }

/* Alternate cream and navy down the page: statement band navy, partner strip cream, footer navy */
.statement { background-color: var(--brand-navy); background-image: var(--hex-light); }
/* with a photo: same treatment as the matchday box, navy behind the text opening up to the photo, the hex pattern on top */
.statement.has-img::after { content: ""; display: block !important; position: absolute; inset: 0; opacity: 1; background: linear-gradient(100deg, var(--brand-navy) 0%, rgba(33, 32, 92, .92) 30%, rgba(33, 32, 92, .45) 70%, rgba(33, 32, 92, .6) 100%), var(--hex-light); }
.statement img { object-position: center 40%; }
.statement h2 { color: var(--brand-ivory); text-shadow: 0 2px 14px rgba(26, 25, 80, .55); }
.statement h2 span { color: var(--brand-sky); }
.partner-strip { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 0; --text: var(--brand-navy); --muted: #4d4c7d; --dim: #8483a8; --line: rgba(33, 32, 92, .14); color: var(--brand-navy); }
.partner-strip .eyebrow, .partner-strip .display { color: var(--brand-blue); }
.partner-strip .rule { background: rgba(33, 32, 92, .14); }
.partner-strip .logo-tile { background: #fff; }
.site-footer { border-top: 0; }

/* quick links (Sæsonkort / Merchandise): small navy tiles instead of empty cream cards */
.quick a.card { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--brand-ivory); }
.quick a.card > span:first-child { color: var(--brand-sky); }
.quick a.card:hover { background: var(--brand-blue); border-color: var(--brand-blue); }

/* eyebrows on photo tiles stay light */
.photo .eyebrow, .feature .eyebrow, .shortcut .eyebrow { color: var(--brand-sky); }

/* One rule for blue: navy for surfaces, brand blue only for buttons, links, crests and small accents. */
.matchday { background-color: var(--brand-navy); background-image: var(--hex-light), linear-gradient(100deg, var(--brand-navy) 0%, var(--brand-deep) 130%); border: 0; }
.values-box, .cta-box { background-color: var(--brand-navy); background-image: var(--hex-light); border: 0; }
.page-hero { background-image: var(--hex-light); background-color: var(--brand-navy); }

/* partner band: a cream panel like the ad footers, not a second blue block */
.partner-band { background-color: var(--brand-ivory); background-image: var(--hex-dark); color: var(--brand-navy); border: 1px solid var(--line); --text: var(--brand-navy); --muted: #4d4c7d; --dim: #8483a8; }
.partner-band .script { color: var(--brand-blue); }
.partner-band .eyebrow, .partner-band .head .display { color: var(--brand-navy); }
.partner-band .rule { background: rgba(33, 32, 92, .14); }
.partner-band .logo-tile { background: #fff; border: 1px solid var(--line); }

/* cards: white on the cream page, with a quiet border */
.card { background: #fff; border-color: var(--line); box-shadow: none; }
.match-row.played { background: var(--brand-ivory); }
.hexbg { background-color: var(--brand-ivory); }

/* partner band: no panel, just the logos on the page */
.partner-band { background: none; border: 0; padding: 12px 0 8px; }
.partner-band .head { padding: 0 4px; }

/* page hero: always navy with the light hex pattern, whatever .hexbg says */
.page-hero.hexbg, .page-hero { background-color: var(--brand-navy); background-image: var(--hex-light), linear-gradient(100deg, var(--brand-navy) 0%, var(--brand-deep) 130%); }
.page-hero h1, .page-hero .display { color: var(--brand-ivory); }
.page-hero .script { color: var(--brand-sky); }
.page-hero .lead { color: #cfe3f5; }
.page-hero .bg { opacity: .6; }

/* ---------- subpages: the same photo and pattern treatment as the front page boxes ---------- */
/* Section hero: navy behind the text, the photo opening up towards the right, the hex pattern on top.
   Without a photo the pattern fades in from the right instead of covering the whole surface. */
.page-hero { background-image: linear-gradient(100deg, var(--brand-navy) 0%, var(--brand-deep) 130%); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hex-light); -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 70%); mask-image: linear-gradient(100deg, transparent 25%, #000 70%); pointer-events: none; }
.page-hero:not(.player-hero) .bg { width: 100%; opacity: 1; -webkit-mask-image: none; mask-image: none; }
.page-hero:not(.player-hero) .bg img { object-position: center 35%; }
.page-hero:not(.player-hero) .bg.has-img::after { content: ""; display: block !important; position: absolute; inset: 0; opacity: 1; background: linear-gradient(100deg, var(--brand-navy) 0%, rgba(33, 32, 92, .92) 30%, rgba(33, 32, 92, .45) 70%, rgba(33, 32, 92, .55) 100%), var(--hex-light); }
.page-hero h1, .page-hero .script { text-shadow: 0 2px 14px rgba(26, 25, 80, .55); }
.player-hero::before { display: none; }

/* Blue content boxes: the pattern fades in from the right instead of filling the box */
.values-box, .cta-box { position: relative; background-image: none; }
.values-box::before, .cta-box::before { content: ""; position: absolute; inset: 0; background-image: var(--hex-light); -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 80%); mask-image: linear-gradient(100deg, transparent 30%, #000 80%); pointer-events: none; }
.values-box > *, .cta-box > * { position: relative; }

@media (max-width: 700px) {
  /* stacked text spans the full width, so the photo darkens from the bottom instead of from the left */
  .page-hero:not(.player-hero) .bg.has-img::after { background: linear-gradient(180deg, rgba(33, 32, 92, .5) 0%, rgba(33, 32, 92, .92) 70%), var(--hex-light); }
  .page-hero::before, .values-box::before, .cta-box::before { -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 85%); mask-image: linear-gradient(180deg, transparent 30%, #000 85%); }
}

/* A faint dark hex on the cream page background itself, visible between the cards */
:root { --hex-faint: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='112' height='128' viewBox='0 0 112 128'><path d='M56 2 108 32v64L56 126 4 96V32Z' fill='none' stroke='%230A0094' stroke-opacity='.09' stroke-width='1.5'/></svg>"); }
/* It is laid over the full document height and masked so the top half is clean and the pattern grows in towards the bottom. */
body { position: relative; }
body::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--hex-faint); -webkit-mask-image: linear-gradient(180deg, transparent 45%, #000 100%); mask-image: linear-gradient(180deg, transparent 45%, #000 100%); pointer-events: none; }

/* Badges next to buttons in the match list share the button size */
.match-row .tail .badge { height: 38px; padding: 0 14px; font-size: 11px; }

/* The bottom partner strip sits directly on the page background so the pattern runs through it; no full-width rules, the short rule in its head is enough */
.partner-strip { background: transparent; border-top: 0; border-bottom: 0; }
.partner-strip .logo-tile { border: 1px solid rgba(33, 32, 92, .1); }

/* ---------- latest result card: score with crests, the outcome, and the league position ---------- */
.result-card { justify-content: flex-start; gap: 18px; }
.result-card .scoreline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; text-align: center; }
.result-card .side { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.result-card .side .num { font-size: 64px; line-height: .9; color: var(--dim); }
.result-card .side .num.lead { color: var(--brand-blue); }
.result-card .side .nm { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); line-height: 1.2; }
.result-card .sep { font-family: var(--font-display); font-size: 32px; color: var(--dim); padding-top: 26px; }
.result-card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-card .outcome { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid transparent; }
.result-card .outcome.win { background: var(--brand-blue); color: #fff; }
.result-card .outcome.draw { border-color: var(--brand-navy); color: var(--brand-navy); }
.result-card .outcome.loss { background: rgba(33, 32, 92, .08); color: var(--brand-navy); }
.result-card .when { font-size: 13px; color: var(--muted); text-align: center; margin-top: -4px; }
.result-card .foot { margin-top: auto; gap: 14px; }
.result-card .standing { display: flex; align-items: center; gap: 14px; }
.result-card .standing .rank { font-size: 44px; line-height: .9; color: var(--brand-blue); }
.result-card .standing .rank sup { font-size: 18px; vertical-align: top; }
.result-card .standing .t { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.result-card .standing .s { font-size: 12px; color: var(--muted); }
.result-card .more { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--brand-blue); display: inline-flex; align-items: center; gap: 8px; }
.result-card .more:hover { color: var(--brand-cyan); }
@media (max-width: 700px) {
  .result-card .side .num { font-size: 52px; }
}

/* footer credit line */
.site-footer .bottom { gap: 12px 24px; flex-wrap: wrap; }
.site-footer .bottom .credit { color: var(--dim); }
.site-footer .bottom .credit:hover { color: var(--brand-sky); }
