/* News-specifika styles (utöver inline styles) */

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-body code {
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875em;
}

.article-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.article-body th,
.article-body td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.article-body th {
  background: #f8fafc;
  font-weight: 600;
}

.article-body tr:hover {
  background: #f8fafc;
}

/* Responsive embeds (YouTube etc) */
.article-body iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Print styles */
@media print {
  .news-sidebar,
  .navbar,
  footer,
  .breadcrumbs,
  .article-tags {
    display: none !important;
  }
  
  .article-body {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .article-body a {
    text-decoration: none;
    color: #000;
  }
  
  .article-body a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}


   /* Inline kritiska styles för artikelvyn */
   .article-hero {
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      padding: 3rem 0 2rem;
      margin-bottom: 2rem;
   }
   
   .article-meta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      align-items: center;
      color: #64748b;
      font-size: 0.875rem;
      margin-bottom: 1.5rem;
   }
   
   .article-body {
      font-size: 1.0625rem;
      line-height: 1.75;
      color: #1e293b;
   }
   
   .article-body h2 {
      margin-top: 2.5rem;
      margin-bottom: 1rem;
      font-size: 1.75rem;
      font-weight: 700;
      color: #0f172a;
   }
   
   .article-body h3 {
      margin-top: 2rem;
      margin-bottom: 0.875rem;
      font-size: 1.375rem;
      font-weight: 600;
      color: #0f172a;
   }
   
   .article-body p {
      color: var(--clr-copy);
      margin-bottom: 1.25rem;
   }

   p {
      color: var(--clr-copy);

   }
   
   .article-body ul, .article-body ol {
      margin: 1.5rem 0;
      padding-left: 1.5rem;
   }
   
   .article-body li {
      margin-bottom: 0.5rem;
   }
   
   .article-body blockquote {
      border-left: 4px solid #3b82f6;
      padding-left: 1.5rem;
      margin: 2rem 0;
      font-style: italic;
      color: #475569;
   }
   
   .article-body a {
      color: #3b82f6;
      text-decoration: underline;
      text-underline-offset: 2px;
   }
   
   .article-body a:hover {
      color: #2563eb;
   }
   
   .article-image {
      width: 100%;
      height: auto;
      border-radius: 12px;
      margin: 2rem 0;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
   }
   
   .news-sidebar {
      position: sticky;
      top: 120px;
      max-height: calc(100vh - 140px);
      overflow-y: auto;
      padding-right: 0.5rem;
   }
   
   .news-sidebar::-webkit-scrollbar {
      width: 6px;
   }
   
   .news-sidebar::-webkit-scrollbar-track {
      background: transparent;
   }
   
   .news-sidebar::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 3px;
   }
   
   .news-sidebar::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
   }
   
   .news-list-item {
      display: block;
      padding: 1rem;
      margin-bottom: 0.5rem;
      border-radius: 8px;
      text-decoration: none;
      transition: all 0.2s ease;
      border: 1px solid transparent;
   }
   
   .news-list-item:hover {
      background: #f1f5f9;
      border-color: #e2e8f0;
      transform: translateX(4px);
   }
   
   .news-list-item.active {
      background: #eff6ff;
      border-color: #bfdbfe;
   }
   
   .news-item-date {
      font-size: 0.75rem;
      color: #64748b;
      margin-bottom: 0.25rem;
      display: block;
   }
   
   .news-item-title {
      font-size: 0.9375rem;
      font-weight: 600;
      color: #0f172a;
      line-height: 1.4;
      display: block;
   }
   
   .news-item-excerpt {
      font-size: 0.875rem;
      color: #64748b;
      margin-top: 0.25rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
   }
   
   .article-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 2rem 0;
   }
   
   .article-tag {
      padding: 0.375rem 0.875rem;
      background: #f1f5f9;
      color: #475569;
      border-radius: 999px;
      font-size: 0.875rem;
      text-decoration: none;
      transition: all 0.2s ease;
   }
   
   .article-tag:hover {
      background: #e2e8f0;
      color: #1e293b;
   }
   
   @media (max-width: 768px) {
      .news-sidebar {
         position: static;
         max-height: none;
         margin-bottom: 2rem;
         padding-right: 0;
      }
      
      .article-hero {
         padding: 2rem 0 1.5rem;
      }
      
      .article-body {
         font-size: 1rem;
      }
      
      .article-body h2 {
         font-size: 1.5rem;
      }
      
      .article-body h3 {
         font-size: 1.25rem;
      }
   }



   .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
   }
   .three-cols {
      grid-template-columns: repeat(3, 1fr);

   }
   .news-card {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      height: 100%;
   }
   
   .news-card:hover {
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      transform: translateY(-4px);
   }
   
   .news-card-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
   }
   
   .news-card-content {
      padding: 1.5rem;
      flex: 1;
      display: flex;
      flex-direction: column;
   }
   
   .news-card-date {
      font-size: 0.875rem;
      color: #64748b;
      margin-bottom: 0.5rem;
   }
   
   .news-card-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 0.75rem;
      line-height: 1.4;
   }
   
   .news-card-excerpt {
      font-size: 0.9375rem;
      color: #475569;
      line-height: 1.6;
      flex: 1;
   }
   
   .news-card-footer {
      padding: 0 1.5rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
   }
   
   .news-card-tags {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
   }
   
   .news-card-tag {
      font-size: 0.75rem;
      padding: 0.25rem 0.625rem;
      background: #f1f5f9;
      color: var(--clr-active);
      border-radius: 999px;
   }
   
   .news-card-readmore {
      font-size: 0.875rem;
      color:  var(--clr-active);
      font-weight: 600;
      text-decoration: none;
   }
   
   @media (max-width: 640px) {
      .news-grid {
         grid-template-columns: 1fr;
      }
   }
/* Fast layout: artikeln tar resten, sidomenyn har fast bredd – oberoende av innehåll/bild */
@media (min-width: 481px) {
   .side-content > article.step-section {
      flex: 1 1 0;
      min-width: 0;
   }

   .side-content > aside.news-sidebar {
      flex: 0 0 320px;
      width: 320px;
   }
}
