/* ═══════════════════════════════════════════════
   KOMMUN STYLES — Celeste Omsorg
   Used by auto-generated municipality pages
   ═══════════════════════════════════════════════ */

/* ─── PAGE WRAPPER ───────────────────────────── */
.kommun-page {
  max-width: 720px;
  margin: 120px auto 0;
  padding: 0 24px 100px;
}

/* ─── BREADCRUMB ──────────────────────────────── */
.kommun-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--celestial);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.kommun-breadcrumb a {
  color: var(--celestial);
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}
.kommun-breadcrumb a:hover {
  opacity: 1;
}
.kommun-breadcrumb span {
  margin: 0 8px;
  opacity: .35;
  color: var(--ink);
  font-size: 11px;
}
.kommun-breadcrumb .current {
  color: var(--ink);
  opacity: .5;
}

/* ─── PAGE HEADING ───────────────────────────── */
.kommun-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 300;
  color: var(--midnight);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.kommun-page h1 em {
  font-style: italic;
  color: var(--celestial);
}

/* ─── INTRO ───────────────────────────────────── */
.kommun-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  opacity: .6;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 580px;
}

/* ─── STATUS GRID ─────────────────────────────── */
.kommun-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

/* ─── STATUS CARD ─────────────────────────────── */
.kommun-status-card {
  text-align: center;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,228,244,.2) 0%, rgba(212,228,244,.08) 100%);
  border: 1px solid rgba(59,90,138,.08);
  transition: transform .2s, box-shadow .2s;
}
.kommun-status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.kommun-status-card.underskott {
  background: linear-gradient(135deg, rgba(204,68,68,.07) 0%, rgba(204,68,68,.03) 100%);
  border-color: rgba(204,68,68,.12);
  color: #c44;
}
.kommun-status-card.underskott .kommun-status-label {
  color: rgba(204,68,68,.55);
}
.kommun-status-card.underskott .kommun-status-value {
  color: #c44;
}

.kommun-status-card.balans {
  background: linear-gradient(135deg, rgba(84,128,184,.08) 0%, rgba(84,128,184,.03) 100%);
  border-color: rgba(84,128,184,.1);
}
.kommun-status-card.balans .kommun-status-label {
  color: rgba(42,53,80,.4);
}
.kommun-status-card.balans .kommun-status-value {
  color: rgba(42,53,80,.55);
}

.kommun-status-card.ej-svar {
  background: linear-gradient(135deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,.015) 100%);
  border-color: rgba(0,0,0,.05);
}
.kommun-status-card.ej-svar .kommun-status-label,
.kommun-status-card.ej-svar .kommun-status-value {
  opacity: .35;
}

/* ─── STATUS LABEL & VALUE ────────────────────── */
.kommun-status-label {
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .45;
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
}
.kommun-status-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--midnight);
  display: block;
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* ─── STATS LIST ──────────────────────────────── */
.kommun-stats {
  background: linear-gradient(135deg, rgba(212,228,244,.25) 0%, rgba(212,228,244,.1) 100%);
  border: 1px solid rgba(59,90,138,.08);
  border-radius: 16px;
  padding: 8px 24px;
  margin-bottom: 40px;
}

.kommun-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(59,90,138,.07);
}
.kommun-stat-row:last-child {
  border-bottom: none;
}

.kommun-stat-label {
  font-size: 13px;
  color: var(--ink);
  opacity: .6;
  font-weight: 300;
  flex: 1;
}
.kommun-stat-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--midnight);
  text-align: right;
}

/* ─── CONTENT SECTION ─────────────────────────── */
.kommun-section {
  margin-bottom: 48px;
}
.kommun-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--midnight);
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.kommun-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  opacity: .6;
  font-weight: 300;
  margin-bottom: 12px;
}
.kommun-section p:last-child {
  margin-bottom: 0;
}

/* ─── CTA BLOCKS ──────────────────────────────── */
.kommun-cta {
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.kommun-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.07);
}
.kommun-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--midnight);
  margin-bottom: 6px;
  line-height: 1.2;
}
.kommun-cta p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  opacity: .6;
  margin-bottom: 16px;
  font-weight: 300;
}
.kommun-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 100px;
  transition: all .2s;
}

.kommun-cta-celeste {
  background: linear-gradient(135deg, rgba(123,168,130,.12) 0%, rgba(123,168,130,.05) 100%);
  border-color: rgba(123,168,130,.2);
}
.kommun-cta-celeste h3 { color: var(--ink); }
.kommun-cta-celeste a {
  background: var(--sage);
  color: #fff;
}
.kommun-cta-celeste a:hover {
  background: #6a9870;
  box-shadow: 0 4px 12px rgba(123,168,130,.3);
}

.kommun-cta-quiz {
  background: linear-gradient(135deg, rgba(84,128,184,.1) 0%, rgba(84,128,184,.04) 100%);
  border-color: rgba(84,128,184,.15);
}
.kommun-cta-quiz h3 { color: var(--midnight); }
.kommun-cta-quiz a {
  background: var(--celestial);
  color: #fff;
}
.kommun-cta-quiz a:hover {
  background: var(--midnight);
  box-shadow: 0 4px 12px rgba(59,90,138,.25);
}

/* ─── ARTICLES SECTION ────────────────────────── */
.kommun-articles {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(59,90,138,.08);
}
.kommun-articles h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

.kommun-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.kommun-article-card {
  display: block;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(212,228,244,.15) 0%, rgba(212,228,244,.05) 100%);
  border: 1px solid rgba(59,90,138,.08);
  border-radius: 12px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.kommun-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.07);
  border-color: rgba(59,90,138,.18);
}

.kommun-article-tag {
  display: block;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--celestial);
  font-weight: 500;
  margin-bottom: 8px;
}

.kommun-article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 640px) {
  .kommun-page {
    margin-top: 80px;
    padding: 0 20px 80px;
  }

  .kommun-status-grid {
    grid-template-columns: 1fr;
  }

  .kommun-article-grid {
    grid-template-columns: 1fr;
  }

  .kommun-cta {
    padding: 22px 20px;
  }

  .kommun-stats {
    padding: 4px 16px;
  }
}
