/* ──────────────────────────────────────────────
   HEADER
   ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-branding img.custom-logo { max-height: 38px; width: auto; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.site-title a { color: var(--navy); }
.site-tagline { display: none; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav li { position: relative; }
.primary-nav a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  display: block;
  padding: 8px 0;
}
.primary-nav a:hover { color: var(--sky); }
.primary-nav .current-menu-item > a { color: var(--sky); }

/* Rullegardin-undermeny */
.primary-nav li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.primary-nav li.menu-item-has-children > a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 1px;
  flex-shrink: 0;
}
.primary-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(15,25,34,0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
}
.primary-nav li.menu-item-has-children:hover > .sub-menu,
.primary-nav li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.primary-nav .sub-menu a:hover { background: var(--sky-pale); color: var(--sky-dim); }
.primary-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 6px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-dim);
  background: var(--sky-pale);
  padding: 6px 12px;
  border-radius: 20px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sky);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 1px;
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .live-pill span.live-text { display: none; }
}

.mobile-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
}
.mobile-nav ul {
  list-style: none;
  padding: 16px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--surface-border);
}
.mobile-nav ul ul {
  padding-left: 16px;
  display: none;
}
.mobile-nav li.menu-item-has-children { position: relative; }
.mobile-nav li.menu-item-has-children.is-open > ul {
  display: block;
}
.mobile-nav .submenu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav .submenu-toggle::after {
  content: '';
  position: absolute;
  top: 16px; left: 14px;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.mobile-nav li.is-open > .submenu-toggle::after {
  transform: rotate(-135deg);
  top: 19px;
}

/* ──────────────────────────────────────────────
   HERO + LIVE VÆR-WIDGET
   ────────────────────────────────────────────── */

.hero {
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.weather-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.weather-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--sky-glow), transparent 70%);
}
.weather-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.weather-location { font-size: 14px; color: var(--text-on-dark-muted); font-weight: 600; }
.weather-location strong { color: var(--text-on-dark); font-size: 16px; display: block; margin-top: 2px; }
.weather-temp {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 600;
  line-height: 1;
  margin: 6px 0 4px;
}
.weather-desc { color: var(--text-on-dark-muted); font-size: 15px; margin-bottom: 22px; }
.weather-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.weather-stat-label { font-size: 11.5px; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.weather-stat-value { font-size: 17px; font-weight: 700; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────
   VERKTØY-GRID
   ────────────────────────────────────────────── */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,25,34,0.07);
  border-color: var(--sky);
}
.tool-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sky-pale);
  color: var(--sky-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.tool-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.tool-card p { font-size: 14px; margin-bottom: 14px; }
.tool-card a.tool-link { font-size: 14px; font-weight: 700; }

/* ──────────────────────────────────────────────
   NYHETSGRID
   ────────────────────────────────────────────── */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 { margin: 0; }
/* ──────────────────────────────────────────────
   NYHETSGRID — featured + mini-liste
   ────────────────────────────────────────────── */

.news-featured-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.news-card-featured {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  transition: box-shadow .15s ease, transform .15s ease;
}
.news-card-featured:hover { box-shadow: 0 12px 28px rgba(15,25,34,0.07); transform: translateY(-3px); }
.news-card-featured .news-card-img { aspect-ratio: 16/9; background: var(--bg-alt); overflow: hidden; }
.news-card-featured .news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-featured .news-card-body { padding: 24px 26px 26px; }
.news-card-featured h3 { font-size: 1.5rem; }

.news-side-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.news-card-mini {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  transition: background .15s ease;
}
.news-card-mini:hover { background: var(--surface); }
.news-card-mini-img { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--bg); }
.news-card-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-mini h3 { font-size: 0.98rem; margin: 4px 0 0; line-height: 1.35; }
.news-card-mini h3 a { color: var(--text-primary); }
.news-card-mini h3 a:hover { color: var(--sky); }
.news-card-mini .news-card-meta { font-size: 11.5px; }

.news-empty-state {
  background: var(--surface);
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}
.news-empty-state p { margin: 0; color: var(--text-muted); }

@media (max-width: 820px) {
  .news-featured-layout { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────
   NYHETSGRID (brukt i andre kontekster, f.eks. relaterte artikler)
   ────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.news-card:hover { box-shadow: 0 12px 28px rgba(15,25,34,0.07); transform: translateY(-3px); }
.news-card-img { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-meta {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--sky-dim);
  margin-bottom: 10px;
}
.news-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news-card h3 a { color: var(--text-primary); }
.news-card h3 a:hover { color: var(--sky); }
.news-card p { font-size: 14px; flex: 1; }
.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
}

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: var(--text-on-dark-muted);
  padding: 64px 0 28px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .site-title { color: var(--text-on-dark); }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 14px; max-width: 280px; margin-top: 14px; }
.footer-col h4.widget-title, .footer-col h4 {
  color: var(--text-on-dark);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-on-dark-muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--text-on-dark);
}
.footer-social a:hover { background: rgba(255,255,255,.16); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ──────────────────────────────────────────────
   BLOGG / ARKIV / SINGLE
   ────────────────────────────────────────────── */

.page-header-band {
  background: var(--bg-alt);
  padding: 48px 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--surface-border);
}
.blog-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 48px;
}
.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--surface-border);
}
.post-list-item .post-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.post-list-item .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-item h2 { font-size: 1.4rem; margin-bottom: 8px; }
.post-list-item .post-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.post-list-item .post-meta span + span::before { content: '·'; margin: 0 6px; }

.single-content {
  max-width: 720px;
}
.single-content h1.entry-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--surface-border);
}
.single-meta .avatar { border-radius: 50%; width: 36px; height: 36px; }
.entry-content { font-size: 1.05rem; line-height: 1.75; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); margin: 1.2em 0; }
.entry-content blockquote {
  border-left: 3px solid var(--sky);
  padding-left: 18px;
  font-style: italic;
  color: var(--text-secondary);
  margin: 1.4em 0;
}

.widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.widget { margin-bottom: 36px; }

.pagination { display: flex; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .post-list-item { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────
   VÆRVARSEL-BÅND (gult/oransje/rødt farevarsel)
   ────────────────────────────────────────────── */

.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.alert-banner.level-yellow { background: var(--warn-yellow); color: #2b2106; }
.alert-banner.level-orange { background: var(--warn-orange); }
.alert-banner.level-red { background: var(--warn-red); }
.alert-banner a { color: inherit; text-decoration: underline; }
