/* Space Immanence — working-paper site
   Principles: no third-party requests, system font stack, restrained typography,
   one accent color, print-ready. */

:root {
  --bg: #f8f6f0;
  --paper: #fffdf9;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --muted: #625d54;
  --muted-soft: #90887c;
  --meta: #7b7469;
  --meta-soft: #aaa296;
  --line: #d7cec0;
  --line-soft: #e9e1d3;
  --accent: #123f39;
  --accent-bright: #0d554c;
  --accent2: #a45f2a;
  --serif: "Iowan Old Style", "Palatino Linotype", "Palatino", "URW Palladio L", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --measure: 64ch;
  --measure-wide: 76ch;
  --radius: 4px;
  --radius-lg: 6px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.66;
  font-feature-settings: "kern", "liga", "onum";
  font-kerning: normal;
  hanging-punctuation: first last;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-bright); }

/* ---------- Navigation ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 246, 240, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}
nav .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 15px;
  display: flex;
  gap: 8px 28px;
  flex-wrap: wrap;
  align-items: center;
}
nav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
nav .brand {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  margin-right: auto;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
nav .brand:hover { border-bottom-color: transparent; color: var(--ink); }

/* ---------- Layout containers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
header, main, footer { max-width: 920px; margin: 0 auto; padding: 48px 24px; }
body > main#main:not(.article) { max-width: none; padding: 0; }
main.article { padding-top: 32px; }
main.article h1:first-child { margin-top: 0; }
.layout-toc {
  max-width: 920px;
  margin: 0 auto;
  padding: 38px 24px 72px;
}

/* With ToC — on wide screens give article a two-column grid */
@media (min-width: 1080px) {
  .layout-toc {
    max-width: 1180px;
    display: block;
    padding: 44px 24px 76px;
  }
  .layout-toc > article {
    min-width: 0;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, var(--measure-wide)) 260px;
    gap: 56px;
    align-items: start;
  }
  .layout-toc > article > :not(.toc) {
    grid-column: 1;
    min-width: 0;
  }
  .layout-toc aside.toc {
    grid-column: 2;
    grid-row: 1 / span 24;
    position: sticky;
    top: 72px;
    align-self: start;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding: 4px 0 4px 18px;
  }
  .layout-toc aside.toc ol { list-style: none; padding: 0; margin: 0; }
  .layout-toc aside.toc ol ol { padding-left: 14px; margin-top: 4px; border-left: 1px solid var(--line-soft); }
  .layout-toc aside.toc li { margin: 4px 0; }
  .layout-toc aside.toc a { color: var(--muted); text-decoration: none; }
  .layout-toc aside.toc a:hover { color: var(--accent); }
  .layout-toc aside.toc .toc-title {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--muted-soft);
    margin-bottom: 10px;
    display: block;
  }
  .layout-toc aside.toc details > summary { display: none; }
  .layout-toc aside.toc details { display: block; }
}

/* Narrow viewport — ToC becomes a collapsible block at the top */
@media (max-width: 1079px) {
  aside.toc {
    font-family: var(--sans);
    font-size: 14px;
    background: #f1ece3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 30px 0;
  }
  aside.toc .toc-title { display: none; }
  aside.toc details { display: block; }
  aside.toc > details > summary {
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: var(--muted);
    list-style: none;
  }
  aside.toc > details > summary::-webkit-details-marker { display: none; }
  aside.toc > details > summary::after {
    content: " +"; color: var(--muted-soft);
  }
  aside.toc > details[open] > summary::after { content: " −"; }
  aside.toc ol { list-style: none; padding: 10px 0 0; margin: 0; }
  aside.toc ol ol { padding-left: 14px; }
  aside.toc li { margin: 4px 0; }
  aside.toc a { color: var(--accent); text-decoration: none; }
  aside.toc details[open] > ol {
    max-height: 22rem;
    overflow-y: auto;
    padding-right: 6px;
  }
}

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 24px; }
.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--meta);
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: 4.75rem;
  line-height: 0.98;
  letter-spacing: 0;
  margin: 0 0 14px;
}
.hero .dek {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.4;
  max-width: 720px;
  margin: 0 0 32px;
}
.claim {
  font-size: 1.75rem;
  line-height: 1.28;
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-style: italic;
}

/* ---------- Typography ---------- */
main p, main li, main blockquote { max-width: var(--measure); }
main.article p, main.article li, main.article blockquote { max-width: var(--measure); }
main p { margin: 0 0 1.05em; }
main p, main li, main blockquote { text-wrap: pretty; }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: 0; text-wrap: balance; }
h1 { font-size: 2.875rem; line-height: 1.06; margin: 0 0 18px; }
h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  margin: 2.4em 0 0.6em;
  padding-top: 0.3em;
  border-top: 1px solid var(--line-soft);
}
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 21px; line-height: 1.28; margin: 2em 0 0.5em; }
h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 1.6em 0 0.4em;
  font-family: var(--sans);
}

main blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}
main blockquote p:last-child { margin-bottom: 0; }
main blockquote.plain { font-style: normal; }

strong { color: var(--ink); }
em { color: var(--ink-soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
section[id], h2[id], h3[id] { scroll-margin-top: 96px; }

/* ---------- Buttons ---------- */
.buttons { margin: 24px 0 8px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  min-height: 44px;
  padding: 11px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.buttons a:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.buttons a.primary { background: var(--accent); color: #fff; }
.buttons a.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 22px 0;
  max-width: var(--measure-wide);
}
.card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: var(--radius-lg);
}
.card p:last-child { margin-bottom: 0; }
.label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

/* ---------- Diagrams / figures ---------- */
.diagram {
  background: #f0ebe0;
  border: 1px solid var(--line);
  padding: 24px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  margin: 28px 0;
  max-width: var(--measure-wide);
}
.diagram svg { display: block; width: 100%; height: auto; max-width: 640px; margin: 0 auto; }
figure { margin: 28px 0; max-width: var(--measure-wide); }
figure img, figure svg { display: block; width: 100%; height: auto; }
figcaption {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}
pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: #f1ecdf;
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; max-width: var(--measure-wide); }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-family: var(--sans); }
th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
  line-height: 1.5;
}
th { background: #f3eee4; font-weight: 600; }

/* ---------- Article-specific ---------- */
.article {
  background: transparent;
  font-size: 1.02rem;
  line-height: 1.72;
}
.article > .kicker:first-child {
  color: var(--meta);
  margin-bottom: 16px;
}
.article h1 {
  font-size: 3.375rem;
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 16px;
  font-weight: 600;
}
.article .dek {
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 24px;
  max-width: 690px;
}
.article .meta {
  font-family: var(--sans);
  color: var(--meta);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.article .meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 12px 3px;
  border-radius: 50%;
  background: var(--meta-soft);
}
.article .paper-frontmatter {
  max-width: var(--measure-wide);
  margin: 30px 0 30px;
  padding: 22px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}
.article .paper-frontmatter + .buttons {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.article .paper-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 18px;
  color: var(--meta);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}
.article .paper-frontmatter h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--accent2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.article .paper-frontmatter p {
  max-width: var(--measure-wide);
}
.article .paper-abstract p {
  margin: 0 0 1.05em;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.67;
}
.article .paper-keywords,
.article .paper-citation {
  margin: 0.65em 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}
.article .paper-keywords strong,
.article .paper-citation strong {
  margin-right: 0.55em;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article > .buttons {
  margin: 26px 0 34px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  max-width: var(--measure-wide);
}
.article > .buttons a {
  min-height: 40px;
  padding: 9px 16px;
}
.article section {
  margin-top: 3.4em;
}
.article section:first-of-type {
  margin-top: 3em;
}
.article section h2 {
  font-size: 2rem;
  line-height: 1.13;
  margin-top: 0;
  margin-bottom: 0.85em;
  padding-top: 0.8em;
  font-weight: 500;
}
.article section:first-of-type h2 {
  padding-top: 0;
}
.article section h2.claims-heading {
  border-top: 0;
  margin-top: 0.3em;
}
.article section h3 {
  font-size: 1.28rem;
  line-height: 1.28;
  margin-top: 2.15em;
  margin-bottom: 0.65em;
  font-weight: 600;
}
.article p {
  margin-bottom: 1.08em;
}
.article ol,
.article ul {
  max-width: var(--measure);
  padding-left: 1.35em;
}
.article li {
  padding-left: 0.18em;
  margin-bottom: 0.58em;
}
.article li::marker {
  color: var(--muted);
}

.cite-box {
  background: #f1ece3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 30px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  max-width: var(--measure-wide);
}
.cite-box .label { margin-bottom: 6px; }

.closing-links {
  margin-top: 40px;
}

.response-callout {
  max-width: var(--measure-wide);
  margin: 30px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3efe7;
}
.response-callout h2,
.response-callout h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.response-callout p:last-child {
  margin-bottom: 0;
}

.form-panel {
  max-width: var(--measure-wide);
  margin: 28px 0 0;
  padding: 26px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.7);
}
.field {
  margin: 0 0 20px;
}
.field label,
.field legend {
  display: block;
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.field .hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  padding: 10px 12px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(18, 63, 57, 0.18);
  outline-offset: 2px;
  border-color: var(--accent);
}
.field.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.field.checkbox input {
  margin-top: 4px;
  flex: 0 0 auto;
}
.field.checkbox label {
  margin: 0;
  font-weight: 500;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.form-actions .hint {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
}
.form-actions button,
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  padding: 9px 16px;
}
.form-actions button:hover,
.tool-button:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}
.form-actions button:disabled,
.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}
.tool-button {
  margin: 4px 0 0;
  background: transparent;
  color: var(--accent);
}
.tool-button:hover {
  color: #fff;
}
.form-status,
.sharpen-output {
  max-width: var(--measure-wide);
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f1ece3;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}
.form-status[hidden],
.sharpen-output[hidden],
.honeypot {
  display: none !important;
}
.form-status.error {
  border-color: #b88968;
  color: #663a20;
}
.form-status.success {
  border-color: #9eb2a8;
  color: var(--accent);
}
.sharpen-output h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.sharpen-output p {
  margin-bottom: 0;
}

/* Section anchors — show on hover */
.anchor {
  margin-left: 8px;
  color: var(--muted-soft);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
  font-weight: 400;
}
h2:hover .anchor, h3:hover .anchor { opacity: 1; }

/* Claims panel (graded-claims list) */
.claims-panel {
  background: #f1ece3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
  max-width: var(--measure-wide);
}
.claims-panel h3 { margin-top: 0.4em; }
.claims-panel ol { padding-left: 22px; }

/* Definition lists for glossary-style content */
dl.glossary { margin: 20px 0; max-width: var(--measure-wide); }
dl.glossary dt {
  font-weight: 600;
  font-family: var(--sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 14px;
}
dl.glossary dd { margin: 4px 0 8px; }

/* Footnotes */
.footnote-ref { font-size: 0.78em; vertical-align: super; line-height: 0; text-decoration: none; }
.footnotes { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 16px; color: var(--ink-soft); }
.footnotes ol { padding-left: 22px; }

/* ---------- Homepage: two-column hero ---------- */
.home-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 42px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1120px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 64px;
    padding-top: 44px;
    padding-bottom: 40px;
  }
}
.home-hero .title {
  font-family: Georgia, "Palatino Linotype", "Palatino", serif;
  font-size: 4.5rem;
  line-height: 0.91;
  letter-spacing: 0;
  margin: 12px 0 10px;
  font-weight: 500;
}
@media (min-width: 1120px) {
  .home-hero .title {
    font-size: 5.25rem;
  }
}
.home-hero .subtitle {
  font-family: Georgia, "Palatino Linotype", "Palatino", serif;
  font-style: italic;
  font-size: 1.65rem;
  color: var(--ink-soft);
  margin: 0 0 30px;
  line-height: 1.3;
}
.home-hero .hero-art {
  width: 100%;
  max-width: 560px;
  justify-self: center;
  position: relative;
}
.home-hero .hero-art img { width: 100%; height: auto; display: block; }
.home-hero .kicker {
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  color: var(--meta);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-weight: 500;
}
.home-hero .kicker span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 14px 3px 0;
  border-radius: 50%;
  background: var(--meta-soft);
}
.home-hero .claim {
  font-size: 1.85rem;
  font-style: normal;
  line-height: 1.27;
  margin: 8px 0 26px;
  padding-left: 24px;
  max-width: 560px;
}
.home-hero p.lede {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 28px;
}
.home-hero .buttons { gap: 14px 22px; margin-top: 26px; }
.home-hero .buttons a.primary::after,
.home-hero .buttons a.plain::after {
  content: "\2192";
  font-weight: 500;
}
.home-hero .buttons a.download::after {
  content: "\2193";
  font-weight: 500;
}
.home-hero .buttons a.plain {
  border-color: transparent;
  padding-left: 2px;
  padding-right: 2px;
  background: transparent;
}
.home-hero .buttons a.plain:hover {
  color: var(--accent-bright);
  background: transparent;
  border-color: transparent;
}

/* ---------- Section rhythm ---------- */
.section {
  padding: 50px 0;
  border-top: 1px solid var(--line);
}
.section.tinted {
  background: #f0ece3;
  border-top: 1px solid var(--line);
}
.section .section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .section .section-inner.two-col {
    grid-template-columns: minmax(220px, 305px) minmax(0, 1fr);
    gap: 64px;
  }
  .section .section-inner.flush {
    grid-template-columns: minmax(0, 1fr);
  }
}
.section h2 {
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 2.35rem;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 14px;
  border-top: none;
  padding-top: 0;
  font-weight: 500;
}
.section .blurb { color: var(--ink-soft); font-size: 16px; line-height: 1.58; max-width: 420px; }
.section .blurb p { margin-bottom: 0.8em; }

/* ---------- Two-box flow (container / fold) ---------- */
.diagnosis-section {
  padding-top: 34px;
}
.diagnosis-copy {
  font-family: var(--sans);
  color: var(--ink-soft);
}
.section .diagnosis-lede {
  max-width: 680px;
  margin-bottom: 22px;
}
.diagnosis-grid .flow-pair {
  grid-column: 1 / -1;
}
.flow-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.72);
  overflow: hidden;
}
@media (min-width: 720px) {
  .flow-pair { grid-template-columns: 1fr 1fr; }
}
.flow-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 26px 36px 30px;
}
.flow-box + .flow-box {
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .flow-box + .flow-box {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
.flow-box .label { margin-bottom: 14px; }
.flow-box .flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.flow-box .flow .node { max-width: 145px; }
.flow-box .flow .arrow {
  color: var(--muted-soft);
  font-size: 18px;
  line-height: 1;
  min-width: 42px;
  text-align: center;
}

/* ---------- Three-column claim hierarchy ---------- */
.claim-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 780px) {
  .claim-cols { grid-template-columns: repeat(3, 1fr); }
}
.claim-band {
  background: #f2eee6;
  padding: 32px 0;
}
.claim-col {
  padding: 2px 28px 6px;
  background: transparent;
  border-left: 1px solid var(--line);
  position: relative;
}
.claim-col::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin-top: 18px;
}
.claim-col.medium::after { background: var(--accent2); }
.claim-col.speculative::after { background: #8b8173; }
.claim-col .label { margin-bottom: 8px; }
.claim-col h3 { font-size: 16px; margin: 0 0 8px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.claim-col p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.52; }

.fold-band {
  border-top: 0;
}
.fold-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Gap cards ("Where the proposal may fail") ---------- */
.fail-section {
  padding-top: 44px;
  background: var(--bg);
}
.gap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .gap-grid { grid-template-columns: 1fr 1fr minmax(180px, 0.85fr) minmax(170px, 0.85fr); align-items: stretch; }
}
.gap-card {
  background: #f3efe7;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.gap-card h4 {
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.gap-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.5; }
.gap-card hr.mini { width: 28px; border: 0; border-top: 1.5px solid var(--accent); margin: 12px 0 0; }

.cta-card {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  min-width: 0;
}
.cta-card strong { color: #fff; font-weight: 600; display: block; margin-bottom: 2px; }
.cta-card > span { min-width: 0; overflow-wrap: break-word; }
.cta-card span span { display: block; }
.cta-card:hover { background: var(--accent-bright); color: #fff; }
.cta-card.secondary {
  background: #f3efe7;
  color: var(--accent);
  border: 1px solid var(--line);
}
.cta-card.secondary strong {
  color: var(--accent);
}
.cta-card.secondary:hover {
  background: var(--paper);
  border-color: var(--accent);
  color: var(--accent);
}
.cta-card.secondary::before {
  border-color: rgba(18, 63, 57, 0.35);
  background:
    radial-gradient(circle at center, var(--accent) 0 3px, transparent 4px),
    linear-gradient(var(--accent), var(--accent)) center / 1px 22px no-repeat,
    linear-gradient(90deg, var(--accent), var(--accent)) center / 22px 1px no-repeat;
}
.cta-card::before {
  content: "";
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  margin: 0 0 14px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at center, #fff 0 3px, transparent 4px),
    linear-gradient(#fff, #fff) center / 1px 22px no-repeat,
    linear-gradient(90deg, #fff, #fff) center / 22px 1px no-repeat;
  opacity: 0.92;
}
.cta-card::after { content: "\2192"; margin: 14px 0 0; font-size: 18px; flex: 0 0 auto; }

/* ---------- Aperture icon cards ---------- */
.aperture-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .aperture-cards { grid-template-columns: repeat(3, 1fr); }
}
.ap-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 32px;
  text-align: center;
  min-height: 214px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.ap-card:hover {
  border-color: #9aa89f;
  box-shadow: 0 14px 30px rgba(26, 26, 26, 0.06);
  transform: translateY(-2px);
}
.ap-card .icon { display: block; margin: 0 auto 16px; }
.ap-card h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: 0;
}
.ap-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Extraction vs emergence schematic ---------- */
.ee-schematic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.52);
  overflow: hidden;
}
@media (min-width: 640px) {
  .ee-schematic { grid-template-columns: 1fr 1fr; }
}
.ee-col { padding: 28px 34px 30px; }
.ee-col + .ee-col {
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .ee-col + .ee-col {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
.ee-col .label { margin-bottom: 10px; }
.ee-col .words {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 10px 0 0;
}
.ee-col .words span { display: inline-block; margin-right: 14px; }
.ee-diag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  min-height: 64px;
}
.ee-diag .user-box {
  width: 54px; height: 54px;
  border: 1.2px dashed var(--ink);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 16px;
}
.ee-col.emergence .ee-diag .user-box { border-style: solid; border-color: var(--accent); color: var(--accent); }

/* ---------- Section-heading helpers (within sections) ---------- */
.section h3 {
  font-family: var(--sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
}
.section .ap-card h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.section .claim-col h3 {
  font-family: var(--sans);
  font-size: 16px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* ---------- Footer ---------- */
footer {
  max-width: 1180px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  border-top: 0;
  margin-top: 0;
  padding: 0 24px 54px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
footer .wrap {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
footer .col h5 { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-soft); margin: 0 0 10px; }
footer .col ul { list-style: none; padding: 0; margin: 0; }
footer .col li { margin-bottom: 6px; }
footer .colophon { margin-top: 24px; font-size: 12px; color: var(--muted-soft); }

/* ---------- Skip link for accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 14px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 680px) {
  body { font-size: 18px; }
  header, main, footer { padding-left: 20px; padding-right: 20px; padding-top: 32px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 3.3rem; }
  .hero .dek { font-size: 1.12rem; }
  .claim { font-size: 1.45rem; }
  h1 { font-size: 2.45rem; }
  h2 { font-size: 1.65rem; }
  .layout-toc { padding: 34px 24px 64px; }
  .article { font-size: 1rem; line-height: 1.68; }
  .article h1 { font-size: 2.7rem; }
  .article .dek { font-size: 1.24rem; }
  .article .meta { line-height: 1.7; }
  .article > .buttons {
    gap: 8px;
    margin-bottom: 28px;
  }
  .article section { margin-top: 2.8em; }
  .article section h2 { font-size: 1.75rem; }
  .article section h3 { font-size: 1.18rem; }
  .buttons a { padding: 9px 14px; font-size: 13px; width: 100%; }
  .article > .buttons a {
    width: auto;
    flex: 1 1 148px;
  }
  .home-hero {
    padding: 42px 20px 34px;
    gap: 28px;
  }
  .home-hero .title { font-size: 4rem; }
  .home-hero .subtitle { font-size: 1.35rem; }
  .home-hero .claim { font-size: 1.55rem; }
  .home-hero .buttons a.plain { width: auto; }
  .section h2 { font-size: 2rem; }
  .section { padding: 40px 0; }
  .flow-box { padding: 22px 22px 24px; }
  .flow-box .flow {
    display: block;
  }
  .flow-box .flow .node {
    display: block;
    max-width: none;
    margin-bottom: 8px;
  }
  .flow-box .flow .arrow {
    display: block;
    min-width: 0;
    margin: -2px 0 8px;
    text-align: left;
  }
  .form-panel {
    padding: 22px 18px 24px;
  }
  .form-actions button,
  .tool-button {
    width: 100%;
  }
  .claim-col {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .claim-col:first-child {
    border-top: 0;
    padding-top: 0;
  }
  nav .inner { padding: 10px 20px; gap: 2px 14px; }
  nav a { font-size: 13px; }
  nav .brand { flex-basis: 100%; margin-bottom: 8px; }
}

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --paper: #fff; }
  nav, aside.toc, .buttons, footer .colophon, .skip-link, .claim-graph { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.48; }
  header, main, footer { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  h1 { page-break-after: avoid; }
  h2, h3 { page-break-after: avoid; break-after: avoid; }
  p, blockquote, figure, table { page-break-inside: avoid; }
  .layout-toc { grid-template-columns: 1fr; display: block; }
  footer { border-top: 1px solid #000; margin-top: 24pt; padding-top: 8pt; color: #000; }
  .cite-box { border: 1px solid #000; background: transparent; }
  .claim { font-style: italic; }
}

/* ---------- Orientation note (index.html genre framing) — calm, not an alert ---------- */
.orientation {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 6px;
}
.orientation p {
  margin: 0;
  max-width: 70ch;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.orientation a { color: var(--accent); }

/* ---------- Claim-dependency graph (argument.html + paper.html #claims preview) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* Claim-id badge in the static list */
.claim-tag {
  font-family: var(--sans);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--line-soft);
  border-radius: var(--radius);
  padding: 1px 6px;
  margin-right: 4px;
  white-space: nowrap;
}
.claims-panel li[data-claim] { transition: opacity 0.18s ease; }
.claims-panel li.is-off,
.claims-panel li.is-fallen { opacity: 0.42; }

/* Container */
.claim-graph { font-family: var(--sans); margin: 22px 0 8px; }
.claim-graph[hidden] { display: none; }
.claim-graph--full {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 22px;
}

/* Figure / SVG */
.cg-figure { margin: 0 0 18px; }
.cg-svg { display: block; width: 100%; height: auto; max-width: 680px; margin: 0 auto; }
.cg-figure-note { text-align: center; font-size: 13px; color: var(--meta); margin: 6px 0 0; }

/* SVG nodes + edges */
/* SVG presentation properties use explicit hex: Safari/WebKit does not reliably
   resolve CSS custom properties in fill/stroke (it falls back to black), and this
   matches the site's existing inline-SVG pattern. Values mirror the :root tokens. */
.cg-box { fill: #fffdf9; stroke: #90887c; stroke-width: 1.4; }
.cg-node--strong .cg-box { stroke: #123f39; }
.cg-node--medium .cg-box { stroke: #a45f2a; }
.cg-node--speculative .cg-box { stroke: #8b8173; }
.cg-id { font-family: var(--sans); font-weight: 700; font-size: 13px; fill: #1a1a1a; }
.cg-tier { font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; fill: #7b7469; }
.cg-edge { fill: none; stroke: #90887c; stroke-width: 1.3; }
.cg-arrowhead { fill: #90887c; }
.cg-node, .cg-edge { transition: opacity 0.18s ease; }
.cg-box { transition: stroke 0.18s ease, fill 0.18s ease; }
.cg-node.is-off .cg-box { stroke-dasharray: 4 3; fill: #e9e1d3; }
.cg-node.is-off .cg-id { text-decoration: line-through; }
.cg-node.is-fallen { opacity: 0.34; }
.cg-edge.is-dead { opacity: 0.16; }

/* Readout — the key output; calm, not an alert */
.cg-readout {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 14px;
  margin: 0 0 18px;
  min-height: 1.5em;
}

/* Controls */
.cg-panel { margin: 0 0 14px; }
.cg-group { border: 0; border-top: 1px solid var(--line-soft); margin: 0; min-inline-size: 0; padding: 12px 0 4px; }
.cg-legend { padding: 0; }
.cg-tier-toggle,
.cg-reset {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cg-tier-toggle:hover,
.cg-reset:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cg-tier-toggle[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.cg-claim {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: start;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}
.cg-claim input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); }
.cg-claim-label { color: var(--ink); }
.cg-claim-id { font-weight: 700; color: var(--accent); margin-right: 4px; }
.cg-claim-gloss { grid-column: 2; font-size: 13px; color: var(--meta); }
.cg-claim.is-off .cg-claim-label { text-decoration: line-through; color: var(--muted); }
.cg-claim.is-fallen { opacity: 0.62; }
.cg-claim.is-fallen .cg-claim-label { color: var(--muted); }

/* Actions */
.cg-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.cg-share-input {
  font-family: var(--mono);
  font-size: 13px;
  flex: 1 1 240px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Preview (paper.html #claims) */
.cg-tiers-label { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.cg-tier-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

/* Focus visibility for graph controls */
.cg-tier-toggle:focus-visible,
.cg-reset:focus-visible,
.cg-share:focus-visible,
.cg-claim input:focus-visible,
.cg-share-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Small screens: controls + readout carry the feature; the SVG is decorative */
@media (max-width: 680px) {
  .cg-figure { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-node, .cg-edge, .cg-box,
  .claims-panel li[data-claim],
  .cg-tier-toggle, .cg-reset { transition: none !important; }
}

/* ---------- Reader's own fold: local annotations (annotations.js) ---------- */
mark.anno-hl {
  background: rgba(224, 191, 110, 0.38);
  color: inherit;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
mark.anno-hl:hover { background: rgba(224, 191, 110, 0.62); }
mark.anno-hl:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.anno-toolbar {
  position: absolute;
  z-index: 50;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.14);
  padding: 4px;
}
.anno-toolbar[hidden] { display: none; }
.anno-hl-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
}
.anno-hl-btn:hover { background: var(--accent); color: #fff; }

.anno-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 9px 16px;
  box-shadow: 0 1px 8px rgba(26, 26, 26, 0.12);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.anno-toggle:hover { background: var(--accent); color: #fff; }
.anno-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.anno-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  max-width: 92vw;
  z-index: 60;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -6px 0 24px rgba(26, 26, 26, 0.14);
  overflow-y: auto;
  padding: 18px 20px 28px;
  font-family: var(--sans);
}
.anno-panel[hidden] { display: none; }
.anno-panel-head { display: flex; align-items: center; justify-content: space-between; }
.anno-panel-title { font-size: 18px; margin: 0; font-family: var(--sans); }
.anno-close {
  font-size: 22px; line-height: 1; color: var(--muted);
  background: transparent; border: 0; cursor: pointer; padding: 2px 6px;
}
.anno-close:hover { color: var(--ink); }
.anno-privacy { font-size: 12.5px; color: var(--meta); margin: 6px 0 14px; }
.anno-empty { font-size: 14px; color: var(--muted); line-height: 1.5; }
.anno-list { list-style: none; padding: 0; margin: 0; }
.anno-item { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.anno-item.is-orphan { opacity: 0.7; }
.anno-quote {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent2);
  margin: 0 0 8px;
  padding: 1px 0 1px 10px;
}
.anno-orphan-tag { font-style: normal; font-size: 12px; color: var(--meta); }
.anno-note {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 8px;
  resize: vertical;
}
.anno-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.anno-del {
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
  background: transparent; border: 0; padding: 6px 0 0; cursor: pointer;
}
.anno-del:hover { color: var(--accent2); text-decoration: underline; }
.anno-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.anno-export, .anno-clear {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; padding: 6px 11px; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.anno-export { color: var(--accent); }
.anno-export:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.anno-clear { color: var(--accent2); margin-left: auto; }
.anno-clear:hover { background: var(--accent2); color: #fff; border-color: var(--accent2); }

@media print {
  .anno-toolbar, .anno-toggle, .anno-panel { display: none !important; }
  mark.anno-hl { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  mark.anno-hl, .anno-toggle, .anno-export, .anno-clear, .anno-hl-btn { transition: none !important; }
}

/* ---------- Contents scroll tracking (toc-scrollspy.js) ---------- */
.toc a.is-current { color: var(--accent); font-weight: 600; }

/* ---------- Objection ledger: visible status triage (objections.html) ---------- */
.obj-legend { font-family: var(--sans); font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.obj-tag, .obj-status strong {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.obj-tag { display: inline-block; padding: 2px 9px; border-radius: 20px; color: #fff; white-space: nowrap; }
.obj-tag--open { background: var(--muted); }
.obj-tag--hinge { background: var(--accent2); }
.obj-tag--handled { background: var(--accent); }
.obj-status { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; }
.obj-status strong { color: var(--meta); margin-right: 8px; }
.obj-status--open { border-left-color: var(--muted); }
.obj-status--hinge { border-left-color: var(--accent2); }
.obj-status--handled { border-left-color: var(--accent); }

/* ---------- Landing: "Start here" orientation + concrete anchors + fold diagram ---------- */
.orientation-kicker {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.13em;
  font-size: 12px; font-weight: 600; color: var(--meta); margin: 0 0 8px;
}
.orientation p + p { margin-top: 12px; }
.orientation p strong { color: var(--ink); font-weight: 600; }
.fold-concrete { color: var(--ink-soft); }
.flow-box--fold .fold-orient { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.orient-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.orient-dir { font-family: var(--sans); font-size: 12px; color: var(--meta); }
.node--fold { font-weight: 700; }
.flow-note { font-family: var(--sans); font-size: 12.5px; color: var(--meta); margin: 12px 0 0; }

/* ==========================================================================
   Academic edition — references
   ========================================================================== */

.references .ref-note{
  font-size:.9rem;
  color:var(--meta);
  font-style:italic;
  max-inline-size:var(--measure);
  margin-bottom:1.2rem;
}

.references .ref{
  font-size:.92rem;
  line-height:1.5;
  max-inline-size:var(--measure);
  margin:0 0 .55rem;
  padding-left:1.6rem;
  text-indent:-1.6rem;
  color:var(--ink);
}

.references .ref em{ color:var(--muted); }

/* ==========================================================================
   Readings — applying the lens
   ========================================================================== */

.reading-template{ max-inline-size:var(--measure); }
.reading-template li{ margin-bottom:.55rem; }

.reading-note,
.reading-sub{
  color:var(--meta);
  font-style:italic;
  max-inline-size:var(--measure);
}

.reading{
  border-top:1px solid var(--line);
  padding-top:1.4rem;
  margin-top:2rem;
}

.reading .reading-sub{
  margin-top:-.3rem;
  margin-bottom:1rem;
  font-size:.98rem;
}

.reading h3{
  font-size:1rem;
  color:var(--accent);
  margin-bottom:.25rem;
}

.reading-verdict{
  border-left:3px solid var(--accent2);
  padding:.6rem .2rem .6rem .9rem;
  margin-top:1rem;
  background:#fbf7f0;
  max-inline-size:var(--measure);
}

/* ==========================================================================
   Conceptual position map (academic.html §2) — positions placed by argument,
   not measured data. Inline SVG uses literal hex (WebKit does not resolve
   CSS var() inside SVG fill/stroke). The table is the accessible truth; the
   SVG is an aria-hidden visual mirror.
   ========================================================================== */
.position-map { margin: 1.8rem 0 0.6rem; }
.pmap-figure { margin: 0; }
.pmap-svg { width: 100%; height: auto; max-width: 680px; display: block; }
.pmap-caption {
  font-family: var(--sans); font-size: 0.85rem; color: var(--meta);
  font-style: italic; margin-top: 0.5rem; max-inline-size: var(--measure);
}
.pmap-frame { fill: #fffdf9; stroke: #e9e1d3; stroke-width: 1; }
.pmap-axis { stroke: #90887c; stroke-width: 1.2; }
.pmap-end {
  fill: #7b7469; font-weight: 600; letter-spacing: 0.02em;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 13px;
}
.pmap-dot { fill: #625d54; }
.pmap-name {
  fill: #2a2a2a;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 13px;
}
.pmap-si-dot { fill: #a45f2a; }
.pmap-si-ring { fill: none; stroke: #a45f2a; stroke-width: 1.5; }
.pmap-si-name {
  fill: #a45f2a; font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 13.5px;
}
.pmap-si-sub {
  fill: #7b7469;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 11px;
}
.pmap-table {
  width: 100%; border-collapse: collapse; margin: 1.1rem 0 0.4rem;
  font-family: var(--sans); font-size: 0.88rem; max-inline-size: var(--measure-wide);
}
.pmap-table caption {
  text-align: left; color: var(--meta); font-size: 0.85rem;
  font-style: italic; margin-bottom: 0.5rem;
}
.pmap-table th, .pmap-table td {
  text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.pmap-table th { color: var(--meta); font-weight: 600; }
.pmap-table .is-si td { background: #fbf7f0; font-weight: 600; }

@media print {
  .pmap-svg { max-width: 520px; }
}
