/*
 * article.css — стили страниц экономических событий forex.events
 * Используется: /nfp/, /fomc/, /cpi/ и любых будущих страниц событий
 * а также их языковых версий /ru/nfp/, /es/nfp/, /zh/nfp/ и т.д.
 */

/* ── Переопределяем --sticky-h из cal-base.css (там 230px для /calendar/) ── */
:root { --sticky-h: 90px; }

/* ── Обёртка статьи ── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ── Надпись над заголовком ── */
.article-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(46,196,182,.3);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

/* ── H1 ── */
.article-h1 {
  font-family: var(--mono);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-h1 span { color: var(--accent); }

/* ── Вводный абзац ── */
.article-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text2);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* ── Тело статьи ── */
.article-body h2 {
  font-family: var(--mono);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  margin: 40px 0 16px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 16px;
}

.article-body strong { color: var(--text); }

.article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body ul li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
  padding-left: 20px;
  position: relative;
}
.article-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--mono);
}

/* ── CTA-блок ── */
.event-cta {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-cta-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-cta-title {
  font-family: var(--mono);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
}

.event-cta-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--border2); }

.faq-q {
  list-style: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-size: 20px; color: var(--text3); font-weight: 300; flex-shrink: 0; margin-left: 12px; }
.faq-item[open] .faq-q::after { content: "−"; color: var(--green); }
.faq-q:hover { background: var(--surface2); }

.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  background: var(--surface);
}

/* ── Хлебные крошки ── */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text3); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--green); }

/* ── Ссылка «назад» ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .15s;
}
.back-link:hover { color: var(--green); }

/* ── Светлая тема ── */
html[data-theme="light"] .event-cta  { background: var(--surface2); }
html[data-theme="light"] .faq-q,
html[data-theme="light"] .faq-a      { background: var(--surface); }
