/* Article guides and links shared with the home page. */
.article-section { background: var(--off-white); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.3vw, 1.5rem);
}
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.article-card-link { display: block; height: 100%; border-radius: inherit; }
.article-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.article-card-copy { display: grid; gap: 0.4rem; padding: 1.15rem 1.25rem 1.3rem; }
.article-card-copy h2, .article-card-copy h3 {
  color: var(--text-dark);
  font: 700 1.15rem/1.45 var(--font-heading);
}
.article-card-copy p { color: var(--text-muted); font-size: 0.975rem; }
.article-card-link:hover :is(h2, h3) { color: var(--primary); text-decoration: underline; text-underline-offset: 0.16em; }
.article-section-actions { display: flex; justify-content: center; margin-top: 1.5rem; }
.article-image-credits { text-align: center; color: var(--text-muted); margin-top: 0.8rem; font-size: 0.875rem; }
.article-image-credits a { text-decoration: underline; text-underline-offset: 0.15em; }
.article-header-actions { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }
.article-header-actions .theme-toggle-btn {
  min-width: 44px;
  justify-content: center;
  color: var(--text-dark);
  border-color: var(--border);
  font-size: 1.075rem;
}
.article-header-actions .theme-toggle-btn:hover { background: var(--primary-light); }
.article-header-actions .hamburger { font-size: 0.9375rem; }

.article-page { padding-block: clamp(1.5rem, 4.5vw, 3rem) clamp(3rem, 6vw, 5rem); }
.breadcrumbs { margin-bottom: clamp(1.2rem, 3vw, 2.2rem); color: var(--text-muted); font-size: 0.9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; list-style: none; }
.breadcrumbs a { color: var(--primary); text-decoration: underline; text-underline-offset: 0.14em; }
.breadcrumbs li:not(:first-child)::before { content: "/"; margin-inline-end: 0.5rem; color: var(--text-muted); }
.article-index-header { max-width: 45rem; margin-bottom: clamp(1.5rem, 3.5vw, 2.6rem); }
.article-index-header h1, .article-header h1 {
  color: var(--text-dark);
  font: 700 clamp(1.85rem, 4vw, 3.05rem)/1.3 var(--font-heading);
  margin-bottom: 0.9rem;
}
.article-intro { color: var(--text-body); font-size: clamp(1.06rem, 2vw, 1.18rem); line-height: 1.7; }
.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.25rem);
  padding-bottom: clamp(1.75rem, 4.2vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.article-byline { margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.article-byline a { color: var(--primary); text-decoration: underline; text-underline-offset: 0.15em; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.article-cover figcaption { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.875rem; }
.article-cover a { text-decoration: underline; text-underline-offset: 0.14em; }
.article-reading { max-width: 46rem; margin-inline: auto; }
.article-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-block: 1.7rem;
}
.article-toc > p { color: var(--text-dark); font-weight: 700; margin-bottom: 0.4rem; }
.article-toc ol { padding-inline-start: 1.35rem; }
.article-toc li + li { margin-top: 0.3rem; }
.article-toc a, .article-prose a, .photo-credits a { color: var(--primary); text-decoration: underline; text-underline-offset: 0.18em; }
.article-prose { font-size: 1.075rem; line-height: 1.82; }
.article-prose h2, .article-prose h3, .article-related h2, .article-cta h2, .photo-credits h2 {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.45;
}
.article-prose h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-block: 1.95rem 0.55rem; }
.article-prose h3 { font-size: 1.155rem; margin-block: 0.95rem 0.35rem; }
.article-prose p + p { margin-top: 0.7rem; }
.article-prose :is(ol, ul) { padding-inline-start: 1.45rem; margin-block: 0.65rem; }
.article-prose ul, .photo-credits ul { list-style: disc; }
.article-prose li + li, .photo-credits li + li { margin-top: 0.38rem; }
.article-cta {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 3vw, 1.8rem);
  margin-block: clamp(1.75rem, 4vw, 2.5rem);
}
.article-cta h2, .article-related h2, .photo-credits h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.article-cta-buttons { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.8rem; }
.article-related { border-top: 1px solid var(--border); padding-top: 1.4rem; }
.article-related ul { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.75rem; }
.article-related a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
}
.article-related a:hover { border-color: var(--primary); }
.photo-credits { margin-top: 2.5rem; color: var(--text-muted); font-size: 0.95rem; }
.photo-credits ul { padding-inline-start: 1.2rem; }
.article-footer { padding-block: 1.6rem; }
.article-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.2rem; }
.article-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 0.16em; }
.article-footer a:hover { text-decoration: underline; }
.article-footer-links { display: flex; flex-wrap: wrap; column-gap: 1rem; }
@media (max-width: 48rem) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-header { grid-template-columns: minmax(0, 1fr); }
  .article-cover img { aspect-ratio: 16 / 10; }
}
@media (max-width: 33rem) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-cover img { border-radius: var(--radius-md); }
  .article-cta-buttons .btn { flex: 1 1 auto; }
  .article-header-actions { gap: 0.3rem; }
}
