/* Article page styles */

.article-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a6b 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.article-breadcrumb {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}
.article-breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.article-breadcrumb a:hover { text-decoration: underline; }

.article-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 800;
}

.article-lead {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 70ch;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.8rem;
  opacity: 0.65;
}

.article-ad {
  margin: 1.5rem 0;
}

.ad-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Two-column layout */
.article-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .article-main {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: -1;
  }
}

/* Article body */
.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--border);
}

.article-body h2:first-of-type {
  border-top: none;
  margin-top: 0.5rem;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.article-body li {
  margin-bottom: 0.4rem;
}

/* CTA boxes */
.cta-box {
  background: #eef4ff;
  border: 1.5px solid #b8cef7;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

.cta-box--accent {
  background: #fff8e6;
  border-color: #f5c842;
}

.cta-box .btn-sm {
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Warning box */
.warning-box {
  background: #fff3cd;
  border: 1.5px solid #ffc107;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Disclaimer */
.disclaimer-box {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Tables */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.5rem;
  font-size: 0.88rem;
}

.article-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
}

.article-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.article-table tr:nth-child(even) td {
  background: #f9f9fb;
}

/* FAQ accordions */
.article-faq {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.article-faq summary {
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  background: #f7f8fa;
  line-height: 1.4;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-faq summary::before {
  content: "▶";
  font-size: 0.65rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.article-faq[open] summary::before {
  transform: rotate(90deg);
}

.article-faq p {
  padding: 0.9rem 1.1rem 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  background: #fff;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 1rem;
}

.sidebar-widget {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
}

.sidebar-widget h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.sidebar-widget p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0;
}

.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.4;
}

.sidebar-links a:hover { text-decoration: underline; }

.sidebar-affiliate { background: #f0f7ff; border-color: #b8cef7; }

.affiliate-disclaimer {
  font-size: 0.7rem !important;
  color: #aaa !important;
  margin-top: 0.4rem !important;
  margin-bottom: 0 !important;
  text-align: center;
}
