﻿/* ==========================================================================
   Blåljus.se – responsiv stilmall (ersätter blaljus-layout2/typography2/ticker)
   Mobil först. Brytpunkter: 700px (surfplatta), 1100px (dator).
   Grundstruktur som tidigare: topp, meny, tickers, nyhetsspalt + Senaste nytt
   + högerspalt, annonser, sidfot.
   ========================================================================== */

:root {
  --blue: #0976b5;
  --blue-dark: #075a8c;
  --red: #e30613;
  --ink: #141414;
  --muted: #666;
  --line: #e2e6ea;
  --bg: #f2f2f2;
  --paper: #fff;
  --tint: #eef5fa;
  --soft: #f6f8fa;
  --soft2: #eef1f4;
  --soft3: #e4e9ed;
  --line2: #dfe5ea;
  --line3: #cfd6dc;
  --tint-line: #cfe3f1;
  --text2: #333;
  --radius: 16px 0 16px 0;   /* signaturen från originaldesignen */
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }
iframe { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Ram ---------- */
.site {
  max-width: 1232px;
  margin: 0 auto;
  background: var(--paper);
  padding: 0 16px 24px;
}
@media (min-width: 1100px) {
  .site { margin: 16px auto; border-radius: var(--radius); box-shadow: 2px 2px 8px rgba(0,0,0,.12); padding: 0 24px 24px; }
}

/* ---------- Annonser högst upp (980x120 passar bara på stor skärm) ---------- */
.ad-top { display: none; text-align: center; padding-top: 12px; overflow: hidden; }
.ad-top-inner { display: inline-block; max-width: 100%; }
@media (min-width: 1100px) { .ad-top { display: block; } }

/* ---------- Topp ---------- */
.masthead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 16px 0 12px;
}
.logo { display: block; flex: 0 1 350px; max-width: 70%; }
.logo img { display: block; width: 100%; height: auto; }

.dateinfo { display: flex; gap: 0; font-size: 13px; }
.date-box { padding: 0 16px; border-left: 1px solid var(--line); line-height: 1.25; }
.date-box:first-child { border-left: 0; padding-left: 0; }
.date-day { font-weight: 800; text-transform: uppercase; color: var(--blue); font-size: 18px; letter-spacing: .01em; }
.nameday-title { color: #d54f3e; }
.date-full { color: var(--ink); text-transform: uppercase; font-size: 12px; }
.date-week { font-weight: 700; text-transform: uppercase; font-size: 12px; }

.topnews { display: none; gap: 8px; }
.topnews img { display: block; width: 100px; height: 59px; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .topnews { display: flex; } }

@media (max-width: 699px) {
  .masthead { justify-content: center; text-align: center; }
  .logo { flex-basis: 260px; max-width: 80%; }
  .dateinfo { justify-content: center; width: 100%; }
}

/* ---------- Meny ---------- */
.mainnav { position: relative; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 5px solid var(--blue); }
.nav-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; color: var(--ink); font: 700 15px var(--font);
  text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; cursor: pointer; color: var(--ink);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 3px; background: var(--ink); position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }

.navlist { list-style: none; margin: 0; padding: 0; display: none; }
.mainnav.open .navlist { display: block; }
.navlist a, .nav-lan {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--ink); font: 700 16px var(--font); letter-spacing: .02em;
  padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none;
}
.navlist a:hover, .nav-lan:hover, .navlist a:focus-visible, .nav-lan:focus-visible { background: var(--tint); color: var(--blue); text-decoration: none; }
.navlist a.active, .nav-lan.active { color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }

.lan-panel { background: var(--tint); border-top: 1px solid var(--line); padding: 8px 12px; }
.lan-panel[hidden] { display: none; }
.lan-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 12px; }
.lan-panel a { display: block; padding: 8px 4px; font-weight: 600; color: var(--blue-dark); }

/* Vågrät meny först när alla tio punkterna får plats på en rad, annars Meny-knappen */
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .navlist { display: flex; flex-wrap: wrap; }
  .navlist a, .nav-lan { width: auto; border-top: 0; padding: 11px 7px; font-size: 14px; letter-spacing: 0; }
  .navlist a.active, .nav-lan.active { box-shadow: none; }
}
@media (min-width: 800px) { .lan-panel ul { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1000px) { .lan-panel ul { grid-template-columns: repeat(7, minmax(0,1fr)); } }

/* ---------- Tickers ---------- */
.tickers { margin: 6px 0 18px; }
.ticker {
  position: relative; display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-top: 10px; padding: 5px 10px 8px 5px;
  background: var(--paper); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 1px 3px rgba(20,40,70,.06);
}
.ticker-polis { --tcol: #1862a8; }
.ticker-trafik { --tcol: #d70000; }
:root[data-theme="dark"] .ticker-polis { --tcol: #62a9ee; }
:root[data-theme="dark"] .ticker-trafik { --tcol: #ff5b5b; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 currentColor; opacity: 1; } 50% { transform: scale(1.08); box-shadow: 0 0 8px 1px currentColor; opacity: .85; } }
/* Märket till vänster: logotyp + LIVE, klick öppnar listan */
.ticker-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-width: 176px; min-height: 36px; padding: 3px 12px 3px 3px; gap: 8px; border: 1px solid var(--line2); border-radius: 999px; background: var(--soft); color: var(--tcol); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.ticker-brand:hover, .ticker.is-open .ticker-brand, .ticker-brand:focus-visible { border-color: var(--tcol); background: var(--paper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tcol) 18%, transparent); outline: none; }
.tb-logo { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.ticker-brand:hover .tb-logo { transform: scale(1.04); }
.tb-logo img { display: block; height: 20px; width: auto; max-width: 100px; }
.ticker-trafik .tb-logo { background: #d70000; }
.ticker-trafik .tb-logo img { height: 15px; max-width: 120px; }
.tb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.tb-caret { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .8; }
.ticker.is-open .tb-caret { transform: translateY(1px) rotate(-135deg); }
.ticker-viewport { flex: 1 1 260px; min-width: 0; overflow: hidden; }
.ticker-list { list-style: none; margin: 0; padding: 0; }
.ticker-list li { display: flex; align-items: center; gap: 0 12px; min-height: 30px; padding: 2px 0; overflow: hidden; }
.ticker-time { flex: 0 0 204px; width: 204px; min-height: 38px; justify-content: space-between; display: inline-flex; align-items: stretch; align-self: center; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; background: var(--soft); font-size: 13.5px; line-height: 1.2; white-space: nowrap; }
.tt-date { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 0 10px 0 14px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.tt-clock { position: relative; display: inline-flex; align-items: center; padding: 0 16px 0 32px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--tcol, #e0323f); }
.tt-clock::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .12; }
.tt-clock::after { content: ""; position: absolute; left: 11px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 3v6l5 3 1-1.7-4-2.3V7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 3v6l5 3 1-1.7-4-2.3V7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ticker-list li > .ticker-time { display: none; }
.ticker-list a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; }
.ticker-list.on li { display: none; }
.ticker-list.on li.active { display: flex; }
.ticker-list.on li.active.typing a::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -3px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ticker-list a:hover { color: var(--blue); }
/* Utan JavaScript visas bara första rubriken */
.ticker-list:not(.on) li:not(:first-child) { display: none; }
/* Pilknappar och förloppslinje */
.ticker-ctl { flex: 0 0 auto; display: flex; gap: 4px; }
.tk-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line2); border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tk-btn svg { width: 16px; height: 16px; }
.tk-btn:hover, .tk-btn:focus-visible { background: var(--tcol); border-color: var(--tcol); color: #fff; outline: none; }
.ticker-progress { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.ticker-progress i { display: block; width: 0; height: 100%; background: var(--tcol); opacity: .55; }
/* Listan med de senaste händelserna */
.ticker-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; padding: 9px 12px 8px; background: var(--paper); border: 1px solid var(--line3); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.ticker-panel[hidden] { display: none; }
.tp-title { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tcol); }
.tp-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.tp-list li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line2); }
.tp-list li:first-child { border-top: 0; }
.tp-list .ticker-time { display: inline-flex; flex: 0 0 156px; width: 156px; min-height: 24px; font-size: 11.5px; }
.tp-list .tt-date { padding: 0 6px 0 10px; }
.tp-list .tt-clock { padding: 0 11px 0 24px; }
.tp-list .tt-clock::after { left: 8px; width: 11px; height: 11px; margin-top: -5.5px; }
.tp-list a { flex: 1 1 auto; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.tp-list a:hover { color: var(--blue); text-decoration: underline; }
.tp-more { display: inline-block; margin-top: 5px; font-size: 12.5px; font-weight: 800; }
@media (max-width: 760px) {
  .ticker { padding: 8px 10px 10px; }
  .ticker-brand { min-width: 0; }
  .ticker-viewport { flex-basis: 100%; order: 3; }
  .ticker-ctl { margin-left: auto; }
  .ticker-list a { font-size: 14px; white-space: normal; }
  .ticker-list li { flex-wrap: wrap; gap: 2px 12px; }
  .ticker-list li > .ticker-time, .tp-list .ticker-time { flex: 0 0 auto; width: auto; }
  .tp-list li { flex-wrap: wrap; gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .ticker-list.on li.active.typing a::after { animation: none; } .ticker-progress i { transition: none !important; } }
/* ---------- Kolumnlayout ---------- */
.layout { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.col-main { grid-area: main; min-width: 0; }
.col-side { grid-area: side; min-width: 0; }
.col-mid { display: contents; }
.col-mid > .latest { grid-area: latest; }
.col-mid > .ads-column { grid-area: ads; }

.layout-front { grid-template-areas: "main" "latest" "side" "ads"; }
.layout-article { grid-template-areas: "main" "side"; }
.layout-full { grid-template-areas: "main"; }

@media (min-width: 700px) {
  .layout-front { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "main main" "mid side"; }
  .col-mid { display: block; grid-area: mid; min-width: 0; }
  .col-mid > .latest, .col-mid > .ads-column { grid-area: auto; }
}
@media (min-width: 1100px) {
  .layout-front { grid-template-columns: minmax(0,1fr) 260px 260px; grid-template-areas: "main mid side"; }
}
@media (min-width: 960px) {
  .layout-article { grid-template-columns: minmax(0,1fr) 300px; grid-template-areas: "main side"; }
}

/* ---------- Boxar i sidokolumner ---------- */
.box { margin: 0 0 24px; }
.box-title {
  margin: 0 0 12px; padding: 5px 10px; background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.box-title a { color: inherit; }
.latest .box-title { background: var(--red); }
.tipbox img { display: block; width: 100%; border-radius: var(--radius); margin-bottom: 8px; }
.tipbox p { margin: 0 0 4px; font-size: 14px; }
.adbox { margin: 0 0 24px; text-align: center; overflow: hidden; }

.searchfield {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  border: 1px solid var(--line3); border-radius: 6px; background: var(--paper);
}
.searchfield:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* Senaste nytt – tidslinje med röd punkt */
.latest { border: 1px solid var(--line); padding: 0 12px 4px; margin-bottom: 24px; background: var(--paper); }
.latest .box-title { margin: 0 -12px 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 0 0 4px; }
.timeline time::before {
  content: ""; position: absolute; left: -16px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--red); animation: glow 2s infinite alternate;
}
@keyframes glow { from { opacity: 1; } to { opacity: .35; } }
.timeline .tl-link { margin: 4px 0 0; padding: 0 0 8px 11px; border-left: 2px solid var(--red); }
.timeline li:last-child .tl-link { padding-bottom: 4px; }
.timeline a { color: var(--blue); font-weight: 700; font-size: 14px; line-height: 1.3; display: block; }
.timeline a:hover { color: var(--blue-dark); }
.notislist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.notislist li { padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.3; }
.notislist a { color: var(--ink); font-weight: 600; }
.notislist a:hover { color: var(--blue); }
.notis-ort { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--red); letter-spacing: .04em; }

/* Annonskolumn */
.ads-column { text-align: center; overflow: hidden; }
.ads-column h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 8px; padding: 5px 10px; background: var(--blue); color: #fff; text-align: left; }
.ads-column .hr7ou hr { margin: 14px 0; }
.ads-column img { height: auto; }
.ads-column form { text-align: left; font-size: 14px; }
.ads-column input[type="text"] { width: 100%; padding: 8px; border: 1px solid var(--line3); border-radius: 4px; }
.articlead { position: relative; margin: 8px 0; }
.articlead .admark, .articlead .admark2 { display: block; font-size: 10px; line-height: 1; color: #888; text-align: left; margin-bottom: 3px; }
.articlead .admark::before, .articlead .admark2::before { content: "Annons"; text-transform: uppercase; letter-spacing: .06em; }
.ad-banner { text-align: center; margin: 16px 0; overflow: hidden; }
.ad-banner img, .ad-banner iframe { max-width: 100%; height: auto; }
.ad-bottom { margin: 24px 0 0; text-align: center; overflow: hidden; }
.ad-bottom-inner { display: inline-block; max-width: 100%; }
@media (max-width: 1099px) { .ad-bottom { display: none; } }

/* ---------- Nyhetskort (startsidan, län, nöje) ---------- */
.section-title {
  margin: 0 0 16px; padding-top: 8px; border-top: 4px solid var(--blue);
  font-size: 28px; font-weight: 900; letter-spacing: -.01em;
}
.cards { display: grid; gap: 28px 20px; grid-template-columns: minmax(0,1fr); margin-top: 24px; }
@media (min-width: 520px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.card { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; background: var(--line2); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-media:hover img { transform: scale(1.03); }
.card-flag {
  position: absolute; left: 0; top: 12px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px;
}
.card-title { margin: 10px 0 6px; font-size: 18.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.005em; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--blue); text-decoration: none; }
.card-teaser {
  margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: auto; font-size: 12px; color: var(--muted); }
.card-meta strong { color: var(--ink); }

/* Förstanyhet: stor bild med rubrik över */
.card-hero .card-media { aspect-ratio: 16 / 10; }
.card-hero .hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.55) 55%, rgba(0,0,0,0));
}
.card-hero .card-flag { position: static; display: inline-block; margin-bottom: 8px; padding: 3px 10px; }
.card-hero .hero-title { margin: 0; font-size: 23px; font-weight: 800; line-height: 1.1; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.card-hero .card-teaser { font-size: 15px; font-weight: 600; color: #000; margin-top: 10px; -webkit-line-clamp: 2; }
:root[data-theme="dark"] .card-hero .card-teaser { color: #fff; }
@media (min-width: 700px) { .card-hero .hero-title { font-size: 30px; } .card-hero .hero-caption { padding: 70px 28px 24px; } }
.card-hero { margin-bottom: 4px; }

.readmore { font-weight: 800; font-size: 14px; white-space: nowrap; }

/* ---------- Bläddring ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 36px 0 8px; }
.pg-btn, .pg-num {
  display: inline-block; min-width: 44px; padding: 10px 14px; text-align: center; font-weight: 800; font-size: 15px;
  border: 1px solid var(--line3); border-radius: 6px; background: var(--paper); color: var(--ink); text-decoration: none;
}
.pg-btn { background: var(--blue); border-color: var(--blue); color: #fff; }
a.pg-btn:hover, a.pg-num:hover { text-decoration: none; filter: brightness(.92); }
a.pg-num:hover { background: var(--tint); filter: none; }
.pg-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg-disabled { background: #eceff1; border-color: #eceff1; color: #9aa3aa; }
.pg-nums { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; order: 3; width: 100%; }
.pg-gap { padding: 10px 4px; color: var(--muted); }
.pager-info { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 8px; }
@media (min-width: 640px) {
  .pg-nums { order: 0; width: auto; }
}

/* ---------- Artiklar ---------- */
.article { max-width: none; }
.article-hero { margin: 0 0 16px; }
.article-hero img { display: block; width: 100%; border-radius: var(--radius); }
.article-hero figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.article h1 { font-size: 30px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 10px; }
.article .published { font-size: 14px; color: var(--muted); font-weight: 400; margin: 0 0 12px; }
@media (min-width: 700px) { .article h1 { font-size: 42px; } }
.article-body { max-width: 800px; font-size: 18px; line-height: 1.65; }
.article-body .kicker { font-weight: 800; text-transform: uppercase; color: var(--blue); }
.article-body img { height: auto; }
.article-body iframe, .embed iframe { width: 100%; }
.byline img { max-height: 92px; width: auto; }
.embed { margin: 24px 0; overflow: hidden; }
#map { height: 400px; border-radius: var(--radius); margin-bottom: 20px; z-index: 0; }
@media (min-width: 700px) { #map { height: 500px; } }

/* Delning */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 20px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font-weight: 800; font-size: 14px; }
.share-btn {
  appearance: none; font: 700 13px var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line3); background: var(--paper); color: var(--ink); text-decoration: none;
}
.share-btn:hover { background: var(--tint); text-decoration: none; }
.share-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-fb:hover { background: #0f63d0; }
.share-x { background: #000; border-color: #000; color: #fff; }
.share-x:hover { background: #333; }
.share-tip { margin-left: auto; font-size: 13px; font-weight: 700; }

/* Bildgalleri */
.gallery-title { font-size: 20px; margin: 28px 0 12px; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 520px) { .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line2); border-radius: 8px 0 8px 0; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.05); }

/* ---------- Innehållssidor (om oss, annonsera, tipsa ...) ---------- */
.page { max-width: 980px; }
.page h1 { font-size: 32px; font-weight: 900; border-top: 5px solid var(--blue); padding-top: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .page h1 { font-size: 40px; } }
.page h2, .page h3 { margin-top: 1.6em; }
.page .lead { font-size: 18px; }
.page-body { font-size: 17px; line-height: 1.6; }
.page-body img { height: auto; }

.about { max-width: none; width: 100%; }
.about-hero { background: linear-gradient(135deg, #0a4d7a, var(--blue)); color: #fff; border-radius: var(--radius); padding: 28px 22px; margin: 4px 0 28px; }
.about-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.about-hero h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.15; font-weight: 900; border: 0; padding: 0; color: #fff; }
.about-lead { margin: 0 0 20px; font-size: 18px; line-height: 1.55; max-width: 720px; }
.about-stats { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.about-stats strong { display: block; font-size: 30px; line-height: 1; font-weight: 900; }
.about-stats span { font-size: 13px; opacity: .9; }
.about-cta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.about-hero .btn { background: var(--paper); color: var(--blue-dark); }
.about-hero .btn:hover { background: var(--tint); }
.about-hero .btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.about-hero .btn-secondary:hover { background: rgba(255,255,255,.14); }
.about-block { margin: 0 0 34px; }
.about-block h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; border-top: 5px solid var(--blue); padding-top: 10px; }
.about-sub { margin: 0 0 14px; color: var(--muted); }
.people { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 16px 0 0; }
@media (min-width: 760px) { .people { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.person { text-align: center; font-size: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px 12px; }
.person p { margin: 0 0 4px; overflow-wrap: anywhere; }
.person img { display: block; margin: 4px auto 16px; width: 100%; max-width: 150px; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 3px var(--blue), 0 6px 14px rgba(0,0,0,.18); background: var(--soft2); }
.person-memory img { box-shadow: 0 0 0 3px var(--line3), 0 6px 14px rgba(0,0,0,.12); filter: grayscale(.6); }
.person .name { margin: 0; font-weight: 800; font-size: 16px; }
.person .role { color: var(--muted); margin-bottom: 8px; }
.person-memory { background: var(--soft); }
.about-cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 860px) { .about-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.about-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; font-size: 15px; line-height: 1.55; }
.about-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.about-card-join { background: var(--tint); border-color: var(--tint-line); }
.about-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 14px 0 0; }
.logos a { display: flex; align-items: center; justify-content: center; height: 76px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.logos img { max-height: 52px; max-width: 100%; width: auto; height: auto; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logos a:hover img { filter: none; opacity: 1; }

.notice { padding: 12px 16px; border-left: 4px solid var(--blue); background: var(--tint); margin: 0 0 20px; }
.notice-error { border-color: var(--red); background: #fdeced; }
.notice-ok { border-color: #1a8f3c; background: #e9f7ee; }

/* Formulär */
.form label { display: block; font-weight: 700; margin: 14px 0 4px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; max-width: 640px; padding: 11px 12px; font: inherit; border: 1px solid var(--line3); border-radius: 6px; background: var(--paper);
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form .hp { position: absolute; left: -9999px; }
.btn, .blButtonPrimary {
  display: inline-block; cursor: pointer; font: 800 15px var(--font); padding: 12px 22px; border: 0; border-radius: 6px;
  background: var(--blue); color: #fff; margin: 16px 8px 0 0; text-decoration: none;
}
.btn:hover, .blButtonPrimary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-secondary, .blButtonSecondary { background: var(--soft3); color: var(--ink); }
.btn-secondary:hover, .blButtonSecondary:hover { background: #d3dae0; }
#file-list { padding-left: 18px; }
#file-list button { margin-left: 8px; padding: 4px 10px; font-size: 12px; margin-top: 0; }

/* Trafik / karta / webb-tv */
.frame-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.frame-wrap iframe { display: block; width: 100%; height: 70vh; min-height: 420px; border: 0; }
.frame-wrap-map iframe { height: calc(100vh - 20px); min-height: 560px; }
.map-note { margin: 8px 0 0; font-size: .85rem; color: var(--muted, #666); }
.weather-search { display: flex; align-items: stretch; gap: 8px; margin: 0 0 14px; max-width: 460px; }
.weather-search input, .weather-search .btn { box-sizing: border-box; height: 44px; margin: 0; }
.weather-search input { flex: 1; min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 16px; }
.weather-search .btn { padding: 0 18px; line-height: 1; white-space: nowrap; }
.weather-grid { display: grid; grid-template-columns: 1fr; gap: 6px 18px; margin-bottom: 8px; }
.weather-cell { min-width: 0; }
.weather-city { display: block; font-weight: 700; font-size: 15px; margin: 10px 0 4px; }
@media (min-width: 820px) {
  .weather-grid { grid-template-columns: 1fr 1fr; }
}
.weather-frame { display: block; width: 100%; height: 250px; border: 0; }

/* ---------- Sidfot ---------- */
.site-footer { margin-top: 32px; padding-top: 20px; border-top: 4px solid var(--blue); font-size: 14px; }
.footer-cols { display: grid; gap: 20px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 700px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-weight: 800; font-size: 16px; margin: 0 0 6px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 3px 0; }
.footer-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 6px; }
.copyright { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

@media print {
  .tickers, .mainnav, .ad-top, .ad-bottom, .ads-column, .col-side, .share, .site-footer, .skip-link, .topnews { display: none !important; }
  body { background: var(--paper); }
  .layout { display: block; }
}

/* Bläddring under alla kolumner */
.below { margin-top: 8px; }


/* Mellanstor skärm: snävare meny så att alla flikar får plats på en rad */
@media (min-width: 800px) and (max-width: 1099px) {
  .navlist a, .nav-lan { padding: 13px 9px; font-size: 13px; letter-spacing: 0; }
}

/* Rosen vid namnsdagen (som pa dagens sajt) */
.rose-icon { align-self: center; height: 48px; width: auto; margin: 0 4px 0 12px; }
@media (max-width: 699px) { .rose-icon { display: none; } }

/* Lightbox: bilden får sin storlek av skriptet. Den allmänna regeln img { max-width: 100% } skulle annars
   krympa bredden men låta höjden stå kvar, så att bilden blir smal. */
#lightbox img, #lightbox .lb-image { max-width: none !important; }
#lightbox .lb-image { height: auto; }
/* ---------- Artikeln: fotokredit på bilden, ort/län, text och skribent ---------- */
.article-hero { position: relative; }
.article-hero figcaption {
  position: absolute; right: 10px; bottom: 10px; margin: 0; max-width: calc(100% - 20px);
  background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3;
  padding: 3px 9px; border-radius: 3px;
}
.article-hero figcaption a { color: #fff; text-decoration: underline; }

.loc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.loc-ort { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; }
.loc-lan { color: var(--muted); font-size: 14px; font-weight: 700; }

.article-body p { margin: 0 0 1em; }
.article-body div { margin: 0; }
.article-body div:not(:has(div)) { margin-bottom: 1em; }
.article-body > :last-child { margin-bottom: 0; }

.byline { display: flex; align-items: center; gap: 12px; max-width: 800px; margin: 28px 0 8px; padding-top: 14px; border-top: 2px solid var(--line); }
.byline-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.byline img { height: 44px; width: auto; max-width: 70%; }
/* Publicerad: liten röd prick, etikett i versaler och datum/tid */
.article .published {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 14px; font-weight: 600; color: #444;
}
.article .published::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.pub-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
/* ---------- Rangordning: JUST NU, tätare rader och textrader ---------- */
.justnu {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px;
  padding: 11px 14px; background: #fdeced; border-left: 5px solid var(--red); font-size: 18px; font-weight: 800; line-height: 1.25;
}
.justnu-label { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.justnu a { color: var(--ink); }
.justnu a:hover { color: var(--blue); text-decoration: none; }

.list-title { margin: 32px 0 4px; padding-top: 8px; border-top: 4px solid var(--blue); font-size: 22px; font-weight: 900; }
.rows { margin: 0; }
.row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-media { flex: 0 0 140px; align-self: flex-start; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line2); border-radius: 8px 0 8px 0; }
.row-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1 1 auto; min-width: 0; }
.row-kicker { margin: 0 0 2px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.row-title { margin: 0 0 4px; font-size: 17px; font-weight: 800; line-height: 1.22; }
.row-title a { color: var(--ink); }
.row-title a:hover { color: var(--blue); text-decoration: none; }
.row-teaser { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 400; line-height: 1.4; }
.row-text { padding-left: 12px; border-left: 4px solid var(--line); }
@media (max-width: 479px) { .row-media { flex-basis: 104px; } .row-title { font-size: 15.5px; } }
/* Ort + län som två etiketter i samma form: röd ort, blått län, båda i versaler */
.loc { gap: 3px; }
.loc-ort, .loc-lan {
  display: inline-block; font-size: 12px; font-weight: 800; line-height: 1.5; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 10px;
}
.loc-ort { background: var(--red); color: #fff; }
.loc-lan { background: var(--blue); color: #fff; }

/* Skribent/byline: lite större */
.byline { gap: 16px; margin-top: 32px; padding-top: 16px; }
.byline-label { font-size: 13px; letter-spacing: .1em; }
.byline img { height: 92px; max-width: 85%; }
@media (max-width: 479px) { .byline img { height: 68px; } }
/* ---------- Sidfot ---------- */
.site-footer { margin: 40px -16px -24px; padding: 0; border-top: 0; background: #14202b; color: #cfd8df; font-size: 14px; }
@media (min-width: 1100px) { .site-footer { margin: 44px -24px -24px; border-radius: 0 0 16px 0; } }
.site-footer::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--blue) 0 72%, var(--red) 72% 100%); }
.sf-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); padding: 32px 16px 8px; }
@media (min-width: 700px) { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 38px 24px 8px; } }
@media (min-width: 1100px) { .sf-grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 44px; } }
.sf-logo { margin: 0 0 8px; font: 900 30px/1 var(--font); letter-spacing: -.01em; color: #fff; }
.sf-logo span { color: var(--blue); }
.sf-tag { margin: 0 0 10px; color: #b7c4cd; line-height: 1.5; }
.sf-mail { margin: 0; }
.sf-mail a { color: #fff; font-weight: 700; }
.sf-col h4 { display: inline-block; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.sf-col ul { list-style: none; margin: 0; padding: 0; }
.sf-col li { padding: 4px 0; }
.sf-col a { color: #cfd8df; }
.sf-col a:hover { color: #fff; text-decoration: underline; }
.sf-tip p { margin: 0 0 14px; color: #b7c4cd; line-height: 1.5; }
.sf-btn { display: inline-block; margin: 0 14px 10px 0; padding: 10px 20px; border-radius: 6px; background: var(--red); color: #fff !important; font-weight: 800; text-decoration: none !important; }
.sf-btn:hover { background: #bf0410; }
.sf-fb { display: inline-block; margin-bottom: 10px; color: #fff !important; font-weight: 700; }
.sf-lan { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 18px 16px 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
@media (min-width: 700px) { .sf-lan { padding: 18px 24px 12px; } }
.sf-lan-title { margin-right: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sf-lan a { color: #9fb2bf; }
.sf-lan a:hover { color: #fff; }
.sf-bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; margin-top: 6px; padding: 14px 16px 20px; border-top: 1px solid rgba(255,255,255,.12); }
@media (min-width: 700px) { .sf-bottom { padding: 14px 24px 22px; } }
.sf-bottom .copyright { margin: 0; color: #b7c4cd; font-size: 15px; font-weight: 600; }
.sf-bottom .copyright a { color: #fff; text-decoration: underline; }
.sf-bottom .footer-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 0; opacity: .85; }
/* Sidfot: ingen röd färg. Blått och vitt, Facebook-knappen i Facebooks blå. */
.site-footer::before { background: linear-gradient(90deg, #4db3ec, var(--blue)); }
.sf-col h4 { border-bottom-color: #4db3ec; }
.sf-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0 10px 10px 0; padding: 10px 18px; border-radius: 6px; background: #fff; color: #14202b !important; font-weight: 800; text-decoration: none !important; }
.sf-btn:hover { background: #e3eef6; text-decoration: none !important; }
.sf-btn-fb { background: #1877f2; color: #fff !important; }
.sf-btn-fb:hover { background: #0f63d0; }
.sf-ico { flex: 0 0 auto; }

/* ---------- Annonsplatser (roteras fran App_Data/ads.xml) ---------- */
.adslot { margin: 22px 0; padding: 4px 12px 12px; min-width: 0; max-width: 100%; text-align: center; border: 1px solid #d5d9dd; border-radius: 6px; }
.adslot-label { display: block; width: auto; margin: 0 0 0 4px; padding: 0 8px; border: 0; text-align: left; font-size: 10px; line-height: 1.2; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8f94; }
.adslot-body { display: flex; justify-content: center; overflow: hidden; max-width: 100%; }
.adslot-body img, .adslot-body iframe { max-width: 100%; height: auto; }
.adslot-top, .adslot-bottom { display: none; }
@media (min-width: 1100px) {
  .adslot-top { display: block; margin: 14px 0 0; }
  .adslot-bottom { display: block; margin: 26px 0 0; }
}
.adpool-side { margin: 18px 0; }
.article-body-cont { margin-top: 0; }
.house-ad { display: block; margin: 0 0 24px; }
.house-ad img { display: block; width: 100%; height: auto; }
.ads-column .box img { display: block; width: 100%; height: auto; }
.travelform label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; text-align: left; }
.travelform input[type="text"] { display: block; width: 100%; margin-top: 3px; }

/* ---------- Webb-TV ---------- */
.tv-stage { width: 100%; }
.tv-player { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; background: #0d141b; border-radius: var(--radius); overflow: hidden; }
/* mjuk bakgrund i filmens egna farger bakom filmen - ersatter svarta kanter nar filmen inte ar 16:9 */
.tv-player::before { content: ""; position: absolute; inset: -12%; z-index: 0; background: var(--poster) center / cover no-repeat; filter: blur(32px) brightness(.62) saturate(1.25); }
.tv-frame { position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%; height: 100%; transform: translateX(-50%); background: #000; }
.tv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.tv-play img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .94; transition: opacity .2s, transform .3s; }
.tv-play:hover img, .tv-play:focus-visible img { opacity: 1; transform: scale(1.02); }
.tv-play:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.tv-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(9,118,181,.92); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.tv-icon::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -8px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.tv-icon-sm { width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 0; transition: opacity .2s; }
.tv-icon-sm::after { margin: -9px 0 0 -5px; border-width: 9px 0 9px 15px; }

.tv-info h2 { margin: 16px 0 8px; font-size: 26px; font-weight: 900; line-height: 1.2; }
.tv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 8px; }
/* datumetikett */
.tv-datechip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--tint); color: var(--blue-dark); font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.tv-datechip svg { flex: 0 0 auto; }
.tv-ytlink { font-size: 13px; font-weight: 800; }
.tv-chip { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(13,20,27,.78); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; line-height: 1.4; backdrop-filter: blur(2px); }

.tv-grid { display: grid; gap: 22px 18px; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
@media (min-width: 520px) { .tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .tv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tv-card { display: block; color: var(--ink); text-decoration: none; }
.tv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line2); border-radius: 10px 0 10px 0; }
.tv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tv-card:hover .tv-thumb img, .tv-card:focus-visible .tv-thumb img { transform: scale(1.05); }
.tv-card:hover .tv-icon-sm, .tv-card:focus-visible .tv-icon-sm { opacity: 1; }
.tv-card.is-current .tv-thumb { outline: 3px solid var(--blue); outline-offset: 2px; }
.tv-title { display: -webkit-box; margin-top: 8px; font-size: 15px; font-weight: 800; line-height: 1.25; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card:hover .tv-title { color: var(--blue); }
.tv-more { margin: 26px 0 0; text-align: center; }
@media (max-width: 600px) { .tv-info h2 { font-size: 20px; } .tv-icon { width: 60px; height: 60px; margin: -30px 0 0 -30px; } }
@supports not (aspect-ratio: 16 / 9) {
  .tv-player, .tv-thumb { height: 0; padding-bottom: 56.25%; }
  .tv-thumb img { position: absolute; inset: 0; }
}

/* ---------- Bläddring: kompakt variant ovanför listan + ankare ---------- */
#filmer, #nyheter { scroll-margin-top: 14px; }
.pager-top { justify-content: flex-start; margin: 4px 0 14px; gap: 6px; }
.pager-top .pg-btn, .pager-top .pg-num { padding: 7px 12px; min-width: 38px; font-size: 14px; }
.pager-top .pg-nums { order: 0; width: auto; }
.adv-reasons { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 640px) { .adv-reasons { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 960px) { .adv-reasons { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.adv-reason { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; }
.adv-reason h3 { margin: 10px 0 6px; font-size: 16px; font-weight: 800; line-height: 1.25; }
.adv-reason p { margin: 0; font-size: 14px; color: #333; }
.adv-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }
.adv-steps { list-style: none; counter-reset: s; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .adv-steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.adv-steps li { counter-increment: s; position: relative; background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--radius); padding: 16px 16px 16px 58px; }
.adv-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.adv-steps strong { display: block; font-size: 16px; margin-bottom: 4px; }
.adv-steps span { font-size: 14px; color: #333; }
.adv-places { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 760px) { .adv-places { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.adv-place { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 14px; }
.adv-place strong { font-size: 16px; }
.adv-box { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, var(--soft2), var(--soft2) 8px, var(--soft3) 8px, var(--soft3) 16px); border: 1px dashed #aab4bd; border-radius: 6px; color: #55606a; font-weight: 700; font-size: 13px; }
.adv-box-wide { height: 52px; }
.adv-box-med { height: 90px; }
.adv-contact { margin: 0 0 24px; background: linear-gradient(135deg, #0a4d7a, var(--blue)); color: #fff; border-radius: var(--radius); padding: 24px 22px; text-align: center; }
.adv-contact h2 { margin: 0 0 6px; font-size: 26px; font-weight: 900; border: 0; padding: 0; color: #fff; }
.adv-contact p { margin: 0 0 14px; }
.adv-contact .btn { background: var(--paper); color: var(--blue-dark); }
.adv-contact .btn:hover { background: var(--tint); }
.tl-tag { display: inline-block; margin: 0 0 3px; padding: 1px 7px; border-radius: 3px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.timeline .tl-link a { margin-top: 0; }
.tl-polis .tl-tag { background: #1b3a57; }
.tl-polis .tl-link { border-left-color: #1b3a57; }
.tl-trafik .tl-tag { background: #d97706; }
.tl-trafik .tl-link { border-left-color: #d97706; }
.tl-nyhet .tl-link { border-left-color: var(--blue); }
.live-rows { margin: 28px 0 8px; }
.list-title-live { margin-top: 0; border-top-color: #1b3a57; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .live-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.live-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.live-list a { color: var(--ink); font-weight: 700; line-height: 1.3; }
.live-list a:hover { color: var(--blue); }
.live-list time { grid-column: 2; font-size: 12px; color: var(--muted); }
.live-list .tl-tag { margin: 0; }
.live-polis .tl-tag { background: #1b3a57; }
.live-trafik .tl-tag { background: #d97706; }
/* Tidsmärke ("5 timmar sedan") som liten pil-chip med klocka, gemensamt för Senaste nytt och polis/trafik-rutan */
.timeline time, .live-list time {
  position: relative; display: inline-block; align-self: start; justify-self: start;
  margin: 6px 0 0 13px; padding: 3px 10px 3px 25px; border-radius: 999px;
  background: var(--tint); color: var(--blue-dark);
  font-size: 11.5px; font-weight: 800; line-height: 1.3; text-transform: none; letter-spacing: .01em; white-space: nowrap;
}
.live-list time { margin: 2px 0 0; }
.timeline time::after, .live-list time::after {
  content: ""; position: absolute; left: 9px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 3v6l5 3 1-1.7-4-2.3V7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 3v6l5 3 1-1.7-4-2.3V7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tl-polis time, .live-polis time { background: #e6edf4; color: #1b3a57; }
.tl-trafik time, .live-trafik time { background: #fdf0dd; color: #9a5200; }
/* ---------- Höger kolumn: kort-utseende ---------- */
.ads-column .box, .col-side .box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0 0 12px; margin-bottom: 20px; }
.ads-column .box > *:not(.box-title), .col-side .box > *:not(.box-title) { margin-left: 12px; margin-right: 12px; }
.ads-column .box .box-title, .col-side .box .box-title { margin: 0 0 12px; border-radius: 0; }
.col-side .box.latest { padding: 0 12px 4px; }
.col-side .box.latest > * { margin-left: 0; margin-right: 0; }
.col-side .box.latest .box-title { margin: 0 -12px 12px; }
/* Missing People */
.box-mp .box-title { background: #ffe600; color: #141414; }
.mp-intro { margin-top: 0; margin-bottom: 10px; font-size: 14px; line-height: 1.45; text-align: left; }
.mp-feed { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); min-height: 120px; }
.mp-feed .fb-page, .mp-feed .fb-page span, .mp-feed iframe { max-width: 100% !important; }
.mp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; margin-bottom: 0; text-align: left; font-size: 14px; }
.mp-links .btn { padding: 8px 14px; font-size: 14px; }
/* Facebook */
.box-title-fb { background: var(--blue); }
.fb-feed { min-height: 80px; }
.fb-feed .fb-page, .fb-feed .fb-page span, .fb-feed iframe { max-width: 100% !important; }
.fb-fallback { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; text-align: left; }
.fb-fallback img { border-radius: 10px; object-fit: cover; }
.fb-fallback span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.fb-fallback strong { font-size: 16px; color: var(--ink); }
/* Tipsa oss */
.tipbox .tip-hero { position: relative; display: block; margin: 0 !important; overflow: hidden; }
.tipbox .tip-hero img { display: block; width: 100%; height: 130px; object-fit: cover; object-position: 50% 52%; margin: 0; border-radius: 0; }
.tipbox .tip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(7,32,60,.85)); }
.tip-hero-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.tip-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffd166; }
.tip-hero-text strong { font-size: 22px; font-weight: 900; line-height: 1.1; }
.tipbox .tip-lead { margin: 12px 12px 8px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); text-align: left; }
.tipbox .tip-actions { margin: 0 12px 8px; text-align: left; }
.tipbox .tip-mail { margin: 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.mp-sub { margin: 4px 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; }
.mp-cases { list-style: none; padding: 0; margin: 0 12px 4px; display: flex; flex-wrap: wrap; gap: 8px; text-align: left; }
.mp-cases a { display: inline-block; padding: 6px 13px; border-radius: 999px; background: #fff9c2; border: 1px solid #f0d800; color: #141414; font-weight: 700; font-size: 14px; }
.mp-cases a:hover { background: #ffe600; text-decoration: none; }
.mp-src { margin: 10px 12px 0; font-size: 12px; color: var(--muted); text-align: left; }
.adbox { margin: 0 0 20px; }
.adbox ins[data-ad-status="unfilled"] { display: none !important; }
.tips-grid { display: grid; gap: 20px; grid-template-columns: minmax(0,1fr); margin-bottom: 28px; align-items: start; }
@media (min-width: 900px) { .tips-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .tips-info { position: sticky; top: 16px; } }
.tips-info { display: grid; gap: 16px; }
.tips-info .about-card { padding-bottom: 14px; }
.tips-info .about-card p { margin: 0 0 10px; }
.tips-formwrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 22px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.tips-formwrap .form { max-width: none; }
.tips-formwrap h3 { margin-top: 20px; }

/* ---------- Mörkt tema ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1218; --paper: #161d25; --ink: #e7ecf1; --muted: #9aa8b5; --line: #27313c;
  --tint: #14283a; --soft: #1a232d; --soft2: #202b36; --soft3: #26323e; --line2: #2b3642; --line3: #33404d; --tint-line: #1f3a52;
  --text2: #c5ced7; --blue-dark: #8fd0f5;
}
:where(:root[data-theme="dark"]) a { color: #6ec1f2; }
:root[data-theme="dark"] .btn:hover, :root[data-theme="dark"] .blButtonPrimary:hover { background: #0a6aa3; color: #fff; }
:root[data-theme="dark"] .logo img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .mp-cases a, :root[data-theme="dark"] .mp-cases a:hover { color: #141414; }
:root[data-theme="dark"] .box-mp .box-title { color: #141414; }
:root[data-theme="dark"] .about-hero .btn { color: var(--blue-dark); }
:root[data-theme="dark"] img { filter: brightness(.93); }
:root[data-theme="dark"] .logo img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .tl-tag, :root[data-theme="dark"] .card-flag, :root[data-theme="dark"] .hero-caption { filter: none; }

/* Knapp för dag/natt-tema */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line3); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle svg { width: 16px; height: 16px; }
.mainnav .theme-toggle { position: absolute; right: 8px; top: 6px; z-index: 3; }
@media (min-width: 1180px) { .mainnav .navlist { padding-right: 46px; } }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .tl-polis time, :root[data-theme="dark"] .live-polis time { background: #1c2b3b; color: #a9cdf0; }
:root[data-theme="dark"] .tl-trafik time, :root[data-theme="dark"] .live-trafik time { background: #3a2a12; color: #f3b55f; }
:root[data-theme="dark"] .mp-cases a { background: #3b3600; border-color: #6b6000; color: #ffe94d; }
:root[data-theme="dark"] .mp-cases a:hover { background: #5a5200; color: #fff6a6; }

/* ---------- Efterlysta objekt ---------- */
.wanted-hero { background: linear-gradient(135deg, #14202b, #0a4d7a); }
.wanted-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.wc { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line3); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.wc span { padding: 1px 8px; border-radius: 999px; background: var(--soft2); color: var(--muted); font-size: 12px; font-weight: 800; }
.wc:hover { border-color: var(--blue); text-decoration: none; }
.wc.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.wc.is-on span { background: rgba(255,255,255,.22); color: #fff; }
.wanted-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 0 0 6px; }
.wanted-filter select, .wanted-filter input[type="search"], .wanted-filter .btn { box-sizing: border-box; height: 44px; margin: 0; font: inherit; font-size: 15px; line-height: 1.2; }
.wanted-filter select, .wanted-filter input[type="search"] { padding: 0 12px; border: 1px solid var(--line3); border-radius: 6px; background: var(--paper); color: var(--ink); }
.wanted-filter select { min-width: 170px; }
.wanted-filter input[type="search"] { flex: 1 1 240px; min-width: 0; }
.wanted-filter .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 6px; font-weight: 800; cursor: pointer; text-decoration: none; }
.wanted-filter .btn-secondary { border: 1px solid var(--line3); }
.list-title small { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.wanted-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 16px 0 8px; }
.wcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.wcard:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.14); text-decoration: none; }
.wcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--soft2); overflow: hidden; }
.wcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wcard-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); font-weight: 700; }
.wcard-cat { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 4px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wcard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.wcard-title { font-size: 15.5px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wcard-meta { font-size: 12.5px; color: var(--muted); }
.wcard-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.wcard-facts b, .wcard-facts i { padding: 2px 9px; border-radius: 4px; background: var(--soft2); font-size: 12px; font-style: normal; font-weight: 700; }
.wcard-facts b { background: var(--ink); color: var(--paper); letter-spacing: .04em; }
.wanted-src { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
/* Detaljsida */
.wd-back { margin: 0 0 10px; font-weight: 700; }
.wd-head h1 { margin: 6px 0 10px; font-size: 30px; line-height: 1.15; font-weight: 900; }
.wd-cat { position: static; display: inline-block; }
.wd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wd-chip { padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.wd-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .wd-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.wd-main { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft2); }
.wd-main img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: var(--soft2); }
.wd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wd-thumb { width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--soft2); cursor: pointer; }
.wd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wd-thumb.is-on { border-color: var(--blue); }
.wd-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--soft2); color: var(--muted); font-weight: 700; }
.wd-info { display: grid; gap: 14px; }
.wd-info .about-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; border: 0; padding: 0; }
.wd-facts { margin: 0; }
.wd-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.wd-facts div:last-child { border-bottom: 0; }
.wd-facts dt { color: var(--muted); }
.wd-facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.wd-desc { white-space: pre-line; margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.wd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
:root[data-theme="dark"] .wc.is-on { color: #fff; }

/* ---------- SOS Inblick ---------- */
.sos { max-width: none; }
.sos-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 18px; padding: 20px 24px; border-radius: 18px; color: #fff; background: linear-gradient(110deg, #0f2a6b, #2f3fb8 55%, #0b8de0); box-shadow: 0 8px 24px rgba(20,40,120,.28); }
.sos-hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.14); }
.sos-hero-icon svg { width: 34px; height: 34px; }
.sos-hero-main { flex: 1 1 260px; min-width: 0; }
.sos-hero-label { margin: 0 0 2px; font-size: 14px; opacity: .92; }
.sos-hero-num { margin: 0; font-size: 56px; line-height: 1; font-weight: 900; letter-spacing: -.01em; }
.sos-hero-side { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sos-hero-side strong { font-size: 24px; font-weight: 800; }
.sos-hero-pop { opacity: .9; margin-top: 6px; }
.sos-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .sos-layout { grid-template-columns: 300px minmax(0, 1fr); } }
.sos-side { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
@media (min-width: 900px) { .sos-side { position: sticky; top: 12px; } }
.sos-crumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; font-size: 14px; }
.sos-crumb strong { font-size: 16px; }
.sos-crumb-lan { font-size: 12.5px; margin-left: auto; }
.sos-search { position: relative; margin-bottom: 10px; }
.sos-search input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 14px; border: 1px solid var(--line3); border-radius: 10px; background: var(--soft); color: var(--ink); font: inherit; font-size: 15px; }
.sos-hits { position: absolute; left: 0; right: 0; top: 46px; z-index: 20; margin: 0; padding: 4px; list-style: none; background: var(--paper); border: 1px solid var(--line3); border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.sos-hits[hidden] { display: none; }
.sos-hits a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-weight: 600; }
.sos-hits a:hover { background: var(--tint); text-decoration: none; }
.sos-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sos-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line3); border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sos-chips button.is-on { background: #1f3fb0; border-color: #1f3fb0; color: #fff; }
.sos-chips button:disabled { opacity: .4; cursor: default; }
.sos-rank { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 640px; overflow: auto; }
.sos-rank a { display: grid; grid-template-columns: 24px 1fr auto; gap: 0 8px; align-items: baseline; padding: 8px 6px 6px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sos-rank a:hover, .sos-rank .is-current a { background: var(--tint); text-decoration: none; }
.sos-rank-n { color: var(--muted); font-size: 12.5px; text-align: right; }
.sos-rank-name { font-weight: 800; font-size: 15px; line-height: 1.2; }
.sos-rank-val { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink); }
.sos-rank-bar { grid-column: 2 / 4; display: block; height: 6px; margin-top: 5px; border-radius: 99px; background: var(--soft3); overflow: hidden; }
.sos-rank-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0b8de0, #2f3fb8); }
.sos-main { min-width: 0; }
.sos-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .sos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sos-wide { grid-column: 1 / -1; } }
.sos-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; }
.sos-month { margin-bottom: 16px; }
.sos-h { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border: 0; padding: 0; }
.sos-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c, #3b4cc0); color: #fff; }
.sos-ic svg { width: 17px; height: 17px; }
.sos-donut-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.sos-donut { position: relative; width: 170px; height: 170px; flex: none; margin: 0 auto; }
.sos-donut svg { width: 100%; height: 100%; overflow: visible; }
.sos-ring-bg { stroke: var(--soft3); }
.sos-donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sos-donut-mid strong { font-size: 24px; font-weight: 900; }
.sos-donut-mid span { font-size: 11.5px; color: var(--muted); }
.sos-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; display: grid; gap: 8px; }
.sos-legend li { display: grid; grid-template-columns: 30px 1fr auto 44px; gap: 10px; align-items: center; font-size: 15px; }
.sos-legend b { font-variant-numeric: tabular-nums; }
.sos-legend em { font-style: normal; font-size: 12.5px; color: var(--muted); text-align: right; }
.sos-time { margin-bottom: 16px; }
.sos-time:last-child { margin-bottom: 0; }
.sos-time-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 15px; }
.sos-time-top strong { margin-left: auto; font-size: 20px; font-weight: 800; }
.sos-bar { position: relative; height: 14px; border-radius: 99px; background: var(--soft3); }
.sos-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: #16a34a; }
.sos-bar u { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--muted); text-decoration: none; }
.sos-time small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.sos-rings { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around; }
.sos-ringbox { text-align: center; font-size: 14px; }
.sos-ringw { position: relative; width: 110px; height: 110px; margin: 0 auto 8px; }
.sos-ring { width: 100%; height: 100%; }
.sos-ringw strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.sos-facts { display: grid; gap: 16px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sos-facts > div { display: grid; grid-template-columns: 30px 1fr; gap: 0 10px; align-items: center; }
.sos-facts strong { font-size: 18px; font-weight: 800; line-height: 1.2; }
.sos-facts small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.sos-facts .sos-ic { grid-row: 1 / span 2; }
.sos-month-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .sos-month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sos-month-grid > div { display: grid; grid-template-columns: 30px 1fr; gap: 0 10px; align-items: center; }
.sos-month-grid strong { font-size: 20px; font-weight: 800; }
.sos-month-grid small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.sos-month-grid .sos-ic { grid-row: 1 / span 2; }
.sos-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.sos-chart > div { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; }
.sos-chart i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #0b6fb3; }
.sos-chart > div:last-child i { background: #2f3fb8; }
.sos-chart-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.sos-muted { margin: 0; color: var(--muted); font-size: 14px; }
.sos-src { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .sos-hero-num { font-size: 44px; } .sos-hero-side { text-align: left; } }

/* ---------- VMA ---------- */
.vma-bar:empty { display: none; }
.vma { position: relative; z-index: 50; color: #fff; }
.vma-actual { background: linear-gradient(180deg, #c1121f, #9d0d18); border-bottom: 4px solid #5f060c; }
.vma-exercise { background: linear-gradient(180deg, #f5c400, #e0a800); color: #231a00; border-bottom: 4px solid #a67b00; }
.vma-inner { display: flex; gap: 16px; align-items: flex-start; max-width: 1100px; margin: 0 auto; padding: 14px 16px 16px; }
.vma-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18); animation: vmaPulse 1.6s infinite; }
.vma-exercise .vma-icon { background: rgba(0,0,0,.12); }
.vma-icon svg { width: 30px; height: 30px; }
@keyframes vmaPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.vma-body { min-width: 0; flex: 1 1 auto; }
.vma-body p { margin: 0 0 6px; }
.vma-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.vma-title { font-size: 22px; font-weight: 900; line-height: 1.2; }
.vma-areas span { font-size: 13px; opacity: .9; margin-right: 4px; }
.vma-areas b { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 14px; }
.vma-exercise .vma-areas b { background: rgba(0,0,0,.12); }
.vma-text { font-size: 17px; line-height: 1.45; font-weight: 600; }
.vma-instr { font-size: 16px; line-height: 1.45; padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,.22); }
.vma-exercise .vma-instr { background: rgba(255,255,255,.4); }
.vma-meta { font-size: 13px; opacity: .95; }
.vma a, .vma a:hover { color: inherit; text-decoration: underline; }
.vma-en { margin: 0 0 6px; font-size: 14px; }
.vma-en summary { cursor: pointer; font-weight: 700; }
@media (max-width: 560px) { .vma-icon { width: 40px; height: 40px; } .vma-icon svg { width: 22px; height: 22px; } .vma-title { font-size: 18px; } .vma-text { font-size: 16px; } .vma-inner { gap: 10px; } }
.vma-hero { background: linear-gradient(135deg, #5f060c, #c1121f); }
.vma-list { display: grid; gap: 10px; margin-top: 12px; }
.vma-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.vma-item summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; }
.vma-item summary::-webkit-details-marker { display: none; }
.vma-item-tag { flex: none; padding: 3px 10px; border-radius: 4px; background: #c1121f; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vma-item.is-exercise .vma-item-tag { background: #e0a800; color: #231a00; }
.vma-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vma-item-main strong { font-size: 15.5px; }
.vma-item-main small { color: var(--muted); font-size: 12.5px; }
.vma-item-body { padding: 0 16px 14px; font-size: 15px; line-height: 1.55; }
.vma-item-body p { margin: 0 0 8px; }
.vma-none { margin-top: 0; }

/* ---------- Kampanjkort (Bli polis, Bli brandman) ---------- */
.ads-column .box.promo { padding: 0; overflow: hidden; }
.ads-column .box.promo > * { margin: 0; }
.promo-card { display: block; color: var(--ink); text-decoration: none; text-align: left; }
.promo-card:hover { text-decoration: none; }
.promo-media { position: relative; display: block; overflow: hidden; background: var(--soft2); }
.ads-column .box.promo .promo-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.promo-card:hover .promo-media img { transform: scale(1.04); }
.promo-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(5,20,50,.45)); }
.promo-badge { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 11px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.promo-brand .promo-badge { background: #d97706; }
.promo-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.promo-body strong { font-size: 20px; font-weight: 900; line-height: 1.15; color: var(--ink); }
.promo-body > span { font-size: 14.5px; line-height: 1.45; color: var(--text2); }
.promo-body .promo-cta { margin-top: 4px; font-weight: 800; color: var(--blue); }
.promo-card:hover .promo-cta { color: var(--blue-dark); text-decoration: underline; }
:root[data-theme="dark"] .promo-body .promo-cta { color: #6ec1f2; }

/* ---------- Krisinformation ---------- */
.box.kris .box-title { background: #0b3d6e; }
.kris-lan { font-weight: 700; text-transform: none; letter-spacing: 0; }
.kris-body { padding-bottom: 2px; }
.kris-list { list-style: none; margin: 0; padding: 0; }
.kris-list li { padding: 9px 0; border-bottom: 1px solid var(--line2); }
.kris-list li:last-child { border-bottom: 0; }
.kris-list a { display: block; color: var(--ink); text-decoration: none; }
.kris-list a:hover strong { color: var(--blue); text-decoration: underline; }
.kris-date { display: inline-block; margin-bottom: 3px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--blue-dark); font-size: 11.5px; font-weight: 800; }
.kris-list strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.kris-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--text2); }
.kris-note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.kris-more { margin: 4px 0 0; font-size: 13.5px; font-weight: 700; }

/* ---------- Krisinfo-sidan ---------- */
.kris-hero { background: linear-gradient(135deg, #0b3d6e, #1d6fb8); }
.kris-cards { display: grid; gap: 12px; margin: 14px 0 6px; }
.kris-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px; }
.kris-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.kris-card-meta time { font-weight: 700; color: var(--text2); }
.kris-tag { padding: 2px 9px; border-radius: 999px; background: var(--soft2); color: var(--ink); font-size: 11.5px; font-weight: 800; }
.kris-tag.kt-vma { background: #c1121f; color: #fff; }
.kris-tag.kt-multi { background: var(--tint); color: var(--blue-dark); }
.kris-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; line-height: 1.25; }
.kris-card h3 a { color: var(--ink); text-decoration: none; }
.kris-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.kris-card-text { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--text2); }
.kris-card-more { margin: 0; font-size: 13.5px; font-weight: 700; }

/* ---------- Källogotyper ---------- */
.about-hero { position: relative; }
.hero-src { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
@media (min-width: 760px) { .about-hero .hero-src { position: absolute; top: 20px; right: 24px; margin: 0; justify-content: flex-end; } }
.hero-src img { display: block; height: 30px; width: auto; }
.src-logo { display: inline-flex; align-items: center; }
.src-logo img { display: block; height: 30px; width: auto; }
.src-pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.src-pill img { display: block; height: 26px; width: auto; max-width: 120px; }
.src-pill:hover, .src-logo:hover { opacity: .9; text-decoration: none; }
.sos-hero-logo { align-self: flex-end; margin-bottom: 6px; }
.sos-hero-logo img { display: block; height: 34px; width: auto; }
@media (max-width: 560px) { .sos-hero-logo { align-self: flex-start; } }
.src-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.src-strip .src-pill { background: #fff; }
/* Krisinformation-rutan: logotypen i rubrikfältet */
.box.kris .box-title.kris-title { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-transform: none; letter-spacing: 0; }
.kris-logo { display: inline-flex; }
.kris-logo img { display: block; height: 20px; width: auto; }
.kris-title .kris-lan { margin-left: auto; font-size: 13px; font-weight: 800; color: #cfe3f1; }
/* Sidfot */
.sf-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 0; padding: 16px 16px 6px; border-top: 1px solid rgba(255,255,255,.12); }
@media (min-width: 700px) { .sf-sources { padding: 16px 24px 6px; } }
.sf-sources .src-logo img { height: 24px; }
.sf-sources .src-pill img { height: 24px; }

/* ---------- Sök resa ---------- */
.ads-column .box.travel { padding: 0; overflow: hidden; }
.ads-column .box.travel > * { margin-left: 0; margin-right: 0; }
.travel-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; color: #fff; background: linear-gradient(135deg, #0b7a75, #0b8de0); }
.travel-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); }
.travel-ic svg { width: 22px; height: 22px; }
.ads-column .travel-head h3, .travel-head h3 { margin: 0; padding: 0; background: none; font-size: 18px; font-weight: 900; line-height: 1.1; letter-spacing: 0; text-transform: none; color: #fff; }
.travel-head p { margin: 2px 0 0; font-size: 12.5px; opacity: .92; }
.travelform { padding: 14px 16px 6px; }
.travelform .tf { display: block; margin: 0 0 10px; text-align: left; }
.travelform .tf span { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.travelform input[type="text"] { display: block; box-sizing: border-box; width: 100%; height: 42px; margin: 0; padding: 0 12px; border: 1px solid var(--line3); border-radius: 8px; background: var(--soft); color: var(--ink); font: inherit; font-size: 15px; }
.travelform input[type="text"]:focus { outline: 2px solid var(--blue); border-color: var(--blue); background: var(--paper); }
.travel-btn { display: block; width: 100%; margin: 4px 0 8px; padding: 12px 16px; text-align: center; }
.travel-src { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 4px 16px 14px; font-size: 12.5px; color: var(--muted); text-align: left; }
.travel-src .src-pill img { height: 18px; max-width: 120px; }

/* ---------- Annonsera hos oss ---------- */
.col-side .box.adcta, .ads-column .box.adcta { padding: 0; overflow: hidden; border: 0; background: none; }
.adcta-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: var(--radius); text-align: left; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0a4d7a, #0976b5 60%, #1d9bd8); box-shadow: 0 4px 14px rgba(9,118,181,.35); overflow: hidden; }
.adcta-card:hover { text-decoration: none; filter: brightness(1.06); }
.adcta-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.1); }
.adcta-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); }
.adcta-ic svg { width: 24px; height: 24px; }
.adcta-kicker { margin-top: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.adcta-card strong { font-size: 20px; font-weight: 900; line-height: 1.15; color: #fff; }
.adcta-text { font-size: 14px; line-height: 1.4; opacity: .95; }
.adcta-points { font-size: 13px; opacity: .95; }
.adcta-points b { font-size: 16px; }
.adcta-btn { align-self: flex-start; margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; color: #0a4d7a; font-size: 14px; font-weight: 800; }
:root[data-theme="dark"] .adcta-btn { color: #0a4d7a; }
.src-strip-sm { margin: 0 0 8px; font-size: 12.5px; }
.src-strip-sm .src-pill img { height: 22px; }

/* ---------- Saknade personer (Missing People) ---------- */
.ads-column .box.mp2 { padding: 0; overflow: hidden; }
.ads-column .box.mp2 > * { margin-left: 0; margin-right: 0; }
.mp2-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; background: #ffe600; color: #141414; }
.mp2-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #141414; color: #ffe600; }
.mp2-ic svg { width: 24px; height: 24px; }
.ads-column .mp2-head h3, .mp2-head h3 { margin: 0; padding: 0; background: none; font-size: 18px; font-weight: 900; line-height: 1.1; letter-spacing: 0; text-transform: none; color: #141414; }
.mp2-head p { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; }
.mp2-stage { position: relative; }
.mp2-slide { display: none; }
.mp2-slide.is-on { display: block; animation: mp2in .35s ease; }
@keyframes mp2in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.mp2-photo { position: relative; display: block; aspect-ratio: 1 / 1; max-height: 300px; width: 100%; overflow: hidden; background: #1a1a1a; text-decoration: none; }
.mp2-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.mp2-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78)); }
.mp2-nophoto { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 64px; font-weight: 900; color: #ffe600; }
.mp2-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: #c1121f; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mp2-who { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; display: flex; flex-direction: column; gap: 2px; text-align: left; color: #fff; }
.mp2-who strong { font-size: 22px; font-weight: 900; line-height: 1.1; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.mp2-who span { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .95; }
.mp2-info { padding: 12px 14px 4px; text-align: left; }
.mp2-since { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.mp2-since b { color: var(--ink); }
.mp2-text { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.mp2-more { font-size: 13.5px; font-weight: 800; }
.mp2-nav { position: absolute; top: 120px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; transition: background .15s; }
.mp2-nav:hover, .mp2-nav:focus-visible { background: #ffe600; color: #141414; outline: none; }
.mp2-nav svg { width: 22px; height: 22px; }
.mp2-prev { left: 8px; }
.mp2-next { right: 8px; }
.mp2-thumbs { display: flex; flex-wrap: nowrap; gap: 5px; justify-content: center; padding: 10px 10px 2px; }
.mp2-thumb { flex: 1 1 0; min-width: 0; max-width: 40px; width: auto; height: auto; aspect-ratio: 1 / 1; padding: 0; border: 2px solid transparent; border-radius: 50%; overflow: hidden; background: var(--soft2); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s, transform .15s; }
.mp2-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mp2-thumb span { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 900; color: var(--ink); }
.mp2-thumb:hover { opacity: 1; transform: scale(1.06); }
.mp2-thumb.is-on { opacity: 1; border-color: #ffe600; box-shadow: 0 0 0 2px #141414; }
:root[data-theme="dark"] .mp2-thumb.is-on { box-shadow: 0 0 0 2px #ffe600; border-color: #141414; }
.mp2-actions { display: grid; gap: 8px; padding: 12px 14px 0; }
.mp2-actions .btn { display: block; margin: 0; padding: 11px 14px; text-align: center; font-size: 14.5px; }
.mp2-actions .btn.mp2-report { background: #c1121f; }
.mp2-actions .btn.mp2-report:hover { background: #9d0d18; }
.mp2-112 { margin: 10px 14px 0 !important; font-size: 12.5px; line-height: 1.45; text-align: left; color: var(--muted); }
.mp2-112 b { color: var(--ink); }
.mp2-src { display: flex; align-items: center; gap: 8px; margin: 10px 14px 14px !important; font-size: 12px; color: var(--muted); }
.mp2-src .src-pill { background: #1c1c1c; padding: 4px 10px; }
.mp2-src .src-pill img { height: 22px; width: auto; }
.mp2-empty { margin: 12px 14px 0 !important; font-size: 14px; color: var(--muted); text-align: left; }
@media (prefers-reduced-motion: reduce) { .mp2-slide.is-on { animation: none; } }

/* ---------- "Larm & kris"-rullmenyn ---------- */
.more-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.more-panel a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.more-panel a:hover, .more-panel a.active { background: var(--paper); text-decoration: none; }
.more-panel a.active { box-shadow: inset 3px 0 0 var(--blue); }
.more-panel strong { font-size: 15px; font-weight: 800; color: var(--blue-dark); }
.more-panel small { font-size: 12.5px; line-height: 1.35; color: var(--muted); font-weight: 500; }
@media (min-width: 700px) { .more-panel ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .more-panel ul { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Saknade personer ---------- */
.mp-hero { background: linear-gradient(135deg, #171717, #3b3300); }
.mp-hero .about-kicker { color: #ffe600; opacity: 1; }
.mp-hero .about-stats strong { color: #ffe600; }
.mp-hero .btn:not(.btn-secondary) { background: #c1121f; color: #fff; }
.mp-hero .btn:not(.btn-secondary):hover { background: #9d0d18; }
.src-pill.src-dark { background: #1c1c1c; }
.src-pill.src-dark img { height: 24px; width: auto; }
.mp-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.mp-tools input[type="search"], .mp-tools select { box-sizing: border-box; height: 44px; padding: 0 12px; border: 1px solid var(--line3); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.mp-tools input[type="search"] { flex: 1 1 240px; min-width: 0; }
.mp-tools select { flex: 0 1 220px; }
.mp-count { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.mp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 0 8px; }
.mpc { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.mpc:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.mpc[hidden] { display: none; }
.mpc-photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #1a1a1a; text-decoration: none; }
.mpc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .35s; }
.mpc:hover .mpc-photo img { transform: scale(1.04); }
.mpc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.8)); }
.mpc-none { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 64px; font-weight: 900; color: #ffe600; }
.mpc-who { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; display: flex; flex-direction: column; gap: 2px; color: #fff; text-align: left; }
.mpc-who strong { font-size: 20px; font-weight: 900; line-height: 1.1; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.mpc-who span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .95; }
.mpc-body { padding: 12px 14px 14px; text-align: left; }
.mpc-since { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.mpc-since b { color: var(--ink); }
.mpc-text { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mpc-more { margin: 0; font-size: 13.5px; font-weight: 800; }
/* Detaljrutan */
dialog.mpd { border: 0; padding: 0; background: transparent; width: min(940px, 94vw); max-width: 94vw; max-height: 92vh; overflow: visible; color: var(--ink); }
dialog.mpd::backdrop { background: rgba(0,0,0,.72); }
.mpd-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); border-radius: var(--radius); overflow: hidden; max-height: 92vh; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
@media (min-width: 720px) { .mpd-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.mpd-photo { background: #111; min-height: 220px; max-height: 92vh; }
.mpd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
@media (max-width: 719px) { .mpd-photo { max-height: 38vh; } }
.mpd-info { padding: 22px 24px 18px; overflow-y: auto; max-height: 92vh; text-align: left; }
.mpd-region { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mpd-info h2 { margin: 0 0 6px; font-size: 28px; font-weight: 900; line-height: 1.1; border: 0; padding: 0; }
.mpd-meta { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--text2); }
.mpd-text p, .mpd-contact p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.mpd-contact { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); }
.mpd-contact:empty { display: none; }
.mpd-contact p { font-size: 14px; margin-bottom: 6px; }
.mpd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.mpd-actions .btn { margin: 0; }
.mpd-nav { display: flex; justify-content: space-between; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line2); }
.mpd-nav button { padding: 6px 12px; border: 1px solid var(--line3); border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.mpd-nav button:hover { border-color: var(--blue); color: var(--blue); }
.mpd-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; padding: 0; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(20,20,20,.7); cursor: pointer; }
.mpd-close::before, .mpd-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: #fff; }
.mpd-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mpd-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mpd-close:hover, .mpd-close:focus-visible { background: #d0021b; outline: none; }
.mpd-region a { margin-left: 8px; font-weight: 700; letter-spacing: 0; text-transform: none; }

/* ---------- Skribentrad som text (logotyp/foto + namn, telefon, e-post) ---------- */
.byline { border-top: 0; padding-top: 0; margin-top: 26px; }
.byline-card { display: flex; align-items: center; gap: 16px; max-width: 800px; }
.by-photo { flex: none; width: 84px; height: 84px; border-radius: 50%; background-color: #dfe3e7; background-repeat: no-repeat; background-size: auto 100%; background-position: right center; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line3); }
.by-logo { flex: none; display: inline-flex; align-items: center; }
.by-logo img { display: block; height: 50px; width: auto; }
:root[data-theme="dark"] .by-logo img { filter: invert(1) hue-rotate(180deg); }
.by-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 15px; line-height: 1.35; }
.by-name { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.by-role { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.by-phones { color: var(--text2); font-variant-numeric: tabular-nums; }
.by-phones a { color: inherit; text-decoration: none; }
.by-phones a:hover { text-decoration: underline; }
.by-phones i { font-style: normal; opacity: .5; }
.by-mail { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 479px) { .by-photo { width: 68px; height: 68px; } .by-logo img { height: 40px; } .by-name { font-size: 16px; } }
/* Redaktionen: texten under loggan */
.byline-redaktion { flex-direction: column; align-items: flex-start; gap: 8px; }
.byline-redaktion .by-text { gap: 2px; }

/* Länsmenyn: samma stil som "Larm, kris & efterlysningar" men mindre (vit bakgrund vid pekning) */
.lan-panel:not(.more-panel) ul { gap: 2px 6px; }
.lan-panel:not(.more-panel) a { padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--blue-dark); transition: background .12s, box-shadow .12s, color .12s; }
.lan-panel:not(.more-panel) a:hover, .lan-panel:not(.more-panel) a:focus-visible { background: var(--paper); color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.14); text-decoration: none; outline: none; }

/* ---------- Blå linjer och sidfotens linje: exakt samma blå ---------- */
.site-footer::before { background: var(--blue); height: 5px; }
.sf-col h4 { border-bottom-color: var(--blue); }
.list-title { border-top-width: 5px; }

/* ---------- Efterlyst i länet (länssidor) ---------- */
.lanbox-host:empty { display: none; }
.box.lanbox { margin: 0 0 22px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lanbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 16px; background: var(--tint); border-bottom: 1px solid var(--line2); }
.lanbox-head h2 { margin: 0; padding: 0; border: 0; font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.lanbox-ic { font-size: 18px; }
.lanbox-tabs { display: flex; gap: 6px; }
.lanbox-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--line3); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.lanbox-tabs button b { padding: 1px 8px; border-radius: 999px; background: var(--soft2); font-size: 12px; }
.lanbox-tabs button:hover { border-color: var(--blue); }
.lanbox-tabs button.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.lanbox-tabs button.is-on b { background: rgba(255,255,255,.25); color: #fff; }
.lanbox-panel { display: none; padding: 12px 0 12px; }
.lanbox-panel.is-on { display: block; animation: lbin .3s ease; }
@keyframes lbin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lanbox-rail-wrap { position: relative; }
.lanbox-rail { display: flex; gap: 12px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.lbx-nav { position: absolute; top: 50%; z-index: 3; width: 34px; height: 34px; margin-top: -22px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(20,20,20,.75); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s; }
.lbx-nav:hover { background: var(--blue); }
.lbx-nav[hidden] { display: none; }
.lbx-prev { left: 8px; }
.lbx-next { right: 8px; }
.lbc { flex: 0 0 156px; scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.lbc:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.18); border-color: var(--blue); text-decoration: none; }
.lbc-photo { position: relative; display: block; aspect-ratio: 1 / 1; background: #1a1a1a; overflow: hidden; }
.lbc-photo-wide { aspect-ratio: 4 / 3; background: var(--soft2); }
.lbc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .3s; }
.lbc:hover .lbc-photo img { transform: scale(1.06); }
.lbc-photo i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 44px; font-style: normal; font-weight: 900; color: #ffe600; }
.lbc-cat { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.lbc-body { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 11px; text-align: left; }
.lbc-body strong { font-size: 14px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lbc-body span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.lbc-body em { font-size: 12px; font-style: normal; color: var(--muted); }
.lanbox-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px; margin: 4px 0 0; padding: 8px 16px 0; font-size: 12.5px; color: var(--muted); }
.lanbox-foot a { font-weight: 800; }

/* ---------- RSS-flöden ---------- */
.rss-hero { background: linear-gradient(135deg, #8a3b00, #e07b00); }
.rss-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 18px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--radius); }
.rss-main strong { font-size: 18px; }
.rss-main p { margin: 4px 0 0; font-size: 14px; color: var(--text2); }
.rss-url { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; flex: 1 1 360px; min-width: 0; }
.rss-url input[type="text"] { flex: 1 1 220px; min-width: 0; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid var(--line3); border-radius: 8px; background: var(--paper); color: var(--ink); font: 13px/1 Consolas, "Courier New", monospace; }
.rss-url .btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; margin: 0; padding: 0 16px; font-size: 14px; text-decoration: none; }
.rss-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); margin-top: 14px; }
.rss-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.rss-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.rss-card p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text2); flex: 1 1 auto; }
.rss-card .rss-url { flex-basis: auto; }
.rss-lan { box-sizing: border-box; height: 40px; padding: 0 10px; border: 1px solid var(--line3); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.rss-ic { position: relative; flex: none; width: 26px; height: 26px; border-radius: 6px; background: #e07b00; }
.rss-ic::before { content: ""; position: absolute; left: 6px; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.rss-ic::after { content: ""; position: absolute; left: 6px; bottom: 6px; width: 12px; height: 12px; border: 2px solid #fff; border-left-color: transparent; border-bottom-color: transparent; border-radius: 0 100% 0 0; box-shadow: 5px -5px 0 -1px transparent; }


/* Artikelsida: länsruta och notiser/nöje under bilderna, kortare högerspalt */
.art-lanbox { margin-top: 26px; }
.art-more { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 26px; padding-top: 18px; border-top: 3px solid var(--blue); }
@media (min-width: 700px) { .art-more { grid-template-columns: 1fr 1fr; gap: 28px; } }
.art-more-title { margin: 0 0 8px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.art-more .notislist li { display: flex; flex-direction: column; gap: 2px; }
.art-more .notis-ort { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); }
.col-side-article .latest .timeline li:nth-child(n+9) { display: none; }


/* Larm från räddningstjänster, sjöräddning och regioner */
.larmbox-host:empty { display: none; }
.box.larmbox { margin: 0 0 22px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.larmbox-panel { display: none; padding: 6px 0 12px; }
.larmbox-panel.is-on { display: block; animation: lbin .3s ease; }
.lm { border-bottom: 1px solid var(--line); }
.lm:last-child { border-bottom: 0; }
.lm-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.lm-head:hover, .lm-head[aria-expanded="true"] { background: var(--tint); }
.lm-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 62px; height: 42px; padding: 3px 5px; border-radius: 8px; background: #fff; border: 1px solid var(--line2); overflow: hidden; }
.lm-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lm-logo b { font-size: 11px; line-height: 1.1; color: #123; text-align: center; }
.lm-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lm-title { font-size: 15px; font-weight: 800; line-height: 1.25; }
.lm-sub { font-size: 12.5px; color: var(--muted); }
.lm-time { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.lm-chev { flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-left: 2px; margin-bottom: 3px; }
.lm-head[aria-expanded="true"] .lm-chev { transform: rotate(-135deg); margin-bottom: -3px; }
.lm-more { padding: 4px 16px 14px 90px; font-size: 14px; line-height: 1.5; }
.lm-more[hidden] { display: none; }
.lm-more p { margin: 0 0 8px; }
.lm-img { display: block; width: 100%; max-width: 360px; border-radius: var(--radius); margin: 4px 0 10px; }
.lm-stn { color: var(--muted); font-size: 13px; }
.lm-src a { font-weight: 800; font-size: 13px; }
.lm-rtj .lm-time { color: var(--red); }
.lm-sjo .lm-time { color: #0b7a8a; }
.lm-region .lm-time { color: #3a7d2c; }
.larm-lead { max-width: 820px; color: var(--muted); }
.larm-filter { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 14px 0 18px; }
.larm-sel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.larm-sel select { padding: 7px 10px; border: 1px solid var(--line3); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.larm-filter .trk-seg { display: inline-flex; border: 1px solid var(--line3); border-radius: 8px; overflow: hidden; background: var(--paper); margin: 0; }
.larm-filter .trk-seg a { padding: 7px 14px; color: var(--ink); text-decoration: none; font-weight: 700; border-right: 1px solid var(--line2); }
.larm-filter .trk-seg a:last-child { border-right: 0; }
.larm-filter .trk-seg a.on { background: var(--blue); color: #fff; }
.larm-day { margin: 24px 0 8px; padding: 0 0 6px; border-bottom: 3px solid var(--blue); font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.larm-day-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.larm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 22px 0; font-weight: 700; }
.larm-sources { margin-top: 34px; padding-top: 6px; border-top: 3px solid var(--blue); }
.larm-sources ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.larm-sources li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.larm-sources li.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.larm-sources li span { display: flex; flex-direction: column; min-width: 0; font-weight: 800; font-size: 14px; }
.larm-sources li small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.larm-src-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 70px; height: 44px; padding: 4px 6px; border-radius: 8px; background: #fff; border: 1px solid var(--line2); overflow: hidden; }
.larm-src-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.larm-src-logo b { font-size: 12px; color: #123; text-align: center; }
@media (max-width: 479px) { .lm-head { padding: 10px 12px; gap: 10px; } .lm-logo { width: 46px; height: 32px; } .lm-more { padding: 4px 12px 14px 12px; } }

.lm-ic { flex: 0 0 auto; width: 23px; height: 32px; object-fit: contain; }
.lm-more { padding-left: 51px; }
@media (max-width: 479px) { .lm-more { padding-left: 12px; } .lm-logo { display: none; } }
@media (min-width: 480px) and (max-width: 699px) { .lm-logo { width: 52px; height: 36px; } }

.page.larm-page { max-width: none; }
.larm-lead { max-width: 900px; }
.larm-pager { gap: 14px 22px; margin: 26px 0 8px; }
.larm-pager span { color: var(--muted); font-weight: 600; font-size: 14px; }
.larm-pager a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 26px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 2px 8px rgba(9,118,181,.25); transition: transform .15s, box-shadow .15s, background .15s; }
.larm-pager a:hover { background: #0b86cc; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(9,118,181,.35); color: #fff; }
.larm-pager a:first-child:not(:last-child) { background: var(--paper); color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.larm-pager a:first-child:not(:last-child):hover { background: var(--blue); color: #fff; }

.tl-larm .tl-tag { background: #b42318; }
.tl-larm .tl-link { border-left-color: #b42318; }
.tl-larm time { background: #fde8e6; color: #a3271a; }
:root[data-theme="dark"] .tl-larm time { background: #3a1714; color: #f4a39b; }

/* Trafikhändelse: faktaruta och status */
.tv-status { border-radius: 4px; color: #fff; padding: 2px 9px; }
.tv-on { background: #c0392b; }
.tv-off { background: #5b6b79; }
.tv-facts { margin: 22px 0; padding: 16px 18px; background: var(--tint); border: 1px solid var(--line2); border-left: 5px solid var(--blue); border-radius: var(--radius); }
.tv-facts h2 { margin: 0 0 10px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.tv-facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 22px; }
.tv-facts dl > div { min-width: 0; }
.tv-facts dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tv-facts dd { margin: 1px 0 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.tv-src { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.tv-more { margin-top: 20px; }

.tv-box { margin: 24px 0 8px; }
.tv-live { color: #c0392b; font-weight: 800; }
.lm-trafik .lm-time { color: #d97706; }
.lm-trafik .lm-title { font-size: 15px; }

/* "Pågår": mjuk glöd och blinkande punkt */
.tv-on, .tv-live { position: relative; }
.tv-on { padding-left: 22px; animation: tvglow 2s ease-in-out infinite; }
.tv-on::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; animation: tvblink 1.2s ease-in-out infinite; }
.tv-live { padding-left: 13px; }
.tv-live::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #c0392b; animation: tvblink 1.2s ease-in-out infinite; }
@keyframes tvglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.55); } 50% { box-shadow: 0 0 12px 3px rgba(192,57,43,.55); } }
@keyframes tvblink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .tv-on, .tv-on::before, .tv-live::before { animation: none; } }
.lm-ic-tv { width: 32px; height: 32px; }
.tv-logo { display: inline-flex; margin-right: 4px; }
.tv-logo img { height: 22px; width: auto; }
.tv-moretoggle { padding: 12px 16px 4px; text-align: center; }
.tv-showall { min-height: 40px; padding: 0 24px; border: 2px solid var(--blue); border-radius: 999px; background: var(--paper); color: var(--blue); font: inherit; font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.tv-showall:hover { background: var(--blue); color: #fff; }

.map-note { margin: -12px 0 18px; font-size: 13px; color: var(--muted); }

.sos-h small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--muted); }
.sos-days-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 6px 0 10px; }
.sos-day { padding: 12px 14px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line2); text-align: center; }
.sos-day small { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sos-day strong { display: block; font-size: 32px; font-weight: 900; line-height: 1.15; }
.sos-day span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.sos-day-main { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.sos-day-today strong { color: var(--muted); }

button.sos-day { font: inherit; color: var(--ink); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
button.sos-day:hover { transform: translateY(-2px); border-color: var(--blue); }
.sos-day.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.sos-day-main { box-shadow: none; border-color: var(--line2); }
.sos-day-main.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.sos-day-off { opacity: .7; }
.sos-day-off strong { font-size: 24px; }

/* Sök */
.mainnav .search-toggle { position: absolute; right: 46px; top: 6px; z-index: 3; text-decoration: none; }
.search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line3); border-radius: 50%; background: var(--paper); color: var(--ink); }
.search-toggle:hover, .search-toggle:focus-visible { border-color: var(--blue); color: var(--blue); }
.search-toggle svg { width: 16px; height: 16px; }
@media (min-width: 1180px) { .mainnav .navlist { padding-right: 208px; } }
.sok-form { display: flex; gap: 8px; margin: 0 0 18px; }
.sok-form .searchfield { flex: 1 1 auto; min-width: 0; font-size: 16px; }
.sok-btn { flex: 0 0 auto; padding: 0 22px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: 800 15px var(--font); cursor: pointer; }
.sok-btn:hover { background: var(--blue-dark); }
.sok-info { margin: 0 0 14px; color: var(--muted); }
.sok-rows mark, .row-title mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }

/* Extra / Just nu */
.extra-bar { display: grid; gap: 6px; margin: 12px 0 0; }
.extra-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; background: #14202b; color: #fff; text-decoration: none; border-left: 6px solid #e30613; }
.extra-item:hover { background: #1c2c3a; text-decoration: none; }
.extra-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 6px; background: #e30613; color: #fff; font: 900 13px/1 var(--font); letter-spacing: .1em; }
.extra-tag i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: extra-pulse 1.4s ease-in-out infinite; }
.extra-title { font: 800 19px/1.25 var(--font); }
@keyframes extra-pulse { 50% { opacity: .25; } }
@media (max-width: 600px) { .extra-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; } .extra-title { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .extra-tag i { animation: none; } }

/* Extra: stort färgat kort överst på startsidan */
.xcard { margin: 0 0 22px; border-radius: 12px; overflow: hidden; background: #1c1e21; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.xcard-link { display: block; color: inherit; text-decoration: none; }
.xcard-link:hover { text-decoration: none; }
.xcard-label { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #000; font: 800 13px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.xcard-label:has(.xcard-logo) { padding: 0; }
.xcard-logo { display: block; flex: 1 1 auto; width: 100%; height: auto; }
.xcard-kind { color: #fff; font-weight: 900; letter-spacing: .1em; }
.xcard-ort { color: #aeb3b8; }
.xcard-media { display: block; background: #000; }
.xcard-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.xcard-body { display: block; padding: 16px 18px 20px; }
.xcard-title { display: block; font: 900 26px/1.12 var(--font); letter-spacing: -.01em; }
.xcard-intro { display: block; margin-top: 10px; font-size: 16px; line-height: 1.45; color: #d4d7da; }
.xcard-link:hover .xcard-title { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 700px) { .xcard-title { font-size: 34px; } .xcard-body { padding: 20px 24px 24px; } }

/* Typsnitt till JUST NU-remsan (Anybody Black Expanded Italic, SIL Open Font License) */
@font-face { font-family: "BlJustNu"; font-style: italic; font-weight: 900; font-display: swap; src: url("justnu.woff2") format("woff2"); }

/* Rörliga prickar efter "Senaste nytt": visar att flödet är levande */
.latest .box-title { display: flex; align-items: center; gap: 12px; }
.live-dots { display: inline-flex; align-items: center; gap: 4px; }
.live-dots i { display: block; width: 5px; height: 5px; border-radius: 0; background: #fff; opacity: .35; animation: live-dot 1.2s ease-in-out infinite; }
.live-dots i:nth-child(2) { animation-delay: .2s; }
.live-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes live-dot { 0%, 70%, 100% { opacity: .3; transform: translateY(0) scale(.8); } 35% { opacity: 1; transform: translateY(-3px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .live-dots i { animation: none; opacity: .8; } }

/* 404-sidan */
.nf { text-align: center; padding: 26px 0 8px; }
.nf-lights { display: flex; justify-content: center; gap: 14px; margin: 0 0 8px; }
.nf-lights i { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); animation: nf-blink 1s ease-in-out infinite; }
.nf-lights i:nth-child(2) { animation-delay: .5s; }
@keyframes nf-blink { 0%, 100% { opacity: .25; box-shadow: none; } 50% { opacity: 1; box-shadow: 0 0 14px 4px rgba(9,118,181,.5); } }
.nf-code { margin: 0; font: 900 clamp(88px, 22vw, 168px)/1 var(--font); letter-spacing: -.03em; color: var(--blue); }
.nf-title { margin: 4px 0 8px; font: 800 30px/1.15 var(--font); }
.nf-text { max-width: 520px; margin: 0 auto 18px; color: var(--muted); }
.nf-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 16px; }
.nf-search .searchfield { flex: 1 1 auto; min-width: 0; font-size: 16px; }
.nf-actions { margin: 0 0 16px; }
.nf-btn { display: inline-block; margin: 4px; padding: 11px 20px; border-radius: 8px; background: var(--blue); color: #fff !important; font-weight: 800; text-decoration: none !important; }
.nf-btn:hover { background: var(--blue-dark); }
.nf-btn-alt { background: var(--paper); color: var(--ink) !important; border: 1px solid var(--line3); }
.nf-btn-alt:hover { background: var(--tint); }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.nf-latest { max-width: 520px; margin: 26px auto 0; }
@media (prefers-reduced-motion: reduce) { .nf-lights i { animation: none; opacity: .8; } }

/* Egen annons i högerkolumnen: "Marknadsför dina bilder hos oss" */
.house-pics { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; gap: 8px; min-height: 250px; margin: 0 0 24px; padding: 20px 18px; border-radius: 12px; overflow: hidden; background: #040a3a url("../img/new/dinabilder_bg.jpg") center 35% / cover no-repeat; color: #fff !important; text-decoration: none !important; isolation: isolate; }
.house-pics::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,8,40,.05) 0%, rgba(3,8,40,.55) 45%, rgba(3,8,40,.92) 100%); }
.hp-kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #cfe6ff; }
.hp-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #4db3ec; box-shadow: 0 0 10px 2px rgba(77,179,236,.8); animation: hp-blink 1.2s ease-in-out infinite; }
@keyframes hp-blink { 50% { opacity: .35; box-shadow: none; } }
.hp-title { font: 900 25px/1.08 var(--font); letter-spacing: -.01em; }
.hp-text { font-size: 14px; line-height: 1.4; color: #dbe7f5; }
.hp-btn { align-self: center; margin-top: 4px; padding: 9px 16px; border-radius: 8px; background: #0976b5; color: #fff; font: 800 14px/1 var(--font); transition: background .15s, transform .15s; }
.house-pics:hover .hp-btn { background: #0b8bd6; transform: translateX(2px); }
.house-pics:focus-visible { outline: 3px solid #4db3ec; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hp-kicker i { animation: none; } .hp-btn { transition: none; } }

/* Väderradar som extra kolumn på vader.aspx */
.weather-wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .weather-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.weather-side .list-title { margin-top: 0; }
.radar-map { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #dfe7ee; }
@media (min-width: 1000px) { .radar-map { height: 720px; } }
.radar-ctl { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.radar-ctl input[type=range] { flex: 1 1 auto; min-width: 0; }
.radar-btn { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; cursor: pointer; }
.radar-btn:hover { background: var(--blue-dark); }
.radar-time { flex: 0 0 auto; min-width: 92px; font-weight: 800; font-size: 14px; text-align: right; }
.radar-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.radar-legend { display: flex; align-items: center; gap: 3px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.radar-legend i { flex: 0 0 22px; height: 12px; border-radius: 2px; }
.radar-legend .rl-end { flex: 0 0 auto; margin: 0 6px; }

/* Runda genvägar bredvid sök och dag/natt: larm, SOS, krisinformation, VMA */
.mainnav .rb { position: absolute; top: 6px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line3); border-radius: 50%; background: var(--paper); color: var(--rbc, var(--ink)); text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.mainnav .rb-kris { right: 84px; --rbc: #0976b5; }
.mainnav .rb-sos { right: 122px; --rbc: #1b4f9c; }
.mainnav .rb-larm { right: 160px; --rbc: #c0392b; }
.mainnav .rb svg { width: 17px; height: 17px; }
.mainnav .rb-txt { font: 900 10px/1 var(--font); letter-spacing: -.02em; }
.mainnav .rb:hover, .mainnav .rb:focus-visible { background: var(--rbc); border-color: var(--rbc); color: #fff; transform: translateY(-1px); outline: none; }
:root[data-theme="dark"] .mainnav .rb-kris { --rbc: #5cc0f5; }
:root[data-theme="dark"] .mainnav .rb-sos { --rbc: #8fb8ff; }
:root[data-theme="dark"] .mainnav .rb-larm { --rbc: #ff8a80; }
:root[data-theme="dark"] .mainnav .rb:hover, :root[data-theme="dark"] .mainnav .rb:focus-visible { color: #14202b; }
@media (prefers-reduced-motion: reduce) { .mainnav .rb { transition: none; } }
@media (min-width: 1180px) and (max-width: 1440px) { .mainnav .navlist a, .mainnav .navlist .nav-lan { padding-left: 5px; padding-right: 5px; font-size: 13px; } }
.page.weather-wrap { max-width: none; }
@media (min-width: 1180px) { .radar-map { height: 780px; } }
