﻿:root {
  color-scheme: light;
  --bg: #f2ede3;
  --paper: #f7f2e8;
  --ink: #2d2824;
  --ink-strong: #24201c;
  --muted: #7a7169;
  --rule: #ded5cb;
  --accent: #3b342f;
  --accent-quiet: rgba(59, 52, 47, 0.08);
  --radius: 8px;
  --shadow: 0 2px 4px rgba(40, 33, 27, 0.06), 0 14px 28px rgba(40, 33, 27, 0.08);
  --shadow-soft: 0 3px 6px rgba(40, 33, 27, 0.08), 0 18px 34px rgba(40, 33, 27, 0.1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-quick: 160ms;
  --dur-slow: 220ms;
  --max-width: 72ch;
}
  .toc-panel {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}
    
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(circle at top, #f7f2e8 0%, #e4dac5 55%, #ebe4d9 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 35%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible,
.filter-button:focus-visible,
.field input:focus-visible,
.toc-mobile summary:focus-visible {
  outline: 2px solid rgba(59, 52, 47, 0.35);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(247, 242, 232, 0.85);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1.5rem;
  top: 1.5rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: none;
  text-decoration: none;
}

.site-header {
  padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem) 1.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-title {
  margin-bottom: 1.25rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-out),
    color var(--dur-quick) var(--ease-out);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-title h1 {
  margin: 0.4rem 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: 0.025em;
  font-weight: 500;
  color: var(--ink-strong);
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-quick) var(--ease-out),
    border-color var(--dur-quick) var(--ease-out),
    transform var(--dur-quick) var(--ease-out);
}

.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--muted);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--muted);
    transform: translateY(-1px);
  }
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(45, 40, 36, 0.2);
  z-index: 20;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.75rem, 5.5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem) 4.5rem;
  display: grid;
  gap: 3rem;
}

.page p {
  max-width: var(--max-width);
}

.page-article {
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  align-items: start;
}

.page-article--wide {
  max-width: 1380px;
}

.page-article--wide .manuscript {
  padding: clamp(2.1rem, 3vw, 3.3rem);
}

.page-article--wide .toc-desktop {
  padding: 1.4rem 1.35rem;
}

.page-article--wide .toc-note {
  max-width: 18rem;
  line-height: 1.6;
}

.intro-card,
.placeholder,
.doc-card,
.manuscript,
.toc-desktop,
.library-controls,
.library-header {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.intro-card::before,
.placeholder::before,
.doc-card::before,
.manuscript::before,
.toc-desktop::before,
.library-controls::before,
.library-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 45%);
  opacity: 0.7;
  pointer-events: none;
}

.intro-card > *,
.placeholder > *,
.doc-card > *,
.manuscript > *,
.toc-desktop > *,
.library-controls > *,
.library-header > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .intro-card:hover,
  .placeholder:hover,
  .doc-card:hover,
  .manuscript:hover,
  .toc-desktop:hover,
  .library-controls:hover,
  .library-header:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
  }
}

.intro-card h2,
.placeholder h2,
.library-header h2 {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
}

.meta-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.meta-label {
  margin: 0 0 0.3rem 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.meta-value {
  margin: 0;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.media-list {
  margin-top: 1.25rem;
}

.media-list ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.media-list li {
  margin-bottom: 0.35rem;
}

.tool-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.tool-list li {
  margin-bottom: 0.35rem;
}

.grid-two,
.library-grid,
.media-grid {
  display: grid;
  gap: 2rem;
}

.doc-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.doc-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.chip.is-updated,
.chip--updated {
  border-style: dashed;
  letter-spacing: 0.14em;
}

.text-link {
  display: inline-block;
  margin-top: 0.65rem;
  text-decoration: none;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--rule);
  transition: color var(--dur-quick) var(--ease-out),
    border-color var(--dur-quick) var(--ease-out),
    transform var(--dur-quick) var(--ease-out),
    box-shadow var(--dur-quick) var(--ease-out);
}

.text-link:focus {
  border-bottom-color: var(--muted);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    border-bottom-color: var(--muted);
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(40, 33, 27, 0.08);
  }
}

.site-footer {
  padding: 2.25rem clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
}

.manuscript-header {
  margin-bottom: 2rem;
}

.doc-meta {
  margin: 0 0 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lead {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.7rem;
  transition: border-color var(--dur-quick) var(--ease-out),
    color var(--dur-quick) var(--ease-out),
    transform var(--dur-quick) var(--ease-out),
    box-shadow var(--dur-quick) var(--ease-out);
}

.button:focus {
  border-color: var(--muted);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    border-color: var(--muted);
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(40, 33, 27, 0.08);
  }
}

.scales-jump {
  margin-bottom: 1.4rem;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.1);
  border-radius: var(--radius);
}

.scales-jump-label,
.scale-card-label,
.comparison-column-label {
  display: inline-block;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scales-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.scales-jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 52, 47, 0.12);
  background: rgba(255, 255, 255, 0.24);
  text-decoration: none;
  transition: border-color var(--dur-quick) var(--ease-out),
    transform var(--dur-quick) var(--ease-out),
    box-shadow var(--dur-quick) var(--ease-out);
}

.spine-flow {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.spine-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.08);
  border-radius: calc(var(--radius) - 2px);
}

.spine-arrow {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.spine-step p {
  margin: 0;
}

.scales-stack {
  display: grid;
  gap: 1.4rem;
}

.scale-section {
  padding: 1.35rem 1.45rem;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.scale-section h2 {
  margin: 0 0 0.55rem;
}

.scale-orientation {
  margin: 0 0 1rem;
  color: var(--muted);
}

.scale-card-grid {
  display: grid;
  gap: 0.95rem;
}

.scale-card {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.1);
  border-radius: calc(var(--radius) - 2px);
}

.scale-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}

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

.comparison-grid {
  display: grid;
  gap: 1rem;
}

.comparison-row {
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.1);
  border-radius: calc(var(--radius) - 2px);
}

.comparison-row h3 {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
}

.comparison-columns {
  display: grid;
  gap: 0.8rem;
}

.comparison-column {
  padding: 0.9rem 0.95rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.08);
  border-radius: calc(var(--radius) - 4px);
}

.comparison-column p:last-child {
  margin-bottom: 0;
}

.scales-closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.doc-body {
  max-width: var(--max-width);
}

.doc-body h2,
.doc-body h3,
.doc-body h4 {
  margin-top: 2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

.doc-body p {
  margin-bottom: 1.45rem;
}

.orientation-line {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.manuscript-intro-block,
.law-tier,
.spine-statement,
.master-form,
.lexicon-family,
.translation-caution,
.translation-matrix,
.translation-notes {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
}

.manuscript-intro-block,
.law-tier,
.lexicon-family,
.translation-caution,
.translation-matrix,
.translation-notes {
  margin-bottom: 1.4rem;
}

.manuscript-intro-block h2,
.law-tier h2,
.spine-statement h2,
.master-form h2,
.lexicon-family h2,
.translation-caution h2,
.translation-matrix h2,
.translation-notes h2 {
  margin: 0 0 0.75rem;
}

.manuscript-intro-block p:last-child,
.law-tier p:last-child,
.spine-statement p:last-child,
.master-form p:last-child,
.translation-caution p:last-child,
.translation-notes p:last-child {
  margin-bottom: 0;
}

.law-tier-header,
.lexicon-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.law-tier-header h2,
.lexicon-entry-header h3 {
  margin: 0;
}

.law-list,
.lexicon-list,
.translation-grid {
  display: grid;
  gap: 1rem;
}

.law-card,
.lexicon-entry,
.translation-pattern {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.1);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
}

.law-card h3,
.lexicon-entry h3,
.translation-pattern-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.law-number,
.formal-label,
.translation-label {
  display: inline-block;
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.law-card p:last-child,
.lexicon-entry p:last-child,
.translation-cell p:last-child {
  margin-bottom: 0;
}

.spine-statement,
.master-form {
  margin-bottom: 1.4rem;
  background:
    linear-gradient(180deg, rgba(59, 52, 47, 0.045) 0%, rgba(59, 52, 47, 0.015) 100%),
    rgba(255, 255, 255, 0.24);
}

.spine-statement p,
.master-form p {
  margin: 0;
  color: var(--ink-strong);
}

.compressed-list {
  margin: 0;
  padding-left: 1.2rem;
}

.compressed-list li + li {
  margin-top: 0.4rem;
}

.lexicon-family-intro {
  margin: 0 0 1rem;
}

.lexicon-list {
  gap: 1.25rem;
}

.lexicon-entry {
  padding: 1.2rem 1.25rem;
}

.lexicon-entry-header {
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 0.95rem;
}

.lexicon-entry-header h3 {
  font-size: 1.08rem;
}

.formal-label {
  margin: 0;
  padding-bottom: 0.95rem;
  width: 100%;
  border-bottom: 1px solid rgba(59, 52, 47, 0.12);
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.86rem;
}

.lexicon-meta {
  display: grid;
  gap: 0.9rem;
  margin-top: 0;
}

.lexicon-meta-block {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(59, 52, 47, 0.12);
}

.lexicon-meta-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.lexicon-meta-block p {
  margin: 0;
  line-height: 1.72;
}

.translation-grid {
  gap: 1.35rem;
}

.translation-pattern {
  padding: 1.2rem 1.25rem;
}

.translation-pattern-header {
  margin-bottom: 1rem;
}

.translation-pattern-header h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  text-wrap: balance;
}

.translation-pattern-intro {
  margin: 0;
  color: var(--muted);
}

.translation-blocks {
  display: grid;
  gap: 0.9rem;
}

.translation-cell {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(59, 52, 47, 0.08);
  border-radius: calc(var(--radius) - 2px);
}

.translation-cell h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1.45;
}

.translation-cell p {
  margin: 0;
}

.translation-shared {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(59, 52, 47, 0.12);
}

.translation-shared h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.translation-shared p {
  margin: 0;
  color: var(--ink-strong);
}

.translation-caution {
  border-style: dashed;
}

@media (hover: hover) and (pointer: fine) {
  .scales-jump-links a:hover {
    border-color: var(--muted);
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(40, 33, 27, 0.08);
  }
}

.grammar-body {
  display: grid;
  gap: 1.4rem;
}

.grammar-intro-card,
.grammar-entry,
.grammar-closing {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
}

.grammar-intro-card h2,
.grammar-entry h2,
.grammar-closing h2 {
  margin: 0 0 0.75rem;
}

.grammar-note {
  color: var(--muted);
  font-style: italic;
}

.grammar-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.grammar-entry-header h2 {
  margin: 0;
}

.grammar-entry-grid {
  display: grid;
  gap: 1rem;
}

.grammar-entry-grid > div {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(59, 52, 47, 0.12);
}

.grammar-entry-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.grammar-entry-grid p {
  margin: 0;
}

.doc-body ul {
  padding-left: 1.5rem;
}

.doc-body pre {
  padding: 1rem;
  background: #f3eee5;
  border-radius: var(--radius);
  overflow: auto;
}

.toc-panel {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

.toc-header h2 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
}

.toc-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: grid;
  gap: 0.75rem;
}

.toc-item-sub {
  margin-left: 1rem;
  font-size: 0.95rem;
}

.toc-list a {
  text-decoration: none;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding-left: 0.6rem;
  transition: color var(--dur-quick) var(--ease-out),
    border-color var(--dur-quick) var(--ease-out),
    transform var(--dur-quick) var(--ease-out);
}

.toc-list a.is-active {
  color: var(--ink);
  border-left-color: var(--muted);
}

.toc-list a:focus {
  color: var(--ink);
  border-left-color: var(--rule);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .toc-list a:hover {
    color: var(--ink);
    border-left-color: var(--rule);
    transform: translateY(-1px);
  }
}

.toc-mobile {
  display: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.toc-mobile summary {
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  min-height: 44px;
  list-style: none;
}

.toc-mobile summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--muted);
  transition: transform var(--dur-quick) var(--ease-out);
}

.toc-mobile[open] summary::after {
  transform: rotate(180deg);
}

.library-controls {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.5rem;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field input {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
  font-size: 1rem;
  font-family: "Georgia", "Times New Roman", Times, serif;
  transition: border-color var(--dur-quick) var(--ease-out),
    box-shadow var(--dur-quick) var(--ease-out);
}

.field input:focus {
  border-color: rgba(59, 52, 47, 0.35);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-button {
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: transparent;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-out),
    color var(--dur-quick) var(--ease-out),
    transform var(--dur-quick) var(--ease-out),
    box-shadow var(--dur-quick) var(--ease-out);
}

.filter-button.is-active,
.filter-button:focus {
  border-color: var(--muted);
  color: var(--ink);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .filter-button:hover {
    border-color: var(--muted);
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(40, 33, 27, 0.08);
  }
}

.loading,
.missing {
  color: var(--muted);
  font-style: italic;
}

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

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 52, 47, 0.2) 25%, rgba(59, 52, 47, 0.2) 75%, transparent 100%);
  border: 0;
  margin: 1.5rem 0;
}

.threshold-ladder-section {
  overflow: hidden;
}

.threshold-section-header {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.05rem;
}

.threshold-section-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 52, 47, 0.12) 0%, rgba(59, 52, 47, 0.26) 35%, rgba(59, 52, 47, 0.12) 100%);
}

.threshold-intro {
  margin: 0;
}

.threshold-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.threshold-subtitle {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.threshold-ladder {
  counter-reset: none;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  max-width: 48rem;
  margin-left: 5.25rem;
  margin-right: auto;
}

.threshold-step {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.threshold-step::after {
  content: "";
  position: absolute;
  left: 1.86rem;
  top: 3.3rem;
  bottom: -1.28rem;
  width: 3px;
  background: linear-gradient(180deg, rgba(59, 52, 47, 0.42) 0%, rgba(59, 52, 47, 0.14) 100%);
}

.threshold-step:last-child::after {
  display: none;
}

.threshold-step-threshold::after {
  background: linear-gradient(180deg, rgba(59, 52, 47, 0.62) 0%, rgba(59, 52, 47, 0.22) 100%);
}

.threshold-step-marker {
  position: relative;
  z-index: 1;
  width: 3.75rem;
  min-height: 3.75rem;
  display: grid;
  place-items: center;
}

.threshold-step-marker span {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(247, 242, 232, 0.94) 100%);
  box-shadow: 0 10px 20px rgba(40, 33, 27, 0.08);
  color: var(--ink-strong);
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.threshold-step-card,
.threshold-summary-card,
.threshold-framing,
.threshold-branch {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.2rem;
}

.threshold-step-card {
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  max-width: 42rem;
}

.threshold-step-card::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 1.45rem;
  width: 1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 52, 47, 0.28) 0%, rgba(59, 52, 47, 0.12) 100%);
}

.threshold-step-threshold .threshold-step-card,
.threshold-outcome-card {
  background:
    linear-gradient(180deg, rgba(59, 52, 47, 0.05) 0%, rgba(59, 52, 47, 0.02) 100%),
    rgba(255, 255, 255, 0.28);
}

.threshold-step-threshold .threshold-step-card {
  border-color: rgba(59, 52, 47, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(59, 52, 47, 0.08),
    0 8px 18px rgba(40, 33, 27, 0.05);
}

.threshold-step-kicker {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.threshold-step-card h4,
.threshold-summary-card h4,
.threshold-framing h4 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.threshold-step-card ul,
.threshold-branch ul {
  margin: 0.15rem 0 0;
  padding-left: 1.2rem;
}

.threshold-step-card li,
.threshold-branch li {
  margin-bottom: 0.3rem;
}

.threshold-step-card li:last-child,
.threshold-branch li:last-child {
  margin-bottom: 0;
}

.threshold-outcome-card {
  overflow: hidden;
  position: relative;
}

.threshold-outcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.threshold-outcome-header h4,
.threshold-branch h5 {
  margin: 0;
}

.threshold-branches {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-top: 0.4rem;
}

.threshold-branches::before {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: 50%;
  width: calc(100% - 8rem);
  max-width: 16rem;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(59, 52, 47, 0.26) 18%, rgba(59, 52, 47, 0.26) 82%, transparent 100%);
}

.threshold-branch {
  position: relative;
  padding-top: 1.35rem;
}

.threshold-branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 0.85rem;
  transform: translateX(-50%);
  background: rgba(59, 52, 47, 0.26);
}

.threshold-branch h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 0.6rem;
}

.threshold-summary-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

.threshold-summary-card p,
.threshold-framing p {
  margin: 0;
}

.threshold-sequence {
  color: var(--ink-strong);
  max-width: 34rem;
  line-height: 1.85;
  text-wrap: balance;
}

.threshold-framing {
  margin-top: 0.9rem;
}

.synthesis-block {
  display: grid;
  gap: 1.5rem;
}

.synthesis-block-header {
  display: grid;
  gap: 0.65rem;
}

.synthesis-block-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.synthesis-block-intro {
  margin: 0;
}

.synthesis-triad {
  display: grid;
  gap: 1rem;
}

.synthesis-panel,
.synthesis-convergence,
.synthesis-limit,
.synthesis-oneline,
.synthesis-clarification {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.2rem;
}

.synthesis-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.synthesis-panel h4,
.synthesis-convergence h4,
.synthesis-limit h4,
.synthesis-oneline h4,
.synthesis-clarification h4,
.synthesis-clarification h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.synthesis-panel p,
.synthesis-convergence p,
.synthesis-limit p,
.synthesis-oneline p,
.synthesis-clarification p {
  margin: 0.7rem 0 0;
}

.synthesis-convergence {
  background:
    linear-gradient(180deg, rgba(59, 52, 47, 0.05) 0%, rgba(59, 52, 47, 0.02) 100%),
    rgba(255, 255, 255, 0.28);
}

.synthesis-limit {
  border-style: dashed;
}

.synthesis-clarification {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(59, 52, 47, 0.035) 0%, rgba(59, 52, 47, 0.015) 100%),
    rgba(255, 255, 255, 0.28);
}

.synthesis-clarification-kicker {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.synthesis-clarification-grid {
  display: grid;
  gap: 1rem;
}

.synthesis-clarification-block {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.1);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
}

.synthesis-clarification-block h5 {
  font-size: 0.92rem;
}

.synthesis-clarification-block p:first-of-type {
  margin-top: 0.55rem;
}

.synthesis-clarification-caution {
  border-style: dashed;
}

.synthesis-clarification-line {
  color: var(--muted);
  font-style: italic;
}

.synthesis-clarification-oneline {
  color: var(--ink-strong);
}

.synthesis-oneline p {
  color: var(--ink-strong);
  max-width: 44rem;
}

.citation {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
}

.citation a {
  text-decoration: none;
  color: var(--muted);
}

.citation a:hover,
.citation a:focus {
  color: var(--ink);
}

.references {
  margin-top: 2.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(59, 52, 47, 0.16);
}

.references h2 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
}

.references ol {
  margin: 0;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.65rem;
}

.references li {
  color: var(--muted);
  font-size: 0.95rem;
}

.references a {
  color: var(--ink-strong);
}

.reference-backlink {
  text-decoration: none;
  margin-left: 0.25rem;
}

.start-here--primary .button-group {
  margin-top: 0.35rem;
}

.start-here-secondary {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 52, 47, 0.14);
}

.start-here-secondary summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  min-height: 48px;
  text-transform: uppercase;
}

.start-here-secondary summary::-webkit-details-marker {
  display: none;
}

.start-here-secondary summary::after {
  content: "▾";
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--dur-quick) var(--ease-out);
}

.start-here-secondary[open] summary::after {
  transform: rotate(180deg);
}

.secondary-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.4rem;
}

.secondary-link-row .text-link {
  margin-top: 0;
}

.reading-path-compact {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.reading-path-compact p {
  margin: 0;
}

.hero-intro {
  display: grid;
  gap: 1rem;
}

.hero-intro .lead {
  margin: 0;
}

.hero-intro .subtitle {
  color: var(--ink);
  max-width: 52rem;
}

.home-orientation,
.home-secondary-destinations,
.backbone-intro,
.backbone-how-to-read,
.backbone-thesis,
.backbone-summary,
.backbone-distinct,
.backbone-domain,
.backbone-references-card {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
}

.home-secondary-destinations {
  display: grid;
  gap: 0.9rem;
}

.home-secondary-destinations h3,
.backbone-intro h2,
.backbone-how-to-read h2,
.backbone-thesis h2,
.backbone-summary h2,
.backbone-distinct h2,
.backbone-domain h2,
.backbone-references-card h2 {
  margin: 0 0 0.75rem;
}

.framework-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.framework-link-cloud .text-link {
  margin-top: 0;
}

.backbone-shell {
  display: grid;
  gap: 1.4rem;
}

.backbone-grid,
.backbone-support-grid,
.backbone-distinct-grid {
  display: grid;
  gap: 1rem;
}

.backbone-domain {
  display: grid;
  gap: 1rem;
}

.backbone-domain-header,
.backbone-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.backbone-domain-header h2,
.backbone-entry-header h3 {
  margin: 0;
}

.backbone-domain-orientation,
.backbone-entry-intro,
.backbone-note {
  margin: 0;
  color: var(--muted);
}

.backbone-source-list,
.backbone-support-list,
.backbone-distinct-list {
  margin: 0;
  padding-left: 1.15rem;
}

.backbone-source-list li + li,
.backbone-support-list li + li,
.backbone-distinct-list li + li {
  margin-top: 0.45rem;
}

.backbone-entry,
.backbone-support-card,
.backbone-distinct-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.1);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.backbone-entry h3,
.backbone-support-card h3,
.backbone-distinct-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.backbone-entry p:last-child,
.backbone-support-card p:last-child,
.backbone-distinct-card p:last-child {
  margin-bottom: 0;
}

.support-label {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 52, 47, 0.12);
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.support-label--direct {
  background: rgba(255, 255, 255, 0.28);
}

.support-label--adjacent {
  border-style: dashed;
}

.support-label--analogy,
.support-label--theological {
  background: rgba(59, 52, 47, 0.04);
}

.backbone-entry-grid {
  display: grid;
  gap: 0.9rem;
}

.backbone-entry-block {
  padding: 0.9rem 0.95rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.08);
  border-radius: calc(var(--radius) - 2px);
}

.backbone-entry-block h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.backbone-entry-block p,
.backbone-entry-block ul {
  margin: 0;
}

.backbone-entry-block ul {
  padding-left: 1.05rem;
}

.backbone-entry-block li + li {
  margin-top: 0.35rem;
}

.backbone-caution {
  border-style: dashed;
}

.backbone-thesis,
.backbone-distinct {
  background:
    linear-gradient(180deg, rgba(59, 52, 47, 0.04) 0%, rgba(59, 52, 47, 0.015) 100%),
    rgba(255, 255, 255, 0.24);
}

.explorer-shell {
  display: grid;
  gap: 1.5rem;
}

.explorer-intro,
.explorer-entry,
.explorer-index,
.explorer-reference-list,
.explorer-thesis,
.explorer-theme-card,
.explorer-synthesis-card,
.explorer-pattern-card,
.explorer-use-card {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
}

.explorer-intro h2,
.explorer-entry h2,
.explorer-index h2,
.explorer-reference-list h2,
.explorer-pattern-card h4,
.explorer-use-card h4 {
  margin: 0 0 0.75rem;
}

.explorer-intro {
  display: grid;
  gap: 1rem;
}

.explorer-framing-note {
  border-style: dashed;
  color: var(--ink-strong);
}

.explorer-entry-paths,
.explorer-theme-grid,
.explorer-entry-grid,
.explorer-synthesis-grid,
.explorer-pattern-grid,
.explorer-study-grid,
.explorer-use-grid {
  display: grid;
  gap: 1rem;
}

.explorer-entry-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.1);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.explorer-thesis,
.explorer-theme-card,
.explorer-synthesis-card,
.explorer-study-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.1);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.explorer-entry-card h4,
.explorer-thesis h3,
.explorer-theme-card h3,
.explorer-synthesis-card h3,
.explorer-study-card h3,
.explorer-entry-title-row h2,
.explorer-related h4,
.explorer-key-texts h4,
.explorer-reference-list h4 {
  margin: 0;
}

.explorer-entry-card p,
.explorer-thesis p:last-child,
.explorer-theme-card p:last-child,
.explorer-synthesis-card p:last-child,
.explorer-study-card p:last-child,
.explorer-entry-card ul,
.explorer-entry p:last-child,
.explorer-pattern-card p:last-child,
.explorer-use-card p:last-child {
  margin-bottom: 0;
}

.explorer-entry-card ul,
.explorer-theme-card ul,
.explorer-study-card ul,
.explorer-related ul,
.explorer-reference-list ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
}

.explorer-entry-card li + li,
.explorer-theme-card li + li,
.explorer-study-card li + li,
.explorer-related li + li,
.explorer-reference-list li + li {
  margin-top: 0.35rem;
}

.explorer-thesis {
  background:
    linear-gradient(180deg, rgba(59, 52, 47, 0.05) 0%, rgba(59, 52, 47, 0.02) 100%),
    rgba(255, 255, 255, 0.22);
}

.explorer-theme-card,
.explorer-synthesis-card {
  display: grid;
  gap: 0.85rem;
}

.explorer-theme-note {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(59, 52, 47, 0.12);
}

.explorer-theme-note h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.explorer-theme-note p {
  margin: 0;
}

.explorer-synthesis-card {
  min-height: 100%;
}

.explorer-synthesis-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.explorer-synthesis-line {
  margin: 0;
  color: var(--ink-strong);
}

.explorer-study-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.8rem;
}

.explorer-study-card li {
  padding: 0.55rem 0;
  border-top: 1px solid rgba(59, 52, 47, 0.1);
}

.explorer-study-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.explorer-study-card li:last-child {
  padding-bottom: 0;
}

.explorer-entry {
  display: grid;
  gap: 1.15rem;
  scroll-margin-top: 1.5rem;
}

.explorer-entry-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.explorer-key-texts {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.08);
  border-radius: calc(var(--radius) - 2px);
}

.explorer-key-texts p {
  margin: 0.65rem 0 0;
}

.explorer-section-grid {
  display: grid;
  gap: 0.9rem;
}

.explorer-block {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(59, 52, 47, 0.12);
}

.explorer-block h4 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.explorer-cross-domain {
  background:
    linear-gradient(180deg, rgba(59, 52, 47, 0.035) 0%, rgba(59, 52, 47, 0.015) 100%),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.12);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem 1.05rem;
}

.explorer-cross-domain h4 {
  margin-top: 0;
}

.explorer-related {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(59, 52, 47, 0.12);
}

.explorer-chip-row,
.explorer-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.explorer-inline-links {
  margin-top: 0.75rem;
}

.explorer-inline-links a,
.explorer-pattern-card a,
.explorer-use-card a {
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 52, 47, 0.16);
}

.explorer-index-header {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.explorer-pattern-card p,
.explorer-use-card p {
  color: var(--muted);
}

.explorer-reference-list ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.2rem;
  display: grid;
  gap: 0.8rem;
}

.explorer-reference-list li {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(59, 52, 47, 0.1);
}

.explorer-reference-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.explorer-reference-label {
  color: var(--ink-strong);
}

.regulation-shell {
  display: grid;
  gap: 1.85rem;
}

.regulation-thesis,
.regulation-model,
.regulation-entry {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
}

.regulation-thesis {
  background:
    linear-gradient(180deg, rgba(59, 52, 47, 0.05) 0%, rgba(59, 52, 47, 0.02) 100%),
    rgba(255, 255, 255, 0.22);
}

.regulation-entry {
  display: grid;
  gap: 1.25rem;
}

.regulation-entry-header,
.regulation-model-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.regulation-thesis h2,
.regulation-model h2,
.regulation-entry h2 {
  margin: 0 0 0.75rem;
}

.regulation-text-grid,
.regulation-model-grid {
  display: grid;
  gap: 1rem;
}

.regulation-block,
.regulation-model-card {
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 52, 47, 0.12);
}

.regulation-block h3,
.regulation-model-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.regulation-block p:last-child,
.regulation-model-card p:last-child {
  margin-bottom: 0;
}

.regulation-key-texts,
.regulation-cross-note {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(59, 52, 47, 0.08);
  border-radius: calc(var(--radius) - 2px);
}

.regulation-key-texts h3,
.regulation-cross-note h3 {
  margin: 0;
  font-size: 0.78rem;
  font-family: "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.regulation-key-texts p,
.regulation-cross-note p {
  margin: 0.6rem 0 0;
}

.regulation-model-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.regulation-sequence {
  margin: 0;
  color: var(--ink-strong);
}

.regulation-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.regulation-inline-links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 52, 47, 0.16);
}

.page-article--explorer {
  max-width: 1380px;
}

.page-article--explorer .manuscript {
  padding: clamp(2.1rem, 3vw, 3.3rem);
}

.page-article--explorer .toc-desktop {
  padding: 1.4rem 1.35rem;
}

.page-article--explorer .toc-note {
  max-width: 18rem;
  line-height: 1.6;
}

.page-article--explorer .explorer-shell {
  gap: 1.9rem;
}

.page-article--explorer .explorer-intro,
.page-article--explorer .explorer-entry,
.page-article--explorer .explorer-index,
.page-article--explorer .explorer-reference-list {
  padding: 1.55rem 1.7rem;
}

.page-article--explorer .explorer-entry {
  gap: 1.4rem;
}

.page-article--explorer .explorer-theme-card,
.page-article--explorer .explorer-synthesis-card,
.page-article--explorer .explorer-study-card,
.page-article--explorer .explorer-pattern-card,
.page-article--explorer .explorer-entry-card,
.page-article--explorer .explorer-thesis {
  padding: 1.35rem 1.45rem;
}

.page-article--explorer .explorer-theme-card,
.page-article--explorer .explorer-study-card,
.page-article--explorer .explorer-entry-card {
  line-height: 1.78;
}

.page-article--explorer .explorer-theme-note {
  margin-top: 0.15rem;
  padding-top: 1rem;
}

.page-article--explorer .explorer-block {
  padding-top: 1.05rem;
}

.page-article--explorer .explorer-cross-domain,
.page-article--explorer .explorer-key-texts {
  padding: 1.15rem 1.2rem;
}

.page-article--explorer .explorer-section-grid {
  gap: 1.1rem 1.35rem;
}

.page-article--explorer .explorer-inline-links {
  gap: 0.7rem 1rem;
}

.page-article--explorer .explorer-study-card li {
  padding: 0.65rem 0;
}

.home-primary-grid {
  align-items: start;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 16px) + 16px);
    right: 16px;
    z-index: 40;
    background: linear-gradient(180deg, #fbf6ee 0%, #eadfce 100%);
    min-width: 56px;
    min-height: 56px;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    border-color: rgba(59, 52, 47, 0.32);
    color: var(--ink-strong);
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    box-shadow: 0 18px 36px rgba(40, 33, 27, 0.24), 0 4px 12px rgba(40, 33, 27, 0.12);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 6.5rem 1.5rem 2rem;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out),
      visibility 0s linear var(--dur-slow);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 30;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out),
      visibility 0s;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0.4rem 0;
  }

  .site-nav a {
    order: 10;
  }

  .site-nav a[href*="index.html"] {
    order: 0;
  }

  .site-nav a[href*="library.html"] {
    order: 1;
  }

  .site-nav a[href*="media.html"] {
    order: 2;
  }

  .page-article {
    grid-template-columns: 1fr;
  }

  .toc-panel {
    position: relative;
  }

  .toc-desktop {
    display: none;
  }

  .toc-mobile {
    display: block;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .page {
    gap: 2rem;
  }

  .site-nav {
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  .button,
  .filter-button,
  .text-link {
    min-height: 44px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
  }

  .grid-two,
  .library-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .threshold-ladder {
    max-width: none;
    margin-left: 0.35rem;
    margin-right: 0;
  }

  .synthesis-panel,
  .synthesis-convergence,
  .synthesis-limit,
  .synthesis-oneline,
  .synthesis-clarification {
    padding: 1.15rem 1.1rem;
  }

  .synthesis-clarification-block {
    padding: 0.95rem 1rem;
  }

  .threshold-step {
    grid-template-columns: 2.9rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .threshold-step::after {
    left: 1.4rem;
  }

  .threshold-step-marker {
    width: 2.9rem;
    min-height: 2.9rem;
  }

  .threshold-step-marker span {
    width: 2.2rem;
    height: 2.2rem;
  }

  .threshold-step-card::before {
    left: -0.85rem;
    width: 0.7rem;
  }

  .threshold-outcome-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .threshold-branches::before {
    display: none;
  }

  .threshold-branch::before {
    left: 1rem;
    transform: none;
  }

  .start-here--primary,
  .reading-path-compact {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
  }

  .home-orientation,
  .home-secondary-destinations,
  .backbone-intro,
  .backbone-how-to-read,
  .backbone-thesis,
  .backbone-summary,
  .backbone-distinct,
  .backbone-domain,
  .backbone-references-card {
    padding: 1.1rem 1rem;
  }

  .secondary-link-row {
    display: grid;
    gap: 0.2rem;
  }

  .grammar-intro-card,
  .grammar-entry,
  .grammar-closing {
    padding: 1.1rem 1rem;
  }

  .grammar-entry-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .law-tier-header,
  .lexicon-entry-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .backbone-domain-header,
  .backbone-entry-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .scale-section,
  .comparison-row {
    padding: 1.1rem 1rem;
  }

  .explorer-intro,
  .explorer-entry,
  .explorer-index,
  .explorer-reference-list,
  .regulation-thesis,
  .regulation-model,
  .regulation-entry,
  .explorer-thesis,
  .explorer-theme-card,
  .explorer-synthesis-card,
  .explorer-pattern-card,
  .explorer-use-card,
  .explorer-entry-card,
  .explorer-study-card {
    padding: 1.1rem 1rem;
  }

  .explorer-entry-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .regulation-entry-header,
  .regulation-model-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 720px) {
  .grid-two,
  .library-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .threshold-branches,
  .threshold-summary-grid,
  .synthesis-triad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

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

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

  .backbone-support-grid,
  .backbone-distinct-grid,
  .backbone-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .explorer-entry-grid,
  .explorer-synthesis-grid,
  .explorer-pattern-grid,
  .explorer-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 1100px) {
  .page-article--wide {
    grid-template-columns: minmax(14rem, 15.5rem) minmax(0, 1fr);
    gap: 3.6rem;
    align-items: start;
  }

  .page-article--wide .toc-panel {
    max-width: 15.5rem;
  }

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

  .page-article--explorer {
    grid-template-columns: minmax(14rem, 15.5rem) minmax(0, 1fr);
    gap: 3.6rem;
    align-items: start;
  }

  .page-article--explorer .toc-panel {
    max-width: 15.5rem;
  }

  .page-article--explorer .explorer-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .page-article--explorer .explorer-theme-grid > :first-child {
    grid-column: 1 / -1;
  }

  .page-article--explorer .explorer-synthesis-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .page-article--wide {
    gap: 4rem;
  }

  .page-article--explorer {
    gap: 4rem;
  }

  .page-article--explorer .explorer-shell {
    gap: 2.2rem;
  }

  .page-article--explorer .explorer-intro,
  .page-article--explorer .explorer-entry,
  .page-article--explorer .explorer-index,
  .page-article--explorer .explorer-reference-list {
    padding: 1.7rem 1.9rem;
  }

  .page-article--explorer .explorer-theme-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    transform: none !important;
  }
}
