.chapter { color: var(--white-alpha-muted); font-family: var(--font-family-base); font-size: var(--font-prose); line-height: var(--line-height-loose); padding: var(--space-xl) 0; } .chapter-title { color: var(--tab-accent); font-family: var(--font-family-heading); font-size: var(--font-hero); font-weight: var(--font-weight-semibold); margin: 0 0 var(--space-xl); } .chapter-section { border-top: var(--border-s) solid var(--white-alpha-border); display: grid; gap: var(--space-xxl); grid-template-columns: 1fr; padding: var(--space-section) 0; } .chapter-section:first-of-type { border-top: 0; padding-top: 0; } .chapter-section-title { color: var(--tab-accent); font-family: var(--font-family-heading); font-size: var(--font-xxl); font-weight: var(--font-weight-semibold); margin: 0 0 var(--space-md); } .chapter-subsection-title { color: var(--tab-accent); font-family: var(--font-family-heading); font-size: var(--font-lg); font-weight: var(--font-weight-medium); margin: var(--space-xxl) 0 var(--space-sm); } .chapter-label { display: inline-block; font-family: var(--font-family-base); font-size: var(--font-sm); margin: 0 var(--space-sm) 0 0; min-width: var(--size-icon-inline); vertical-align: middle; } .chapter-text { margin: 0 0 var(--space-lg); } .chapter-lead { color: var(--white-alpha-secondary); font-size: var(--font-xl); } .chapter-prose strong { color: var(--white-alpha-tertiary); font-weight: var(--font-weight-semibold); } .chapter-prose em { color: var(--white-alpha-secondary); } .chapter-prose code { background: var(--overlay-subtle); border-radius: var(--radius-xs); color: var(--text-light-gray); font-family: var(--font-family-mono); font-size: var(--font-sm); padding: 0 var(--space-xxs); } .chapter-prose .block-text { color: inherit; font-size: inherit; line-height: inherit; margin: 0 0 var(--space-lg); } .chapter-prose .block-list ul, .chapter-prose .block-list ol { color: inherit; font-size: inherit; line-height: inherit; padding-left: var(--space-lg); } .chapter-prose .block-list li { margin-bottom: var(--space-xs); } .chapter-prose .block-lesson .chapter-text:last-child { margin-bottom: 0; } .chapter-cite { background: var(--pag-tint); border: var(--border-s) solid var(--pag-outline); border-radius: var(--radius-xs); color: var(--tab-accent); font-family: var(--font-family-mono); font-size: var(--font-xs); padding: 0 var(--space-xxs); white-space: nowrap; } .chapter-cite:hover { background: var(--pag-soft); } .chapter-mark { color: var(--white-alpha-muted); font-family: var(--font-family-mono); font-size: var(--font-xs); margin-right: var(--space-xs); } .chapter-tag { text-transform: lowercase; } .chapter-panels { display: flex; flex-direction: column; gap: var(--space-lg); justify-content: center; min-width: 0; } .chapter-panel { background: var(--card-bg); border: var(--border-s) solid var(--white-alpha-border); border-radius: var(--radius-md); display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .chapter-panel:target { border-color: var(--tab-accent); } .chapter-panel .block-figure { margin: 0; } .chapter-panel .figure-caption { background: var(--accent-subtle); border-bottom: var(--border-s) solid var(--white-alpha-border); color: var(--tab-accent); font-family: var(--font-family-heading); font-size: var(--font-sm); font-weight: var(--font-weight-semibold); padding: var(--space-sm) var(--space-md); } .chapter-panel .diagram-block, .chapter-panel .code-block { background: transparent; border: 0; border-radius: 0; margin: 0; } .chapter-panel .block-figure, .chapter-panel .code-block, .chapter-panel .diagram-figure { display: flex; flex: 1; flex-direction: column; min-height: 0; } .chapter-panel .code-content { flex: 1; max-height: none; min-height: 0; } .chapter-panel .diagram-canvas { aspect-ratio: var(--diagram-ratio); flex: 0 1 auto; height: auto; max-height: none; min-height: 0; } .chapter-panel .diagram { max-height: none; overflow: auto; padding: var(--space-md); } .chapter-panel .compare-grid { grid-template-columns: 1fr; margin: 0; padding: var(--space-md); } .chapter-panel-footer { display: grid; gap: var(--space-lg); grid-column: 1 / -1; grid-template-columns: 1fr; min-width: 0; } .chapter-panel-footer .code-content { max-height: var(--height-code-collapsed); } .chapter-panel-footer .diagram-canvas { max-height: var(--height-diagram-collapsed); } .chapter-panel-footer .chapter-panel-wide { grid-column: 1 / -1; } .chapter-panel-footer .chapter-panel-wide .diagram-canvas { max-height: calc(var(--vh) * var(--panel-wide-vh)); min-height: var(--height-code-collapsed); } .chapter-panel .definition-holder { max-height: calc(var(--vh) * var(--panel-wide-vh)); overflow: auto; overscroll-behavior: contain; } @media (width >= 56.25rem) { .chapter-section-paired { align-items: center; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); } .chapter-section-paired > .chapter-panels { height: 0; min-height: var(--percent-full); } .chapter-section-paired > .chapter-panels > .chapter-panel { flex: 1 1 0; max-height: max-content; } .chapter-panel-footer { grid-template-columns: repeat(var(--panel-footer-columns), minmax(0, 1fr)); } }