/* ============================================================================
   Vestkorridoren — consolidated styles.css
   Goal: keep all existing selectors, remove conflicting duplicates, and make
   index.html + other pages stable.
============================================================================ */

/* -----------------------------
   Tokens
----------------------------- */
:root{
  --maxw: 1280px;
  --gutter: 24px;

  --bg:#fff;
  --paper:#FAFAF7;
  --text:#111827;
  --muted:#6B7280;
  --rule:#E5E7EB;

  --brand:#0B2A4A;
  --brand-2:#123B66;
  --link:#1d60a3;
  --highlight:#B24A3B;

  --radius:2px;
  --radius-lg: 10px;
  --shadow: 0 1px 0 rgba(17,24,39,.06), 0 10px 24px rgba(17,24,39,.08);

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* sticky header sizing */
  --header-logo-h: 70px;
  --header-logo-h-compact: 42px;
  --header-pad-y: 14px;
  --header-pad-y-compact: 8px;

  /* calendar (7-col) minimum col width */
  --cal-col-min: 160px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  line-height: 1.45;
}

img{ max-width:100%; height:auto; }
a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }

:focus-visible{
  outline: 2px solid rgba(11,42,74,.35);
  outline-offset: 2px;
}

/* ============================================================================
   Header
============================================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--rule);
}

.site-header.is-compact{
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 rgba(17,24,39,.06), 0 10px 24px rgba(17,24,39,.06);
}

.utility-bar{
  max-width:var(--maxw);
  margin:0 auto;
  padding:8px var(--gutter);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  font-size:13px;
  color:var(--muted);
}
.utility-link{ color:inherit; margin-left:14px; }
.utility-sep{ margin:0 8px; color:var(--rule); }

.masthead{
  max-width:var(--maxw);
  margin:0 auto;
  padding: var(--header-pad-y) var(--gutter);

  display:grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  align-items:center;
  row-gap: 6px;
}

.site-header.is-compact .masthead{
  padding: var(--header-pad-y-compact) var(--gutter);
}

.brand{
  grid-column: 2;
  grid-row: 1;
  justify-self: center;

  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.brand-logo{
  height: var(--header-logo-h);
  width: auto;
  display:block;
  transition: height .18s ease;
}

.site-header.is-compact .brand-logo{
  height: var(--header-logo-h-compact);
}

.brand-tagline{
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  text-align: left;

  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;

  /* the previous 30px margin created a huge “hole” under the logo */
  margin-top: 10px;
  max-height: 80px;
  overflow: hidden;
  transition: max-height .18s ease, opacity .18s ease, margin .18s ease;
}

.site-header.is-compact .brand-tagline{
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

.masthead-right{
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display:flex;
  align-items:center;
  gap: 10px;
}

.masthead-date{
  grid-column: 2;
  grid-row: 3;
  justify-self:center;
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}

.nameplate{
  font-family:var(--serif);
  font-weight:700;
  letter-spacing:0.5px;
  font-size:34px;
  color:var(--text);
}

.btn-subscribe{
  background:var(--highlight);
  color:#fff;
  padding:10px 14px;
  border-radius:var(--radius);
  font-weight:700;
  font-size:14px;
  text-decoration:none;
}
.btn-subscribe:hover{ text-decoration:none; filter: brightness(.98); }

.section-nav{
  max-width:var(--maxw);
  margin:0 auto;
  padding: 8px var(--gutter);
  display:flex;
  gap:16px;
  align-items:center;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: transparent;
}
.section-nav a{ color:var(--text); font-weight:650; font-size:14px; }
.nav-plus{ color:var(--highlight); }
.nav-spacer{ flex:1; }

.nav-search{
  border:1px solid var(--rule);
  background:#fff;
  padding:8px 10px;
  border-radius:var(--radius);
  color:var(--text);
}

/* ============================================================================
   Page layout
============================================================================ */
.page{
  max-width:var(--maxw);
  margin:0 auto;
  padding:18px var(--gutter) 48px;
  padding-top: 0;
}

.top-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:24px;
  padding-bottom:18px;
  margin-top: 24px;
  align-items: start;
}

/* index.html uses <section class="top-grid"> directly (not inside .page) */
section.top-grid{
  max-width:var(--maxw);
  margin-left:auto;
  margin-right:auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================================================
   Lead (front page)
============================================================================ */
.kicker-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}

.kicker{
  color:var(--brand);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-size:12px;
}

.badge-plus{
  font-size:12px;
  font-weight:800;
  color:#fff;
  background:var(--highlight);
  padding:4px 8px;
  border-radius:999px;
  line-height:1;
}
.badge-plus.small{ padding:3px 7px; font-size:11px; }

.lead-link{ color:inherit; text-decoration:none; display:block; }
.lead-link:hover{ text-decoration:none; }

.lead-media{
  width:100%;
  height:360px;
  background:var(--paper);
  border-radius:var(--radius-lg);
  overflow:hidden;
  border: 1px solid var(--rule);
}
.lead-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.lead-media.media-fallback{
  background:linear-gradient(0deg, var(--paper), #fff);
}

.lead-headline{
  margin:14px 0 8px;
  font-family:var(--serif);
  font-size:46px;
  line-height:1.05;
  letter-spacing: .2px;
}

.lead-dek{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.45;
  color:#1f2937;
}

.meta{
  color:var(--muted);
  font-size:13px;
}
.meta-sep{ margin:0 8px; color:var(--rule); }
.meta-updated{ color:var(--brand-2); }

/* ============================================================================
   Modules (generic)
============================================================================ */
.module{
  padding:14px 0;
  border-bottom:1px solid var(--rule);
  margin-bottom: 18px;
}

.module-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.module h2{
  margin:0;
  font-family:var(--serif);
  font-size:20px;
  letter-spacing: .2px;
}

.module-more{
  color:var(--brand-2);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}
.module-more:hover{ text-decoration: underline; }

.tight-list{ margin:0; padding-left:18px; }
.tight-list li{ margin:8px 0; line-height:1.35; }

.time{
  color:var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right:8px;
}

.bullets{ margin:0; padding-left:18px; }
.bullets li{ margin:8px 0; }

.below-fold{ padding-top:18px; }

/* ============================================================================
   Cards
============================================================================ */
.cards{
  display:grid;
  gap:16px;
}

.cards-3up{ grid-template-columns: repeat(3, 1fr); }
.cards-2x2{ grid-template-columns: repeat(2, 1fr); }

/* index.html uses these */
.cards-1up{ grid-template-columns: 1fr; }
.cards-2up{ grid-template-columns: repeat(2, 1fr); }
.cards-2stack{ grid-template-columns: 1fr; gap: 16px; }

.card{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.card:hover{
  transform: translateY(-1px);
  border-color: rgba(11,42,74,.14);
  box-shadow: 0 1px 0 rgba(17,24,39,.06), 0 16px 34px rgba(17,24,39,.10);
}

.card-link{
  display:block;
  color: inherit;
  text-decoration:none;
}
.card-link:hover{ text-decoration:none; }

.card-media{
  width:100%;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.card-body{ padding: 12px 12px 12px; }

.card-kicker{
  color:var(--brand);
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-weight:800;
  font-size:11px;
  margin-bottom:6px;
}

.card-title{
  font-family:var(--serif);
  font-size:20px;
  line-height:1.15;
  color:var(--text);
  margin-bottom:6px;
}

.card-dek{
  color:#374151;
  font-size:14px;
  line-height:1.45;
  margin-bottom:8px;
}

.card-meta{ color:var(--muted); font-size:12px; }

/* legacy helper */
.card--with-media .card-media{
  width:100%;
  height:160px;
  background:var(--paper);
  border-radius: var(--radius);
  overflow:hidden;
  margin-bottom:10px;
}
.card--with-media .card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ============================================================================
   Rail latest list (thumbs) — kept
============================================================================ */
.latest-list{ list-style: none; padding-left: 0; margin: 0; }
.latest-item{ margin: 10px 0; }

.latest-link{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: inherit;
  text-decoration:none;
}
.latest-link:hover{ text-decoration:none; }

.latest-thumb{
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.latest-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.latest-text{ display:block; line-height: 1.25; }
.latest-headline{ display:block; margin-top: 2px; }

/* ============================================================================
   Story page
============================================================================ */
.story-layout{
  display:grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap:24px;
  align-items:start;
  margin-top: 30px;
}

.story{ max-width:none; }
.story-rail{ position: sticky; top: 18px; }

.story-header{
  padding-bottom:18px;
  border-bottom:1px solid var(--rule);
}

.story-headline{
  margin:8px 0 8px;
  font-family:var(--serif);
  font-size:44px;
  line-height:1.05;
}

.story-dek{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.45;
  color:#1f2937;
}

.story-ingress{
  margin: 12px 0 14px;
  font-size: 18px;
  line-height: 1.6;
  color: #1f2937;
}

.story-hero{
  margin:16px 0 0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--paper);
  border: 1px solid var(--rule);
}
.story-hero img{ width:100%; height:auto; display:block; }

.story-body{ font-size:17px; line-height:1.75; }
.story-body h2, .story-body h3{
  font-family:var(--serif);
  margin-top:28px;
}
.story-body img{ max-width:100%; border-radius:var(--radius); }
.story-body blockquote{
  margin:18px 0;
  padding:12px 16px;
  border-left:3px solid var(--brand);
  background:var(--paper);
  border-radius: 10px;
}

/* ============================================================================
   Weather module (rail)
============================================================================ */
.weather-module{ padding: 14px 0 18px; }

.weather-grid{ display: grid; gap: 12px; }

.weather-place{
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fff, var(--paper));
  border-radius: var(--radius-lg);
  padding: 12px 12px 10px;
  box-shadow: var(--shadow);
}

.weather-place-top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.weather-place-name{
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .2px;
}

.weather-points{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.weather-point{
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  padding: 10px 10px 9px;
}

.weather-point-label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 6px;
}

.weather-point-main{
  display:grid;
  grid-template-columns: 24px auto 1fr;
  align-items:center;
  gap: 8px;
}

.weather-icon{ display:block; width:22px; height:22px; }
.weather-icon.sm{ width:18px; height:18px; }

.weather-temp{
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.weather-desc{
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-days{
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  margin-top: 2px;
  display:grid;
  gap: 8px;
}

.weather-day{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.weather-day-date{
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1px;
}

.weather-day-right{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color: var(--text);
}

.weather-day-max{
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
}

.weather-fineprint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.weather-empty{
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.7);
}

/* ============================================================================
   Ad slots (placeholders)
============================================================================ */
.ad-slot{
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fff, var(--paper));
  border-radius: var(--radius-lg);
  padding: 12px 12px 10px;
  box-shadow: var(--shadow);
}

.ad-rail{ margin-bottom: 18px; }
.ad-intext{ margin: 18px 0; }

.ad-label{
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ad-body{ color: #374151; font-size: 14px; line-height: 1.45; }

/* ============================================================================
   Share buttons
============================================================================ */
.share-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.share-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;

  appearance:none;
  border:1px solid var(--rule);
  background:#fff;
  color: var(--text);

  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;

  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover{
  text-decoration: none;
  border-color: #cfd6df;
}
.share-btn:active{ transform: translateY(1px); }

.share-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
}
.share-ico svg{
  display:block;
  width:18px;
  height:18px;
  fill: currentColor;
}
.share-label{ display:inline-block; }

/* ============================================================================
   Footer
============================================================================ */
.site-footer{
  border-top:1px solid var(--rule);
  padding:24px 0;
  color:var(--muted);
}

.footer-grid{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 var(--gutter);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}

.footer-title{ color:var(--text); font-weight:800; margin-bottom:8px; }
.footer-item{ margin:6px 0; }

.footer-bar{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
}

.footer-link{
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.footer-link:hover{ text-decoration: underline; }

/* ============================================================================
   Events band (front page)
============================================================================ */
.events-band{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(1200px 220px at 50% 0%, rgba(11,42,74,.08), rgba(255,255,255,0)),
    linear-gradient(180deg, #fff, var(--paper));
}

.events-band-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 14px;
  padding-right: 14px;
}

.events-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.events-head-left{ display:flex; flex-direction:column; gap: 4px; }

.events-title{
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .2px;
}

.events-sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.events-cta{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.75);
  box-shadow: 0 1px 0 rgba(17,24,39,.06);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.events-cta:hover{ text-decoration:none; border-color: #cfd6df; }
.events-cta:active{ transform: translateY(1px); }

.events-scroller{
  position: relative;
  padding: 4px 0;
}

.events-scroller::before,
.events-scroller::after{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  pointer-events:none;
  z-index: 2;
}

.events-scroller::before{
  left: 0;
  background: linear-gradient(90deg, rgba(250,250,247,1), rgba(250,250,247,0));
}
.events-scroller::after{
  right: 0;
  background: linear-gradient(270deg, rgba(250,250,247,1), rgba(250,250,247,0));
}

.events-list{
  list-style:none;
  margin: 0;
  padding: 2px 4px 6px;
  display:flex;
  gap: 12px;

  overflow-x:auto;
  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;

  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.events-list::-webkit-scrollbar{ height: 10px; }
.events-list::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,.12);
  border-radius: 999px;
}
.events-list::-webkit-scrollbar-track{ background: transparent; }

/* legacy event list/card styles (kept; stable) */
.event-item{
  min-width: 320px;
  max-width: 420px;
  border: 1px solid rgba(0,0,0,0.12);
  background: white;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 12px;
}
.event-meta{
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0.85;
  font-size: 0.95em;
}
.event-meta-item{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 2px 0;
}
.event-meta-item + .event-meta-item{
  position: relative;
  padding-left: 10px;
}
.event-meta-item + .event-meta-item::before{
  content:"";
  position:absolute;
  left: 2px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(17,24,39,.22);
  transform: translateY(-50%);
}

/* current event card design */
.event-card{
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 340px;

  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;

  display:flex;
  flex-direction:column;
  min-height: 132px;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.event-card-link{
  display:flex;
  flex-direction:column;
  color: inherit;
  text-decoration:none;
  height: 100%;
}
.event-card-link:hover{ text-decoration:none; }
.event-card-link.is-static{ cursor: default; }

.event-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;

  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,250,247,.95));
}

.event-when{
  display:flex;
  flex-direction:column;
  gap: 4px;
  min-width: 140px;
  justify-content: flex-start;
}

.event-when.is-date-only{
  justify-content: center;
  min-height: 34px;
}

.event-date{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.event-time{
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
}

.event-pill{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,42,74,.18);
  background: rgba(11,42,74,.06);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.event-main{ padding: 8px 10px 10px; }

.event-title{
  display:block;
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: .1px;
  margin-bottom: 6px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.event-title:hover{ text-decoration: none; color: var(--brand-2); }

.event-loc{
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
}

.event-place,
.event-address{
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.event-muni{
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.2;
}

.event-desc{
  color: #374151;
  font-size: 13px;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.events-empty{
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.7);
}

/* ============================================================================
   Traffic (front page module + other variants kept)
   Key fix: avoid global collisions by scoping “desc/road” rules to parents.
============================================================================ */
.traffic-module{ /* in index it already uses .module */
  max-width: var(--maxw);
  margin-left:auto;
  margin-right:auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.traffic-module .traffic-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.traffic-module .traffic-card{
  border:1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-lg);
  padding: 10px 10px 9px;
  background:#fff;
  overflow:hidden;
  box-shadow: var(--shadow);
}

.traffic-module .traffic-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.traffic-module .traffic-row-top{
  justify-content:space-between;
}

.traffic-module .traffic-ico{ font-size:14px; line-height:1; }
.traffic-module .traffic-type{
  flex:1;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.traffic-module .traffic-row-mid{
  margin-top:6px;
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  font-size:12px;
  color: rgba(17,24,39,.70);
}

.traffic-module .traffic-muni{ font-weight:700; }
.traffic-module .traffic-road{ font-weight:800; color: var(--brand-2); }

.traffic-module .traffic-desc{
  margin-top:8px;
  font-size:13px;
  line-height:1.35;
  color: #374151;

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.traffic-module .traffic-time{
  margin-top:8px;
  font-size:11px;
  color: rgba(17,24,39,.60);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Severity tint + left accent (front page module) */
.traffic-module .traffic-card.sev-high{
  border-left:4px solid #b00020;
  background:rgba(176, 0, 32, 0.05);
}
.traffic-module .traffic-card.sev-medium{
  border-left:4px solid #b26a00;
  background:rgba(178, 106, 0, 0.05);
}
.traffic-module .traffic-card.sev-low{
  border-left:4px solid #0a7a2f;
  background:rgba(10, 122, 47, 0.05);
}
.traffic-module .traffic-card.sev-none{
  border-left:4px solid rgba(0,0,0,0.12);
}

/* Severity pill (front page module) */
.traffic-pill{
  font-size:11px;
  padding:2px 7px;
  border-radius:999px;
  font-weight:900;
  white-space:nowrap;
}
.traffic-pill.sev-high{ background:#b00020; color:#fff; }
.traffic-pill.sev-medium{ background:#b26a00; color:#fff; }
.traffic-pill.sev-low{ background:#0a7a2f; color:#fff; }

/* Full-width traffic band (kept for other templates) */
.traffic-band{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(1200px 220px at 50% 0%, rgba(11,42,74,.06), rgba(255,255,255,0)),
    linear-gradient(180deg, #fff, var(--paper));
}

.traffic-band-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.traffic-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.traffic-title{
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .2px;
}

.traffic-sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.traffic-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.traffic-item{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.traffic-item-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,250,247,.95));
}

.traffic-kicker{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.traffic-band .traffic-when{
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}

.traffic-band .traffic-where{
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 13px;
}

.traffic-band .traffic-road{
  color: var(--brand-2);
  font-weight: 900;
  font-size: 13px;
}

.traffic-band .traffic-sev{
  display:inline-flex;
  align-items:center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(11,42,74,.18);
  background: rgba(11,42,74,.06);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: lowercase;
}

.traffic-item-body{
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
}

.traffic-band .traffic-desc{
  color: #374151;
  font-size: 14px;
  line-height: 1.45;
}

.traffic-loc{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Compact “traffic-mini” grid (kept) */
.traffic-grid{
  list-style:none;
  padding:0;
  margin:0;
}
.traffic-mini{
  padding: 8px 8px 7px 10px;
  border-radius: 10px;
  background:#fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-left: 3px solid #9ca3af;
  min-height: 84px;
  overflow:hidden;
}
.traffic-mini .tm-row{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.tm-ico{ font-size:14px; line-height:1; }
.tm-type{
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  min-width:0;
}
.tm-sev{
  margin-left:auto;
  font-size: 11px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  white-space: nowrap;
}
.tm-mid{ margin-top: 4px; font-size: 12px; font-weight: 700; opacity: 0.92; }
.tm-munis{
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  min-width:0;
}
.tm-road{
  font-size: 11px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
  white-space: nowrap;
}
.tm-desc{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.92;
}
.tm-time{
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.70;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.traffic-mini.sev-none{ border-left-color: #9ca3af; }
.traffic-mini.sev-low{ border-left-color: #16a34a; }
.traffic-mini.sev-medium{ border-left-color: #f59e0b; }
.traffic-mini.sev-high{ border-left-color: #dc2626; }
.tm-sev.sev-none{ background: rgba(156,163,175,0.15); }
.tm-sev.sev-low{ background: rgba(22,163,74,0.15); }
.tm-sev.sev-medium{ background: rgba(245,158,11,0.18); }
.tm-sev.sev-high{ background: rgba(220,38,38,0.15); }

.traffic-actions{ margin-top: 8px; }
.btn.btn-compact{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  text-decoration:none;
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
}
.btn.btn-compact:hover{ filter:brightness(.98); }

/* Trafikk page (kept) */
.trafikk-page { padding: 16px 0; }
.trafikk-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
.trafikk-title { margin: 0; font-size: 20px; line-height: 1.2; }

.trafikk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.trafikk-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: #fff;
}

.tr-left { display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; }
.tr-ico { font-size: 14px; line-height: 1; }

.tr-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  line-height: 1.2;
}

.tr-type { font-weight: 800; font-size: 13px; }
.tr-when { font-size: 12px; opacity: 0.75; }

.tr-mid { display: flex; gap: 8px; margin-top: 4px; font-size: 12px; opacity: 0.85; flex-wrap: wrap; }
.tr-road { font-variant-numeric: tabular-nums; font-weight: 800; }

.tr-desc { margin-top: 6px; font-size: 13px; line-height: 1.35; }

/* Severity pill (only rendered for low/medium/high) */
.tr-sev {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  line-height: 1.2;
  white-space: nowrap;
}
.trafikk-row.sev-low { border-left: 4px solid rgba(0,0,0,0.20); }
.trafikk-row.sev-medium { border-left: 4px solid rgba(0,0,0,0.40); }
.trafikk-row.sev-high { border-left: 4px solid rgba(0,0,0,0.65); }
.tr-sev.sev-low { background: rgba(0,0,0,0.04); }
.tr-sev.sev-medium { background: rgba(0,0,0,0.08); }
.tr-sev.sev-high { background: rgba(0,0,0,0.12); }

/* ============================================================================
   Below-fold layout (index.html)
============================================================================ */
.belowfold-biz{ padding-top: 18px; }

.belowfold-biz-grid{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 18px;
}

/* Each row can decide its own internal grid */
.belowfold-biz-row{ display:block; }

.belowfold-biz-row-police{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

.belowfold-biz-row-wide{
  display:block;
}

.belowfold-biz-row-biz{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

/* Column wrappers (don’t force heights globally; only make widgets scroll internally) */
.belowfold-biz-left{ min-width: 0; }
.belowfold-biz-right{ min-width: 0; }

/* ============================================================================
   Businesses widget (index.html + reusable)
============================================================================ */
.biz-module .module-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.biz-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.biz-tabs{
  display:flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.biz-tab{
  appearance:none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  color: var(--text);
}
.biz-tab:hover{ border-color: rgba(0,0,0,0.18); }
.biz-tab.is-active{
  background: rgba(11,42,74,.08);
  border-color: rgba(11,42,74,.18);
  color: var(--brand);
}

/* Panels: default safe behavior */
.biz-panels{ display:block; }
.biz-panel{ padding-right: 4px; }
.biz-panel.is-active{ display:block; }

/* Index wants scroll inside widget without stretching page */
.belowfold-biz-right .biz-module{
  display:flex;
  flex-direction: column;
  margin-bottom: 0;
  border-bottom: 0;
}
.belowfold-biz-right .biz-panels{
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.belowfold-biz-right .biz-panel{
  height: 420px;          /* stable, not “infinite”; avoids ugly page growth */
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

/* Lists */
.biz-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.biz-item{ margin: 0; }

/* Non-clickable “card” look */
.biz-link{
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 1px 0 rgba(17,24,39,.04);
}
.biz-link.is-static{ cursor: default; }
.biz-link:hover{
  /* keep subtle hover even though non-clickable (it’s a <div>) */
  border-color: rgba(0,0,0,0.16);
}

.biz-top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.biz-title{ font-weight: 850; font-size: 14px; line-height: 1.25; }
.biz-date{ font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 700; }

.biz-subtitle{ font-size: 13px; margin-top: 4px; color: rgba(17,24,39,.86); }
.biz-address{ font-size: 12px; margin-top: 4px; color: rgba(17,24,39,.62); }

.biz-pills{ display:flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.biz-pill{
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,0.10);
}

/* pill colors (kept) */
.biz-pill.new { background: rgba(0, 110, 255, 0.12); }
.biz-pill.vat { background: rgba(0, 0, 0, 0.06); }
.biz-pill.bankruptcy { background: rgba(255, 170, 0, 0.18); }

.biz-empty{ font-size: 13px; color: var(--muted); padding: 8px 0; }

/* ============================================================================
   Police widget (index.html) — styles for the NEW markup
   (keeps your earlier “police-band” styles untouched below)
============================================================================ */
.police-module .module-head .biz-sub{ max-width: 62ch; }

.police-module .police-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* Item wrapper */
.police-item{ margin: 0; }

/* Row button */
.police-row{
  width: 100%;
  display:grid;
  grid-template-columns: 6px 1fr auto;
  gap: 12px;
  align-items: start;

  appearance: none;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,.78);
  border-radius: 12px;
  padding: 10px 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(17,24,39,.04);
  transition: border-color .12s ease, transform .12s ease, background .12s ease;
}

.police-row:hover{
  border-color: rgba(11,42,74,.16);
  background: rgba(255,255,255,.92);
  transform: translateY(-1px);
}

.police-row:active{ transform: translateY(0); }

/* Left severity bar */
.police-sevbar{
  width: 6px;
  height: 100%;
  border-radius: 999px;
  background: rgba(11,42,74,.16);
}

/* Score bucket coloring via attribute selectors */
.police-row[data-news-worthiness="1"] .police-sevbar,
.police-row[data-news-worthiness="2"] .police-sevbar,
.police-row[data-news-worthiness="3"] .police-sevbar{
  background: rgba(22,163,74,.40);
}
.police-row[data-news-worthiness="4"] .police-sevbar,
.police-row[data-news-worthiness="5"] .police-sevbar,
.police-row[data-news-worthiness="6"] .police-sevbar{
  background: rgba(245,158,11,.45);
}
.police-row[data-news-worthiness="7"] .police-sevbar,
.police-row[data-news-worthiness="8"] .police-sevbar,
.police-row[data-news-worthiness="9"] .police-sevbar,
.police-row[data-news-worthiness="10"] .police-sevbar{
  background: rgba(178,74,59,.55);
}

/* Main text area */
.police-main{ min-width: 0; display:grid; gap: 6px; }

.police-headline{
  font-weight: 950;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: .1px;
  color: var(--text);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow:hidden;
}

.police-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.police-place{ font-weight: 800; color: rgba(17,24,39,.70); }
.police-type{ font-weight: 750; }
.police-pub{ font-variant-numeric: tabular-nums; }

.police-summary{
  color: #374151;
  font-size: 13px;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow:hidden;
}

/* Score pill on the right */
.police-score{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  border: 1px solid rgba(178, 74, 59, .22);
  background: rgba(178, 74, 59, .08);
  color: var(--highlight);
  white-space: nowrap;
}
.police-score-num{ font-variant-numeric: tabular-nums; }

/* Expandable details area */
.police-details{
  margin-top: 10px;
  border-left: 2px solid rgba(0,0,0,0.08);
  padding-left: 10px;
}

.police-details-inner{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,.70);
  padding: 10px 10px;
  display:grid;
  gap: 12px;
}

.police-details-block{ display:grid; gap: 6px; }
.police-details-title{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.police-details-time{
  font-size: 12px;
  color: rgba(17,24,39,.62);
  font-variant-numeric: tabular-nums;
}
.police-details-text{
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
  white-space: pre-wrap;
}

.police-updates{ display:grid; gap: 8px; }

/* ============================================================================
   Police band (kept for templates that use it)
============================================================================ */
.police-band{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(1200px 220px at 50% 0%, rgba(178, 74, 59, .08), rgba(255,255,255,0)),
    linear-gradient(180deg, #fff, var(--paper));
}

.police-band-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter) 14px;
}

.police-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.police-title{
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .2px;
}

.police-sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}

.police-cta{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.75);
  box-shadow: 0 1px 0 rgba(17,24,39,.06);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.police-cta:hover{ text-decoration:none; border-color: #cfd6df; }
.police-cta:active{ transform: translateY(1px); }

.police-tabs{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin: 6px 0 10px;
}

.police-tab{
  appearance:none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  color: var(--text);
}
.police-tab:hover{ border-color: rgba(0,0,0,0.18); }
.police-tab.is-active{
  background: rgba(11,42,74,.08);
  border-color: rgba(11,42,74,.18);
  color: var(--brand);
}

.police-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.police-scroller{ position: relative; padding: 4px 0; }
.police-list{
  list-style:none;
  margin: 0;
  padding: 2px 4px 6px;
  display:flex;
  gap: 12px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.police-list::-webkit-scrollbar{ height: 10px; }
.police-list::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,.12);
  border-radius: 999px;
}
.police-list::-webkit-scrollbar-track{ background: transparent; }

.police-card{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 130px;
  display:flex;
  flex-direction:column;
}
a.police-card{
  color: inherit;
  text-decoration: none;
}
a.police-card:hover{
  text-decoration: none;
  border-color: rgba(11,42,74,.18);
  box-shadow: 0 1px 0 rgba(17,24,39,.06), 0 16px 34px rgba(17,24,39,.12);
  transform: translateY(-1px);
}

.police-card-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,250,247,.95));
}

.police-when{
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}

.police-where{
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 13px;
  display:inline-flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.police-score{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  border: 1px solid rgba(178, 74, 59, .22);
  background: rgba(178, 74, 59, .08);
  color: var(--highlight);
  white-space: nowrap;
}
.police-score b{ color: var(--highlight); font-variant-numeric: tabular-nums; }

.police-card-body{
  padding: 10px 12px 12px;
  display:grid;
  gap: 7px;
}

.police-kicker{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  align-items:center;
}

.police-pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
  color: var(--text);
  line-height: 1.1;
}
.police-pill.cat{
  border-color: rgba(11,42,74,.18);
  background: rgba(11,42,74,.06);
  color: var(--brand-2);
}
.police-pill.sev-low{ background: rgba(22,163,74,0.12); border-color: rgba(22,163,74,0.18); }
.police-pill.sev-med{ background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.22); }
.police-pill.sev-high{ background: rgba(220,38,38,0.12); border-color: rgba(220,38,38,0.20); }

.police-item-title{
  font-weight: 950;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .1px;
  color: var(--text);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.police-summary{
  color: #374151;
  font-size: 13px;
  line-height: 1.28;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.police-meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.police-meta .police-meta-sep{ color: rgba(17,24,39,.16); }

.police-empty{
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.7);
}

.police-page{ padding: 16px 0; }
.police-page-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 14px;
  margin: 10px 0 12px;
}
.police-page-title{
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: .2px;
}
.police-page-list{
  list-style:none;
  margin: 0;
  padding: 0;
  display:grid;
  gap: 10px;
}

/* ============================================================================
   Calendar — keep both systems, but scope so they don't fight
============================================================================ */
/* shared calendar page header */
.calendar-page{ padding: 14px 0 24px; }

.calendar-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.calendar-head-left{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.calendar-kicker{
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.calendar-title{
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .2px;
}

.calendar-nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.calendar-nav-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  text-decoration:none;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.75);
  color: var(--brand-2);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(17,24,39,.06);
}
.calendar-nav-link:hover{ text-decoration:none; border-color:#cfd6df; }
.calendar-nav-link:active{ transform: translateY(1px); }
.calendar-nav-link.is-primary{
  background: rgba(11,42,74,.08);
  border-color: rgba(11,42,74,.18);
  color: var(--brand);
}

/* --- Calendar system A: 7-column grid inside .calendar-shell --- */
.calendar-shell{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--paper));
  box-shadow: var(--shadow);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.calendar-shell::-webkit-scrollbar{ height: 10px; }
.calendar-shell::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,.14);
  border-radius: 999px;
}
.calendar-shell::-webkit-scrollbar-track{ background: transparent; }

.calendar-shell .calendar-dow,
.calendar-shell .calendar-grid{
  min-width: calc(7 * var(--cal-col-min));
}

.calendar-shell .calendar-dow{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--rule);
  background: rgba(255,255,255,.85);
  position: sticky;
  top: 0;
  z-index: 2;
}

.calendar-shell .calendar-dow > div{
  padding: 10px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid rgba(0,0,0,0.06);
}
.calendar-shell .calendar-dow > div:last-child{ border-right: 0; }

.calendar-shell .calendar-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-shell .cal-cell{
  min-height: 140px;
  padding: 10px 10px 10px;
  border-right: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.75);
  transition: background .12s ease;
}
.calendar-shell .cal-cell:hover{ background: rgba(255,255,255,.95); }
.calendar-shell .cal-cell:nth-child(7n){ border-right: 0; }
.calendar-shell .cal-cell.is-out{ background: rgba(255,255,255,.45); opacity: .65; }
.calendar-shell .cal-cell.is-today{
  background: rgba(11,42,74,.06);
  outline: 2px solid rgba(11,42,74,.28);
  outline-offset: -2px;
}

.calendar-shell .cal-cell-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.calendar-shell .cal-daynum{
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: .2px;
}

.calendar-shell .cal-count{
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 900;
  color: var(--brand);
  background: rgba(11,42,74,.10);
  border: 1px solid rgba(11,42,74,.18);
}

.calendar-shell .cal-events{
  list-style: none;
  margin: 0;
  padding: 0;
  display:grid;
  gap: 6px;
}

.calendar-shell .cal-event-link,
.calendar-shell .cal-event-btn{
  width: 100%;
  display:flex;
  gap: 8px;
  align-items: baseline;
  border: 1px solid rgba(11,42,74,.10);
  background: rgba(255,255,255,.85);
  border-radius: 10px;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  text-decoration:none;
  transition: border-color .12s ease, transform .12s ease, background .12s ease;
}
.calendar-shell a.cal-event-link:hover,
.calendar-shell .cal-event-btn:hover{
  text-decoration:none;
  border-color: rgba(11,42,74,.22);
  background: rgba(255,255,255,.98);
  transform: translateY(-1px);
}
.calendar-shell .cal-event-link.is-static{ border-style: dashed; cursor: default; }

.calendar-shell .cal-time{
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}

.calendar-shell .cal-title{
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.calendar-shell .cal-empty{ height: 8px; }

/* --- Calendar system B: “agenda cards” month view (.cal-month/.cal-day) --- */
.cal-month{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.cal-day{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--paper));
  box-shadow: var(--shadow);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  min-height: 160px;
}

.cal-day:hover{ border-color: rgba(11,42,74,.16); }
.cal-day.is-out{ opacity: .55; }
.cal-day.is-today{
  border-color: rgba(11,42,74,.28);
  box-shadow: 0 1px 0 rgba(17,24,39,.06), 0 18px 38px rgba(17,24,39,.10);
}

.cal-day-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255,255,255,.85);
}

.cal-day-left{
  display:flex;
  align-items:baseline;
  gap: 10px;
}

.cal-dow{
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}

.cal-date{
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  color: var(--text);
}

.cal-count{
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 900;
  color: var(--brand);
  background: rgba(11,42,74,.10);
  border: 1px solid rgba(11,42,74,.18);
}

.cal-events{
  list-style:none;
  margin: 0;
  padding: 10px 12px 12px;
  display:grid;
  gap: 8px;
}

.cal-event-btn{
  width: 100%;
  display:flex;
  gap: 8px;
  align-items: baseline;
  border: 1px solid rgba(11,42,74,.10);
  background: rgba(255,255,255,.88);
  border-radius: 10px;
  padding: 8px 9px;
  text-align:left;
  cursor:pointer;
  color: inherit;
  transition: border-color .12s ease, transform .12s ease, background .12s ease;
}
.cal-event-btn:hover{
  border-color: rgba(11,42,74,.22);
  background: rgba(255,255,255,.98);
  transform: translateY(-1px);
}
.cal-event-btn:active{ transform: translateY(0); }

.cal-time{
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}

.cal-title{
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow:hidden;
}

.cal-noevents{
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Calendar modal (kept) */
.cal-modal{
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(640px, calc(100vw - 24px));
}
.cal-modal::backdrop{
  background: rgba(17,24,39,.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cal-modal-card{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 60px rgba(17,24,39,.25);
  overflow: hidden;
}
.cal-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,247,.98));
}
.cal-modal-kicker{
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cal-modal-close{
  appearance:none;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}
.cal-modal-close:hover{ border-color:#cfd6df; }
.cal-modal-close:active{ transform: translateY(1px); }
.cal-modal-body{ padding: 14px 14px 16px; }
.cal-modal-title{
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
}
.cal-modal-meta{
  display:grid;
  gap: 6px;
  color: #374151;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.cal-modal-meta b{ color: var(--text); }
.cal-modal-desc{
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.cal-modal-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.cal-modal-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,42,74,.18);
  background: rgba(11,42,74,.06);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.cal-modal-link:hover{ text-decoration:none; border-color: rgba(11,42,74,.28); }
.cal-modal-ok{
  appearance:none;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.cal-modal-ok:hover{ border-color:#cfd6df; }
.cal-modal-ok:active{ transform: translateY(1px); }

/* ============================================================================
   Page variants (kept)
============================================================================ */
.page-article{ max-width: 860px; }

.page-header{
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
  margin-top: 30px;
}

.page-title{
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
}

.page-subtitle{
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.65;
}

.page-section{ margin: 18px 0; }
.page-section h2{
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
}

.page-list{ margin: 0; padding-left: 18px; }
.page-list li{ margin: 8px 0; line-height: 1.55; }

.page-steps{ margin: 0; padding-left: 18px; }
.page-steps li{ margin: 10px 0; line-height: 1.55; }

/* ============================================================================
   Responsive
============================================================================ */
@media (max-width: 960px){
  :root{
    --gutter: 16px;

    --header-logo-h: 44px;
    --header-logo-h-compact: 34px;
    --header-pad-y: 10px;
    --header-pad-y-compact: 6px;
  }

  .top-grid{
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .lead-headline{ font-size:34px; }
  .lead-media{ height:260px; }

  .cards-3up{ grid-template-columns: 1fr; }
  .cards-2x2{ grid-template-columns: 1fr; }
  .cards-2up{ grid-template-columns: 1fr; }

  .footer-grid{ grid-template-columns: 1fr; }

  .weather-points{ grid-template-columns: 1fr; }
  .weather-point-main{ grid-template-columns: 24px auto 1fr; }

  .story-layout{ grid-template-columns: 1fr; }
  .story-rail{ position: static; }

  .latest-thumb{ flex-basis: 84px; width: 84px; }

  .section-nav{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
  }
  .section-nav a{ white-space: nowrap; }

  .events-head{
    align-items:flex-start;
    flex-direction: column;
  }
  .event-card{ width: min(86vw, 380px); }
  .events-scroller::before,
  .events-scroller::after{ display:none; }

  .traffic-module .traffic-grid{ grid-template-columns: 1fr; }

  .belowfold-biz-row-police{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .belowfold-biz-row-biz{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .belowfold-biz-right .biz-panel{
    height: 340px;
    max-height: 340px;
  }

  .police-grid{ grid-template-columns: 1fr; }
  .police-head{ align-items:flex-start; flex-direction: column; }
  .police-when{ white-space: normal; }

  .traffic-title{ font-size: 20px; }
  .traffic-item-top{ flex-direction: column; align-items: flex-start; }
  .traffic-band .traffic-when{ white-space: normal; }

  .calendar-title{ font-size: 28px; }
  .cal-month{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 720px){
  /* calendar shell A: collapse dow row */
  .calendar-shell .calendar-dow{ display:none; }
  .calendar-shell .calendar-grid{ grid-template-columns: 1fr; min-width: 0; }
  .calendar-shell .cal-cell{ border-right: 0; min-height: auto; }
  .calendar-shell .cal-cell-head{ margin-bottom: 10px; }
  .calendar-shell .cal-daynum{ font-size: 16px; }
}

@media (max-width: 560px){
  .cal-month{ grid-template-columns: 1fr; }
}

/* ============================================================================
   Index row: Story (1/3) + Politiloggen (2/3)
   - Police widget: ~two article-cards tall, internal scroll
   - Scoped to the front page row to avoid breaking other pages
============================================================================ */

/* 1) Layout: swap proportions (left story 1/3, right police 2/3) */
.belowfold-biz-row-police{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}

/* Keep existing wrappers behaving predictably inside this row */
.belowfold-biz-row-police .belowfold-biz-left,
.belowfold-biz-row-police .belowfold-biz-right{
  min-width: 0; /* prevents overflow issues with long text */
}

/* 2) Politiloggen: fixed “two articles tall” feel + scrollable list */
.belowfold-biz-row-police .police-module{
  /* approximate “one article card height” on desktop */
  --vk-card-unit-h: 420px;

  height: min(
    calc(var(--vk-card-unit-h) * 2 + 16px),
    calc(100vh - 220px)
  );
  min-height: 560px;            /* ensures it actually feels like “two cards” */
  max-height: 980px;            /* avoids absurd height on huge monitors */

  display: flex;
  flex-direction: column;

  border-bottom: 0;             /* module already has bottom borders elsewhere */
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Header stays fixed; list becomes the scroll container */
.belowfold-biz-row-police .police-module .module-head{
  flex: 0 0 auto;
  margin-bottom: 10px;
}

/* Scroll container */
.belowfold-biz-row-police .police-module .police-list{
  flex: 1 1 auto;
  min-height: 0;                /* CRITICAL for scroll inside flex */
  overflow: auto;

  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 10px;

  /* optional: subtle in-widget scrollbar */
  -webkit-overflow-scrolling: touch;
}
.belowfold-biz-row-police .police-module .police-list::-webkit-scrollbar{ width: 10px; }
.belowfold-biz-row-police .police-module .police-list::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,.14);
  border-radius: 999px;
}
.belowfold-biz-row-police .police-module .police-list::-webkit-scrollbar-track{
  background: transparent;
}

/* 3) Minimal styling for your *actual* Politiloggen markup (police-row/button etc.)
      (Scoped to the module so it won’t clash with other pages.) */
.belowfold-biz-row-police .police-module .police-item{
  margin: 0;
  padding: 0;
}

.belowfold-biz-row-police .police-module .police-row{
  width: 100%;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;

  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);

  padding: 10px 10px;

  text-align: left;
  cursor: pointer;
  color: inherit;

  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.belowfold-biz-row-police .police-module .police-row:hover{
  border-color: rgba(11,42,74,.18);
  box-shadow: 0 1px 0 rgba(17,24,39,.06), 0 16px 34px rgba(17,24,39,.12);
  transform: translateY(-1px);
}
.belowfold-biz-row-police .police-module .police-row:active{
  transform: translateY(0);
}
.belowfold-biz-row-police .police-module .police-row:focus-visible{
  outline: 2px solid rgba(11,42,74,.35);
  outline-offset: 2px;
}

/* Left severity bar: use data-news-worthiness as a hint via JS if you want later;
   for now, keep it neutral. */
.belowfold-biz-row-police .police-module .police-sevbar{
  display: block;
  width: 6px;
  height: 100%;
  border-radius: 999px;
  background: rgba(178,74,59,.22);
}

/* Main text column */
.belowfold-biz-row-police .police-module .police-main{
  display: grid;
  gap: 6px;
  min-width: 0;
}

.belowfold-biz-row-police .police-module .police-headline{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .1px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.belowfold-biz-row-police .police-module .police-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.belowfold-biz-row-police .police-module .police-summary{
  color: #374151;
  font-size: 13px;
  line-height: 1.28;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Score pill */
.belowfold-biz-row-police .police-module .police-score{
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(178,74,59,.22);
  background: rgba(178,74,59,.08);
  color: var(--highlight);

  white-space: nowrap;
}

/* Expanded details live inside the scroll area too */
.belowfold-biz-row-police .police-module .police-details{
  margin-top: 8px;
}
.belowfold-biz-row-police .police-module .police-details-inner{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--paper));
  padding: 10px;
}
.belowfold-biz-row-police .police-module .police-details-block + .police-details-block{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.belowfold-biz-row-police .police-module .police-details-title{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.belowfold-biz-row-police .police-module .police-details-time{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.belowfold-biz-row-police .police-module .police-details-text{
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* 4) Responsive: stack on mobile */
@media (max-width: 960px){
  .belowfold-biz-row-police{
    grid-template-columns: 1fr;
  }

  .belowfold-biz-row-police .police-module{
    height: auto;
    min-height: 420px;
    max-height: none;
  }

  .belowfold-biz-row-police .police-module .police-list{
    max-height: 520px; /* still scrolls, but doesn’t eat the whole page */
  }
}

.police-updates-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.police-update{
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 0 rgba(17,24,39,.04);
  padding: 10px 10px;
}

.police-update-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}

.police-update-time{
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.police-update-text{
  color:#374151;
  font-size:13px;
  line-height:1.45;
  white-space: pre-wrap;
}


/* ============================================================================
   Ad cards (native card placeholders inside story grids)
============================================================================ */
.card.ad-card{
  border-style: dashed;
  background: linear-gradient(180deg, #fff, var(--paper));
}

.card.ad-card:hover{
  transform: none;
  border-color: var(--rule);
  box-shadow: var(--shadow);
}

.ad-card-inner{
  padding: 12px;
}

.ad-card .ad-title{
  font-weight: 900;
  margin-bottom: 4px;
}

.ad-card .ad-meta{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

  .power-row{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    margin-top: 18px;
    margin-bottom: 18px;
  }
  .power-row-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }
  .power-span-2{ grid-column: span 2; min-width: 0; }
  .power-span-1{ grid-column: span 1; min-width: 0; }

  .power-module{
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
  }
  .power-module .module-head{
    flex: 0 0 auto;
    margin-bottom: 10px;
  }
  .power-sub{
    font-size: 12px;
    color: var(--muted);
    font-weight: 650;
  }

  .power-body{
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff, var(--paper));
    box-shadow: var(--shadow);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .power-metrics{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
  }
  .power-metrics-left{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
  }
  .power-pill{
    display:inline-flex;
    align-items:center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.70);
    color: var(--text);
    white-space: nowrap;
  }
  .power-pill strong{ font-variant-numeric: tabular-nums; }

  .power-chart-shell{
    position: relative;
    flex: 1 1 auto;
    min-height: 220px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,.65);
    padding: 10px 10px 8px;
    overflow: hidden;
  }

.power-chart{
  position: absolute;
  inset: 10px 10px 26px 10px; /* leave room for x-axis labels */
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  gap: 2px;
  align-items: end; /* bottom align bars */
}

.power-bar{
  height: var(--h, 20%);
  border-radius: 6px 6px 2px 2px;
  background: rgba(11,42,74,.18);
}



  .power-bar.is-unavailable{
    background: repeating-linear-gradient(
      45deg,
      rgba(17,24,39,.10),
      rgba(17,24,39,.10) 4px,
      rgba(17,24,39,.04) 4px,
      rgba(17,24,39,.04) 8px
    );
  }

  .power-day-divider{
    position: absolute;
    top: 10px;
    bottom: 26px;
    width: 1px;
    background: rgba(17,24,39,.16);
    left: 50%;
    pointer-events: none;
  }

  .power-nowline{
    position: absolute;
    top: 10px;
    bottom: 26px;
    width: 2px;
    background: rgba(178,74,59,.70);
    left: 0%;
    transform: translateX(-1px);
    pointer-events: none;
  }
  .power-nowlabel{
    position: absolute;
    top: 10px;
    transform: translate(-50%, -110%);
    left: 0%;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--highlight);
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(178,74,59,.25);
    border-radius: 999px;
    padding: 2px 6px;
    pointer-events: none;
  }

  .power-xaxis{
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    color: rgba(17,24,39,.65);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
  }
  .power-xaxis span{ text-align: left; }

  @media (max-width: 960px){
    .power-row-grid{ grid-template-columns: 1fr; }
    .power-span-2, .power-span-1{ grid-column: auto; }
    .power-chart-shell{ min-height: 240px; }
  }

  /* SVG chart replaces the 48 div bars */
.power-svg{
  position: absolute;
  inset: 10px 10px 26px 10px; /* matches your prior inset */
  width: calc(100% - 20px);
  height: calc(100% - 36px);
  display: block;
}

/* Default bar look */
.power-svg-bar{
  fill: rgba(11,42,74,.18);
}

/* Optional: subtle hover (works on desktop) */
.power-svg-bar:hover{
  fill: rgba(11,42,74,.28);
}


.power-svg-divider{
  stroke: rgba(17,24,39,.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.power-svg-nowline{
  stroke: rgba(178,74,59,.70);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.power-svg-nowbadge{
  fill: rgba(255,255,255,.92);
  stroke: rgba(178,74,59,.25);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.power-svg-nowtext{
  font: 950 10px ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  fill: rgba(178,74,59,.95);
  dominant-baseline: alphabetic;
}

/* ============================================================================
   Trafikk page — sleek dedicated layout (overrides + additions)
============================================================================ */
.trafikk-page{ padding: 18px 0 30px; }

.trafikk-hero{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(11,42,74,.10), rgba(255,255,255,0)),
    linear-gradient(180deg, #fff, var(--paper));
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 10px 0 14px;
}

.trafikk-page-title{
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .2px;
}

.trafikk-page-sub{
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  max-width: 72ch;
}

.trafikk-hero-right{ min-width: 280px; }
.trafikk-stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.trafikk-stat{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  padding: 10px 10px 9px;
}
.trafikk-stat-num{
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  line-height: 1;
}
.trafikk-stat-label{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
}

.trafikk-updated{
  margin-top: 10px;
  color: rgba(17,24,39,.70);
  font-size: 12.5px;
  font-weight: 800;
}
.trafikk-updated-val{ font-variant-numeric: tabular-nums; }

.trafikk-controls{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.75);
  box-shadow: 0 1px 0 rgba(17,24,39,.06);
  padding: 12px;
  margin-bottom: 16px;
}

.trafikk-controls-row{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 10px;
  align-items: end;
}

.trafikk-field{ display: grid; gap: 6px; }
.trafikk-field-label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.trafikk-input,
.trafikk-select{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 10px 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
}
.trafikk-input:focus,
.trafikk-select:focus{
  outline: 2px solid rgba(11,42,74,.25);
  outline-offset: 2px;
}

.trafikk-btn{
  appearance: none;
  border: 1px solid rgba(11,42,74,.18);
  background: rgba(11,42,74,.08);
  color: var(--brand);
  font-weight: 950;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.trafikk-btn:hover{ filter: brightness(.98); }
.trafikk-reset{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.trafikk-reset:hover{ text-decoration: none; filter: brightness(.98); }

.trafikk-fineprint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}

/* Layout: list + rail */
.trafikk-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.trafikk-main{ min-width: 0; }
.trafikk-rail{ min-width: 0; }
.trafikk-rail-sticky{ position: sticky; top: 110px; }

.trafikk-rail-module{ margin-bottom: 18px; }
.trafikk-rail-list{
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
}
.trafikk-rail-list li{ margin: 8px 0; }

/* Featured section uses the same card styles as frontpage traffic-card, but 2-up */
.trafikk-featured{ margin-bottom: 12px; }
.trafikk-featured-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Between blocks */
.trafikk-between{ margin: 12px 0 14px; }

/* In-list ad container */
.trafikk-ad{ list-style: none; margin: 2px 0; }
.trafikk-ad .ad-slot{ box-shadow: var(--shadow); }
.ad-title{ font-weight: 900; margin-bottom: 4px; }
.ad-meta{ color: var(--muted); font-size: 12px; font-weight: 800; }

/* Traffic list rows: upgrade existing .trafikk-row look */
.trafikk-list{ gap: 10px; }

.trafikk-row{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.10);
}

.trafikk-row .tr-top{ gap: 10px; }
.trafikk-row .tr-type{ font-size: 14px; font-weight: 950; }
.trafikk-row .tr-when{ margin-left: auto; font-variant-numeric: tabular-nums; }
.trafikk-row .tr-mid{ color: rgba(17,24,39,.72); }
.trafikk-row .tr-period{ color: rgba(17,24,39,.62); }

/* Severity accent (page list) */
.trafikk-row.sev-low{ border-left: 4px solid rgba(10, 122, 47, 0.55); }
.trafikk-row.sev-medium{ border-left: 4px solid rgba(178, 106, 0, 0.65); }
.trafikk-row.sev-high{ border-left: 4px solid rgba(176, 0, 32, 0.65); }
.trafikk-row.sev-none{ border-left: 4px solid rgba(0,0,0,0.16); }

/* Responsive */
@media (max-width: 980px){
  .trafikk-layout{ grid-template-columns: 1fr; }
  .trafikk-rail-sticky{ position: static; top: auto; }
  .trafikk-hero{ flex-direction: column; }
  .trafikk-hero-right{ min-width: 0; width: 100%; }
  .trafikk-stats{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trafikk-controls-row{
    grid-template-columns: 1fr 1fr;
  }
  .trafikk-btn{ width: 100%; }
  .trafikk-reset{ width: 100%; }
  .trafikk-featured-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .trafikk-page-title{ font-size: 28px; }
  .trafikk-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ============================================================================
   Ad card (native card placeholder) — used on front + dedicated pages
============================================================================ */
.ad-card{
  border-style: dashed;
  background: linear-gradient(180deg, #fff, var(--paper));
}
.ad-card:hover{
  transform: none;
  box-shadow: var(--shadow);
  border-color: rgba(0,0,0,0.14);
}
.ad-card-inner{ padding: 12px; }
.ad-title{
  font-weight: 900;
  letter-spacing: .1px;
  margin-bottom: 4px;
}
.ad-meta{
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

/* ============================================================================
   Politilogg page (dedicated)
============================================================================ */
.police-log-hero .police-log-title{
  font-size: 34px;
  line-height: 1.05;
}

.police-log-hero-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:flex-end;
}

.police-log-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.police-log-filters{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.police-log-filter{
  appearance:none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,.75);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  color: var(--text);
}
.police-log-filter:hover{ border-color: rgba(0,0,0,0.18); }
.police-log-filter.is-active{
  background: rgba(11,42,74,.08);
  border-color: rgba(11,42,74,.18);
  color: var(--brand);
}

.police-log-count{
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.police-log-hero-ad{ margin-top: 12px; }

.police-log-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
}

.police-log-main{ min-width: 0; }
.police-log-rail{ min-width: 0; }

.police-rail-stack{
  position: sticky;
  top: 92px; /* below header; adjust if needed */
  display: grid;
  gap: 16px;
}

.police-log-list{
  list-style:none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.police-log-adli{ list-style: none; }

.police-log-item{ margin: 0; }

/* Use <details>/<summary> but keep the same “row” look */
.police-disclosure{ border: 0; }
.police-disclosure > summary{
  list-style: none;
}
.police-disclosure > summary::-webkit-details-marker{ display:none; }

/* Small district pill (optional) */
.police-district{
  display:inline-flex;
  align-items:center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
  font-size: 12px;
  font-weight: 800;
}

/* Updates list in expanded section */
.police-updates-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.police-update{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  padding: 10px;
}

.police-update-time{
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.police-update-text{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
  white-space: pre-wrap;
}

/* Info card in rail */
.police-info-card:hover{ transform:none; }
.police-info-inner{ padding: 12px; }
.police-info-text{
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
  margin-top: 6px;
}
.police-info-text.muted{ color: var(--muted); }

/* Responsive */
@media (max-width: 980px){
  .police-log-grid{
    grid-template-columns: 1fr;
  }
  .police-rail-stack{
    position: static;
  }
}


/* file: static/site.css */
/* APPEND THIS BLOCK (page-scoped styles for virksomheter.html only) */

/* ============================================================================
   Virksomheter updates page (virksomheter.html) — page-scoped only
============================================================================ */
.virksomheter-page{
  padding: 18px 0 28px;
}

/* Header */
.virksomheter-page .virksomheter-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  margin-bottom: 18px;
}

.virksomheter-page .virksomheter-kicker{
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  margin-bottom: 6px;
}

.virksomheter-page .virksomheter-title{
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .2px;
}

.virksomheter-page .virksomheter-sub{
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  max-width: 80ch;
}

/* Main grid */
.virksomheter-page .virksomheter-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.virksomheter-page .virksomheter-main{ min-width: 0; }
.virksomheter-page .virksomheter-rail{ min-width: 0; }

.virksomheter-page .virksomheter-rail-sticky{
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

/* Toolbar + tabs */
.virksomheter-page .virksomheter-toolbar{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--paper));
  box-shadow: var(--shadow);
  padding: 12px 12px 10px;
  margin-bottom: 14px;
}

.virksomheter-page .virksomheter-tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.virksomheter-page .virksomheter-tab{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.virksomheter-page .virksomheter-tab:hover{
  border-color: rgba(0,0,0,0.18);
}

.virksomheter-page .virksomheter-tab.is-active{
  background: rgba(11,42,74,.08);
  border-color: rgba(11,42,74,.18);
  color: var(--brand);
}

.virksomheter-page .virksomheter-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  color: var(--brand);
  background: rgba(11,42,74,.10);
  border: 1px solid rgba(11,42,74,.18);
  font-variant-numeric: tabular-nums;
}

.virksomheter-page .virksomheter-fineprint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Panels */
.virksomheter-page .virksomheter-panels{ display: block; }

.virksomheter-page .virksomheter-panel{
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.virksomheter-page .virksomheter-panel:last-child{
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.virksomheter-page .virksomheter-panel-head{
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.virksomheter-page .virksomheter-h2{
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .2px;
}

.virksomheter-page .virksomheter-panel-sub{
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

/* List + rows */
.virksomheter-page .virksomheter-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.virksomheter-page .virksomheter-li{ margin: 0; }

.virksomheter-page .virksomheter-row{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 1px 0 rgba(17,24,39,.04);
  padding: 10px 10px;
}

.virksomheter-page .virksomheter-top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.virksomheter-page .virksomheter-name{
  font-weight: 950;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: .1px;
  min-width: 0;
}

.virksomheter-page .virksomheter-date{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.virksomheter-page .virksomheter-subtitle{
  margin-top: 5px;
  color: rgba(17,24,39,.86);
  font-size: 13px;
  line-height: 1.35;
}

.virksomheter-page .virksomheter-meta{
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: rgba(17,24,39,.62);
  font-size: 12px;
  font-weight: 650;
}

.virksomheter-page .virksomheter-meta-item{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.virksomheter-page .virksomheter-pills{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.virksomheter-page .virksomheter-pill{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
  color: var(--text);
}

.virksomheter-page .virksomheter-pill.kind-new{
  border-color: rgba(11,42,74,.18);
  background: rgba(11,42,74,.06);
  color: var(--brand-2);
}
.virksomheter-page .virksomheter-pill.kind-enk{
  border-color: rgba(2,132,199,.22);
  background: rgba(2,132,199,.10);
}
.virksomheter-page .virksomheter-pill.kind-bankruptcy{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.16);
}
.virksomheter-page .virksomheter-pill.kind-vat{
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.06);
}
.virksomheter-page .virksomheter-pill.kind-score{
  border-color: rgba(22,163,74,.22);
  background: rgba(22,163,74,.12);
}
.virksomheter-page .virksomheter-pill.kind-news{
  border-color: rgba(178,74,59,.22);
  background: rgba(178,74,59,.10);
  color: var(--highlight);
}

/* Ads on this page (card-like) */
.virksomheter-page .virksomheter-ad-card{
  border-style: dashed;
}
.virksomheter-page .virksomheter-ad-inner{
  padding: 12px;
}
.virksomheter-page .virksomheter-ad-label{
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.virksomheter-page .virksomheter-ad-title{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
}
.virksomheter-page .virksomheter-ad-meta{
  margin-top: 6px;
  color: rgba(17,24,39,.60);
  font-size: 12px;
}

/* Rail info card */
.virksomheter-page .virksomheter-info{
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--paper));
  box-shadow: var(--shadow);
  padding: 12px;
}

.virksomheter-page .virksomheter-info-title{
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .2px;
  margin-bottom: 8px;
}

.virksomheter-page .virksomheter-info-list{
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
}

.virksomheter-page .virksomheter-info-note{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Empty state */
.virksomheter-page .virksomheter-empty{
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.7);
}

/* Responsive */
@media (max-width: 980px){
  .virksomheter-page .virksomheter-head{
    grid-template-columns: 1fr;
  }
  .virksomheter-page .virksomheter-grid{
    grid-template-columns: 1fr;
  }
  .virksomheter-page .virksomheter-rail-sticky{
    position: static;
  }
}

/* ==========================================================================
   Cookie consent banner (global)
   ========================================================================== */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 18, 22, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-consent-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-link {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-consent-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 560px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie-consent-btn {
    width: 100%;
  }
}
