/* ============================================================
   4,000 Years of Jewish History: torahtech.co/history
   Program theme. Loads AFTER shared.css and tt-brand.css.
   Base blocks are the same shape as /ark and /tower (prefix hi-).
   Page pieces: the era timeline, the two kingdoms, prophet cards,
   the Hasmonean path, the Shavuot verse puzzle, the centers chart.
   ============================================================ */
:root {
  --ink:          var(--tt-ink);
  --ink-soft:     var(--tt-ink-soft);
  --muted:        var(--tt-ink-muted);
  --line:         var(--tt-line);
  --line-soft:    #f1f5fa;
  --surface:      var(--tt-surface);
  --surface-2:    var(--tt-surface-2);
  --accent:       var(--tt-blue);
  --accent-deep:  var(--tt-navy);
  --accent-soft:  var(--tt-line-strong);
  --font-display: var(--tt-font-display);
  --font-body:    var(--tt-font-body);
  --font-serif:   var(--tt-font-serif);
  --font-hebrew:  var(--tt-font-hebrew);
  --radius:       var(--tt-radius);
  --radius-sm:    var(--tt-radius-sm);
  --shadow:       var(--tt-shadow-card);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }

/* shared.js injects the header after load; reserve its height so the hero does not jump (CLS). */
#shared-header:empty { min-height: 71px; }
@media (max-width: 768px) { #shared-header:empty { min-height: 67px; } }

/* ── Utility bar (sits under the shared header) ──────────────── */
.hi-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 9px clamp(12px, 4vw, 28px);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hi-home { flex: none; display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.hi-home .hi-kicker { font: 700 .62rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); opacity: .8; }
.hi-home > span:last-child { font: 600 .95rem/1.2 var(--font-display); color: var(--accent-deep); margin-top: 2px; }
.hi-toc {
  flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 4px; margin: 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.hi-toc::-webkit-scrollbar { display: none; }
.hi-toc a {
  flex: none; text-decoration: none; white-space: nowrap;
  font: 600 .74rem/1 var(--font-body); color: var(--ink-soft);
  padding: 8px 12px; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.hi-toc a:hover { background: var(--surface-2); border-color: var(--line); color: var(--accent-deep); }
.hi-toc a.on { background: var(--accent-deep); color: #fff; }
.hi-btn {
  flex: none; appearance: none; cursor: pointer; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--accent-deep); font: 600 .78rem/1 var(--font-body);
  padding: 8px 11px; min-width: 40px; min-height: 34px;
  transition: background .15s, transform .1s, border-color .15s, color .15s;
}
.hi-btn:hover { background: var(--surface-2); transform: translateY(-1px); border-color: var(--accent-soft); }
.hi-btn:active { transform: translateY(0); }
.hi-btn[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.hi-btn .he { font-family: var(--font-hebrew); font-size: .95rem; }
@media (max-width: 620px) {
  .hi-home { display: none; }
  .hi-toc { margin-left: -4px; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* These three sit inside clipping containers (overflow hidden / scroll), so the ring has to be drawn inside the box. */
.hi-faq summary:focus-visible, .hi-seg button:focus-visible, .hi-toc a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: -3px; }
.hi-seg button[aria-pressed="true"]:focus-visible, .hi-toc a.on:focus-visible { outline-color: #fff; }
.hi-seg button:first-child { border-radius: 999px 0 0 999px; }
.hi-seg button:last-child { border-radius: 0 999px 999px 0; }

/* ── Page ────────────────────────────────────────────────────── */
.hi-wrap { max-width: 860px; margin: 0 auto; padding: 30px clamp(16px, 5vw, 28px) 20px; }
.hi-he-inline { font-family: var(--font-hebrew); font-size: 1.15em; direction: rtl; unicode-bidi: isolate; }

.hi-section { margin: 64px 0 0; scroll-margin-top: 64px; }
.hi-section:first-child { margin-top: 18px; }
.hi-section > .tt-eyebrow { display: flex; justify-content: center; margin-bottom: 12px; }
/* Brand blue on white is ~3:1, too light for small caps; keep the blue hairlines, darken the text. */
.hi-section > .tt-eyebrow.on-light { color: var(--accent-deep); }
.hi-section > h2 {
  font: 700 clamp(1.4rem, 4vw, 1.85rem)/1.22 var(--font-display); color: var(--accent-deep);
  letter-spacing: -.5px; margin: 0 0 12px; text-align: center;
}
.hi-section > h2::after {
  content: ''; display: block; width: 60px; height: 2px;
  background: var(--accent); margin: 14px auto 0;
}
.hi-sub { text-align: center; color: var(--muted); font-size: .95rem; max-width: 56ch; margin: 14px auto 26px; line-height: 1.6; }

.hi-prose { font-size: 1rem; line-height: 1.82; color: var(--ink-soft); }
.hi-prose p { margin: 0 0 15px; }
.hi-prose strong { color: var(--accent-deep); font-weight: 700; }
.hi-prose a, .hi-faq a { color: var(--accent-deep); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.hi-prose a:hover, .hi-faq a:hover { color: var(--tt-navy-deep); text-decoration-color: var(--accent-deep); text-decoration-thickness: 2px; }
.hi-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: clamp(18px, 3.8vw, 28px); }
.hi-panel > :last-child { margin-bottom: 0; }
.hi-gap { margin-top: 22px; }

/* ── Source blocks ───────────────────────────────────────────── */
.hi-src {
  margin: 22px 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.hi-src-he {
  font-family: var(--font-hebrew); direction: rtl; text-align: right;
  font-size: clamp(1.12rem, 2.9vw, 1.32rem); line-height: 1.95; color: var(--ink);
  padding: clamp(16px, 3.6vw, 24px) clamp(16px, 3.6vw, 26px) 6px;
}
.hi-src-en {
  font-family: var(--font-serif); font-size: clamp(1.06rem, 2.4vw, 1.18rem); line-height: 1.6; color: var(--ink-soft);
  padding: 6px clamp(16px, 3.6vw, 26px) 4px;
}
.hi-src-ref {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 10px clamp(16px, 3.6vw, 26px);
  background: var(--surface-2); border-top: 1px solid var(--line-soft);
  font: 700 .6rem/1.4 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep);
}
.hi-src-ref a { color: var(--accent-deep); text-decoration: none; font-weight: 600; letter-spacing: .06em; text-transform: none; font-size: .74rem; }
.hi-src-ref a:hover { color: var(--tt-navy-deep); text-decoration: underline; }

/* deep variant: the page's few load-bearing quotes */
.hi-src.deep { background: var(--tt-grad-deep); border-color: transparent; box-shadow: 0 14px 36px rgba(12,35,80,.22); text-align: center; }
.hi-src.deep .hi-src-he { color: #fff; text-align: center; font-size: clamp(1.25rem, 3.4vw, 1.55rem); }
.hi-src.deep .hi-src-en { color: rgba(255,255,255,.9); text-align: center; }
.hi-src.deep .hi-src-ref { background: rgba(255,255,255,.07); border-top-color: rgba(255,255,255,.12); color: var(--tt-ice); justify-content: center; }
.hi-src.deep .hi-src-ref a { color: var(--tt-ice); }

body.hi-no-en .hi-src-en, body.hi-no-en .hi-en-opt { display: none; }
body.hi-no-he .hi-src-he, body.hi-no-he .hi-he-opt { display: none; }
body.hi-no-he .hi-src-en { padding-top: clamp(16px, 3.6vw, 24px); }
.hi-fade { animation: hi-fade .32s ease both; }
@keyframes hi-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hi-switch { display: flex; justify-content: center; margin: 0 0 20px; }
.hi-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.hi-seg button {
  appearance: none; cursor: pointer; border: 0; background: transparent; color: var(--ink-soft);
  font: 600 .84rem/1 var(--font-body); padding: 12px 20px; transition: background .15s, color .15s;
}
.hi-seg button:hover { background: rgba(94,144,227,.14); }
.hi-seg button[aria-pressed="true"] { background: var(--accent-deep); color: #fff; }
/* ── Guardrails list ─────────────────────────────────────────── */
.hi-guard { display: grid; gap: 12px; margin-top: 4px; }
.hi-guard-item { display: flex; gap: 14px; align-items: flex-start; }
.hi-guard-n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .82rem/1 var(--font-display); color: #fff; background: var(--tt-grad-header);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.hi-faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  padding: 0; margin-bottom: 10px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.hi-faq details[open] { border-color: var(--accent-soft); box-shadow: var(--shadow); }
.hi-faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  font: 600 .97rem/1.45 var(--font-body); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .15s;
}
.hi-faq summary::-webkit-details-marker { display: none; }
.hi-faq summary:hover { background: var(--surface-2); }
.hi-faq summary::after { content: '+'; flex: none; color: var(--accent); font-size: 1.3rem; line-height: 1; font-weight: 400; }
.hi-faq details[open] summary::after { content: '\2013'; }
.hi-faq details[open] summary { background: var(--surface-2); }
.hi-faq-body { padding: 14px 18px 16px; font-size: .94rem; line-height: 1.78; color: var(--ink-soft); }
.hi-faq-body p { margin: 0 0 10px; }
.hi-faq-body p:last-child { margin: 0; }

/* ── Related ─────────────────────────────────────────────────── */
.hi-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hi-related a {
  display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 20px 20px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hi-related a:hover { transform: translateY(-6px); box-shadow: var(--tt-shadow-lift); border-color: var(--accent-soft); }
.hi-rel-he { font-family: var(--font-hebrew); direction: rtl; font-size: 1.3rem; color: var(--accent-deep); }
.hi-rel-en { font: 700 .58rem/1.5 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); margin-top: 4px; }
.hi-rel-note { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.55; }
@media (max-width: 720px) { .hi-related { grid-template-columns: 1fr; } }

/* credits strip, above the CTA band */
.hi-credits {
  max-width: 860px; margin: 56px auto 0; padding: 26px clamp(16px, 5vw, 28px) 40px;
  border-top: 1px solid var(--line); text-align: center;
  color: var(--muted); font-size: .8rem; line-height: 1.75;
}
.hi-credits a { color: var(--accent-deep); }
.hi-credits p { margin: 0 0 6px; }

/* ── Reveal on scroll ──────────────────────────────────────────
   CSS scroll-driven only. Content is never hidden by default: browsers without
   animation-timeline (or with reduced motion, or printing) simply show it. An
   earlier JS/IntersectionObserver version left all content at opacity 0 in
   browsers where the observer never fired. Do not bring that back. */
@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    .hi-reveal {
      animation: hi-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes hi-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── Skeleton shimmer for the interactive mounts before JS fills them ── */
.hi-skel { border-radius: 10px; min-height: 120px; background: linear-gradient(90deg, #eef3fa 25%, #f7f9fc 37%, #eef3fa 63%); background-size: 400% 100%; animation: hi-shimmer 1.3s ease infinite; }
@keyframes hi-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.hi-guard-item p { margin: 3px 0 0; }
.hi-h3 { font: 700 1.12rem/1.3 var(--font-display); color: var(--accent-deep); margin: 0 0 10px; }
.hi-fine { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px auto 0; max-width: 60ch; line-height: 1.6; }
.hi-seg-wrap { flex-wrap: wrap; justify-content: center; border-radius: 18px; }
.hi-seg-wrap button { border-radius: 0 !important; }
.hi-seg button:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: -3px; }
.hi-seg button[aria-pressed="true"]:focus-visible { outline-color: #fff; }

/* ── Master timeline ─────────────────────────────────────────── */
.hi-tl { margin-top: 26px; }
.hi-scale { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 0 0 6px; background: var(--surface-2); }
.hi-scale span { display: block; height: 100%; background: var(--accent-soft); border-right: 1px solid #fff; transition: background .2s; }
.hi-scale span.on { background: var(--accent-deep); }
.hi-scale-cap { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin: 0 0 14px; }
.hi-eras { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hi-era {
  appearance: none; cursor: pointer; text-align: left; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  padding: 10px 12px; color: var(--ink); min-height: 64px;
  transition: transform .15s, border-color .15s, box-shadow .15s, background .15s;
}
.hi-era:hover { transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.hi-era:active { transform: translateY(0); }
.hi-era b { display: block; font: 600 .86rem/1.25 var(--font-display); color: var(--accent-deep); }
.hi-era i { display: block; font-style: normal; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.hi-era[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); }
.hi-era[aria-pressed="true"] b, .hi-era[aria-pressed="true"] i { color: #fff; }
.hi-era:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.hi-era-card {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); padding: clamp(18px, 4vw, 28px);
}
.hi-era-card:empty { display: none; }
.hi-era-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hi-era-head h3 { font: 700 clamp(1.2rem, 3.6vw, 1.5rem)/1.2 var(--font-display); color: var(--accent-deep); margin: 0; }
.hi-era-head .he { font-family: var(--font-hebrew); font-size: 1.35rem; color: var(--accent-deep); direction: rtl; }
.hi-era-dates { font: 700 .72rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); margin: 6px 0 4px; }
.hi-era-trad { font-size: .84rem; color: var(--muted); margin: 0 0 12px; font-style: italic; }
.hi-era-card p { line-height: 1.75; color: var(--ink-soft); }
.hi-era-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; margin-top: 8px; }
.hi-era-cols h4 { font: 700 .66rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 8px; }
.hi-era-cols ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .93rem; line-height: 1.65; }
.hi-era-cols li { margin-bottom: 6px; }
.hi-big { margin-top: 18px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; }
.hi-big-k { font: 700 .62rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.hi-big h4 { font: 700 1.02rem/1.35 var(--font-display); color: var(--accent-deep); margin: 4px 0 6px; }
.hi-big p { margin: 0; font-size: .94rem; }
.hi-era-card .hi-src { margin: 18px 0 0; box-shadow: none; }
.hi-era-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.hi-era-nav button { appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--accent-deep); font: 600 .82rem/1 var(--font-body); padding: 10px 14px; border-radius: 999px; transition: background .15s, border-color .15s; }
.hi-era-nav button:hover:not(:disabled) { background: var(--surface-2); border-color: var(--accent-soft); }
.hi-era-nav button:disabled { opacity: .45; cursor: default; }
@media (max-width: 620px) { .hi-era-cols { grid-template-columns: 1fr; gap: 10px; } .hi-eras { grid-template-columns: repeat(2, 1fr); } }

/* ── Kings ───────────────────────────────────────────────────── */
.hi-kings-ctl, .hi-path-ctl { display: flex; justify-content: center; margin: 6px 0 16px; }
.hi-kings { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.hi-krow { display: grid; grid-template-columns: 44px 1fr minmax(70px, .8fr) 1fr; border-top: 1px solid var(--line-soft); }
.hi-krow:first-child { border-top: 0; }
.hi-khead { background: var(--surface-2); font: 700 .64rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); position: sticky; top: 0; }
.hi-khead > div { padding: 10px 6px; text-align: center; }
.hi-ky { font: 600 .7rem/1 var(--font-body); color: var(--muted); padding: 10px 4px; text-align: right; }
.hi-kc { padding: 6px 5px; display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; min-width: 0; }
.hi-kc.mid { background: #f6f9fd; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); justify-content: center; }
.hi-king {
  appearance: none; cursor: pointer; font: 600 .76rem/1.2 var(--font-body);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 8px; padding: 6px 8px; display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.hi-king:hover { transform: translateY(-1px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.hi-king.sel { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.hi-king .ic { font-size: .7rem; line-height: 1; }
.hi-king.killed .ic { color: #b42318; }
.hi-king.sel .ic { color: #fff; }
.hi-king.david .ic { color: #8a6100; }
.hi-proph { font: 600 .72rem/1.2 var(--font-body); color: var(--accent-deep); background: #e8f0fc; border-radius: 999px; padding: 5px 9px; text-decoration: none; transition: background .15s; }
.hi-proph:hover { background: #d6e4fa; text-decoration: underline; }
.hi-mark { grid-column: 2 / -1; font: 600 .74rem/1.35 var(--font-body); color: #7a2e0e; background: #fdf2ea; padding: 7px 10px; border-left: 3px solid #c4510c; }
.hi-kings.f-killed .hi-king:not(.killed), .hi-kings.f-david .hi-king:not(.david) { opacity: .35; }
.hi-kings.f-killed .hi-king.killed { background: #fde8e7; border-color: #f3b7b2; color: #7a1b14; }
.hi-kings.f-david .hi-king.david { background: #fdf4d9; border-color: #ecd28a; color: #5c4100; }
.hi-king-note { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 14px 16px; font-size: .92rem; line-height: 1.65; color: var(--ink-soft); min-height: 56px; }
.hi-king-note p { margin: 0 0 6px; } .hi-king-note p:last-child { margin: 0; }
.hi-king-note b { color: var(--accent-deep); }
.hi-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: .76rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 520px) {
  .hi-krow { grid-template-columns: 34px 1fr 62px 1fr; }
  .hi-king { font-size: .7rem; padding: 5px 6px; }
  .hi-proph { font-size: .66rem; padding: 4px 6px; }
  .hi-ky { font-size: .62rem; padding: 8px 2px; }
}

/* ── Prophets ────────────────────────────────────────────────── */
.hi-theme { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 26px; }
.hi-theme > div { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); }
.hi-theme > div:last-child { background: var(--tt-grad-deep); border-color: transparent; color: #fff; }
.hi-theme-k { font: 700 .6rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hi-theme > div:last-child .hi-theme-k { color: var(--tt-ice); }
.hi-theme b { display: block; font: 700 1.15rem/1.3 var(--font-display); color: var(--accent-deep); margin: 4px 0 4px; }
.hi-theme > div:last-child b { color: #fff; }
.hi-theme p { margin: 0; font-size: .9rem; line-height: 1.55; }
.hi-prophets, .hi-centers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.hi-prophet, .hi-center {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  padding: 18px 18px 14px; scroll-margin-top: 70px; min-width: 0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hi-prophet:hover, .hi-center:hover { transform: translateY(-4px); box-shadow: var(--tt-shadow-lift); border-color: var(--accent-soft); }
.hi-prophet:target, .hi-center.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94,144,227,.25); }
.hi-prophet-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hi-prophet h3, .hi-center h3 { font: 700 1.1rem/1.3 var(--font-display); color: var(--accent-deep); margin: 0; }
.hi-prophet-he { font-family: var(--font-hebrew); font-size: 1.25rem; color: var(--accent-deep); direction: rtl; }
.hi-prophet-when { font: 700 .62rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.hi-prophet p, .hi-center p { font-size: .9rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 8px; }
.hi-src.hi-src-in { margin: 12px 0 10px; box-shadow: none; }
.hi-src.hi-src-in .hi-src-he { font-size: 1.12rem; }
.hi-src.hi-src-in .hi-src-en { font-size: 1.02rem; }
.hi-more { font-size: .82rem !important; color: var(--muted) !important; }
.hi-more strong { color: var(--accent-deep); }

/* ── Hasmonean path ──────────────────────────────────────────── */
.hi-path { list-style: none; margin: 0; padding: 0; position: relative; }
.hi-path::before { content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.hi-stop { position: relative; display: flex; gap: 14px; margin: 0 0 12px; transition: opacity .2s; }
.hi-stop-n { flex: none; position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 .82rem/1 var(--font-display); color: #fff; background: var(--tt-grad-header); }
.hi-stop.hi-down .hi-stop-n { background: #a8321f; }
.hi-stop > div { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.hi-stop > div:hover { border-color: var(--accent-soft); box-shadow: var(--shadow); }
.hi-stop-y { font: 700 .62rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hi-stop h3 { font: 700 1rem/1.3 var(--font-display); color: var(--accent-deep); margin: 2px 0 6px; }
.hi-stop p { font-size: .9rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 6px; }
.hi-stop-tag { display: inline-block; font: 700 .58rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #e8f0fc; color: var(--accent-deep); }
.hi-stop.hi-down .hi-stop-tag { background: #fbe9e5; color: #8a2414; }
.hi-path.f-down .hi-stop.hi-up, .hi-path.f-up .hi-stop.hi-down { opacity: .32; }

/* ── Shavuot verses ──────────────────────────────────────────── */
.hi-clues { display: flex; justify-content: center; margin: 4px 0 18px; }
.hi-verses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.hi-verse { margin: 0; position: relative; }
.hi-verse-tag { display: inline-block; margin: 14px 0 0 clamp(16px, 3.6vw, 26px); font: 700 .6rem/1.4 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: #fff; background: var(--accent-deep); padding: 3px 9px; border-radius: 999px; }
.hi-verse .hi-src-he { font-size: 1.12rem; padding-top: 10px; }
.hi-verse .hi-src-en { font-size: 1.02rem; }
mark.hi-k { background: transparent; color: inherit; border-radius: 4px; padding: 0 2px; transition: background .2s, box-shadow .2s; }
#verses.k-fifty mark[data-k="fifty"], #verses.k-mine mark[data-k="mine"], #verses.k-shofar mark[data-k="shofar"],
#verses.k-up mark[data-k="up"], #verses.k-weak mark[data-k="weak"] { background: #fde68a; box-shadow: 0 0 0 2px #fde68a; color: #111; }

/* ── Centers ─────────────────────────────────────────────────── */
.hi-gantt { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 14px 14px 10px; margin: 0 0 18px; }
.hi-grow { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; margin-bottom: 6px; }
.hi-grow button { appearance: none; border: 0; background: none; cursor: pointer; text-align: right; font: 600 .74rem/1.2 var(--font-body); color: var(--accent-deep); padding: 4px 0; }
.hi-grow button:hover { text-decoration: underline; }
.hi-gtrack { position: relative; height: 16px; background: var(--surface-2); border-radius: 999px; }
.hi-gbar { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); }
.hi-gaxis { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.hi-gaxis div { position: relative; height: 16px; font-size: .66rem; color: var(--muted); }
.hi-gaxis div span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hi-gaxis div span:first-child { transform: none; }
.hi-gaxis div span:last-child { transform: translateX(-100%); }
@media (max-width: 520px) { .hi-grow, .hi-gaxis { grid-template-columns: 74px 1fr; } .hi-grow button { font-size: .66rem; } }

.hi-srclist { padding-left: 18px; }
.hi-srclist li { margin-bottom: 10px; }

/* ── Print ───────────────────────────────────────────────────── */
.hi-print-only { display: none; }
@media print { .hi-screen-only { display: none !important; } }
.hi-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hi-hero-actions .tt-btn-ghost { padding: 11px 22px; font-size: 14px; cursor: pointer; font-family: var(--font-body); }
#t-print svg { display: block; }
.hi-pitem { margin: 0 0 10pt; break-inside: avoid; }
.hi-pitem h4 { margin: 0 0 3pt; font: 700 11.5pt var(--font-display); color: #1C47A5; }
.hi-pitem p, .hi-pitem li { margin: 0 0 3pt; font-size: 10pt; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .hi-fade, .hi-skel { animation: none; }
  .hi-era, .hi-king, .hi-prophet, .hi-center, .hi-related a, .hi-btn, .hi-stop { transition: none; }
  .hi-era:hover, .hi-king:hover, .hi-prophet:hover, .hi-center:hover, .hi-related a:hover, .hi-btn:hover { transform: none; }
}

@media print {
  @page { margin: 16mm 15mm 18mm; }
  html, body { background: #fff !important; }
  body { color: #111; font-size: 10.5pt; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; }
  #shared-header, #shared-footer, .wa-widget, .hi-bar, .hi-hero-actions, .tt-band, #more,
  .hi-tl, .hi-kings, .hi-kings-ctl, .hi-king-note, .hi-path-ctl, .hi-clues, .hi-gantt, .hi-skel { display: none !important; }
  .hi-print-only { display: block !important; }
  .hi-src-he, .hi-src-en { display: block !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .hi-src-ref a { display: none !important; }
  .tt-hero { background: none !important; color: #111; padding: 0 0 12pt; border-bottom: 2pt solid #1C47A5; }
  .tt-hero::before { display: none; }
  .tt-hero h1 { color: #1C47A5 !important; }
  .tt-hero-lede, .tt-hero-he { color: #333 !important; }
  .hi-print-head { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 10pt; font: 600 9pt var(--font-body); color: #555; }
  .hi-print-head img { height: 22pt; width: auto; filter: brightness(0) saturate(100%) invert(19%) sepia(63%) saturate(2400%) hue-rotate(214deg) brightness(92%); }
  .tt-hero .tt-eyebrow { color: #1C47A5; }
  .hi-section { margin-top: 22pt; break-inside: auto; }
  .hi-section > h2 { font-size: 16pt; }
  .hi-src, .hi-src.deep { background: #fff !important; border: 1px solid #cfdcf0; border-left: 3pt solid #1C47A5; border-radius: 6pt; margin: 9pt 0; text-align: left; break-inside: avoid; }
  .hi-src-he { color: #111; text-align: right; font-size: 13pt; line-height: 1.7; padding: 8pt 12pt 2pt; }
  .hi-src-en { color: #333; font-size: 11pt; line-height: 1.45; padding: 2pt 12pt 2pt; }
  .hi-src-ref { background: none !important; color: #1C47A5; margin-top: 6pt; padding: 5pt 12pt; }
  .hi-prophets, .hi-centers, .hi-verses, .hi-theme { display: block; }
  .hi-prophet, .hi-center, .hi-stop > div { break-inside: avoid; border: 1px solid #cfdcf0; margin: 0 0 8pt; }
  .hi-theme > div:last-child { background: #fff !important; color: #111; }
  .hi-theme > div:last-child b, .hi-theme > div:last-child .hi-theme-k { color: #1C47A5; }
  .hi-path.f-down .hi-stop, .hi-path.f-up .hi-stop { opacity: 1; }
  .hi-faq details { border: 0; } .hi-faq details > summary::after { display: none; }
  .hi-print-foot { display: block !important; margin-top: 18pt; padding-top: 8pt; border-top: 1px solid #cfdcf0; font-size: 8.5pt; color: #555; text-align: center; }
  .hi-credits { margin-top: 18pt; }
}
