/* ===== SHARED ARTICLE STYLES ===== */

.article-hero {
  padding: 140px 32px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}

.back-link:hover { opacity: 0.7; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.article-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: 6px;
}

.article-time {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.article-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.article-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
}

/* Section divider */
.section-divider {
  max-width: 800px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.article-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.article-section:last-child {
  border-bottom: none;
}

.article-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.article-section p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section p strong {
  color: var(--text-primary);
}

.article-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
  transition: border-color 0.2s;
}

.article-section a:hover {
  border-color: var(--accent);
}

.article-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.article-section ul li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}

.article-section ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.article-section ul li strong {
  color: var(--text-primary);
}

/* Stat callout (reused from why-track) */
.stat-callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 24px 0;
}

.stat-callout-number {
  font-family: 'Space Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-callout-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.stat-callout-text strong {
  color: var(--text-primary);
}

/* Pin diagram (text-based) */
.pin-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 24px 0;
  text-align: center;
}

.pin-diagram pre {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pin-diagram .pin-diagram-caption {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Definition list style */
.term-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.term-item {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.term-item dt {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.term-item dd {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Next article */
.article-next {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.article-next-inner {
  padding: 48px 0;
}

.article-next-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}

.article-next-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-next-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.article-next-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.article-next-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-next-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* All articles link */
.article-back-all {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.article-back-all a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.article-back-all a:hover { opacity: 0.7; }

@media (max-width: 768px) {
  .article-hero { padding: 120px 20px 40px; }
  .article-content { padding: 0 20px; }
  .article-section { padding: 36px 0; }
  .article-next { padding: 0 20px; }
  .article-back-all { padding: 0 20px 36px; }
  .pin-diagram pre { font-size: 14px; }
}
