/* ARTICLE READER STYLESHEET */
.article-wrapper {
  max-width: 860px;
  margin: 2.5rem auto 5rem;
  padding: 0 1.5rem;
}

.back-home-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

.back-home-link:hover {
  color: #fff;
}

.article-meta-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.article-tags {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.read-pill, .date-pill {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.article-prose {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-prose h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.5rem;
}

.article-prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.article-prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-prose p {
  margin-bottom: 1.4rem;
}

.article-prose blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.05);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #e2e8f0;
}

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

.article-prose ul, .article-prose ol {
  margin: 1rem 0 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-prose li {
  line-height: 1.6;
}

.article-prose pre {
  background: #040507;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 1.75rem 0;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.article-prose th, .article-prose td {
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-prose th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.article-prose td {
  background: rgba(0, 0, 0, 0.2);
}

/* External Clickable Source Links */
.external-source-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s, text-shadow 0.2s;
  font-weight: 500;
}

.external-source-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.back-btn, .library-btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.library-btn {
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.library-btn:hover {
  background: var(--gold);
  color: #07090c;
  font-weight: 700;
}
