/* =============================================
   ARTICLE.CSS — Article Detail Page
   ============================================= */

.article-page { padding: 36px 0 80px; }

.article-nav {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 32px;
}

/* ─── Layout ─── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px; align-items: start;
}

/* ─── Main content ─── */
.article-main { min-width: 0; }
.article-header { margin-bottom: 28px; }
.article-header-meta {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.article-date { font-size: .78rem; color: var(--text-muted); }

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 700; color: var(--text);
  line-height: 1.4; margin-bottom: 18px;
  animation: fadeInUp .4s var(--ease) both;
}
.article-tags { margin-top: 4px; }

/* ─── Summary highlight block ─── */
.article-summary-block {
  background: linear-gradient(100deg, #e8f7fb, #f0feff);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin-bottom: 28px;
  animation: fadeInUp .4s var(--ease) .05s both;
}
.article-summary-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 7px;
}
.article-summary-text {
  font-size: .93rem; color: var(--text); line-height: 1.75;
}

/* ─── Article image ─── */
.article-image-block {
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 30px; box-shadow: var(--shadow-md);
  animation: fadeInUp .4s var(--ease) .1s both;
}
.article-image-block .safe-img-wrap { height: 300px; }

/* ─── Article body text ─── */
.article-content {
  font-size: .95rem; line-height: 1.85;
  color: var(--text);
  animation: fadeInUp .4s var(--ease) .15s both;
}
.article-content p { margin-bottom: 1.1em; }
.article-content p:last-child { margin-bottom: 0; }
.article-content strong { color: var(--navy); font-weight: 600; }
.article-content em { color: var(--teal-dark); }

/* ─── Sidebar ─── */
.article-sidebar {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 18px;
}
.sidebar-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeInUp .4s var(--ease) .1s both;
}
.sidebar-card-header {
  padding: 14px 20px;
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.sidebar-card-body {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.info-row { display: flex; flex-direction: column; gap: 3px; }
.info-label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
}
.info-value { font-size: .88rem; color: var(--text); }
.info-value a { word-break: break-all; }
.sidebar-divider { height: 1px; background: var(--border); }
.sidebar-actions {
  display: flex; flex-direction: column;
  gap: 10px; padding: 16px 20px;
}

/* ─── PDF viewer ─── */
.pdf-section { margin-top: 44px; }
.pdf-section-title {
  font-family: var(--font-serif); font-size: 1.1rem;
  font-weight: 700; color: var(--text);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.pdf-viewer {
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.pdf-viewer iframe { display: block; width: 100%; height: 620px; border: none; }
.pdf-unavailable {
  padding: 52px 24px; text-align: center; color: var(--text-muted);
}
.pdf-unavailable p { margin-bottom: 18px; font-size: .9rem; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .pdf-viewer iframe { height: 420px; }
}
@media (max-width: 640px) {
  .article-page { padding: 20px 0 60px; }
  .article-title { font-size: 1.35rem; }
  .article-image-block .safe-img-wrap { height: 220px; }
}
