# presentation/styles/chapter.panel.style.css

> 108 lines of code and 0 definitions.

Tree: Site tree
Language: css
Layer: product
Canonical: https://banes-lab.com/anatomy/tree#file-presentation-styles-chapter-panel-style-css
Source text: https://banes-lab.com/source/tree/presentation/styles/chapter.panel.style.css.txt

Listed in [presentation/styles](https://banes-lab.com/api/source/tree/presentation/styles.md), after [presentation/styles/card.style.css](https://banes-lab.com/source/tree/presentation/styles/card.style.css.md) and before [presentation/styles/chapter.style.css](https://banes-lab.com/source/tree/presentation/styles/chapter.style.css.md).

## Source

```css
.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;
    transition: border-color var(--transition-base);
}

.chapter-panel:target,
.chapter-panel-cited {
    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: minmax(0, 1fr);
    margin: 0;
    padding: var(--space-md);
}

.chapter-panel-footer {
    display: grid;
    gap: var(--space-lg);
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 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 > .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));
    }
}
```
