/* Domain examples extend the selected Organic Intelligence visual system. */
.evidence-preview { --ink: #253b32; --muted: #53644f; background: #fafbf7; }
.evidence-preview .preview-top { align-items: flex-start; }
.evidence-preview .preview-title { font-size: 16px; }
.evidence-preview .preview-example { white-space: normal; text-align: right; }
.evidence-body { padding: 16px; }
.evidence-body p { font-size: 12px; line-height: 1.45; }
.evidence-preview .evidence-summary { border-top: 1px solid #d6ded2; padding: 12px 16px; background: #edf1e7; font-size: 12px; line-height: 1.4; }
.signal-chart { display: block; width: 100%; height: auto; overflow: visible; }
.signal-chart text { font-family: 'Barlow', sans-serif; font-size: 12px; fill: currentColor; }
.signal-chart .chart-rule { stroke: currentColor; opacity: .16; }
.signal-chart .signal { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.signal-chart .signal-main { stroke: #ac532e; }
.signal-chart .signal-baseline { stroke: #647759; stroke-dasharray: 5 4; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; margin-bottom: 10px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-mark { width: 18px; height: 2px; background: #ac532e; }
.legend-mark.expected { background: none; border-top: 2px dashed #647759; }
.trace-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 11px; color: #53644f; }
.case-summary { display: flex; align-items: start; gap: 12px; padding-bottom: 14px; }
.case-summary > svg { flex: 0 0 26px; width: 26px; height: 26px; color: #9d4d2d; }
.case-summary strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.25; }
.case-summary p { margin-top: 6px; color: #53644f; }
.case-flow { margin: 0; padding: 0; list-style: none; }
.case-flow li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding-block: 11px; border-top: 1px solid #dde3d7; font-size: 12px; }
.case-flow i { width: 9px; height: 9px; border: 1px solid #7a8a6d; border-radius: 50%; }
.case-flow li:last-child i { background: #deb293; border-color: #a85d36; }
.case-flow small { font-size: 11px; color: #53644f; }
.application-intro { display: grid; grid-template-columns: .95fr 1.2fr; gap: 9%; padding-block: 104px; }
.application-intro h2 { font: 500 clamp(42px,4.6vw,70px)/1.06 'Zilla Slab',Georgia,serif; }
.application-intro > div > p { max-width: 35ch; font-size: 19px; color: var(--muted); margin-top: 25px; }
.application-list { border-top: 1px solid var(--line); }
.application-row { display: grid; grid-template-columns: 1fr 24px; gap: 8px 24px; padding: 25px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.application-row h3 { font-size: 27px; }
.application-row p { grid-column: 1; font-size: 16px; color: var(--muted); max-width: 46ch; }
.application-row > svg { grid-column: 2; grid-row: 1 / span 2; width: 23px; height: 23px; align-self: center; }
.application-row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.application-row:hover svg { transform: translateX(3px); }
.detail-hero { padding-block: 70px 56px; }
.detail-hero h1 { max-width: 1040px; font-size: clamp(52px,6.8vw,98px); line-height: 1.02; }
.detail-hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 34px; }
.detail-hero-bottom p { max-width: 58ch; font-size: 20px; color: var(--muted); }
.detail-hero-bottom .button { flex-shrink: 0; }
.detail-visual { position: relative; overflow: hidden; border-radius: 20px; background: #203831; color: #f4f6ef; padding: 38px; min-height: 420px; }
.detail-visual::before { content: ''; position: absolute; inset: 0; background: var(--scene) center / cover; opacity: .22; }
.detail-visual > * { position: relative; }
.visual-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.visual-heading h2 { font-size: 27px; line-height: 1.15; }
.visual-heading p { font-size: 13px; margin-top: 8px; color: #d4dfd0; }
.example-label { font-size: 12px; line-height: 1.4; padding: 7px 10px; border: 1px solid currentColor; border-radius: 4px; }
.system-map { width: 100%; height: auto; }
.system-map text { fill: currentColor; font: 14px 'Barlow',sans-serif; }
.system-map .map-id { font: 12px 'Geist Mono',monospace; }
.system-map .map-line { fill: none; stroke: #b3c8a8; stroke-width: 2; }
.system-map .map-bus { fill: none; stroke: #dce7d5; stroke-width: 5; }
.system-map .map-point { fill: #274437; stroke: #dce7d5; stroke-width: 2; }
.system-map .map-alert { fill: #dfb296; stroke: #f2d3bc; }
.system-map .map-focus { stroke: #dfb296; stroke-width: 2; fill: none; stroke-dasharray: 4 5; }
.figure-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid #b4c3ad55; font-size: 13px; color: #e0e9d9; }
.detail-jump { display: flex; flex-wrap: wrap; gap: 12px 30px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.detail-jump a { font-size: 15px; padding-block: 8px; }
.domain-section { padding-block: 94px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.domain-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7%; align-items: center; }
.domain-section:nth-child(even) .domain-layout { grid-template-columns: 1.2fr .8fr; }
.domain-section:nth-child(even) .domain-copy { order: 2; }
.domain-copy h2 { font-size: clamp(38px,4vw,60px); line-height: 1.08; }
.domain-copy > p { font-size: 18px; color: var(--muted); margin-top: 24px; }
.domain-copy .text-link { margin-top: 28px; font-size: 16px; }
.scope-list { padding: 0; margin: 24px 0 0; list-style: none; font-size: 15px; }
.scope-list li { padding-block: 10px; border-bottom: 1px solid var(--line); }
.workbench { padding: 28px; background: #f0f1e9; color: #273a2d; border-radius: 16px; min-width: 0; }
.workbench-dark { background: #20392f; color: #f3f6ec; --line: #6e826e; }
.workbench h3 { font-size: 23px; line-height: 1.2; }
.workbench-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.workbench-head .example-label { border-color: #89957f; color: inherit; }
.workbench-note { font-size: 14px; line-height: 1.5; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }
.workbench > .signal-chart { margin-block: 20px; }
.event-row { display: grid; grid-template-columns: 66px 1fr; gap: 18px; padding-block: 20px; border-top: 1px solid #b8c3b1; }
.event-row time { font: 12px/1.6 'Geist Mono',monospace; }
.event-row strong { display: block; font-size: 16px; font-weight: 500; }
.event-row p { font-size: 14px; margin-top: 6px; color: #52634c; }
.review-result { padding: 20px; margin-top: 18px; background: #e4bfa2; color: #332b22; }
.review-result strong { display: block; font-size: 18px; font-weight: 500; }
.review-result p { margin-top: 8px; font-size: 14px; }
.scenario-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.scenario-controls button { padding: 11px 15px; min-height: 44px; background: transparent; border: 1px solid #7b8c71; border-radius: 30px; color: inherit; font-size: 14px; }
.scenario-controls button[aria-pressed="true"] { background: #283c2d; color: #fff; border-color: #283c2d; }
.workbench-dark .scenario-controls button[aria-pressed="true"] { background: #e2b292; color: #253228; border-color: #e2b292; }
.scenario-panel[hidden] { display: none; }
.scenario-panel h4 { font-size: 19px; line-height: 1.25; font-weight: 500; margin: 18px 0 12px; }
.scenario-panel p { font-size: 15px; line-height: 1.55; }
.evidence-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 0; }
.evidence-facts dt { font-size: 13px; color: #52634c; }
.evidence-facts dd { margin: 5px 0 0; font-size: 25px; line-height: 1.2; }
.workbench-dark .evidence-facts dt { color: #d7e2cf; }
.capacity-chart { margin-block: 24px; }
.capacity-row { margin-top: 22px; }
.capacity-row > div:first-child { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; margin-bottom: 10px; }
.capacity-track { height: 24px; background: #dce4d4; position: relative; }
.capacity-track span { display: block; height: 100%; width: var(--fill); background: #6a805d; }
.capacity-track span.exceeds { background: #ab5837; }
.capacity-track::after { content: ''; position: absolute; inset: -5px auto -5px 80%; border-left: 2px dashed #293c2c; }
.capacity-key { font-size: 12px; margin-top: 18px; }
.line-route { display: flex; justify-content: space-between; position: relative; margin: 52px 0 30px; }
.line-route::before { content: ''; position: absolute; left: 12px; right: 12px; top: 7px; height: 2px; background: #9fb38d; }
.line-route > span { position: relative; text-align: center; font: 12px 'Geist Mono',monospace; }
.line-route i { display: block; width: 16px; height: 16px; margin: 0 auto 12px; background: #294537; border: 2px solid #c9d8bc; border-radius: 50%; }
.line-route .flagged i { background: #e4b190; border-color: #e4b190; outline: 5px solid #e4b19033; }
.delivery-section { padding-block: 94px; }
.delivery-section > h2 { max-width: 800px; font-size: clamp(40px,4.4vw,64px); }
.delivery-rows { margin-top: 45px; border-top: 1px solid var(--line); }
.delivery-row { display: grid; grid-template-columns: .8fr 1fr; gap: 10%; border-bottom: 1px solid var(--line); padding-block: 28px; }
.delivery-row h3 { font-size: 26px; }
.delivery-row p { font-size: 18px; color: var(--muted); max-width: 55ch; }
.page-crosslink { background: var(--cream); padding-block: 65px; }
.page-crosslink .page-width { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.page-crosslink h2 { font-size: 34px; max-width: 28ch; }
@media (max-width:1000px) {
 .domain-layout,.domain-section:nth-child(even) .domain-layout { grid-template-columns: 1fr; gap: 38px; }
 .domain-section:nth-child(even) .domain-copy { order: 0; }
 .domain-copy > p { max-width: 65ch; }
 .detail-hero-bottom { align-items: flex-start; }
 .detail-hero-bottom p { font-size: 18px; }
 .application-intro { gap: 6%; }
 .application-intro h2 { font-size: 49px; }
 .evidence-preview .preview-example { font-size: 11px; }
}
@media (max-width:700px) {
 .application-intro { grid-template-columns: 1fr; gap: 38px; padding-block: 60px; }
 .application-intro h2 { font-size: 44px; }
 .application-row h3 { font-size: 26px; }
 .detail-hero { padding-block: 44px 36px; }
 .detail-hero h1 { font-size: clamp(43px,10vw,66px); }
 .detail-hero-bottom { display: block; margin-top: 24px; }
 .detail-hero-bottom .button { margin-top: 25px; }
 .detail-visual { padding: 22px; min-height: 0; border-radius: 16px; }
 .visual-heading { display: block; }
 .visual-heading .example-label { display: inline-block; margin-top: 18px; }
 .visual-heading h2 { font-size: 24px; }
 .system-map { min-height: 200px; }
 .detail-jump { gap: 8px 20px; padding-block: 22px; }
 .domain-section { padding-block: 58px; }
 .domain-copy h2 { font-size: 40px; }
 .domain-copy > p { font-size: 17px; }
 .workbench { padding: 22px; }
 .workbench-head { display: block; }
 .workbench-head .example-label { display: inline-block; margin-top: 14px; }
 .workbench h3 { font-size: 22px; }
 .event-row { grid-template-columns: 52px 1fr; gap: 14px; }
 .evidence-facts { gap: 16px; }
 .delivery-section { padding-block: 60px; }
 .delivery-row { grid-template-columns: 1fr; gap: 16px; }
 .page-crosslink .page-width { display: block; }
 .page-crosslink .button { margin-top: 25px; }
 .case-flow li { grid-template-columns: 12px 1fr; gap: 5px 8px; padding-block: 8px; }
 .case-flow small { grid-column: 2; }
 .evidence-preview .preview-top { padding: 12px; }
 .evidence-body { padding: 12px; }
 .evidence-preview .evidence-summary { padding: 12px; }
 .panel-art:has(.evidence-preview) { min-height: 350px; }
 .trace-meta { flex-wrap: wrap; gap: 4px; }
 .evidence-preview { left: 5%; width: 90%; }
}
@media (max-width:370px) { .panel-art:has(.evidence-preview) { min-height: 390px; } .evidence-preview .preview-top { flex-wrap: wrap; } .scenario-controls button { flex: 1 1 100%; } }
.value-flow { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; padding: 34px 0 48px; margin: 0; gap: 22px; }
.value-flow li { position: relative; }
.value-flow li:not(:last-child)::after { content: ''; position: absolute; top: 25px; left: 56px; width: calc(100% - 34px); height: 1px; background: #bdceb077; }
.flow-index { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #bdceb0; border-radius: 50%; font: 13px 'Geist Mono',monospace; }
.value-flow li:nth-child(3) .flow-index { background: #e4b190; color: #253328; border-color: #e4b190; }
.value-flow h3 { font-size: 25px; line-height: 1.12; margin-top: 26px; }
.value-flow p { font-size: 14px; color: #dbe6d3; line-height: 1.5; margin-top: 12px; max-width: 20ch; }
@media(max-width:700px) {
 .value-flow { grid-template-columns: 1fr; gap: 0; padding: 12px 0 30px; }
 .value-flow li { min-height: 92px; padding: 0 0 24px 62px; }
 .value-flow .flow-index { position: absolute; top: 0; left: 0; width: 40px; height: 40px; }
 .value-flow li:not(:last-child)::after { top: 46px; bottom: 6px; left: 20px; width: 1px; height: auto; }
 .value-flow h3 { margin-top: 0; font-size: 23px; }
 .value-flow p { margin-top: 7px; max-width: none; }
}

/* Let the evidence determine panel height at narrow and translated layouts. */
.panel-art:has(.evidence-preview) { aspect-ratio: auto; min-height: 420px; display: grid; align-items: center; padding: 60px 7% 24px; }
.panel-art .evidence-preview { position: relative; inset: auto; transform: none; width: 100%; }
.domain-copy, .detail-hero-bottom > *, .page-crosslink .page-width > *, .value-flow li { min-width: 0; }
.detail-hero h1, .domain-copy h2, .page-crosslink h2, .delivery-section h2, .detail-jump a, .value-flow h3 { overflow-wrap: break-word; hyphens: auto; }
.signal-plot { margin-block: 16px; font-size: 12px; font-variant-numeric: tabular-nums; }
.plot-unit { margin-bottom: 5px; }
.plot-grid { display: grid; grid-template-columns: 28px minmax(0,1fr); }
.plot-y { position: relative; }
.plot-y span { position: absolute; transform: translateY(-50%); }
.plot-y span:nth-child(1) { top: 7.5%; }
.plot-y span:nth-child(2) { top: 45%; }
.plot-y span:nth-child(3) { top: 82.5%; }
.plot-x { display: flex; justify-content: space-between; margin: 7px 0 0 28px; }
@media(max-width:700px) { .panel-art:has(.evidence-preview) { min-height: 350px; } }

/* Supporting pages remain reachable at every viewport. */
@media(max-width:850px) {
 .nav { flex-wrap: wrap; gap: 16px; padding-block: 18px; }
 .nav > .brand { flex: 1 0 100%; }
 .nav-links { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; }
 .nav-links > a.nav-page { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
 .nav-links > .button { grid-column: 1; grid-row: 1; justify-self: start; }
 .nav-links > .language-switch { grid-column: 2; grid-row: 1; justify-self: end; }
 .nav-links > .nav-page:nth-child(1) { grid-column: 1; grid-row: 2; }
 .nav-links > .nav-page:nth-child(2) { grid-column: 2; grid-row: 2; }
}
