:root {
  --night: #0b1d33;
  --night-2: #122e4a;
  --snow: #f6f9fc;
  --ice: #dfedf5;
  --ink: #1a293b;
  --muted: #52677c;
  --accent: #086b9c;
  --accent-hover: #07537b;
  --frost: #8cdef5;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo Black", "Arial Black", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--snow); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .6em; }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
dd { margin: 0; }
.wrap { width: min(calc(100% - 2.5rem), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip-link { position: fixed; left: 1rem; top: -8rem; background: var(--frost); color: var(--night); padding: .7rem 1rem; z-index: 100; }
.skip-link:focus { top: .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--frost); color: var(--night); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .85rem 1.6rem; border: 2px solid transparent; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn--small { min-height: 44px; padding: .5rem 1.1rem; font-size: .9rem; }
.btn--ghost { background: transparent; border-color: #dfe8f2; }
.btn--ghost:hover { background: #ffffff18; }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--ice); color: var(--accent-hover); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Navigation */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; background: #0b1d33eb; color: #fff; backdrop-filter: blur(10px); box-shadow: 0 2px 20px #0002; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-size: 1.15rem; flex-shrink: 0; }
.brand img { flex-shrink: 0; object-fit: contain; }
.brand:hover { color: #fff; }
.desktop-nav { display: flex; align-items: center; gap: 1.25rem; }
.desktop-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 500; font-size: .9rem; }
.desktop-nav a:not(.btn):hover { color: var(--frost); }
.topbar .btn { background: var(--frost); color: var(--night); }
.topbar .btn:hover { background: #bcefff; }
.mobile-menu { display: none; }
.topbar :focus-visible, .hero :focus-visible, .section--dark :focus-visible, .section--accent :focus-visible, .footer :focus-visible, .page-head :focus-visible { outline-color: var(--frost); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--night); padding: 130px 0 clamp(3rem, 8vw, 6rem); }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b1d3359 0%, #0b1d3399 50%, var(--night) 100%); }
.hero__content { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 .8rem; }
.hero .eyebrow, .section--dark .eyebrow, .page-head .eyebrow { color: var(--frost); }
.hero__title { font-size: clamp(3rem, 10vw, 7.5rem); letter-spacing: -.025em; margin-bottom: .3em; text-transform: uppercase; }
.hero__title span { color: #fff; }
.hero__meta { font-size: clamp(1.05rem, 2vw, 1.35rem); display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.hero__intro { max-width: 58ch; color: var(--ice); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__actions .btn:not(.btn--ghost) { background: var(--frost); color: var(--night); }
.hero__actions .btn:not(.btn--ghost):hover { background: #bcefff; }

/* Quick facts */
.facts { background: var(--night); color: #fff; padding: 0 0 3rem; }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #ffffff1a; border-radius: var(--radius); overflow: hidden; margin-block: 0; }
.fact { display: flex; flex-direction: column-reverse; background: var(--night-2); padding: 1.5rem; text-align: center; }
.fact__value { font-family: var(--display); font-size: 1.6rem; font-weight: 900; }
.fact__label { color: var(--ice); font-size: .9rem; }

/* Content sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--muted { background: var(--ice); }
.section--accent { background: linear-gradient(135deg, var(--accent), #104568); color: #fff; }
.section--accent .eyebrow { color: #d9f5ff; }
.section--accent a:not(.btn) { color: #fff; }
.section--dark { background: var(--night); color: #fff; }
.section--dark a, .page-head a { color: var(--frost); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lead { color: var(--muted); margin-top: 1.5rem; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.note { color: var(--muted); font-size: .95rem; }
.section--accent .note, .page-head .note { color: var(--ice); }
.price-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.price-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #ffffff55; }
.price-list span { display: block; font-size: .9rem; color: #d9f5ff; }
.price-list b { font-size: 1.5rem; white-space: nowrap; }

/* Program and documents */
.timeline { list-style: none; padding: 0; margin: 2rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.25rem; }
.timeline__item { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 8px 24px #0b1d3310; border-top: 4px solid var(--accent); }
.timeline__time { display: block; font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--night); margin-bottom: .5rem; }
.timeline__item p { margin: 0; color: var(--muted); }
.doc-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid #b8ccdc; color: var(--night); text-decoration: none; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.photo-band { height: clamp(260px, 45vw, 520px); background: var(--night) center / cover no-repeat fixed; }
@media (hover: none) { .photo-band { background-attachment: scroll; } }

/* FAQ and archive */
.faq { display: grid; gap: .75rem; margin: 2rem 0 1.5rem; }
.faq details { background: #fff; border-radius: var(--radius); border: 1px solid var(--ice); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 1.4rem; font-weight: 700; display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .prose { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 1rem; margin-top: 2rem; }
.result-card { background: #fff; border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--night); transition: transform .15s ease, box-shadow .15s ease; }
.result-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px #0b1d331f; color: var(--night); }
.result-card__year { display: block; font-family: var(--display); font-size: 2rem; font-weight: 900; }
.result-card__link { color: var(--accent); font-size: .9rem; font-weight: 500; }
.partners { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 1rem; }
.partner-card { display: grid; gap: .8rem; height: 100%; background: #fff; border: 1px solid var(--ice); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--night); transition: transform .15s ease, box-shadow .15s ease; }
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px #0b1d331f; color: var(--night); }
.partner-card__logo { display: grid; place-items: center; height: 80px; }
.partner-card__logo img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }
.partner-card__name { color: var(--accent); font-size: .9rem; font-weight: 500; }
address { font-style: normal; font-size: 1.1rem; line-height: 1.8; }
.map { width: 100%; height: 400px; border: 0; border-radius: var(--radius); background: var(--night-2); }

/* News, error page and footer */
.page-head { background: var(--night); color: #fff; padding: 140px 0 4rem; }
.news-preview { border-bottom: 1px solid var(--ice); }
.news-list { display: grid; gap: 1.5rem; min-height: 15rem; }
.news-card { background: #fff; border: 1px solid var(--ice); border-radius: var(--radius); padding: 1.8rem; }
.news-card time { display: block; font-size: .85rem; color: var(--accent); margin-bottom: .7rem; }
.news-card h2 { font-size: 1.7rem; }
.news-card p:last-child { margin-bottom: 0; }
.footer { background: #071426; color: var(--ice); padding: 2.5rem 0; font-size: .95rem; }
.footer a { color: #fff; display: inline-block; padding-block: .4rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; gap: 1rem; align-items: center; min-height: 44px; padding: .5rem .8rem; border: 1px solid #ffffff66; border-radius: 999px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--night); padding: .5rem 1.25rem 1.25rem; max-height: calc(100dvh - 90px); overflow-y: auto; box-shadow: 0 12px 24px #0003; }
  .mobile-menu nav a { display: block; min-height: 44px; padding: .75rem; color: #fff; text-decoration: none; border-bottom: 1px solid #ffffff22; }
  .mobile-menu nav a:hover { color: var(--frost); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__title { font-size: clamp(2.6rem, 9vw, 4.4rem); }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 2rem); }
  .brand { font-size: 1rem; }
  .fact { padding: 1rem .6rem; }
  .fact__value { font-size: 1.35rem; }
  .price-list li { flex-wrap: wrap; }
  .timeline__item { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .hero__image, .hero::after, .photo-band, .map, .footer { display: none; }
  .wrap { width: 100%; }
  .hero { min-height: 0; padding: 2rem 0; }
  .section { padding: 1.5rem 0; }
  .split { display: block; }
  body, .hero, .section--accent, .section--dark, .facts, .fact, .page-head { background: white; color: black; }
  .hero__title span, .hero__intro, .fact__label, .section--accent .note, .price-list span { color: black; }
}

/* Blazor: loading screen before the runtime has started, and the built-in error bar */
.app-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 1rem; background: linear-gradient(180deg, var(--night), var(--night-2)); color: var(--snow); text-align: center; }
.app-loading p { margin: 0; font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; }
.app-loading strong { color: var(--frost); }
.app-loading__bar { width: 160px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.app-loading__bar span { display: block; height: 100%; width: var(--blazor-load-percentage, 0%); background: var(--frost); transition: width .2s ease; }
.app-loading small { color: var(--ice); opacity: .8; }
.app-loading small::after { content: var(--blazor-load-percentage-text, "Laddar…"); }
#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: .9rem 1.5rem 1rem 1.5rem; background: #ffd27f; color: var(--night); box-shadow: 0 -2px 10px rgba(0,0,0,.2); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .9rem; top: .6rem; }
