/* ═══════════════════════════════════════════════════════════════
   TORAH INTER-BOOK CONNECTIONS — Shared Stylesheet
   Project Context · Connections Corner
   v1.0.0 — Covers hub + all book-pair pages
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --parchment: #faf8f4;
  --parchment-deep: #f3efe7;
  --parchment-warm: #f7f3eb;
  --ink: #2d3f5e;
  --ink-light: #607590;
  --ink-faint: #94a3b8;
  --ink-hairline: #d8d3c8;
  --white-card: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(45,63,94,.08);
  --shadow-md: 0 4px 14px rgba(45,63,94,.10);
  --shadow-lg: 0 8px 30px rgba(45,63,94,.12);
  --shadow-glow: 0 0 0 3px rgba(45,106,79,.12);

  /* ── Book palette ── */
  --gen:       #2d6a4f;  --gen-bg:   #ecfdf5;  --gen-border:   #a7f3d0;
  --exod:      #1e3a8a;  --exod-bg:  #eff6ff;  --exod-border:  #bfdbfe;
  --lev:       #9b2c2c;  --lev-bg:   #fef2f2;  --lev-border:   #fecaca;
  --num:       #6d28d9;  --num-bg:   #f5f3ff;  --num-border:   #ddd6fe;
  --deut:      #92400e;  --deut-bg:  #fffbeb;  --deut-border:  #fde68a;

  /* ── Category palette ── */
  --cat-creation-bg: #ecfdf5; --cat-creation: #166534;
  --cat-covenant-bg: #eff6ff; --cat-covenant: #1e40af;
  --cat-priesthood-bg: #fef2f2; --cat-priesthood: #991b1b;
  --cat-holiness-bg: #fdf4ff; --cat-holiness: #7e22ce;
  --cat-law-bg: #fefce8; --cat-law: #854d0e;
  --cat-eden-bg: #f0fdf4; --cat-eden: #15803d;
  --cat-blessing-bg: #fff7ed; --cat-blessing: #c2410c;
  --cat-wilderness-bg: #f5f3ff; --cat-wilderness: #6d28d9;
  --cat-judgment-bg: #fff1f2; --cat-judgment: #be123c;
  --cat-worship-bg: #fef9c3; --cat-worship: #a16207;
  --cat-image-bg: #e0f2fe; --cat-image: #0369a1;
  --cat-de-creation-bg: #fce7f3; --cat-de-creation: #9d174d;
  --cat-temple-bg: #fdf2f8; --cat-temple: #86198f;
  --cat-fruitful-bg: #d1fae5; --cat-fruitful: #065f46;
  --cat-promise-bg: #fef3c7; --cat-promise: #92400e;
}

/* ── Reset & base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gen); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   HERRINGBONE HERO
   ═══════════════════════════════════════════ */
.page-hdr {
  text-align: center;
  padding: 52px 20px 36px;
  position: relative;
  overflow: hidden;
}
.page-hdr > *:not(.hb-bg):not(.hb-vignette) {
  position: relative; z-index: 2;
}
.page-hdr::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,106,138,.35), transparent);
  z-index: 3;
}

.hb-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.hb-bg svg {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}

.hb-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(250,248,244,.08) 0%, rgba(250,248,244,.85) 100%),
    linear-gradient(to bottom, rgba(250,248,244,.72) 0%, rgba(250,248,244,0) 22%, rgba(250,248,244,0) 78%, rgba(250,248,244,.92) 100%);
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gen); margin-bottom: 10px;
}

.page-hdr h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.15; margin-bottom: 6px;
}
.page-hdr h1 b { color: var(--gen); }

.hebrew-title {
  font-size: 1.25rem; color: var(--ink-light);
  direction: rtl; font-style: italic;
  margin-bottom: 8px;
}

.page-hdr .subtitle {
  font-size: .93rem; color: var(--ink-light);
  max-width: 560px; margin: 0 auto; line-height: 1.6;
}

.hero-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 18px;
}
.div-arm { width: 40px; height: 1px; background: var(--ink-faint); opacity: .45; }
.div-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--gen); opacity: .55; }

/* ═══════════════════════════════════════════
   INFO PANEL
   ═══════════════════════════════════════════ */
.info-panel {
  max-width: 780px; margin: 0 auto 28px; padding: 18px 22px;
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-sm);
}
.info-panel summary {
  font-weight: 600; font-size: .9rem; color: var(--gen);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.info-panel summary::before { content: "ℹ️"; font-size: .95rem; }
.info-panel summary::after { content: "▸"; margin-left: auto; transition: transform .2s; }
.info-panel[open] summary::after { transform: rotate(90deg); }
.info-panel .body {
  margin-top: 12px; font-size: .86rem;
  color: var(--ink-light); line-height: 1.7;
}
.info-panel .body p + p { margin-top: 8px; }

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */
.tab-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px; max-width: 900px; margin: 0 auto 26px; padding: 0 16px;
}
.tab-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem; font-weight: 500;
  padding: 7px 18px; border-radius: 20px;
  border: 1.5px solid var(--ink-hairline);
  background: var(--white-card); color: var(--ink-light);
  cursor: pointer; transition: all .2s;
}
.tab-btn:hover { border-color: var(--ink); color: var(--ink); }
.tab-btn.active {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══════════════════════════════════════════
   NETWORK SVG
   ═══════════════════════════════════════════ */
.network-wrap {
  max-width: 880px; margin: 0 auto 32px; padding: 0 16px;
}
.network-svg-box {
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-md);
  padding: 16px; overflow: hidden;
}
.network-svg-box svg { width: 100%; height: auto; display: block; }

.net-arc { transition: stroke-opacity .25s, stroke-width .25s; }
.net-arc:hover, .net-arc.highlight {
  stroke-opacity: .7 !important; stroke-width: 6 !important;
  filter: drop-shadow(0 0 4px rgba(45,106,79,.2));
}

.net-legend {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  justify-content: center; margin-top: 14px;
  font-size: .76rem; color: var(--ink-light);
}
.net-legend span { display: flex; align-items: center; gap: 5px; }
.net-legend .dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   HUB TILES (on hub page)
   ═══════════════════════════════════════════ */
.hub-grid {
  max-width: 900px; margin: 0 auto 48px; padding: 0 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

/* ── Hub Tile — enhanced card with color ribbon ── */
.hub-tile {
  background: var(--white-card); border-radius: 12px;
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-sm);
  padding: 0; display: flex; flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
  text-decoration: none; color: inherit;
  overflow: hidden; position: relative;
  opacity: 0; animation: tileFadeUp .45s ease-out forwards;
}
.hub-tile:nth-child(1) { animation-delay: .05s; }
.hub-tile:nth-child(2) { animation-delay: .12s; }
.hub-tile:nth-child(3) { animation-delay: .19s; }
.hub-tile:nth-child(4) { animation-delay: .26s; }
.hub-tile:nth-child(5) { animation-delay: .33s; }

@keyframes tileFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Color ribbon bar at top */
.hub-tile::before {
  content: ''; display: block; height: 4px;
  background: var(--tile-accent, var(--gen));
  flex-shrink: 0;
}
.hub-tile[data-book="gen"]::before  { background: var(--gen); }
.hub-tile[data-book="exod"]::before { background: var(--exod); }
.hub-tile[data-book="lev"]::before  { background: var(--lev); }
.hub-tile[data-book="num"]::before  { background: var(--num); }
.hub-tile[data-book="deut"]::before { background: var(--deut); }

.hub-tile .tile-inner {
  padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1;
}

.hub-tile:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.09); transform: translateY(-4px);
  text-decoration: none;
}
.hub-tile[data-book="gen"]:hover  { border-color: var(--gen-border); }
.hub-tile[data-book="exod"]:hover { border-color: var(--exod-border); }
.hub-tile[data-book="lev"]:hover  { border-color: var(--lev-border); }
.hub-tile[data-book="num"]:hover  { border-color: var(--num-border); }
.hub-tile[data-book="deut"]:hover { border-color: var(--deut-border); }

.hub-tile .tile-pair {
  display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap;
}
.hub-tile .tile-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 4px; text-transform: uppercase;
}
.hub-tile .tile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
}
.hub-tile[data-book="gen"]  .tile-title { color: var(--gen); }
.hub-tile[data-book="exod"] .tile-title { color: var(--exod); }
.hub-tile[data-book="lev"]  .tile-title { color: var(--lev); }
.hub-tile[data-book="num"]  .tile-title { color: var(--num); }
.hub-tile[data-book="deut"] .tile-title { color: var(--deut); }

.hub-tile .tile-desc {
  font-size: .82rem; color: var(--ink-light); line-height: 1.6; flex: 1;
  min-height: 0;
}
.hub-tile .tile-count {
  font-size: .72rem; color: var(--ink-faint); font-weight: 500;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--ink-hairline);
}
.hub-tile .tile-status {
  display: inline-block; font-size: .65rem; font-weight: 600;
  padding: 2px 8px; border-radius: 3px; margin-left: 8px;
}
.status-live { background: #d1fae5; color: #065f46; }
.status-soon { background: #fef3c7; color: #92400e; }

/* ═══════════════════════════════════════════
   PAIR SECTIONS (on book-pair pages)
   ═══════════════════════════════════════════ */
.pairs-container {
  max-width: 880px; margin: 0 auto; padding: 0 16px 48px;
}

.pair-section {
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-sm);
  margin-bottom: 18px; overflow: hidden;
  transition: box-shadow .25s;
}
.pair-section:hover { box-shadow: var(--shadow-md); }

.pair-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: background .2s;
}
.pair-header:hover { background: var(--parchment-deep); }
.pair-section.open .pair-header { border-bottom-color: var(--ink-hairline); }

.pair-badges { display: flex; gap: 6px; flex-shrink: 0; }
.pair-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 4px; text-transform: uppercase;
}

.pair-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem; font-weight: 700; color: var(--ink); flex: 1;
}
.pair-count {
  font-size: .74rem; color: var(--ink-faint); font-weight: 500;
  white-space: nowrap;
}
.pair-arrow {
  font-size: .75rem; color: var(--ink-faint);
  transition: transform .25s; flex-shrink: 0;
}
.pair-section.open .pair-arrow { transform: rotate(90deg); }

.pair-body { display: none; padding: 0; }
.pair-section.open .pair-body { display: block; }

.pair-intro {
  padding: 14px 20px; font-size: .87rem;
  color: var(--ink-light); line-height: 1.65;
  border-bottom: 1px solid #f0ece4;
  background: var(--parchment);
}
.pair-intro em { color: var(--ink); font-weight: 500; }

/* ── Connection rows ── */
.conn-row {
  display: grid;
  grid-template-columns: minmax(100px, .9fr) 30px minmax(100px, .9fr);
  gap: 10px; align-items: start;
  padding: 14px 20px; border-bottom: 1px solid #f0ece4;
  font-size: .87rem; transition: background .15s;
}
.conn-row:last-child { border-bottom: none; }
.conn-row:hover { background: var(--parchment); }

.conn-cell { display: flex; flex-direction: column; gap: 3px; }
.conn-cell.left { text-align: right; align-items: flex-end; }
.conn-cell.right { text-align: left; align-items: flex-start; }

.conn-ref {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: .92rem;
}

.conn-link {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: .65rem; flex-shrink: 0; margin-top: 2px;
  background: var(--parchment-deep); color: var(--ink-faint);
}

.conn-desc {
  font-size: .82rem; color: var(--ink-light); line-height: 1.55;
}
.conn-hebrew {
  font-size: .78rem; color: var(--ink-faint);
  direction: rtl; font-style: italic;
}
.conn-category {
  display: inline-block; font-size: .66rem; font-weight: 600;
  padding: 2px 7px; border-radius: 3px; letter-spacing: .02em;
  margin-top: 2px;
}

/* Category chip colors */
.cat-creation    { background: var(--cat-creation-bg);    color: var(--cat-creation); }
.cat-covenant    { background: var(--cat-covenant-bg);    color: var(--cat-covenant); }
.cat-priesthood  { background: var(--cat-priesthood-bg);  color: var(--cat-priesthood); }
.cat-holiness    { background: var(--cat-holiness-bg);    color: var(--cat-holiness); }
.cat-law         { background: var(--cat-law-bg);         color: var(--cat-law); }
.cat-eden        { background: var(--cat-eden-bg);        color: var(--cat-eden); }
.cat-blessing    { background: var(--cat-blessing-bg);    color: var(--cat-blessing); }
.cat-wilderness  { background: var(--cat-wilderness-bg);  color: var(--cat-wilderness); }
.cat-judgment    { background: var(--cat-judgment-bg);     color: var(--cat-judgment); }
.cat-worship     { background: var(--cat-worship-bg);     color: var(--cat-worship); }
.cat-image       { background: var(--cat-image-bg);       color: var(--cat-image); }
.cat-de-creation { background: var(--cat-de-creation-bg); color: var(--cat-de-creation); }
.cat-temple      { background: var(--cat-temple-bg);      color: var(--cat-temple); }
.cat-fruitful    { background: var(--cat-fruitful-bg);    color: var(--cat-fruitful); }
.cat-promise     { background: var(--cat-promise-bg);     color: var(--cat-promise); }

/* ═══════════════════════════════════════════
   THEMATIC THREAD CARDS
   ═══════════════════════════════════════════ */
.threads-section {
  max-width: 880px; margin: 0 auto 48px; padding: 0 16px;
}
.thread-card {
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-sm);
  padding: 20px 22px; margin-bottom: 14px;
}
.thread-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 6px;
}
.thread-desc {
  font-size: .84rem; color: var(--ink-light); line-height: 1.6;
}
.thread-chain {
  display: flex; flex-wrap: wrap; gap: 4px 2px;
  align-items: center; margin-top: 10px;
}
.thread-chip {
  font-size: .7rem; font-weight: 600; padding: 3px 8px;
  border-radius: 4px; white-space: nowrap;
}
.thread-arrow { color: var(--ink-faint); font-size: .65rem; padding: 0 1px; }

/* ═══════════════════════════════════════════
   SOURCES
   ═══════════════════════════════════════════ */
.sources-list {
  max-width: 880px; margin: 0 auto; padding: 0 16px 48px;
}
.source-item {
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); padding: 14px 18px;
  margin-bottom: 10px;
}
.source-item .author { font-weight: 600; color: var(--ink); font-size: .9rem; }
.source-item .title { font-style: italic; color: var(--ink-light); font-size: .88rem; }
.source-item .detail { font-size: .8rem; color: var(--ink-faint); margin-top: 4px; }

/* ═══════════════════════════════════════════
   BACK NAV
   ═══════════════════════════════════════════ */
.back-nav {
  max-width: 880px; margin: 0 auto; padding: 12px 16px 0;
}
.back-nav a {
  font-size: .82rem; color: var(--gen); font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
}
.back-nav a::before { content: "←"; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.pc-footer {
  text-align: center; padding: 32px 20px;
  font-size: .78rem; color: var(--ink-faint);
  border-top: 1px solid var(--ink-hairline);
  margin-top: 20px;
}
.pc-footer a { color: var(--gen); }

/* ═══════════════════════════════════════════
   SECTION HEADINGS (inside pairs pages)
   ═══════════════════════════════════════════ */
.section-heading {
  max-width: 880px; margin: 32px auto 16px; padding: 0 16px;
}
.section-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--ink);
}
.section-heading p {
  font-size: .86rem; color: var(--ink-light);
  margin-top: 4px; line-height: 1.55;
}

/* Expand / Collapse all toggle */
.expand-all-bar {
  max-width: 880px; margin: 0 auto 12px; padding: 0 16px;
  display: flex; justify-content: flex-end;
}
.expand-all-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: .74rem; font-weight: 500;
  color: var(--ink-light); background: none;
  border: 1px solid var(--ink-hairline);
  border-radius: 16px; padding: 5px 14px;
  cursor: pointer; transition: all .2s;
}
.expand-all-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ═══════════════════════════════════════════
   STAT COUNTERS (top of pair pages)
   ═══════════════════════════════════════════ */
.stats-bar {
  max-width: 880px; margin: 0 auto 20px; padding: 0 16px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.stat-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--white-card);
  border: 1px solid var(--ink-hairline);
  border-radius: 20px; padding: 6px 14px;
  font-size: .78rem; color: var(--ink-light);
  box-shadow: var(--shadow-sm);
}
.stat-chip strong { color: var(--ink); font-weight: 700; }
.stat-chip .stat-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp .5s ease-out both;
}
.fade-up-d1 { animation-delay: .08s; }
.fade-up-d2 { animation-delay: .16s; }
.fade-up-d3 { animation-delay: .24s; }
.fade-up-d4 { animation-delay: .32s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .page-hdr { padding: 38px 16px 28px; }
  .page-hdr h1 { font-size: 1.8rem; }
  .tab-bar { gap: 4px; }
  .tab-btn { font-size: .74rem; padding: 6px 12px; }
  .conn-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .conn-cell.left { text-align: left; align-items: flex-start; }
  .conn-link { display: none; }
  .hub-grid { grid-template-columns: 1fr; }
  .pair-header { padding: 14px 16px; gap: 8px; }
  .pair-title { font-size: 1rem; }
  .network-svg-box { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-tile { animation: none; opacity: 1; }
}

/* ═══════════════════════════════════════════
   PRODUCTION ALIGNMENT — added for parity
   ═══════════════════════════════════════════ */
.page-hdr::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,106,138,.35), transparent);
}

/* Production-spec vignette (override) — subtle herringbone texture visible */
.hb-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(250,248,244,.72) 0%, rgba(250,248,244,.92) 100%),
    linear-gradient(to bottom, rgba(250,248,244,.82) 0%, rgba(250,248,244,.65) 25%, rgba(250,248,244,.65) 75%, rgba(250,248,244,.92) 100%);
}

/* ═══════════════════════════════════════════
   MISSING / ENHANCED STYLES
   ═══════════════════════════════════════════ */

/* Network node hover */
.net-node { transition: transform .2s; }
.net-node:hover { transform: scale(1.08); }
.net-node circle { transition: stroke-width .2s, filter .2s; }
.net-node:hover circle { stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(45,106,79,.2)); }

/* Page summary cards (top of each book page) */
.page-summary {
  max-width: 880px; margin: 0 auto 24px; padding: 0 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.summary-card {
  background: var(--white-card); border-radius: var(--radius-sm);
  border: 1px solid var(--ink-hairline); padding: 14px 16px;
  text-align: center; transition: box-shadow .2s;
}
.summary-card:hover { box-shadow: var(--shadow-md); }
.summary-card .sc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 700; line-height: 1;
}
.summary-card .sc-label {
  font-size: .75rem; color: var(--ink-light); margin-top: 4px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}

/* Where threads lead callout */
.threads-lead {
  background: var(--deut-bg); border: 1.5px solid var(--deut-border);
  border-radius: var(--radius); padding: 24px 26px;
  max-width: 880px; margin: 0 auto 36px;
}
.threads-lead h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 700; color: var(--deut); margin-bottom: 10px;
}
.threads-lead p {
  font-size: .88rem; color: var(--ink); line-height: 1.7; margin-bottom: 10px;
}
.threads-lead p:last-child { margin-bottom: 0; }
.threads-lead .lead-italic {
  color: var(--ink-light); font-style: italic;
}

/* Methodology cards */
.method-card {
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-sm);
  padding: 20px 22px; margin-bottom: 14px;
}
.method-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 6px;
}
.method-card p {
  font-size: .84rem; color: var(--ink-light); line-height: 1.65;
}
.method-card em { color: var(--ink); font-weight: 500; }

/* ═══════════════════════════════════════════
   SECTION DIVIDER — decorative break between major areas
   ═══════════════════════════════════════════ */
.section-divider {
  max-width: 880px; margin: 0 auto;
  padding: 20px 16px 28px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.section-divider .sd-line {
  flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-hairline), transparent);
}
.section-divider .sd-ornament {
  display: flex; gap: 5px;
}
.section-divider .sd-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-faint); opacity: .5;
}
.section-divider .sd-dot.accent { background: var(--gen); opacity: .65; width: 5px; height: 5px; }

/* ═══════════════════════════════════════════
   SECTION HEADING — styled (replaces inline styles)
   ═══════════════════════════════════════════ */
.content-heading {
  max-width: 880px; margin: 0 auto; padding: 0 16px 18px;
}
.content-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em;
}
.content-heading h2::after {
  content: '';
  display: block; width: 48px; height: 2.5px;
  background: linear-gradient(90deg, var(--gen), var(--exod));
  border-radius: 2px; margin-top: 8px; opacity: .6;
}
.content-heading p {
  font-size: .88rem; color: var(--ink-light); line-height: 1.6;
  margin-top: 6px; max-width: 620px;
}

/* ═══════════════════════════════════════════
   PROSE CARDS — "Torah as Unified Work" section
   Differentiated from thread cards with left accent
   ═══════════════════════════════════════════ */
.prose-card {
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-sm);
  padding: 22px 24px 22px 28px; margin-bottom: 14px;
  position: relative; overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.prose-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3.5px;
  background: linear-gradient(180deg, var(--gen) 0%, var(--exod) 50%, var(--deut) 100%);
  opacity: .45;
}
.prose-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.prose-card:hover::before { opacity: .75; }

.prose-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem; font-weight: 700; margin-bottom: 8px;
  color: var(--ink);
}
.prose-card p {
  font-size: .84rem; color: var(--ink-light); line-height: 1.65;
}

/* ═══════════════════════════════════════════
   THREAD CARDS — enhanced with book-color accents
   ═══════════════════════════════════════════ */
.thread-card {
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-sm);
  padding: 20px 22px; margin-bottom: 14px;
  transition: box-shadow .25s, transform .25s;
  position: relative;
}
.thread-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.thread-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 6px;
  color: var(--ink);
}
.thread-card h3::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--gen); opacity: .5;
  margin-right: 8px; vertical-align: middle;
  transform: rotate(45deg);
}

/* Thread chain — polished chips */
.thread-chain {
  display: flex; flex-wrap: wrap; gap: 4px 2px;
  align-items: center; margin-top: 12px;
  padding: 12px 14px;
  background: var(--parchment-deep);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200,195,180,.35);
}
.thread-chip {
  font-size: .7rem; font-weight: 600; padding: 4px 10px;
  border-radius: 5px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s;
}
.thread-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.thread-arrow { color: var(--ink-faint); font-size: .65rem; padding: 0 2px; }

/* ═══════════════════════════════════════════
   HERO ENHANCEMENTS — more depth
   ═══════════════════════════════════════════ */
.page-hdr {
  text-align: center;
  padding: 56px 20px 40px;
  position: relative; overflow: hidden;
  background: linear-gradient(175deg, var(--parchment) 0%, var(--parchment-warm) 40%, var(--parchment-deep) 100%);
}

.page-hdr .subtitle {
  font-size: .93rem; color: var(--ink-light);
  max-width: 580px; margin: 0 auto; line-height: 1.65;
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gen); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(45,106,79,.06); border: 1px solid rgba(45,106,79,.15);
  padding: .3rem .9rem; border-radius: 999px;
}

.hebrew-title {
  font-size: 1.25rem; color: var(--ink-light);
  direction: rtl; font-style: italic;
  margin-bottom: 12px; letter-spacing: .04em;
}

/* ═══════════════════════════════════════════
   HUB TILE ENHANCEMENTS — richer hover states
   ═══════════════════════════════════════════ */
.hub-tile::before {
  content: ''; display: block; height: 4px;
  background: var(--tile-accent, var(--gen));
  flex-shrink: 0;
  transition: height .25s;
}
.hub-tile:hover::before { height: 5px; }

.hub-tile .tile-desc {
  font-size: .82rem; color: var(--ink-light); line-height: 1.65; flex: 1;
}

/* ═══════════════════════════════════════════
   INFO PANEL — richer styling
   ═══════════════════════════════════════════ */
.info-panel {
  max-width: 780px; margin: 0 auto 28px; padding: 18px 22px;
  background: linear-gradient(135deg, var(--white-card) 0%, var(--parchment-warm) 100%);
  border-radius: var(--radius); border: 1px solid var(--ink-hairline);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════
   BIBLIOGRAPHY ENHANCEMENTS
   ═══════════════════════════════════════════ */
.bibliography-section {
  background: var(--white-card); border-radius: var(--radius);
  border: 1px solid var(--ink-hairline); box-shadow: var(--shadow-sm);
  margin-bottom: 32px; overflow: hidden;
}
.bibliography-section summary {
  padding: 18px 22px; cursor: pointer; list-style: none;
}
.bibliography-section summary::-webkit-details-marker { display: none; }
.bibliography-header { display: flex; align-items: center; }
.bibliography-inner { display: flex; align-items: center; gap: 14px; width: 100%; }
.bibliography-icon { font-size: 1.3rem; flex-shrink: 0; }
.bibliography-text { flex: 1; }
.bibliography-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0;
}
.bibliography-subtitle {
  font-size: .82rem; color: var(--ink-light); line-height: 1.55; margin: 4px 0 0;
}
.expand-indicator {
  color: var(--ink-faint); transition: transform .25s; flex-shrink: 0;
}
.bibliography-section[open] .expand-indicator { transform: rotate(180deg); }
.bibliography-content { padding: 0 22px 22px; }
.source-category { margin-bottom: 20px; }
.source-category h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 700; color: var(--ink);
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 1px solid var(--ink-hairline);
}
.source-entry {
  padding: 10px 0; border-bottom: 1px solid rgba(216,211,200,.4);
}
.source-entry:last-child { border-bottom: none; }
.source-citation { font-size: .85rem; color: var(--ink); line-height: 1.55; }
.source-citation em { color: var(--ink-light); }
.source-usage {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 5px;
}
.usage-tag {
  font-size: .66rem; font-weight: 600; padding: 2px 8px;
  border-radius: 3px; background: var(--gen-bg); color: var(--gen);
}
.usage-note {
  font-size: .78rem; color: var(--ink-faint); line-height: 1.5;
}
.citation-note {
  margin-top: 16px; padding: 14px 16px;
  background: var(--parchment-deep); border-radius: var(--radius-sm);
  font-size: .82rem; color: var(--ink-light); line-height: 1.55;
}
.citation-note p + p { margin-top: 6px; }