/* SPDX-License-Identifier: Apache-2.0 */
/* Assemble the reading pages from metal housings, inset displays and connection paths. */
.reading-page .content-window { grid-column: 2 / 4; margin-left: 0; container-type: inline-size; }
.reading-page .art-caption { display: none; }
.reading-page .window-frame { padding: 0; border: 0; background: none; box-shadow: none; clip-path: none; }
.reading-page .window-title { margin: 0 0 16px; height: 34px; padding-left: 14px; background: linear-gradient(90deg, #617e69, #254430); border: 1px solid #9eb9a7; border-bottom: 3px double #cce7d4; box-shadow: 0 3px 0 #0c2116; }
.reading-page .window-body { display: grid; gap: 20px; padding: 0; background: none; border: 0; }
.reading-page .window-footer { margin-top: 14px; color: #d1ead9; padding: 8px 10px; background: #102a20cf; border-block: 1px solid #8eaa9770; }
.reading-page .window-footer > span:last-child { color: #badbc5; }
.reading-page .artwork { background-size: auto 1080px; background-position: 34% 0; background-repeat: no-repeat; opacity: .58; mask-image: linear-gradient(#000 720px, transparent 1080px); }
.reading-page:after { background: linear-gradient(90deg, #09221511, #09201577 45%, #092015aa); }
.metal-section { position: relative; min-width: 0; border: 1px solid #132a1b; padding: 5px; background: linear-gradient(125deg, #e1f3e5, #758d7c 32%, #b6ccbd 66%, #688672); box-shadow: inset 0 0 0 1px #d9f2e0, 3px 6px 0 #071a10aa, 6px 10px 20px #04180d66; }
.metal-section:before { content: ''; position: absolute; z-index: 1; pointer-events: none; top: -3px; left: 18px; width: 75px; height: 5px; border: 1px solid #14341e; background: #d6ebdc; transform: skewX(38deg); box-shadow: 94px 0 #718e7b; }
.document-intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: 5px; }
.intro-copy { padding: 27px 23px; min-width: 0; border: 1px solid #163c26; background: repeating-linear-gradient(0deg, #e1ffe605 0 1px, transparent 1px 3px), linear-gradient(120deg, #1d422e, #102b20); }
.intro-copy .eyebrow { font-size: 6px; }
.intro-copy h1 { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.55; }
.intro-copy .lead { font-size: 20px; margin-bottom: 0; }
.intro-copy > p:last-child:not(.lead) { color: #c3dccc; margin-bottom: 0; }
.document-intro .chapter-scene { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid #2b4b37; background: #13291d; }
.document-intro .chapter-scene img { width: 100%; height: 100%; min-height: 0; flex: 1; object-fit: cover; aspect-ratio: auto; object-position: 38% 40%; }
.document-intro .chapter-scene figcaption { border-top: 3px double #c4e5ce; color: #152b1b; background: var(--metal); font-size: 5px; padding: 6px 8px; }
.section-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid #789682; background: #0d2419; box-shadow: inset 0 0 0 1px #081b10, 0 3px 0 #061a10; }
.section-index a { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px; color: #1b3423; background: var(--metal); border: 1px solid #dff9e7; border-right-color: #647e6d; border-bottom-color: #5a7664; font-size: 14px; box-shadow: 1px 1px #0008; }
.section-index a span { font: 9px var(--display); padding-right: 7px; border-right: 1px solid #577561; }
.section-index a:hover { background: #d0f6d9; box-shadow: inset 1px 1px #557961; }
.section-index a:focus-visible, .document-exit .action-button:focus-visible { outline-color: #effff3; }
.state-journey { padding: 5px; margin: 0; }
.instrument-title, .reading-title { position: relative; margin: 0; padding: 9px 12px; min-height: 32px; color: #16321f; background: var(--metal); border: 1px solid #ecfff1; border-right-color: #54755f; border-bottom: 3px double #31563e; letter-spacing: .6px; }
.instrument-title { font-size: 7px; }
.instrument-title:after { content: ''; flex: 0 0 20px; height: 7px; align-self: center; background: repeating-linear-gradient(110deg, #466750 0 3px, transparent 3px 5px); }
.instrument-title > span:nth-child(2) { margin-left: auto; }
.instrument-body { padding: 22px; background: linear-gradient(135deg, #1d3a2b, #0b2419); border: 1px solid #314f3c; border-top: 0; }
.state-journey h2 { margin: 0 0 6px; font-size: 18px; }
.journey-intro { margin-bottom: 18px; color: #c0dac8; }
.architecture-map { width: 100%; margin: 0 0 18px; padding: 14px; border: 1px solid #071910; outline: 1px solid #73977f; background: repeating-linear-gradient(0deg, transparent 0 19px, #a4deb411 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, #a4deb411 19px 20px), radial-gradient(ellipse at 50% 0, #41674c, #132e20 75%); box-shadow: inset 0 2px 15px #020e08aa; }
.map-domain { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 9px; color: #d9f3e1; font: 8px/1.6 var(--display); letter-spacing: 1px; }
.map-domain small { font: 6px/1.6 var(--display); color: #b7d5c1; letter-spacing: .6px; }
.map-bank { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); align-items: center; }
.map-node { position: relative; min-width: 0; padding: 4px; background: linear-gradient(125deg, #c0d6c7, #789783 42%, #b7cfbf 68%, #45624f); border: 1px solid #c6dfce; border-bottom: 4px solid #496752; box-shadow: 2px 4px 0 #061c10, 4px 7px 5px #06130dcc; }
.node-top { display: flex; align-items: center; gap: 8px; color: #16331f; background: var(--metal); border: 1px solid #dfefe4; padding: 4px 6px; font: 6px/1.7 var(--display); }
.node-top b { font: 12px/1 var(--body); border-right: 1px solid #5d7c67; padding-right: 7px; }
.node-top i { flex: 0 0 5px; height: 5px; background: #45664f; margin-left: auto; box-shadow: 1px 1px #e5ffec; }
.node-screen { display: flex; align-items: center; gap: 12px; min-height: 95px; padding: 15px 13px; margin-top: 4px; border: 1px solid #04150a; box-shadow: inset 0 1px 5px #06130d, 0 1px #b7d4c1; background: repeating-linear-gradient(0deg, #c9ffd708 0 1px, transparent 1px 3px), #143321; }
.node-screen h3 { margin: 0 0 4px; color: #e2f7e8; font: 600 20px/1.2 var(--body); }
.node-screen p { font: 14px/1.3 var(--body); color: #b2d0bd; margin: 0; }
.node-screen .module-icon { flex-basis: 23px; height: 23px; }
.node-ports { height: 8px; margin-top: 5px; background: repeating-linear-gradient(90deg, #213f2b 0 2px, #bed7c644 2px 4px); width: 38%; margin-left: auto; }
.map-node.is-current { outline: 1px solid #e3ffeb; border-color: #eaffef; }
.map-node.is-current .node-screen { background: repeating-linear-gradient(0deg, #0b411211 0 1px, transparent 1px 3px), linear-gradient(115deg, #d1ffdc, #9ccead); box-shadow: inset 0 1px 5px #2d5b3e; }
.map-node.is-current h3, .map-node.is-current .node-screen p { color: #153923; }
.map-node.is-current .node-top i { background: #c9ffd7; box-shadow: 0 0 4px #9cf2b2; }
.map-node.is-current .module-icon { filter: brightness(.35); }
.bank-link { width: 100%; height: 28px; overflow: visible; }
.link-bed { stroke: #071e12; stroke-width: 7; fill: none; }
.trace-link { stroke: #87af94; stroke-width: 2; fill: none; }
.trace-link.is-active { stroke: #d1ffdf; stroke-width: 2.5; }
.seam-bridge { position: relative; height: 64px; margin: 0 0 8px; }
.seam-bridge:before { content: ''; position: absolute; inset: 31px -14px auto; border-top: 1px dashed #a0c5ac88; }
.seam-bridge > span { position: absolute; right: 0; top: 28px; color: #a9c9b3; background: #173223; padding: 3px 6px; font: 6px/1.5 var(--display); letter-spacing: .8px; }
.seam-bridge svg { width: 100%; height: 100%; overflow: visible; }
.host-domain { margin-top: -3px; }
.step-selectors { gap: 5px; padding: 5px; background: #0b2015; border: 1px solid #6f927a; }
.step-selectors button, .journey-footer button { border: 1px solid #def2e5; border-bottom-color: #567560; border-right-color: #567560; color: #1c3b27; background: var(--metal); min-height: 44px; box-shadow: 1px 2px #031509; }
.step-selectors b { display: inline-block; padding: 3px 6px; margin-right: 5px; color: #294f35; border: 1px solid #789982; background: #ddf2e35e; }
.step-selectors button[aria-pressed='true'] { background: #224c33; color: #d9ffe4; border-color: #0a2514; box-shadow: inset 1px 2px 4px #03180e, 0 1px #c5f0d3; }
.step-selectors button[aria-pressed='true'] b { color: #112e1b; background: #c9ffd7; border-color: #e5ffed; }
.step-selectors button:hover, .journey-footer button:hover:not(:disabled) { background: #d0f6da; color: #163b23; }
.step-readout { position: relative; padding: 18px 18px 18px 24px; margin-top: 12px; min-height: 190px; border: 1px solid #72917b; border-left: 5px solid #adcab6; background: repeating-linear-gradient(0deg, #c9ffd705 0 1px, transparent 1px 3px), #102d1f; box-shadow: inset 0 1px 6px #01170c; }
.trace-step .step-kicker { display: inline-block; padding: 5px 8px; border: 1px solid #739d80; background: #254832; color: #ccead6; }
.trace-step h3 { font-size: 21px; }
.trace-step > p:last-child { max-width: 67ch; }
.journey-footer { border: 0; padding-top: 12px; }
#journey-status { font-size: 13px; }
.diagram-note { margin: 15px 0 0; }
.section-base { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 18px; padding: 4px 8px 1px; color: #264831; }
.section-base span { width: 52px; height: 4px; background: #3b5b46; clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%); }
.section-base b { font: 5px/1.5 var(--display); letter-spacing: 1px; }
.reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.architecture-section { display: flex; flex-direction: column; padding: 5px; }
.reading-title { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 5px 10px 5px 5px; }
.reading-title h2 { margin: 0; font-size: 10px; line-height: 1.5; color: #193d27; letter-spacing: 0; }
.reading-title .dots { margin-left: auto; flex: 0 0 16px; background-image: radial-gradient(#244b32 1px, transparent 1px); }
.section-number { display: grid; place-items: center; align-self: stretch; flex: 0 0 32px; min-height: 28px; color: #c9f5d6; font: 17px/1 var(--body); background: #385943; border: 1px solid #254630; box-shadow: inset 1px 1px #1b3825, 1px 1px #edfff0; }
.reading-body { flex: 1; padding: 20px; border: 1px solid #254932; border-top: 0; background: repeating-linear-gradient(0deg, #c9ffd705 0 1px, transparent 1px 3px), linear-gradient(130deg, #1a3928, #102e20); }
.reading-body p { margin: 0; color: #cfdfd5; font-size: 17px; line-height: 1.55; }
.reading-body p + p { margin-top: 13px; }
.architecture-section:target { outline: 2px solid #d5ffe2; outline-offset: 4px; }
.document-exit { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 3px double #afcfb9; padding: 12px; background: linear-gradient(90deg, #263f2fee, #132a1fee); }
.document-exit > span { font: 7px/1.6 var(--display); color: #b2cebd; }
.document-exit .action-button { margin: 0; min-height: 44px; min-width: 220px; }
.document-exit .text-link { margin: 0; font-size: 14px; }
.project-intro { grid-template-columns: minmax(0, 1fr) 180px; }
.project-intro .lead { margin-bottom: 17px; }
.project-facts { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 9px; background: linear-gradient(100deg, #8fa997, #b9d0c1, #739582); border: 1px solid #40634b; }
.project-facts > div { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 14px 10px; color: #c9f4d4; background: #183725; border: 1px solid #294e35; box-shadow: inset 1px 2px 4px #0d2014, 0 1px #e5ffed; }
.project-facts dt { font: 6px/1.7 var(--display); color: #b6d2c0; }
.project-facts dd { margin: 7px 0 0; font-size: 24px; }
.representative-card { display: flex; flex-direction: column; margin: 0; }
.representative-card > .section-base { order: 1; }
.representative-portrait { position: relative; margin: 5px 0; border: 1px solid #193e27; }
.representative-portrait:after { content: ''; position: absolute; pointer-events: none; inset: 0; box-shadow: inset 0 0 20px #04180c; border: 1px solid #d1ffdd44; }
.representative-card figcaption { display: flex; align-items: center; gap: 24px; padding: 22px; color: #ccdfd2; background: #183b29; border: 1px solid #3b664a; }
.representative-card h2 { margin: 0 0 6px; font-size: 12px; }
.representative-card p { margin: 0; font-size: 16px; }
.identity-mark { font: italic 28px/1 var(--display); letter-spacing: -3px; color: #c9ffd7; padding: 10px 20px 10px 0; border-right: 1px solid #87ad94; }
.project-status .reading-body { padding: 23px; }
.development-label { display: flex; align-items: center; gap: 8px; font: 7px/1.7 var(--display) !important; color: #ceeed8 !important; }
@container (max-width: 680px) {
  .document-intro { grid-template-columns: 1fr; }
  .document-intro .chapter-scene img { height: auto; aspect-ratio: 2.3; object-position: 50% 33%; }
  .reading-grid { grid-template-columns: 1fr; }
  .section-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .node-screen { padding: 12px 9px; }
  .node-screen .module-icon { display: none; }
  .project-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-facts dd { font-size: 21px; }
}
@container (max-width: 440px) {
  .intro-copy { padding: 23px 18px; }
  .instrument-body { padding: 17px 12px; }
  .instrument-title { font-size: 6px; padding: 8px; }
  .instrument-title > span:nth-child(2) { display: none; }
  .instrument-title:after { margin-left: auto; }
  .section-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-index a:first-child { grid-column: 1 / -1; }
  .state-journey h2 { font-size: 13px; }
  .architecture-map { padding: 12px; }
  .map-bank { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .bank-link { width: 38px; height: 30px; justify-self: center; transform: rotate(90deg); }
  .map-domain { display: block; font-size: 8px; }
  .map-domain small { display: block; margin-top: 4px; font-size: 5px; }
  .node-screen { min-height: 75px; gap: 14px; padding: 14px; }
  .node-screen .module-icon { display: block; }
  .node-screen h3 { font-size: 21px; }
  .node-screen p { font-size: 14px; }
  .seam-bridge { height: 64px; margin-bottom: 6px; }
  .seam-bridge svg { width: 100%; }
  .seam-bridge > span { top: 26px; font-size: 5px; }
  .step-selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-selectors button { font-size: 13px; padding: 6px 3px; }
  .step-selectors b { margin-right: 2px; padding: 2px 4px; }
  .step-readout { padding: 15px; min-height: 245px; }
  .trace-step h3 { font-size: 20px; }
  .trace-step > p:last-child { font-size: 17px; }
  .reading-body { padding: 18px; }
  .reading-title h2 { font-size: 10px; }
  .document-exit { flex-direction: column; align-items: stretch; }
  .document-exit .action-button { min-width: 0; }
  .project-facts { gap: 4px; padding: 5px; }
  .project-facts > div { padding: 10px 5px; }
  .project-facts dt { font: 10px/1.4 var(--body); }
  .project-facts dd { font-size: 18px; }
  .representative-card figcaption { display: block; padding: 18px; }
  .identity-mark { display: block; width: fit-content; border-right: 0; border-bottom: 1px solid #749e82; padding: 0 0 12px; margin-bottom: 13px; }
}
@media (max-width: 860px) { .reading-page { padding-top: 25px; } .reading-page .content-window { grid-column: 2; } }
@media (max-width: 620px) { .reading-page .stage-annotation { display: none; } .reading-page .window-title { margin-bottom: 12px; } }
@media print {
  .reading-page .window-title, .section-index, .section-base, .node-ports, .document-exit, .project-facts { display: none; }
  .reading-page .window-body, .reading-grid { display: block; }
  .metal-section, .intro-copy, .instrument-body, .reading-body, .reading-title, .step-readout { color: black; background: white; border: 0; box-shadow: none; }
  .metal-section { margin-bottom: 20px; break-inside: avoid; }
  .metal-section:before { display: none; }
  .reading-body p, .reading-title h2 { color: black; }
  .document-intro { display: block; }
  .chapter-scene { display: none !important; }
}
