/* Layout */
.article-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Page header */
.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header .lede {
  font-size: 1.05rem;
  color: #4b5963;
  max-width: 780px;
}

/* Section blocks */
.info-section {
  background: rgba(255,255,255,0.94);
  padding: 22px;
  border-radius: 8px;
  margin: 22px 0;
  box-shadow: 0 2px 8px rgba(14,30,60,0.05);
  line-height: 1.65;
}

.info-section h2 {
  margin-top: 0;
  color: #2b3a42;
  font-size: 1.25rem;
}

.info-section h3 {
  margin: 12px 0;
  font-size: 1.05rem;
  color: #2b3a42;
}

.info-section ul,
.info-section ol {
  margin-left: 1.4rem;
  margin-top: 8px;
  margin-bottom: 10px;
}

/* Tables */
.reference-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.95rem;
}

.reference-table th,
.reference-table td {
  border: 1px solid rgba(0,0,0,0.07);
  padding: 10px 12px;
}

.reference-table th {
  background: var(--bg-secondary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .article-container {
    padding: 12px;
  }
}

/* ARTICLE NAVIGATION (bottom prev/next) */

.article-nav {
  margin: 40px 0 20px;
  padding: 16px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(12, 30, 70, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-nav a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-nav a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.article-nav span {
  visibility: hidden;
  pointer-events: none;
}

/* Mobile stacking */
@media (max-width: 600px) {
  .article-nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* =============================
   RELATED ARTICLES BLOCK
============================= */

#related-articles {
  margin-top: 40px;
  padding: 20px 0;
}

#related-articles h2 {
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: #2b3a42;
}

/* List container */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Each card */
.related-card {
  background: #fff;
  padding: 16px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(12,30,60,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease;
}

.related-card:hover {
  transform: translateY(-2px);
}

/* Title */
.related-card .r-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

/* Excerpt */
.related-card .r-excerpt {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.45;
}

/* Cluster badge */
.related-card .badge {
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #444;
  margin-top: 4px;
}

/* Show more button */
.related-show-more {
  margin-top: 18px;
  padding: 10px 18px;
  border: none;
  background: var(--primary-color);
  font-family: inherit;
  color: white;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}

.related-show-more:hover {
  opacity: 0.9;
}

.related-card.hidden {
  display: none;
}


