:root {
  color-scheme: light dark;
  --page: #f5f5f1;
  --surface: #ffffff;
  --surface-2: #ecece6;
  --ink: #11120f;
  --muted: #66675f;
  --line: #d9d9d1;
  --accent: #d9381e;
  --accent-ink: #ffffff;
  --trust: #1d5c49;
  --shadow: 0 22px 70px rgba(30, 31, 26, 0.10);
  --content: 760px;
  --wide: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-effective-theme="dark"] {
  --page: #11120f;
  --surface: #181a16;
  --surface-2: #22251f;
  --ink: #f1f1ea;
  --muted: #aaa99f;
  --line: #34372f;
  --accent: #ff674d;
  --accent-ink: #11120f;
  --trust: #7bd6b3;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
button { font: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 12%);
  background: color-mix(in srgb, var(--surface), transparent 5%);
  backdrop-filter: blur(18px);
}

.sp-topbar__inner,
.sp-proofbar__inner { width: min(calc(100% - 32px), var(--wide)); margin: 0 auto; }
.sp-topbar__inner { min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.sp-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 780; letter-spacing: -0.025em; }
.sp-brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--page); font-size: 0.78rem; letter-spacing: 0.04em; }
.sp-nav { display: flex; gap: 20px; justify-content: center; }
.sp-nav a { text-decoration: none; font-size: 0.91rem; color: var(--muted); white-space: nowrap; }
.sp-nav a[aria-current="page"] { color: var(--ink); font-weight: 740; }
.sp-shell-tools { display: inline-flex; align-items: center; gap: 9px; }
.sp-icon-link { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); text-decoration: none; }
.sp-icon-link:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent), var(--line) 50%); }
.sp-icon-link svg { width: 16px; height: 16px; }

.sp-theme { position: relative; width: 62px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; color: var(--muted); background: var(--surface-2); cursor: pointer; isolation: isolate; }
.sp-theme__sun, .sp-theme__moon { position: relative; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.sp-theme__sun svg, .sp-theme__moon svg { width: 14px; height: 14px; }
.sp-theme__thumb { position: absolute; z-index: 1; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); transform: translateX(0); transition: transform 180ms ease, background 180ms ease; }
:root[data-effective-theme="dark"] .sp-theme__thumb { transform: translateX(28px); }
:root[data-effective-theme="light"] .sp-theme__sun,
:root[data-effective-theme="dark"] .sp-theme__moon { color: var(--ink); }

.sp-main { min-height: 62vh; }
.sp-wrap { width: min(calc(100% - 32px), var(--wide)); margin: 0 auto; }
.sp-reading { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; }
.sp-hero { padding: clamp(68px, 11vw, 136px) 0 66px; }
.sp-hero--compact { padding-bottom: 40px; }
.sp-kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 820; color: var(--accent); }
.sp-kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.sp-hero h1 { max-width: 960px; margin: 18px 0 20px; font-size: clamp(3.1rem, 8.4vw, 7.5rem); line-height: 0.94; letter-spacing: -0.064em; }
.sp-hero__dek { max-width: 820px; margin: 0; font-size: clamp(1.18rem, 2.5vw, 1.68rem); line-height: 1.46; color: var(--muted); }
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sp-button { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: var(--surface); text-decoration: none; font-size: 0.91rem; font-weight: 730; }
.sp-button svg { width: 17px; height: 17px; }
.sp-button--primary { background: var(--ink); color: var(--page); border-color: var(--ink); }
.sp-button--primary:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.sp-doctrine { max-width: 760px; margin-top: 34px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 18px; }
.sp-doctrine strong { color: var(--accent); letter-spacing: 0.12em; font-size: 0.78rem; }
.sp-doctrine span { font-weight: 790; }
.sp-doctrine small { grid-column: 2; color: var(--muted); }
.sp-status { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 0.77rem; color: var(--muted); background: var(--surface); }
.sp-status strong { color: var(--ink); }

.sp-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sp-value { padding: 34px 30px 38px 0; }
.sp-value + .sp-value { padding-left: 30px; border-left: 1px solid var(--line); }
.sp-value__number { color: var(--accent); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.14em; }
.sp-value h2 { margin: 8px 0; font-size: 1.3rem; }
.sp-value p { margin: 0; color: var(--muted); }
.sp-section { padding: 82px 0; }
.sp-section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.sp-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.045em; }
.sp-section__head p { max-width: 490px; margin: 0; color: var(--muted); }

.sp-feature { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.18fr 0.82fr; min-height: 470px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.sp-feature__body { padding: clamp(34px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.sp-feature__body h3 { margin: 14px 0; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 0.98; letter-spacing: -0.055em; }
.sp-feature__body p { color: var(--muted); font-size: 1.08rem; }
.sp-feature__link { margin-top: 22px; align-self: flex-start; display: inline-flex; text-decoration: none; border-radius: 999px; padding: 12px 17px; background: var(--ink); color: var(--page); font-weight: 750; }
.sp-feature__link:hover { color: var(--accent-ink); background: var(--accent); }
.sp-feature__visual { min-height: 320px; padding: 34px; background: var(--ink); color: var(--page); display: grid; align-content: space-between; }
.sp-feature__visual small { text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.62; }
.sp-orbit { position: relative; aspect-ratio: 1; width: min(100%, 330px); margin: auto; border: 1px solid color-mix(in srgb, var(--page), transparent 68%); border-radius: 50%; display: grid; place-items: center; }
.sp-orbit::before, .sp-orbit::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--page), transparent 78%); border-radius: 50%; }
.sp-orbit::before { inset: 16%; }
.sp-orbit::after { inset: 32%; }
.sp-orbit__core { width: 33%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 900; letter-spacing: -0.04em; z-index: 2; }
.sp-orbit__node { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--page); }
.sp-orbit__node:nth-child(2) { top: 6%; left: 48%; }
.sp-orbit__node:nth-child(3) { bottom: 19%; right: 5%; }
.sp-orbit__node:nth-child(4) { bottom: 11%; left: 18%; }

.sp-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-card-grid--architecture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-card { display: block; min-height: 245px; border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: var(--surface); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
a.sp-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent), var(--line) 52%); box-shadow: var(--shadow); color: var(--ink); }
.sp-card > span { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; font-weight: 820; }
.sp-card h3 { margin: 14px 0 10px; font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.08; letter-spacing: -0.035em; }
.sp-card p { margin: 0; color: var(--muted); }

.sp-article-header { padding: clamp(70px, 11vw, 126px) 0 56px; border-bottom: 1px solid var(--line); }
.sp-article-header h1 { margin: 16px 0 18px; font-size: clamp(3rem, 8vw, 6.7rem); line-height: 0.95; letter-spacing: -0.06em; }
.sp-article-header__subtitle { font-size: clamp(1.18rem, 2.8vw, 1.62rem); color: var(--muted); max-width: 760px; }
.sp-article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; color: var(--muted); font-size: 0.88rem; }
.sp-article-meta strong { color: var(--ink); }
.sp-article { padding: 72px 0 96px; }
.sp-provisional + section { margin-top: 52px; }
.sp-article section + section { margin-top: 68px; }
.sp-article h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.045em; margin: 0 0 24px; }
.sp-article h3 { margin: 2.4rem 0 .8rem; font-family: Inter, sans-serif; font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.2; letter-spacing: -.025em; }
.sp-article p, .sp-article li, .sp-article a { overflow-wrap: anywhere; }
.sp-article p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.14rem, 2vw, 1.34rem); line-height: 1.78; margin: 0 0 1.2em; }
.sp-article > section:first-of-type > p:first-of-type::first-letter { font-size: 3.5em; line-height: 0.8; float: left; padding: 0.12em 0.10em 0 0; font-family: Inter, sans-serif; font-weight: 850; color: var(--accent); }
.sp-provisional { border-left: 3px solid var(--accent); padding: 14px 16px; color: var(--muted); background: color-mix(in srgb, var(--accent), transparent 95%); border-radius: 0 10px 10px 0; }
.sp-provisional strong { color: var(--ink); }

.sp-proofbar { border-top: 1px solid var(--line); background: var(--surface); }
.sp-proofbar__inner { padding: 38px 0 44px; }
.sp-proofbar__top { display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.sp-proofbar__brand { max-width: 480px; }
.sp-proofbar__brand h2 { font-size: 1.5rem; letter-spacing: -0.035em; margin: 8px 0; }
.sp-proofbar__brand p { color: var(--muted); margin: 0; font-size: 0.91rem; }
.sp-evidence-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: 30px; }
.sp-evidence-strip > div { border-top: 2px solid var(--ink); padding-top: 11px; min-width: 0; }
.sp-evidence-strip span, .sp-proof span { display: block; text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.62rem; color: var(--muted); }
.sp-evidence-strip strong, .sp-proof strong, .sp-proof a { display: block; margin-top: 5px; font-size: 0.85rem; overflow-wrap: anywhere; }
.sp-proof-drawer { margin-top: 26px; border-top: 1px solid var(--line); }
.sp-proof-drawer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 0 0; font-weight: 760; }
.sp-proof-drawer summary::-webkit-details-marker { display: none; }
.sp-proof-drawer summary::after { content: "+"; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1rem; }
.sp-proof-drawer[open] summary::after { content: "−"; }
.sp-proof-drawer summary small { margin-left: auto; color: var(--muted); font-weight: 500; }
.sp-proofbar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.sp-proof { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.sp-relations { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.sp-relations h3 { margin: 0 0 12px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; }
.sp-relations ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-relations li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); font-size: 0.78rem; background: var(--page); }

.sp-system-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sp-metric { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); }
.sp-metric span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.65rem; }
.sp-metric strong { display: block; font-size: 2.1rem; margin-top: 7px; }
.sp-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 28px; }
.sp-panel h3 { margin-top: 0; }
.sp-panel table { border-collapse: collapse; width: 100%; }
.sp-panel th, .sp-panel td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 8px; font-size: 0.9rem; }
.sp-panel th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.sp-severity { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 0.72rem; font-weight: 760; }
.sp-severity--critical { background: color-mix(in srgb, var(--accent), transparent 84%); color: var(--accent); }
.sp-severity--warning { background: color-mix(in srgb, #d49a17, transparent 82%); color: #9a6900; }
.sp-severity--info { background: color-mix(in srgb, var(--trust), transparent 84%); color: var(--trust); }

@media (max-width: 900px) {
  .sp-topbar { overflow-x: clip; }
  .sp-topbar__inner { grid-template-columns: 1fr auto; gap: 12px; padding-top: 8px; }
  .sp-nav { grid-column: 1 / -1; order: 3; min-width: 0; max-width: 100%; justify-content: flex-start; padding-bottom: 11px; overflow-x: auto; scrollbar-width: none; }
  .sp-nav::-webkit-scrollbar { display: none; }
  .sp-value-grid, .sp-feature, .sp-system-grid, .sp-card-grid, .sp-card-grid--architecture { grid-template-columns: 1fr; }
  .sp-value { padding: 24px 0; }
  .sp-value + .sp-value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sp-feature__visual { min-height: 360px; }
  .sp-section__head, .sp-proofbar__top { display: block; }
  .sp-section__head p { margin-top: 14px; }
  .sp-proofbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-evidence-strip { grid-template-columns: 1fr 1fr; }
  .sp-evidence-strip > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .sp-brand__name { display: none; }
  .sp-nav { flex-wrap: wrap; gap: 7px 16px; overflow-x: visible; }
  .sp-hero { padding-top: 54px; }
  .sp-hero h1 { font-size: clamp(3.15rem, 16.5vw, 5.1rem); }
  .sp-doctrine { grid-template-columns: 1fr; }
  .sp-doctrine small { grid-column: 1; }
  .sp-provisional + section { margin-top: 38px; }
  .sp-proofbar__grid, .sp-evidence-strip { grid-template-columns: 1fr; }
  .sp-evidence-strip > div:first-child { grid-column: auto; }
  .sp-proof-drawer summary { align-items: flex-start; }
  .sp-proof-drawer summary small { display: none; }
  .sp-panel { overflow-x: auto; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sp-theme__thumb, .sp-card { transition: none; }
}

/* Issue #7 corpus, card, linked-work, and graph information-design candidate. */
.sp-feature__thesis { color: var(--ink) !important; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 2vw, 1.35rem) !important; line-height: 1.6; }
.sp-feature__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .8rem; }
.sp-motif { position: relative; overflow: hidden; }
.sp-motif::before { content: ""; position: absolute; inset: 8% -20% auto 18%; height: 1px; background: color-mix(in srgb, var(--page), transparent 68%); box-shadow: 0 80px 0 color-mix(in srgb, var(--page), transparent 78%), 0 160px 0 color-mix(in srgb, var(--page), transparent 84%); transform: rotate(-12deg); }
.sp-attention-ledger { position: relative; z-index: 1; display: grid; gap: 9px; width: min(100%, 340px); margin: auto; }
.sp-attention-ledger span, .sp-attention-ledger strong { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border: 1px solid color-mix(in srgb, var(--page), transparent 72%); border-radius: 9px; padding: 10px 13px; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.sp-attention-ledger span::after { content: "open"; opacity: .52; font-size: .62rem; }
.sp-attention-ledger strong { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-size: .9rem; }

.sp-publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-publication-card { position: relative; min-width: 0; min-height: 390px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; padding: 26px; background: var(--surface); text-decoration: none; overflow: hidden; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.sp-publication-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -54px; top: -56px; border-radius: 50%; background: color-mix(in srgb, var(--accent), transparent 86%); }
.sp-publication-card:hover { color: var(--ink); transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent), var(--line) 55%); box-shadow: var(--shadow); }
.sp-card-kicker, .sp-connected-card__relation { color: var(--accent); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.sp-publication-card h3 { margin: auto 0 12px; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.02; letter-spacing: -.045em; }
.sp-publication-card > p { margin: 0; color: var(--muted); }
.sp-card-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 18px; color: var(--muted); font-size: .74rem; }
.sp-card-topics { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.sp-card-topics span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 7px; color: var(--muted); font-size: .65rem; }
.sp-publication-card > strong { margin-top: 16px; color: var(--ink); font-size: .77rem; }
.sp-publication-card--compact { min-height: 330px; }
.sp-section-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.sp-corpus-hero { padding: clamp(70px, 11vw, 126px) 0 44px; border-bottom: 1px solid var(--line); }
.sp-corpus-hero h1, .sp-direction-hero h1 { max-width: 980px; margin: 16px 0; font-size: clamp(3.1rem, 8vw, 7rem); line-height: .94; letter-spacing: -.06em; }
.sp-corpus-hero > p, .sp-direction-hero > div > p { max-width: 780px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.38rem); }
.sp-corpus-controls { position: sticky; top: 64px; z-index: 12; display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .7fr) minmax(150px, .7fr) auto auto; gap: 12px; align-items: end; border-bottom: 1px solid var(--line); padding: 18px 0; background: color-mix(in srgb, var(--page), transparent 5%); backdrop-filter: blur(18px); }
.sp-corpus-controls label { display: grid; gap: 5px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sp-corpus-controls input, .sp-corpus-controls select { min-height: 42px; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); color: var(--ink); font: inherit; text-transform: none; letter-spacing: normal; }
.sp-corpus-controls > p { margin: 0 0 10px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.sp-view-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--surface-2); }
.sp-view-toggle button { min-height: 34px; border: 0; border-radius: 7px; padding: 5px 9px; background: transparent; color: var(--muted); cursor: pointer; }
.sp-view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.sp-corpus-results { padding-top: 42px; }
.sp-corpus-list { border-top: 1px solid var(--line); }
.sp-corpus-row { display: grid; grid-template-columns: minmax(120px,.6fr) minmax(280px,2.2fr) minmax(120px,.7fr) minmax(110px,.6fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 17px 10px; text-decoration: none; }
.sp-corpus-row:hover { color: var(--ink); background: var(--surface); }
.sp-corpus-row__type { color: var(--accent); font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.sp-corpus-row__title { display: grid; gap: 3px; }
.sp-corpus-row__title strong { line-height: 1.15; }
.sp-corpus-row small, .sp-corpus-row__topic, .sp-corpus-row__depth, .sp-corpus-row time { color: var(--muted); font-size: .72rem; }
.sp-corpus-row__depth { display: grid; }
.sp-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 30px; text-align: center; color: var(--muted); }

.sp-article-header__thesis { max-width: 780px; border-left: 3px solid var(--accent); padding-left: 16px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.12rem, 2vw, 1.38rem); }
.sp-article blockquote { margin: 2rem 0; border-left: 4px solid var(--accent); padding: 1.1rem 0 1.1rem 1.4rem; font-family: Inter, sans-serif; font-size: clamp(1.35rem, 3vw, 2.15rem); font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.sp-article ul { margin: 1.5rem 0 2rem; padding-left: 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 2vw, 1.25rem); }
.sp-article code { border: 1px solid var(--line); border-radius: 7px; padding: .08em .3em; background: var(--surface-2); font-size: .85em; overflow-wrap: anywhere; }
.sp-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* Optional visual grammar: section treatments activate only through artifact declarations. */
.sp-visual-block { width: min(calc(100vw - 32px), 1120px); margin-left: 50%; transform: translateX(-50%); }
.sp-visual-block > h2 { max-width: 820px; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .96; }
.sp-visual-block > p { max-width: 790px; }
.sp-visual-block--comparison-panel { border-top: 1px solid var(--line); padding-top: 34px; }
.sp-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.sp-comparison-pane { min-width: 0; padding: clamp(24px, 4vw, 46px); }
.sp-comparison-pane + .sp-comparison-pane { margin-top: 0 !important; border-left: 1px solid var(--line); }
.sp-comparison-pane h3 { margin: 0 0 18px; color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.sp-comparison-pane p { font-size: clamp(1.06rem, 1.8vw, 1.22rem); line-height: 1.65; }
.sp-comparison-pane:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: .42fr 1fr; gap: 28px; border-top: 1px solid var(--line); border-left: 0; background: var(--ink); color: var(--page); }
.sp-comparison-pane:nth-child(3) h3, .sp-comparison-pane:nth-child(3) p { color: var(--page) !important; }
.sp-comparison-pane:nth-child(3) h3 { color: var(--accent) !important; }

.sp-visual-block--decision-matrix { border-top: 8px solid var(--ink); padding-top: 30px; }
.sp-decision-gates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sp-decision-gates li { min-width: 0; padding: 24px 18px 30px; }
.sp-decision-gates li + li { border-left: 1px solid var(--line); }
.sp-decision-gates li > span { display: block; margin-bottom: 42px; color: var(--accent); font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.sp-decision-gates strong { display: block; min-height: 3.2em; font-size: 1.02rem; line-height: 1.25; }
.sp-decision-gates p { margin: 14px 0 0; color: var(--muted); font-family: Inter, sans-serif; font-size: .82rem; line-height: 1.55; }
.sp-visual-block--decision-matrix > blockquote { margin: 0; border: 0; padding: clamp(28px, 5vw, 54px); background: var(--ink); color: var(--page); font-size: clamp(1.65rem, 4vw, 3.5rem); }
.sp-visual-block--decision-matrix > blockquote strong { color: inherit; }

.sp-visual-block--process-flow { border-top: 1px solid var(--line); padding-top: 34px; }
.sp-process-diagram { display: block; width: 100%; height: auto; margin: 42px 0 20px; overflow: visible; }
.sp-process-diagram rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.sp-process-diagram text { fill: var(--ink); stroke: none; font-family: Inter, sans-serif; }
.sp-process-diagram__number { fill: var(--accent) !important; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.sp-process-diagram__label { font-size: 13px; font-weight: 780; }
.sp-process-diagram__connectors line { stroke: var(--accent); stroke-width: 2; }
.sp-process-diagram marker path { fill: var(--accent); stroke: none; }
.sp-process-failures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.sp-process-failures li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; min-width: 0; border-bottom: 1px solid var(--line); padding: 22px 16px 24px 0; }
.sp-process-failures li:not(:nth-child(3n + 1)) { padding-left: 16px; border-left: 1px solid var(--line); }
.sp-process-failures li > span { color: var(--accent); font-size: .66rem; font-weight: 850; letter-spacing: .1em; }
.sp-process-failures strong { display: block; font-size: .92rem; }
.sp-process-failures p { margin: 8px 0 0; color: var(--muted); font-family: Inter, sans-serif; font-size: .78rem; line-height: 1.5; }
.sp-process-failures li:last-child { grid-column: 1 / -1; grid-template-columns: 36px minmax(0, 760px); background: color-mix(in srgb, var(--accent), transparent 95%); }

.sp-visual-block--responsive-ledger { border-top: 1px solid var(--line); padding-top: 34px; }
.sp-table-region { max-width: 100%; margin-top: 38px; overflow-x: auto; border-top: 2px solid var(--ink); }
.sp-markdown-table { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; font-size: .9rem; }
.sp-markdown-table th, .sp-markdown-table td { border-bottom: 1px solid var(--line); padding: 16px 14px; text-align: left; vertical-align: top; }
.sp-markdown-table th { color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.sp-markdown-table th:first-child, .sp-markdown-table td:first-child { padding-left: 0; }
.sp-markdown-table th:last-child, .sp-markdown-table td:last-child { padding-right: 0; }
.sp-ledger-table { table-layout: fixed; }
.sp-ledger-table th:first-child, .sp-ledger-table td:first-child { width: 30%; color: var(--ink); font-weight: 720; }
.sp-ledger-table th:nth-child(2), .sp-ledger-table td:nth-child(2) { width: 35%; }
.sp-ledger-table td:nth-child(3) { color: var(--muted); }

.sp-visual-block--thesis-break { width: min(calc(100vw - 32px), 1120px); max-width: 1120px; margin-top: 110px !important; padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px); background: var(--ink); color: var(--page); }
.sp-visual-block--thesis-break > h2 { max-width: 920px; color: var(--page) !important; font-size: clamp(3.5rem, 9vw, 8.5rem); }
.sp-visual-block--thesis-break > p { max-width: 790px; color: color-mix(in srgb, var(--page), transparent 15%) !important; }
.sp-visual-block--thesis-break > p:first-of-type { margin-top: 64px; color: var(--page) !important; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.35; }
.sp-thesis-tension { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-width: 1000px; margin-top: 54px; background: color-mix(in srgb, var(--page), transparent 72%); }
.sp-thesis-tension p { margin: 0; padding: clamp(28px, 5vw, 52px); background: var(--ink); color: var(--page) !important; font-family: Inter, sans-serif; font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 760; line-height: 1.35; }
.sp-thesis-tension p:last-child { color: var(--accent) !important; }
.sp-thesis-tension + p { margin-top: 42px; color: var(--page) !important; font-family: Inter, sans-serif; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 760; }
.sp-visual-block--evidence-group > ul, .sp-visual-block--timeline > ol, .sp-visual-block--sequence > ol { display: grid; gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.sp-visual-block--evidence-group > ul > li, .sp-visual-block--timeline > ol > li, .sp-visual-block--sequence > ol > li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.sp-source-note { margin: 34px 0; border: 1px solid color-mix(in srgb, var(--accent), var(--line) 65%); border-radius: 14px; padding: 16px; background: color-mix(in srgb, var(--accent), transparent 95%); color: var(--muted); }
.sp-source-note strong { color: var(--ink); }
.sp-evidence { width: min(calc(100vw - 32px), 1100px); margin: 90px 0 20px 50%; transform: translateX(-50%); border-top: 1px solid var(--line); padding-top: 44px; font-family: Inter, sans-serif; }
.sp-evidence__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.sp-evidence__head h2 { margin: 7px 0 0; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .96; letter-spacing: -.055em; }
.sp-evidence__head > p { margin: 0; color: var(--muted); font-family: Inter, sans-serif; font-size: 1rem; line-height: 1.65; }
.sp-package-panel { display: grid; grid-template-columns: 1fr minmax(240px, .55fr); gap: 28px; margin: 38px 0 54px; border-radius: 24px; padding: clamp(24px, 4vw, 38px); background: var(--ink); color: var(--page); }
.sp-package-panel > div > span, .sp-evidence__subhead > span { color: var(--accent); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.sp-package-panel h3 { margin: 8px 0 12px; color: var(--page); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.04em; }
.sp-package-panel p { margin: 0; color: color-mix(in srgb, var(--page), transparent 28%); font-family: Inter, sans-serif; font-size: .92rem; line-height: 1.6; }
.sp-package-panel__actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.sp-package-panel__actions .sp-button { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.sp-package-panel__actions > a:not(.sp-button) { color: var(--page); font-size: .78rem; font-weight: 760; text-underline-offset: 3px; }
.sp-source-ledger, .sp-claim-ledger { margin-top: 46px !important; }
.sp-evidence__subhead { display: grid; grid-template-columns: minmax(180px, .35fr) 1fr 1fr; gap: 22px; align-items: start; margin-bottom: 20px; }
.sp-evidence__subhead h3 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.04; letter-spacing: -.035em; }
.sp-evidence__subhead p { margin: 0; color: var(--muted); font-family: Inter, sans-serif; font-size: .88rem; line-height: 1.55; }
.sp-evidence-source-grid, .sp-claim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-evidence-source, .sp-claim { min-width: 0; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); }
.sp-evidence-source > span, .sp-claim > div > span { color: var(--accent); font-size: .64rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.sp-evidence-source h3 { margin: 0; font-size: 1.22rem; line-height: 1.18; letter-spacing: -.025em; }
.sp-evidence-source p, .sp-claim p { margin: 0; font-family: Inter, sans-serif; font-size: .82rem; line-height: 1.55; }
.sp-evidence-source__role { color: var(--ink); font-weight: 700; }
.sp-evidence-source > p:not(.sp-evidence-source__role) { color: var(--muted); }
.sp-evidence-source > a { align-self: flex-start; margin-top: auto; color: var(--ink); font-size: .76rem; font-weight: 800; overflow-wrap: anywhere; }
.sp-source-locator { align-self: flex-start; margin-top: auto; max-width: 100%; color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.sp-claim > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.sp-claim > div > small { color: var(--muted); font-size: .64rem; overflow-wrap: anywhere; }
.sp-claim__text { color: var(--ink); font-size: .96rem !important; font-weight: 680; }
.sp-claim__support { border-top: 1px solid var(--line); padding-top: 10px; }
.sp-claim__support strong, .sp-claim__caveat strong { display: block; margin-bottom: 5px; color: var(--muted); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.sp-claim__support ul { margin: 0; padding-left: 16px; font-family: Inter, sans-serif; font-size: .76rem; }
.sp-claim__support a, .sp-claim__support span { overflow-wrap: anywhere; }
.sp-claim__caveat { border-left: 3px solid var(--accent); padding-left: 10px; color: var(--muted); }
.sp-evidence__boundary { margin: 38px 0 14px; border-left: 3px solid var(--accent); padding: 8px 0 8px 16px; color: var(--muted); font-family: Inter, sans-serif !important; font-size: .82rem !important; line-height: 1.55; }
.sp-evidence__boundary strong { color: var(--ink); }
.sp-evidence__counts { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-evidence__counts span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-size: .72rem; }
.sp-evidence__counts strong { color: var(--ink); }
.sp-connected { width: min(calc(100vw - 32px), 1100px); margin: 90px 0 20px 50%; transform: translateX(-50%); border-top: 1px solid var(--line); padding-top: 44px; font-family: Inter, sans-serif; }
.sp-connected__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 32px; }
.sp-connected__head h2 { margin: 7px 0 0; font-size: clamp(2.5rem, 6vw, 5rem); }
.sp-connected__head > p { margin: 0; color: var(--muted); font-family: Inter, sans-serif; font-size: 1rem; line-height: 1.6; }
.sp-connected-group + .sp-connected-group { margin-top: 34px !important; }
.sp-connected-group > h3 { margin: 0 0 12px; color: var(--muted); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.sp-connected-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sp-connected-card { min-width: 0; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); text-decoration: none; }
.sp-connected-card:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent), var(--line) 55%); box-shadow: var(--shadow); }
.sp-connected-card h4 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.04; letter-spacing: -.04em; }
.sp-connected-card p { margin: 0; font-family: Inter, sans-serif; font-size: .92rem; line-height: 1.55; }
.sp-connected-card__why { color: var(--ink); font-weight: 670; }
.sp-connected-card__thesis { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.sp-connected-card > div { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .68rem; }
.sp-connected-card > strong { color: var(--ink); font-size: .74rem; }
.sp-connected > .sp-button { margin-top: 22px; }

.sp-visual-prompt-section { width: min(calc(100vw - 32px), 1100px); margin-left: 50%; transform: translateX(-50%); }
.sp-visual-prompt-section > p { max-width: var(--content); }
.sp-visual-prompt-suite { display: grid; gap: 12px; margin-top: 30px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.sp-visual-prompt { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: clip; }
.sp-visual-prompt > summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 62px; padding: 16px 20px; color: var(--ink); cursor: pointer; font-weight: 780; }
.sp-visual-prompt > summary::marker { color: var(--accent); }
.sp-visual-prompt > summary small { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-align: right; }
.sp-visual-prompt[open] > summary { border-bottom: 1px solid var(--line); }
.sp-visual-prompt__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.sp-visual-prompt__variant { min-width: 0; padding: 18px; background: var(--ink); color: var(--page); }
.sp-visual-prompt__variant--dark-expressive { background: #090a08; }
.sp-visual-prompt__variant > header { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 12px; }
.sp-visual-prompt__variant h4 { margin: 0; color: var(--page); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.sp-visual-prompt__variant button { min-height: 34px; border: 1px solid color-mix(in srgb, var(--page), transparent 68%); border-radius: 999px; padding: 5px 10px; background: transparent; color: var(--page); cursor: pointer; font-size: .68rem; font-weight: 760; }
.sp-visual-prompt__variant button:hover, .sp-visual-prompt__variant button:focus-visible { border-color: var(--accent); color: var(--accent); }
.sp-visual-prompt__variant button:disabled { opacity: .45; cursor: default; }
.sp-visual-prompt__variant pre { max-height: 520px; margin: 0; overflow: auto; border: 1px solid color-mix(in srgb, var(--page), transparent 82%); border-radius: 10px; padding: 18px; background: #11120f; color: #f1f1ea; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 .72rem/1.58 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sp-visual-prompt__variant code { color: inherit; font: inherit; }

.sp-graph-visual { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .6fr); gap: 18px; padding: 40px 0 20px; }
.sp-graph-canvas { position: relative; min-height: 620px; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent), transparent 88%), transparent 42%), var(--surface); overflow: hidden; }
.sp-graph-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-graph-canvas path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 10 7; }
.sp-graph-canvas .sp-graph-line--secondary { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 8; }
.sp-graph-node { position: absolute; left: var(--x); top: var(--y); width: 132px; min-height: 82px; transform: translate(-50%,-50%); border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface); color: var(--ink); text-align: left; font-size: .78rem; font-weight: 800; line-height: 1.15; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.sp-graph-node[aria-pressed="true"] { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent), transparent 78%); }
.sp-graph-node span { display: block; margin-bottom: 7px; color: var(--accent); font-size: .65rem; letter-spacing: .12em; }
.sp-graph-detail { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; padding: 26px; background: var(--ink); color: var(--page); }
.sp-graph-detail > span { color: var(--accent); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sp-graph-detail h2 { margin: auto 0 18px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .98; letter-spacing: -.05em; }
.sp-graph-detail p { color: color-mix(in srgb, var(--page), transparent 28%); }
.sp-graph-detail a { align-self: flex-start; margin-top: 18px; border-radius: 999px; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; }
.sp-graph-structured > section { border-top: 1px solid var(--line); padding: 34px 0; }
.sp-graph-structured > section > h2 { max-width: 820px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.sp-graph-structured > section > p { max-width: 820px; color: var(--muted); }
.sp-graph-edge-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.sp-graph-edge-card { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); }
.sp-graph-edge-card:only-child { grid-column: 1 / -1; max-width: 820px; }
.sp-graph-edge-card__path { display: grid; grid-template-columns: auto 1fr auto auto 1fr; gap: 6px 9px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sp-graph-edge-card__path span { color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sp-graph-edge-card__path strong { font-size: .68rem; line-height: 1.25; }
.sp-graph-edge-card__path i { color: var(--accent); font-style: normal; font-weight: 900; }
.sp-graph-edge-card__group { color: var(--accent); font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sp-graph-edge-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.1; }
.sp-graph-edge-card p { margin: 0; color: var(--muted); }
.sp-graph-edge-card > a { justify-self: start; margin-top: 4px; color: var(--ink); font-size: .78rem; font-weight: 800; }

.sp-direction { padding-bottom: 90px; }
.sp-direction-hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: clamp(70px, 10vw, 118px) 0 40px; }
.sp-direction-hero nav { display: grid; gap: 8px; }
.sp-direction-hero nav a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: var(--surface); text-decoration: none; font-size: .78rem; font-weight: 760; }
.sp-direction-lead { padding: 24px 0 0; }
.sp-direction-lead > .sp-publication-card { min-height: 440px; }
.sp-direction--editorial .sp-direction-lead > .sp-publication-card { width: min(100%, 930px); padding: clamp(34px, 6vw, 68px); }
.sp-direction--editorial .sp-direction-lead h3 { max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; }
.sp-direction--editorial .sp-publication-grid { grid-template-columns: 1.2fr .8fr; }
.sp-direction--editorial .sp-publication-grid .sp-publication-card:first-child { grid-row: span 2; min-height: 620px; }
.sp-direction--atlas { background: var(--ink); color: var(--page); }
.sp-direction--atlas .sp-direction-hero, .sp-direction--atlas .sp-direction-lead, .sp-direction--atlas .sp-section { width: min(calc(100% - 32px), var(--wide)); }
.sp-direction--atlas .sp-direction-hero nav a, .sp-direction--atlas .sp-publication-card, .sp-direction--atlas .sp-corpus-row { border-color: color-mix(in srgb, var(--page), transparent 75%); background: color-mix(in srgb, var(--page), transparent 94%); color: var(--page); }
.sp-direction--atlas .sp-direction-hero > div > p { color: color-mix(in srgb, var(--page), transparent 18%); }
.sp-direction--atlas .sp-publication-card p, .sp-direction--atlas .sp-card-meta, .sp-direction--atlas .sp-corpus-row small, .sp-direction--atlas .sp-corpus-row__topic, .sp-direction--atlas .sp-corpus-row__depth, .sp-direction--atlas .sp-corpus-row time, .sp-direction--atlas .sp-section__head p { color: color-mix(in srgb, var(--page), transparent 35%); }
.sp-direction--atlas .sp-publication-card h3, .sp-direction--atlas .sp-publication-card > strong { color: var(--page); }
.sp-direction--atlas .sp-publication-grid { grid-template-columns: repeat(12,1fr); }
.sp-direction--atlas .sp-publication-card { grid-column: span 4; min-height: 330px; border-radius: 8px; }
.sp-direction--atlas .sp-publication-card h3 { margin-top: 52px; font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.sp-direction--atlas .sp-direction-lead > .sp-publication-card { border-left: 7px solid var(--accent); }
.sp-direction--atlas .sp-direction-connected { color: var(--ink); }

@media (max-width: 1000px) {
  .sp-publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-decision-gates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-decision-gates li:nth-child(4) { border-left: 0; }
  .sp-decision-gates li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .sp-process-failures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-process-failures li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .sp-process-failures li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .sp-corpus-controls { position: relative; top: auto; grid-template-columns: 1fr 1fr; }
  .sp-corpus-controls label:first-child { grid-column: 1 / -1; }
  .sp-corpus-row { grid-template-columns: 110px minmax(240px, 1fr) 110px auto; }
  .sp-corpus-row__topic { display: none; }
  .sp-direction--atlas .sp-publication-card { grid-column: span 6; }
}

@media (max-width: 760px) {
  .sp-publication-grid, .sp-connected-grid, .sp-graph-edge-grid, .sp-evidence-source-grid, .sp-claim-grid, .sp-direction--editorial .sp-publication-grid, .sp-visual-prompt__pair { grid-template-columns: 1fr; }
  .sp-visual-block { width: min(calc(100vw - 24px), 1120px); }
  .sp-visual-block > h2 { font-size: clamp(2.3rem, 12vw, 4rem); }
  .sp-comparison-grid, .sp-comparison-pane:nth-child(3), .sp-thesis-tension { grid-template-columns: 1fr; }
  .sp-comparison-pane + .sp-comparison-pane { border-top: 1px solid var(--line); border-left: 0; }
  .sp-comparison-pane:nth-child(3) { display: block; }
  .sp-decision-gates { grid-template-columns: 1fr; }
  .sp-decision-gates li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 20px 0; }
  .sp-decision-gates li + li, .sp-decision-gates li:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .sp-decision-gates li > span { margin: 0; }
  .sp-decision-gates strong { min-height: 0; }
  .sp-decision-gates p { margin-top: 6px; }
  .sp-process-diagram { display: none; }
  .sp-process-failures { grid-template-columns: 1fr; margin-top: 34px; }
  .sp-process-failures li, .sp-process-failures li:nth-child(even), .sp-process-failures li:not(:nth-child(3n + 1)) { grid-column: auto; padding: 18px 0; border-left: 0; }
  .sp-visual-block--thesis-break { width: calc(100vw - 24px); padding: 74px 20px; }
  .sp-visual-block--thesis-break > h2 { font-size: clamp(2.75rem, 13vw, 5rem); overflow-wrap: anywhere; }
  .sp-table-region { overflow: visible; }
  .sp-markdown-table, .sp-markdown-table tbody, .sp-markdown-table tr, .sp-markdown-table td { display: block; width: 100%; }
  .sp-markdown-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .sp-markdown-table tr { border-bottom: 2px solid var(--ink); padding: 12px 0; }
  .sp-markdown-table td, .sp-ledger-table td:first-child, .sp-ledger-table td:nth-child(2) { display: grid; grid-template-columns: minmax(105px, .36fr) 1fr; gap: 16px; width: 100%; border: 0; padding: 8px 0; font-weight: 400; }
  .sp-markdown-table td::before { content: attr(data-label); color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
  .sp-ledger-table td:first-child { color: var(--ink); font-weight: 720; }
  .sp-publication-card { min-height: 330px; }
  .sp-corpus-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .sp-corpus-row__type, .sp-corpus-row__title { grid-column: 1; }
  .sp-corpus-row__depth, .sp-corpus-row time { grid-column: 2; }
  .sp-corpus-row__topic { display: block; grid-column: 1; }
  .sp-connected { margin-top: 64px; }
  .sp-connected__head { grid-template-columns: 1fr; gap: 12px; }
  .sp-evidence { margin-top: 64px; }
  .sp-evidence__head, .sp-package-panel, .sp-evidence__subhead { grid-template-columns: 1fr; gap: 14px; }
  .sp-graph-visual { display: none; }
  .sp-direction-hero { grid-template-columns: 1fr; }
  .sp-direction--editorial .sp-publication-grid .sp-publication-card:first-child { min-height: 360px; }
  .sp-direction--atlas .sp-publication-card { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .sp-corpus-controls { grid-template-columns: 1fr; }
  .sp-corpus-controls label:first-child { grid-column: auto; }
  .sp-view-toggle { width: 100%; }
  .sp-corpus-row__depth { display: none; }
  .sp-publication-card { padding: 22px; }
  .sp-connected-card { padding: 20px; }
  .sp-evidence-source, .sp-claim, .sp-package-panel { padding: 20px; }
  .sp-graph-edge-card__path { grid-template-columns: auto 1fr; }
  .sp-graph-edge-card__path i { display: none; }
}
