/* ============================================================
   The Sages — torahtech.co/sages
   Program theme. Loads AFTER shared.css and tt-brand.css.
   Base blocks are shared in shape with /sefirot (prefix sgs-).
   Pages are GENERATED by tools/sages/build.mjs; this file is hand-written.
   ============================================================ */

: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) ──────────────── */
.sgs-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);
}
.sgs-home { flex: none; display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.sgs-home .sgs-kicker { font: 700 .62rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); opacity: .8; }
.sgs-home > span:last-child { font: 600 .95rem/1.2 var(--font-display); color: var(--accent-deep); margin-top: 2px; }
.sgs-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%);
}
.sgs-toc::-webkit-scrollbar { display: none; }
.sgs-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;
}
.sgs-toc a:hover { background: var(--surface-2); border-color: var(--line); color: var(--accent-deep); }
.sgs-toc a.on { background: var(--accent-deep); color: #fff; }
.sgs-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;
}
.sgs-btn:hover { background: var(--surface-2); transform: translateY(-1px); border-color: var(--accent-soft); }
.sgs-btn:active { transform: translateY(0); }
.sgs-btn[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.sgs-btn .he { font-family: var(--font-hebrew); font-size: .95rem; }
@media (max-width: 620px) {
  .sgs-home { display: none; }
  .sgs-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. */
.sgs-faq summary:focus-visible, .sgs-seg button:focus-visible, .sgs-toc a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: -3px; }
.sgs-seg button[aria-pressed="true"]:focus-visible, .sgs-toc a.on:focus-visible { outline-color: #fff; }
.sgs-seg button:first-child { border-radius: 999px 0 0 999px; }
.sgs-seg button:last-child { border-radius: 0 999px 999px 0; }

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

.sgs-section { margin: 64px 0 0; scroll-margin-top: 64px; }
.sgs-section:first-child { margin-top: 18px; }
.sgs-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. */
.sgs-section > .tt-eyebrow.on-light { color: var(--accent-deep); }
.sgs-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;
}
.sgs-section > h2::after {
  content: ''; display: block; width: 60px; height: 2px;
  background: var(--accent); margin: 14px auto 0;
}
.sgs-sub { text-align: center; color: var(--muted); font-size: .95rem; max-width: 56ch; margin: 14px auto 26px; line-height: 1.6; }

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

/* ── Source blocks ───────────────────────────────────────────── */
.sgs-src {
  margin: 22px 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.sgs-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;
}
.sgs-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;
}
.sgs-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);
}
.sgs-src-ref a { color: var(--accent-deep); text-decoration: none; font-weight: 600; letter-spacing: .06em; text-transform: none; font-size: .74rem; }
.sgs-src-ref a:hover { color: var(--tt-navy-deep); text-decoration: underline; }

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

body.sgs-no-en .sgs-src-en, body.sgs-no-en .sgs-en-opt { display: none; }
body.sgs-no-he .sgs-src-he, body.sgs-no-he .sgs-he-opt { display: none; }
body.sgs-no-he .sgs-src-en { padding-top: clamp(16px, 3.6vw, 24px); }
.sgs-fade { animation: sgs-fade .32s ease both; }
@keyframes sgs-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sgs-switch { display: flex; justify-content: center; margin: 0 0 20px; }
.sgs-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.sgs-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;
}
.sgs-seg button:hover { background: rgba(94,144,227,.14); }
.sgs-seg button[aria-pressed="true"] { background: var(--accent-deep); color: #fff; }
/* ── Guardrails list ─────────────────────────────────────────── */
.sgs-guard { display: grid; gap: 12px; margin-top: 4px; }
.sgs-guard-item { display: flex; gap: 14px; align-items: flex-start; }
.sgs-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);
}
.sgs-guard-item p { margin: 3px 0 0; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.sgs-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;
}
.sgs-faq details[open] { border-color: var(--accent-soft); box-shadow: var(--shadow); }
.sgs-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;
}
.sgs-faq summary::-webkit-details-marker { display: none; }
.sgs-faq summary:hover { background: var(--surface-2); }
.sgs-faq summary::after { content: '+'; flex: none; color: var(--accent); font-size: 1.3rem; line-height: 1; font-weight: 400; }
.sgs-faq details[open] summary::after { content: '\2013'; }
.sgs-faq details[open] summary { background: var(--surface-2); }
.sgs-faq-body { padding: 14px 18px 16px; font-size: .94rem; line-height: 1.78; color: var(--ink-soft); }
.sgs-faq-body p { margin: 0 0 10px; }
.sgs-faq-body p:last-child { margin: 0; }

/* ── Related ─────────────────────────────────────────────────── */
.sgs-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sgs-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;
}
.sgs-related a:hover { transform: translateY(-6px); box-shadow: var(--tt-shadow-lift); border-color: var(--accent-soft); }
.sgs-rel-he { font-family: var(--font-hebrew); direction: rtl; font-size: 1.3rem; color: var(--accent-deep); }
.sgs-rel-en { font: 700 .58rem/1.5 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); margin-top: 4px; }
.sgs-rel-note { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.55; }
@media (max-width: 720px) { .sgs-related { grid-template-columns: 1fr; } }

/* credits strip, above the CTA band */
.sgs-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;
}
.sgs-credits a { color: var(--accent-deep); }
.sgs-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) {
    .sgs-reveal {
      animation: sgs-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes sgs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

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


/* ── Hero facts ──────────────────────────────────────────────── */
.sgs-facts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 0; padding: 0; list-style: none; }
.sgs-facts li { font: 600 .78rem/1 var(--font-body); color: #fff; border: 1px solid rgba(123,224,236,.45); background: rgba(255,255,255,.07); border-radius: 999px; padding: 9px 13px; }
.sgs-facts li b { font-weight: 700; color: var(--tt-ice); letter-spacing: .08em; text-transform: uppercase; font-size: .6rem; margin-right: 6px; }
.sgs-crumb { font: 600 .74rem/1.4 var(--font-body); color: rgba(255,255,255,.8); margin-bottom: 14px; }
.sgs-crumb a { color: var(--tt-ice); text-decoration: none; }
.sgs-crumb a:hover { text-decoration: underline; }

/* ── Claims ──────────────────────────────────────────────────── */
.sgs-claim { margin: 0 0 26px; }
.sgs-claim h3 { font: 700 1.12rem/1.3 var(--font-display); color: var(--accent-deep); margin: 0 0 6px; }
.sgs-claim > p { font-size: 1rem; line-height: 1.8; color: var(--ink-soft); margin: 0 0 10px; }
.sgs-claim .sgs-src { margin: 10px 0 0; }
.sgs-src-ref .sgs-layer { font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.sgs-speaker { padding: 0 clamp(16px, 3.6vw, 26px) 2px; font-size: .78rem; color: var(--muted); }
.sgs-label { display: inline-block; font: 700 .58rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; margin-bottom: 8px; border: 1px solid transparent; }
.sgs-label.gemara { background: var(--accent-deep); color: #fff; }
.sgs-label.commentator { background: rgba(94,144,227,.16); color: var(--accent-deep); border-color: var(--accent-soft); }
.sgs-label.modern { background: #fff; color: var(--accent-deep); border-color: var(--accent-deep); border-style: dashed; }
.sgs-label.unknown { background: var(--surface-2); color: var(--ink-soft); border-color: var(--line); }
.sgs-label.reversal { background: #fff7e6; color: #7a4b00; border-color: #f0d49a; }

/* ── People lists ────────────────────────────────────────────── */
.sgs-rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sgs-rel li { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 14px 16px; box-shadow: var(--shadow); }
.sgs-rel-type { font: 700 .56rem/1 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.sgs-rel-name { font: 700 1rem/1.3 var(--font-display); color: var(--accent-deep); margin-top: 5px; }
.sgs-rel-name a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.sgs-rel-note { font-size: .86rem; line-height: 1.55; color: var(--ink-soft); margin-top: 4px; }
.sgs-plain-list { margin: 0; padding-left: 1.2em; }
.sgs-plain-list li { margin: 0 0 8px; line-height: 1.7; color: var(--ink-soft); }
.sgs-plain-list b { color: var(--accent-deep); }

/* ── Hub ─────────────────────────────────────────────────────── */
.sgs-search { display: flex; justify-content: center; margin: 0 0 22px; }
.sgs-search input {
  width: min(520px, 100%); font: 400 1rem/1.3 var(--font-body); color: var(--ink);
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 13px 20px; background: var(--surface);
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.sgs-search input:hover { border-color: var(--accent); }
.sgs-search input:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.sgs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sgs-card {
  display: block; height: 100%; text-decoration: none; border: 1px solid var(--line); border-inline-start: 5px solid var(--band, var(--accent));
  border-radius: var(--radius); background: var(--surface); padding: 18px 18px 16px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sgs-card:hover { transform: translateY(-6px); box-shadow: var(--tt-shadow-lift); }
.sgs-card:active { transform: translateY(-2px); }
.sgs-card-era { font: 700 .56rem/1.4 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.sgs-card-he { font: 700 1.5rem/1.3 var(--font-hebrew); color: var(--ink); margin-top: 4px; }
.sgs-card-en { font: 700 1.05rem/1.25 var(--font-display); color: var(--accent-deep); }
.sgs-card-sum { font-size: .86rem; line-height: 1.6; color: var(--ink-soft); margin-top: 8px; }
.sgs-none { text-align: center; color: var(--muted); font-size: .95rem; margin: 18px 0 0; }
.sgs-none[hidden] { display: none; }
.sgs-legend { display: grid; gap: 12px; }
.sgs-legend > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; }
.sgs-legend .sgs-label { margin: 2px 0 0; justify-self: start; }
.sgs-legend p { margin: 0; }
@media (max-width: 560px) { .sgs-legend > div { grid-template-columns: 1fr; gap: 4px; } }
.sgs-checked { text-align: center; font-size: .8rem; color: var(--muted); margin: 40px 0 0; }
.sgs-checked a { color: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  .sgs-fade, .sgs-skel { animation: none; }
  .sgs-card, .sgs-related a, .sgs-btn { transition: none; }
  .sgs-card:hover, .sgs-related a:hover, .sgs-btn:hover { transform: none; }
}
@media print {
  #shared-header, #shared-footer, .wa-widget, .sgs-bar, .tt-band, .sgs-search, #more { display: none !important; }
  .tt-hero { background: none !important; color: #111; padding: 0 0 10pt; border-bottom: 2pt solid #1C47A5; }
  .tt-hero h1, .tt-hero-he, .tt-hero-lede, .sgs-facts li, .sgs-facts li b, .sgs-crumb, .sgs-crumb a { color: #111 !important; }
  .sgs-src, .sgs-src.deep { box-shadow: none; break-inside: avoid; }
  .sgs-claim { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
}

/* ── Generation timeline (hub) ───────────────────────────────── */
.sgs-tl { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: clamp(14px, 3.4vw, 26px); }
.sgs-tl-track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.sgs-tl-stop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; padding: 6px 3px;
  text-decoration: none; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); border-top: 5px solid var(--band);
  color: var(--accent-deep); transition: transform .15s, box-shadow .15s, background .15s;
}
.sgs-tl-stop:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(28,71,165,.2); }
.sgs-tl-stop.on { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); border-top-color: var(--tt-cyan); box-shadow: 0 10px 22px rgba(0,200,220,.3); }
.sgs-tl-n { font: 700 .95rem/1 var(--font-display); }
.sgs-tl-short { font: 700 .5rem/1.2 var(--font-body); letter-spacing: .03em; text-transform: uppercase; text-align: center; }
.sgs-tl-legend { display: flex; justify-content: space-between; margin: 10px 2px 0; font: 700 .56rem/1 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.sgs-tl-panel { margin-top: 20px; padding: 18px 0 0 16px; border-top: 1px solid var(--line-soft); border-inline-start: 5px solid var(--band); scroll-margin-top: 150px; }
.sgs-tl.js .sgs-tl-panel { display: none; }
.sgs-tl.js .sgs-tl-panel.on { display: block; animation: sgs-fade .32s ease both; }
.sgs-tl-era { font: 700 .58rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sgs-tl-panel h3 { font: 700 1.2rem/1.3 var(--font-display); color: var(--accent-deep); margin: 4px 0 6px; }
.sgs-tl-panel > p { font-size: .97rem; line-height: 1.75; color: var(--ink-soft); margin: 0 0 12px; }
.sgs-tl-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sgs-tl-side { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 12px 14px; }
.sgs-tl-land { font: 700 .58rem/1 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }
.sgs-tl-places { font: 600 .82rem/1.4 var(--font-body); color: var(--ink); margin-top: 6px; }
.sgs-tl-side ul { margin: 8px 0 0; padding-left: 1.1em; font-size: .9rem; line-height: 1.7; color: var(--ink-soft); }
.sgs-tl-side a { color: var(--accent-deep); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 760px) { .sgs-tl-track { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sgs-tl-short { font-size: .52rem; } }
@media (prefers-reduced-motion: reduce) { .sgs-tl-stop { transition: none; } .sgs-tl-stop:hover { transform: none; } .sgs-tl.js .sgs-tl-panel.on { animation: none; } }
@media print { .sgs-tl-track, .sgs-tl-legend { display: none !important; } .sgs-tl.js .sgs-tl-panel { display: block !important; } }

/* ── The roster (/sages/all/) ────────────────────────────────── */
.sgs-allnames { text-align: center; margin: 26px 0 0; }
.sgs-note { margin: 0 0 8px; font-size: .92rem; }
.sgs-roster-h { font: 700 1.15rem/1.3 var(--font-display); color: var(--accent-deep); margin: 34px 0 10px; scroll-margin-top: 70px; }
.sgs-roster-h span { font: 700 .62rem/1 var(--font-body); letter-spacing: .1em; color: var(--muted); margin-left: 6px; }
.sgs-roster { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sgs-roster li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 4px 14px; align-items: baseline; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); transition: background .12s; }
.sgs-roster li:hover { background: var(--surface-2); }
.sgs-roster li[hidden] { display: none; }
.sgs-row-en { font: 600 .93rem/1.4 var(--font-body); color: var(--ink); }
a.sgs-row-en.ours { font-weight: 700; color: var(--accent-deep); text-underline-offset: 3px; }
.sgs-row-he { font: 500 1.02rem/1.4 var(--font-hebrew); color: var(--ink); text-align: right; }
.sgs-row-meta { font-size: .78rem; line-height: 1.4; color: var(--muted); }
.sgs-row-link { font: 600 .76rem/1.4 var(--font-body); color: var(--accent-deep); white-space: nowrap; text-underline-offset: 3px; }
.sgs-row-link:hover, a.sgs-row-en.ours:hover { color: var(--tt-navy-deep); }
@media (max-width: 640px) {
  .sgs-roster li { grid-template-columns: minmax(0, 1fr) auto; }
  .sgs-row-meta { grid-column: 1; }
  .sgs-row-link { grid-column: 2; grid-row: 2; }
}
@media print { .sgs-row-link { display: none; } }
