/* ===================================================================
   SkyLinX.click - Article & Editorial Layout Stylesheet
   Designed for SEO, Deep Reading & Rich Micro-Interactions
   =================================================================== */

.article-header-section {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--organic-border);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--organic-green-hover);
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.article-meta-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.article-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.article-summary-lead {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-left: 4px solid var(--organic-green);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.article-info-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-info-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Article Content Layout */
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 50px 0 80px;
  align-items: start;
}

/* Sticky Sidebar / Table of Contents */
.article-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--organic-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  font-size: 0.88rem;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.toc-list a:hover {
  background: var(--organic-green-light);
  color: var(--organic-green-hover);
}

.sidebar-cta-widget {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--organic-border-subtle);
  text-align: center;
}

.sidebar-cta-widget p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Core Editorial Prose */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2D3135;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 44px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--organic-border);
  position: relative;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--organic-green);
}

.article-content h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 14px;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.article-content strong {
  color: #111417;
  font-weight: 700;
}

/* Callout Blocks */
.content-callout {
  background: var(--bg-secondary);
  border-left: 4px solid var(--organic-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.96rem;
}

.content-callout.warning {
  border-left-color: #EAB308;
  background: #FEF9C3;
}

.content-callout-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Comparative Tables */
.article-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--organic-border);
  box-shadow: var(--shadow-sm);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #FFFFFF;
  text-align: left;
}

.article-table th {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--organic-border);
}

.article-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--organic-border-subtle);
  color: var(--text-secondary);
}

.article-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Article Internal Linking Showcase Box */
.internal-links-box {
  background: var(--bg-subtle);
  border: 1px solid var(--organic-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 44px 0;
}

.internal-links-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.internal-link-card {
  background: #FFFFFF;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--organic-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-fast);
}

.internal-link-card:hover {
  border-color: var(--organic-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.internal-link-card span.cat {
  font-size: 0.72rem;
  color: var(--organic-green-hover);
  font-weight: 700;
}

.internal-link-card span.title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* In-Article FAQ Section */
.article-faq-section {
  margin: 50px 0;
  padding-top: 36px;
  border-top: 2px dashed var(--organic-border);
}

.article-faq-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    margin-bottom: 30px;
  }
  .internal-links-grid {
    grid-template-columns: 1fr;
  }
}
