:root {
  --paper: #f8f6f1;
  --paper-strong: #fffefa;
  --ink: #1d1b1a;
  --muted: #6c6662;
  --line: #d8d1ca;
  --line-dark: #aaa19a;
  --brand-accent: #752b39;
  --accent: #752b39;
  --accent-dark: #551d28;
  --accent-soft: #eee2e4;
  --success: #315f4e;
  --warning: #7b5b1f;
  --max: 1220px;
  --reading: 760px;
}

/* Semantic colour signatures: restrained enough for the editorial layout,
   distinct enough to orient the reader. Codes and titles remain the primary labels. */
.theme-home, .theme-framework, .theme-how, .theme-domains,
.theme-comparison, .theme-application, .theme-foundations,
.theme-community, .domain-theme {
  --accent: var(--theme-color);
  --accent-dark: color-mix(in srgb, var(--theme-color) 78%, var(--ink));
  --accent-soft: color-mix(in srgb, var(--theme-color) 12%, var(--paper-strong));
}
.theme-home { --theme-color: #752b39; }
.theme-framework { --theme-color: #4f5f7f; }
.theme-how { --theme-color: #914b36; }
.theme-domains { --theme-color: #2f6d62; }
.theme-comparison { --theme-color: #66518a; }
.theme-application { --theme-color: #80601f; }
.theme-foundations { --theme-color: #52656e; }
.theme-community { --theme-color: #824354; }
.domain-d1 { --theme-color: #176963; }
.domain-d2 { --theme-color: #94415e; }
.domain-d3 { --theme-color: #805718; }
.domain-d4 { --theme-color: #974827; }
.domain-d5 { --theme-color: #4e6677; }
.domain-d6 { --theme-color: #3b5f8e; }
.domain-d7 { --theme-color: #66519a; }
.domain-d8 { --theme-color: #963f74; }
.domain-d9 { --theme-color: #3e704f; }
.domain-d10 { --theme-color: #246b80; }
.domain-d11 { --theme-color: #515a9e; }
.domain-d12 { --theme-color: #4e6d31; }
.domain-d13 { --theme-color: #87523a; }
.domain-d14 { --theme-color: #72543f; }
.domain-d15 { --theme-color: #774667; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 6vw, 5.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.15em; }
ul { padding-left: 1.25em; }
li + li { margin-top: .5em; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .65rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.eyebrow { margin: 0 0 .8rem; color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.muted, .meta, .result-count { color: var(--muted); }
.meta { margin-bottom: .35rem; font-size: .78rem; letter-spacing: .025em; }
.preserve { white-space: pre-wrap; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: inset 0 3px 0 var(--accent); backdrop-filter: blur(12px); transition: box-shadow .2s ease; }
.header-inner { max-width: var(--max); min-height: 76px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: baseline; gap: .55rem; font-family: Georgia, serif; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand small { color: var(--brand-accent); font-family: ui-monospace, monospace; font-size: .63rem; font-weight: 700; }
.primary-nav { display: flex; justify-content: center; gap: clamp(.7rem, 1.4vw, 1.45rem); }
.primary-nav a, .header-tools a, .link-button { border: 0; background: transparent; font-size: .82rem; font-weight: 620; text-decoration: none; white-space: nowrap; }
.primary-nav a { position: relative; padding: .35rem 0; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: -.12rem; left: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: .75rem; }
.header-tools .search-link { font-size: 1.35rem; line-height: 1; }
.inline { display: inline; margin: 0; }
.link-button { padding: 0; cursor: pointer; color: var(--ink); }
.language-switch { display: flex; align-items: center; gap: .3rem; margin-left: .25rem; font-size: .75rem; }
.language-switch a { font-size: inherit; }
.language-switch strong { color: var(--accent); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { cursor: pointer; font-size: .82rem; font-weight: 700; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; top: 2.2rem; right: 0; width: min(80vw, 320px); padding: 1rem; border: 1px solid var(--line-dark); background: var(--paper-strong); box-shadow: 0 12px 40px rgb(30 20 20 / .12); display: grid; }
.mobile-menu nav a { padding: .7rem; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; text-decoration: none; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { border-left-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.flash-stack { position: fixed; z-index: 40; top: 90px; right: 20px; width: min(420px, calc(100vw - 40px)); }
.flash { margin-bottom: .5rem; padding: .8rem 1rem; border: 1px solid var(--line-dark); background: var(--paper-strong); box-shadow: 0 8px 24px rgb(30 20 20 / .1); }
.flash.error { border-left: 4px solid var(--accent); }
.flash.success { border-left: 4px solid var(--success); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: white; font-size: .85rem; font-weight: 700; line-height: 1.15; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-dark); color: white; }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--accent-soft); }
.text-link { font-size: .9rem; font-weight: 700; }

.home-page { max-width: var(--max); margin: 0 auto; padding: 0 24px 6rem; }
.hero { min-height: min(780px, calc(100vh - 76px)); padding: clamp(4rem, 9vw, 8rem) 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.hero h1 { margin: .15rem 0 .2rem; color: var(--accent); }
.hero-subtitle { max-width: 600px; margin: 0 0 2rem; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.3; }
.lead { max-width: 720px; font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; }
.hero-actions { margin: 2.2rem 0 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.version-line { display: flex; gap: 1rem; color: var(--muted); font-family: ui-monospace, monospace; font-size: .7rem; text-transform: uppercase; }
.central-statement { margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.central-statement p { max-width: 980px; margin: 0; font-family: Georgia, serif; font-size: clamp(1.75rem, 4vw, 3.8rem); line-height: 1.2; letter-spacing: -.025em; }
.entry-points { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.entry-points a { min-height: 290px; padding: 2.5rem 2rem; border-right: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--accent); display: grid; grid-template-rows: auto auto 1fr auto; text-decoration: none; transition: background .18s ease, box-shadow .18s ease; }
.entry-points a:hover, .entry-points a:focus-visible { background: var(--accent-soft); box-shadow: inset 0 7px 0 var(--accent); color: var(--ink); }
.entry-points a:last-child { border-right: 0; }
.entry-points b { color: var(--accent); font-family: ui-monospace, monospace; font-size: .75rem; }
.entry-points h2 { margin: 1.1rem 0 .7rem; font-size: 2.1rem; }
.entry-points p { color: var(--muted); }
.entry-points i { justify-self: end; color: var(--accent); font-size: 1.5rem; font-style: normal; }
.documents-band { padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(240px, .7fr) minmax(420px, 1.3fr); align-items: end; gap: clamp(2rem, 6vw, 5rem); scroll-margin-top: 100px; }
.documents-band h2 { margin: 0 0 1rem; }
.documents-band > div:first-child > p:last-child { max-width: 520px; margin: 0; color: var(--muted); }
.document-downloads { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.document-card { min-height: 150px; padding: 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; color: var(--ink); text-decoration: none; transition: background .18s ease, color .18s ease; }
.document-card:last-child { border-right: 0; }
.document-card:hover, .document-card:focus-visible { background: var(--accent); color: white; }
.document-code { color: var(--accent); font: 700 .72rem ui-monospace, monospace; }
.document-card:hover .document-code, .document-card:focus-visible .document-code { color: #f4dce1; }
.document-card > span:nth-child(2) { display: grid; gap: .3rem; }
.document-card b { font-family: Georgia, serif; font-size: 1.15rem; line-height: 1.25; }
.document-card small { color: var(--muted); font-size: .69rem; text-transform: uppercase; }
.document-card:hover small, .document-card:focus-visible small { color: #f4dce1; }
.document-card i { color: var(--accent); font-family: Georgia, serif; font-size: 1.6rem; font-style: normal; }
.document-card:hover i, .document-card:focus-visible i { color: white; }
.participation-band { margin-top: 5rem; padding: 3rem 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.participation-band h2 { margin: 0 0 1rem; }
.participation-band p { max-width: 760px; }

.section-hero { max-width: 900px; padding: clamp(4rem, 9vw, 8rem) 0 3rem; }
.section-hero::before, .page-intro::before, .domain-head::before,
.form-page > header::before, .text-page > header::before {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  margin-bottom: 1.5rem;
  background: var(--accent);
}
.section-hero h1 { margin: 0 0 1.5rem; }
.reader-layout { max-width: var(--max); margin: 0 auto; padding: 0 24px 7rem; display: grid; grid-template-columns: 280px minmax(0, var(--reading)); justify-content: space-between; gap: clamp(3rem, 7vw, 7rem); }
.page-toc { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 140px); padding-top: 5.5rem; overflow: auto; scrollbar-width: thin; }
.page-toc h1 { margin: .25rem 0 1.5rem; font-size: 2.1rem; }
.page-toc nav { display: grid; border-top: 1px solid var(--line); }
.page-toc nav a { padding: .62rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.35; text-decoration: none; }
.page-toc nav a:hover { color: var(--accent); }
.back-link { display: inline-block; margin: 0 0 1.5rem; font-size: .78rem; font-weight: 700; text-decoration: none; }
.domain-code { margin: 0 0 1.5rem; color: var(--accent); font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; }
.reader-content { min-width: 0; }
.page-intro { padding: clamp(4.5rem, 9vw, 8rem) 0 3rem; border-bottom: 1px solid var(--line-dark); }
.page-intro h1 { margin: 0; }
.content-section { padding: 4rem 0; border-bottom: 1px solid var(--line-dark); scroll-margin-top: 100px; }
.content-section > h2 { margin: 0 0 2rem; }
.content-section > h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: .8rem; background: var(--accent); }
.source { max-width: var(--reading); }
.source p { hanging-punctuation: first last; overflow-wrap: break-word; }
.source h3 { margin: 2.2rem 0 .75rem; color: var(--accent); }
.source ul { margin: 1rem 0 1.7rem; }
.table-prose-before { margin-bottom: 2rem; }
.table-prose-after { margin-top: 2rem; }
.content-table-wrap { max-width: 100%; margin: 2rem 0 2.5rem; overflow-x: auto; border: 1px solid var(--line-dark); background: var(--paper-strong); box-shadow: 0 12px 35px rgb(45 25 25 / .045); scrollbar-width: thin; }
.content-table-wrap:focus-visible { outline-offset: 4px; }
.content-table { width: 100%; border-collapse: collapse; background: var(--paper-strong); font-size: .84rem; line-height: 1.45; }
.content-table th, .content-table td { padding: .82rem .78rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; hyphens: auto; overflow-wrap: anywhere; }
.content-table th:last-child, .content-table td:last-child { border-right: 0; }
.content-table tbody tr:last-child > * { border-bottom: 0; }
.content-table thead th { background: var(--accent-dark); color: white; font-size: .65rem; font-weight: 750; letter-spacing: .055em; line-height: 1.35; text-transform: uppercase; }
.content-table tbody th { background: color-mix(in srgb, var(--accent-soft) 46%, var(--paper-strong)); color: var(--accent-dark); font-weight: 700; }
.content-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--paper) 55%, var(--paper-strong)); }
.content-table tbody tr:hover > * { background: var(--accent-soft); }
.content-table--paired tbody th { width: 34%; font-family: Georgia, serif; font-size: .96rem; font-weight: 500; line-height: 1.35; }
.content-table--code tbody th { width: 5.4rem; color: var(--accent); font: 750 .72rem ui-monospace, monospace; white-space: nowrap; }
.content-table--progression tbody th { width: 27%; font-family: Georgia, serif; font-size: .93rem; font-weight: 500; }
.content-table--domain-progression { table-layout: fixed; font-size: .78rem; }
.content-table--domain-progression thead th:first-child, .content-table--domain-progression tbody th { width: 4.3rem; }
.content-table--domain-progression tbody th { color: var(--accent); font: 750 .75rem ui-monospace, monospace; white-space: nowrap; }
.content-table-wrap--worksheet { min-height: 370px; }
.content-table--worksheet { min-width: 980px; table-layout: fixed; }
.content-table--worksheet tbody td { height: 64px; background: var(--paper-strong)!important; }
.content-table--wide { font-size: .8rem; }

.experience-bank { margin: 2rem 0 2.5rem; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--paper-strong); box-shadow: 0 12px 35px rgb(45 25 25 / .045); }
.experience-group { position: relative; min-width: 0; padding: 1.4rem 1.35rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: color-mix(in srgb, var(--accent-soft) 34%, var(--paper-strong)); }
.experience-group::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--accent); }
.experience-group header { min-height: 62px; margin-bottom: .55rem; display: grid; grid-template-columns: 2rem 1fr; align-items: start; gap: .65rem; }
.experience-group header > span { padding-top: .23rem; color: var(--accent); font: 750 .67rem ui-monospace, monospace; }
.experience-group h3 { margin: 0; color: var(--accent-dark); font-size: 1.22rem; line-height: 1.25; }
.experience-group ol { margin: 0; padding: 0; list-style: none; }
.experience-group li { margin: 0; padding: .48rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: .45rem; font-size: .78rem; line-height: 1.4; }
.experience-group li b { padding-top: .12rem; color: var(--muted); font: 700 .58rem ui-monospace, monospace; }
.intro-source { margin-top: 2rem; }
.lead-source { font-size: 1.08rem; }

.domain-head { padding: clamp(4.5rem, 9vw, 8rem) 0 4rem; border-bottom: 1px solid var(--line-dark); scroll-margin-top: 100px; }
.domain-head h1 { margin: 0 0 2rem; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.nuclear-question { margin: 2rem 0; padding: 1.3rem 1.5rem; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.nuclear-question b { color: var(--accent); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.nuclear-question p { margin: .3rem 0 0; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.35; }
.domain-section { padding-top: 4.5rem; }
.prev-next { padding: 3rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.prev-next a { padding-top: .8rem; border-top: 3px solid var(--accent); display: grid; text-decoration: none; }
.prev-next a:last-child { text-align: right; }
.prev-next small { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.domains-page { max-width: var(--max); margin: 0 auto; padding: 0 24px 7rem; }
.canonical-intro { margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.canonical-intro summary { padding: .8rem 0; cursor: pointer; color: var(--accent); font-size: .8rem; font-weight: 700; }
.canonical-intro .source { padding: 1rem 0 2rem; }
.domain-index { border-top: 1px solid var(--line-dark); }
.domain-index article { position: relative; padding: 2.2rem 1rem 2.2rem 1.35rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 65px minmax(260px, .8fr) minmax(300px, 1.2fr) auto; align-items: start; gap: 1.5rem; transition: background .18s ease; }
.domain-index article::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: 0; width: 4px; background: var(--accent); transform: scaleY(.48); transform-origin: top; transition: transform .18s ease; }
.domain-index article:hover, .domain-index article:focus-within { background: linear-gradient(90deg, var(--accent-soft), transparent 72%); }
.domain-index article:hover::before, .domain-index article:focus-within::before { transform: scaleY(1); }
.domain-index article > span { color: var(--accent); font-family: Georgia, serif; font-size: 1.8rem; }
.domain-index h2 { margin: 0; font-size: 1.55rem; }
.domain-index p { margin: 0; color: var(--muted); font-size: .94rem; }
.domain-index p b { display: block; margin-bottom: .2rem; color: var(--ink); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.domain-index article > a { font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.domain-index i { color: var(--accent); font-style: normal; }
.framework-domain-index { margin-top: 2rem; }
.framework-domain-index h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.framework-domain-index article > span { padding-top: .1rem; }
.framework-domain-index article > p { line-height: 1.55; }

.section-contributions { margin-top: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-contributions summary { padding: .9rem 0; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; font-weight: 750; list-style: none; }
.section-contributions summary::-webkit-details-marker { display: none; }
.section-contributions summary b { min-width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contribution-panel { padding: 1rem 0 2rem; }
.contribution-call { margin-bottom: 1.5rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; }
.contribution-call p { margin: 0; color: var(--muted); font-size: .9rem; }
.contribution-card { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.contribution-card h4 { margin: .25rem 0 .5rem; font-size: 1.2rem; }
.contribution-card p:last-child { margin-bottom: 0; }
.contribution-card.own { padding-left: 1rem; border-left: 3px solid var(--warning); }

.diagram { margin: 3rem 0; padding: clamp(1.2rem, 3vw, 2.2rem); border: 1px solid var(--line-dark); background: var(--paper-strong); overflow: hidden; }
.diagram figcaption { margin-top: 1.5rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.architecture-diagram { background: linear-gradient(145deg, var(--paper-strong), color-mix(in srgb, var(--accent-soft) 28%, var(--paper-strong))); }
.architecture-stage { position: relative; min-height: 430px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(92px, auto) minmax(190px, 1fr) minmax(92px, auto); align-items: stretch; gap: 1rem 1.15rem; }
.architecture-connections { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.architecture-connections line { stroke: var(--line-dark); stroke-width: 1.2; stroke-dasharray: 2.5 2.5; vector-effect: non-scaling-stroke; transition: stroke .2s ease, stroke-width .2s ease, stroke-dasharray .2s ease; }
.architecture-connections line.is-active { stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: none; }
.architecture-item { position: relative; z-index: 2; width: auto; min-height: 92px; padding: .8rem; border: 1px solid var(--line-dark); background: var(--paper-strong); color: var(--ink); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .65rem; cursor: pointer; font-size: .79rem; line-height: 1.3; text-align: left; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.architecture-item:hover, .architecture-item:focus-visible, .architecture-item.is-active { border-color: var(--accent); background: var(--accent); color: white; box-shadow: 0 10px 28px rgb(70 30 38 / .16); }
.architecture-item:hover { transform: translateY(-2px); }
.architecture-item.i1 { grid-column: 1; grid-row: 1; }.architecture-item.i2 { grid-column: 2; grid-row: 1; }.architecture-item.i3 { grid-column: 3; grid-row: 1; }.architecture-item.i4 { grid-column: 1; grid-row: 3; }.architecture-item.i5 { grid-column: 2; grid-row: 3; }.architecture-item.i6 { grid-column: 3; grid-row: 3; }
.architecture-number { color: var(--accent); font: 700 .66rem ui-monospace, monospace; }
.architecture-item:hover .architecture-number, .architecture-item:focus-visible .architecture-number, .architecture-item.is-active .architecture-number { color: color-mix(in srgb, white 82%, var(--accent)); }
.architecture-center { position: relative; z-index: 1; grid-column: 2; grid-row: 2; align-self: center; justify-self: center; width: min(200px, calc(100% + 2.5rem)); aspect-ratio: 1; padding: 1.1rem; border: 2px solid var(--accent); border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-content: center; gap: .45rem; text-align: center; }
.architecture-center strong { font-family: Georgia, serif; font-size: clamp(.98rem, 1.4vw, 1.22rem); line-height: 1.16; }
.architecture-center small { color: var(--muted); font-size: .64rem; line-height: 1.3; }
.architecture-detail { min-height: 165px; margin-top: 1.2rem; padding: 1.35rem 1.5rem; border-left: 4px solid var(--accent); background: var(--paper-strong); box-shadow: 0 12px 34px rgb(45 25 25 / .07); }
.architecture-detail h3 { margin: 0 0 .55rem; color: var(--accent-dark); font-size: 1.45rem; }
.architecture-detail p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }
.diagram-note { padding: .7rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); font-size: .84rem; }
.progression-diagram ol { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.progression-diagram li { padding: .85rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr 28px 1fr; align-items: center; gap: .6rem; }
.progression-diagram li b { color: var(--accent); font-family: ui-monospace, monospace; }
.progression-diagram li i { color: var(--line-dark); font-style: normal; text-align: center; }
.adult-role { color: var(--muted); font-size: .88rem; }
.double-head { margin-bottom: 1rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: center; color: var(--accent); text-align: center; }
.double-head span { font-size: 2rem; }
.double-rows > div { display: grid; grid-template-columns: 1fr 1.4fr; border-top: 1px solid var(--line); }
.double-rows b, .double-rows span { padding: .85rem; }
.double-rows b { color: var(--accent); }
.double-rows span { border-left: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.cluster { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.cluster > strong { grid-column: 2 / span 2; grid-row: 2 / span 2; padding: 2rem 1rem; border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; text-align: center; }
.cluster span { min-height: 70px; padding: .7rem; border: 1px solid var(--line); display: grid; place-items: center; text-align: center; font-size: .78rem; line-height: 1.3; }
.decision-table-wrap { overflow-x: auto; }
.decision-table { width: 100%; border-collapse: collapse; font-size: .91rem; line-height: 1.5; }
.decision-table th, .decision-table td { padding: 1rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.decision-table th:last-child, .decision-table td:last-child { border-right: 0; }
.decision-table tbody tr:last-child th, .decision-table tbody tr:last-child td { border-bottom: 0; }
.decision-table thead th { background: var(--accent-dark); color: white; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.decision-table tbody th { width: 33%; background: color-mix(in srgb, var(--accent-soft) 42%, var(--paper-strong)); }
.decision-table tbody th b { display: block; margin-bottom: .45rem; color: var(--accent); font: 700 .68rem ui-monospace, monospace; }
.decision-table tbody th span { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.decision-table tbody tr:hover th, .decision-table tbody tr:hover td { background: var(--accent-soft); }
.decision-table td { hyphens: auto; }
.dimension-diagram > div { display: grid; grid-template-columns: 1fr 1fr; }
.dimension-diagram article { min-height: 230px; padding: 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dimension-diagram article:nth-child(2n) { border-right: 0; }
.dimension-diagram article:nth-last-child(-n+2) { border-bottom: 0; }
.dimension-diagram article > b { color: var(--accent); font: 700 .72rem ui-monospace, monospace; }
.dimension-diagram h3 { margin: 1.8rem 0 .7rem; }
.dimension-diagram p { color: var(--muted); font-size: .88rem; }
.transfer-diagram > div { min-height: 400px; display: grid; place-items: center; text-align: center; }
.transfer-diagram strong { max-width: 430px; padding: 1rem 1.5rem; border: 1px solid var(--line-dark); font-size: clamp(1rem, 3vw, 1.55rem); letter-spacing: .05em; }
.transfer-diagram i { color: var(--accent); font-family: Georgia, serif; font-size: 2.7rem; font-style: normal; }
.venn { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: stretch; }
.venn section { padding: 2rem 1.5rem; border: 1px solid var(--line-dark); }
.venn section:first-child { padding-right: 4rem; }
.venn section:last-child { padding-left: 4rem; }
.venn h3 { margin-top: 0; }
.venn p { z-index: 1; margin: 3rem -2rem; padding: 1rem; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; text-align: center; font-size: .82rem; line-height: 1.4; }

.analysis-note { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.matrix-wrap { max-width: calc(100vw - 48px); margin: 2rem 0; overflow-x: auto; border: 1px solid var(--line-dark); }
.comparison-matrix { width: 100%; min-width: 890px; border-collapse: collapse; background: var(--paper-strong); font-size: .78rem; line-height: 1.35; }
.comparison-matrix th, .comparison-matrix td { padding: .8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-matrix tr:last-child th, .comparison-matrix tr:last-child td { border-bottom: 0; }
.comparison-matrix th:last-child, .comparison-matrix td:last-child { border-right: 0; }
.comparison-matrix thead th { background: var(--accent-dark); color: white; font-size: .7rem; }
.comparison-matrix tbody th { min-width: 250px; box-shadow: inset 4px 0 0 var(--accent); font-weight: 500; }
.comparison-matrix tbody th b { display: inline-block; min-width: 38px; color: var(--accent); font-family: ui-monospace, monospace; }
.comparison-matrix tbody tr:hover > * { background: var(--accent-soft); }

.narrow-page, .text-page, .form-page, .error-page { max-width: 900px; min-height: 60vh; margin: 0 auto; padding: 0 24px 7rem; }
.text-page { max-width: var(--reading); padding-top: 5rem; }
.text-page h1 { margin: .2rem 0 2rem; }
.text-page h2 { margin-top: 3rem; font-size: 1.8rem; }
.form-page { max-width: 980px; padding-top: clamp(4rem, 9vw, 8rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.form-page h1 { margin: 0 0 1.5rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.form-panel { padding-top: 1.5rem; }
.form-panel form { display: grid; }
label { margin: 1rem 0 .35rem; font-size: .8rem; font-weight: 750; }
input, select, textarea { width: 100%; padding: .75rem .8rem; border: 1px solid var(--line-dark); border-radius: 0; background: var(--paper-strong); color: var(--ink); }
textarea { resize: vertical; }
.form-panel form .button { margin-top: 1.5rem; }
.form-panel small { margin-top: .3rem; color: var(--muted); }
.form-links { margin-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.selected-node { padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: Georgia, serif; }
.contribution-list, .account-list, .moderation-list { border-top: 1px solid var(--line-dark); }
.contribution-card.public, .moderation-card { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.contribution-card.public h2, .moderation-card h2 { margin: .3rem 0 1rem; font-size: 1.7rem; }
.account-row { padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; }
.node-themed { padding-left: 1rem!important; border-left: 4px solid var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent 58%); }
.account-row h2 { margin: .2rem 0 .5rem; font-size: 1.35rem; }
.status { align-self: start; padding: .35rem .55rem; border: 1px solid var(--line-dark); font-size: .7rem; font-weight: 750; text-align: center; text-transform: uppercase; }
.status.approved { border-color: var(--success); color: var(--success); }.status.pending { border-color: var(--warning); color: var(--warning); }.status.rejected { border-color: var(--accent); color: var(--accent); }
.moderation-actions { display: flex; gap: .7rem; }
.empty-state { padding: 3rem 0; color: var(--muted); font-family: Georgia, serif; font-size: 1.4rem; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: .7rem; }
.search-form input { min-height: 46px; }
.result-count { margin: 1rem 0; font-size: .8rem; }
.search-results { border-top: 1px solid var(--line-dark); }
.search-results > a { padding: 1.4rem 1rem; border-bottom: 1px solid var(--line); border-left: 4px solid var(--accent); display: grid; grid-template-columns: 1fr auto; text-decoration: none; transition: background .18s ease; }
.search-results > a:hover, .search-results > a:focus-visible { background: var(--accent-soft); color: var(--ink); }
.search-results small { color: var(--accent); font-size: .68rem; text-transform: uppercase; }
.search-results h2 { grid-column: 1; margin: .3rem 0 0; font-size: 1.45rem; }
.search-results span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-size: 1.4rem; }
.error-page { padding-top: 8rem; text-align: center; }
.error-code { margin: 0; color: var(--accent); font: 700 .9rem ui-monospace, monospace; }
.error-page h1 { max-width: 700px; margin: 1rem auto 2rem; font-size: clamp(2.2rem, 5vw, 4.5rem); }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 3rem 24px 4rem; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr auto; gap: 2rem; color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.5rem; }
.site-footer nav a { text-decoration: none; }
.versions { grid-column: 1 / -1; display: flex; gap: 1rem; font-family: ui-monospace, monospace; }

@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { max-width: 680px; }
  .reader-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; }
  .domain-index article { grid-template-columns: 55px 1fr 1fr; }
  .domain-index article > a { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  .architecture-stage { min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: .65rem; }
  .architecture-connections { display: none; }
  .architecture-center { position: relative; width: auto; aspect-ratio: auto; padding: 1.2rem; border-radius: 0; grid-column: 1 / -1; grid-row: auto; justify-self: stretch; order: -1; }
  .architecture-item, .architecture-item.i1, .architecture-item.i2, .architecture-item.i3, .architecture-item.i4, .architecture-item.i5, .architecture-item.i6 { position: relative; width: auto; min-height: 92px; grid-column: auto; grid-row: auto; transform: none; }
  .architecture-item:hover, .architecture-item:focus-visible, .architecture-item.is-active { transform: none; }
  .architecture-detail { min-height: 0; }
}

@media (min-width: 761px) {
  .source p { text-align: justify; text-justify: inter-word; hyphens: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { min-height: 64px; padding: 0 16px; gap: 1rem; }
  .header-tools > a, .header-tools > form { display: none; }
  .brand small { display: none; }
  .home-page, .domains-page, .reader-layout, .narrow-page, .text-page, .form-page, .error-page { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: auto; padding: 4rem 0; gap: 2rem; }
  .hero h1 { font-size: 3.2rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { margin-top: .5rem; }
  .entry-points { grid-template-columns: 1fr; }
  .entry-points a { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .documents-band { grid-template-columns: 1fr; align-items: start; }
  .document-downloads { grid-template-columns: 1fr; }
  .document-card, .document-card:last-child { min-height: 120px; border-right: 0; }
  .participation-band { grid-template-columns: 1fr; align-items: start; }
  .reader-layout { display: block; }
  .page-toc { position: static; max-height: none; padding-top: 2rem; }
  .page-toc h1 { display: none; }
  .page-toc nav { display: flex; padding-bottom: .7rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .page-toc nav a { flex: 0 0 180px; padding: .6rem; border-right: 1px solid var(--line); border-bottom: 0; }
  .page-intro, .domain-head { padding-top: 3.5rem; }
  .content-section, .domain-section { padding: 3rem 0; }
  .content-table-wrap:not(.content-table-wrap--worksheet) { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .content-table:not(.content-table--worksheet), .content-table:not(.content-table--worksheet) tbody, .content-table:not(.content-table--worksheet) tr, .content-table:not(.content-table--worksheet) th, .content-table:not(.content-table--worksheet) td { display: block; width: 100%; }
  .content-table:not(.content-table--worksheet) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .content-table:not(.content-table--worksheet) tr { margin-bottom: 1rem; border: 1px solid var(--line-dark); background: var(--paper-strong); box-shadow: 0 8px 24px rgb(45 25 25 / .04); }
  .content-table:not(.content-table--worksheet) tbody tr:last-child { margin-bottom: 0; }
  .content-table:not(.content-table--worksheet) tbody th, .content-table:not(.content-table--worksheet) tbody td { min-height: 0; padding: .72rem .85rem; border-right: 0; border-bottom: 1px solid var(--line)!important; display: grid; grid-template-columns: minmax(112px, .7fr) minmax(0, 1.3fr); gap: .75rem; background: var(--paper-strong); font: inherit; white-space: normal; }
  .content-table:not(.content-table--worksheet) tbody th { background: var(--accent); color: white; font-weight: 700; }
  .content-table:not(.content-table--worksheet) tbody tr > *:last-child { border-bottom: 0!important; }
  .content-table:not(.content-table--worksheet) tbody th::before, .content-table:not(.content-table--worksheet) tbody td::before { content: attr(data-label); color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .055em; line-height: 1.35; text-transform: uppercase; }
  .content-table:not(.content-table--worksheet) tbody th::before { color: color-mix(in srgb, white 82%, var(--accent)); }
  .content-table-wrap--worksheet { max-width: calc(100vw - 36px); }
  .experience-bank { grid-template-columns: 1fr; }
  .experience-group:nth-child(n) { background: color-mix(in srgb, var(--accent-soft) 34%, var(--paper-strong)); }
  .domain-index article { grid-template-columns: 48px 1fr; gap: .8rem; }
  .domain-index article > p, .domain-index article > a { grid-column: 2; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next a:last-child { text-align: left; }
  .contribution-call { grid-template-columns: 1fr; }
  .cluster { grid-template-columns: 1fr 1fr; }
  .cluster > strong { grid-column: 1 / -1; grid-row: auto; order: -1; }
  .decision-table-wrap { overflow: visible; }
  .decision-table, .decision-table tbody, .decision-table tr, .decision-table th, .decision-table td { display: block; width: 100%; }
  .decision-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .decision-table tr { margin-bottom: .8rem; border: 1px solid var(--line-dark); background: var(--paper-strong); }
  .decision-table tbody tr:last-child th, .decision-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  .decision-table tbody th { padding: .9rem 1rem; border-right: 0; background: var(--accent-dark); color: white; }
  .decision-table tbody th b { display: inline-block; min-width: 2.2rem; margin: 0; color: color-mix(in srgb, white 82%, var(--accent)); }
  .decision-table tbody th span { font-family: inherit; font-size: .95rem; font-weight: 700; }
  .decision-table td { padding: .9rem 1rem; border-right: 0; border-bottom: 0!important; }
  .decision-table td::before { content: attr(data-label); display: block; margin-bottom: .35rem; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .dimension-diagram > div { grid-template-columns: 1fr; }
  .dimension-diagram article { min-height: 0; border-right: 0; }
  .dimension-diagram article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dimension-diagram article:last-child { border-bottom: 0; }
  .progression-diagram li { grid-template-columns: 42px 1fr; }
  .progression-diagram li i { display: none; }
  .progression-diagram .adult-role { grid-column: 2; padding-top: .25rem; }
  .double-rows > div { grid-template-columns: 1fr; }
  .double-rows span { border-left: 0; border-top: 1px dashed var(--line); }
  .venn { grid-template-columns: 1fr; }
  .venn section:first-child, .venn section:last-child { padding: 1.4rem; }
  .venn p { margin: -1rem 2rem; padding: 1rem; }
  .matrix-wrap { max-width: calc(100vw - 36px); border: 0; overflow: visible; }
  .comparison-matrix { min-width: 0; background: transparent; }
  .comparison-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .comparison-matrix, .comparison-matrix tbody, .comparison-matrix tr, .comparison-matrix th, .comparison-matrix td { display: block; width: 100%; }
  .comparison-matrix tr { margin-bottom: 1rem; border: 1px solid var(--line-dark); background: var(--paper-strong); }
  .comparison-matrix tbody th { min-width: 0; padding: 1rem; border-right: 0; background: var(--accent-dark); color: white; }
  .comparison-matrix tbody th b { color: color-mix(in srgb, white 82%, var(--accent)); }
  .comparison-matrix tbody tr:hover > th { background: var(--accent-dark); }
  .comparison-matrix td { padding: .7rem 1rem; border-right: 0; display: grid; grid-template-columns: minmax(120px, .8fr) 1fr; gap: .7rem; }
  .comparison-matrix td::before { content: attr(data-label); color: var(--muted); font-size: .7rem; font-weight: 700; }
  .form-page { display: block; padding-top: 4rem; }
  .account-row { grid-template-columns: 1fr; }
  .status { justify-self: start; }
  .site-footer { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
  .site-footer nav { grid-template-columns: 1fr; }
  .versions { grid-column: 1; }
}

@media (max-width: 480px) {
  .architecture-stage { grid-template-columns: 1fr; }
  .architecture-center { grid-column: 1; }
  .content-table:not(.content-table--worksheet) tbody th, .content-table:not(.content-table--worksheet) tbody td { grid-template-columns: 1fr; gap: .25rem; }
  .experience-group { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms!important; }
}
@media print {
  .site-header, .site-footer, .page-toc, .section-contributions, .hero-actions { display: none!important; }
  body { background: white; color: black; font-size: 11pt; }
  .reader-layout, .reader-content { display: block; max-width: none; padding: 0; }
  .content-section { break-inside: avoid; }
  .content-table-wrap { overflow: visible; box-shadow: none; }
  .content-table { font-size: 8pt; }
  .content-table tr, .experience-group { break-inside: avoid; }
  .experience-bank { box-shadow: none; }
}
