/* ============================================================
   No Other Gods. torahtech.co/10/lo-yihyeh
   Program theme. Loads AFTER shared.css and tt-brand.css.
   Base blocks are the same shape as /parents (prefix renamed).
   Page pieces: the Rambam's history of idolatry (an era timeline) and the Avraham stepper.
   ============================================================ */
: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) ──────────────── */
.ly-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);
}
.ly-home { flex: none; display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.ly-home .ly-kicker { font: 700 .62rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); opacity: .8; }
.ly-home > span:last-child { font: 600 .95rem/1.2 var(--font-display); color: var(--accent-deep); margin-top: 2px; }
.ly-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%);
}
.ly-toc::-webkit-scrollbar { display: none; }
.ly-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;
}
.ly-toc a:hover { background: var(--surface-2); border-color: var(--line); color: var(--accent-deep); }
.ly-toc a.on { background: var(--accent-deep); color: #fff; }
.ly-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;
}
.ly-btn:hover { background: var(--surface-2); transform: translateY(-1px); border-color: var(--accent-soft); }
.ly-btn:active { transform: translateY(0); }
.ly-btn[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.ly-btn .he { font-family: var(--font-hebrew); font-size: .95rem; }
@media (max-width: 620px) {
  .ly-home { display: none; }
  .ly-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. */
.ly-faq summary:focus-visible, .ly-seg button:focus-visible, .ly-toc a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: -3px; }
.ly-seg button[aria-pressed="true"]:focus-visible, .ly-toc a.on:focus-visible { outline-color: #fff; }
.ly-seg button:first-child { border-radius: 999px 0 0 999px; }
.ly-seg button:last-child { border-radius: 0 999px 999px 0; }

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

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

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

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

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

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

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

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

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

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

.ly-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ── The trail (a timeline stepper) ──────────────────────────── */
.ly-trail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: clamp(14px, 3.4vw, 24px); }
.ly-rail { position: relative; display: flex; justify-content: space-between; gap: 4px; padding: 6px 4px 0; }
.ly-rail::before { content: ''; position: absolute; left: 18px; right: 18px; top: 20px; height: 2px; background: var(--line); }
.ly-stop {
  appearance: none; cursor: pointer; background: transparent; border: 0; padding: 0; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0;
  font: 700 .62rem/1.2 var(--font-display); color: var(--muted);
}
.ly-stop i { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-soft); display: grid; place-items: center; font-style: normal; font-size: .72rem; color: var(--accent-deep); transition: background .2s, border-color .2s, transform .15s, color .2s; }
.ly-stop:hover i { transform: scale(1.1); border-color: var(--accent); }
.ly-stop.done i { background: #dbe7fb; border-color: var(--accent); }
.ly-stop[aria-current="step"] i { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; box-shadow: 0 0 0 5px rgba(94,144,227,.2); }
.ly-stop[aria-current="step"] { color: var(--accent-deep); }
.ly-stop:focus-visible { outline: none; }
.ly-stop:focus-visible i { outline: 2px solid var(--accent); outline-offset: 3px; }
.ly-stop-y { white-space: nowrap; }
@media (max-width: 560px) { .ly-stop-y { display: none; } .ly-stop[aria-current="step"] .ly-stop-y { display: block; position: absolute; top: 40px; } .ly-rail { padding-bottom: 16px; } }
.ly-trail-panel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.ly-step-when { font: 700 .58rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ly-step-who { font: 700 1.16rem/1.3 var(--font-display); color: var(--accent-deep); margin-top: 6px; }
.ly-step-text { font-size: .98rem; line-height: 1.72; color: var(--ink-soft); margin: 8px 0 0; }
.ly-trail .ly-src { margin: 14px 0 0; box-shadow: none; }
.ly-flow-nav { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ── Spark cards ─────────────────────────────────────────────── */
.ly-sparks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.ly-spark { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ly-spark:hover { transform: translateY(-6px); box-shadow: var(--tt-shadow-lift); border-color: var(--accent-soft); }
.ly-spark-k { font: 700 .56rem/1.4 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.ly-spark h3 { font: 700 1.05rem/1.3 var(--font-display); color: var(--accent-deep); margin: 6px 0 8px; }
.ly-spark p { font-size: .9rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 8px; }
.ly-spark .he { font-family: var(--font-hebrew); font-size: 1.08rem; line-height: 1.8; color: var(--ink); direction: rtl; text-align: right; margin: 8px 0 4px; }
.ly-spark-src { font: 700 .56rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-top: 8px; }
.ly-spark-src a { color: var(--accent-deep); text-transform: none; letter-spacing: .02em; font-size: .72rem; }

@media (prefers-reduced-motion: reduce) {
  .ly-fade, .ly-skel { animation: none; }
  .ly-chip, .ly-stop i, .ly-spark, .ly-related a, .ly-btn { transition: none; }
  .ly-chip:hover, .ly-spark:hover, .ly-related a:hover, .ly-btn:hover, .ly-stop:hover i { transform: none; }
}

/* ── Print / PDF ─────────────────────────────────────────────────
   Interactive pieces drop out; static mounts (filled by lo-yihyeh.js) show every
   step, every case and every stop of the trail. */
.ly-print-only { display: none; }
@media print { .ly-screen-only { display: none !important; } }
.ly-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.ly-hero-actions .tt-btn-ghost { padding: 11px 22px; font-size: 14px; cursor: pointer; font-family: var(--font-body); }
#t-print svg { display: block; }

@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, .ly-bar, .ly-hero-actions, .tt-band, #more,
  .ly-hist, .ly-trail, .ly-skel { display: none !important; }
  .ly-print-only { display: block !important; }
  .ly-src-he, .ly-src-en { display: block !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .ly-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; }
  .ly-print-head { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 10pt; font: 600 9pt var(--font-body); color: #555; }
  .ly-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; }
  .tt-hero .tt-eyebrow::before, .tt-hero .tt-eyebrow::after { background: #1C47A5; }
  .tt-hero-he { color: #111; font-size: 26pt; margin: 8pt 0 2pt; }
  .tt-hero h1 { color: #1C47A5; font-size: 22pt; margin: 0 0 6pt; }
  .tt-hero-lede { color: #333; font-size: 10.5pt; font-weight: 400; max-width: none; }
  .ly-wrap { max-width: none; padding: 0; }
  .ly-section { margin: 20pt 0 0; }
  .ly-section > .tt-eyebrow { margin-bottom: 4pt; color: #1C47A5; display: block !important; text-align: center; break-after: avoid; }
  .ly-section > h2 { font-size: 15pt; margin-bottom: 4pt; break-after: avoid; break-inside: avoid; border-bottom: 1.5pt solid #5E90E3; padding-bottom: 4pt; display: table; margin-left: auto; margin-right: auto; }
  .ly-section > h2::after { display: none; }
  .ly-sub { color: #444; font-size: 9.5pt; margin: 6pt auto 10pt; break-after: avoid; }
  .ly-prose { font-size: 10.5pt; line-height: 1.55; color: #111; }
  .ly-prose p { margin: 0 0 7pt; orphans: 3; widows: 3; }
  .ly-panel { background: none !important; border: 1px solid #cfdcf0; padding: 10pt 12pt; }
  .ly-guard-item, .ly-spark, .ly-figure { break-inside: avoid; }
  .ly-guard-n { background: none !important; color: #1C47A5; border: 1.5pt solid #1C47A5; }
  .ly-src, .ly-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; }
  .ly-src-he, .ly-src.deep .ly-src-he { color: #111; text-align: right; font-size: 13pt; line-height: 1.7; padding: 8pt 12pt 2pt; }
  .ly-src-en, .ly-src.deep .ly-src-en { color: #333; text-align: left; font-size: 11pt; line-height: 1.45; padding: 2pt 12pt 2pt; }
  .ly-src-ref, .ly-src.deep .ly-src-ref { background: none !important; color: #1C47A5; border-top: 1px solid #e9eef6; justify-content: flex-start; margin-top: 6pt; padding: 5pt 12pt; }
  .ly-sparks { display: block; }
  .ly-spark { border: 0; border-bottom: 1px solid #e9eef6; border-radius: 0; padding: 6pt 0; }
  .ly-faq details { border: 0; border-bottom: 1px solid #e9eef6; border-radius: 0; margin: 0; break-inside: avoid; }
  .ly-faq summary { padding: 8pt 0 2pt; background: none !important; font-size: 10.5pt; }
  .ly-faq summary::after { display: none; }
  .ly-faq-body { padding: 0 0 8pt; font-size: 10pt; color: #222; }
  .ly-credits { margin: 18pt 0 0; padding: 8pt 0 0; font-size: 8.5pt; color: #555; text-align: left; }
  .ly-print-foot { margin-top: 8pt; font: 600 8.5pt var(--font-body); color: #1C47A5; }
  .ly-p-item { border-bottom: 1px solid #e9eef6; padding: 6pt 0; break-inside: avoid; }
  .ly-p-head { color: #1C47A5; font-size: 10.5pt; font-weight: 700; }
  .ly-p-he { font-family: var(--font-hebrew); font-size: 13pt; line-height: 1.7; text-align: right; direction: rtl; margin: 2pt 0; }
  .ly-p-note { font-size: 9.5pt; color: #333; margin-top: 3pt; line-height: 1.45; }
}

/* a subheading inside a section */
.ly-h3 { font: 700 clamp(1.1rem, 3vw, 1.3rem)/1.3 var(--font-display); color: var(--accent-deep); margin: 34px 0 10px; letter-spacing: -.2px; }
@media print { .ly-h3 { font-size: 12.5pt; margin: 12pt 0 4pt; break-after: avoid; } }

/* ── Shared controls ─────────────────────────────────────────── */
.ly-ctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ly-ctl-label { font: 700 .56rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-right: 2px; }
.ly-chip {
  appearance: none; cursor: pointer; border-radius: 999px; padding: 8px 12px; min-height: 34px;
  border: 1px solid rgba(123,224,236,.4); background: rgba(255,255,255,.06); color: #fff;
  font: 600 .74rem/1 var(--font-body); transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.ly-chip:hover { background: rgba(0,200,220,.22); border-color: var(--tt-ice); transform: translateY(-1px); }
.ly-chip:active { transform: translateY(0); }
.ly-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ly-chip[aria-pressed="true"] { background: var(--tt-ice); border-color: var(--tt-ice); color: #06223f; }
.ly-light .ly-chip { color: var(--accent-deep); border-color: var(--line); background: var(--surface-2); }
.ly-light .ly-chip:hover { background: rgba(94,144,227,.14); border-color: var(--accent-soft); }
.ly-light .ly-chip[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.ly-light .ly-chip:focus-visible { outline-color: var(--accent); }
.ly-light .ly-ctl-label { color: var(--muted); }
.ly-dark {
  border-radius: var(--radius); padding: clamp(14px, 3.4vw, 24px); color: #fff;
  background: radial-gradient(circle at 50% 0%, #1a3f8f 0%, #0C2350 48%, #091836 100%);
  box-shadow: 0 16px 40px rgba(9,24,54,.32);
}
.ly-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: clamp(14px, 3.4vw, 24px); }
.ly-detail { margin-top: 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); padding: clamp(14px, 3.2vw, 20px); }
.ly-detail h3 { font: 700 1.1rem/1.3 var(--font-display); color: var(--accent-deep); margin: 0 0 6px; }
.ly-detail p { font-size: .95rem; line-height: 1.68; color: var(--ink-soft); margin: 6px 0 0; }
.ly-detail .ly-src { margin: 12px 0 0; box-shadow: none; }
.ly-btn[disabled] { opacity: .45; cursor: default; transform: none; }
.ly-btn.primary { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; padding-inline: 16px; }
.ly-btn.primary:hover { background: #163a8a; }
body.ly-no-he .ly-src-he, body.ly-no-he .ly-he-opt { display: none; }
body.ly-no-en .ly-src-en { display: none; }

@media print {
  .ly-print-only { display: block !important; }
}
.ly-src-line { margin: 12px 0 0; font: 700 .6rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.ly-src-line a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.ly-src-line a:hover { color: var(--tt-navy-deep); border-bottom-color: var(--accent-deep); }

/* ── Page pieces ─────────────────────────────────────────────── */
.ly-dark .ly-ctl-label { color: rgba(255,255,255,.72); }

/* Figures: the tablets and the three partners (static SVG) */
.ly-figure { margin: 24px auto; max-width: 620px; }
.ly-figure svg { display: block; width: 100%; height: auto; }
.ly-figure figcaption { margin-top: 10px; text-align: center; font-size: .84rem; line-height: 1.6; color: var(--muted); }
.ly-figure .ly-svg-he { font-family: var(--font-hebrew); }
.ly-figure .ly-svg-en { font-family: var(--font-body); }

/* rules list with a source under each */
.ly-rule { margin-top: 30px; }
.ly-rule-h { display: flex; gap: 12px; align-items: center; }
.ly-rule-h b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 .86rem/1 var(--font-display); color: #fff; background: var(--tt-grad-header); }
.ly-rule-h h3 { font: 700 clamp(1.05rem, 2.8vw, 1.22rem)/1.3 var(--font-display); color: var(--accent-deep); margin: 0; }
.ly-rule .ly-prose { margin-top: 8px; }
.ly-rule .ly-src { margin: 12px 0 0; }



@media print {
  .ly-rule { break-inside: avoid; margin-top: 12pt; }
  .ly-rule-h b { background: none !important; color: #1C47A5; border: 1.5pt solid #1C47A5; }
  .ly-figure svg { max-height: 200pt; }
}

/* ── Ten Commandments series additions (shared by /10/anochi, /10/lo-yihyeh, /10/lo-tisa) ── */
.ly-note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin-top: 18px; }
.ly-note a { font-weight: 600; }
.ly-trail-panel .ly-src + .ly-src { margin-top: 10px; }
.ly-related a { transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.ly-related a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.ly-related a:active { transform: translateY(-2px); box-shadow: var(--shadow); }
.ly-toc a:active { background: var(--accent-soft); }
.ly-stop:active i { transform: scale(.94); }
.ly-src-ref a:focus-visible, .ly-src-line a:focus-visible { outline-offset: 3px; }
.ly-src-ref a:active, .ly-src-line a:active, .ly-prose a:active, .ly-faq a:active, .ly-credits a:active { opacity: .75; }
.ly-credits a:hover { color: var(--tt-navy-deep); text-decoration-thickness: 2px; }
.ly-faq summary:active { background: var(--line-soft); }
.ly-btn.primary:active { background: #12306f; }
.ly-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ly-hero-actions .tt-btn-ghost:active, .ly-hero-actions .tt-btn:active { transform: translateY(1px); }

/* a rail of stops on a dark background */
.ly-dark .ly-rail::before { background: rgba(123,224,236,.28); }
.ly-dark .ly-stop { color: rgba(255,255,255,.72); }
.ly-dark .ly-stop i { background: #0C2350; border-color: rgba(123,224,236,.55); color: #fff; }
.ly-dark .ly-stop:hover i { border-color: var(--tt-ice); }
.ly-dark .ly-stop.done i { background: rgba(0,200,220,.25); border-color: var(--tt-ice); }
.ly-dark .ly-stop[aria-current="step"] i { background: var(--tt-ice); border-color: var(--tt-ice); color: #06223f; box-shadow: 0 0 0 5px rgba(123,224,236,.22); }
.ly-dark .ly-stop[aria-current="step"] { color: #fff; }
.ly-dark .ly-stop:focus-visible i { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { .ly-related a:active, .ly-stop:active i { transform: none; } }

/* ── Lo Yihyeh page pieces ───────────────────────────────────── */
/* how the world forgot God: the meter and the era rail */
.ly-meter-k { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 700 .6rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--tt-ice); }
.ly-meter-k span:last-child { letter-spacing: .04em; text-transform: none; font-size: .78rem; font-weight: 600; color: #fff; }
.ly-meter-track { margin-top: 8px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; border: 1px solid rgba(123,224,236,.3); }
.ly-meter-fill { height: 100%; width: 50%; border-radius: 999px; background: linear-gradient(90deg, #ffcf70, #7BE0EC); transition: width .6s cubic-bezier(.4,.1,.2,1); }
.ly-meter-note { margin: 8px 0 16px; font-size: .74rem; color: rgba(255,255,255,.6); }
.ly-eras .ly-stop-y { white-space: nowrap; }
.ly-hist-panel { margin-top: 18px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); padding: clamp(14px, 3.2vw, 22px); }
.ly-hist-panel .ly-src { margin: 12px 0 0; box-shadow: none; }
.ly-hist-panel .ly-src + .ly-src { margin-top: 10px; }
.ly-hist-title { font: 700 1.16rem/1.3 var(--font-display); color: var(--accent-deep); margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .ly-meter-fill { transition: none; } }
.ly-care { margin-top: 26px; border-left: 4px solid var(--accent); }

/* keep the edge labels of a rail inside the box on phones */
@media (max-width: 560px) {
  .ly-stop:first-child[aria-current="step"] .ly-stop-y { left: 0; }
  .ly-stop:last-child[aria-current="step"] .ly-stop-y { right: 0; }
}
