    :root {
      --bg-page: #f4f6f9;
      --bg-surface: #ffffff;
      --text-primary: #1e242b;
      --text-body: #4a5568;
      --text-muted: #64748b;
      --accent: #0f766e;
      --accent-soft: #f0fdfa;
      --border: #e2e8f0;
      --radius: 10px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    
    html, body {
      height: 100%;
    }
    body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-page);
      color: var(--text-body);
      line-height: 1.75;
      font-size: 14.5px;
      -webkit-font-smoothing: antialiased;
    }
    .container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; }
    /* 2026-12-01 max-width: 1200px; --> max-width: 1160px; */

    /* Header & Meny */
    .site-header {
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .nav-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      min-height: 70px;
      gap: 20px;
      position: relative;
    }
    .logo {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--text-primary);
      text-decoration: none;
      letter-spacing: -0.03em;
    }
    .nav-list { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; }
    .nav-list a {
      text-decoration: none;
      color: var(--text-body);
      font-weight: 500;
      font-size: 0.95rem;
      padding: 6px 0;
      border-bottom: 2px solid transparent;
      transition: all 0.2s;
    }
    .nav-list a:hover, .nav-list a.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    /* Hamburgerknapp (dold på desktop) */
    .menu-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 28px;
      height: 20px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 110;
    }
    .menu-toggle span {
      display: block;
      width: 100%;
      height: 2.5px;
      background-color: var(--text-primary);
      border-radius: 2px;
      transition: all 0.25s ease;
    }
    .menu-toggle.open span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

    /* AdSense-platser (Tar 0px plats tills annonskod läggs in) */
    .ad-slot {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .ad-slot:empty { display: none; }
    .ad-slot-top:not(:empty) { min-height: 90px; margin-top: 20px; margin-bottom: 4px; }
    .ad-slot-in-article:not(:empty) { min-height: 250px; margin: 32px 0; }
    .ad-slot-sidebar:not(:empty) { min-height: 250px; margin-top: 24px; }

    /* Layout: Huvudinnehåll + Högerspalt (flex: 1 trycker ner foten) */
    .page-grid {
      flex: 1 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 320px;
      gap: 40px;
      margin-top: 32px;
      margin-bottom: 56px;
      align-items: start;
    }

    /* Transparent behållare runt artikel-kolumnen så bilden når full bredd och det vita kortet överlappar */
    .main-article {
      background: transparent;
      padding: 0;
      border: none;
    }

    .breadcrumbs {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 16px;
    }
    .breadcrumbs a { color: var(--accent); text-decoration: none; font-weight: 500; }
    .breadcrumbs a:hover { text-decoration: underline; }

    /* Editorial Hero (Bild + överlappande vit textruta) */
    .editorial-hero {
      width: 100%;
      
    }

    .editorial-media {
      width: 100%;
    }

    .hero-img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      background: #e2e8f0;
    }

    .editorial-card {
      position: relative;
      z-index: 2;
      background: var(--bg-surface);
      padding: 44px 52px;
      border: 1px solid var(--border);
    }

    /* När bild finns: dra upp vita rutan över bildens nederkant och gör den något smalare */
    .main-article:not(.no-hero-image) .editorial-card {
      width: calc(100% - 36px);
      margin: -95px auto 0 auto;
    }

    /* När bild saknas: vanlig rektangulär yta i full bredd */
    .main-article.no-hero-image .editorial-card {
      width: 100%;
      margin: 0;
      padding: 48px;
      border-radius: var(--radius);
      background: #FFFFFF; 
      border: 1px solid var(--border);
      border-radius: var(--radius);
    }

    .cat-badge {
      display: inline-block;
      font-size: 0.78rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent);
      background: var(--accent-soft);
      padding: 4px 10px;
      border-radius: 999px;
      margin-bottom: 12px;
    }
    h1 {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 2.15rem;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.2;
      letter-spacing: -0.025em;
      margin-bottom: 22px;
    }

    h1, h2, h3 {
  text-transform: lowercase;
}

h1::first-letter, 
h2::first-letter, 
h3::first-letter {
  text-transform: uppercase;
}

    .content { max-width: 68ch; }
    .content h2 {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.45rem;
      color: var(--text-primary);
      margin: 36px 0 14px;
      font-weight: 700;
      letter-spacing: -0.015em;
    }
    .content h3 {
      font-size: 1.15rem;
      color: var(--text-primary);
      margin: 26px 0 10px;
      font-weight: 600;
    }
    .content p { margin-bottom: 20px; }
    .content ul, .content ol { margin: 0 0 22px 24px; }
    .content li { margin-bottom: 10px; }
    .content strong { color: var(--text-primary); font-weight: 600; }

    /* Artikelkort under kategori / startsida */
    .subpages-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 24px;
      margin-top: 40px;
      padding-top: 32px;
      border-top: 1px solid var(--border);
    }
    .sub-card {
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      background: var(--bg-surface);
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
    .sub-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08);
    }
    .sub-card img {
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      display: block;
    }
    .sub-card-body { padding: 18px; }
    .sub-card-cat { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
    .sub-card-title {
      display: block;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-primary);
      text-decoration: none;
      margin-top: 6px;
      line-height: 1.35;
    }
    .sub-card-title:hover { color: var(--accent); }

    /* Högerspalt */
    .sidebar { position: static; top: 96px; }
    .sidebar-box {
      background: var(--bg-surface);
      padding: 8px;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      margin-bottom: 20px;
    }
    .sidebar-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-primary);
      padding-bottom: 12px;
      margin-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    .sidebar-list { list-style: none; }
    .sidebar-list li { margin-bottom: 4px; }
    .sidebar-list a {
      display: block;
      padding: 0px 4px;
      text-decoration: none;
      color: var(--text-body);
      font-size: 0.9rem;
      border-radius: 6px;
      transition: background 0.15s, color 0.15s;
    }
    .sidebar-list a:hover {
      background: var(--bg-page);
      color: var(--accent);
    }
    .sidebar-list a.current {
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 600;
    }

    /* Footer (Sticky bottom + 20% kompaktare höjd) */
    .site-footer {
      flex-shrink: 0;
      background: var(--bg-surface);
      border-top: 1px solid var(--border);
      padding: 26px 0;
      color: var(--text-muted);
      font-size: 0.86rem;
    }
    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .footer-links {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
    }
    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-weight: 500;
    }
    .footer-links a:hover {
      color: var(--accent);
      text-decoration: underline;
    }

    /* MOBILANPASSNING */
    @media (max-width: 920px) {
      .container { padding: 0 16px; }
      .menu-toggle { display: flex; }
      
      .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
        padding: 12px 24px 20px;
      }
      .main-nav.open { display: block; }
      
      .nav-list {
        flex-direction: column;
        gap: 4px;
      }
      .nav-list a {
        display: block;
        padding: 12px 8px;
        font-size: 1.05rem;
        border-bottom: none;
        border-radius: 6px;
      }
      .nav-list a:hover, .nav-list a.active {
        background: var(--accent-soft);
      }

      .page-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 20px;
      }

      .editorial-card {
        padding: 26px 22px;
      }

      .main-article:not(.no-hero-image) .editorial-card {
        width: calc(100% - 20px);
        margin: -45px auto 0 auto;
      }

      .sidebar { position: static; }
      h1 { font-size: 1.65rem; }
      .subpages-grid { grid-template-columns: 1fr; }
      .ad-slot-top:not(:empty) { min-height: 50px; }
      .footer-inner { flex-direction: column; text-align: center; }
    }


/* Kontaktformulär */
.contact-form-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.contact-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-weight: 500;
}

.contact-alert-success {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  align-self: flex-start;
  padding: 11px 26px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-submit:hover {
  opacity: 0.92;
}

.btn-submit:active {
  transform: translateY(1px);
}


   /* Sökbox i sidomenyn */
.sidebar-search .sidebar-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: #ffffff;
  border: 1px solid #d6cbb8;
  border-radius: 6px;
  outline: none;
 
}

.sidebar-search .sidebar-search-input:focus {
  border-color: #7c6332;
  box-shadow: 0 0 0 2px rgba(124, 99, 50, 0.15);
}

.sidebar-search-results {
  margin-top: 10px;
}

.sidebar-search .search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-search .search-results-list li {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  line-height: 1.35;
}

.sidebar-search .search-results-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-search .search-results-list a {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.sidebar-search .search-results-list a:hover {
  text-decoration: underline;
}

.sidebar-search .search-result-cat {
  display: block;
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 2px;
}

.sidebar-search .search-empty {
  font-size: 0.88rem;
  opacity: 0.75;
  padding-top: 4px;
}




/* Nyhetsbrev i sidomenyn */
.newsletter-box {
  margin-top: 20px;
}

/* I v2 har .sidebar-box padding: 8px; ge nyhetsbrevet luftig kortpadding */
.sidebar-box.newsletter-box {
  padding: 24px;
}

.newsletter-intro {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.newsletter-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.newsletter-field input {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.btn-newsletter {
  width: 100%;
  margin-top: 2px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-newsletter:hover {
  opacity: 0.92;
}

.btn-newsletter:active {
  transform: translateY(1px);
}