@import url("./background-settings.css?v=72");

/* S-Model Atlas static skeleton v0.2
   Static public stylesheet.
*/

:root {
  --bg: #0b0812;
  --bg-soft: #120d1d;
  --panel: #181123;
  --panel-2: #100b18;
  --text: #f4f0ff;
  --muted: #b9b0c9;
  --faint: #807895;
  --line: rgba(244,240,255,.12);
  --line-strong: rgba(244,240,255,.20);
  --accent: #b99cff;
  --accent-strong: #8b5cf6;
  --accent-2: #8debe6;
  --accent-3: #f0a6d8;
  --danger: #ff8cba;
  --ok: #9be7c3;
  --shadow: 0 24px 70px rgba(0,0,0,.36);
  --radius: 24px;
  --max: 1180px;
  --body-bg:
    radial-gradient(circle at 15% -10%, rgba(185,156,255,.20), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(141,235,230,.12), transparent 31rem),
    linear-gradient(180deg, #090611 0%, var(--bg) 38%, #08050d 100%);
  color-scheme: dark;
}

:root.theme-light,
:root[data-theme="light"] {
  --bg: #fbf8ff;
  --bg-soft: #f1eaff;
  --panel: #ffffff;
  --panel-2: #f8f2ff;
  --text: #211932;
  --muted: #615872;
  --faint: #80748f;
  --line: rgba(57,43,81,.14);
  --line-strong: rgba(57,43,81,.24);
  --accent: #7c4dff;
  --accent-strong: #5b21b6;
  --accent-2: #0f9f9a;
  --accent-3: #be4b91;
  --danger: #b42363;
  --ok: #147d5a;
  --shadow: 0 24px 70px rgba(49,35,78,.16);
  --body-bg:
    radial-gradient(circle at 15% -10%, rgba(185,156,255,.28), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(141,235,230,.20), transparent 31rem),
    linear-gradient(180deg, #ffffff 0%, #fbf8ff 45%, #f4ecff 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--body-bg);
}

a { color: inherit; text-decoration: none; }

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--accent);
  color: #0b0e13;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(185,156,255,.28), rgba(141,235,230,.08));
  box-shadow: 0 0 24px rgba(185,156,255,.18);
}

.brand-mark svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.hero {
  padding: 92px 0 58px;
}

.page-hero {
  padding: 86px 0 54px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  border: 1px solid rgba(185,156,255,.25);
  background: rgba(185,156,255,.07);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: 42px;
  align-items: center;
}

h1, h2, h3 { line-height: 1.06; margin: 0; }

h1 {
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -.065em;
  max-width: 930px;
}

.page-title {
  font-size: clamp(44px, 7vw, 78px);
  letter-spacing: -.055em;
  max-width: 980px;
}

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
}

.button.primary {
  border-color: rgba(185,156,255,.52);
  background: linear-gradient(135deg, rgba(185,156,255,.26), rgba(185,156,255,.1));
  box-shadow: 0 14px 46px rgba(185,156,255,.10);
}

.button:hover { transform: translateY(-1px); }

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}

.diagram-wrap {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
  padding: 16px;
}

.caption {
  color: var(--faint);
  font-size: 13px;
  margin-top: 12px;
}

.section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.section.no-border { border-top: none; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(280px, .48fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.045em;
}

.section-copy {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  padding: 24px;
  min-height: 100%;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  opacity: .7;
}

.card h3 {
  font-size: 21px;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.plain-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.plain-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(185,156,255,.35);
}

.warning .dot { background: var(--danger); box-shadow: 0 0 18px rgba(255,140,140,.35); }
.affirm .dot { background: var(--ok); box-shadow: 0 0 18px rgba(155,231,195,.28); }

.map-panel {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel-2);
  padding: 24px;
  box-shadow: var(--shadow);
}

.layer-map {
  width: 100%;
  min-height: 410px;
  display: block;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.status .mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

.status.denied .mini-dot { background: var(--danger); }
.status.source .mini-dot { background: var(--ok); }
.status.structural .mini-dot { background: var(--accent); }

.quote-panel {
  border-left: 1px solid var(--accent);
  padding: 8px 0 8px 24px;
  color: var(--muted);
  font-size: 21px;
  max-width: 880px;
}

.ontology-line {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin-top: 24px;
}

.ontology-node {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  padding: 16px 14px;
  text-align: center;
}

.ontology-node strong {
  display: block;
  font-size: 22px;
  color: var(--text);
}

.ontology-node span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.operator {
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 24px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(280px, .3fr);
  gap: 24px;
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 18px;
}

.prose p { margin: 0 0 18px; }

.prose h2,
.prose h3 {
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 14px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  padding: 20px;
  position: sticky;
  top: 96px;
}

.side-panel h2,
.side-panel h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.side-panel ol,
.side-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.side-panel li + li { margin-top: 8px; }

.table-like {
  display: grid;
  gap: 10px;
}

.claim-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.032);
}

.claim-row strong {
  color: var(--text);
}

.claim-row span {
  color: var(--muted);
}

.footer {
  padding: 48px 0 70px;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.small {
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid,
  .section-head,
  .grid-2,
  .grid-3,
  .grid-4,
  .content-layout,
  .claim-row {
    grid-template-columns: 1fr;
  }
  .ontology-line { grid-template-columns: 1fr; }
  .operator { transform: rotate(90deg); }
  .side-panel { position: static; }
}

@media (max-width: 560px) {
  .shell { width: min(var(--max), calc(100% - 24px)); }
  .hero { padding-top: 56px; }
  .page-hero { padding-top: 56px; }
  h1 { font-size: 44px; }
  .page-title { font-size: 40px; }
  .section { padding: 58px 0; }
  .card, .hero-card, .map-panel { padding: 18px; }
}


/* Claim Bands page additions */

.hero-note {
  max-width: 860px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.content-section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  max-width: 920px;
  margin-bottom: 18px;
}

.content-section > .shell > p {
  max-width: 920px;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
}

.notice-card {
  border: 1px solid rgba(185,156,255,.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(185,156,255,.09), rgba(255,255,255,.025));
  padding: 22px;
  max-width: 920px;
  margin: 24px 0 28px;
}

.notice-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.notice-card p {
  color: var(--muted);
  margin: 0;
}

.claim-band-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.claim-band-card,
.guardrail-card,
.status-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  padding: 24px;
  overflow: hidden;
}

.claim-band-card::before,
.guardrail-card::before,
.status-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  opacity: .7;
}

.claim-band-card h3,
.guardrail-card h3,
.status-card h3 {
  font-size: 22px;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}

.claim-band-card p,
.guardrail-card p,
.status-card p {
  color: var(--muted);
  margin: 0 0 13px;
}

.claim-band-card p:last-child,
.guardrail-card p:last-child,
.status-card p:last-child {
  margin-bottom: 0;
}

.claim-band-card strong {
  color: var(--text);
}

.claim-band-card.warning {
  border-color: rgba(255,140,140,.34);
  background: linear-gradient(180deg, rgba(255,140,140,.075), rgba(255,255,255,.022));
}

.status-label {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  margin-bottom: 12px !important;
  color: var(--accent-2) !important;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rule-list {
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.rule-list.compact {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.rule-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  padding: 14px 16px 14px 42px;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(185,156,255,.35);
}

.rule-list strong {
  color: var(--text);
}

.guardrail-grid,
.status-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.guardrail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(141,235,230,.28);
  border-radius: 999px;
  background: rgba(141,235,230,.07);
  color: var(--accent-2) !important;
  padding: 7px 10px;
  margin-bottom: 14px !important;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.large-statement {
  max-width: 1000px !important;
  color: var(--text) !important;
  font-size: clamp(30px, 5vw, 54px) !important;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 18px 0 26px !important;
}

.closing-section {
  background:
    radial-gradient(circle at 30% 10%, rgba(185,156,255,.12), transparent 32rem),
    radial-gradient(circle at 80% 40%, rgba(141,235,230,.09), transparent 28rem);
}

@media (max-width: 980px) {
  .claim-band-list,
  .guardrail-grid,
  .status-grid,
  .rule-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .content-section {
    padding: 58px 0;
  }

  .hero-note {
    font-size: 16px;
  }

  .claim-band-card,
  .guardrail-card,
  .status-card,
  .notice-card {
    padding: 18px;
  }

  .status-label,
  .badge {
    white-space: normal;
    line-height: 1.35;
  }
}


/* Hebrew Interpreter scaffold */

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(280px, .32fr);
  gap: 24px;
  align-items: start;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  padding: 24px;
}

.tool-panel h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.tool-panel p {
  color: var(--muted);
  margin: 0 0 18px;
}

.tool-label {
  display: block;
  color: var(--text);
  font-weight: 750;
  margin: 18px 0 8px;
}

.tool-select,
.tool-textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.tool-textarea {
  min-height: 130px;
  resize: vertical;
  font-size: 34px;
  line-height: 1.35;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.tool-warning {
  margin-top: 22px;
}

.tool-result h3 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.tool-result h3:first-child {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
  font-size: 13px;
}

.tool-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.tool-stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  padding: 18px;
}

.tool-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}

.tool-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.route-line {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.032);
  padding: 18px;
  color: var(--muted);
  font-size: 20px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: rgba(255,255,255,.025);
}

.tool-table th,
.tool-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--muted);
}

.tool-table th {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(255,255,255,.04);
}

.tool-table tr:last-child td {
  border-bottom: none;
}

.hebrew-cell,
.hebrew-inline {
  font-size: 26px;
  color: var(--text);
  font-family: "Times New Roman", "Noto Serif Hebrew", serif;
}

.mini-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  margin: 0 4px 4px 0;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.tool-mini-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.032);
  padding: 16px;
}

.tool-mini-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.tool-mini-card p {
  color: var(--muted);
  margin: 0 0 8px;
}

@media (max-width: 980px) {
  .tool-layout,
  .tool-summary-grid,
  .tool-card-grid {
    grid-template-columns: 1fr;
  }
}


/* Symbolic Roots page v0.5 */

.symbolic-hero .hero-card { padding: 20px; }
.symbolic-tree-svg { width: 100%; display: block; min-height: 320px; }
.triad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.triad-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022)); padding: 26px; overflow: hidden; }
.triad-card::before, .sef-card::before, .channel-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); opacity: .7; }
.triad-index { display: inline-flex; width: fit-content; border: 1px solid rgba(185,156,255,.28); border-radius: 999px; color: var(--accent); padding: 6px 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; margin-bottom: 18px; }
.triad-card h3 { font-size: 28px; margin-bottom: 12px; }
.triad-card p { color: var(--muted); margin: 0; }
.level-ladder { display: grid; gap: 14px; }
.level-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: center; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.032); padding: 18px; }
.level-row > div { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; }
.level-number { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(185,156,255,.08); color: var(--accent); font-weight: 850; }
.level-row h3 { font-size: 22px; margin: 0; }
.level-row h3 + p { margin: 4px 0 0; color: var(--faint); font-size: 13px; }
.level-row > p { color: var(--muted); margin: 0; }
.muted-row { border-style: dashed; background: rgba(141,235,230,.035); }
.sefirot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sef-card { position: relative; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.032); padding: 18px; overflow: hidden; }
.sef-card strong { display: block; color: var(--text); font-size: 20px; margin-bottom: 3px; }
.sef-card span { color: var(--accent-2); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.sef-card p { margin: 12px 0 0; color: var(--muted); }
.channel-groups { display: grid; grid-template-columns: .85fr 1.05fr 1.25fr; gap: 18px; align-items: start; }
.channel-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022)); padding: 24px; overflow: hidden; }
.channel-card h3 { font-size: 24px; margin-bottom: 10px; }
.channel-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.channel-card li + li { margin-top: 7px; }
.channel-card strong { color: var(--text); }
.gate-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.gate-block { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.032); padding: 18px; }
.gate-block.accent { border-color: rgba(185,156,255,.35); background: rgba(185,156,255,.06); }
.gate-block strong { display: block; font-size: 24px; color: var(--text); }
.gate-block span { display: block; color: var(--accent-2); margin-top: 4px; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.gate-block p { color: var(--muted); margin: 12px 0 0; }
.symbolic-table td:first-child { color: var(--text); font-weight: 750; }
.symbolic-quote { margin-top: 26px; }
.notice-card.warning { border-color: rgba(255,140,140,.34); background: linear-gradient(180deg, rgba(255,140,140,.075), rgba(255,255,255,.022)); }
@media (max-width: 1100px) { .sefirot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .triad-grid, .channel-groups, .gate-panel, .sefirot-grid { grid-template-columns: 1fr; } .level-row { grid-template-columns: 1fr; } }


/* Symbolic Roots v0.6 — Sefer Yetzirah text-first */

.symbolic-hero.no-preview {
  padding: 92px 0 70px;
}

.sy-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  max-width: 980px;
  margin: 26px 0;
}

.sy-term {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  padding: 22px;
  text-align: center;
}

.sy-term strong {
  display: block;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1;
  color: var(--text);
}

.sy-term span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.depth-grid,
.seal-grid,
.witness-grid {
  display: grid;
  gap: 14px;
}

.depth-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.seal-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 18px;
}

.depth-card,
.seal-grid article,
.witness-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.032);
  padding: 18px;
}

.depth-card strong,
.seal-grid strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.depth-card span,
.seal-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.sy-groups {
  margin-bottom: 24px;
}

.witness-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.witness-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(185,156,255,.36);
  color: var(--accent);
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 14px;
}

.witness-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.witness-card p {
  color: var(--muted);
  margin: 0;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 750;
  font-size: 14px;
}

.deep-card {
  min-height: 230px;
}

.hebrew-title {
  font-family: "Times New Roman", "Noto Serif Hebrew", serif;
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .sy-equation,
  .depth-grid,
  .seal-grid,
  .witness-grid {
    grid-template-columns: 1fr;
  }
}


/* Sefirot filled studies v0.7 */

.classic-tree-card .diagram-wrap {
  max-height: 560px;
  overflow: hidden;
}

.classic-tree-svg {
  width: 100%;
  height: auto;
  display: block;
}

.classic-tree-svg text {
  paint-order: stroke;
  stroke: rgba(0,0,0,.22);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.sefirah-hero .hebrew-title {
  display: inline-block;
  margin-right: .18em;
}

.sefirah-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.sefirah-toc {
  top: 96px;
}

.sefirah-prose {
  display: grid;
  gap: 18px;
}

.sefirah-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding: 26px;
}

.sefirah-section h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 16px;
  letter-spacing: -.035em;
}

.sefirah-section p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 13px;
}

.sefirah-section p:last-child {
  margin-bottom: 0;
}

.deep-card .card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 750;
  font-size: 14px;
}

@media (max-width: 980px) {
  .sefirah-layout {
    grid-template-columns: 1fr;
  }
  .classic-tree-card .diagram-wrap {
    max-height: none;
  }
}


/* Authorial sefirah text v0.8 */

.sefirah-section p.indent-line {
  margin-left: 1.5rem;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  color: var(--muted);
}

.sefirah-section p {
  white-space: normal;
}

.sefirah-toc ol {
  padding-left: 1.1rem;
}


/* Authorial interpretation notice v0.9 */

.authorial-notice {
  border-color: rgba(185,156,255,.38);
  background: linear-gradient(180deg, rgba(185,156,255,.10), rgba(255,255,255,.024));
}

.authorial-section .card h3 {
  min-height: 2.2em;
}


/* v1.0 lilac palette, theme toggle, and authorial corpus cards */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--text);
  min-height: 40px;
  padding: 0 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.theme-toggle-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 42%, transparent);
}

.theme-light .theme-toggle-icon,
:root[data-theme="light"] .theme-toggle-icon {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-3));
}

.corpus-strip,
.corpus-grid {
  display: grid;
  gap: 18px;
}

.corpus-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.mini-corpus-card,
.corpus-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 82%, transparent), color-mix(in srgb, var(--panel-2) 75%, transparent));
  overflow: hidden;
}

.mini-corpus-card {
  padding: 22px;
}

.mini-corpus-card strong {
  display: block;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1;
  color: var(--accent);
}

.mini-corpus-card span {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-weight: 800;
}

.mini-corpus-card p,
.corpus-card p {
  color: var(--muted);
}

.corpus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.corpus-card {
  padding: 26px;
}

.corpus-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.featured-card {
  grid-row: span 2;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 750;
  font-size: 14px;
}

.authorial-home-section {
  background: radial-gradient(circle at 16% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 26rem);
}

:root[data-theme="light"] .hero-card,
.theme-light .hero-card,
.theme-light .card,
.theme-light .claim-row,
.theme-light .notice-card,
.theme-light .tool-panel,
.theme-light .side-panel,
.theme-light .sefirah-section,
.theme-light .corpus-card,
.theme-light .mini-corpus-card {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.66));
}

:root[data-theme="light"] .tool-select,
.theme-light .tool-select,
.theme-light .tool-textarea {
  background: rgba(255,255,255,.78);
}

:root[data-theme="light"] .tool-table th,
.theme-light .tool-table th {
  background: rgba(124,77,255,.08);
}

@media (max-width: 980px) {
  .theme-toggle-text { display: none; }
  .corpus-strip,
  .corpus-grid { grid-template-columns: 1fr; }
}


/* v1.1 theme fix and grounding tables */

:root[data-theme="light"] .hero-card,
:root[data-theme="light"] .card,
:root[data-theme="light"] .claim-row,
:root[data-theme="light"] .notice-card,
:root[data-theme="light"] .tool-panel,
:root[data-theme="light"] .side-panel,
:root[data-theme="light"] .sefirah-section,
:root[data-theme="light"] .corpus-card,
:root[data-theme="light"] .mini-corpus-card,
:root[data-theme="light"] .tool-stat {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.70));
}

.corpus-stats {
  margin: 24px 0;
}

.corpus-table-scroll {
  margin-top: 20px;
}

.grounding-table th,
.grounding-table td {
  white-space: normal;
}

.grounding-table td {
  min-width: 180px;
}

.grounding-table td:first-child {
  color: var(--text);
  font-weight: 800;
  min-width: 170px;
}

.spiritual-gates td:nth-child(2),
.reflex-gates td:nth-child(2) {
  color: var(--accent-2);
}

.proto-matrix td:not(:first-child) {
  min-width: 260px;
}

.architecture-strip .mini-corpus-card strong {
  color: var(--accent-strong);
}

.theme-toggle[data-current-theme="light"] .theme-toggle-icon {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-3));
}


/* Light-theme diagram contrast fix v1.2 */

:root[data-theme="light"] .diagram-wrap,
:root.theme-light .diagram-wrap,
:root[data-theme="light"] .map-panel,
:root.theme-light .map-panel {
  background: rgba(255,255,255,.70);
  border-color: rgba(64,42,105,.22);
  box-shadow: 0 18px 55px rgba(64,42,105,.12);
}

:root[data-theme="light"] .diagram-wrap svg,
:root.theme-light .diagram-wrap svg,
:root[data-theme="light"] .map-panel svg,
:root.theme-light .map-panel svg {
  color: var(--text);
}

:root[data-theme="light"] .diagram-wrap svg text,
:root.theme-light .diagram-wrap svg text,
:root[data-theme="light"] .map-panel svg text,
:root.theme-light .map-panel svg text {
  fill: var(--text) !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .diagram-wrap svg text[fill="#a7b0bf"],
:root.theme-light .diagram-wrap svg text[fill="#a7b0bf"],
:root[data-theme="light"] .map-panel svg text[fill="#a7b0bf"],
:root.theme-light .map-panel svg text[fill="#a7b0bf"] {
  fill: var(--muted) !important;
}

:root[data-theme="light"] .diagram-wrap svg [stroke^="rgba(255,255,255"],
:root.theme-light .diagram-wrap svg [stroke^="rgba(255,255,255"],
:root[data-theme="light"] .map-panel svg [stroke^="rgba(255,255,255"],
:root.theme-light .map-panel svg [stroke^="rgba(255,255,255"] {
  stroke: rgba(71,50,112,.34) !important;
}

:root[data-theme="light"] .diagram-wrap svg [fill^="rgba(255,255,255"],
:root.theme-light .diagram-wrap svg [fill^="rgba(255,255,255"],
:root[data-theme="light"] .map-panel svg [fill^="rgba(255,255,255"],
:root.theme-light .map-panel svg [fill^="rgba(255,255,255"] {
  fill: rgba(124,77,255,.08) !important;
}

:root[data-theme="light"] .diagram-wrap svg [stroke="rgba(132,215,255,.55)"],
:root.theme-light .diagram-wrap svg [stroke="rgba(132,215,255,.55)"],
:root[data-theme="light"] .map-panel svg [stroke="rgba(132,215,255,.55)"],
:root.theme-light .map-panel svg [stroke="rgba(132,215,255,.55)"] {
  stroke: rgba(15,159,154,.58) !important;
}

:root[data-theme="light"] .hero-card,
:root.theme-light .hero-card,
:root[data-theme="light"] .card,
:root.theme-light .card,
:root[data-theme="light"] .triad-card,
:root.theme-light .triad-card,
:root[data-theme="light"] .claim-band-card,
:root.theme-light .claim-band-card {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,242,255,.68));
}

/* 21 Gates of the Heart v1.2 */

.gate-formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin: 26px 0;
}

.heart-matrix th:first-child,
.heart-matrix td:first-child {
  min-width: 140px;
  color: var(--text);
  font-weight: 800;
}

.heart-matrix td strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
}

.heart-matrix td span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.heart-gate-group {
  scroll-margin-top: 90px;
}

.gate-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gate-detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.022));
  padding: 24px;
}

.gate-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.gate-card-head h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
}

.gate-reading {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.gate-reading dt {
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.gate-reading dd {
  color: var(--muted);
  margin: 0;
}

.gate-keter {
  border-color: rgba(185,156,255,.28);
}

.gate-chokhmah {
  border-color: rgba(141,235,230,.24);
}

.gate-binah {
  border-color: rgba(240,166,216,.26);
}

:root[data-theme="light"] .gate-detail-card,
:root.theme-light .gate-detail-card {
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(248,242,255,.72));
}

@media (max-width: 980px) {
  .gate-formula {
    grid-template-columns: 1fr;
  }

  .gate-reading {
    grid-template-columns: 1fr;
  }
}


/* Binah 49+1 gates v1.3 */

.gate-arithmetic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.gate-arithmetic article,
.range-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
  padding: 22px;
}

.gate-arithmetic strong {
  display: block;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  color: var(--accent);
}

.gate-arithmetic span,
.range-card span {
  display: block;
  margin-top: 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gate-arithmetic p,
.range-card p,
.range-card small {
  color: var(--muted);
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.range-card h3 {
  font-size: 22px;
  margin: 12px 0 10px;
}

.range-card small {
  display: block;
  margin-top: 12px;
  line-height: 1.45;
}

.gate-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.gate-jump-nav a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gate-jump-nav a:hover {
  color: var(--text);
  border-color: rgba(185,156,255,.5);
}

.binah-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.binah-gate-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  padding: 24px;
}

.gate-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.gate-num,
.gate-band {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.gate-num {
  color: var(--accent);
}

.gate-band {
  color: var(--accent-2);
}

.binah-gate-card h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.gate-fields {
  display: grid;
  gap: 10px;
}

.gate-fields p {
  color: var(--muted);
  margin: 0;
}

.gate-fields strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .range-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .gate-arithmetic,
  .range-grid,
  .binah-gate-grid {
    grid-template-columns: 1fr;
  }
}


/* Daʿat canon v1.4 */

.daat-formula,
.condition-grid,
.daat-duty-grid,
.daat-law-grid {
  display: grid;
  gap: 16px;
}

.daat-formula {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.daat-formula article,
.condition-card,
.daat-duty-card,
.daat-law-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
  padding: 22px;
}

.daat-formula strong {
  display: block;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  color: var(--accent);
}

.daat-formula span,
.condition-card span {
  display: block;
  margin-top: 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.daat-duty-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.daat-duty-card strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  margin-bottom: 10px;
}

.daat-law-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daat-law-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.condition-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.condition-card strong {
  display: block;
  color: var(--text);
  font-size: 24px;
}

.condition-card p,
.daat-duty-card p,
.daat-law-card p,
.daat-formula p {
  color: var(--muted);
  margin: 12px 0 0;
}

.formula-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text) !important;
  font-size: clamp(17px, 2vw, 22px) !important;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .daat-duty-grid,
  .condition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .daat-formula,
  .daat-duty-grid,
  .daat-law-grid,
  .condition-grid {
    grid-template-columns: 1fr;
  }
}


/* Language switcher v1.5 */

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255,255,255,.04);
}

.language-switcher a {
  display: inline-flex;
  min-width: 34px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}

.language-switcher a[aria-current="true"],
.language-switcher a[aria-current="page"] {
  color: var(--text);
  background: rgba(185,156,255,.22);
  border: 1px solid rgba(185,156,255,.40);
}

html[lang="uk"] .lead,
html[lang="uk"] .section-copy,
html[lang="uk"] .card p,
html[lang="uk"] .hero-note {
  line-height: 1.62;
}

html[lang="uk"] .page-title {
  letter-spacing: -.045em;
}

@media (max-width: 980px) {
  .header-controls {
    margin-left: auto;
  }
}


/* Ukrainian corpus full localization v1.6 */

.ua-source-prose {
  max-width: 980px;
}

.ua-source-prose h3 {
  color: var(--text);
  font-size: 24px;
  margin: 28px 0 10px;
}

.ua-source-prose p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 12px;
}

.heart-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.heart-gate-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  padding: 24px;
}

.heart-gate-card h3 {
  font-size: 23px;
  line-height: 1.18;
  margin-bottom: 16px;
}

.corpus-table-section {
  margin-bottom: 34px;
}

.corpus-table-section h3 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 16px;
}

html[lang="uk"] .tool-table th,
html[lang="uk"] .tool-table td {
  white-space: normal;
}

@media (max-width: 980px) {
  .heart-gate-grid {
    grid-template-columns: 1fr;
  }
}


/* Ukrainian full-style localization v1.7 */

.tree-source-prose .sefirah-section {
  overflow: hidden;
}

.tree-source-section .quote-line {
  border-left: 1px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
}

.source-pre {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,.16);
  color: var(--muted);
  padding: 16px;
  overflow-x: auto;
  white-space: pre;
  font-size: 13px;
  line-height: 1.45;
}

html[data-theme="light"] .source-pre,
html.theme-light .source-pre {
  background: rgba(42, 30, 76, .045);
  color: var(--text);
}

html[lang="uk"] .sefirah-section p.indent-line {
  margin-left: 1.25rem;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

html[lang="uk"] .sefirah-prose {
  font-size: 17px;
}


/* UA Daat source pass v1.8 */

.daat-source-section h4 {
  margin-top: 1rem;
  margin-bottom: .5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.source-list {
  margin: 0 0 1rem 1.2rem;
  color: var(--muted);
}

.source-list li {
  margin-bottom: .5rem;
}

.numbered-line {
  color: var(--muted);
  margin: 0 0 .75rem;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

html[lang="uk"] code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
}


/* UA parity audit fixes v1.9 */

.ua-page-nav-section .notice-card {
  border-color: rgba(185,156,255,.32);
}

html[lang="uk"] .map-panel svg text,
html[lang="uk"] .diagram-wrap svg text {
  fill: currentColor;
}

html[data-theme="light"] .map-panel,
html.theme-light .map-panel,
html[data-theme="light"] .diagram-wrap,
html.theme-light .diagram-wrap {
  background: rgba(255,255,255,.78);
  border-color: rgba(49,35,88,.22);
}

html[data-theme="light"] .layer-map rect,
html.theme-light .layer-map rect {
  stroke-opacity: .95;
}

html[lang="uk"] .claim-band-card p,
html[lang="uk"] .binah-gate-card p,
html[lang="uk"] .heart-gate-card p {
  line-height: 1.62;
}


.hero > .shell.hero-grid,
.symbolic-hero > .shell.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: start;
}

.home-visual-wrap {
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  background: #05070c;
}

.home-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: #05070c;
}

@media (max-width: 760px) {
  .home-visual-wrap,
  .home-visual-img {
    min-height: 260px;
  }
}


:root[data-theme="light"] .home-visual-wrap,
:root.theme-light .home-visual-wrap {
  background: linear-gradient(180deg, #f6fbff 0%, #e8f2ff 100%);
  border-color: rgba(88, 110, 160, 0.18);
  box-shadow: 0 18px 42px rgba(65, 82, 125, 0.10);
}

:root[data-theme="light"] .home-visual-img,
:root.theme-light .home-visual-img {
  filter: brightness(1.10) contrast(0.88) saturate(0.92);
  background: #ffffff;
}


.home-visual-wrap {
  position: relative;
}

.home-visual-img-light {
  display: none;
}

:root[data-theme="light"] .home-visual-wrap,
:root.theme-light .home-visual-wrap {
  background: #f7fbff;
}

:root[data-theme="light"] .home-visual-img,
:root.theme-light .home-visual-img {
  filter: none;
  background: transparent;
}

:root[data-theme="light"] .home-visual-img-dark,
:root.theme-light .home-visual-img-dark {
  display: none;
}

:root[data-theme="light"] .home-visual-img-light,
:root.theme-light .home-visual-img-light {
  display: block;
}

/* Symbolic Roots dual-theme hero visual */

.symbolic-visual-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  background: #05070c;
}

.symbolic-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: #05070c;
}

.symbolic-visual-img-light {
  display: none;
}

:root[data-theme="light"] .symbolic-visual-wrap,
:root.theme-light .symbolic-visual-wrap {
  background: #f7fbff;
}

:root[data-theme="light"] .symbolic-visual-img-dark,
:root.theme-light .symbolic-visual-img-dark {
  display: none;
}

:root[data-theme="light"] .symbolic-visual-img-light,
:root.theme-light .symbolic-visual-img-light {
  display: block;
}

@media (max-width: 760px) {
  .symbolic-visual-wrap,
  .symbolic-visual-img {
    min-height: 280px;
  }
}


/* Authorial corpus dual-theme hero visual */
.authorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 2rem;
  align-items: start;
}

.authorial-visual-card {
  margin-top: .35rem;
}

.authorial-visual-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  background: #05070c;
}

.authorial-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: #05070c;
}

.authorial-visual-img-light {
  display: none;
}

:root[data-theme="light"] .authorial-visual-wrap,
:root.theme-light .authorial-visual-wrap {
  background: #f7fbff;
}

:root[data-theme="light"] .authorial-visual-img-dark,
:root.theme-light .authorial-visual-img-dark {
  display: none;
}

:root[data-theme="light"] .authorial-visual-img-light,
:root.theme-light .authorial-visual-img-light {
  display: block;
}

@media (max-width: 980px) {
  .authorial-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .authorial-visual-wrap,
  .authorial-visual-img {
    min-height: 260px;
  }
}


/* Home model map dual-theme visual */
.model-map-visual-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 340px;
  background: #05070c;
  border-radius: 28px;
}

.model-map-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  background: #05070c;
}

.model-map-visual-img-light {
  display: none;
}

:root[data-theme="light"] .model-map-visual-wrap,
:root.theme-light .model-map-visual-wrap {
  background: #f7fbff;
}

:root[data-theme="light"] .model-map-visual-img-dark,
:root.theme-light .model-map-visual-img-dark {
  display: none;
}

:root[data-theme="light"] .model-map-visual-img-light,
:root.theme-light .model-map-visual-img-light {
  display: block;
}

.map-caption {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .model-map-visual-wrap,
  .model-map-visual-img {
    min-height: 250px;
  }
}


/* Physics Bridge dual-theme hero visual */
.physics-visual-hero-card {
  margin-top: .35rem;
}

.physics-visual-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  background: #05070c;
}

.physics-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: #05070c;
}

.physics-visual-img-light {
  display: none;
}

:root[data-theme="light"] .physics-visual-wrap,
:root.theme-light .physics-visual-wrap {
  background: #f7fbff;
}

:root[data-theme="light"] .physics-visual-img-dark,
:root.theme-light .physics-visual-img-dark {
  display: none;
}

:root[data-theme="light"] .physics-visual-img-light,
:root.theme-light .physics-visual-img-light {
  display: block;
}

@media (max-width: 760px) {
  .physics-visual-wrap,
  .physics-visual-img {
    min-height: 260px;
  }
}


/* Physics Bridge explainer pages */
.section-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
}

.section-title-link:hover {
  color: var(--accent);
}

.inline-more-link {
  color: var(--accent);
  font-weight: 750;
}

.bridge-entry-card {
  max-width: 860px;
}

.bridge-hypothesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.bridge-hypothesis-copy h2 {
  max-width: 900px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.bridge-hypothesis-copy .prose {
  max-width: 780px;
}

.bridge-hypothesis-copy .prose p {
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.66;
}

.bridge-hypothesis-copy .prose p:first-child {
  color: var(--text);
}

.bridge-hypothesis-grid .bridge-entry-card {
  max-width: none;
  min-height: 0;
  height: fit-content;
  align-self: start;
}

.bridge-hypothesis-grid .bridge-entry-card .card-action {
  margin-top: 18px;
  padding-top: 0;
}

@media (max-width: 900px) {
  .bridge-hypothesis-grid {
    grid-template-columns: 1fr;
  }
}

.bridge-entry-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.035em;
  margin: 14px 0 12px;
}

.bridge-entry-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 760px;
}

.bridge-entry-card .button {
  margin-top: 12px;
}

.bridge-explainer-prose {
  max-width: 840px;
}

.bridge-explainer-section {
  scroll-margin-top: 110px;
  margin-bottom: 36px;
}

.bridge-explainer-section h2 {
  margin-bottom: 16px;
}

.bridge-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.bridge-side-panel a {
  color: inherit;
  text-decoration: none;
}

.bridge-side-panel a:hover {
  color: var(--accent);
}



.card-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
}

.card-title-link:hover {
  color: var(--accent);
}

.card-more-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
}

.card-more-link:hover {
  transform: translateX(2px);
}


/* Physics Bridge long hero statement */
.physics-hero > .shell.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: start;
}

.physics-hero .physics-visual-hero-card {
  align-self: start;
  margin-top: 0;
}

.physics-hero-statement {
  max-width: 780px;
  margin-top: 26px;
}

.physics-hero-statement p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.62;
}

.physics-hero-statement p:last-child {
  margin-bottom: 0;
}

.physics-hero-statement strong {
  color: var(--text);
  font-weight: 760;
}


/* Physics Bridge editorial hero layout */
.physics-hero-editorial > .shell {
  max-width: 1180px;
}

.physics-hero-copy {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 42px;
  align-items: start;
}

.physics-hero-editorial .physics-visual-hero-card.physics-hero-float {
  grid-column: 2;
  grid-row: 1 / span 5;
  width: auto;
  margin: 0;
  padding: 18px;
}

.physics-hero-editorial .physics-hero-copy > .eyebrow,
.physics-hero-editorial .physics-hero-copy > .page-title,
.physics-hero-editorial .physics-hero-copy > .physics-hero-statement,
.physics-hero-editorial .physics-hero-copy > .hero-actions {
  grid-column: 1;
}

.physics-hero-editorial .physics-hero-copy > .eyebrow {
  justify-self: start;
}

.physics-hero-editorial .physics-visual-wrap {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.physics-hero-editorial .physics-visual-img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.physics-hero-editorial .physics-hero-statement {
  max-width: none;
}

.physics-hero-editorial .physics-hero-statement p {
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.66;
}

.physics-hero-editorial .physics-hero-statement p:first-child {
  font-size: clamp(18px, 2vw, 22px);
}

@media (max-width: 980px) {
  .physics-hero-copy {
    grid-template-columns: 1fr;
  }

  .physics-hero-editorial .physics-visual-hero-card.physics-hero-float {
    grid-column: 1;
    grid-row: auto;
    order: 5;
    width: 100%;
    max-width: 720px;
    margin: 26px 0 26px;
  }
}

@media (max-width: 760px) {
  .physics-hero-editorial .physics-visual-hero-card.physics-hero-float {
    padding: 14px;
  }
}


/* Home hero text/image balance */
.home-hero h1 {
  max-width: 820px;
}

html[lang="uk"] .home-hero h1 {
  font-size: clamp(42px, 6.2vw, 78px);
  letter-spacing: -.055em;
  max-width: 720px;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 980px) {
  html[lang="uk"] .home-hero h1 {
    max-width: 100%;
  }
}


/* Image lightbox */
img[data-lightbox-image] {
  cursor: zoom-in;
}

.smodel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 3, 10, .86);
  backdrop-filter: blur(10px);
}

.smodel-lightbox.is-open {
  display: flex;
}

.smodel-lightbox img {
  max-width: min(100%, 1448px);
  max-height: calc(100vh - 72px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  background: rgba(255, 255, 255, .04);
  cursor: zoom-out;
}

.smodel-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.smodel-lightbox-close:hover {
  background: rgba(255, 255, 255, .18);
}

@media (max-width: 760px) {
  .smodel-lightbox {
    padding: 12px;
  }

  .smodel-lightbox img {
    max-height: calc(100vh - 56px);
    border-radius: 12px;
  }
}


/* Home Entry Point expanded copy */
.entry-point-section .section-copy {
  max-width: 780px;
  font-size: 16.5px;
  line-height: 1.66;
}

.entry-point-grid {
  align-items: stretch;
}

.entry-point-card .plain-list {
  gap: 14px;
}

.entry-point-card .plain-list li {
  align-items: flex-start;
}

.entry-point-card .plain-list span:last-child {
  line-height: 1.58;
}

.entry-point-card h3 {
  margin-bottom: 18px;
}


/* Home Entry Point editorial layout */
.entry-point-section .section-head {
  display: block;
  max-width: 900px;
  margin: 0 0 36px;
}

.entry-point-section .section-head h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.045em;
  line-height: 1.04;
}

.entry-point-section .section-copy {
  max-width: 780px;
  margin-top: 22px;
  font-size: clamp(16.5px, 1.45vw, 19px);
  line-height: 1.68;
}

.entry-point-section .entry-point-grid {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .entry-point-section .section-head h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .entry-point-section .section-copy {
    font-size: 16px;
  }
}


/* Home Model Map editorial layout */
.model-map-section .model-map-intro {
  max-width: 900px;
  margin: 0 0 30px;
}

.model-map-section .model-map-intro h2 {
  max-width: 840px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.045em;
  line-height: 1.04;
}

.model-map-section .section-copy {
  max-width: 860px;
  margin-top: 22px;
  font-size: clamp(16.5px, 1.45vw, 19px);
  line-height: 1.68;
}

.model-map-section .map-panel {
  max-width: 1040px;
  margin: 32px auto 0;
}

.model-map-section .model-map-visual-wrap {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.model-map-section .model-map-visual-img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.model-map-section .map-caption {
  max-width: 780px;
  margin: 14px auto 0;
  text-align: center;
}

@media (max-width: 760px) {
  .model-map-section .model-map-intro h2 {
    font-size: clamp(31px, 9vw, 44px);
  }

  .model-map-section .section-copy {
    font-size: 16px;
  }

  .model-map-section .map-panel {
    margin-top: 24px;
  }
}


/* Home Model Map hero-style layout */
.model-map-hero-section .model-map-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: 42px;
  align-items: start;
}

.model-map-hero-section .model-map-copy {
  max-width: 780px;
}

.model-map-hero-section .model-map-copy h2 {
  max-width: 760px;
  font-size: clamp(36px, 5.2vw, 62px);
  letter-spacing: -.05em;
  line-height: 1.04;
}

.model-map-hero-section .section-copy {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(16.5px, 1.45vw, 19px);
  line-height: 1.68;
}

.model-map-hero-section .model-map-card {
  align-self: start;
  margin-top: .35rem;
}

.model-map-hero-section .model-map-visual-wrap {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 20px;
}

.model-map-hero-section .model-map-visual-img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.model-map-hero-section .caption {
  margin-top: 13px;
}

@media (max-width: 980px) {
  .model-map-hero-section .model-map-hero-grid {
    grid-template-columns: 1fr;
  }

  .model-map-hero-section .model-map-copy,
  .model-map-hero-section .model-map-copy h2,
  .model-map-hero-section .section-copy {
    max-width: 100%;
  }

  .model-map-hero-section .model-map-card {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .model-map-hero-section .model-map-copy h2 {
    font-size: clamp(31px, 9vw, 44px);
  }

  .model-map-hero-section .section-copy {
    font-size: 16px;
  }
}


/* Authorial corpus home card links */
a.mini-corpus-card {
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

a.mini-corpus-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background: linear-gradient(180deg, rgba(185,156,255,.10), rgba(255,255,255,.025));
}

a.mini-corpus-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* Main route card links */
a.route-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

a.route-card-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background: linear-gradient(180deg, rgba(185,156,255,.10), rgba(255,255,255,.025));
}

a.route-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


.entry-authorial-notice {
  max-width: 980px;
  margin-top: 24px;
}

.entry-authorial-notice h3 {
  margin-bottom: 10px;
}

.entry-authorial-notice p {
  color: var(--muted);
  line-height: 1.66;
  font-size: 16.5px;
}


/* Header navigation compaction after adding Theology */
.brand {
  white-space: nowrap;
}

.nav-links {
  gap: clamp(13px, 1.45vw, 25px);
}

.nav-links a {
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 1160px) {
  .site-header .shell.nav {
    gap: 14px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 13px;
  }
}

@media (max-width: 1160px) {
  .site-header .shell.nav {
    align-items: flex-start;
  }

  .nav-links {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }
}


/* Source text corpus pages */
.source-corpus-grid {
  margin-top: 28px;
}

.source-card .status {
  margin-bottom: 14px;
}

.source-card h3 {
  margin-bottom: 10px;
}

.source-card .hero-actions {
  margin-top: 18px;
}

.source-text-shell {
  max-width: 885px;
}

.source-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 24px;
}

.source-text-block {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 18px;
  white-space: pre-wrap;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  tab-size: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.source-text-block:last-child {
  margin-bottom: 0;
}

.source-table-block {
  white-space: pre;
  overflow-x: auto;
  overflow-y: visible;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-overflow-scrolling: touch;
}

.source-table-block::-webkit-scrollbar {
  height: 12px;
}

.source-table-block::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 999px;
}

.source-text-block-rtl {
  direction: rtl;
  text-align: right;
}

.theological-note-card {
  margin-top: 26px;
}


/* Danish language layer */
html[lang="da"] .lead,
html[lang="da"] .section-copy,
html[lang="da"] .card p,
html[lang="da"] .hero-note {
  line-height: 1.62;
}

html[lang="da"] .page-title {
  letter-spacing: -.045em;
}

.language-switcher a {
  min-width: 32px;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 12.5px;
  }

  .language-switcher a {
    min-width: 30px;
  }
}


/* Theological corpus announcement rewrite */
.theology-corpus-hero .theology-announcement {
  max-width: 760px;
  margin-top: 26px;
}

.theology-corpus-hero .theology-announcement p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.68;
}

.theology-corpus-hero .theology-announcement p:first-child {
  font-size: clamp(18px, 2vw, 22px);
}

.theology-corpus-hero .theology-announcement p:last-child {
  margin-bottom: 0;
}

.theology-corpus-hero + .content-section .grid-2 {
  align-items: stretch;
}


/* Noahide theological corpus cards */
.theology-description-card {
  max-width: 980px;
  margin: 24px 0 30px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: var(--shadow-soft);
}

.theology-description-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.66;
}

.theology-description-card p:last-child {
  margin-bottom: 0;
}

.noahide-order-list {
  margin: 0 0 1.1rem 1.2rem;
  padding: 0;
  color: var(--muted);
  line-height: 1.62;
}

.noahide-order-list li + li {
  margin-top: .35rem;
}

.noahide-card-grid {
  align-items: stretch;
}


/* Tree of Being source replacement */
.tree-source-hero .hero-actions {
  margin-top: 24px;
}

.tree-source-hero + .content-section .source-text-block {
  max-height: none;
}


/* Clean corpus rebuild v1 */
.clean-corpus-overview {
  padding-top: 34px;
}

.clean-corpus-section .section-head {
  margin-bottom: 26px;
}

.clean-source-card .hero-actions {
  margin-top: 18px;
}

.clean-source-card .button {
  white-space: nowrap;
}

.clean-corpus-grid.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .clean-corpus-grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .clean-corpus-grid.grid-4,
  .clean-corpus-grid.grid-3,
  .clean-corpus-grid.grid-2 {
    grid-template-columns: 1fr;
  }
}


/* Clean corpus card alignment */
.clean-corpus-grid {
  align-items: stretch;
}

.clean-source-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.clean-source-card > p {
  flex: 1 1 auto;
}

.clean-source-card .hero-actions {
  margin-top: auto;
  padding-top: 20px;
  align-items: flex-end;
}

.clean-source-card .button {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .clean-source-card .hero-actions {
    align-items: flex-start;
  }
}


@media (min-width: 1181px) {
  .clean-corpus-authorial .clean-corpus-grid.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Home clean pass */
.home-corpus-section .route-card-link,
#routes .route-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-corpus-section .route-card-link p,
#routes .route-card-link p {
  flex: 1 1 auto;
}

.entry-point-card {
  display: flex;
  flex-direction: column;
}

.entry-point-card .plain-list {
  flex: 1 1 auto;
}

.home-corpus-grid {
  align-items: stretch;
}

@media (max-width: 1180px) {
  .home-corpus-grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-corpus-grid.grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Section rhythm v2.2 */
h1,
.page-title,
h2,
h3 {
  text-wrap: balance;
}

.page-hero .lead,
.page-hero .hero-note,
.hero .lead,
.hero .hero-note {
  max-width: 760px;
  line-height: 1.66;
}

.section,
.content-section {
  scroll-margin-top: 92px;
}

.section-head {
  grid-template-columns: minmax(0, .86fr) minmax(300px, .54fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(30px, 3.5vw, 44px);
}

.section-head > div {
  max-width: 820px;
  min-width: 0;
}

.section-head .kicker {
  margin-bottom: 14px;
}

.section-head h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.08;
}

.section-head .section-copy {
  max-width: 580px;
  margin: 0 0 0 auto;
  padding-top: 31px;
  font-size: clamp(16px, 1.32vw, 18px);
  line-height: 1.68;
}

.content-section > .shell > h2,
.section > .shell > h2,
.prose > h2:first-child {
  max-width: 860px;
  margin-bottom: 18px;
}

.content-section > .shell > p,
.section > .shell > p {
  max-width: 880px;
  line-height: 1.68;
}

.content-section > .shell > h2 + p,
.section > .shell > h2 + p {
  margin-top: 0;
}

.content-layout {
  grid-template-columns: minmax(0, .68fr) minmax(280px, .32fr);
  gap: clamp(24px, 4vw, 48px);
}

.prose {
  max-width: 820px;
  line-height: 1.68;
}

.prose h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -.035em;
}

.prose p {
  max-width: 760px;
}

.card,
.claim-band-card,
.guardrail-card,
.status-card,
.tool-mini-card,
.gate-detail-card,
.heart-gate-card,
.binah-gate-card,
.daat-duty-card,
.daat-law-card,
.condition-card,
.depth-card,
.witness-card,
.channel-card,
.triad-card,
.range-card,
.gate-block,
.sef-card,
.mini-corpus-card,
.corpus-card,
.clean-source-card {
  display: flex;
  flex-direction: column;
}

.card h3,
.claim-band-card h3,
.guardrail-card h3,
.status-card h3,
.tool-mini-card h3,
.gate-detail-card h3,
.heart-gate-card h3,
.binah-gate-card h3,
.daat-duty-card h3,
.daat-law-card h3,
.condition-card h3,
.witness-card h3,
.channel-card h3,
.triad-card h3,
.range-card h3,
.sef-card strong,
.corpus-card h2 {
  text-wrap: balance;
  line-height: 1.15;
}

.card p,
.claim-band-card p,
.guardrail-card p,
.status-card p,
.tool-mini-card p,
.gate-detail-card p,
.heart-gate-card p,
.binah-gate-card p,
.daat-duty-card p,
.daat-law-card p,
.condition-card p,
.depth-card span,
.witness-card p,
.channel-card p,
.triad-card p,
.range-card p,
.gate-block p,
.sef-card p,
.corpus-card p,
.mini-corpus-card p,
.notice-card p,
.theology-description-card p {
  line-height: 1.64;
}

.card .hero-actions,
.claim-band-card .hero-actions,
.guardrail-card .hero-actions,
.status-card .hero-actions,
.corpus-card .hero-actions,
.clean-source-card .hero-actions,
.source-card .hero-actions {
  margin-top: auto;
  padding-top: 18px;
}

.card .card-link,
.card .card-more-link,
.triad-card .card-link,
.channel-card .card-link,
.witness-card .card-link,
.bridge-entry-card .card-more-link {
  margin-top: auto;
  padding-top: 16px;
}

.grid-2,
.grid-3,
.grid-4,
.claim-band-list,
.guardrail-grid,
.status-grid,
.triad-grid,
.depth-grid,
.seal-grid,
.witness-grid,
.channel-groups,
.gate-panel,
.range-grid,
.binah-gate-grid,
.daat-formula,
.condition-grid,
.daat-duty-grid,
.daat-law-grid,
.clean-corpus-grid,
.home-corpus-grid,
.noahide-card-grid,
.corpus-strip,
.corpus-grid,
.heart-gate-grid,
.tool-card-grid {
  align-items: stretch;
}

.closing-section > .shell > h2 {
  max-width: 760px;
}

.closing-section > .shell > p:not(.large-statement) {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.68;
}

@media (max-width: 980px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-head .section-copy {
    max-width: 760px;
    margin: 0;
    padding-top: 0;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-hero .lead,
  .page-hero .hero-note,
  .hero .lead,
  .hero .hero-note,
  .section-head .section-copy,
  .content-section > .shell > p,
  .section > .shell > p,
  .prose {
    line-height: 1.62;
  }
}


.symbolic-visual-wrap {
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: #05070c;
}

.symbolic-visual-img {
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

:root[data-theme="light"] .symbolic-visual-wrap,
:root.theme-light .symbolic-visual-wrap {
  background: #f8fbff;
}

.entry-point-section .section-head {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(300px, .54fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: none;
  margin: 0 0 clamp(30px, 3.5vw, 44px);
}

.entry-point-section .section-head h2 {
  max-width: 820px;
}

.entry-point-section .section-head .section-copy {
  max-width: 580px;
  margin: 0 0 0 auto;
  padding-top: 31px;
}

@media (max-width: 980px) {
  .entry-point-section .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .entry-point-section .section-head .section-copy {
    max-width: 760px;
    margin: 0;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .symbolic-visual-wrap,
  .symbolic-visual-img {
    min-height: 0;
  }
}


/* Tree of Being diagram block */
.tree-diagram-block {
  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
  line-height: 1.58;
}

/* Theology corpus dual-theme hero visual */
.theology-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 2rem;
  align-items: start;
}

.theology-hero-copy {
  min-width: 0;
}

.theology-visual-card {
  margin-top: .35rem;
}

.theology-visual-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  background: #05070c;
}

.theology-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: #05070c;
}

.theology-visual-img-light {
  display: none;
}

:root[data-theme="light"] .theology-visual-wrap,
:root.theme-light .theology-visual-wrap {
  background: #f7fbff;
}

:root[data-theme="light"] .theology-visual-img-dark,
:root.theme-light .theology-visual-img-dark {
  display: none;
}

:root[data-theme="light"] .theology-visual-img-light,
:root.theme-light .theology-visual-img-light {
  display: block;
}

@media (max-width: 980px) {
  .theology-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .theology-visual-wrap,
  .theology-visual-img {
    min-height: 260px;
  }
}

/* Physics hero image top alignment */
.physics-hero-editorial .physics-visual-hero-card.physics-hero-float {
  margin-top: 0;
}



/* Mobile reading refinements */
@media (max-width: 980px) {
  .site-header .shell.nav {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
    min-height: 0;
    padding-block: 10px;
  }

  .site-header nav {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .nav-links {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 6px 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .header-controls {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(34px, 10.8vw, 44px);
    line-height: 1.03;
  }

  .page-title {
    font-size: clamp(34px, 10.5vw, 40px);
    line-height: 1.04;
  }

  .lead {
    font-size: clamp(16.5px, 4.5vw, 18px);
  }

  .hero-actions {
    gap: 10px;
  }

  .button,
  .clean-source-card .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .source-text-block {
    font-size: 12.75px;
    line-height: 1.62;
    border-radius: 18px;
    padding: 16px;
  }

  .source-table-block {
    overflow-x: auto;
  }
}

/* Mobile overflow guardrails */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header .shell.nav {
    width: min(var(--max), calc(100% - 20px));
    min-width: 0;
    gap: 8px;
  }

  .site-header nav {
    min-width: 0;
    overflow: hidden;
  }

  .nav-links {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-controls {
    gap: 6px;
    min-width: 0;
  }

  .language-switcher {
    flex: 0 0 auto;
  }

  .language-switcher a {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .theme-toggle {
    min-height: 36px;
    padding-inline: 10px;
  }

  .page-title,
  .large-statement,
  .content-section h2,
  .section-head h2,
  .card h3 {
    overflow-wrap: anywhere;
  }

  .source-text-block {
    font-size: 12.5px;
    line-height: 1.62;
    padding: 16px;
    border-radius: 18px;
  }

  .source-table-block,
  .tree-diagram-block {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
}

@media (max-width: 420px) {
  .brand > span:last-child {
    max-width: 122px;
  }
}

/* Narrow mobile layout containment */
@media (max-width: 760px) {
  .side-panel,
  .sefirah-layout,
  .sefirah-layout > *,
  .content-layout,
  .content-layout > * {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .sefirah-prose,
  .sefirah-section {
    width: 100%;
    max-width: 100%;
  }

  .sefirah-section {
    padding: 20px;
    overflow-wrap: anywhere;
  }
}

/* Mobile hero stacking consistency */
@media (max-width: 980px) {
  .hero > .shell.hero-grid,
  .home-hero > .shell.hero-grid,
  .symbolic-hero > .shell.hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero > .shell.hero-grid > *,
  .home-hero > .shell.hero-grid > *,
  .symbolic-hero > .shell.hero-grid > * {
    min-width: 0;
  }
}


.fragment-anchor {
  display: block;
  position: relative;
  top: -96px;
  height: 0;
  width: 0;
  overflow: hidden;
}


/* Global typography tightening */
body {
  font-size: 15.5px;
}

.nav-links {
  font-size: 13px;
}

.eyebrow,
.kicker,
.status,
.caption,
.source-meta,
.source-toolbar,
.language-switcher,
.theme-toggle {
  font-size: .92em;
}

h1 {
  font-size: clamp(42px, 6.8vw, 82px);
}

.page-title {
  font-size: clamp(39px, 5.8vw, 68px);
}

.lead,
.page-hero .lead,
.home-hero .lead {
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
}

.hero-note,
.page-hero .hero-note,
.section-copy {
  font-size: clamp(15.5px, 1.25vw, 17px);
  line-height: 1.58;
}

.section-head h2,
.content-section h2,
.section h2 {
  font-size: clamp(30px, 4.2vw, 50px);
}

.card h3,
.source-card h3,
.clean-source-card h3,
.notice-card h3 {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.18;
}

.card p,
.source-card p,
.clean-source-card p,
.notice-card p,
.prose p,
.bridge-entry-card p,
.theology-announcement p {
  font-size: 15.5px;
  line-height: 1.62;
}

.button {
  font-size: 13.5px;
}

.source-text-block {
  font-size: 13.5px;
  line-height: 1.68;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
  h1,
  .page-title,
  .home-hero h1,
  .symbolic-hero .page-title {
    font-size: clamp(31px, 9vw, 40px);
    letter-spacing: -.045em;
  }
  .lead,
  .page-hero .lead,
  .home-hero .lead,
  .hero-note,
  .page-hero .hero-note {
    font-size: 15.5px;
    line-height: 1.55;
  }
  .section-head h2,
  .content-section h2,
  .section h2 {
    font-size: clamp(27px, 7.2vw, 36px);
  }
  .card p,
  .source-card p,
  .clean-source-card p,
  .notice-card p,
  .prose p,
  .bridge-entry-card p,
  .theology-announcement p {
    font-size: 15px;
  }
}


/* Hebrew Interpreter */
.interpreter-hero .hero-note { max-width: 900px; }
.input-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.hebrew-display { margin: 0 !important; color: var(--text) !important; font-family: "Times New Roman", "Noto Serif Hebrew", serif; font-size: clamp(30px, 5vw, 48px); line-height: 1.3; overflow-wrap: anywhere; }
.analysis-note { color: var(--faint); font-size: 14px; margin: 0 0 24px; }
.route-reading { margin: 24px 0; border: 1px solid var(--line-strong); border-radius: 20px; padding: 20px; background: rgba(185,156,255,.055); }
.route-reading h3 { margin: 0 0 10px; }
.route-reading p { margin: 0; color: var(--muted); }
.compact-note { margin-top: 20px; }
.compact-note h3 { margin-top: 0; }
.tool-select:focus, .tool-textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-theme="light"] .tool-select, html[data-theme="light"] .tool-textarea { background: rgba(255,255,255,.82); }
@media (max-width: 680px) {
  .tool-panel { padding: 18px; }
  .tool-textarea { min-height: 112px; font-size: 30px; }
  .tool-actions .button { flex: 1 1 150px; text-align: center; }
  .input-comparison { grid-template-columns: 1fr; }
  .tool-result h3 { font-size: 21px; }
  .route-line { font-size: 17px; overflow-x: auto; white-space: nowrap; }
}

/* Hebrew Interpreter backend corpus integration */
.autocomplete-shell {
  position: relative;
}

.interpreter-suggestions {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 8px) 0 auto;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(12, 13, 20, .98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  padding: 8px;
}

.interpreter-suggestions[hidden] {
  display: none;
}

.interpreter-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(110px, .34fr) minmax(0, .66fr);
  gap: 14px;
  align-items: center;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.interpreter-suggestion:hover,
.interpreter-suggestion[aria-selected="true"] {
  background: rgba(185, 156, 255, .13);
}

.suggestion-hebrew {
  font-family: "Times New Roman", "Noto Serif Hebrew", serif;
  font-size: 29px;
  text-align: right;
}

.suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.suggestion-copy strong,
.suggestion-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy small {
  color: var(--muted);
}

.interpreter-block {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .025);
  padding: 21px;
}

.interpreter-block > h3,
.smodel-reading-card h3 {
  margin-top: 0;
}

.lexeme-heading {
  display: grid;
  grid-template-columns: minmax(170px, .34fr) minmax(0, .66fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.lexeme-heading > div {
  min-width: 0;
}

.lexeme-heading strong {
  display: block;
  font-size: 20px;
  color: var(--accent-2);
  margin-bottom: 5px;
}

.lexeme-heading p {
  margin: 0;
  color: var(--muted);
}

.interpreter-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.interpreter-meta > div {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  background: rgba(255, 255, 255, .028);
}

.interpreter-meta dt {
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.interpreter-meta dd {
  margin: 5px 0 0;
  color: var(--text);
}

.interpreter-route {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  direction: rtl;
}

.route-letter {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(185, 156, 255, .075);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.route-arrow {
  color: var(--faint);
  font-family: sans-serif;
}

.automatic-reading {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
  margin: 18px 0 20px;
}

.route-metrics h4,
.route-seams h4,
.reading-section h4,
.reading-conclusion h4,
.level-reading h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.route-seams ul,
.reading-section ul,
.compact-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.route-seams li + li,
.reading-section li + li,
.compact-block li + li {
  margin-top: 6px;
}

.smodel-reading-card {
  position: relative;
  margin-top: 30px;
  border: 1px solid rgba(185, 156, 255, .38);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(185, 156, 255, .13), transparent 36%),
    linear-gradient(180deg, rgba(185, 156, 255, .065), rgba(255, 255, 255, .025));
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
}

.smodel-reading-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
}

.reading-heading {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 18px;
}

.reading-heading h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.reading-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.reading-section p,
.reading-conclusion p,
.level-reading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.level-reading-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.level-reading {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, .08);
}

.level-reading h4 {
  color: var(--accent-2);
}

.reading-conclusion {
  margin-top: 20px;
  border: 1px solid rgba(141, 235, 230, .25);
  border-radius: 18px;
  padding: 17px;
  background: rgba(141, 235, 230, .045);
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.text-action:hover {
  text-decoration: underline;
}

.loading-line::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  animation: interpreterDots 1.2s steps(4, end) infinite;
}

@keyframes interpreterDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

html[data-theme="light"] .interpreter-suggestions {
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 22px 60px rgba(30, 35, 50, .18);
}

html[data-theme="light"] .level-reading {
  background: rgba(255, 255, 255, .42);
}

@media (max-width: 1040px) {
  .level-reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .interpreter-suggestion,
  .lexeme-heading,
  .interpreter-meta,
  .level-reading-grid {
    grid-template-columns: 1fr;
  }

  .suggestion-hebrew {
    text-align: right;
  }

  .interpreter-route {
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .route-letter {
    min-width: 43px;
    min-height: 43px;
    font-size: 27px;
  }

  .smodel-reading-card {
    padding: 20px;
  }
}

/* Hebrew Interpreter v62: explicit homonym/sense selection. */
.sense-selector {
  margin: 18px 0;
}

.sense-selector h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.sense-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sense-choice {
  display: grid;
  gap: 3px;
  min-width: min(220px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sense-choice small {
  color: var(--faint);
}

.sense-choice:hover,
.sense-choice.is-active {
  border-color: var(--accent-2);
  background: rgba(141, 235, 230, .07);
}

@media (max-width: 680px) {
  .sense-choice-list,
  .sense-choice {
    width: 100%;
  }
}

/* Hebrew Interpreter v64: on-screen Hebrew alphabet. */
.hebrew-input-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.hebrew-input-heading .tool-label {
  margin: 0;
}

.alphabet-toggle {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(185, 156, 255, .06);
  color: var(--text);
  padding: 8px 13px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.alphabet-toggle:hover,
.alphabet-toggle[aria-expanded="true"] {
  border-color: var(--accent-2);
  background: rgba(141, 235, 230, .08);
}

.hebrew-alphabet-popover {
  position: absolute;
  z-index: 45;
  inset: calc(100% + 8px) 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(12, 13, 20, .99);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  padding: 14px;
}

.hebrew-alphabet-popover[hidden] {
  display: none;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(38px, 1fr));
  gap: 7px;
}

.alphabet-key,
.alphabet-control {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  cursor: pointer;
}

.alphabet-key {
  min-height: 45px;
  padding: 5px;
  font-family: "Times New Roman", "Noto Serif Hebrew", serif;
  font-size: 27px;
  line-height: 1;
}

.alphabet-key:hover,
.alphabet-key:focus-visible,
.alphabet-control:hover,
.alphabet-control:focus-visible {
  border-color: var(--accent-2);
  background: rgba(141, 235, 230, .09);
  outline: none;
}

.alphabet-final-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
}

.alphabet-final-row > div {
  display: flex;
  gap: 7px;
}

.alphabet-final-row .alphabet-key {
  min-width: 42px;
}

.final-key {
  border-style: dashed;
}

.alphabet-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.alphabet-control {
  min-height: 38px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
}

html[data-theme="light"] .hebrew-alphabet-popover {
  background: rgba(255, 255, 255, .995);
  box-shadow: 0 22px 60px rgba(30, 35, 50, .18);
}

@media (max-width: 760px) {
  .hebrew-input-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .alphabet-toggle {
    align-self: flex-start;
  }

  .alphabet-grid {
    grid-template-columns: repeat(6, minmax(38px, 1fr));
  }

  .hebrew-alphabet-popover {
    max-height: min(62vh, 520px);
    overflow-y: auto;
  }
}

@media (max-width: 420px) {
  .alphabet-grid {
    grid-template-columns: repeat(5, minmax(38px, 1fr));
  }

  .alphabet-final-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Applications v65: one public applied implementation. */
.single-application-card {
  max-width: 780px;
}

/* Keep the Hebrew alphabet trigger visibly above the input border. */
.hebrew-input-heading {
  align-items: center;
  margin-bottom: 5px;
}

.alphabet-toggle {
  position: relative;
  top: -16px;
}

@media (max-width: 760px) {
  .alphabet-toggle {
    top: 0;
  }
}

/* Site-wide reading alignment: keep body copy flush on both sides. */
main p,
main li,
main dd,
main blockquote {
  text-align: justify;
  text-align-last: start;
  text-justify: inter-word;
  hyphens: auto;
}

/* Interface labels and Hebrew display elements retain their natural alignment. */
main .eyebrow,
main .kicker,
main .status,
main .status-label,
main .badge,
main .mini-pill,
main .tool-label,
main .hebrew-display,
main .hebrew-title,
main .hebrew-inline,
main .suggestion-hebrew,
main .interpreter-route,
main .route-letter {
  text-align: start;
  text-align-last: auto;
  hyphens: manual;
}

/* About page: author portrait and moderated guestbook. */
.about-contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.about-author-photo {
  margin: 0;
  align-self: start;
}

.about-author-photo-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  box-shadow: var(--shadow);
}

.about-author-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-author-caption {
  margin-top: 12px;
  text-align: center;
}

.about-author-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 4px;
}

.about-author-link::after {
  content: "\2197";
  color: var(--accent);
  font-size: .82em;
}

.about-author-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.about-author-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.about-contact-grid .notice-card {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .about-contact-grid {
    grid-template-columns: 1fr;
  }

  .about-author-photo {
    width: min(100%, 360px);
  }
}


/* Topic visuals use the same in-hero card pattern as existing site imagery. */
.topic-visual-hero > .shell.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: start;
}

.topic-visual-copy {
  min-width: 0;
}

.topic-visual-card {
  width: 100%;
  margin: .35rem 0 0;
  overflow: hidden;
}

.topic-visual-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #05070c;
}

.topic-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #05070c;
}

.topic-visual-img-light {
  display: none;
}

:root[data-theme="light"] .topic-visual-wrap,
:root.theme-light .topic-visual-wrap,
:root[data-theme="light"] .topic-visual-img,
:root.theme-light .topic-visual-img {
  background: #f7fbff;
}

:root[data-theme="light"] .topic-visual-img-dark,
:root.theme-light .topic-visual-img-dark {
  display: none;
}

:root[data-theme="light"] .topic-visual-img-light,
:root.theme-light .topic-visual-img-light {
  display: block;
}

@media (max-width: 980px) {
  .topic-visual-hero > .shell.hero-grid {
    grid-template-columns: 1fr;
  }

  .topic-visual-card {
    width: min(100%, 620px);
    margin-top: 1.5rem;
  }
}


/* Unified navigation system v2.3 */
.site-navigation {
  min-width: 0;
}

@media (min-width: 1281px) {
  .site-header .shell.nav {
    width: min(1380px, calc(100% - 40px));
  }

  .site-header .brand,
  .site-header .header-controls {
    flex: 0 0 auto;
  }

  .site-header .site-navigation {
    flex: 1 1 auto;
  }

  .site-header .nav-links {
    justify-content: center;
    gap: clamp(9px, .75vw, 14px);
  }
}

@media (min-width: 1281px) and (max-width: 1400px) {
  .site-header .theme-toggle-text {
    display: none;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.nav-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-toggle-icon {
  display: grid;
  width: 17px;
  gap: 3px;
}

.nav-toggle-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.site-header.nav-open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.footer-grid {
  align-items: flex-start;
}

.footer-identity {
  max-width: 390px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 15px;
  max-width: 650px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.document-language-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.document-language-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-right: 2px;
}

.document-language-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.document-language-nav a:hover,
.document-language-nav a[aria-current="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.document-language-nav a[aria-current="true"] {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.document-language-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a.linked-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

a.linked-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: linear-gradient(180deg, rgba(185,156,255,.10), rgba(255,255,255,.025));
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 9%, transparent);
}

a.linked-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.page-end-nav {
  padding: 42px 0 50px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 28%, transparent), transparent);
}

.page-end-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-end-nav-grid.is-parent-only {
  grid-template-columns: minmax(260px, .72fr);
}

.page-end-link {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.page-end-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background: linear-gradient(180deg, rgba(185,156,255,.10), rgba(255,255,255,.025));
}

.page-end-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-end-parent {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.page-end-direction {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.page-end-link strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.18;
}

.page-end-next {
  text-align: right;
}

:root[data-theme="light"] .page-end-link,
:root.theme-light .page-end-link {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.68));
}

@media (max-width: 1280px) {
  .site-header .shell.nav {
    align-items: center;
    flex-wrap: wrap;
    min-height: 72px;
    padding-block: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-navigation {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  .site-header.nav-open .site-navigation {
    display: block;
  }

  .site-header.nav-open .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    max-width: none;
    overflow: visible;
    padding: 8px 0 4px;
  }

  .site-header .nav-links a {
    display: block;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    white-space: normal;
  }

  .site-header .nav-links a:hover,
  .site-header .nav-links a[aria-current="page"] {
    border-color: var(--line);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .site-header .nav-links a[aria-current="page"] {
    padding-bottom: 11px;
  }

  .footer-links {
    justify-content: flex-start;
    max-width: 100%;
  }

  .page-end-nav-grid,
  .page-end-nav-grid.is-parent-only {
    grid-template-columns: 1fr;
  }

  .page-end-placeholder {
    display: none;
  }

  .page-end-next {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand > span:last-child {
    display: none;
  }

  .nav-toggle-text {
    display: none;
  }

  .site-header.nav-open .nav-links {
    grid-template-columns: 1fr;
  }

  .header-controls {
    gap: 7px;
  }

  .language-switcher {
    gap: 2px;
  }

  .language-switcher a {
    min-width: 29px;
  }

  .page-end-nav {
    padding: 32px 0 38px;
  }

  .page-end-link {
    min-height: 100px;
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-icon span,
  a.linked-card,
  .page-end-link {
    transition: none;
  }
}

/* v69 public guestbook */
.guestbook-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.guestbook-panel h3 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3.4vw, 34px);
}

.guestbook-intro,
.guestbook-note,
.guestbook-empty {
  color: var(--muted);
}

.guestbook-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.guestbook-field {
  display: grid;
  gap: 8px;
}

.guestbook-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.guestbook-label {
  color: var(--text);
  font-weight: 750;
}

.guestbook-count {
  color: var(--faint);
  font-size: 13px;
  white-space: nowrap;
}

.guestbook-input,
.guestbook-textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.guestbook-textarea {
  min-height: 126px;
  line-height: 1.5;
  resize: vertical;
}

.guestbook-input:focus,
.guestbook-textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:root[data-theme="light"] .guestbook-input,
:root[data-theme="light"] .guestbook-textarea {
  background: rgba(255,255,255,.86);
}

.guestbook-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.guestbook-submit {
  justify-self: start;
  cursor: pointer;
}

.guestbook-submit:disabled,
.guestbook-more:disabled {
  cursor: default;
  opacity: .58;
  transform: none;
}

.guestbook-submit[data-loading="true"],
.guestbook-more[data-loading="true"] {
  cursor: wait;
}

.guestbook-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.guestbook-status[data-kind="success"] { color: var(--ok); }
.guestbook-status[data-kind="error"] { color: var(--danger); }

.guestbook-privacy {
  margin: 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.55;
}

.guestbook-public {
  margin-top: clamp(34px, 6vw, 62px);
  padding-top: clamp(28px, 5vw, 48px);
  border-top: 1px solid var(--line);
}

.guestbook-public-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.guestbook-public-head h3 {
  font-size: clamp(27px, 4vw, 42px);
}

.guestbook-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guestbook-entry {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  padding: 18px 20px;
}

.guestbook-entry header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.guestbook-entry strong {
  overflow-wrap: anywhere;
}

.guestbook-entry time {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12.5px;
}

.guestbook-entry p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guestbook-more {
  margin-top: 20px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .guestbook-panel { padding: 18px; }
  .guestbook-submit { width: 100%; }
  .guestbook-list { grid-template-columns: 1fr; }
  .guestbook-public-head { align-items: start; flex-direction: column; }
  .guestbook-entry header { align-items: start; flex-direction: column; gap: 4px; }
}
.about-contact-grid > .guestbook-public {
  grid-column: 1 / -1;
}


/* v71 bottom-of-text moderated comments */
.content-comments {
  padding: clamp(48px, 7vw, 82px) 0;
  border-top: 1px solid var(--line);
}

.comments-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.4vw, 34px);
}

.comments-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.comments-head h2 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.comments-intro,
.comments-empty,
.comments-previous-revision,
.comments-privacy {
  color: var(--muted);
}

.comments-previous-revision {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-size: 13.5px;
}

.comments-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.content-comment {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  padding: 17px 19px;
}

.content-comment header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 9px;
}

.content-comment strong {
  overflow-wrap: anywhere;
}

.content-comment time {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12.5px;
}

.content-comment p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comments-more {
  margin-top: 18px;
  cursor: pointer;
}

.comments-more:disabled,
.comments-submit:disabled {
  cursor: default;
  opacity: .58;
  transform: none;
}

.comments-more[data-loading="true"],
.comments-submit[data-loading="true"] {
  cursor: wait;
}

.comments-form-wrap {
  max-width: 900px;
  margin-top: clamp(30px, 5vw, 48px);
  padding-top: clamp(26px, 4vw, 38px);
  border-top: 1px solid var(--line);
}

.comments-form-wrap h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
}

.comments-form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.comments-field {
  display: grid;
  gap: 8px;
}

.comments-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.comments-label {
  color: var(--text);
  font-weight: 750;
}

.comments-count {
  color: var(--faint);
  font-size: 13px;
  white-space: nowrap;
}

.comments-input,
.comments-textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.comments-textarea {
  min-height: 150px;
  line-height: 1.5;
  resize: vertical;
}

.comments-input:focus,
.comments-textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:root[data-theme="light"] .comments-input,
:root[data-theme="light"] .comments-textarea {
  background: rgba(255,255,255,.86);
}

.comments-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.comments-submit {
  justify-self: start;
  cursor: pointer;
}

.comments-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.comments-status[data-kind="success"] { color: var(--ok); }
.comments-status[data-kind="error"] { color: var(--danger); }

.comments-privacy {
  margin: 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .comments-panel { padding: 18px; }
  .comments-submit { width: 100%; }
  .content-comment header { align-items: start; flex-direction: column; gap: 4px; }
}

/* Large theme background: native-resolution image, no masks, filters, or blur. */
.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.site-background-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--site-background-rendered-width, 100vw);
  max-width: none;
  height: auto;
  opacity: 0;
  transform: translate3d(
    var(--site-background-offset-x, 0),
    var(--site-background-offset-y, 0),
    0
  );
  transform-origin: 0 0;
  image-rendering: auto;
}

.site-background.is-ready .site-background-image {
  opacity: var(--site-background-dark-opacity, 0.62);
}

:root[data-theme="light"] .site-background.is-ready .site-background-image {
  opacity: var(--site-background-light-opacity, 0.72);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

@media print {
  .site-background {
    display: none !important;
  }
}
