/* =========================================
   Article page styles
   ========================================= */

.article-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.article-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--red); }

/* ---- Article header ---- */
.article-header {
  margin-bottom: 28px;
}

.article-header .category-tag {
  margin-bottom: 14px;
  display: inline-block;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 18px;
}

.article-standfirst {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

/* ---- Byline ---- */
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.byline-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.byline-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.byline-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Share row ---- */
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.share-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s, border-color 0.15s;
  color: var(--text);
}
.share-btn:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }

.share-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.share-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.share-link:hover { color: var(--red); background: var(--red-light); }

/* ---- Hero image ---- */
.article-hero-img {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-img {
  width: 100%;
  height: 440px;
  background-size: cover;
  background-position: center;
}

figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--bg);
  font-style: italic;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* ---- Article body ---- */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 0.75em;
  color: var(--text);
  line-height: 1.3;
}

.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 800;
  float: left;
  line-height: 0.75;
  margin-right: 8px;
  margin-top: 8px;
  color: var(--red);
}

.article-blockquote {
  border-left: 4px solid var(--red);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.article-blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-muted);
}

.article-callout {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 2em 0;
  color: #78350f;
}

.article-signoff {
  border-top: 1px solid var(--border);
  padding-top: 1.4em;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Tags ---- */
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tag-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.article-tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.article-tag:hover {
  background: var(--red-light);
  color: var(--red-dark);
  border-color: var(--red);
}

/* ---- Author bio ---- */
.author-bio {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 36px;
  align-items: flex-start;
}

.author-bio-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.author-bio-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.author-bio-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.author-bio-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
}
.author-bio-link:hover { color: var(--red-dark); }

/* ---- Related articles ---- */
.related-articles {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .article-title { font-size: 1.9rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .related-grid > :last-child { display: none; }
}

@media (max-width: 600px) {
  .article-title { font-size: 1.5rem; }
  .article-standfirst { font-size: 1rem; }
  .article-img { height: 220px; }
  .article-body { font-size: 0.97rem; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid > :last-child { display: block; }
  .author-bio { flex-direction: column; }
}
