/* ===========================
   ARTIKEL-LAYOUT
=========================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--border);
}

/* ===========================
   ARTIKEL-HEADER
=========================== */
.article-header {
  margin-bottom: 32px;
}

.article-header .article-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.article-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===========================
   INNEHÅLLSFÖRTECKNING MOBIL
=========================== */
.toc-mobile {
  display: none;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.toc-mobile details summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-soft);
  user-select: none;
}

.toc-mobile ol {
  padding: 16px 18px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: decimal;
}

.toc-mobile ol a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.toc-mobile ol a:hover {
  color: var(--accent);
}

/* ===========================
   AFFILIATE NOTICE
=========================== */
.affiliate-notice {
  background: #fff8f0;
  border: 1px solid #fde4c8;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: #92400e;
  margin: 24px 0;
  line-height: 1.6;
}

/* ===========================
   ARTIKEL-BODY TYPOGRAFI
=========================== */
.article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 56px 0 20px;
  line-height: 1.3;
  scroll-margin-top: 80px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.article-body p {
  margin-bottom: 24px;
  max-width: 64ch;
}

.article-body ol,
.article-body ul {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body ol {
  list-style: decimal;
}

.article-body ul {
  list-style: disc;
}

.article-body strong {
  font-weight: 600;
}

/* ===========================
   VERSUS BLOCK
=========================== */
.versus-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.versus-col {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-soft);
}

.versus-col ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.versus-col ul li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.versus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.versus-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
}

.versus-label.win {
  background: #dcfce7;
  color: #166534;
}

.versus-label.lose {
  background: #fee2e2;
  color: #991b1b;
}

/* ===========================
   CALLOUTS
=========================== */
.callout {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.callout-tip {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #14532d;
}

.callout-example {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e3a5f;
}

/* ===========================
   JÄMFÖRELSETABELL
=========================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.comparison-table th {
  background: var(--bg-soft);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
}

.comparison-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  line-height: 1.5;
}

.comparison-table tr:hover td {
  background: var(--bg-soft);
}

/* ===========================
   AFFILIATE CTA (inline)
=========================== */
.affiliate-cta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.affiliate-cta-text strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.affiliate-cta-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.affiliate-cta-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ===========================
   LEVERANTÖRSKORT
=========================== */
.provider-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.provider-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.provider-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-name {
  font-size: 18px;
  font-weight: 700;
}

.provider-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.provider-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.provider-pros {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  margin: 0 !important;
  list-style: none !important;
}

.provider-pros li {
  font-size: 13px;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* ===========================
   STEG-LISTA
=========================== */
.step-list {
  list-style: none !important;
  margin: 0 !important;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px !important;
}

.step-list li {
  counter-increment: steps;
  padding: 18px 20px 18px 56px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  position: relative;
  font-size: 15px;
  line-height: 1.6;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ===========================
   FAQ
=========================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.faq-item summary:hover {
  background: var(--bg-soft);
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ===========================
   SLUT-CTA
=========================== */
.article-end-cta {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  margin: 48px 0;
  text-align: center;
}

.article-end-cta h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.article-end-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-bottom: 24px;
}

.end-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-end-cta .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.article-end-cta .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.disclaimer {
  font-size: 12px !important;
  color: rgba(255,255,255,0.35) !important;
  margin: 0 !important;
}

/* ===========================
   RELATERADE ARTIKLAR
=========================== */
.related-articles {
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.related-card h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

/* ===========================
   SIDEBAR
=========================== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sticky-sidebar {
  position: sticky;
  top: 84px;
}

.toc-desktop {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
}

.toc-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1.4;
}

.toc-list a::before {
  content: counter(toc);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  width: 14px;
}

.toc-list a:hover {
  color: var(--text);
  background: var(--border);
}

.sidebar-cta {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-cta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0;
}

.sidebar-cta-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.sidebar-cta-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}

/* ===========================
   COVERAGE GRID
=========================== */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.coverage-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.coverage-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.coverage-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.coverage-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   RESPONSIV
=========================== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .toc-desktop,
  .sticky-sidebar {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .article-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .provider-cards {
    grid-template-columns: 1fr;
  }

  .affiliate-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .affiliate-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .affiliate-cta-buttons .btn {
    text-align: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 12px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
  }
}
