/* ============================================================
   Parshat Noach: Inside the Teva — torahtech.co/noach
   Program theme. Loads AFTER shared.css and tt-brand.css.
   Base blocks are the same shape as /adam, /sefirot, /names and
   /tefillot (prefix nc-). Page pieces: the size widget, the
   Name in the measurements, the ark cutaway, the year in the ark.
   ============================================================ */
: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) ──────────────── */
.nc-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);
}
.nc-home { flex: none; display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.nc-home .nc-kicker { font: 700 .62rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); opacity: .8; }
.nc-home > span:last-child { font: 600 .95rem/1.2 var(--font-display); color: var(--accent-deep); margin-top: 2px; }
.nc-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%);
}
.nc-toc::-webkit-scrollbar { display: none; }
.nc-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;
}
.nc-toc a:hover { background: var(--surface-2); border-color: var(--line); color: var(--accent-deep); }
.nc-toc a.on { background: var(--accent-deep); color: #fff; }
.nc-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;
}
.nc-btn:hover { background: var(--surface-2); transform: translateY(-1px); border-color: var(--accent-soft); }
.nc-btn:active { transform: translateY(0); }
.nc-btn[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.nc-btn .he { font-family: var(--font-hebrew); font-size: .95rem; }
@media (max-width: 620px) {
  .nc-home { display: none; }
  .nc-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. */
.nc-faq summary:focus-visible, .nc-seg button:focus-visible, .nc-toc a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: -3px; }
.nc-seg button[aria-pressed="true"]:focus-visible, .nc-toc a.on:focus-visible { outline-color: #fff; }
.nc-seg button:first-child { border-radius: 999px 0 0 999px; }
.nc-seg button:last-child { border-radius: 0 999px 999px 0; }

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

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

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

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

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

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

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

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

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

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

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


/* ── Gematria tiles ──────────────────────────────────────────── */
.nc-gem { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 22px 0; }
.nc-gem-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 16px 18px; text-align: center; min-width: 220px; }
.nc-gem-card.off { opacity: .78; }
.nc-gem-cap { font: 700 .58rem/1.4 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }
.nc-gem-row { display: flex; gap: 6px; justify-content: center; align-items: center; direction: rtl; margin-top: 10px; }
.nc-tile { width: 46px; border-radius: 10px; background: var(--tt-grad-deep); color: #fff; padding: 6px 0 5px; }
.nc-tile b { display: block; font: 700 1.5rem/1.1 var(--font-hebrew); }
.nc-tile span { display: block; font: 700 .7rem/1 var(--font-display); color: var(--tt-ice); margin-top: 3px; }
.nc-gem-op { font: 700 1rem/1 var(--font-display); color: var(--muted); }
.nc-gem-sum { font: 700 1.6rem/1 var(--font-display); color: var(--accent-deep); margin-top: 10px; }
.nc-gem-card.gold .nc-gem-sum { color: #b07a10; }

/* ── Lens list (one blessing, several readings) ──────────────── */
.nc-lens { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: clamp(14px, 3.4vw, 24px); }
.nc-lens .nc-ctl { justify-content: center; margin-bottom: 8px; }
.nc-lens .nc-chip { color: var(--accent-deep); border-color: var(--line); background: var(--surface-2); }
.nc-lens .nc-chip:hover { background: rgba(94,144,227,.14); border-color: var(--accent-soft); }
.nc-lens .nc-chip[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.nc-lens .nc-chip:focus-visible { outline-color: var(--accent); }
.nc-lens-who { text-align: center; font-size: .92rem; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; margin: 6px auto 14px; min-height: 3.2em; }
.nc-lens-rows { display: grid; gap: 0; }
.nc-lrow { display: grid; grid-template-columns: 34px minmax(130px, 210px) minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-soft); transition: opacity .2s; }
.nc-lrow-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem/1 var(--font-display); color: #fff; background: var(--tt-grad-header); }
.nc-lrow-he { font: 600 1.18rem/1.45 var(--font-hebrew); color: var(--ink); direction: rtl; text-align: right; }
.nc-lrow-en { font-size: .78rem; color: var(--muted); margin-top: 2px; text-align: right; }
.nc-lrow-text { font-size: .93rem; line-height: 1.65; color: var(--ink-soft); }
.nc-lrow-text .he { font-family: var(--font-hebrew); font-size: 1.05rem; color: var(--ink); direction: rtl; unicode-bidi: isolate; }
.nc-lrow.off { opacity: .45; }
.nc-lrow.off .nc-lrow-n { background: var(--line); color: var(--muted); }
@media (max-width: 560px) {
  .nc-lrow { grid-template-columns: 30px minmax(0, 1fr); }
  .nc-lrow-text { grid-column: 2; }
  .nc-lrow-he, .nc-lrow-en { text-align: left; }
  .nc-lrow-he { direction: rtl; text-align: right; }
}

/* ── The trail (a timeline stepper) ──────────────────────────── */
.nc-trail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: clamp(14px, 3.4vw, 24px); }
.nc-rail { position: relative; display: flex; justify-content: space-between; gap: 4px; padding: 6px 4px 0; }
.nc-rail::before { content: ''; position: absolute; left: 18px; right: 18px; top: 20px; height: 2px; background: var(--line); }
.nc-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);
}
.nc-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; }
.nc-stop:hover i { transform: scale(1.1); border-color: var(--accent); }
.nc-stop.done i { background: #dbe7fb; border-color: var(--accent); }
.nc-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); }
.nc-stop[aria-current="step"] { color: var(--accent-deep); }
.nc-stop:focus-visible { outline: none; }
.nc-stop:focus-visible i { outline: 2px solid var(--accent); outline-offset: 3px; }
.nc-stop-y { white-space: nowrap; }
@media (max-width: 560px) { .nc-stop-y { display: none; } .nc-stop[aria-current="step"] .nc-stop-y { display: block; position: absolute; top: 40px; } .nc-rail { padding-bottom: 16px; } }
.nc-trail-panel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.nc-step-when { font: 700 .58rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nc-step-who { font: 700 1.16rem/1.3 var(--font-display); color: var(--accent-deep); margin-top: 6px; }
.nc-step-text { font-size: .98rem; line-height: 1.72; color: var(--ink-soft); margin: 8px 0 0; }
.nc-trail .nc-src { margin: 14px 0 0; box-shadow: none; }
.nc-flow-nav { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ── Spark cards ─────────────────────────────────────────────── */
.nc-sparks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.nc-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; }
.nc-spark:hover { transform: translateY(-6px); box-shadow: var(--tt-shadow-lift); border-color: var(--accent-soft); }
.nc-spark-k { font: 700 .56rem/1.4 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.nc-spark h3 { font: 700 1.05rem/1.3 var(--font-display); color: var(--accent-deep); margin: 6px 0 8px; }
.nc-spark p { font-size: .9rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 8px; }
.nc-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; }
.nc-spark-src { font: 700 .56rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-top: 8px; }
.nc-spark-src a { color: var(--accent-deep); text-transform: none; letter-spacing: .02em; font-size: .72rem; }

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

/* ── Print / PDF ─────────────────────────────────────────────────
   Interactive pieces drop out; static mounts (filled by tefillot.js) show the
   whole prayer with its translation, every reading and every stop of the trail. */
.nc-print-only { display: none; }
@media print { .nc-screen-only { display: none !important; } }
.nc-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.nc-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, .nc-bar, .nc-hero-actions, .tt-band, #more,
  .nc-size, .nc-lens, .nc-trail, .nc-ark, .nc-year, .nc-skel { display: none !important; }
  .nc-print-only { display: block !important; }
  .nc-src-he, .nc-src-en { display: block !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .nc-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; }
  .nc-print-head { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 10pt; font: 600 9pt var(--font-body); color: #555; }
  .nc-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; }
  .nc-wrap { max-width: none; padding: 0; }
  .nc-section { margin: 20pt 0 0; }
  .nc-section > .tt-eyebrow { margin-bottom: 4pt; color: #1C47A5; display: block !important; text-align: center; break-after: avoid; }
  .nc-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; }
  .nc-section > h2::after { display: none; }
  .nc-sub { color: #444; font-size: 9.5pt; margin: 6pt auto 10pt; break-after: avoid; }
  .nc-prose { font-size: 10.5pt; line-height: 1.55; color: #111; }
  .nc-prose p { margin: 0 0 7pt; orphans: 3; widows: 3; }
  .nc-panel { background: none !important; border: 1px solid #cfdcf0; padding: 10pt 12pt; }
  .nc-guard-item, .nc-spark, .nc-gem-card { break-inside: avoid; }
  .nc-guard-n { background: none !important; color: #1C47A5; border: 1.5pt solid #1C47A5; }
  .nc-src, .nc-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; }
  .nc-src-he, .nc-src.deep .nc-src-he { color: #111; text-align: right; font-size: 13pt; line-height: 1.7; padding: 8pt 12pt 2pt; }
  .nc-src-en, .nc-src.deep .nc-src-en { color: #333; text-align: left; font-size: 11pt; line-height: 1.45; padding: 2pt 12pt 2pt; }
  .nc-src-ref, .nc-src.deep .nc-src-ref { background: none !important; color: #1C47A5; border-top: 1px solid #e9eef6; justify-content: flex-start; margin-top: 6pt; padding: 5pt 12pt; }
  .nc-tile { background: none !important; color: #111; border: 1px solid #1C47A5; }
  .nc-tile span { color: #1C47A5; }
  .nc-sparks { display: block; }
  .nc-spark { border: 0; border-bottom: 1px solid #e9eef6; border-radius: 0; padding: 6pt 0; }
  .nc-faq details { border: 0; border-bottom: 1px solid #e9eef6; border-radius: 0; margin: 0; break-inside: avoid; }
  .nc-faq summary { padding: 8pt 0 2pt; background: none !important; font-size: 10.5pt; }
  .nc-faq summary::after { display: none; }
  .nc-faq-body { padding: 0 0 8pt; font-size: 10pt; color: #222; }
  .nc-credits { margin: 18pt 0 0; padding: 8pt 0 0; font-size: 8.5pt; color: #555; text-align: left; }
  .nc-print-foot { margin-top: 8pt; font: 600 8.5pt var(--font-body); color: #1C47A5; }
  .nc-p-item { border-bottom: 1px solid #e9eef6; padding: 6pt 0; break-inside: avoid; }
  .nc-p-head { color: #1C47A5; font-size: 10.5pt; font-weight: 700; }
  .nc-p-he { font-family: var(--font-hebrew); font-size: 13pt; line-height: 1.7; text-align: right; direction: rtl; margin: 2pt 0; }
  .nc-p-note { font-size: 9.5pt; color: #333; margin-top: 3pt; line-height: 1.45; }
}

/* a subheading inside a section */
.nc-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 { .nc-h3 { font-size: 12.5pt; margin: 12pt 0 4pt; break-after: avoid; } }

/* ── Shared controls ─────────────────────────────────────────── */
.nc-ctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nc-ctl-label { font: 700 .56rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-right: 2px; }
.nc-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;
}
.nc-chip:hover { background: rgba(0,200,220,.22); border-color: var(--tt-ice); transform: translateY(-1px); }
.nc-chip:active { transform: translateY(0); }
.nc-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nc-chip[aria-pressed="true"] { background: var(--tt-ice); border-color: var(--tt-ice); color: #06223f; }
.nc-light .nc-chip { color: var(--accent-deep); border-color: var(--line); background: var(--surface-2); }
.nc-light .nc-chip:hover { background: rgba(94,144,227,.14); border-color: var(--accent-soft); }
.nc-light .nc-chip[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.nc-light .nc-chip:focus-visible { outline-color: var(--accent); }
.nc-light .nc-ctl-label { color: var(--muted); }
.nc-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);
}
.nc-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: clamp(14px, 3.4vw, 24px); }
.nc-detail { margin-top: 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); padding: clamp(14px, 3.2vw, 20px); }
.nc-detail h3 { font: 700 1.1rem/1.3 var(--font-display); color: var(--accent-deep); margin: 0 0 6px; }
.nc-detail p { font-size: .95rem; line-height: 1.68; color: var(--ink-soft); margin: 6px 0 0; }
.nc-detail .nc-src { margin: 12px 0 0; box-shadow: none; }
.nc-btn[disabled] { opacity: .45; cursor: default; transform: none; }
.nc-btn.primary { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; padding-inline: 16px; }
.nc-btn.primary:hover { background: #163a8a; }
body.nc-no-he .nc-src-he, body.nc-no-he .nc-he-opt { display: none; }
body.nc-no-en .nc-src-en { display: none; }

/* ── 1. The size ─────────────────────────────────────────────── */
.nc-size-top { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(123,224,236,.18); }
.nc-scene { position: relative; margin-top: 14px; }
.nc-scene svg { display: block; width: 100%; height: auto; }
.nc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.nc-stat { text-align: center; padding: 12px 6px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(123,224,236,.16); }
.nc-stat b { display: block; font: 700 clamp(1.4rem, 4.6vw, 2.1rem)/1 var(--font-display); color: var(--tt-cyan); font-variant-numeric: tabular-nums; }
.nc-stat span { display: block; margin-top: 6px; font: 700 .56rem/1.35 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nc-stat i { display: block; font-style: normal; margin-top: 4px; font: 600 .78rem/1.3 var(--font-body); color: rgba(255,255,255,.62); }
.nc-size-note { margin: 12px 0 0; font-size: .86rem; line-height: 1.6; color: rgba(255,255,255,.75); }

/* ── 2. The Name in the measurements ─────────────────────────── */
.nc-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 4px; }
.nc-dim { border-radius: 14px; padding: 14px 10px 12px; text-align: center; background: var(--tt-grad-deep); color: #fff; box-shadow: 0 10px 24px rgba(12,35,80,.22); }
.nc-dim-k { font: 700 .56rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--tt-ice); }
.nc-dim-n { font: 700 clamp(1.7rem, 5vw, 2.4rem)/1.1 var(--font-display); margin-top: 4px; }
.nc-dim-f { margin-top: 8px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; direction: rtl; }
.nc-dim-f .t { display: inline-grid; place-items: center; min-width: 34px; padding: 3px 6px 2px; border-radius: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(123,224,236,.35); }
.nc-dim-f .t b { font: 700 1.15rem/1.1 var(--font-hebrew); }
.nc-dim-f .t small { font: 700 .6rem/1 var(--font-display); color: var(--tt-ice); }
.nc-dim-f .op { font: 700 .9rem/1 var(--font-display); color: rgba(255,255,255,.7); direction: ltr; }
.nc-dim-f .gold { background: rgba(255,207,112,.18); border-color: rgba(255,207,112,.6); }
.nc-name-out { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .96rem; line-height: 1.7; color: var(--ink-soft); min-height: 7em; }
.nc-name-out b { color: var(--accent-deep); }
.nc-name-out .nc-src { margin: 12px 0 0; box-shadow: none; }
@media (max-width: 520px) { .nc-dims { gap: 6px; } .nc-dim { padding: 10px 4px; } .nc-dim-f .t { min-width: 28px; padding: 2px 4px; } .nc-dim-f .t b { font-size: 1rem; } }

/* ── 3. The ark cutaway ──────────────────────────────────────── */
.nc-ark-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.nc-ark-stage { position: relative; margin-top: 14px; }
.nc-ark-stage svg { display: block; width: 100%; height: auto; }
.nc-deck-label { font: 700 13px var(--font-body); letter-spacing: .04em; fill: #fff; }
.nc-hot {
  position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%;
  appearance: none; cursor: pointer; border: 2px solid #fff; background: var(--tt-cyan); color: #06223f;
  font: 700 .9rem/1 var(--font-display); box-shadow: 0 0 0 6px rgba(0,200,220,.25), 0 6px 14px rgba(0,0,0,.3);
  transition: transform .15s, box-shadow .2s, background .15s;
}
.nc-hot:hover { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 9px rgba(0,200,220,.25), 0 6px 14px rgba(0,0,0,.3); }
.nc-hot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.nc-hot[aria-pressed="true"] { background: #ffcf70; box-shadow: 0 0 0 7px rgba(255,207,112,.35), 0 0 20px rgba(255,207,112,.7); }
.nc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .8rem; color: rgba(255,255,255,.8); }
.nc-legend b { color: var(--tt-ice); }

/* ── 4. The year in the ark ──────────────────────────────────── */
.nc-year .nc-scene { border-radius: 14px; overflow: hidden; margin-top: 0; }
.nc-year-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 4px; }
.nc-year-date b { font: 700 1.25rem/1.2 var(--font-display); color: var(--accent-deep); }
.nc-year-date span { font: 600 1.05rem/1.2 var(--font-hebrew); color: var(--ink); direction: rtl; }
.nc-water { transition: transform .8s cubic-bezier(.4,.1,.2,1); }
.nc-arkpos { transition: transform .8s cubic-bezier(.4,.1,.2,1); }
.nc-bird { transition: opacity .4s; }
@media (prefers-reduced-motion: reduce) { .nc-water, .nc-arkpos, .nc-hot { transition: none; } .nc-hot:hover { transform: translate(-50%, -50%); } }
@media print {
  .nc-print-only { display: block !important; }
}
.nc-src-line { margin: 12px 0 0; font: 700 .6rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.nc-src-line a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.nc-src-line a:hover { color: var(--tt-navy-deep); border-bottom-color: var(--accent-deep); }
