/* ═══════════════════════════════════
   ARTICLE PAGES — generated news & blog posts
   (automation/templates/article.html)
═══════════════════════════════════ */
.page-hero.compact { min-height: 62vh; }
.page-hero.compact h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 960px; }
.page-hero .hero-event {
  margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
}

#pgbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 9999;
  background: linear-gradient(90deg, #e41e20, #ff6b35);
  transition: width 0.1s linear;
}

.article-meta {
  max-width: 820px; margin: 0 auto 32px; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--c-text-light);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.article-meta a { color: var(--c-terra-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-meta .sep { margin: 0 6px; opacity: 0.5; }

.article-body {
  max-width: 820px; margin: 0 auto; padding: 0 20px 60px;
  font-size: 17px; line-height: 1.8; color: #2d2d2d;
}
.article-body h2 { font-size: 1.7rem; line-height: 1.25; margin: 44px 0 16px; color: #1a1a2e; font-weight: 700; }
.article-body h3 { font-size: 1.25rem; margin: 30px 0 12px; color: #1a1a2e; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--c-terra); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--c-terra); color: var(--c-text-muted); font-style: italic;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.article-body th { background: #1a1a2e; color: #fff; text-align: left; font-weight: 600; padding: 12px 14px; }
.article-body td { padding: 11px 14px; border-bottom: 1px solid #eee; }
.article-body tbody tr:nth-child(even) { background: #f8f9fa; }

.cat-badge {
  display: inline-block; padding: 4px 12px; border-radius: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
}
.cat-tourism    { background: var(--c-sea); }
.cat-investment { background: var(--c-gold); }
.cat-realestate { background: #7b5ea7; }
.cat-culture    { background: var(--c-terra); }
.cat-visa       { background: #3a8f6e; }
.cat-society    { background: #4a5568; }

.key-points {
  background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: 8px;
  padding: 22px 26px; margin: 0 0 32px;
}
.key-points h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-terra); margin: 0 0 10px; }
.key-points ul { margin: 0; }
.key-points li { margin-bottom: 6px; }

.why-it-matters {
  background: #f3f7f9; border-left: 4px solid var(--c-sea); border-radius: 0 8px 8px 0;
  padding: 20px 26px; margin: 36px 0;
}
.why-it-matters h2 { font-size: 1.15rem; margin: 0 0 10px; }
.why-it-matters p:last-child { margin-bottom: 0; }

.faq-section { margin: 48px 0; }
.faq-section .faq-item { border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-section .faq-item summary {
  padding: 18px 20px; font-weight: 600; cursor: pointer; font-size: 16px;
  background: #f9f9fb; list-style: none;
}
.faq-section .faq-item summary::-webkit-details-marker { display: none; }
.faq-section .faq-item summary::before { content: "+"; margin-right: 12px; font-weight: 700; color: var(--c-terra); }
.faq-section .faq-item[open] summary::before { content: "\2212"; }
.faq-section .faq-answer { padding: 16px 20px 20px; font-size: 15px; line-height: 1.7; color: #444; }

.sources {
  margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--c-border);
  font-size: 14px; line-height: 1.6; color: var(--c-text-muted);
}
.sources h2 { font-size: 1rem; margin: 0 0 10px; color: var(--c-text); }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--c-text-muted); word-break: break-word; }

.related-articles { margin: 48px 0 0; padding-top: 36px; border-top: 2px solid #eee; }
.related-articles h2 { margin: 0 0 20px; font-size: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.related-card {
  border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px;
  text-decoration: none !important; color: inherit !important; transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.related-card .related-kicker { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-light); }
.related-card h3 { font-size: 1rem; line-height: 1.35; margin: 6px 0 8px; color: #1a1a2e; }
.related-card p { font-size: 14px; color: #666; margin: 0; line-height: 1.5; }

.editorial-box {
  display: flex; gap: 20px; align-items: flex-start;
  max-width: 820px; margin: 0 auto 60px; padding: 26px;
  background: #faf9f6; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px;
}
.editorial-box .avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-terra); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.editorial-box strong { display: block; font-size: 16px; margin-bottom: 4px; }
.editorial-box p { font-size: 14px; line-height: 1.6; color: #666; margin: 0; }
.editorial-box a { color: var(--c-terra-dark); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 700px) {
  .page-hero.compact { min-height: 52vh; }
  .editorial-box { margin: 0 20px 48px; }
  .article-body table { font-size: 13px; }
}
