/* M38 public layer: editorial scientific documentation, shared across all public routes. */
:root {
  --m38-forest: #173f32;
  --m38-leaf: #286c53;
  --m38-sage: #6d927e;
  --m38-ink: #20312a;
  --m38-muted: #607168;
  --m38-paper: #fbfcf9;
  --m38-wash: #edf4ee;
  --m38-line: #d9e5db;
  --m38-amber: #80551d;
  --m38-blue: #486f83;
  --m38-max: 1240px;
  --m38-radius: 6px;
}
body[data-m38="true"] { background: var(--m38-paper); color: var(--m38-ink); font-size: 16px; line-height: 1.7; }
body[data-m38="true"] .platform-header { background: var(--m38-paper); border-color: var(--m38-line); }
body[data-m38="true"] .header-inner, body[data-m38="true"] main, body[data-m38="true"] .site-footer { max-width: var(--m38-max); }
body[data-m38="true"] .header-inner { padding: 11px 28px; }
body[data-m38="true"] .brand { color: var(--m38-forest); }
body[data-m38="true"] .platform-header nav a { color: var(--m38-muted); font-size: 15px; }
body[data-m38="true"] .platform-header nav a:hover, body[data-m38="true"] .platform-header nav a[aria-current] { color: var(--m38-forest); background: var(--m38-wash); }
body[data-m38="true"] .platform-header nav a[aria-current] { box-shadow: inset 0 -2px var(--m38-leaf); }
body[data-m38="true"] main { padding-inline: 28px; }
body[data-m38="true"] h1, body[data-m38="true"] h2, body[data-m38="true"] h3 { color: var(--m38-forest); letter-spacing: -.015em; }
body[data-m38="true"] h1 { font-size: clamp(29px, 2.15vw, 32px); line-height: 1.24; }
body[data-m38="true"] h2 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.3; }
body[data-m38="true"] h3 { font-size: 19px; }
body[data-m38="true"] .m38-kicker { margin: 0 0 10px; color: var(--m38-leaf); font-size: 13px; font-weight: 650; letter-spacing: .02em; text-transform: capitalize; }
body[data-m38="true"] .m38-hero { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(360px,.96fr); gap: 48px; align-items: start; padding: 62px 0 44px; border-bottom: 0; }
body[data-m38="true"] .m38-hero h1 { margin: 0 0 16px; max-width: 730px; }
body[data-m38="true"] .m38-lead { max-width: 700px; color: var(--m38-muted); font-size: 17px; line-height: 1.72; }
body[data-m38="true"] .m38-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
body[data-m38="true"] .m38-button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--m38-line); border-radius: 5px; color: var(--m38-forest); text-decoration: none; font-size: 15px; font-weight: 650; transition: background-color .14s ease, border-color .14s ease, color .14s ease; }
body[data-m38="true"] .m38-button:hover { background: var(--m38-wash); }
body[data-m38="true"] .m38-button.primary { color: #fff; background: var(--m38-forest); border-color: var(--m38-forest); }
body[data-m38="true"] .m38-button.primary:hover { background: var(--m38-leaf); border-color: var(--m38-leaf); }
body[data-m38="true"] .m38-hero-figure { padding: 16px; background: var(--m38-wash); border: 1px solid var(--m38-line); border-radius: var(--m38-radius); }
body[data-m38="true"] .m38-hero-figure img { display: block; width: 100%; height: auto; }
body[data-m38="true"] .m38-method-map { display: grid; gap: 16px; }
body[data-m38="true"] .m38-method-track { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: method-step; }
body[data-m38="true"] .m38-method-step { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--m38-line); }
body[data-m38="true"] .m38-method-step:first-child { padding-top: 2px; }
body[data-m38="true"] .m38-method-step:last-child { border-bottom: 0; padding-bottom: 2px; }
body[data-m38="true"] .m38-method-index { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--m38-leaf); border-radius: 50%; color: var(--m38-leaf); font: 700 11px/1 var(--font-mono); }
body[data-m38="true"] .m38-method-step strong { display: block; margin: 0 0 4px; color: var(--m38-forest); font-size: 14px; }
body[data-m38="true"] .m38-method-step p { margin: 0; color: var(--m38-muted); font-size: 14px; line-height: 1.55; }
body[data-m38="true"] .m38-axis-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 3px !important; font-weight: 700; }
body[data-m38="true"] .m38-axis-line span { padding-left: 8px; border-left: 2px solid currentColor; }
body[data-m38="true"] .m38-axis-line .axis-e { color: #47765e; }
body[data-m38="true"] .m38-axis-line .axis-s { color: #536e7c; }
body[data-m38="true"] .m38-axis-line .axis-b { color: #9a6b2d; }
body[data-m38="true"] .m38-method-branch { display: grid; grid-template-columns: auto auto; gap: 2px 10px; padding: 13px 14px; background: rgba(255,255,255,.72); border-left: 3px solid var(--m38-sage); }
body[data-m38="true"] .m38-method-branch strong { color: var(--m38-forest); font-size: 14px; }
body[data-m38="true"] .m38-method-branch span { color: var(--m38-leaf); font: 650 13px/1.5 var(--font-sans); }
body[data-m38="true"] .m38-method-branch p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--m38-muted); font-size: 13px; line-height: 1.55; }
body[data-m38="true"] .m38-map-caveat { margin: 0; padding: 8px 0 0; background: transparent; border-left: 0; color: #66553d; font-size: 13px; line-height: 1.6; }
body[data-m38="true"] .m38-caption, body[data-m38="true"] figcaption { color: var(--m38-muted); font-size: 13px; }
body[data-m38="true"] .m38-caption { margin-top: 12px; }
/* M38 visual finish: a scientific composition with one focal convergence point. */
body[data-m38="true"] .m38-science-map { position: relative; display: grid; gap: 18px; padding: 8px 4px 2px; }
body[data-m38="true"] .m38-map-label { display: block; color: var(--m38-muted); font: 650 12px/1.35 var(--font-sans); letter-spacing: .02em; }
body[data-m38="true"] .m38-map-inputs { display: grid; gap: 9px; }
body[data-m38="true"] .m38-input-glyphs { display: flex; flex-wrap: wrap; gap: 8px; }
body[data-m38="true"] .m38-input-glyphs span { display: inline-flex; align-items: center; gap: 6px; color: var(--m38-forest); font: 600 13px/1.3 var(--font-sans); }
body[data-m38="true"] .m38-input-glyphs i { display: inline-block; width: 17px; height: 17px; border: 1px solid var(--m38-leaf); background: rgba(255,255,255,.65); }
body[data-m38="true"] .m38-input-glyphs .glyph-leaf { border-radius: 10px 2px 10px 2px; transform: rotate(-35deg); }
body[data-m38="true"] .m38-input-glyphs .glyph-ring { border-radius: 50%; box-shadow: inset 0 0 0 4px var(--m38-wash); }
body[data-m38="true"] .m38-input-glyphs .glyph-donor { border-radius: 4px; transform: rotate(45deg) scale(.72); }
body[data-m38="true"] .m38-map-core { display: grid; grid-template-columns: minmax(104px,.7fr) minmax(150px,1fr) minmax(104px,.7fr); align-items: center; gap: 10px; }
body[data-m38="true"] .m38-map-node { display: grid; gap: 5px; padding: 14px 11px; border: 1px solid var(--m38-leaf); border-radius: 5px; background: rgba(255,255,255,.78); text-align: center; }
body[data-m38="true"] .m38-map-node > span { color: var(--m38-leaf); font: 650 11px/1.25 var(--font-sans); letter-spacing: .02em; }
body[data-m38="true"] .m38-map-node strong { color: var(--m38-forest); font-size: 16px; line-height: 1.1; }
body[data-m38="true"] .m38-map-node small { color: var(--m38-muted); font-size: 12px; line-height: 1.4; }
body[data-m38="true"] .m38-map-node.candidate-space { border-radius: 5px; }
body[data-m38="true"] .m38-map-node.center-node { border-radius: 5px; border-color: var(--m38-forest); }
body[data-m38="true"] .m38-map-lanes { display: grid; gap: 7px; }
body[data-m38="true"] .m38-map-lane { display: grid; grid-template-columns: 1fr; gap: 3px; align-items: center; padding: 9px 10px; border-left: 2px solid var(--m38-sage); background: rgba(255,255,255,.62); }
body[data-m38="true"] .m38-map-lane.structure { border-color: var(--m38-amber); }
body[data-m38="true"] .m38-map-lane.biology { border-color: var(--m38-blue); }
body[data-m38="true"] .m38-map-lane .lane-mark { display: none; }
body[data-m38="true"] .m38-map-lane strong { display: block; color: var(--m38-forest); font-size: 14px; }
body[data-m38="true"] .m38-map-lane span { display: block; color: var(--m38-muted); font-size: 12px; line-height: 1.4; }
body[data-m38="true"] .m38-map-output { display: grid; gap: 8px; }
body[data-m38="true"] .m38-map-output > div { display: flex; flex-wrap: wrap; gap: 7px; }
body[data-m38="true"] .m38-map-output b { padding: 0 0 2px; color: var(--m38-forest); background: transparent; border-bottom: 1px solid var(--m38-leaf); font: 600 13px/1.4 var(--font-sans); }
body[data-m38="true"] .m38-map-branch { display: grid; grid-template-columns: auto 1fr; gap: 4px 9px; padding: 10px 12px; border-left: 3px solid var(--m38-amber); background: rgba(255,255,255,.56); }
body[data-m38="true"] .m38-map-branch b { color: var(--m38-forest); font: 650 12px/1.35 var(--font-sans); }
body[data-m38="true"] .m38-map-branch span { color: var(--m38-amber); font: 600 12px/1.35 var(--font-sans); }
body[data-m38="true"] .m38-map-branch p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--m38-muted); font-size: 12px; line-height: 1.45; }
body[data-m38="true"] .m38-case-illustration { display: grid; grid-template-columns: 1fr 1.08fr 1.2fr 1fr 1.08fr; align-items: stretch; border-top: 1px solid var(--m38-forest); border-bottom: 1px solid var(--m38-line); }
body[data-m38="true"] .case-stage { min-height: 178px; padding: 20px 17px; border-right: 1px solid var(--m38-line); }
body[data-m38="true"] .case-stage:last-child { border-right: 0; background: var(--m38-wash); }
body[data-m38="true"] .case-stage > span { display: block; margin-bottom: 24px; color: var(--m38-leaf); font: 700 10px/1 var(--font-mono); letter-spacing: .06em; }
body[data-m38="true"] .case-stage strong { display: block; color: var(--m38-forest); font-size: 15px; line-height: 1.25; }
body[data-m38="true"] .case-stage p { margin: 12px 0 0; color: var(--m38-muted); font-size: 12px; line-height: 1.55; }
body[data-m38="true"] .case-stage em { color: var(--m38-sage); font-style: normal; font-size: 11px; }
body[data-m38="true"] .case-dots { display: flex; gap: 6px; margin: 17px 0 4px; }
body[data-m38="true"] .case-dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--m38-sage); opacity: .75; }
body[data-m38="true"] .case-dots i:nth-child(2n) { opacity: .45; }
body[data-m38="true"] .case-axis { display: grid; gap: 5px; margin-top: 14px; }
body[data-m38="true"] .case-axis b { padding: 5px 7px; color: var(--m38-forest); background: rgba(237,244,238,.75); font: 600 10px/1.1 var(--font-mono); }
body[data-m38="true"] .case-axis b:nth-child(2) { border-left: 2px solid var(--m38-amber); }
body[data-m38="true"] .case-axis b:nth-child(3) { border-left: 2px solid var(--m38-blue); }
body[data-m38="true"] .m38-section { padding: 56px 0; border-bottom: 0; scroll-margin-top: 112px; }
body[data-m38="true"] .m38-section-head { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 32px; align-items: start; margin-bottom: 26px; }
body[data-m38="true"] .m38-section-head h2 { margin: 0; text-wrap: balance; }
body[data-m38="true"] .m38-section-head > div:last-child { color: var(--m38-muted); font-size: 16px; }
body[data-m38="true"] .m38-section-head p { margin: 0 0 14px; }
body[data-m38="true"] .m38-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 24px; }
body[data-m38="true"] .m38-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
body[data-m38="true"] .m38-panel { padding: 16px 0 10px; background: transparent; border: 0; border-top: 1px solid var(--m38-line); border-radius: 0; }
body[data-m38="true"] .m38-panel h3 { margin: 0 0 8px; }
body[data-m38="true"] .m38-panel p { margin: 0; color: var(--m38-muted); font-size: 15px; line-height: 1.65; }
body[data-m38="true"] .m38-panel .m38-meta { display: block; margin-bottom: 10px; color: var(--m38-muted); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
body[data-m38="true"] .m38-flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--m38-forest); border-bottom: 1px solid var(--m38-line); }
body[data-m38="true"] .m38-flow-step { min-height: 156px; padding: 21px 20px 22px 0; border-right: 1px solid var(--m38-line); }
body[data-m38="true"] .m38-flow-step + .m38-flow-step { padding-left: 20px; }
body[data-m38="true"] .m38-flow-step:last-child { border-right: 0; }
body[data-m38="true"] .m38-flow-step strong { display: block; margin-bottom: 9px; color: var(--m38-forest); }
body[data-m38="true"] .m38-flow-step p { margin: 0; color: var(--m38-muted); font-size: 13px; }
body[data-m38="true"] .m38-flow-step span { display: block; margin-bottom: 14px; color: var(--m38-muted); font-family: var(--font-sans); font-size: 13px; }
body[data-m38="true"] .m38-architecture { display: grid; grid-template-columns: 1fr 1.25fr 1.6fr; gap: 1px; background: var(--m38-line); border: 1px solid var(--m38-line); }
body[data-m38="true"] .m38-architecture > div { padding: 24px; background: #fff; }
body[data-m38="true"] .m38-architecture strong { display: block; margin: 8px 0; color: var(--m38-forest); }
body[data-m38="true"] .m38-architecture p { margin: 0; color: var(--m38-muted); font-size: 13px; }
body[data-m38="true"] .m38-stage-list { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--m38-forest); }
body[data-m38="true"] .m38-stage { padding: 19px 16px 20px 0; border-right: 1px solid var(--m38-line); }
body[data-m38="true"] .m38-stage + .m38-stage { padding-left: 16px; }
body[data-m38="true"] .m38-stage:last-child { border-right: 0; }
body[data-m38="true"] .m38-stage b { display: block; color: var(--m38-leaf); font-size: 12px; }
body[data-m38="true"] .m38-stage strong { display: block; margin: 14px 0 8px; color: var(--m38-forest); }
body[data-m38="true"] .m38-stage p { margin: 0; color: var(--m38-muted); font-size: 13px; }
body[data-m38="true"] .m38-table { width: 100%; border-collapse: collapse; font-size: 14px; }
body[data-m38="true"] .m38-table th, body[data-m38="true"] .m38-table td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--m38-line); vertical-align: top; }
body[data-m38="true"] .m38-table th { color: var(--m38-forest); font-size: 13px; letter-spacing: 0; }
body[data-m38="true"] .m38-table td { color: var(--m38-muted); }
body[data-m38="true"] .m38-table td:first-child { color: var(--m38-forest); font-weight: 700; }
body[data-m38="true"] .m38-note { padding: 14px 0 14px 14px; background: transparent; border-left: 2px solid var(--m38-leaf); }
body[data-m38="true"] .m38-note p { margin: 6px 0 0; color: var(--m38-muted); font-size: 14px; }
body[data-m38="true"] .m38-boundary { padding: 27px 30px; background: #f8f1e7; border-left: 3px solid var(--m38-amber); }
body[data-m38="true"] .m38-boundary p { margin: 8px 0 0; color: #66553d; font-size: 14px; }
body[data-m38="true"] .m38-index { position: sticky; top: 64px; z-index: 5; display: flex; gap: 4px; margin: 0 -28px; padding: 11px 28px; overflow-x: auto; background: var(--m38-paper); border-bottom: 1px solid var(--m38-line); }
body[data-m38="true"] .m38-index a { flex: 0 0 auto; padding: 6px 10px; color: var(--m38-muted); font-size: 12px; text-decoration: none; border-radius: 4px; }
body[data-m38="true"] .m38-index a:hover { color: var(--m38-forest); background: var(--m38-wash); }
body[data-m38="true"] .m38-list { margin: 0; padding-left: 20px; color: var(--m38-muted); }
body[data-m38="true"] .m38-list li { margin: 9px 0; }
body[data-m38="true"] .m38-guide-notice { margin: 0 0 22px; padding: 16px 18px; background: #fff8ed; border-left: 3px solid var(--m38-amber); color: #66553d; }
body[data-m38="true"] .m38-guide-notice strong { display: block; margin-bottom: 5px; font-size: 14px; }
body[data-m38="true"] .m38-guide-notice p { margin: 0; font-size: 14px; }
body[data-m38="true"] .m38-doc-index { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px; padding: 0 0 12px; border-bottom: 1px solid var(--m38-line); }
body[data-m38="true"] .m38-doc-index a { color: var(--m38-leaf); font-size: 14px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body[data-m38="true"] .m38-guide-step { padding: 24px 0 26px; border-top: 1px solid var(--m38-line); scroll-margin-top: 90px; }
body[data-m38="true"] .m38-guide-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 14px; }
body[data-m38="true"] .m38-guide-heading > span { color: var(--m38-leaf); font: 700 13px/1 var(--font-mono); }
body[data-m38="true"] .m38-guide-heading h3 { margin: 0; }
body[data-m38="true"] .m38-guide-step dl { display: grid; gap: 8px; margin: 0; }
body[data-m38="true"] .m38-guide-step dl > div { display: grid; grid-template-columns: 102px minmax(0,1fr); gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(217,229,219,.7); }
body[data-m38="true"] .m38-guide-step dl > div:last-child { border-bottom: 0; }
body[data-m38="true"] .m38-guide-step dt { color: var(--m38-forest); font-weight: 700; font-size: 14px; }
body[data-m38="true"] .m38-guide-step dd { margin: 0; color: var(--m38-muted); font-size: 14px; }
body[data-m38="true"] main > section[id] { scroll-margin-top: 112px; }
body[data-m38="true"] .m38-hero + .m38-section { border-top: 0; }
body[data-m38="true"] .m38-footer-note { color: var(--m38-muted); font-size: 13px; }
body[data-m38="true"] .site-footer { margin-top: 0; padding-inline: 28px; border-top: 0; }
body[data-m38="true"] .page-hero { max-width: 900px; padding: 58px 0 38px; }
body[data-m38="true"] .page-hero h1 { margin-top: 12px; text-wrap: balance; }
body[data-m38="true"] .page-hero .eyebrow { color: var(--m38-leaf); font-size: 13px; letter-spacing: .02em; text-transform: capitalize; }
body[data-m38="true"] .lead { color: var(--m38-muted); line-height: 1.85; }
body[data-m38="true"] main > section:not(.m38-section):not(.m38-hero):not(.m96-home-hero):not(.m34-home-spine):not(.m96-evidence-grid-section) { padding: 48px 0; border-bottom: 0; }
body[data-m38="true"] main > section:not(.m38-section):not(.m38-hero) h2 { margin-top: 0; }
body[data-m38="true"] .cards { gap: 18px; }
body[data-m38="true"] .card { border: 0; border-top: 1px solid var(--m38-line); border-radius: 0; background: transparent; box-shadow: none; }
body[data-m38="true"] .card p, body[data-m38="true"] .note { color: var(--m38-muted); }
body[data-m38="true"] .resource-list { gap: 18px; }
body[data-m38="true"] .resource-list li { border: 0; border-top: 1px solid var(--m38-line); border-radius: 0; background: transparent; }
body[data-m38="true"] .callout { background: var(--m38-wash); border-color: var(--m38-line); border-radius: 5px; }
body[data-m38="true"] details { border-color: var(--m38-line); border-radius: var(--m38-radius); }
body[data-m38="true"] .steps span { border-left-color: var(--m38-leaf); }
body[data-m38="true"] table th { color: var(--m38-leaf); }
body[data-m38="true"] :where(a,button,summary):focus-visible { outline: 3px solid #286C53; outline-offset: 3px; }

/* M90R2 home hierarchy: restore only the visual grouping that carries
 * scientific meaning. Workspace and documentation surfaces remain flat and
 * data-first; this is scoped to the public homepage. */
body[data-page="home"] .m34-spine-flow { border-top: 0; }
body[data-page="home"] .m34-home-case { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 38px 70px; padding: 68px 0 74px; border-bottom: 1px solid var(--m34-line); }
body[data-page="home"] .m34-home-case .m34-section-heading { align-items: start; }
body[data-page="home"] .m34-case-preview { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 30px; align-items: start; padding: 26px 28px; background: var(--m34-pale); border: 1px solid var(--m34-line); border-radius: 8px; }
body[data-page="home"] .m34-case-copy { padding-right: 26px; border-right: 1px solid rgba(23, 63, 50, .16); }
body[data-page="home"] .m34-case-status { display: inline-block; padding: 4px 8px; border-left: 3px solid #c49a59; background: rgba(255, 255, 255, .72); color: #66553d; font-size: 12px; line-height: 1.4; }
body[data-page="home"] .m34-case-copy h3 { margin: 18px 0 8px; color: var(--m34-forest); font-size: 21px; line-height: 1.35; }
body[data-page="home"] .m34-case-copy p { margin: 0 0 18px; color: var(--m34-muted); font-size: 15px; line-height: 1.7; }
body[data-page="home"] .m34-case-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--m34-forest); }
body[data-page="home"] .m34-case-rail li { min-width: 0; padding: 15px 13px 4px 0; border-right: 1px solid var(--m34-line); }
body[data-page="home"] .m34-case-rail li + li { padding-left: 13px; }
body[data-page="home"] .m34-case-rail li:last-child { padding-right: 0; border-right: 0; }
body[data-page="home"] .m34-case-rail li > span { display: block; margin-bottom: 16px; color: var(--m34-sage); font: 700 12px/1 var(--font-mono); }
body[data-page="home"] .m34-case-rail strong { display: block; color: var(--m34-forest); font-size: 14px; line-height: 1.35; }
body[data-page="home"] .m34-case-rail small { display: block; margin-top: 8px; color: var(--m34-muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) {
  body[data-page="home"] .m34-home-case { grid-template-columns: 1fr; gap: 28px; }
  body[data-page="home"] .m34-case-preview { grid-template-columns: 1fr; }
  body[data-page="home"] .m34-case-copy { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid rgba(23, 63, 50, .16); }
}
@media (max-width: 767px) {
  body[data-page="home"] .m34-home-case { padding: 54px 0 60px; }
  body[data-page="home"] .m34-case-preview { padding: 20px; }
  body[data-page="home"] .m34-case-rail { grid-template-columns: 1fr; }
  body[data-page="home"] .m34-case-rail li,
  body[data-page="home"] .m34-case-rail li + li { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--m34-line); }
  body[data-page="home"] .m34-case-rail li:last-child { border-bottom: 0; }
  body[data-page="home"] .m34-case-rail li > span { display: inline-block; margin: 0 10px 0 0; }
  body[data-page="home"] .m34-case-rail strong { display: inline; }
  body[data-page="home"] .m34-case-rail small { margin-left: 30px; }
}

@media (max-width: 900px) { body[data-m38="true"] .m38-hero, body[data-m38="true"] .m38-section-head { grid-template-columns: 1fr; gap: 30px; } body[data-m38="true"] .m38-grid { grid-template-columns: 1fr 1fr; } body[data-m38="true"] .m38-flow { grid-template-columns: 1fr 1fr; } body[data-m38="true"] .m38-flow-step:nth-child(2) { border-right: 0; } body[data-m38="true"] .m38-architecture { grid-template-columns: 1fr; } body[data-m38="true"] .m38-stage-list { grid-template-columns: 1fr 1fr; } body[data-m38="true"] .m38-stage { border-bottom: 1px solid var(--m38-line); } }
@media (max-width: 767px) { body[data-m38="true"] .header-inner { padding-inline: 18px; } body[data-m38="true"] main { padding-inline: 18px; } body[data-m38="true"] .page-hero { padding: 45px 0 32px; } body[data-m38="true"] .m38-hero { padding: 47px 0 45px; } body[data-m38="true"] .m38-section { padding: 52px 0; } body[data-m38="true"] .m38-grid, body[data-m38="true"] .m38-grid.two, body[data-m38="true"] .m38-flow, body[data-m38="true"] .m38-stage-list { grid-template-columns: 1fr; } body[data-m38="true"] .m38-flow-step, body[data-m38="true"] .m38-flow-step + .m38-flow-step, body[data-m38="true"] .m38-stage, body[data-m38="true"] .m38-stage + .m38-stage { padding: 18px 0; border-right: 0; } body[data-m38="true"] .m38-index { top: 60px; margin-inline: -18px; padding-inline: 18px; } body[data-m38="true"] .m38-table { min-width: 650px; } body[data-m38="true"] .m38-table-wrap { overflow-x: auto; } }
@media (max-width: 767px) { body[data-m38="true"] .m38-method-step { grid-template-columns: 28px minmax(0,1fr); gap: 10px; } body[data-m38="true"] .m38-method-branch { grid-template-columns: 1fr; gap: 4px; } body[data-m38="true"] .m38-method-branch p { grid-column: 1; } body[data-m38="true"] .m38-guide-step dl > div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 767px) { body[data-m38="true"] .m38-map-core { grid-template-columns: 1fr; gap: 9px; } body[data-m38="true"] .m38-map-node.candidate-space, body[data-m38="true"] .m38-map-node.center-node { border-radius: 8px; } body[data-m38="true"] .m38-map-lanes { grid-template-columns: 1fr; } body[data-m38="true"] .m38-case-illustration { grid-template-columns: 1fr; } body[data-m38="true"] .case-stage { min-height: 0; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--m38-line); } body[data-m38="true"] .case-stage > span { margin-bottom: 10px; } body[data-m38="true"] .case-stage:last-child { border-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { body[data-m38="true"] * { scroll-behavior: auto !important; transition: none !important; } }

/* M96 homepage: three-part research narrative, with imagery sourced from the
   replaceable media registry and no impact on workspace or other public pages. */
body[data-page="home"] .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body[data-page="home"] .header-inner { width: min(86%, 1500px); max-width: 1500px; padding-inline: 0; gap: 20px; }
body[data-page="home"] { --m34-ink: var(--text-primary); --m34-muted: var(--text-on-soft); --m34-sage: var(--text-on-soft); --m34-line: var(--border); --m34-max: 1500px; --m34-radius: var(--radius); background: var(--surface-warm); }
body[data-page="home"] .brand small { font-size: var(--text-meta); }
body[data-page="home"] .m34-kicker { font-size: var(--text-meta); letter-spacing: .08em; }
body[data-page="home"] .platform-header nav { gap: 2px; flex: 0 1 auto; }
body[data-page="home"] .platform-header nav a { padding: 7px 8px; white-space: nowrap; }
body[data-page="home"] .home-nav-search { display: flex; align-items: center; width: clamp(220px, 18vw, 290px); min-width: 0; margin: 0 4px 0 8px; border: 1px solid var(--m34-line); border-radius: 6px; background: #fff; }
body[data-page="home"] .home-nav-search input { width: 100%; min-width: 0; height: 36px; padding: 7px 10px; border: 0; outline: 0; background: transparent; color: var(--m34-ink); font: inherit; font-size: var(--text-meta); }
body[data-page="home"] .home-nav-search input::placeholder { color: #637169; opacity: 1; }
body[data-page="home"] .home-nav-search:focus-within { outline: 3px solid rgba(40,108,83,.22); outline-offset: 2px; border-color: var(--m34-green); }
body[data-page="home"] .home-nav-search button { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 8px; border: 0; background: transparent; color: var(--m34-forest); cursor: pointer; }
body[data-page="home"] .home-nav-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body[data-page="home"] .platform-header nav a.nav-login { margin-left: 2px; padding: 8px 12px !important; border: 1px solid var(--m34-forest); background: var(--m34-forest); color: #fff; font-size: 13px; font-weight: 700; }
body[data-page="home"] .platform-header nav a.nav-login:hover { background: var(--m34-green); color: #fff; }
body[data-page="home"] { background: #fbfcf8; }
body[data-page="home"] .platform-header { background: rgba(252,252,248,.94); backdrop-filter: blur(10px); }
body[data-page="home"] main#content { width: min(86%, 1500px); max-width: 1500px; margin-inline: auto; padding-inline: 0; }
body[data-page="home"] .m96-home-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1.28fr) minmax(300px,.72fr); gap: clamp(18px,1.8vw,28px); align-items: center; min-height: clamp(350px,20.3vw,390px); padding: 18px 0 14px; border-bottom: 0; background: radial-gradient(ellipse 38% 112% at 57% 48%,rgba(205,232,214,.68) 0%,rgba(226,241,227,.36) 50%,rgba(252,252,248,0) 82%), linear-gradient(180deg,#fcfcf8 0%,#f1f7f2 66%,#fcfcf8 100%); }
body[data-page="home"] .m96-home-hero::before { position: absolute; z-index: -1; top: -17%; bottom: -22%; left: 29%; width: 56%; content: ""; background: url("./science/homepage-botanical-atmosphere.svg") center / contain no-repeat; opacity: .24; filter: blur(.35px); mask-image: linear-gradient(90deg,transparent 0%,#000 12%,#000 88%,transparent 100%); pointer-events: none; }
body[data-page="home"] .m96-home-hero > * { position: relative; z-index: 1; }
body[data-page="home"] .m96-home-hero .m34-hero-copy h1 { max-width: 640px; margin: 0 0 14px; color: var(--m34-forest); font-family: Georgia,"Noto Serif SC","Songti SC","SimSun",serif; font-size: clamp(32px,2.5vw,43px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
body[data-page="home"] .m96-home-hero .m34-hero-copy h1 span,
body[data-page="home"] .m96-home-hero .m34-hero-copy h1 em { display: block; white-space: normal; }
body[data-page="home"] .m96-home-hero .m34-hero-copy h1 em { margin-top: .045em; color: var(--m34-forest); font-style: normal; }
body[data-page="home"] .m96-home-hero .m34-hero-lead { max-width: 500px; margin: 0 0 16px; color: #3f5448; font-size: 16px; line-height: 1.48; }
body[data-page="home"] .m96-home-hero .m34-actions { gap: 8px; }
body[data-page="home"] .m96-home-hero .m34-button { min-height: 48px; padding: 11px 22px; font-size: 15px; font-weight: 750; letter-spacing: .01em; }
body[data-page="home"] .m96-hero-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
body[data-page="home"] .m96-hero-features > span { display: grid; grid-template-columns: 20px minmax(0,1fr); align-content: start; gap: 1px 6px; min-width: 0; }
body[data-page="home"] .m96-hero-features b { grid-row: span 2; color: var(--m34-green); font-size: 16px; line-height: 1.25; }
body[data-page="home"] .m96-hero-features b svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="home"] .m96-hero-features strong { color: var(--m34-forest); font-size: 13px; line-height: 1.35; }
body[data-page="home"] .m96-hero-features small { grid-column: 2; color: var(--m34-muted); font-size: var(--text-meta); line-height: 1.35; }
body[data-page="home"] .m96-hero-figure { min-width: 0; margin: 0; }
body[data-page="home"] .m96-hero-image-stage { position: relative; display: grid; place-items: center; width: 100%; height: clamp(268px,15.2vw,292px); overflow: hidden; background: radial-gradient(ellipse at 50% 48%,rgba(185,224,198,.58) 0%,rgba(225,241,228,.28) 54%,rgba(252,252,248,0) 84%); }
body[data-page="home"] .m96-hero-image-stage img { display: block; width: min(112%,760px); height: 100%; object-fit: contain; opacity: .98; filter: saturate(.95) brightness(1.06); transform: translateY(-1%); }
body[data-page="home"] .m96-card-visual[data-home-media-slot="workflowStructure"] { background: radial-gradient(ellipse at center,#e0eee4,#f1f6f1 74%); }
body[data-page="home"] .m96-card-visual[data-home-media-slot="workflowStructure"] > img,
body[data-page="home"] .m96-evidence-image[data-home-media-slot="evidenceStructure"] > img { object-fit: cover; mix-blend-mode: multiply; }
body[data-page="home"] [data-home-media-image][data-home-media-pending] { visibility: hidden; }
body[data-page="home"] [data-home-media-image][hidden] { display: none; }
body[data-page="home"] .m96-media-fallback { display: grid; align-content: center; gap: 6px; width: 100%; height: 100%; min-height: 108px; padding: 18px; color: var(--m34-forest); background: linear-gradient(135deg,#edf4ee,#f8faf7); text-align: center; }
body[data-page="home"] .m96-media-fallback strong { font-size: 13px; }
body[data-page="home"] .m96-media-fallback span { color: var(--m34-muted); font-size: var(--text-meta); line-height: 1.5; }
body[data-page="home"] .m96-media-fallback[hidden] { display: none; }
body[data-page="home"] .m96-hero-figure figcaption { display: grid; gap: 5px; padding: 5px 4px 0; color: var(--m34-muted); font-size: 12px; line-height: 1.4; }
body[data-page="home"] .m96-hero-figure figcaption > div:first-child { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; line-height: 1.25; }
body[data-page="home"] .m96-hero-figure figcaption strong { color: var(--m34-forest); font-size: var(--text-meta); }
body[data-page="home"] .m96-hero-figure figcaption small { color: var(--m34-muted); font-size: var(--text-meta); line-height: 1.4; }
body[data-page="home"] .m96-hero-figure figcaption a { color: var(--m34-green); font-weight: 700; }
body[data-page="home"] .m96-source-links { display: flex; gap: 12px; flex-wrap: wrap; }
body[data-page="home"] [data-home-media-citation][hidden] { display: none; }
body[data-page="home"] .m96-research-question { align-self: center; min-width: 0; padding: 16px 17px 14px; border: 1px solid #d4e3d7; border-radius: 9px; background: rgba(255,255,255,.78); box-shadow: 0 10px 24px rgba(35,49,42,.05); }
body[data-page="home"] .m96-panel-label { margin: 0 0 8px; color: var(--m34-muted); font-size: 13px; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
body[data-page="home"] .m96-research-question .m96-panel-title { margin: 0 0 5px; color: var(--m34-muted); font-family: var(--font-sans); font-size: 14px; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
body[data-page="home"] .m96-question-prompt { margin: 0 0 9px; color: var(--m34-forest); font-family: Georgia,"Noto Serif SC","Songti SC",serif; font-size: clamp(20px,1.45vw,22px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
body[data-page="home"] .m96-research-question dl { margin: 0; }
body[data-page="home"] .m96-research-question dl > div { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 9px; padding: 6px 0; border-top: 1px solid #e3ebe4; }
body[data-page="home"] .m96-research-question dt { color: var(--m34-muted); font-size: 13px; font-weight: 700; }
body[data-page="home"] .m96-research-question dd { margin: 0; color: var(--m34-ink); font-size: 13px; line-height: 1.5; }
body[data-page="home"] .m34-home-spine { display: block; padding: 22px 0 8px; }
body[data-page="home"] .m34-home-spine .m34-section-heading { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); gap: clamp(20px,2vw,34px); align-items: end; }
body[data-page="home"] .m96-evidence-grid-section .m34-section-heading { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr); gap: clamp(20px,2vw,34px); align-items: end; }
body[data-page="home"] .m96-section-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; min-width: 0; }
body[data-page="home"] .m96-section-meta > p { flex: 1 1 auto; min-width: 0; margin: 0; }
body[data-page="home"] .m34-home-spine .m96-section-meta > p { max-width: 280px; }
body[data-page="home"] .m34-home-spine .m96-section-meta { display: grid; grid-template-columns: minmax(0,1fr); justify-content: start; gap: 9px; }
body[data-page="home"] .m34-home-spine .m96-section-meta > p { max-width: 380px; }
body[data-page="home"] .m96-section-meta .m34-inline-link { flex: 0 1 auto; white-space: normal; }
body[data-page="home"] .m34-home-spine .m34-section-heading h2,
body[data-page="home"] .m96-evidence-grid-section .m34-section-heading h2 { max-width: 900px; font-family: Georgia,"Noto Serif SC","Songti SC",serif; font-size: clamp(24px,1.9vw,29px); line-height: 1.2; text-wrap: balance; }
body[data-page="home"] .m34-home-spine .m34-section-heading > p,
body[data-page="home"] .m96-evidence-grid-section .m34-section-heading > p { max-width: 380px; font-size: 14px; line-height: 1.6; }
body[data-page="home"] .m96-workflow-cards { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(30px,2.5vw,44px); margin: 0; padding: 0; list-style: none; }
body[data-page="home"] .m96-workflow-cards > li { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr); grid-template-rows: auto auto auto; gap: 6px 7px; min-width: 0; min-height: 0; height: auto; padding: 12px; border: 1px solid #d7e4da; border-radius: 9px; background: rgba(255,255,255,.92); }
body[data-page="home"] .m96-workflow-cards > li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 48%; right: clamp(-44px,-2.5vw,-30px); color: var(--m34-green); font-size: 19px; font-weight: 600; transform: translate(50%,-50%); }
body[data-page="home"] .m96-step-number { display: grid; grid-column: 1; grid-row: 1 / span 2; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--m34-forest); color: #fff; font-size: 11px; font-weight: 700; }
body[data-page="home"] .m96-workflow-cards > li > strong { grid-column: 2; grid-row: 1; align-self: center; color: var(--m34-forest); font-size: 14px; line-height: 1.28; }
body[data-page="home"] .m96-workflow-cards > li > small { grid-column: 2; grid-row: 2; color: var(--m34-muted); font-size: 12px; line-height: 1.4; }
body[data-page="home"] .m96-card-visual { display: grid; place-items: center; width: 100%; min-width: 0; min-height: 0; max-height: none; aspect-ratio: 1.78; margin-top: 4px; overflow: hidden; background: #f1f6f1; }
body[data-page="home"] .m96-workflow-cards > li > .m96-card-visual { grid-column: 1 / -1; grid-row: 3; }
body[data-page="home"] .m96-card-visual > img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; }
body[data-page="home"] .m96-card-visual .m96-media-fallback { min-height: 0; padding: 10px; }
body[data-page="home"] .m96-card-visual .m96-media-fallback strong { font-size: var(--text-meta); }
body[data-page="home"] .m96-card-visual .m96-media-fallback span { font-size: var(--text-meta); line-height: 1.4; }
body[data-page="home"] .m96-home-spine { background: linear-gradient(90deg,rgba(237,244,238,.38),rgba(252,252,248,.14) 70%); }
body[data-page="home"] .m96-evidence-grid-section { display: grid; gap: 18px; margin-inline: 0; padding: 24px 0 30px; background: linear-gradient(180deg,rgba(237,244,238,.86),rgba(247,250,246,.72)); border-top: 0; }
body[data-page="home"] .m96-evidence-grid-section .m34-section-heading { align-items: end; }
body[data-page="home"] .m96-evidence-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
body[data-page="home"] .m96-evidence-grid article { min-width: 0; overflow: hidden; padding-bottom: 12px; border: 1px solid rgba(210,223,212,.88); border-radius: 7px; background: rgba(255,255,255,.84); }
body[data-page="home"] .m96-evidence-image { display: grid; place-items: center; min-height: 142px; height: auto; aspect-ratio: 2.05; overflow: hidden; background: rgba(255,255,255,.55); }
body[data-page="home"] .m96-evidence-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
body[data-page="home"] .m96-evidence-image .m96-media-fallback { font-size: var(--text-meta); }
body[data-page="home"] .m96-evidence-grid h3 { margin: 8px 12px 3px; color: var(--m34-forest); font-size: 15px; line-height: 1.35; }
body[data-page="home"] .m96-evidence-grid p { margin: 0 12px; color: var(--m34-muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
body[data-page="home"] .m96-evidence-note { display: block; margin: 6px 12px 0; color: var(--m34-muted); font-size: var(--text-meta); line-height: 1.4; }
body[data-page="home"] [data-home-media-slot][data-media-kind="method-schematic"] { color: #355d43; }
body[data-page="home"] .m96-card-visual[data-home-media-slot="workflowBiology"] > img,
body[data-page="home"] .m96-evidence-image[data-home-media-slot="evidencePhylogeny"] > img,
body[data-page="home"] .m96-evidence-image[data-home-media-slot="evidenceExpression"] > img,
body[data-page="home"] .m96-evidence-image[data-home-media-slot="evidenceValidation"] > img { object-fit: cover; }
body[data-page="resources"] .resource-search-status { margin: 0 0 22px; padding: 10px 13px; border-left: 2px solid var(--m34-sage); background: var(--m34-pale); color: var(--m34-forest); font-size: 14px; }
body[data-page="resources"] .m38-panel[hidden] { display: none !important; }
body[data-page="home"] :is(.m96-home-architecture, .m34-home-tools, .m34-home-case, .m34-home-end) p { text-wrap: pretty; }
body[data-page="home"] .m96-home-architecture {
  display: grid;
  gap: 28px;
  padding: 68px 0 72px;
  border-bottom: 1px solid var(--m34-line);
}
body[data-page="home"] .m96-home-architecture .m34-section-heading { grid-column: auto; }
body[data-page="home"] .m96-architecture-layers {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--m34-forest);
}
body[data-page="home"] .m96-architecture-layers > li {
  display: grid;
  grid-template-columns: minmax(190px, .42fr) minmax(0, 1.58fr);
  align-items: start;
  gap: 8px 32px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--m34-line);
}
body[data-page="home"] .m96-layer-label { display: grid; gap: 5px; }
body[data-page="home"] .m96-layer-label > span { color: var(--m34-muted); font-size: 13px; line-height: 1.35; }
body[data-page="home"] .m96-layer-label > strong { color: var(--m34-forest); font-size: 18px; line-height: 1.35; }
body[data-page="home"] .m96-architecture-layers > li > p { grid-column: 2; margin: 0; color: var(--m34-muted); font-size: 15px; line-height: 1.6; }
body[data-page="home"] .m96-project-stages {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 3px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--m34-line);
  list-style: none;
}
body[data-page="home"] .m96-project-stages > li { min-width: 0; padding: 0 12px 0 0; color: var(--m34-forest); font-size: 13px; line-height: 1.45; }
body[data-page="home"] .m96-project-stages > li > span { display: block; margin-bottom: 4px; color: var(--m34-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
body[data-page="home"] .m96-home-architecture > .m34-inline-link { justify-self: start; }
body[data-m38="true"] #scientific-architecture .m38-section-head { margin-bottom: 28px; }
body[data-m38="true"] .m96-platform-architecture {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--m38-forest);
  border-bottom: 1px solid var(--m38-line);
}
body[data-m38="true"] .m96-platform-architecture article { min-width: 0; padding: 22px 22px 24px 0; }
body[data-m38="true"] .m96-platform-architecture article + article { padding-left: 22px; border-left: 1px solid var(--m38-line); }
body[data-m38="true"] .m96-platform-architecture article > span { color: var(--m38-leaf); font: 700 11px/1.4 var(--font-mono); letter-spacing: .04em; }
body[data-m38="true"] .m96-platform-architecture article h3 { margin: 12px 0 15px; color: var(--m38-forest); font-size: 18px; line-height: 1.4; }
body[data-m38="true"] .m96-platform-architecture ul { margin: 0; padding-left: 18px; color: var(--m38-ink); font-size: 14px; line-height: 1.7; }
body[data-m38="true"] .m96-platform-architecture li + li { margin-top: 8px; }
body[data-m38="true"] .m96-architecture-note { margin: 18px 0 0; padding-left: 13px; border-left: 2px solid var(--m38-leaf); color: var(--m38-muted); font-size: 13px; line-height: 1.7; }
@media (max-width: 900px) { body[data-m38="true"] .m96-platform-architecture { grid-template-columns: 1fr; } body[data-m38="true"] .m96-platform-architecture article, body[data-m38="true"] .m96-platform-architecture article + article { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--m38-line); } body[data-m38="true"] .m96-platform-architecture article:last-child { border-bottom: 0; } }
@media (max-width: 900px) {
  body[data-page="home"] .m96-home-hero { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 20px; min-height: 0; padding-block: 20px; }
  body[data-page="home"] .m96-home-hero .m34-hero-copy h1 { font-size: clamp(25px,3.55vw,30px); }
  body[data-page="home"] .m96-home-hero .m34-hero-copy h1 span,
  body[data-page="home"] .m96-home-hero .m34-hero-copy h1 em { white-space: normal; }
  body[data-page="home"] .m34-home-spine .m34-section-heading,
  body[data-page="home"] .m96-evidence-grid-section .m34-section-heading { display: block; }
  body[data-page="home"] .m34-home-spine .m96-section-meta,
  body[data-page="home"] .m96-evidence-grid-section .m96-section-meta { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px 18px; margin-top: 9px; }
  body[data-page="home"] .m34-home-spine .m96-section-meta { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 9px; }
  body[data-page="home"] .m34-home-spine .m96-section-meta > p,
  body[data-page="home"] .m96-evidence-grid-section .m96-section-meta > p { max-width: none; }
  body[data-page="home"] .m34-home-spine .m34-section-heading h2,
  body[data-page="home"] .m96-evidence-grid-section .m34-section-heading h2 { max-width: 720px; font-size: clamp(24px,2.8vw,28px); text-wrap: balance; }
  body[data-page="home"] .m96-hero-figure { width: 100%; justify-self: stretch; }
  body[data-page="home"] .m96-hero-image-stage { height: clamp(250px,36vw,320px); }
  body[data-page="home"] .m96-research-question { grid-column: 1 / -1; }
  body[data-page="home"] .m96-workflow-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-page="home"] .m96-workflow-cards > li::after { display: none; }
  body[data-page="home"] .m96-evidence-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-page="home"] .m34-home-spine .m34-section-heading,
  body[data-page="home"] .m96-evidence-grid-section .m34-section-heading { display: block; }
  body[data-page="home"] .m96-architecture-layers > li { grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr); gap: 8px 22px; }
  body[data-page="home"] .m96-project-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
}
@media (max-width: 767px) {
  body[data-page="home"] .header-inner { width: 100%; padding-inline: 18px; }
  body[data-page="home"] main#content { width: min(92%, 1500px); padding-inline: 18px; }
  body[data-page="home"] .m96-home-hero { grid-template-columns: minmax(0,1fr); gap: 22px; padding-top: 30px; padding-bottom: 26px; }
  body[data-page="home"] .m96-home-hero .m34-hero-copy h1 { font-size: clamp(33px,8.6vw,40px); }
  body[data-page="home"] .m96-home-hero::before { left: 18%; width: 82%; opacity: .14; }
  body[data-page="home"] .m96-home-hero .m34-hero-copy h1 { max-width: 540px; font-size: clamp(35px, 9.4vw, 42px); }
  body[data-page="home"] .m96-home-hero .m34-hero-lead { max-width: 48ch; font-size: 16px; }
  body[data-page="home"] .m96-hero-figure { width: min(100%,520px); justify-self: center; }
  body[data-page="home"] .m96-hero-image-stage { height: min(70vw,310px); min-height: 235px; }
  body[data-page="home"] .m96-research-question { grid-column: auto; }
  body[data-page="home"] .m96-hero-features { gap: 9px; margin-top: 17px; }
  body[data-page="home"] .m96-hero-features > span { grid-template-columns: 18px minmax(0,1fr); gap: 1px 4px; }
  body[data-page="home"] .m96-hero-features strong { font-size: 12px; }
  body[data-page="home"] .m96-hero-features small { font-size: 12px; }
  body[data-page="home"] .m34-home-spine .m34-section-heading,
  body[data-page="home"] .m96-evidence-grid-section .m34-section-heading { display: block; }
  body[data-page="home"] .m34-home-spine .m96-section-meta,
  body[data-page="home"] .m96-evidence-grid-section .m96-section-meta { display: grid; gap: 8px; }
  body[data-page="home"] .m34-home-spine .m34-section-heading > p,
  body[data-page="home"] .m96-evidence-grid-section .m34-section-heading > p { margin-top: 10px; }
  body[data-page="home"] .m34-home-spine .m96-section-meta,
  body[data-page="home"] .m96-evidence-grid-section .m96-section-meta { display: grid; grid-template-columns: 1fr; gap: 8px; }
  body[data-page="home"] .m96-workflow-cards { grid-template-columns: 1fr; gap: 14px; }
  body[data-page="home"] .m96-workflow-cards > li { grid-template-columns: 28px minmax(0,1fr); grid-template-rows: auto auto auto; min-height: 0; height: auto; gap: 5px 8px; padding: 12px; }
  body[data-page="home"] .m96-step-number { grid-row: 1 / span 2; }
  body[data-page="home"] .m96-workflow-cards > li > strong { align-self: end; }
  body[data-page="home"] .m96-workflow-cards > li > small { grid-column: 2; }
  body[data-page="home"] .m96-card-visual { grid-column: 1/-1; min-height: 120px; max-height: none; aspect-ratio: 2.05; }
  body[data-page="home"] .m96-card-visual > img { max-height: none; }
  body[data-page="home"] .m96-card-note { grid-column: 1/-1; }
  body[data-page="home"] .m96-workflow-cards > li:not(:last-child)::after { display: block; top: auto; right: 50%; bottom: -15px; content: "↓"; font-size: 15px; transform: translate(50%,50%); }
  body[data-page="home"] .m96-evidence-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
  body[data-page="home"] .m96-evidence-image { height: auto; aspect-ratio: 1.8; }
  body[data-page="home"] .m96-evidence-grid-section { padding-inline: 18px; }
  body[data-page="home"] .m96-evidence-grid h3 { font-size: 14px; }
  body[data-page="home"] .m96-evidence-grid p { font-size: 13px; }
  body[data-page="home"] .m96-research-question { padding: 16px; }
  body[data-page="home"] .m96-research-question dl > div { grid-template-columns: 70px minmax(0,1fr); }
  body[data-page="home"] .m96-home-architecture { gap: 20px; padding: 54px 0; }
  body[data-page="home"] .m96-architecture-layers > li { grid-template-columns: 1fr; gap: 8px; }
  body[data-page="home"] .m96-architecture-layers > li > p,
  body[data-page="home"] .m96-project-stages { grid-column: 1; }
  body[data-page="home"] .m96-project-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}

@media (max-width: 420px) {
  body[data-page="home"] main#content { padding-inline: 16px; }
  body[data-page="home"] .m96-hero-features { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  body[data-page="home"] .m96-hero-features > span { grid-template-columns: 1fr; gap: 3px; }
  body[data-page="home"] .m96-hero-features b { grid-row: auto; }
  body[data-page="home"] .m96-hero-features strong { font-size: 12px; }
  body[data-page="home"] .m96-hero-features small { grid-column: 1; font-size: 12px; }
  body[data-page="home"] .m96-workflow-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body[data-page="home"] .m96-workflow-cards > li:not(:last-child)::after { display: none; }
  body[data-page="home"] .m96-workflow-cards > li { grid-template-columns: 20px minmax(0,1fr); gap: 5px 6px; padding: 9px; }
  body[data-page="home"] .m96-workflow-cards > li > strong { font-size: 13px; }
  body[data-page="home"] .m96-workflow-cards > li > small { font-size: 12px; }
  body[data-page="home"] .m96-card-visual { aspect-ratio: 1.8; }
  body[data-page="home"] .m96-evidence-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .m96-evidence-image { height: auto; aspect-ratio: 1.8; }
  body[data-page="home"] .m96-evidence-grid-section { padding-inline: 16px; }
  body[data-page="home"] .m34-home-spine,
  body[data-page="home"] .m96-evidence-grid-section { padding-block: 25px; }
}

@media (max-width: 380px) {
  body[data-page="home"] .m96-hero-features { grid-template-columns: 1fr; gap: 8px; }
  body[data-page="home"] .m96-hero-features > span { grid-template-columns: 22px minmax(0,1fr); }
  body[data-page="home"] .m96-hero-features b { grid-row: span 2; }
  body[data-page="home"] .m96-hero-features small { grid-column: 2; }
  body[data-page="home"] .m96-workflow-cards { grid-template-columns: 1fr; }
  body[data-page="home"] .m96-workflow-cards > li:not(:last-child)::after { display: block; top: auto; right: 50%; bottom: -13px; content: "↓"; font-size: 15px; transform: translate(50%,50%); }
}

@media (max-width: 760px) {
  body[data-page="home"] .header-inner .ugtld-language-switcher { grid-column: 1/-1; grid-row: 2; justify-self: start; margin: 0; }
  body[data-page="home"] .header-inner nav { grid-row: 3; }
}

/* M90 documentation: a task index and readable article column within the
 * existing public shell. The hierarchy comes from navigation and line length,
 * not another stack of nested cards. */
body[data-page="docs"] main#content { max-width: 1240px; padding-inline: 28px; }
body[data-page="docs"] .m90-doc-layout { display: grid; grid-template-columns: minmax(170px, 190px) minmax(0, 1fr) minmax(145px, 165px); gap: clamp(20px, 2vw, 30px); align-items: start; }
body[data-page="docs"] .m90-doc-content { min-width: 0; }
body[data-page="docs"] .m90-doc-sidebar,
body[data-page="docs"] .m90-doc-toc { position: sticky; top: 82px; max-height: calc(100vh - 102px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body[data-page="docs"] .m90-doc-sidebar { padding: 8px 10px 14px 0; border-right: 1px solid var(--m38-line); }
body[data-page="docs"] .m90-doc-mobile-tree { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body[data-page="docs"] .m90-doc-mobile-tree > summary { display: none; }
body[data-page="docs"] .m90-doc-search { display: grid; gap: 7px; margin: 0 0 16px; }
body[data-page="docs"] .m90-doc-search label { color: var(--m38-forest); font-size: 14px; font-weight: 700; }
body[data-page="docs"] .m90-doc-search input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--m38-line); border-radius: 5px; background: #fff; color: var(--m38-ink); font: inherit; font-size: 15px; }
body[data-page="docs"] .m90-doc-search input:focus-visible,
body[data-page="docs"] .m90-doc-sidebar a:focus-visible,
body[data-page="docs"] .m90-doc-toc a:focus-visible,
body[data-page="docs"] .m90-doc-content button:focus-visible,
body[data-page="docs"] .m90-doc-pager a:focus-visible { outline: 3px solid #286C53; outline-offset: 2px; }
body[data-page="docs"] #m90-doc-search-status { min-height: 18px; margin: 0; color: var(--m38-muted); font-size: 13px; line-height: 1.45; }
body[data-page="docs"] .m90-doc-tree { display: grid; gap: 4px; }
body[data-page="docs"] .m90-doc-tree > a,
body[data-page="docs"] .m90-doc-tree details > a { display: block; padding: 7px 9px; border-left: 2px solid transparent; color: var(--m38-muted); font-size: 15px; line-height: 1.45; text-decoration: none; }
body[data-page="docs"] .m90-doc-tree > a:hover,
body[data-page="docs"] .m90-doc-tree details > a:hover { background: var(--m38-wash); color: var(--m38-forest); }
body[data-page="docs"] .m90-doc-tree a[aria-current="location"] { border-left-color: var(--m38-leaf); background: var(--m38-wash); color: var(--m38-forest); font-weight: 700; }
body[data-page="docs"] .m90-doc-tree details { margin: 2px 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body[data-page="docs"] .m90-doc-tree summary { padding: 7px 8px; color: var(--m38-forest); font-size: 15px; font-weight: 650; line-height: 1.4; }
body[data-page="docs"] .m90-doc-tree details > a { margin-left: 7px; font-size: 14px; }
body[data-page="docs"] .m90-doc-tree [hidden] { display: none !important; }
body[data-page="docs"] .m90-doc-access { display: block; margin-top: 14px; padding: 10px 9px; border-top: 1px solid var(--m38-line); color: var(--m38-leaf); font-size: 14px; font-weight: 650; line-height: 1.45; }
body[data-page="docs"] .m90-doc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--m38-line); }
body[data-page="docs"] .m90-doc-toolbar > p { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--m38-muted); font-size: 14px; line-height: 1.45; }
body[data-page="docs"] .m90-doc-toolbar button,
body[data-page="docs"] .m90-doc-pager a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 10px; border: 1px solid var(--m38-line); border-radius: 5px; background: #fff; color: var(--m38-forest); font: inherit; font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; }
body[data-page="docs"] .m90-doc-toolbar button:hover,
body[data-page="docs"] .m90-doc-pager a:hover { border-color: var(--m38-leaf); background: var(--m38-wash); }
body[data-page="docs"] .m90-doc-content > section { padding: 32px 0; border-bottom: 0; scroll-margin-top: 86px; }
body[data-page="docs"] .m90-doc-content > .page-hero { padding: 38px 0 32px; }
body[data-page="docs"] .m90-doc-content h1 { max-width: 24ch; font-size: clamp(29px, 2.15vw, 32px); line-height: 1.28; text-wrap: balance; }
body[data-page="docs"] .m90-doc-content h2 { max-width: 26ch; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.32; text-wrap: pretty; }
body[data-page="docs"] .m90-doc-content h3 { margin: 22px 0 7px; color: var(--m38-forest); font-size: 18px; line-height: 1.4; scroll-margin-top: 92px; }
body[data-page="docs"] .m90-doc-content p,
body[data-page="docs"] .m90-doc-content li,
body[data-page="docs"] .m90-doc-content dd { color: var(--m38-ink); font-size: 16px; line-height: 1.68; }
body[data-page="docs"] .m90-doc-content .lead { max-width: 66ch; font-size: 17px; }
body[data-page="docs"] .m90-doc-content .m38-section-head { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; margin-bottom: 18px; }
body[data-page="docs"] .m90-doc-content .m38-section-head h2 { font-size: clamp(22px, 2vw, 28px); }
body[data-page="docs"] .m90-doc-content .m38-section-head > div:last-child { font-size: 16px; line-height: 1.65; }
body[data-page="docs"] .m90-doc-content .m38-panel { padding: 4px 0 0; border: 0; }
body[data-page="docs"] .m90-doc-content .m38-grid { gap: 12px; }
body[data-page="docs"] .m90-doc-content .m38-meta { font-size: 14px; letter-spacing: 0; text-transform: none; }
body[data-page="docs"] .m90-doc-article-body { max-width: 72ch; }
body[data-page="docs"] .m90-doc-article-body ul,
body[data-page="docs"] .m90-doc-article-body ol { padding-left: 22px; }
body[data-page="docs"] .m90-doc-article-body li { padding: 2px 0; }
body[data-page="docs"] .m90-doc-article-body code { padding: 2px 4px; border-radius: 3px; background: var(--m38-wash); color: var(--m38-forest); font: 600 13px/1.6 var(--font-mono); overflow-wrap: anywhere; }
body[data-page="docs"] .m90-doc-callout,
body[data-page="docs"] .m90-doc-limit { padding: 12px 14px; border-left: 3px solid var(--m38-amber); background: #FBF7EC; color: #544A38; font-size: 15px; line-height: 1.6; }
body[data-page="docs"] .m90-doc-definitions { display: grid; gap: 0; margin: 12px 0 22px; border-top: 1px solid var(--m38-line); }
body[data-page="docs"] .m90-doc-definitions > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--m38-line); }
body[data-page="docs"] .m90-doc-definitions dt { color: var(--m38-forest); font-weight: 750; }
body[data-page="docs"] .m90-doc-definitions dd { margin: 0; }
body[data-page="docs"] .m90-doc-content [hidden] { display: none !important; }
body[data-page="docs"] .m90-doc-toc { padding: 8px 0 12px 12px; border-left: 1px solid var(--m38-line); }
body[data-page="docs"] .m90-doc-toc h2 { margin: 0 0 10px; font-size: 15px; }
body[data-page="docs"] .m90-doc-toc nav { display: grid; gap: 3px; }
body[data-page="docs"] .m90-doc-toc nav a { padding: 5px 7px; border-left: 2px solid transparent; color: var(--m38-muted); font-size: 14px; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
body[data-page="docs"] .m90-doc-toc nav a:hover,
body[data-page="docs"] .m90-doc-toc nav a[aria-current="location"] { border-left-color: var(--m38-leaf); color: var(--m38-forest); }
body[data-page="docs"] .m90-back-top { display: inline-block; margin-top: 15px; color: var(--m38-leaf); font-size: 14px; font-weight: 650; }
body[data-page="docs"] .m90-doc-pager { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0; }
body[data-page="docs"] .m90-doc-limit { margin: 0 0 24px; border-left-color: var(--m38-leaf); background: var(--m38-wash); color: var(--m38-ink); }
body[data-page="docs"] [data-doc-section] { min-width: 0; }
body[data-page="docs"] .m90-doc-content .m38-guide-notice { margin-block: 18px; }
body[data-page="docs"] .m90-doc-content .m38-guide-step { padding: 16px 0; border-bottom: 1px solid var(--m38-line); }
body[data-page="docs"] .m90-doc-content .m38-guide-step:last-child { border-bottom: 0; }
body[data-page="docs"] .m90-doc-content .m38-guide-step dl > div { grid-template-columns: 125px minmax(0, 1fr); gap: 12px; }
@media (max-width: 1120px) {
  body[data-page="docs"] .m90-doc-layout { grid-template-columns: minmax(165px, 190px) minmax(0, 1fr); gap: 22px; }
  body[data-page="docs"] .m90-doc-toc { display: none; }
  body[data-page="docs"] .m90-doc-content .m38-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body[data-page="docs"] main#content { padding-inline: 18px; }
  body[data-page="docs"] .m90-doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body[data-page="docs"] .m90-doc-sidebar { position: static; max-height: none; padding: 10px 0 16px; border-right: 0; border-bottom: 1px solid var(--m38-line); }
  body[data-page="docs"] .m90-doc-mobile-tree > summary { display: list-item; padding: 9px 2px; color: var(--m38-forest); font-size: 14px; font-weight: 750; }
  body[data-page="docs"] .m90-doc-mobile-tree:not([open]) .m90-doc-tree { display: none; }
  body[data-page="docs"] .m90-doc-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
  body[data-page="docs"] .m90-doc-tree details { min-width: 0; }
  body[data-page="docs"] .m90-doc-content > section { padding: 24px 0; }
  body[data-page="docs"] .m90-doc-content > .page-hero { padding: 30px 0 26px; }
  body[data-page="docs"] .m90-doc-content h1 { font-size: clamp(29px, 8vw, 32px); }
  body[data-page="docs"] .m90-doc-content .m38-section-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body[data-page="docs"] .m90-doc-content .m38-grid,
  body[data-page="docs"] .m90-doc-content .m38-grid.two { grid-template-columns: minmax(0, 1fr); }
  body[data-page="docs"] .m90-doc-content .m38-guide-step dl > div,
  body[data-page="docs"] .m90-doc-definitions > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  body[data-page="docs"] .m90-doc-toolbar { align-items: flex-start; flex-direction: column; }
  body[data-page="docs"] .m90-doc-pager a { max-width: 48%; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="docs"] html { scroll-behavior: auto; }
}
