/* ═══════════════════════════════════════════════════════════
   PAGE: History & Story (single-tac_history.php)
   Rebuilt to match monk/temple quality.
═══════════════════════════════════════════════════════════ */
.history-page { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }

/* ── HERO ──────────────────────────────────────────────── */
.history-hero { margin-bottom: 48px; }
.history-hero-img {
  aspect-ratio: 16/9; width: 100%; border-radius: var(--r-xl);
  overflow: hidden; background: var(--bg2); margin-bottom: 28px;
}
.history-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.history-eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: .10em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.history-eyebrow::before { content: ''; width: 20px; height: .5px; background: var(--t3); flex-shrink: 0; }

.history-era-pill {
  font-size: 10px; font-weight: 600;
  color: var(--gold-dim); background: var(--gold-l);
  border: .5px solid var(--gold-b); border-radius: 4px;
  padding: 2px 8px; text-transform: uppercase; letter-spacing: .06em;
}

.history-h1 {
  font-family: var(--font-d); font-size: clamp(28px, 4vw, 46px);
  font-weight: 400; color: var(--t1); line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 4px;
}

.history-identity {
  display: flex; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px; padding: 12px 0;
  border-top: .5px solid var(--br); border-bottom: .5px solid var(--br);
}

.history-lead {
  font-family: var(--font-i); font-size: 15.5px; color: var(--t2);
  line-height: 1.82; font-style: italic; margin: 0;
}

/* ── BODY LAYOUT ──────────────────────────────────────── */
.history-body {
  display: grid; grid-template-columns: 1fr 260px; gap: 40px;
  align-items: start; margin-bottom: 52px;
}
.history-content { min-width: 0; }

/* Prose */
.history-content .prose { font-size: 14.5px; line-height: 1.85; color: var(--t2); }
.history-content .prose p { margin: 0 0 20px; }
.history-content .prose h2 {
  font-family: var(--font-d); font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400; color: var(--t1); margin: 40px 0 16px;
  padding-bottom: 10px; border-bottom: .5px solid var(--br);
  letter-spacing: -.01em;
}
.history-content .prose h2:first-child { margin-top: 0; }
.history-content .prose h3 {
  font-family: var(--font-d); font-size: clamp(14.5px, 1.3vw, 17px);
  font-weight: 500; color: var(--t1); margin: 32px 0 12px;
}
.history-content .prose ul, .history-content .prose ol { margin: 0 0 20px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.history-content .prose li { display: flex; gap: 12px; font-size: 14.5px; color: var(--t2); line-height: 1.7; }
.history-content .prose li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 9px; }
.history-content .prose strong { color: var(--t1); font-weight: 500; }
.history-content .prose a { color: var(--gold-dim); border-bottom: 1px dashed var(--gold-b); }
.history-content .prose a:hover { color: var(--gold); }
.history-content .prose img {
  max-width: 100%; height: auto; border-radius: var(--r);
  margin: 20px 0; display: block;
}
.history-content .prose blockquote {
  border-left: 2.5px solid var(--gold); padding: 12px 18px;
  margin: 24px 0; background: var(--bg1); border-radius: 0 var(--r) var(--r) 0;
  font-style: italic; color: var(--t2);
}

/* ── TOC SIDEBAR ──────────────────────────────────────── */
.history-toc { min-width: 0; align-self: start; }
.toc-sticky {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.toc-heading {
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 14px;
}
.toc-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.toc-item {
  display: block; font-size: 12.5px; color: var(--t3);
  padding: 6px 12px; border-left: 2px solid transparent;
  border-radius: 0; transition: color .15s, border-color .15s;
  text-decoration: none; line-height: 1.45;
}
.toc-item:hover { color: var(--t1); }
.toc-item.active { color: var(--t1); border-left-color: var(--gold); font-weight: 500; }

.history-share-btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── SECTIONS ─────────────────────────────────────────── */
.history-section { margin-bottom: 52px; }
.history-sh {
  font-family: var(--font-d); font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400; color: var(--t1); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: .5px solid var(--br);
  letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px;
}
.history-sh-sub { font-family: var(--font-b); font-size: 13px; color: var(--t3); font-weight: 400; }

/* Related stories grid (reuses .article-card from components.css) */
.history-section .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 860px) {
  .history-body { grid-template-columns: 1fr 220px; gap: 28px; }
  .history-section .related-grid { grid-template-columns: repeat(2, 1fr); }
  .history-identity { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 768px) {
  .history-body { grid-template-columns: 1fr; }
  .history-toc { display: none; }
  .history-h1 { font-size: clamp(22px, 5vw, 32px); }
  .history-hero-img { aspect-ratio: 4/3; }
  .history-section .related-grid { grid-template-columns: 1fr; }
}
