/*
  Canonical Vision Paper fonts. Pin these local assets so publication builds do
  not silently fall back to system fonts and change pagination or geometry.
*/
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable-v4.1.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
}
@font-face {
  font-family: "Georgia";
  src: url("assets/fonts/NotoSerif-Regular-v2.004.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Georgia";
  src: url("assets/fonts/NotoSerif-Bold-v2.004.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
}

:root {
  --ink: #0b1327;
  --muted: #53627e;
  --line: #d7deea;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --blue: #4067ff;
  --blue-soft: #eaf0ff;
  --cyan: #37c7b6;
  --cyan-soft: #e7faf5;
  --process-blue-gradient: linear-gradient(
    90deg,
    rgba(234, 240, 255, 0.9),
    rgba(231, 250, 245, 0.65)
  );
  --process-green-gradient: linear-gradient(
    90deg,
    rgba(231, 250, 245, 0.96),
    rgba(249, 253, 251, 0.96)
  );
  --amber: #d8a93d;
  --max: 820px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(64, 103, 255, 0.1), transparent 34rem),
    radial-gradient(circle at 95% 12%, rgba(55, 199, 182, 0.1), transparent 30rem), var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a {
  color: #244ad8;
  text-underline-offset: 2px;
}
a:hover {
  color: #1536ac;
}
.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 99;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.paper-shell {
  width: min(calc(100% - 2rem), 1200px);
  margin: 0 auto;
  padding: 24px 0 80px;
}
.paper-header {
  position: relative;
  min-height: 720px;
  border: 1px solid rgba(76, 94, 126, 0.16);
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(21, 36, 72, 0.1);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 72px;
}
.paper-header::before {
  display: none;
}
.paper-header::after {
  display: none;
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -160px;
  top: -170px;
  background: radial-gradient(
    circle,
    rgba(55, 199, 182, 0.2),
    rgba(64, 103, 255, 0.07) 45%,
    transparent 70%
  );
}
.cover-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.cover-lockup {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.cover-mark-frame {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.cover-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 240px;
  max-width: none;
  filter: drop-shadow(0 10px 14px rgba(34, 65, 150, 0.12));
  mix-blend-mode: multiply;
}
.cover-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}
.paper-header h1 {
  margin: 10px auto 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6.7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 700px;
}
.cover-subtitle {
  max-width: 760px;
  margin: 0 auto;
  font-size: 24px;
  line-height: 1.45;
  color: #33425f;
}
.cover-meta {
  position: relative;
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.cover-evidence {
  position: absolute;
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  font-size: 0.88em;
  line-height: 1.35;
  letter-spacing: 0;
}
.cover-thesis {
  width: min(100%, 650px);
  max-width: 650px;
  margin: 28px auto 0;
  padding: 13px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-soft), var(--cyan-soft));
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.35;
}
.cover-publisher {
  flex: 0 0 auto;
  margin: 0;
  padding-top: 28px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.paper-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, var(--max));
  gap: 48px;
  justify-content: center;
  align-items: start;
  padding-top: 64px;
}
.toc {
  position: sticky;
  top: 26px;
  max-height: calc(100vh - 52px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(76, 94, 126, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  font-size: 13px;
}
.toc-title {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--blue);
  font-weight: 800;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin: 6px 0;
}
.toc li ul {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.toc a {
  color: #4c5b77;
  text-decoration: none;
}
.toc a:hover {
  color: var(--blue);
}
.paper-content {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(76, 94, 126, 0.12);
  border-radius: 28px;
  padding: 64px 72px;
  box-shadow: 0 24px 70px rgba(21, 36, 72, 0.08);
}
.paper-content > h1:first-child {
  display: none;
}
h1,
h2,
h3,
h4 {
  scroll-margin-top: 24px;
}
.paper-content h2 {
  margin: 72px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.paper-content h2:first-of-type {
  margin-top: 0;
}
@media print {
  .paper-content > h2[id="1-why-machine-inference-needs-more-open-paths"],
  .paper-content > h2[id="3-two-trust-lanes"],
  .paper-content > h3[id="confidential-lane"],
  .paper-content > h2[id="12-closing-thesis"],
  .paper-content > h2[id="selected-research-and-evidence-status"] {
    margin-top: 0;
  }
  .paper-content > h2[id="1-why-machine-inference-needs-more-open-paths"] {
    max-width: 500px;
  }
  .paper-content > h2[id="6-thinkers-machines-contributing-useful-work"] {
    max-width: 400px;
  }
  .paper-content > h2[id="10-risks-assumptions-and-current-non-claims"] {
    max-width: 450px;
  }
  .paper-content > h2[id="1-why-machine-inference-needs-more-open-paths"] {
    break-before: page;
  }
}
.paper-content h3 {
  margin: 42px 0 14px;
  font-size: 23px;
  line-height: 1.25;
}
.paper-content h4 {
  margin: 30px 0 10px;
  font-size: 17px;
}
p {
  margin: 0 0 1.15em;
}
strong {
  color: #081126;
}
blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(234, 240, 255, 0.9), rgba(231, 250, 245, 0.65));
  color: #243555;
}
blockquote p:last-child {
  margin-bottom: 0;
}
pre {
  padding: 22px 24px;
  overflow: auto;
  border-radius: 18px;
  background: #0b1327;
  color: #e8efff;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2f8;
  color: #263857;
}
ul,
ol {
  padding-left: 1.45em;
}
li {
  margin: 0.42em 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0 34px;
  font-size: 14px;
  line-height: 1.45;
}
th {
  background: #edf1f8;
  color: #243555;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
th,
td {
  padding: 13px 14px;
  border: 1px solid #dbe2ed;
  vertical-align: top;
}
tr:nth-child(even) td {
  background: rgba(247, 248, 244, 0.65);
}
figure,
.paper-content > p:has(> img) {
  margin: 38px -20px 14px;
}
.paper-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 36px auto 12px;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(20, 35, 70, 0.1);
}
.paper-content img[src$=".svg"] {
  border-radius: 0;
}
.paper-content em {
  font-style: normal;
}
.paper-content img + em {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.citation {
  margin-left: 0.12em;
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
  white-space: nowrap;
}
.citation a {
  text-decoration: none;
  font-weight: 750;
}
.principle-callout {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: var(--process-blue-gradient);
  color: #243555;
  font-size: 1.02em;
  break-inside: avoid;
}
.principle-callout p {
  margin: 0;
}
.principle-callout-value {
  border-left-color: var(--cyan);
  background: var(--process-green-gradient);
}
.process-panel {
  margin: 26px 0 30px;
  padding: 18px 20px;
  border: 1px solid #c9d5e8;
  border-radius: 16px;
  background: var(--process-blue-gradient);
  break-inside: avoid;
}
.process-panel-blue {
  border-color: #aabcf9;
  background: var(--process-blue-gradient);
}
.process-panel-neutral {
  border-color: #c9d3e2;
  background: var(--process-blue-gradient);
}
.process-panel-teal {
  width: 66%;
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  border-color: #91d4c7;
  background: var(--process-green-gradient);
}
.process-label {
  margin-bottom: 10px;
  color: #334a73;
  font-size: 0.86em;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}
.process-panel-teal .process-label {
  color: #0d6d5c;
}
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #243555;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
.process-flow b {
  color: #6b7a96;
  font-size: 1.15em;
}
.process-flow-wrap {
  flex-wrap: wrap;
}
.process-flow-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-align: left;
}
.process-flow-stack span {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}
.process-flow-stack b {
  align-self: center;
  transform: rotate(90deg);
  line-height: 1;
}
.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 0 28px;
  margin: 0;
  padding-left: 1.45em;
  color: #243555;
  font-weight: 400;
  text-align: left;
}
.process-list li {
  margin: 0 0 0.42em;
}
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 56px 0;
}
.paper-content ol:last-child {
  font-size: 13.5px;
  color: #34435f;
}
.paper-content ol:last-child li {
  margin-bottom: 0.75em;
}
@media print {
  hr:has(+ h2[id="9-an-evidence-gated-path"]) {
    margin-bottom: 4mm;
  }
  .paper-content > h2[id="9-an-evidence-gated-path"] {
    margin-top: 19pt;
    margin-bottom: 2mm;
  }
  .paper-content > h2[id="9-an-evidence-gated-path"] + p {
    margin-bottom: 2.5mm;
  }
  .paper-content > h2[id="9-an-evidence-gated-path"] + p + ul {
    margin: 0 0 2.5mm;
  }
  .paper-content > h2[id="9-an-evidence-gated-path"] + p + ul > li {
    margin-bottom: 0;
  }
  .paper-content > h2[id="9-an-evidence-gated-path"] + p + ul,
  .paper-content > h2[id="9-an-evidence-gated-path"] + p + ul + p,
  .paper-content > h2[id="9-an-evidence-gated-path"] + p + ul + p + p {
    line-height: 1.35;
  }
  .paper-content > h2[id="9-an-evidence-gated-path"] + p + ul + p {
    margin-bottom: 0;
  }
  .paper-content > h2[id="12-closing-thesis"] ~ hr {
    display: none;
  }
  hr:has(+ h2[id="10-risks-assumptions-and-current-non-claims"]) {
    display: none;
  }
  .paper-content > h2[id="10-risks-assumptions-and-current-non-claims"] {
    margin-top: 0;
  }
  .paper-content ol:last-child > li:nth-child(8) {
    break-before: page;
    page-break-before: always;
  }
}
.paper-footer {
  max-width: var(--max);
  margin: 48px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 980px) {
  .paper-header {
    min-height: 650px;
    padding: 52px 28px;
  }
  .paper-grid {
    grid-template-columns: minmax(0, var(--max));
  }
  .toc {
    position: static;
    max-height: none;
  }
  .paper-content {
    padding: 48px 34px;
  }
}
@media (max-width: 620px) {
  .paper-shell {
    width: min(calc(100% - 1rem), 1200px);
    padding-top: 8px;
  }
  .paper-header {
    border-radius: 24px;
  }
  .paper-header h1 {
    font-size: 48px;
  }
  .cover-mark-frame {
    width: 218px;
    height: 218px;
  }
  .cover-mark {
    width: 218px;
    height: 218px;
    top: 0;
    left: 0;
  }
  .cover-subtitle {
    font-size: 19px;
  }
  .cover-meta {
    max-width: 320px;
  }
  .paper-content {
    overflow-x: hidden;
    border-radius: 22px;
    padding: 40px 22px;
  }
  .process-panel-teal {
    width: 100%;
  }
  .process-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .paper-content h2 {
    font-size: 31px;
  }
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: normal;
  }
}
@media screen {
  .reader-theme-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(76, 94, 126, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(21, 36, 72, 0.12);
    backdrop-filter: blur(12px);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
  }

  .reader-theme-toggle:hover {
    border-color: var(--blue);
  }

  .reader-theme-toggle:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
  }

  .reader-theme-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
  }

  html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8effb;
    --muted: #adbad0;
    --line: #34445f;
    --paper: #071020;
    --surface: #0e1a30;
    --blue: #8abaff;
    --blue-soft: #172b50;
    --cyan: #74e6df;
    --cyan-soft: #123937;
    --process-blue-gradient: linear-gradient(
      90deg,
      rgba(35, 70, 132, 0.62),
      rgba(16, 76, 76, 0.52)
    );
    --process-green-gradient: linear-gradient(90deg, rgba(18, 72, 65, 0.64), rgba(31, 72, 57, 0.5));
    --amber: #f0c96d;
  }

  html[data-theme="dark"] body {
    background:
      radial-gradient(circle at 8% 0%, rgba(64, 103, 255, 0.16), transparent 34rem),
      radial-gradient(circle at 95% 12%, rgba(55, 199, 182, 0.12), transparent 30rem), var(--paper);
  }

  html[data-theme="dark"] .reader-theme-toggle {
    border-color: rgba(138, 186, 255, 0.34);
    background: rgba(14, 26, 48, 0.9);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  html[data-theme="dark"] a {
    color: #a8c4ff;
  }

  html[data-theme="dark"] a:hover {
    color: #d0deff;
  }

  html[data-theme="dark"] .paper-header {
    border-color: rgba(138, 186, 255, 0.2);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  }

  html[data-theme="dark"] .cover-mark {
    mix-blend-mode: normal;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
  }

  html[data-theme="dark"] .cover-subtitle {
    color: #c8d4e8;
  }

  html[data-theme="dark"] .toc {
    border-color: rgba(138, 186, 255, 0.18);
    background: rgba(14, 26, 48, 0.8);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  }

  html[data-theme="dark"] .toc a {
    color: #b8c6dc;
  }

  html[data-theme="dark"] .paper-content {
    border-color: rgba(138, 186, 255, 0.16);
    background: rgba(14, 26, 48, 0.9);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  }

  html[data-theme="dark"] strong {
    color: #f1f5ff;
  }

  html[data-theme="dark"] blockquote {
    background: linear-gradient(90deg, rgba(35, 70, 132, 0.56), rgba(16, 76, 76, 0.42));
    color: #d1dced;
  }

  html[data-theme="dark"] :not(pre) > code {
    background: #172640;
    color: #dce7fb;
  }

  html[data-theme="dark"] th {
    background: #172640;
    color: #dce7fb;
  }

  html[data-theme="dark"] th,
  html[data-theme="dark"] td {
    border-color: #34445f;
  }

  html[data-theme="dark"] tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.035);
  }

  html[data-theme="dark"] .principle-callout {
    color: #d1dced;
  }

  html[data-theme="dark"] .process-panel {
    border-color: #3b5b7c;
  }

  html[data-theme="dark"] .process-panel-blue,
  html[data-theme="dark"] .process-panel-neutral {
    border-color: #4a66a0;
  }

  html[data-theme="dark"] .process-panel-teal {
    border-color: #347e72;
  }

  html[data-theme="dark"] .process-label {
    color: #b7c9e4;
  }

  html[data-theme="dark"] .process-panel-teal .process-label {
    color: #8de9d0;
  }

  html[data-theme="dark"] .process-flow,
  html[data-theme="dark"] .process-list {
    color: #d1dced;
  }

  html[data-theme="dark"] .process-flow b {
    color: #8da2c1;
  }

  html[data-theme="dark"] .process-flow-stack span {
    background: rgba(255, 255, 255, 0.08);
  }

  html[data-theme="dark"] .paper-content ol:last-child {
    color: #b5c3d8;
  }

  html[data-theme="dark"] .paper-content img {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  }
}

@media screen and (max-width: 620px) {
  .reader-theme-toggle {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .reader-theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media print {
  .reader-theme-toggle {
    display: none !important;
  }
}

@page {
  size: A4;
  margin: 17mm 16mm 20mm;
  @bottom-left {
    content: "philosophers.network · Vision Paper · v1.0.0";
    color: #6b7890;
    font-family: Inter, Arial, sans-serif;
    font-size: 8pt;
  }
  @bottom-right {
    content: counter(page) " / " counter(pages);
    color: #6b7890;
    font-family: Inter, Arial, sans-serif;
    font-size: 8pt;
  }
}
@page:first {
  @bottom-left {
    content: none;
  }
  @bottom-right {
    content: none;
  }
}
@media print {
  html,
  body {
    background: white !important;
  }
  body {
    font-size: 10.2pt;
    line-height: 1.56;
  }
  .reading-progress {
    display: none !important;
  }
  .paper-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .paper-header {
    min-height: 254mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    page-break-after: always;
    background: white;
    padding: 24mm 18mm;
  }
  .paper-header::after {
    display: none;
  }
  .cover-content {
    min-height: 620pt;
  }
  .paper-header h1 {
    font-size: 53pt;
  }
  .cover-subtitle {
    font-size: 17pt;
  }
  .cover-thesis {
    padding: 3.5mm 5mm;
    font-size: 13.5pt;
  }
  .paper-grid {
    display: block;
    padding: 0;
  }
  .toc {
    display: block !important;
    position: static;
    max-height: none;
    overflow: visible;
    width: 100%;
    margin: 0;
    padding: 14mm 8mm 12mm;
    border: 0;
    border-radius: 0;
    background: white;
    backdrop-filter: none;
    page-break-after: always;
    font-size: 9.4pt;
  }
  .toc-title {
    margin: 0 0 8mm;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: none;
    letter-spacing: -0.02em;
    font-size: 25pt;
    color: var(--ink);
  }
  .toc > ul > li > a {
    display: none;
  }
  .toc > ul > li > ul {
    padding-left: 0;
    border-left: 0;
    columns: 1;
  }
  .toc li {
    break-inside: avoid;
    margin: 0 0 3.2mm;
  }
  .toc a {
    display: block;
    width: 100%;
    color: #34435f;
  }
  .toc a::after {
    content: leader(".") target-counter(attr(href), page);
    color: #6b7890;
  }
  .paper-content {
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: white;
  }
  .paper-content h2 {
    font-size: 24pt;
    break-after: avoid;
    margin-top: 15mm;
  }

  /* Section 2 starts at the top of a fresh page; compact only the tested
     neutral flow and Figure 1 geometry to keep the 20-page composition. */
  .paper-content > hr:has(+ h2[id="2-what-philosophersnetwork-proposes"]) {
    display: none;
  }
  .paper-content > h2[id="2-what-philosophersnetwork-proposes"] {
    margin-top: 0;
  }

  /* Preserve the established 20-page composition without changing global
     type, line-height, margins, or diagram geometry. */
  .paper-content
    > h2[id="2-what-philosophersnetwork-proposes"]
    ~ p:has(~ h2[id="3-two-trust-lanes"]) {
    margin-bottom: 0.65em;
  }
  .paper-content
    > h2[id="2-what-philosophersnetwork-proposes"]
    ~ .process-panel:has(~ h2[id="3-two-trust-lanes"]) {
    margin: 3mm 0;
    padding: 2.5mm 4mm;
  }
  .paper-content > h3[id="confidential-lane"] ~ p:has(~ h3[id="shared-coordination-substrate"]) {
    margin-bottom: 0.55em;
  }
  .paper-content
    > h3[id="confidential-lane"]
    ~ .process-panel:has(~ h3[id="shared-coordination-substrate"]) {
    margin: 3mm 0;
    padding: 2.5mm 4mm;
  }

  .paper-content h3 {
    font-size: 15pt;
    break-after: avoid;
  }
  .paper-content h4 {
    break-after: avoid;
  }
  p,
  li {
    orphans: 3;
    widows: 3;
  }
  table {
    font-size: 8.4pt;
    break-inside: avoid;
  }
  th,
  td {
    padding: 7px 8px;
  }
  pre {
    white-space: pre-wrap;
    font-size: 8.5pt;
    break-inside: avoid;
  }
  blockquote {
    break-inside: avoid;
  }
  img {
    break-inside: avoid;
    width: 96%;
    max-height: 155mm;
  }
  .paper-content > p:has(> img) {
    break-inside: avoid;
    margin: 9mm 0 3mm;
  }
  .paper-content img + em {
    break-inside: avoid;
    font-size: 8.6pt;
    line-height: 1.35;
  }

  .cover-publisher {
    padding-top: 8mm;
    padding-bottom: 1mm;
    font-size: 9pt;
  }
  .principle-callout,
  .process-panel {
    break-inside: avoid;
  }
  .process-panel {
    margin: 5mm 0 6mm;
    padding: 3.5mm 5mm;
  }
  .process-panel-neutral {
    margin-top: 3mm;
    margin-bottom: 3mm;
    padding: 2.2mm 4mm;
  }
  .process-panel-neutral .process-label {
    margin-bottom: 1.2mm;
    font-size: 8pt;
  }
  .process-panel-neutral .process-flow {
    gap: 1.4mm;
    font-size: 8.2pt;
    line-height: 1.25;
  }
  .paper-content .process-panel-teal {
    width: 66%;
    margin-left: 17% !important;
    margin-right: 17% !important;
  }
  .process-flow {
    gap: 2.5mm;
    font-size: 9.1pt;
  }
  .process-flow-stack {
    gap: 0.75mm;
  }
  .process-flow-stack span {
    padding: 1.25mm 2.5mm;
  }
  .citation {
    font-size: 0.68em;
  }
  h2[id="3-two-trust-lanes"],
  h3[id="confidential-lane"],
  h2[id="12-closing-thesis"],
  #selected-research-and-evidence-status {
    break-before: page;
    page-break-before: always;
  }
  .paper-content h2,
  .paper-content h3,
  .paper-content h4 {
    break-after: avoid-page;
  }
  .paper-content > p:has(> img) {
    break-inside: avoid;
    break-after: avoid-page;
  }
  .paper-content > p:has(> img) + p {
    break-before: avoid-page;
    break-inside: avoid;
  }
  .paper-content img[src$="staged-trust-routing.svg"] {
    width: 96%;
    max-height: 136mm;
    margin-top: 0;
    margin-bottom: 1mm;
  }
  .paper-content > p:has(> img[src$="staged-trust-routing.svg"]) {
    margin-top: 3mm;
    margin-bottom: 1mm;
  }
  .paper-content > p:has(> img[src$="staged-trust-routing.svg"]) + p {
    font-size: 8.3pt;
    line-height: 1.3;
    margin-bottom: 0;
  }
  .paper-footer {
    display: none;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}
