/* Article & glossary page styles — extends styles.css design tokens */

.article-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.article-wrap { max-width: 860px; }

.article-page h1 {
  font-size: var(--step-3);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.series-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
}
.series-label a { color: inherit; text-decoration: none; }
.series-label a:hover { text-decoration: underline; }

.article-byline {
  font-size: var(--step--1);
  opacity: 0.7;
  margin-bottom: 2rem;
}

.article-hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.term-short {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--pine);
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

.article-body h2 {
  font-size: var(--step-2);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.article-body h3 {
  font-size: var(--step-1);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  list-style: revert;
  margin: 0 0 1.25rem 1.4rem;
}
.article-body li { margin-bottom: 0.45rem; }
.article-body a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold-deep); }

.article-body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--dawn);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--pine);
}
.article-body blockquote p { margin: 0; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--step--1);
}
.article-body th {
  text-align: left;
  background: var(--sage);
  color: var(--pine);
  font-weight: 600;
  padding: 0.65rem 0.9rem;
}
.article-body td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}

/* Lite video embeds (thumbnail facade → click-to-load player) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}
/* Standalone (inline-placed) embeds must match the grid card width — without this a
   `{{video:N}}` figure stretches to the full article column and renders ~1500px tall. */
.lite-embed { max-width: 280px; margin: 2rem auto; }
.video-grid .lite-embed { max-width: none; margin: 0; }
.lite-embed-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  background: var(--sage);
  box-shadow: 0 18px 36px -20px rgba(31, 74, 67, 0.35);
}
.lite-embed-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease);
}
.lite-embed-btn:hover img { transform: scale(1.03); }
.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(31, 74, 67, 0.82);
  color: var(--ivory);
  box-shadow: 0 0 0 2px rgba(216, 154, 91, 0.7);
  transition: background 0.25s var(--ease);
  pointer-events: none;
}
.lite-embed-btn:hover .play-badge { background: var(--gold-deep); }
.play-badge svg { margin-left: 3px; }
.lite-embed iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: var(--radius-card);
  display: block;
  box-shadow: 0 18px 36px -20px rgba(31, 74, 67, 0.35);
}
.lite-embed figcaption {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  opacity: 0.8;
  text-align: center;
}
.lite-embed figcaption a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.series-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-weight: 500;
}
.series-nav a { text-decoration: none; color: var(--pine); }
.series-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.series-nav .series-next { margin-left: auto; }

.article-cta {
  margin-top: 2.5rem;
  background: var(--sage);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}
.article-cta p { margin-bottom: 1rem; }

.term-related, .term-readmore { margin-top: 2rem; }
.term-related h2, .term-readmore h2 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.term-related a, .term-readmore a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.term-readmore ul { list-style: none; margin: 0; padding: 0; }
.term-readmore li { margin-bottom: 0.35rem; }

/* index pages */
/* Index pages have intro prose outside .article-body, so it needs its own spacing */
.index-page > .wrap > p { margin-bottom: 1.1rem; max-width: 68ch; }
.index-page .series-block { margin-top: 2.5rem; }
.index-page .series-block h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.series-list { list-style: none; margin: 0; padding: 0; }
.series-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.series-list li > a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--pine);
  text-decoration: none;
}
.series-list li > a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.series-list li p { margin-top: 0.3rem; font-size: var(--step--1); opacity: 0.8; }
.card-thumb {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}
.part-no {
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-right: 0.5rem;
}

.glossary-letter { margin-top: 2rem; }
.glossary-letter h2 {
  font-size: var(--step-1);
  color: var(--gold-text);
  border-bottom: 2px solid var(--dawn);
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
}
.glossary-letter ul { list-style: none; margin: 0; padding: 0; }
.glossary-letter li { margin-bottom: 0.6rem; }
.glossary-letter li a {
  font-weight: 600;
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
