/* Single article view */

.article-state {
  min-height: 50vh;
  padding: var(--space-12) 0;
}

.article-skeleton {
  max-width: 760px;
  margin-inline: auto;
}

.sk {
  background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 37%, #eef2f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.sk-badge { width: 96px; height: 24px; }
.sk-title { width: 92%; height: 36px; }
.sk-meta { width: 60%; height: 18px; }
.sk-hero { width: 100%; height: 280px; border-radius: 16px; }
.sk-line { width: 100%; height: 14px; }
.sk-line.short { width: 70%; }

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.article-top {
  background:
    linear-gradient(115deg, rgba(0, 77, 39, 0.96), rgba(0, 122, 61, 0.82));
  color: #fff;
  padding: var(--space-10) 0 var(--space-8);
}

.article-top .breadcrumb,
.article-top .breadcrumb a,
.article-top .breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}

.article-top-inner {
  max-width: 860px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.article-meta-row .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.article-top h1 {
  color: #fff !important;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  max-width: 40rem;
  margin: 0 0 0.85rem;
}

.article-deck {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 40rem;
}

.article-top .article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-top .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.article-top .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.article-main {
  padding-top: var(--space-8);
}

.article-featured {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--gray-100);
  aspect-ratio: 21 / 10;
}

.article-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-prose {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-xs);
}

.article-prose p {
  margin: 0 0 1.1rem;
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.15rem !important;
  line-height: 1.45;
}

.article-prose img,
.article-prose figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 12px;
}

.article-prose figure img {
  margin: 0;
}

.article-prose figcaption,
.article-prose .wp-caption-text {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.1rem;
  padding-inline-start: 1.25rem;
  list-style: disc;
  color: var(--gray-700);
  line-height: 1.8;
}

.article-prose a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-prose iframe,
.article-prose video {
  max-width: 100%;
  border-radius: 12px;
}

.article-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.related-block {
  margin-top: 0.5rem;
}

.related-block h2 {
  font-size: 1.15rem !important;
  margin-bottom: 1rem;
}

.related-block .card h3 {
  font-size: 0.92rem !important;
}

.article-sidebar .widget ul li {
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .article-featured {
    aspect-ratio: 16 / 10;
  }
}

@media print {
  .top-bar,
  .site-header,
  .site-footer,
  .article-tools,
  .article-sidebar,
  .related-block,
  .article-end {
    display: none !important;
  }
  .article-top {
    background: none;
    color: #000;
    padding: 0;
  }
  .article-top h1,
  .article-deck,
  .breadcrumb,
  .breadcrumb a {
    color: #000 !important;
  }
  .article-prose {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .layout-sidebar {
    display: block;
  }
}
