/* Չկա — страница «История» (стиль «светлый музей», токены — в hub.css,
   кнопки, подвал и блок «что дальше» — в hub.css/story.css). Здесь:
   полоса прогресса чтения под меню и вёрстка глав. */

.history { max-width: 680px; }
.logo-sub { font-family: var(--font); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.logo-sub [lang="hy"] { font-family: var(--hy); }

/* ---------- полоса прогресса чтения (по нижнему краю меню) ---------- */

.progress {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--nav-h));
  left: 0;
  right: 0;
  height: 3px;
  z-index: 41;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .progress span { transition: transform 80ms linear; }
}

/* ---------- шапка ---------- */

.h-head { padding: 18px 0 36px; }
.h-eyebrow {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.h-head h1 { font-size: clamp(2.375rem, calc(10.5vw * var(--fs)), 3.75rem); text-wrap: balance; }
.h-head h1 [lang="hy"] { font-size: 0.82em; }
.h-sub { max-width: 46ch; margin: 16px 0 0; color: var(--muted); font-size: 1.25rem; line-height: 1.5; }

/* ---------- главы ---------- */

.chapter { position: relative; margin-top: 64px; }
.chapter:first-of-type { margin-top: 0; }
.ch-num {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  margin: 0 0 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.chapter h2 { margin: 0 0 18px; font-size: clamp(1.625rem, calc(6.6vw * var(--fs)), 2.25rem); line-height: 1.12; text-wrap: balance; }
.ch-text p { margin: 0 0 16px; font-size: 1.1875rem; line-height: 1.65; color: var(--ink); max-width: 65ch; }
.ch-text p:last-child { margin-bottom: 0; }

.ch-fig {
  margin: 0 0 22px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ch-fig img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r-lg) - 8px); background: var(--ghost-bg); }
.ch-fig figcaption { padding: 10px 6px 4px; font-size: 0.875rem; line-height: 1.45; color: var(--faint); }
.ch-fig figcaption a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 2px; }

/* ---------- источники ---------- */

.h-sources { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.h-sources h2 { margin: 0 0 12px; font-size: 1.625rem; }
.h-sources p { margin: 0 0 4px; color: var(--muted); font-size: 1rem; }
.h-src-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.h-src-list li { color: var(--muted); font-size: 1rem; }
.h-src-list a { color: var(--ink); font-weight: 700; font-size: 1.0625rem; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .h-src-list a:hover { color: var(--accent); } }

.history .next-sec { background: transparent; padding: 0; margin-top: 44px; }
