/* ============================================
   Article Page – Badtilbud.no
   ============================================ */

#article-hero {
  background: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 0;
  border-bottom: 1px solid var(--border);
}
.article-hero-inner {
  max-width: 760px;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.2s;
}
.article-breadcrumb a:hover { opacity: 0.75; }
.article-breadcrumb span { color: var(--gray-400); }
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50);
  padding: 0.25rem 0.875rem;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.article-hero-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.article-hero-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.article-meta-item strong { color: var(--text-secondary); font-weight: 600; }
.author-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-50);
  flex-shrink: 0;
}

/* Hero image */
.article-hero-img-wrap {
  margin-top: 2.5rem;
}
.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--gray-200);
  display: block;
}

/* Article layout */
#article-body {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg);
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: flex-start;
}

/* Article content */
.article-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.article-content h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.article-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.article-content ul,
.article-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.625rem;
}
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a:hover { opacity: 0.8; }
.article-content img {
  width: 100%;
  border-radius: var(--r-md);
  margin: 1.5rem 0;
}

/* ── Responsive article tables ─────────────────────────────────── */
.article-table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.article-table-wrap th {
  background: var(--primary);
  color: #fff;
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}
.article-table-wrap td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.55;
}
.article-table-wrap tr:last-child td { border-bottom: none; }
.article-table-wrap tr:nth-child(even) td { background: var(--gray-50); }
.article-table-wrap td:first-child { font-weight: 600; color: var(--text); }

/* Mobile: stacked card layout */
@media (max-width: 600px) {
  .article-table-wrap {
    border: none;
    background: transparent;
  }
  .article-table-wrap thead { display: none; }
  .article-table-wrap table,
  .article-table-wrap tbody,
  .article-table-wrap tr,
  .article-table-wrap td { display: block; width: 100%; }
  .article-table-wrap tr {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
  }
  .article-table-wrap tr:nth-child(even) td { background: #fff; }
  .article-table-wrap td {
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 1rem;
  }
  .article-table-wrap td:last-child { border-bottom: none; }
  .article-table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
  }
}

/* ── Checklist ──────────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:nth-child(even) { background: var(--gray-50); }
.checklist-box {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--border);
  border-radius: 3px;
  margin-top: 0.2rem;
}
.checklist-text strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.checklist-text span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.price-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
}
.price-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--gray-50); }
.price-table td:last-child { font-weight: 700; color: var(--text); }

/* Mobile: price-table stacked layout */
@media (max-width: 600px) {
  .price-table thead { display: none; }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td { display: block; width: 100%; }
  .price-table tr {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
  }
  .price-table tr:nth-child(even) td { background: #fff; }
  .price-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 1rem;
  }
  .price-table td:last-child { border-bottom: none; }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
  }
}

/* Highlight box */
.article-highlight {
  background: var(--primary-50);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.article-highlight p { color: var(--text); margin-bottom: 0; }

/* Inline CTA */
.article-cta-inline {
  background: var(--primary);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  text-align: center;
  margin: 2.5rem 0;
}
.article-cta-inline h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.625rem;
}
.article-cta-inline p {
  color: rgba(255,255,255,0.80);
  margin-bottom: 1.25rem;
}
.article-cta-inline .btn-white { background: #fff; color: var(--primary); }

/* Sidebar */
.article-sidebar { }
.article-sidebar .sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 88px;
}
.article-sidebar .sidebar-widget-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-cta-card {
  background: var(--primary);
  border: none;
}
.sidebar-cta-card .sidebar-widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.15);
}
.sidebar-cta-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.sidebar-cta-card .btn {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.toc-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.toc-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.toc-list a:hover { color: var(--primary); }
.toc-list li:last-child a { border-bottom: none; }

/* Article footer */
.article-footer-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.article-footer-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.article-footer-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}
.article-footer-nav-next { text-align: right; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .article-sidebar .sidebar-widget { position: static; }
}
@media (max-width: 600px) {
  .article-hero-img { height: 260px; }
  .article-sidebar { grid-template-columns: 1fr; }
}
