/* KI på papir. Bare systemskrifter, ingen eksterne ressurser. */
:root {
  --bakgrunn: #fbfaf7;
  --flate: #ffffff;
  --tekst: #161616;
  --dempet: #5a5a5a;
  --strek: #d9d4c7;
  --aksent: #1f4e79;
  --aksent-flate: #e8eef5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bakgrunn: #151515;
    --flate: #1e1e1e;
    --tekst: #ececec;
    --dempet: #a8a8a8;
    --strek: #3a3a3a;
    --aksent: #8fb8e0;
    --aksent-flate: #1d2a38;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bakgrunn); color: var(--tekst);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px; line-height: 1.55;
}
a { color: var(--aksent); }
.ramme { max-width: 920px; margin: 0 auto; padding: 0 20px; }
header.topp { border-bottom: 1px solid var(--strek); background: var(--flate); }
header.topp .ramme { display: flex; justify-content: space-between; align-items: center; height: 60px; }
header.topp a.merke { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--tekst); letter-spacing: -0.3px; }
header.topp nav a { margin-left: 18px; text-decoration: none; font-size: 16px; }
main { padding: 40px 0 64px; }
h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.8px; margin: 0 0 12px; }
h2 { font-size: 26px; line-height: 1.2; margin: 40px 0 12px; letter-spacing: -0.3px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
.ingress { font-size: 21px; color: var(--dempet); margin: 0 0 28px; max-width: 46em; }
.sti { font-size: 15px; color: var(--dempet); margin-bottom: 14px; }
.sti a { color: var(--dempet); }
.etiketter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.etiketter span { background: var(--aksent-flate); color: var(--tekst); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.knapper { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.knapp { display: inline-block; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; border: 2px solid var(--aksent); }
.knapp.primar { background: var(--aksent); color: var(--bakgrunn); }
.knapp.sekundar { color: var(--aksent); }
.trinn { margin-top: 36px; }
.trinn > h2 { margin-bottom: 4px; }
.trinn > p { margin: 0 0 14px; color: var(--dempet); }
.kort-rutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kurskort { background: var(--flate); border: 1px solid var(--strek); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--tekst); display: flex; flex-direction: column; }
a.kurskort:hover { border-color: var(--aksent); }
.kurskort .nr { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--aksent); }
.kurskort .navn { font-size: 21px; font-weight: 700; margin: 4px 0 6px; line-height: 1.2; }
.kurskort .sporsmal { color: var(--dempet); font-size: 16px; flex: 1; }
.kurskort .status { margin-top: 12px; font-size: 14px; font-weight: 600; }
.kurskort.kommer { opacity: 0.6; }
.okter { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.okter li a { display: block; background: var(--flate); border: 1px solid var(--strek); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: var(--tekst); }
.okter li a:hover { border-color: var(--aksent); }
.okter .tittel { font-weight: 700; font-size: 19px; }
.okter .mal { color: var(--dempet); font-size: 16px; }
.innhold table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 16px; display: block; overflow-x: auto; }
.innhold th, .innhold td { border: 1px solid var(--strek); padding: 8px 10px; text-align: left; vertical-align: top; }
.innhold th { background: var(--aksent-flate); }
.innhold code { font-size: 0.88em; background: var(--aksent-flate); padding: 1px 5px; border-radius: 4px; }
.innhold li { margin-bottom: 4px; }
.materiell { list-style: none; padding: 0; display: grid; gap: 8px; }
.materiell li { background: var(--flate); border: 1px solid var(--strek); border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.materiell .info { color: var(--dempet); font-size: 15px; }
footer { border-top: 1px solid var(--strek); padding: 24px 0 40px; font-size: 15px; color: var(--dempet); }
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 31px; }
  .ingress { font-size: 19px; }
  header.topp nav a { margin-left: 12px; font-size: 15px; }
}
dialog.modal { max-width: 760px; width: calc(100% - 32px); max-height: 85vh; overflow-y: auto; border: 1px solid var(--strek); border-radius: 14px; padding: 28px 32px; background: var(--bakgrunn); color: var(--tekst); }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog.modal h1 { font-size: 30px; padding-right: 40px; }
dialog.modal .lukk { position: sticky; top: 0; float: right; border: none; background: var(--aksent-flate); color: var(--tekst); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.kildeliste { padding-left: 0; list-style: none; font-size: 16px; }
.kildeliste li { margin-bottom: 12px; overflow-wrap: anywhere; }
.kildeliste ul { padding-left: 18px; }
.kildeliste .info { color: var(--dempet); font-size: 15px; }
footer a { color: var(--dempet); }
@media (max-width: 600px) { dialog.modal { padding: 22px 18px; } }
.splash { position: fixed; inset: 0; z-index: 100; cursor: pointer; background: #fbfaf7 url("/splash.webp") no-repeat left center / cover; display: flex; align-items: center; }
.splash[hidden] { display: none; }
html.splash-apen { overflow: hidden; }
.splash-logo { position: absolute; left: 5vw; bottom: 5vh; width: clamp(140px, 14vw, 260px); height: auto; mix-blend-mode: multiply; }
.splash-tekst { margin-left: 5vw; max-width: 27vw; color: #161616; }
.splash-tekst h1 { font-size: clamp(40px, 4.6vw, 80px); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 16px; }
.splash-tekst p { font-size: clamp(18px, 1.6vw, 24px); color: #4a4a4a; margin: 0 0 28px; line-height: 1.4; }
.splash-tekst .knapp { font-size: 18px; padding: 12px 28px; cursor: pointer; font-family: inherit; background: #1f4e79; color: #fbfaf7; border-color: #1f4e79; }
@media (max-aspect-ratio: 4/3) {
  .splash { align-items: flex-end; background-position: 72% center; }
  .splash-logo { left: auto; right: 20px; bottom: auto; top: 20px; width: 140px; mix-blend-mode: normal; background: #fff; border-radius: 6px; padding: 4px; }
  .splash-tekst { margin: 0; max-width: none; width: 100%; padding: 28px 20px 40px; background: rgba(251, 250, 247, 0.94); border-top: 1px solid #d9d4c7; }
}
details.kursmeny { display: inline-block; position: relative; }
details.kursmeny summary { list-style: none; cursor: pointer; color: var(--aksent); font-size: 16px; }
details.kursmeny summary::-webkit-details-marker { display: none; }
details.kursmeny summary::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: 2px; }
details.kursmeny[open] summary::after { transform: rotate(180deg); }
.nedtrekk { position: absolute; right: -12px; top: calc(100% + 18px); z-index: 50; width: 360px; background: var(--flate); border: 1px solid var(--strek); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); padding: 14px 8px 10px; }
.nedtrekk .forklaring { margin: 0 12px 8px; font-size: 14px; color: var(--dempet); line-height: 1.4; }
.nedtrekk ul { list-style: none; margin: 0; padding: 0; }
.nedtrekk li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 8px; }
.nedtrekk li:hover { background: var(--aksent-flate); }
header.topp .nedtrekk a { margin: 0; font-size: 15px; }
.nedtrekk li > a:first-child, .nedtrekk li > span:first-child { flex: 1; padding: 7px 12px; color: var(--tekst); font-size: 15px; line-height: 1.35; }
.nedtrekk .pdf { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; padding: 3px 9px; margin-right: 8px; border: 1.5px solid var(--aksent); border-radius: 999px; white-space: nowrap; }
header.topp .nedtrekk a.pdf { font-size: 12px; margin-right: 8px; }
.nedtrekk li.kommer, .nedtrekk li.kommer > span:first-child { color: var(--dempet); }
.nedtrekk li.kommer .pdf { border-color: var(--strek); font-weight: 600; }
header.topp .nedtrekk a.alle { display: block; margin: 8px 12px 2px; font-size: 15px; padding-top: 8px; border-top: 1px solid var(--strek); }
header.topp nav { display: flex; align-items: center; }
header.topp nav > a, header.topp nav > details { margin-left: 18px; }
@media (max-width: 600px) {
  header.topp nav > a, header.topp nav > details { margin-left: 12px; }
  details.kursmeny summary { font-size: 15px; }
  details.kursmeny { position: static; }
  .nedtrekk { position: fixed; left: 16px; right: 16px; top: 60px; width: auto; max-height: calc(100vh - 80px); overflow-y: auto; }
}

.info-linje { color: var(--dempet); font-size: 16px; margin: 0 0 20px; }

img.logo { mix-blend-mode: multiply; }
header.topp a.merke { display: inline-flex; align-items: center; gap: 10px; }
header.topp a.merke img.logo { height: 38px; width: auto; }
img.om-logo { max-width: 260px; height: auto; display: block; }
@media (prefers-color-scheme: dark) {
  img.logo { mix-blend-mode: normal; background: #fff; border-radius: 6px; padding: 3px; }
}
