/* === ARTICLE PAGE — mobile-first === */
.article-page {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.article-back {
  display: inline-block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 16px;
  padding: 14px 0;
  min-height: 44px;
  line-height: 1;
}
.article-back:hover { text-decoration: underline; }

.article-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.article-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 8px 0 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-byline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--mid-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 20px;
  line-height: 1.4;
}
.article-byline > span,
.article-byline > a { display: block; }
.byline-author strong { color: var(--ink); font-weight: 600; }
.byline-source {
  color: var(--type-source);
  font-weight: 600;
  text-decoration: none;
}
.byline-source:hover { text-decoration: underline; }
.byline-date { color: var(--mid-gray); }
.byline-reading { color: var(--dark-gray); }

.article-hero {
  margin: 0 0 20px;
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.article-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.article-body p { margin: 0 0 1.1em; }
.article-lead {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 1.3em;
}
.article-cta-line { margin-top: 1.4em; }
.article-source-cta {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--red);
  min-height: 44px;
  min-width: 44px;
}
.article-source-cta:hover { background: var(--red); color: var(--white); }

.article-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0 24px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.article-footer .share-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.article-footer .share-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  color: var(--dark-gray);
}
.article-footer .share-btn:hover { border-color: var(--red); color: var(--red); }

.share-group--article {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 0 16px;
}
.article-share-label {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--mid-gray);
  letter-spacing: 0.04em;
}
.share-group--article .share-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  color: var(--ink);
}
.share-group--article .share-btn:hover { border-color: var(--red); color: var(--red); }
.share-group--article .share-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.article-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}
.article-related .section-header { padding: 0 0 18px; }
.article-related .section-rule { display: none; }

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
.related-card { padding: 16px 18px; }
.related-card-link { text-decoration: none; color: inherit; display: block; }
.related-card-link:hover .card-headline { color: var(--red); }

@media (min-width: 640px) {
  .article-page {
    padding: 32px 32px 56px;
    max-width: 720px;
  }
  .article-back {
    margin-bottom: 24px;
    font-size: 0.8rem;
  }
  .article-headline {
    margin: 12px 0 20px;
  }
  .article-body {
    font-size: 1.0625rem;
    max-width: 65ch;
    margin: 0 auto;
  }
  .article-byline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 8px;
    align-items: baseline;
  }
  .article-byline > span,
  .article-byline > a { display: inline; }
  .article-byline > * + *::before {
    content: '·';
    margin-right: 8px;
    color: var(--border);
  }
  .article-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .related-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 50;
  pointer-events: none;
}
.read-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 80ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .read-progress-fill { transition: none; }
}
