:root {
  --bg: #070b10; --card: #0d1620; --card-2: #12202d; --line: rgba(29,221,253,.22);
  --text: #e8f6ff; --body: #c9dbe8; --muted: #9db3c4; --accent: #1dddfd;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(ellipse at 50% 0%, #0d2a3d 0%, var(--bg) 620px);
  background-color: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Toppmeny med faner ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7,11,16,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29,221,253,.12);
}
.site-header .inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand span b { color: var(--accent); font-weight: 800; }
.tabs { display: flex; gap: 4px; }
.tabs a {
  position: relative; padding: 19px 12px; color: var(--muted); text-decoration: none;
  font-weight: 650; font-size: .95rem; white-space: nowrap; transition: color .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent); border-radius: 2px;
}
.tabs a:focus-visible, .btn:focus-visible, .teaser:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 520px) {
  .brand { font-size: 1rem; }
  .tabs a { padding: 19px 9px; font-size: .9rem; }
}

/* ---------- Forside / episoder ---------- */
.home { max-width: 640px; margin: 0 auto; padding: 40px 16px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cover { width: min(100%, 420px); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 0 70px rgba(29,221,253,.2); }
.tag {
  margin-top: 32px; display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}
.tag.live::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tag.live::before { animation: none; } }
.home h1 { margin-top: 12px; font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15; font-weight: 800; text-wrap: balance; }
.meta { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.desc { margin-top: 18px; color: var(--body); line-height: 1.6; max-width: 54ch; text-wrap: pretty; }
.player { margin-top: 28px; width: 100%; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.player iframe { display: block; width: 100%; height: 232px; border: 0; }
.listen { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.btn {
  flex: 1 1 200px; max-width: 280px; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 14px 18px; border-radius: 999px; font-weight: 650; font-size: 1rem;
  color: var(--text); text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .15s, box-shadow .15s, transform .15s;
}
.btn:hover { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }

.teaser {
  margin-top: 48px; width: 100%; display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center;
  padding: 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); text-decoration: none; text-align: left; transition: background .15s, box-shadow .15s;
}
.teaser:hover { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--accent); }
.teaser img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 9px; }
.teaser .tag { margin-top: 0; font-size: .7rem; letter-spacing: .22em; }
.teaser strong { display: block; margin-top: 6px; font-size: 1.05rem; line-height: 1.3; text-wrap: balance; }
.teaser em { display: block; margin-top: 8px; font-style: normal; color: var(--accent); font-weight: 650; font-size: .9rem; }
@media (max-width: 480px) { .teaser { grid-template-columns: 1fr; } }

/* ---------- Artikkel ---------- */
.article { max-width: 880px; margin: 0 auto; padding: 44px 16px 64px; }
.article header { text-align: left; }
.article h1 {
  margin-top: 12px; font-size: clamp(1.9rem, 5.4vw, 3.5rem); line-height: 1.1; font-weight: 850;
  letter-spacing: -.01em; text-wrap: balance;
}
.lead { margin-top: 18px; font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 1.55; color: var(--text); text-wrap: pretty; }

.byline { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.byline strong { color: var(--text); font-weight: 650; }
.article figure { margin: 36px 0; }
.article figure img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(0,0,0,.45); }
.article figure.small img { width: auto; max-width: min(100%, 680px); margin: 0 auto; }
.article figure.small figcaption { text-align: center; }
.article figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.prose { color: var(--body); font-size: 1.08rem; line-height: 1.75; }
.prose p { margin-top: 1.1em; text-wrap: pretty; }
.prose h2 {
  margin-top: 2.2em; color: var(--text); font-size: clamp(1.3rem, 3.4vw, 1.6rem); line-height: 1.25; font-weight: 800;
  display: flex; align-items: center; gap: .55em;
}
.prose h2::before { content: ""; width: 4px; align-self: stretch; min-height: 1.1em; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(29,221,253,.6); }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { margin-top: 1.1em; padding-left: 0; list-style: none; }
.prose li { position: relative; margin-top: .75em; padding-left: 1.6em; }
.prose ul li::before { content: ""; position: absolute; left: .35em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; padding-left: 2.6em; }
.prose ol li::before {
  content: counter(step); position: absolute; left: 0; top: .1em; width: 1.8em; height: 1.8em; border-radius: 50%;
  display: grid; place-items: center; font-size: .85em; font-weight: 800; color: var(--bg); background: var(--accent);
}
.prose .quote {
  margin-top: 1.2em; padding: 18px 22px; border-radius: 12px; background: var(--card); box-shadow: inset 3px 0 0 var(--accent);
  color: var(--text); font-size: 1.2rem; font-weight: 600; line-height: 1.5;
}
.prose .end { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid rgba(29,221,253,.15); font-weight: 650; color: var(--text); }

.back { display: inline-flex; align-items: center; gap: .5em; margin-top: 40px; color: var(--accent); text-decoration: none; font-weight: 650; }
.back:hover { text-decoration: underline; }

footer.site-footer { padding: 28px 16px 40px; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid rgba(29,221,253,.08); }

@media (min-width: 900px) {
  .prose { font-size: 1.18rem; line-height: 1.75; }
  .lead { font-size: 1.4rem; }
  .article figcaption { font-size: .95rem; }
}

/* ---------- Bred PC-visning ---------- */
@media (min-width: 1000px) {
  .site-header .inner { max-width: 1112px; padding: 0 24px; }

  /* Forside: cover til venstre, episoden til høyre */
  .home { max-width: 1112px; padding: 64px 24px 72px; }
  .hero { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; text-align: left; }
  .hero .cover { width: 100%; max-width: 520px; }
  .hero-info .tag { margin-top: 0; }
  .hero-info h1 { font-size: 2.9rem; }
  .hero-info .meta { font-size: 1.05rem; }
  .hero-info .desc { font-size: 1.15rem; max-width: none; }
  .hero-info .listen { justify-content: flex-start; }
  .hero-info .btn { max-width: none; }
  .teaser { margin-top: 72px; grid-template-columns: 340px 1fr; gap: 32px; padding: 18px; }
  .teaser .tag { font-size: .78rem; }
  .teaser strong { font-size: 1.6rem; margin-top: 10px; }
  .teaser em { font-size: 1rem; margin-top: 14px; }

  /* Artikkel: bred spalte, større skrift */
  .article { max-width: 1112px; padding: 64px 24px 80px; }
  .article h1 { font-size: 4rem; max-width: 22ch; }
  .lead { font-size: 1.55rem; max-width: 48ch; }
  .byline { font-size: 1.05rem; }
  .prose { font-size: 1.3rem; line-height: 1.75; }
  .prose h2 { font-size: 2rem; }
  .prose .quote { font-size: 1.45rem; padding: 24px 28px; }
  .article figure { margin: 48px 0; }
  .article figure.small img { max-width: 760px; }
  .article figcaption { font-size: 1rem; }
}

/* ---------- Artikler (liste og publiserte saker) ---------- */
.article .byline time { color: var(--muted); }
.article figcaption .kreditt { color: #7f97a8; white-space: nowrap; }
.artikler { max-width: 1112px; margin: 0 auto; padding: 48px 16px 72px; }
.artikler h1 { margin-top: 10px; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 850; line-height: 1.1; }
.artikkelliste { list-style: none; margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.artikkelkort { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.artikkelkort:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 0 40px rgba(29,221,253,.12); transform: translateY(-2px); }
.artikkelkort:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.artikkelkort img, .kort-uten-bilde { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #0a131c; }
.kort-uten-bilde { background: radial-gradient(ellipse at 30% 30%, #0d2a3d, #0a131c); }
.kort-tekst { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.kort-tekst .tag { margin-top: 0; font-size: .7rem; letter-spacing: .22em; }
.kort-tekst strong { font-size: 1.25rem; line-height: 1.25; font-weight: 800; text-wrap: balance; }
.kort-ingress { color: var(--body); line-height: 1.55; font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kort-meta { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .88rem; }
@media (min-width: 1000px) { .artikler { padding: 64px 24px 80px; } .artikkelliste { grid-template-columns: repeat(3, 1fr); } }

/* ---------- «Slik gjorde vi det» på forsiden ---------- */
.forside-artikler { width: 100%; margin-top: 64px; text-align: left; }
.fa-hode { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fa-hode h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; }
.fa-hode a { color: var(--accent); font-weight: 650; text-decoration: none; }
.fa-hode a:hover { text-decoration: underline; }
.forside-artikler .artikkelliste { margin-top: 20px; }
.artikkelliste.to { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (min-width: 1000px) { .artikkelliste.to { grid-template-columns: repeat(2, 1fr); } .forside-artikler { margin-top: 80px; } }

/* ---------- Mobil: logo på én linje, fanene på linjen under ---------- */
@media (max-width: 760px) {
  .site-header .inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; }
  .brand { width: 100%; font-size: 1.05rem; }
  /* fire faner: raden kan sveipes sidelengs på smale skjermer, uten at siden blir bredere */
  .tabs { width: calc(100% + 32px); margin: 0 -16px; padding: 0 9px; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; padding: 11px 6px 13px; font-size: .85rem; }
  .tabs a[aria-current="page"]::after { left: 6px; right: 6px; }
}

/* ---------- AI-verktøy ---------- */
.verktoy-side { max-width: 1112px; margin: 0 auto; padding: 48px 16px 72px; }
.vk-topp h1 { margin-top: 10px; font-size: clamp(1.9rem, 5.5vw, 3.1rem); font-weight: 850; line-height: 1.1; text-wrap: balance; max-width: 20ch; }
.vk-ingress { margin-top: 14px; color: var(--body); font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.55; max-width: 60ch; }
.vk-filter { position: sticky; top: 60px; z-index: 4; margin: 28px -16px 0; padding: 14px 16px; background: rgba(7,11,16,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(29,221,253,.1); }
.vk-sok input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--card); border: 1px solid rgba(29,221,253,.25); border-radius: 999px; padding: 12px 18px; }
.vk-sok input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,221,253,.2); }
.vk-kategorier { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vk-kategorier::-webkit-scrollbar { display: none; }
.vk-chip { flex: none; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 650; color: var(--body); text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.vk-chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.vk-chip.aktiv { background: var(--accent); color: #031018; box-shadow: none; }
.vk-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vk-ingen { margin-top: 28px; color: var(--muted); }
.vk-kategori { margin-top: 44px; scroll-margin-top: 190px; }
.vk-kategori h2 { font-size: clamp(1.4rem, 3.6vw, 1.8rem); font-weight: 800; display: flex; align-items: center; gap: .55em; }
.vk-kategori h2::before { content: ""; width: 4px; align-self: stretch; min-height: 1.1em; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(29,221,253,.6); }
.vk-kat-intro { margin-top: 8px; color: var(--body); line-height: 1.55; max-width: 70ch; }
.vk-liste { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vk-kort { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.vk-kort-topp { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vk-kort h3 { font-size: 1.2rem; font-weight: 800; }
.vk-laget { color: var(--muted); font-size: .82rem; }
.vk-kort p { color: var(--body); line-height: 1.55; font-size: .98rem; }
.vk-bra { font-size: .92rem !important; }
.vk-bra b { color: var(--text); }
.vk-lenke { margin-top: auto; padding-top: 4px; color: var(--accent); font-weight: 650; text-decoration: none; font-size: .95rem; }
.vk-lenke:hover { text-decoration: underline; }
.vk-merknad { margin-top: 56px; padding: 20px 22px; border-radius: 14px; background: var(--card); box-shadow: inset 3px 0 0 var(--accent); color: var(--body); line-height: 1.6; }
.vk-merknad p + p { margin-top: 8px; }
.vk-merknad b { color: var(--text); }
.vk-merknad a { color: var(--accent); }
@media (max-width: 760px) { .vk-filter { top: 73px; } .vk-kategori { scroll-margin-top: 210px; } }
@media (min-width: 1000px) { .verktoy-side { padding: 64px 24px 80px; } .vk-filter { margin: 32px -24px 0; padding: 16px 24px; } .vk-liste { grid-template-columns: repeat(3, 1fr); } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 761px) { .vk-kategorier { flex-wrap: wrap; overflow: visible; } }
.article .byline .oppdatert { color: var(--muted); }

/* ---------- Tidligere episoder ---------- */
.tidligere { width: 100%; margin-top: 64px; text-align: left; }
.tidligere h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; }
.episodeliste { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.episodekort { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ep-tekst .tag { margin-top: 0; font-size: .72rem; letter-spacing: .2em; }
.ep-tekst h3 { margin-top: 8px; font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.ep-tekst p { margin-top: 8px; color: var(--body); line-height: 1.55; }
.ep-lenker { display: flex; gap: 16px; flex-wrap: wrap; }
.ep-lenker a { color: var(--accent); font-weight: 650; text-decoration: none; }
.ep-lenker a:hover { text-decoration: underline; }
.ep-spiller { width: 100%; height: 152px; border: 0; border-radius: 12px; background: #0a131c; }
@media (min-width: 1000px) {
  .tidligere { margin-top: 80px; }
  .episodekort { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 28px; padding: 24px; }
}
