
:root {
  color-scheme: light dark;
  --paper: light-dark(#f6f4ed, #17232b);
  --surface: light-dark(#fffefa, #202e36);
  --ink: light-dark(#111b23, #fafcfc);
  --sub: light-dark(#465553, #d0dee1);
  --line: light-dark(#bec9be, #50656d);
  --focus: light-dark(#345a82, #c5e6ff);
  --track-line: light-dark(#a5ba9c, #476760);
  --mast: light-dark(#eaf1df, #203336);
  --signal: #c2fa67;
  --accent: light-dark(#31561c, #c2fa67);
  --button: light-dark(#31561c, #c2fa67);
  --button-ink: light-dark(#ffffff, #111b23);
  --max: 1160px;
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.minidrett-site {
  --mast: light-dark(#f5e8fb, #322940);
  --signal: #e9b9ff;
  --accent: light-dark(#713a8b, #e9b9ff);
  --button: light-dark(#713a8b, #e9b9ff);
  --button-ink: light-dark(#ffffff, #21152c);
  --track-line: light-dark(#cbb1d2, #765786);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { max-width: 100%; }
h1,h2,h3,p { margin: 0; }
p { max-width: 65ch; color: var(--sub); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.055em; }
h3 { line-height: 1.22; }
.wrap { width: min(var(--max), 100% - clamp(30px, 7vw, 92px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 8px; left: 12px; padding: 8px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 9px; }
.brand { display: inline-flex; text-decoration: none; }
.logo img { height: 42px; width: auto; display: block; }
.logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
.primary-nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.primary-nav a { text-decoration: none; font-weight: 650; font-size: .91rem; padding: 7px 0; }
.primary-nav a:hover, .primary-nav [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.theme-picker { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--sub); }
.theme-picker select { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 5px; font: inherit; }
.hero { background: var(--mast); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { min-height: 280px; display: grid; align-items: center; padding-block: clamp(34px, 7vw, 82px); position: relative; }
.hero-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); min-height: 390px; }
.hero-copy { z-index: 1; min-width: 0; }
.eyebrow, .index, .tag { font: 700 .75rem/1.4 var(--mono); letter-spacing: .085em; text-transform: uppercase; }
.eyebrow { color: var(--accent); }
.hero h1 { margin: 10px 0 12px; font-size: clamp(2.8rem, 7.6vw, 6.2rem); line-height: .96; letter-spacing: -.08em; overflow-wrap: anywhere; }
.hero p { font-size: clamp(1rem, 2vw, 1.18rem); }
.hero .breadcrumb { margin-bottom: 11px; font-size: .85rem; }
.hero-visual { position: absolute; right: -45px; bottom: 0; top: 0; width: 47%; overflow: hidden; display: flex; align-items: center; }
.hero-visual svg { position: absolute; width: 100%; height: 100%; fill: none; stroke: var(--track-line); stroke-width: 1.4; }
.hero-visual .lane-highlight { stroke: var(--accent); stroke-width: 2.2; }
.hero-visual span { position: absolute; right: 48px; bottom: 25px; color: var(--accent); font: 700 .76rem var(--mono); letter-spacing: .15em; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; min-height: 41px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: underline; }
.primary { background: var(--button); border-color: var(--button); color: var(--button-ink); }
.secondary { background: var(--surface); color: var(--accent); }
.site-section { padding-block: clamp(30px, 5.6vw, 66px); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin-top: 6px; }
.service-grid, .product-grid { display: grid; gap: 11px; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card, .product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 16px; min-width: 0; }
.service-card { border-top: 4px solid var(--service-color); text-decoration: none; display: grid; align-content: start; gap: 8px; }
.service-card:hover { border-inline-color: var(--accent); border-bottom-color: var(--accent); }
.service-card .card-top { display: flex; justify-content: space-between; gap: 5px; align-items: baseline; }
.service-card .eyebrow, .index { color: var(--sub); }
.service-card .index { font-size: .69rem; }
.service-card img { margin-top: 4px; }
.service-card p, .product-card p { font-size: .94rem; }
.service-card .arrow { margin-top: 2px; }
.product-card h3 { margin: 6px 0; font-size: clamp(1.55rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }
.product-card .button { margin-top: 12px; }
.arrow { color: var(--accent); font-weight: 700; text-decoration: none; }
.feature { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.resource-list, .module-list { list-style: none; padding: 0; margin: 0; }
.resource-list { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 940px; }
.resource-list > li { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.resource-list > li:last-child { border-bottom: 0; }
.resource-list h3 { margin: 4px 0 2px; font-size: 1.08rem; }
.resource-list p { font-size: .9rem; }
.resource-list .tag, .module-list li { color: var(--accent); background: var(--mast); border-radius: 4px; padding: 3px 6px; }
.guide-list h3 a { text-decoration: none; }
.guide-list h3 a:hover { text-decoration: underline; }
.guide-list .arrow { display: grid; min-width: 36px; min-height: 36px; place-items: center; }
.source-note { margin-top: 12px; font-size: .9rem; }
.module-list { display: flex; flex-wrap: wrap; gap: 6px; }
.module-list li { font-size: .85rem; }
.steps { padding-inline-start: 1.4rem; margin: 0; }
.steps li { padding: 10px 0 13px; border-bottom: 1px solid var(--line); max-width: 70ch; }
.steps h3 { margin-bottom: 4px; }
.site-footer { background: var(--surface); }
.footer-inner { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; align-items: center; padding-block: 22px; }
.footer-inner small { display: block; color: var(--sub); }
.footer-inner nav { font-size: .85rem; }
@media (max-width: 825px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { gap: 7px 15px; }
  .primary-nav { gap: 3px 12px; }
}
@media (max-width: 590px) {
  .header-inner .primary-nav { order: 3; width: 100%; }
  .hero-split { grid-template-columns: minmax(0, 1fr); min-height: 310px; }
  .hero-visual { width: 65%; opacity: .2; }
  .hero-visual span { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .service-card { padding: 11px; }
  .service-card p { font-size: .85rem; }
}

.service-card.frisys-live { --service-color: #C2FA67; }
.service-card.opprop { --service-color: #FFC36D; }
.service-card.frisys-stevne { --service-color: #A8C2FF; }
.service-card.minidrett { --service-color: #E9B9FF; }

.archive-content { max-width: 78ch; overflow-wrap: anywhere; }
.archive-content section + section { margin-top: 1rem; }
.archive-content :is(h2,h3,h4,h5,h6,p,ul,ol,blockquote) { margin-block: .65rem; }
.archive-content h2 { font-size: 1.45rem; letter-spacing: -.025em; }
.archive-content img { width: auto; height: auto; max-width: 100%; display: block; margin-block: 1rem; }
.archive-content a, .archive-links a { color: var(--accent); }
.archive-table-wrap { overflow-x: auto; }
.archive-content table { width: 100%; border-collapse: collapse; margin-block: 1rem; background: var(--surface); }
.archive-content :is(th,td) { border: 1px solid var(--line); padding: .45rem .7rem; text-align: left; }
.archive-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 1.1rem; }
.archive-groups > div { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: .9rem; }
.archive-links { padding-inline-start: 1.2rem; margin-block: .4rem; }
.archive-related { margin-top: 1rem; }

.release-channels { display: grid; gap: .9rem; max-width: 940px; }
.release-channel > h3 { margin-bottom: .4rem; }
.release-channel details { margin-top: .4rem; }
.release-channel summary, .historic-downloads summary { color: var(--accent); font-weight: 650; }
.release-notes { white-space: pre-wrap; margin-block: .4rem; overflow-wrap: anywhere; }
.release-sha { display: block; font-size: .75rem; overflow-wrap: anywhere; }
.historic-downloads { margin-block: .9rem; }
[data-prices] .resource-list { margin-top: .6rem; }
