/* SPDX-License-Identifier: Apache-2.0 */
/* Join the reading surfaces with sculpted separators, offset scenes and chapter spines. */
h3, h4 { font-family: var(--display); font-weight: 400; }
.reading-body > p, .chapter-body .reading-body > p { line-height: 1.7; max-width: 64ch; }
.reading-body p + p { margin-top: 20px; }
.reading-title h2 { font-size: 12px; line-height: 1.7; }
.margin-note h3 { font: 12px/1.75 var(--display); }
.node-screen h3 { font: 12px/1.6 var(--display); }
.node-screen p { font: 14px/1.55 var(--body); }
.trace-step h3, .container-readout h3 { font: 16px/1.6 var(--display); }
.continuity-path h3 { font: 15px/1.6 var(--display); }
.definition-register dt, .capability-register dt { font: 12px/1.8 var(--display); }
.specification-plate dd { font-size: 17px; line-height: 1.6; }
.project-facts dd { font-size: 20px; line-height: 1.5; }
.reading-body .eyebrow { font: 9px/1.8 var(--display); letter-spacing: .7px; }
.manual-heading .lead { font-size: 23px; line-height: 1.5; }
.manual-heading > p:last-child { line-height: 1.7; }
.intro-copy .lead { line-height: 1.6; }
.module-content { font-size: 17px; line-height: 1.5; }
.chapter-navigation a { font-size: 14px; }
.section-index a { font-size: 13px; line-height: 1.5; }
.metal-divider { position: relative; height: 88px; min-width: 0; margin: 0; background: url('../img/section-divider.svg') center 17px / 100% 69px no-repeat; pointer-events: none; }
.metal-divider > span { position: absolute; top: 0; left: 4%; color: #b2d7bd; font: 7px/1.7 var(--display); letter-spacing: 1.5px; }
.metal-divider > i { position: absolute; top: 7px; right: 3%; width: 17%; height: 5px; background: repeating-linear-gradient(110deg, #9fbca755 0 1px, transparent 1px 5px); border-right: 22px solid #89aa95; }
.metal-divider.compact { height: 63px; background-position-y: 9px; background-size: 100% 51px; }
.metal-divider.compact > span { top: -4px; font-size: 6px; }
.site-shell > .metal-divider { background-color: #0b2316; border-block: 1px solid #476852; margin: 0; height: 96px; background-position: center 21px; }
.site-shell > .metal-divider > span { top: 7px; }
.site-shell > .metal-divider > i { top: 14px; }
.heading-rule { width: 100%; height: 26px; box-shadow: none; background: url('../img/section-divider.svg') center / 100% 26px no-repeat; }
.reading-title .dots { height: 8px; width: 32px; flex-basis: 32px; background: repeating-linear-gradient(110deg, #244b32 0 2px, transparent 2px 4px); opacity: .7; }
.instrument-title, .reading-title { border-top: 2px solid #e3f9e6; }
.metal-section:after { content: ''; position: absolute; right: 10px; bottom: -5px; width: 23%; height: 8px; background: linear-gradient(#d4ecdb, #5c7b66); clip-path: polygon(7px 0,100% 0,calc(100% - 11px) 100%,0 100%); pointer-events: none; }
.section-base { min-height: 24px; }
.section-base span { width: 68px; height: 7px; background: repeating-linear-gradient(110deg, #294d35 0 4px, transparent 4px 6px); clip-path: none; }
.section-base b { font-size: 6px; }
.reading-page .window-body { gap: 24px; }

/* Keep an offset reading surface inside the architecture illustration. */
.architecture .document-intro { grid-template-columns: minmax(0,1fr) minmax(0,1fr); isolation: isolate; }
.architecture .document-intro .chapter-scene { grid-column: 1/-1; grid-row: 1; position: relative; min-height: 570px; overflow: hidden; }
.architecture .document-intro .chapter-scene img { position: absolute; inset: 0; height: 100%; object-position: 42% 45%; }
.architecture .document-intro .chapter-scene:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 30%,#0d251760); pointer-events: none; }
.architecture .document-intro .chapter-scene figcaption { position: absolute; z-index: 1; inset: auto 0 0; font-size: 6px; }
.architecture .document-intro .intro-copy { grid-column: 2; grid-row: 1; align-self: center; z-index: 2; margin: 66px 18px 58px -28px; padding: 26px; border: 5px ridge #a1bda9; box-shadow: 6px 8px 18px #00110799; background: linear-gradient(120deg,#173c2af5,#0d281cf5); }
.architecture .intro-copy:before { content: ''; position: absolute; height: 9px; width: 120px; background: var(--metal); margin-top: -39px; clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%); }
.architecture .intro-copy h1 { font-size: 25px; }
.architecture .intro-copy > p:last-child { font-size: 17px; line-height: 1.7; }
.ccir-heading { border: 5px ridge #a1bda9; margin: 32px -48px 78px 20px; background: linear-gradient(115deg,#102b1ef5,#102b1eef); box-shadow: 4px 7px 12px #06190a77; }
.ccir-heading .lead { font-size: 25px; }
.ccir-expansion { font-size: 19px; line-height: 1.5; }
.ccir-heading > p:last-of-type { line-height: 1.6; }
.representative-card { display: grid; grid-template-columns: 1.05fr 1fr; }
.representative-card .instrument-title, .representative-card > .section-base { grid-column: 1/-1; }
.representative-portrait { grid-row: 2; grid-column: 1/-1; margin-bottom: 0; }
.representative-portrait img { min-height: 460px; object-fit: cover; }
.representative-card figcaption { position: relative; z-index: 1; grid-row: 2; grid-column: 2; align-self: end; display: block; margin: 30px 16px 32px -24px; padding: 25px; border: 5px ridge #a1bda9; background: #102d1ff2; box-shadow: 3px 5px 12px #01180d99; }
.representative-card .identity-mark { display: block; border: 0; border-bottom: 1px solid #719b7e; padding: 0 0 17px; margin-bottom: 20px; }
.representative-card h2 { line-height: 1.8; }
.representative-card p { font-size: 17px; line-height: 1.65; }

/* Related subjects use unequal facing plates joined by a shared seam. */
.layout-spread, .project-methods { display: grid; grid-template-columns: 1.12fr 1fr; align-items: start; gap: 24px 16px; padding: 8px; border-block: 1px solid #8fac99; background: linear-gradient(90deg,#0a231611 51.5%,#92b19d 51.7%,#183e2766 52%,transparent 52.3%); }
.layout-spread > .metal-section:nth-child(even), .project-methods > .metal-section:nth-child(even) { margin-top: 55px; }
.layout-spread .reading-title, .project-methods .reading-title { align-items: start; padding-block: 10px; }
.layout-spread .section-number, .project-methods .section-number { align-self: start; min-height: 30px; }
.layout-spread .reading-body, .project-methods .reading-body { padding: 25px 22px; }
.layout-spread .reading-body > p, .project-methods .reading-body > p { font-size: 18px; line-height: 1.7; }
.layout-spread > .metal-section:nth-child(4) .reading-body { background: linear-gradient(135deg,#c9e1ce,#a1bdab); }
.layout-spread > .metal-section:nth-child(4) .reading-body p, .layout-spread > .metal-section:nth-child(4) .reading-body a { color: #153921; }
.inset-reading { margin-left: 9%; }
.inset-reading .reading-body { padding: 30px; border-left: 7px ridge #9ab5a1; }
.inset-reading .reading-title { padding-block: 13px; }
.inset-reading:before { left: -40px; width: 29px; top: 24px; height: 200px; transform: none; border: 0; background: url('../img/vertical-spine.svg') center / 100% 100% no-repeat; box-shadow: none; pointer-events: none; }
.definition-register > div, .capability-register > div { grid-template-columns: 205px minmax(0,1fr); }
.definition-register dd, .capability-register dd { font-size: 17px; line-height: 1.7; }
.capability-register > div:nth-child(even) { margin-left: 20px; }
.definition-register dt:after, .capability-register dt:after { width: 70px; height: 6px; }

/* Long chapters share a continuous spine and attached marginal notes. */
.chapter-sequence { position: relative; min-width: 0; padding-left: 62px; background: linear-gradient(90deg,transparent 22px,#173921 23px,#b7d8c0 25px,#41694d 29px,transparent 32px),linear-gradient(100deg,#0f2a1c77,transparent); border-top: 1px solid #99bfa7; }
.chapter-sequence:before { content: ''; position: absolute; top: 6px; left: 4px; width: 42px; height: 240px; border: 0; background: url('../img/vertical-spine.svg') center / 100% 100% no-repeat; pointer-events: none; }
.chapter-sequence .technical-chapter { padding: 36px 0 24px; margin: 0; border: 0; border-bottom: 1px solid #718f7b88; background: none; box-shadow: none; }
.chapter-sequence .technical-chapter:before { left: -44px; top: 45px; width: 20px; height: 15px; transform: none; box-shadow: none; background: var(--metal); clip-path: polygon(0 0,100% 0,100% 65%,60% 100%,0 100%); }
.chapter-sequence .technical-chapter:after { display: none; }
.chapter-sequence .technical-chapter:first-child:before { display: none; }
.chapter-sequence .reading-title { padding: 0 0 24px; min-height: 62px; background: none; border: 0; align-items: center; gap: 20px; }
.chapter-sequence .section-number { min-width: 50px; align-self: stretch; border: 0; border-right: 3px double #92bba0; color: #a2c7af; background: none; box-shadow: none; padding-right: 17px; font: 35px/1 var(--body); }
.chapter-sequence .reading-title h2 { font: 18px/1.7 var(--display); color: #d6f9e0; max-width: 34ch; }
.chapter-sequence .reading-title .dots { margin-left: auto; background: repeating-linear-gradient(110deg,#91b49a 0 2px,transparent 2px 4px); }
.chapter-sequence .chapter-body { grid-template-columns: minmax(0,1fr) 210px; gap: 26px; align-items: start; }
.chapter-sequence .reading-body { padding: 4px 0 20px; border: 0; background: none; }
.chapter-sequence .reading-body > p { font-size: 18px; line-height: 1.75; }
.chapter-sequence .margin-note { position: relative; margin-top: 57px; padding: 15px 17px 20px; border: 0; border-top: 5px solid #9abbA4; border-bottom: 1px solid #7c9e86; border-left: 3px solid #6e927a; background: #0b2418; box-shadow: none; }
.chapter-sequence .margin-note:before { content: ''; position: absolute; width: 25px; height: 5px; top: -5px; left: -27px; background: #9abba4; }
.chapter-sequence .margin-note:after { content: ''; display: block; height: 7px; width: 100%; margin-top: 23px; background: repeating-linear-gradient(90deg,#a6c7b055 0 1px,transparent 1px 7px); }
.chapter-sequence .note-index { padding: 0; margin: 0; border: 0; color: #abcdb5; background: none; font-size: 7px; line-height: 1.9; }
.chapter-sequence .margin-note h3 { font-size: 11px; line-height: 1.8; }
.chapter-sequence .margin-note p { font-size: 16px; line-height: 1.7; }
.chapter-sequence .technical-chapter:nth-child(3) .margin-note { background: linear-gradient(135deg,#c6ddcb,#9bb7a4); border-color: #c9e6d1; color: #173d24; box-shadow: inset 0 0 0 4px #7f9d88; }
.chapter-sequence .technical-chapter:nth-child(3) .margin-note h3, .chapter-sequence .technical-chapter:nth-child(3) .note-index { color: #173d24; }
.chapter-sequence .section-base { background: url('../img/section-divider.svg') right center / 64% 28px no-repeat; padding-right: 0; min-height: 29px; }
.chapter-sequence .section-base span { background: none; }
.chapter-sequence .section-base b { color: #bad7c4; background: #102c1e; padding: 6px; margin-right: 8%; font-size: 5px; }
.manual-cover .specification-plate { padding-top: 8px; gap: 7px; background: #163422; }
.manual-cover .instrument-title { padding-block: 12px; }
.manual-cover .manual-heading { padding: 38px 106px 38px 32px; }
.manual-heading:after { top: 17px; bottom: 17px; right: 16px; width: 64px; border: 0; background: url('../img/vertical-spine.svg') center / 100% 100% no-repeat; transform: none; opacity: 1; pointer-events: none; }

/* The overview pairs a featured scene with a staggered technical spread. */
.ccir-feature { grid-template-columns: .9fr 1.2fr; padding: 10px; }
.ccir-feature-copy { position: relative; margin: 45px -15px 55px 22px; z-index: 1; border: 5px ridge #a6c2af; padding: 30px; box-shadow: 4px 6px 12px #07180b88; }
.ccir-feature-image { grid-row: 1; grid-column: 1/-1; min-height: 480px; }
.ccir-feature-image img { max-height: 600px; object-position: 50% 40%; }
.ccir-feature-copy { grid-row: 1; grid-column: 1; background: #102c1ff5; align-self: center; }
.ccir-feature-label { z-index: 2; bottom: 23px; right: 31px; background: #102c1fdd; padding: 7px 10px; }
.overview-brief { padding: 30px 36px 38px; background: #0b2719; }
.overview-brief-body { grid-template-columns: 1.1fr 1fr; gap: 20px; padding: 0; background: none; border: 0; }
.overview-brief article { position: relative; padding: 28px; border: 1px solid #9cbea7; border-top: 6px ridge #bfdac6; background: linear-gradient(130deg,#1c3e29,#0c2719); box-shadow: 3px 5px #02190d; }
.overview-brief article:nth-child(2) { margin-top: 50px; background: linear-gradient(130deg,#cee3d2,#9ab6a3); }
.overview-brief article:nth-child(2) h2, .overview-brief article:nth-child(2) p, .overview-brief article:nth-child(2) a, .overview-brief article:nth-child(2) .brief-index { color: #183c24; }
.overview-brief article:after { content: ''; display: block; height: 33px; margin-top: 25px; background: url('../img/section-divider.svg') center / 100% 33px no-repeat; }
.overview-brief p { font-size: 18px; line-height: 1.7; }

@container (max-width: 780px) {
  .layout-spread, .project-methods { grid-template-columns: 1fr; padding: 0; border: 0; background: none; gap: 25px; }
  .layout-spread > .metal-section:nth-child(even), .project-methods > .metal-section:nth-child(even) { margin-top: 0; margin-left: 6%; }
  .chapter-sequence { padding-left: 45px; background-position: -9px 0,0 0; }
  .chapter-sequence:before { left: 0; width: 32px; height: 200px; }
  .chapter-sequence .technical-chapter:before { left: -36px; }
  .chapter-sequence .chapter-body { grid-template-columns: 1fr; }
  .chapter-sequence .margin-note { margin-top: 0; margin-left: 15%; }
  .chapter-sequence .margin-note:before { width: 24px; left: -27px; }
  .chapter-sequence .reading-title h2 { font-size: 16px; }
  .chapter-sequence .reading-title .dots { display: none; }
}
@container (max-width: 720px) {
  .architecture .document-intro { display: flex; flex-direction: column; }
  .architecture .document-intro .intro-copy { margin: 18px 12px 0; padding: 24px; }
  .architecture .document-intro .chapter-scene { min-height: 260px; }
  .architecture .document-intro .chapter-scene img { height: 100%; aspect-ratio: auto; object-position: 45% 38%; }
  .architecture .intro-copy:before { display: none; }
  .ccir-heading { margin: 0; padding: 26px; }
  .representative-card { display: flex; }
  .representative-portrait img { min-height: 0; }
  .representative-card figcaption { margin: -24px 12px 10px; padding: 22px; }
  .definition-register > div, .capability-register > div { grid-template-columns: 1fr; }
}
@container (max-width: 440px) {
  .reading-title h2 { font-size: 10px; }
  .node-screen h3 { font-size: 12px; }
  .trace-step h3, .container-readout h3 { font-size: 14px; }
  .metal-divider { height: 70px; background-size: 100% 49px; }
  .metal-divider > span { font-size: 6px; letter-spacing: .5px; }
  .metal-divider > i { width: 12%; border-right-width: 10px; }
  .layout-spread > .metal-section:nth-child(even), .project-methods > .metal-section:nth-child(even) { margin-left: 0; }
  .layout-spread .reading-body, .project-methods .reading-body { padding: 22px 18px; }
  .chapter-sequence { padding-left: 26px; background-position: -20px 0,0 0; }
  .chapter-sequence:before { left: 0; width: 14px; height: 112px; }
  .chapter-sequence .technical-chapter { padding-top: 27px; }
  .chapter-sequence .technical-chapter:before { left: -26px; width: 11px; height: 10px; top: 37px; }
  .chapter-sequence .reading-title { gap: 10px; }
  .chapter-sequence .section-number { min-width: 29px; font-size: 25px; padding-right: 10px; }
  .chapter-sequence .reading-title h2 { font: 12px/1.8 var(--display); }
  .chapter-sequence .reading-body > p { font-size: 17px; line-height: 1.7; }
  .chapter-sequence .margin-note { margin-left: 0; padding: 15px; }
  .chapter-sequence .section-base { background-size: 100% 24px; }
  .chapter-sequence .section-base b { font-size: 4px; }
  .inset-reading { margin-left: 0; }
  .inset-reading:before { display: none; }
  .inset-reading .reading-body { padding: 22px 18px; }
  .manual-cover .manual-heading { padding: 26px 18px; }
  .manual-heading .lead { font-size: 20px; }
  .definition-register dt, .capability-register dt { font-size: 10px; }
  .capability-register > div:nth-child(even) { margin-left: 0; }
  .project-facts dd { font-size: 16px; }
}
@media (max-width: 860px) {
  .ccir-feature-copy { margin: 30px -15px 50px 14px; padding: 24px; }
  .ccir-feature h2 { font-size: 17px; }
}
@media (max-width: 620px) {
  .ccir-feature { display: flex; flex-direction: column; }
  .ccir-feature-image { min-height: 0; }
  .ccir-feature-copy { margin: -36px 10px 43px; padding: 24px 20px; }
  .ccir-feature-label { bottom: 18px; right: 16px; }
  .overview-brief { padding: 24px 16px; }
  .overview-brief-body { grid-template-columns: 1fr; }
  .overview-brief article { padding: 23px 19px; }
  .overview-brief article:nth-child(2) { margin-top: 5px; }
  .overview-brief h2 { font-size: 13px; }
  .site-shell > .metal-divider { height: 73px; background-size: 100% 49px; }
  .site-shell > .metal-divider > span { font-size: 6px; letter-spacing: .7px; }
}
@media print {
  .metal-divider, .heading-rule, .chapter-sequence:before, .metal-section:after, .chapter-sequence .technical-chapter:before, .inset-reading:before { display: none; }
  .chapter-sequence, .layout-spread, .project-methods { padding: 0; background: none; display: block; }
  .chapter-sequence .chapter-body { display: block; }
  .chapter-sequence .margin-note { margin: 12px 0; background: white !important; box-shadow: none !important; border: 1px solid #777; }
  .chapter-sequence .margin-note:before, .chapter-sequence .margin-note:after { display: none; }
  .inset-reading, .layout-spread > .metal-section, .project-methods > .metal-section { margin: 0 0 20px !important; }
  .architecture .document-intro .intro-copy, .ccir-heading { margin: 0; background: white; border: 0; box-shadow: none; }
  .representative-card { display: block; }
  .representative-card figcaption { margin: 0; background: white; border: 0; }
  .chapter-sequence .reading-title h2, .chapter-sequence .section-number { color: black; }
  .manual-cover .manual-heading { padding-right: 32px; }
}
