:root {
  color-scheme: dark;
  --ink: #101414;
  --ink-soft: #1a201f;
  --line-dark: #3f4743;
  --paper: #eeece5;
  --paper-line: #bfc3ba;
  --silver: #bfc4bf;
  --gold: #ebbc51;
  --gold-bright: #f6d074;
  --red: #ac2b35;
  --display: "Bahnschrift SemiCondensed", "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
  font-family: var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: var(--gold); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { border-left: 7px solid var(--red); background: var(--ink); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 2rem; max-width: 1600px; margin: auto; padding: 1rem clamp(1.2rem, 4vw, 5rem); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; }
.brand-name { color: #f1f1ec; font-family: var(--display); font-size: 1.18rem; font-weight: 900; line-height: .85; letter-spacing: -.045em; }
.brand-stop { color: var(--gold); }
.masthead-note { color: #adb5ae; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; white-space: nowrap; }
.live-indicator { display: inline-block; width: 5px; height: 5px; margin-right: .6rem; border-radius: 50%; background: var(--gold); vertical-align: .15rem; }
.masthead-separator { color: #68716a; padding: 0 .6rem; }
.discipline-nav { display: grid; grid-template-columns: 1fr 1fr; max-width: 1600px; margin: auto; padding: 0 clamp(1.2rem, 4vw, 5rem); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.discipline-nav a { display: flex; align-items: baseline; gap: 1rem; min-width: 0; padding: .85rem 1.2rem .85rem 0; border-bottom: 3px solid transparent; color: #a8b1a8; text-decoration: none; }
.discipline-nav a + a { border-left: 1px solid var(--line-dark); padding-left: 1.4rem; }
.discipline-nav a:hover { color: #f1f0e8; }
.discipline-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #f5f2e9; }
.nav-index { color: var(--gold); font-family: var(--mono); font-size: .64rem; }
.nav-title { font-family: var(--display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.015em; }
.nav-detail { margin-left: auto; color: #949f96; font-family: var(--mono); font-size: .62rem; white-space: nowrap; }
.discipline-nav a[aria-current="page"] .nav-detail { color: var(--gold-bright); }

.inquiry { position: relative; overflow: hidden; border-left: 7px solid var(--red); background: var(--ink); }
.inquiry-inner { position: relative; z-index: 1; max-width: 1600px; margin: auto; padding: clamp(2.5rem, 4vw, 4rem) clamp(1.2rem, 4vw, 5rem) 2rem; }
.section-label { display: flex; align-items: center; gap: 1rem; color: var(--silver); font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.section-label-line { width: 34px; height: 2px; background: var(--red); }
.inquiry h1 { margin: 1.4rem 0 0; color: #f4f0e8; font-family: var(--display); font-size: clamp(5rem, 10.5vw, 11.5rem); font-weight: 900; line-height: .78; letter-spacing: -.075em; text-transform: uppercase; }
.inquiry h1 span { color: var(--gold); }
.inquiry-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin: 2rem 0 0; }
.inquiry-intro p:first-child { max-width: 540px; margin: 0; color: #c5cbc4; font-size: clamp(.95rem, 1.3vw, 1.14rem); line-height: 1.55; }
.inquiry-intro p:last-child { margin: 0; color: #999f99; font-family: var(--mono); font-size: .7rem; line-height: 1.6; letter-spacing: .04em; text-align: right; }
.ask-area { margin-top: clamp(2.8rem, 4.5vw, 4.5rem); }
.ask-area h2 { margin: 0 0 1.1rem; color: var(--gold); font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.search-form > label { display: block; padding: .8rem 0; border-top: 1px solid #606a61; color: #b7c0b6; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; }
.question-line { display: grid; grid-template-columns: minmax(0, 1fr) 182px; min-height: 132px; border-bottom: 2px solid var(--paper); }
.question-line textarea { display: block; width: 100%; min-height: 126px; padding: .7rem 1rem .9rem 0; resize: vertical; border: 0; outline: 0; background: transparent; color: #f3f1e9; font-family: var(--display); font-size: clamp(1.8rem, 3.1vw, 3.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.question-line textarea::placeholder { color: #8e988e; opacity: 1; }
.question-line textarea:focus { background: #171d1a; }
.question-line textarea:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
.search-button { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem; border: 0; background: var(--gold); color: var(--ink); font-family: var(--mono); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-align: left; transition: background .18s; }
.search-button:hover { background: var(--gold-bright); }
.search-button:disabled { cursor: wait; opacity: .65; }
.search-button span { align-self: flex-end; font-family: var(--body); font-size: 2.4rem; font-weight: 300; line-height: 1; }
.form-message { min-height: 1.25rem; margin: .55rem 0 0; color: var(--gold-bright); font-size: .78rem; }
.form-message.error { color: #f6acaa; }
.prompt-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem 1.4rem; margin-top: .65rem; }
.prompt-list > span { margin-right: .5rem; color: #8d988d; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .07em; }
.prompt-list button { padding: .15rem 0; border: 0; border-bottom: 1px solid #677167; background: transparent; color: #d6ddd3; font-size: .75rem; text-align: left; }
.prompt-list button:hover { border-color: var(--gold); color: var(--gold-bright); }
.prompt-list button span { margin-left: .25rem; color: var(--gold); }
.source-shelf { margin-top: clamp(3.5rem, 6vw, 6rem); border-top: 1px solid #596259; border-bottom: 1px solid #596259; }
.source-shelf summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; list-style: none; cursor: pointer; }
.source-shelf summary::-webkit-details-marker { display: none; }
.shelf-title { color: #eeeee6; font-family: var(--mono); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.shelf-arrow { display: inline-block; margin-left: .5rem; color: var(--gold); font-size: 1.2rem; line-height: .5; transition: transform .18s; }
.source-shelf details[open] .shelf-arrow { transform: rotate(45deg); }
#selectedSourceCount { color: var(--gold-bright); font-family: var(--mono); font-size: .7rem; }
.shelf-content { padding: 1rem 0 2rem; border-top: 1px solid #343b36; }
.shelf-intro { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; }
.shelf-intro h3 { margin: 0; color: #edece3; font-family: var(--display); font-size: 1.8rem; letter-spacing: -.035em; }
.shelf-intro p { max-width: 540px; margin: 0; color: #aeb8ad; font-size: .78rem; line-height: 1.5; }
.source-tally { margin: 1.4rem 0 .8rem; color: var(--gold-bright); font-family: var(--mono); font-size: .68rem; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; max-height: 520px; overflow: auto; }
.source-group-title { grid-column: 1 / -1; margin: 1.3rem 0 .25rem; padding-bottom: .35rem; border-bottom: 1px solid #5b655a; color: #b6c0b4; font-family: var(--mono); font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
.source-item { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; padding: .9rem 0; border-bottom: 1px solid #343c36; cursor: pointer; }
.source-item:hover { background: #1a211c; }
.source-item input { width: 17px; height: 17px; margin: .15rem 0 0; accent-color: var(--gold); }
.source-item strong { display: flex; justify-content: space-between; gap: .5rem; color: #efeee5; font-size: .78rem; }
.source-item strong span:last-child { color: var(--gold-bright); font-family: var(--mono); font-size: .65rem; }
.source-item small { display: block; margin-top: .2rem; color: #bbc4b9; font-size: .68rem; line-height: 1.4; }
.source-item .source-meta { display: block; margin-top: .3rem; color: #919e92; font-family: var(--mono); font-size: .59rem; line-height: 1.35; }
.source-item .archive-badge { color: #f1ba86; }
.source-item.is-unavailable { opacity: .5; cursor: not-allowed; }
.source-note { margin: 1.2rem 0 0; max-width: 900px; color: #acb5aa; font-size: .7rem; line-height: 1.5; }
.scope-note { max-width: 900px; margin: 1rem 0 0; color: #adb8ac; font-size: .7rem; line-height: 1.6; }

.evidence { background: var(--paper); color: var(--ink); }
.evidence-inner { max-width: 1600px; margin: auto; padding: clamp(3rem, 6vw, 6rem) clamp(1.2rem, 4vw, 5rem); }
.overline { margin: 0; color: #9a3b3e; font-family: var(--mono); font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.evidence-title h2 { margin: .6rem 0 .5rem; font-family: var(--display); font-size: clamp(3.1rem, 5.6vw, 6rem); font-weight: 900; line-height: .95; letter-spacing: -.06em; text-transform: uppercase; }
.evidence-title > p:last-child { max-width: 650px; margin: 0; color: #58615a; font-size: .87rem; line-height: 1.55; }
.query-recap { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 5rem); padding: 1.2rem 1.4rem; background: var(--ink-soft); color: #efeee8; }
.query-recap > span:first-child { color: var(--gold); font-family: var(--mono); font-size: .63rem; font-weight: 800; letter-spacing: .06em; }
.query-recap strong { font-family: var(--display); font-size: clamp(1.05rem, 1.7vw, 1.5rem); font-weight: 600; overflow-wrap: anywhere; }
.query-recap > span:last-child { color: #bec6bc; font-family: var(--mono); font-size: .65rem; white-space: nowrap; }
.message { margin: 1.1rem 0 1.5rem; color: #68736a; font-size: .78rem; line-height: 1.5; }
.message.error { color: #a72b34; }
.results-list { border-top: 2px solid var(--ink); }
.folio-entry { display: grid; grid-template-columns: 44px minmax(165px, .25fr) minmax(0, .55fr) minmax(125px, .2fr); gap: 1.2rem; padding: 1.9rem 0 2.2rem; border-bottom: 1px solid var(--paper-line); }
.folio-number { color: var(--red); font-family: var(--display); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.folio-source { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.folio-topic { color: #805c45; font-family: var(--mono); font-size: .59rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.folio-title { margin: .1rem 0; font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; }
.folio-edition { color: #4f5b52; font-size: .67rem; line-height: 1.5; }
.folio-page { margin-top: .65rem; padding-top: .35rem; border-top: 2px solid var(--red); color: #724039; font-family: var(--mono); font-size: .66rem; font-weight: 800; }
.folio-passage { grid-column: 3; grid-row: 1; min-width: 0; }
.folio-preview-label { display: block; margin-bottom: .6rem; color: #7d4241; font-family: var(--mono); font-size: .62rem; font-weight: 800; line-height: 1.4; text-transform: uppercase; }
.folio-passage blockquote { margin: 0; color: #202b24; font-size: .87rem; line-height: 1.7; }
.folio-expand { display: none; }
.folio-warning { margin: 0 0 .7rem; padding-left: .65rem; border-left: 3px solid #ad563f; color: #835043; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.folio-trace { display: block; margin-top: .8rem; color: #657269; font-family: var(--mono); font-size: .6rem; line-height: 1.5; }
.folio-links { display: flex; grid-column: 4; grid-row: 1; flex-direction: column; align-items: flex-start; gap: .6rem; }
.folio-links a { padding-bottom: .25rem; border-bottom: 1px solid #87313b; color: #8c2f37; font-family: var(--mono); font-size: .7rem; font-weight: 800; line-height: 1.45; text-decoration: none; }
.folio-links a:hover { color: #b92f39; border-color: #b92f39; }
.feedback-section { display: grid; grid-template-columns: minmax(200px, .3fr) minmax(0, .7fr); gap: 3rem; margin-top: clamp(3rem, 5vw, 5rem); padding-top: 2rem; border-top: 2px solid var(--ink); }
.feedback-heading h3 { margin: .5rem 0 0; font-family: var(--display); font-size: 2.3rem; line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.feedback-form { max-width: 650px; }
.feedback-choice { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.4rem; }
.feedback-choice label { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; cursor: pointer; }
.feedback-choice input { accent-color: var(--red); }
.feedback-form > label { display: block; margin-bottom: .5rem; font-family: var(--mono); font-size: .67rem; font-weight: 800; letter-spacing: .07em; }
.feedback-form > label span { color: #667068; font-family: var(--body); font-weight: 400; letter-spacing: 0; }
.feedback-form textarea { display: block; width: 100%; min-height: 86px; padding: .8rem; resize: vertical; border: 1px solid #a8afa5; background: #f8f7f2; color: var(--ink); font-size: .8rem; line-height: 1.5; }
.feedback-form textarea::placeholder { color: #687168; }
.feedback-button { display: inline-flex; align-items: center; gap: 1.2rem; margin-top: .8rem; padding: .8rem 1rem; border: 0; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .67rem; font-weight: 800; }
.feedback-button:hover { background: #38433a; }
.feedback-button:disabled { opacity: .5; cursor: wait; }
.feedback-button span { color: var(--gold); font-size: 1rem; }
#feedbackMessage { min-height: 1rem; margin: .6rem 0 0; font-size: .75rem; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem clamp(1.2rem, 4vw, 5rem); border-left: 7px solid var(--red); border-top: 1px solid var(--line-dark); color: #abb5aa; font-family: var(--mono); font-size: .62rem; line-height: 1.5; }

@media (max-width: 900px) {
  .inquiry h1 { font-size: clamp(4.6rem, 12vw, 8rem); }
  .inquiry-intro { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .inquiry-intro p:last-child { text-align: left; }
  .folio-entry { grid-template-columns: 40px minmax(140px, .28fr) minmax(0, .72fr); }
  .folio-links { grid-column: 3; grid-row: 2; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .site-header, .inquiry, .site-footer { border-left-width: 4px; }
  .masthead { padding: .9rem 1rem; }
  .masthead-note { display: none; }
  .discipline-nav { padding: 0 1rem; }
  .discipline-nav a { align-items: flex-start; flex-wrap: wrap; gap: .25rem .6rem; padding: .7rem .5rem .7rem 0; }
  .discipline-nav a + a { padding-left: .8rem; }
  .nav-title { font-size: .9rem; }
  .nav-detail { width: 100%; margin-left: 1.4rem; font-size: .75rem; }
  .inquiry-inner { padding: 2.8rem 1rem 1.4rem; }
  .section-label { font-size: .57rem; }
  .section-label-line { width: 20px; }
  .inquiry h1 { margin-top: 1.5rem; font-size: clamp(3.25rem, 15vw, 6rem); line-height: .82; }
  .inquiry-intro { margin-top: 2rem; }
  .inquiry-intro p:first-child { font-size: .88rem; }
  .ask-area { margin-top: 4rem; }
  .question-line { grid-template-columns: 1fr; }
  .question-line textarea { min-height: 116px; font-size: clamp(1.8rem, 7vw, 2.7rem); }
  .search-button { flex-direction: row; align-items: center; min-height: 64px; }
  .search-button span { align-self: center; font-size: 1.5rem; }
  .prompt-list { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .prompt-list > span { margin-bottom: .3rem; }
  .prompt-list button { min-height: 36px; padding: .4rem 0; font-size: .84rem; }
  .source-shelf { margin-top: 3rem; }
  .shelf-intro { flex-direction: column; gap: .5rem; }
  .source-list { grid-template-columns: 1fr; }
  .query-recap { grid-template-columns: 1fr; gap: .5rem; }
  .folio-entry { grid-template-columns: 38px minmax(0, 1fr); gap: .9rem; }
  .folio-number { grid-row: 1 / 4; }
  .folio-source { grid-column: 2; grid-row: 1; }
  .folio-links { grid-column: 2; grid-row: 2; flex-direction: row; }
  .folio-passage { grid-column: 2; grid-row: 3; }
  .folio-topic, .folio-preview-label, .folio-trace { font-size: .75rem; }
  .folio-edition, .folio-page, .folio-links a { font-size: .75rem; }
  .folio-passage:not(.expanded) blockquote { display: -webkit-box; max-height: 14em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 8; }
  .folio-expand { display: inline-block; min-height: 36px; margin-top: .5rem; padding: .25rem 0; border: 0; border-bottom: 1px solid var(--red); background: transparent; color: #8c2f37; font-family: var(--mono); font-size: .74rem; font-weight: 800; }
  .folio-trace { margin-top: .55rem; }
  .feedback-section { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Beta direction: an open reading surface with a quiet source rail. */
:root {
  --ink: #101216;
  --ink-soft: #1b1d23;
  --paper: #ede9e0;
  --gold: #d8a679;
  --gold-bright: #f0cba1;
  --red: #a5363c;
  --display: Georgia, "Times New Roman", serif;
}
body { background: #101216; }
.site-header, .inquiry, .site-footer { border-left: 0; }
.site-header { background: #101216; }
.masthead, .discipline-nav, .inquiry-inner, .evidence-inner, .workbench-inner { max-width: 1840px; }
.masthead { padding-block: 1.35rem; }
.brand { gap: 1rem; }
.brand-mark { width: clamp(64px, 5.5vw, 94px); height: clamp(64px, 5.5vw, 94px); filter: drop-shadow(0 6px 18px #cf4d352e); }
.brand-name { font-family: var(--display); font-size: clamp(1.35rem, 1.8vw, 2rem); font-weight: 400; line-height: 1; letter-spacing: -.055em; }
.brand-name small { display: block; margin-top: .45rem; color: #b9b5b0; font-family: var(--body); font-size: .52rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.masthead-note { font-size: .68rem; letter-spacing: .12em; }
.discipline-nav { display: flex; gap: 2.5rem; border-top: 0; border-bottom-color: #3c4046; }
.discipline-nav a, .discipline-nav a + a { width: auto; gap: .6rem; padding: .8rem 0 1rem; border-left: 0; }
.nav-index { font-size: .6rem; }
.nav-title { font-family: var(--body); font-size: .92rem; font-weight: 600; }
.nav-detail { margin-left: .4rem; font-size: .62rem; }
.inquiry { background: radial-gradient(ellipse at 84% 21%, #4a2e2a27, transparent 35%), #101216; }
.inquiry-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); column-gap: clamp(3rem, 7vw, 9rem); padding-top: clamp(2.5rem, 4vw, 5rem); padding-bottom: clamp(4rem, 5vw, 6rem); }
.section-label { grid-column: 1 / -1; color: #c4a98c; font-size: .65rem; letter-spacing: .15em; }
.section-label-line { background: #bd765b; }
.inquiry h1 { grid-column: 1 / -1; max-width: 1100px; margin: 1.2rem 0 0; font-size: clamp(4rem, 6.5vw, 8.1rem); font-weight: 400; line-height: .98; letter-spacing: -.072em; text-transform: none; }
.inquiry h1 span { color: #e5b690; font-style: italic; font-weight: 400; }
.inquiry-intro { grid-column: 1; display: block; margin-top: 1.5rem; }
.inquiry-intro p:first-child { max-width: 650px; color: #d0c8bd; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.inquiry-intro p:last-child { margin-top: 1rem; color: #a1a6a5; text-align: left; }
.ask-area { grid-column: 1; margin-top: 2.2rem; }
.ask-area h2 { color: #d8a679; font-size: .7rem; }
.search-form > label { border-top-color: #4a4847; }
.question-line { grid-template-columns: minmax(0, 1fr) 158px; min-height: 105px; border-bottom: 1px solid #9b958d; }
.question-line textarea { min-height: 100px; font-family: var(--display); font-size: clamp(1.5rem, 2.3vw, 2.6rem); font-weight: 400; line-height: 1.17; }
.question-line textarea::placeholder { color: #a9a7a1; }
.search-button { justify-content: space-between; background: #d8a679; font-size: .68rem; }
.search-button:hover { background: #f0cba1; }
.prompt-list { margin-top: .9rem; }
.prompt-list button { font-size: .76rem; }
.calculation-jump { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.45rem; padding-bottom: .3rem; border-bottom: 1px solid #bd765b; color: #e8bb93; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.calculation-jump:hover { color: #ffddb4; border-color: #ffddb4; }
.source-shelf { grid-column: 2; grid-row: 4 / span 2; align-self: start; margin-top: 2.4rem; border-top: 0; border-bottom-color: #515157; }
.source-shelf summary { border-top: 1px solid #515157; }
.shelf-intro { display: block; }
.shelf-intro h3 { font-family: var(--display); font-weight: 400; }
.shelf-intro p { margin-top: .5rem; }
.source-list { display: block; max-height: 350px; }
.source-item { padding: .7rem 0; }
.source-item strong { font-size: .83rem; }
.source-tally { line-height: 1.6; }
.scope-note { grid-column: 2; grid-row: 6; max-width: 390px; color: #aea79d; font-size: .72rem; }

.workbench { background: #1b1c22; color: #f3eee7; border-top: 1px solid #33383d; }
.workbench-inner { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); gap: clamp(3rem, 6vw, 8rem); margin: auto; padding: clamp(4rem, 6vw, 7rem) clamp(1.2rem, 4vw, 5rem); }
.workbench-index, .calc-kicker, .calc-scenario { color: #d8a679; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.workbench-heading h2 { margin: 1.1rem 0 1.5rem; font-family: var(--display); font-size: clamp(3.4rem, 5vw, 6rem); font-weight: 400; line-height: 1.01; letter-spacing: -.065em; }
.workbench-heading h2 em { color: #d8a679; font-weight: 400; }
.workbench-heading > p:last-child { max-width: 430px; color: #c0c0bd; font-size: .95rem; line-height: 1.65; }
.workbench-body { min-width: 0; }
.calculator-form { border-top: 1px solid #696461; }
.calculator-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.8rem; padding-top: 1.3rem; }
.calc-scenario, .calc-assumption { grid-column: 1 / -1; margin: 0; }
.calculator-fields label { display: block; color: #f3eee7; font-family: var(--body); font-size: .88rem; font-weight: 600; }
.calculator-fields label span { display: block; margin-top: .15rem; color: #9faaa9; font-size: .72rem; font-weight: 400; }
.calculator-fields input { display: block; width: 100%; margin-top: .45rem; padding: .55rem 0; border: 0; border-bottom: 1px solid #8c837b; border-radius: 0; outline: 0; background: transparent; color: #f7e9d8; font-family: var(--display); font-size: clamp(1.8rem, 2.4vw, 2.6rem); }
.calculator-fields input:focus { border-color: #e3bb8f; }
.calc-assumption { max-width: 660px; color: #bbb8b3; font-size: .78rem; line-height: 1.55; }
#calculateButton { display: flex; justify-content: space-between; width: 100%; max-width: 420px; margin-top: 1.7rem; padding: 1rem 1.2rem; border: 0; background: #d8a679; color: #151519; font-family: var(--mono); font-size: .73rem; font-weight: 800; letter-spacing: .05em; }
#calculateButton:hover { background: #f0cba1; }
#calculateButton:disabled { opacity: .6; cursor: wait; }
#calculateButton span { font-size: 1.1rem; }
#calculatorMessage { min-height: 1rem; color: #e0b58b; font-size: .78rem; }
.calculator-result { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid #696461; }
.calc-headline { margin: .5rem 0; font-family: var(--display); font-size: clamp(2.1rem, 3vw, 3.5rem); font-weight: 400; line-height: 1.12; letter-spacing: -.05em; }
.calc-primary { margin: .8rem 0 1.2rem; color: #e6ba8e; font-size: 1.08rem; }
.calc-step { margin: .5rem 0; color: #efe9df; font-family: var(--mono); font-size: .76rem; line-height: 1.6; overflow-wrap: anywhere; }
.calc-basis, .calc-limit { max-width: 760px; color: #b8b6b3; font-size: .78rem; line-height: 1.6; }
.calc-limit { padding-left: .9rem; border-left: 2px solid #a5363c; }
.calc-citation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #4a4a4e; }
.calc-source-label { color: #d4d0ca; font-family: var(--mono); font-size: .72rem; line-height: 1.5; }
.calc-citation a { color: #efc496; font-size: .82rem; text-underline-offset: .25rem; }

.evidence { background: #11151b; color: #f2ede4; }
.overline { color: #d8a679; }
.evidence-title h2 { font-family: var(--display); font-weight: 400; text-transform: none; }
.evidence-title > p:last-child, .message { color: #b5b8b5; }
.query-recap { padding-inline: 0; border-top: 1px solid #53585a; border-bottom: 1px solid #53585a; background: transparent; }
.results-list { border-top-color: #53585a; }
.folio-entry { grid-template-columns: 38px minmax(180px, .3fr) minmax(0, .7fr); border-bottom-color: #4b5052; }
.folio-title { font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.folio-edition, .folio-passage blockquote { color: #d5d1cb; }
.folio-page, .folio-topic, .folio-preview-label { color: #d8a679; }
.folio-passage { grid-column: 3; grid-row: 1 / span 2; }
.folio-passage blockquote { font-family: var(--display); font-size: 1.15rem; line-height: 1.65; }
.folio-links { grid-column: 2; grid-row: 2; }
.folio-links a { color: #e2b384; border-bottom-color: #d8a679; }
.folio-trace, .folio-warning { color: #aaa9a5; }
.feedback-section { border-top-color: #53585a; }
.feedback-heading h3 { font-family: var(--display); font-weight: 400; text-transform: none; }
.feedback-form textarea { background: #20242a; color: #f3eee7; border-color: #656a6c; }
.feedback-form > label span { color: #a9aaa8; }
.feedback-button { background: #d8a679; color: #14151a; }
.site-footer { border-top-color: #383d40; }

@media (max-width: 900px) {
  .inquiry-inner { grid-template-columns: 1fr; }
  .section-label, .inquiry h1, .inquiry-intro, .ask-area, .source-shelf, .scope-note { grid-column: 1; grid-row: auto; }
  .source-shelf { margin-top: 3rem; }
  .workbench-inner { grid-template-columns: 1fr; gap: 2rem; }
  .folio-entry { grid-template-columns: 38px minmax(0, 1fr); }
  .folio-source { grid-column: 2; grid-row: 1; }
  .folio-passage { grid-column: 2; grid-row: 3; }
  .folio-links { grid-column: 2; grid-row: 2; }
}
@media (max-width: 650px) {
  .masthead { padding: .9rem 1rem; }
  .brand-mark { width: 62px; height: 62px; }
  .brand-name { font-size: 1.34rem; }
  .discipline-nav { gap: 1.5rem; }
  .nav-detail { display: none; }
  .inquiry-inner { padding-top: 3rem; }
  .inquiry h1 { font-size: clamp(3.25rem, 13vw, 5rem); }
  .ask-area { margin-top: 2.5rem; }
  .question-line { grid-template-columns: 1fr; }
  .question-line textarea { font-size: 1.85rem; }
  .search-button { min-height: 58px; }
  .source-shelf details:not([open]) .shelf-content { display: none; }
  .calculator-fields { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .calculator-fields input { font-size: 1.75rem; }
  .workbench-heading h2 { font-size: 3.7rem; }
  .folio-passage blockquote { font-size: 1.04rem; }
}

/* Spark reading workspace: compact entry, visible source text, and quiet controls. */
.masthead, .discipline-nav, .inquiry-inner, .evidence-inner, .workbench-inner { max-width: 1380px; }
.masthead { padding-block: 1rem; }
.brand-mark { width: 72px; height: 72px; filter: none; }
.brand-name { font-size: 2.25rem; font-weight: 600; }
.brand-name small { margin-top: .3rem; font-size: .63rem; letter-spacing: .08em; }
.discipline-nav { gap: 2.4rem; }
.discipline-nav a, .discipline-nav a + a { padding: .8rem 0; }
.nav-title { font-size: .9rem; }
.nav-detail { font-size: .6rem; letter-spacing: .03em; }

.inquiry { background: radial-gradient(ellipse at 85% 5%, #55413820, transparent 38%), #101216; }
.inquiry-inner {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  column-gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}
.section-label { grid-column: 1; grid-row: 1; }
.inquiry h1 {
  grid-column: 1;
  grid-row: 2;
  max-width: 850px;
  margin-top: 1rem;
  font-size: clamp(3.5rem, 5.4vw, 6.4rem);
  line-height: 1.02;
}
.inquiry-intro { grid-column: 1; grid-row: 3; margin-top: 1.15rem; }
.inquiry-intro p:first-child { max-width: 660px; font-size: 1rem; }
.inquiry-intro p:last-child { margin-top: .75rem; }
.ask-area { grid-column: 1; grid-row: 4; margin-top: 2.2rem; }
.ask-area h2 { margin-bottom: .75rem; font-size: .72rem; }
.search-form > label { padding: .55rem 0; border-top: 0; color: #c4c2bd; }
.question-line {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  min-height: 60px;
  border-bottom: 1px solid #7c7b79;
}
.question-line:focus-within { border-bottom-color: #edc395; box-shadow: 0 1px 0 #edc395; }
.question-line textarea {
  flex: 1;
  min-width: 0;
  min-height: 58px;
  max-height: 160px;
  padding: .9rem 0 .7rem;
  resize: none;
  overflow-y: auto;
  font-family: var(--body);
  font-size: 1.13rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}
.question-line textarea:focus, .question-line textarea:focus-visible { background: transparent; outline: 0; }
.question-line textarea::placeholder { color: #aeb3b3; }
.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 150px;
  min-height: 44px;
  margin-bottom: .45rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.question-help { margin: .65rem 0 0; color: #a9aaa6; font-size: .76rem; line-height: 1.45; }
.form-message { min-height: 0; }
.prompt-list { margin-top: 1.05rem; }
.prompt-list button { font-size: .76rem; }
.source-shelf { grid-column: 2; grid-row: 2 / span 3; margin-top: 1rem; }
.source-shelf summary { padding: .8rem 0; }
.source-shelf .shelf-content { max-height: 460px; overflow-y: auto; }
.scope-note { grid-column: 2; grid-row: 5; margin-top: 1rem; }

.evidence, .workbench { border-top: 0; background: #101216; }
.evidence-inner { padding-top: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.evidence-title { display: grid; grid-template-columns: minmax(160px, .28fr) minmax(0, .72fr); gap: .2rem clamp(1.5rem, 4vw, 4rem); }
.evidence-title .overline { grid-column: 1; margin-top: .65rem; }
.evidence-title h2 { grid-column: 2; margin: 0; font-size: clamp(2.7rem, 4.5vw, 5rem); letter-spacing: -.065em; }
.evidence-title > p:last-child { grid-column: 2; max-width: 540px; margin-top: .5rem; }
.query-recap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: clamp(2rem, 4vw, 4rem); padding: 0 0 1rem; border-top: 0; border-bottom: 1px solid #41454b; }
.query-recap strong { flex: 1 1 380px; font-family: var(--body); font-size: .98rem; font-weight: 500; }
.query-recap > span:last-child { white-space: normal; }
.message:empty { display: none; }
.results-list { border-top: 0; }
.passage-card {
  display: grid;
  grid-template-columns: minmax(240px, .28fr) minmax(0, .72fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 4rem) 0 0;
  border: 0;
}
.passage-rank, .passage-label, .calc-evidence-label { color: #d8a679; font-family: var(--mono); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.passage-code { margin: .7rem 0 .65rem; color: #f1ece5; font-family: var(--display); font-size: clamp(3.6rem, 6.2vw, 7rem); font-weight: 400; line-height: .96; letter-spacing: -.07em; overflow-wrap: anywhere; }
.passage-topic { max-width: 340px; margin: 0; color: #d8a679; font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.3; }
.passage-reading { min-width: 0; padding-top: .45rem; }
.passage-text { max-width: 860px; margin: .9rem 0 0; color: #ece5dc; font-family: var(--display); font-size: clamp(1.25rem, 1.7vw, 1.7rem); line-height: 1.62; overflow-wrap: anywhere; }
.passage-scope { max-width: 720px; margin: 2rem 0 0; color: #cbbba9; font-size: .86rem; line-height: 1.6; }
.passage-citation { max-width: 290px; margin: 1.7rem 0 0; padding-top: 1rem; border-top: 1px solid #41454b; color: #aeb0ac; font-family: var(--mono); font-size: .73rem; line-height: 1.5; }

.workbench-inner { padding-top: clamp(3rem, 5vw, 5rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.workbench-heading h2 { font-size: clamp(2.5rem, 4vw, 4.2rem); }
#calculateButton { justify-content: center; width: auto; min-width: 180px; min-height: 44px; margin-top: 1.5rem; padding: .7rem 1.2rem; border-radius: 999px; }
.calc-citation { display: block; }
.calc-source-label { margin: 0 0 1rem; color: #edc39a; }
.calc-evidence-label { display: block; margin: 1.2rem 0 .35rem; }
.calc-evidence-text { max-width: 800px; margin: 0; color: #e8e2d9; font-family: var(--display); font-size: 1.12rem; line-height: 1.55; }

@media (max-width: 900px) {
  .inquiry-inner { grid-template-columns: 1fr; }
  .section-label, .inquiry h1, .inquiry-intro, .ask-area, .source-shelf, .scope-note { grid-column: 1; grid-row: auto; }
  .evidence-title { grid-template-columns: 1fr; gap: .6rem; }
  .evidence-title .overline, .evidence-title h2, .evidence-title > p:last-child { grid-column: 1; }
  .source-shelf { margin-top: 2rem; }
  .scope-note { margin-top: .5rem; }
}
@media (max-width: 650px) {
  .brand-mark { width: 58px; height: 58px; }
  .brand-name { font-size: 1.7rem; }
  .brand-name small { font-size: .55rem; }
  .discipline-nav { gap: 1.4rem; }
  .discipline-nav a, .discipline-nav a + a { padding: .7rem 0; }
  .inquiry-inner { padding-top: 2.4rem; padding-bottom: 2.5rem; }
  .inquiry h1 { margin-top: .9rem; font-size: clamp(2.75rem, 11vw, 4rem); line-height: 1.04; }
  .inquiry-intro { margin-top: 1rem; }
  .ask-area { margin-top: 1.7rem; }
  .question-line { gap: .5rem; }
  .question-line textarea { min-height: 56px; font-size: 1rem; }
  .search-button { min-width: 116px; min-height: 42px; margin-bottom: .45rem; padding: .65rem .8rem; font-size: .63rem; }
  .question-help { font-size: .71rem; }
  .prompt-list { align-items: baseline; flex-direction: row; gap: .5rem 1rem; }
  .prompt-list > span { flex-basis: 100%; margin-bottom: 0; }
  .prompt-list button { min-height: 0; padding: .1rem 0; font-size: .75rem; }
  .passage-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 0; }
  .passage-text { font-size: clamp(1.25rem, 4vw, 1.6rem); }
  .workbench-heading h2 { font-size: 2.8rem; }
  .calculator-fields { grid-template-columns: 1fr 1fr; }
}
