.diagram-gallery { height: 100%; min-height: 100dvh; overflow: auto; scroll-padding-top: 2rem; padding: max(2rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(4rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: var(--color-ground); color: var(--color-text-primary); } .diagram-gallery-header, .diagram-gallery-section { width: min(100%, 76rem); margin-inline: auto; } .diagram-gallery-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-block-end: 3rem; } .diagram-gallery :is(h1, h2, h3, p, figure) { margin: 0; } .diagram-gallery-header h1 { font-size: var(--text-2xl); font-weight: 600; line-height: var(--text-2xl--line-height); } .diagram-gallery-header > div > p:last-child { max-width: 58ch; margin-block-start: 0.5rem; font-size: var(--text-sm); color: var(--color-text-secondary); } .diagram-gallery-header a { flex: 0 0 auto; font-size: var(--text-sm); font-weight: 500; color: var(--color-brand); } .diagram-gallery-kicker { margin-block-end: 0.5rem; font-size: var(--text-xs); font-weight: 600; color: var(--color-text-tertiary); } .diagram-gallery-section + .diagram-gallery-section { margin-block-start: 4rem; } .diagram-gallery-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-block-end: 1.5rem; } .diagram-gallery-section-heading h2 { font-size: var(--text-xl); font-weight: 600; line-height: var(--text-xl--line-height); } .diagram-gallery-section-heading > p { max-width: 36ch; font-size: var(--text-sm); color: var(--color-text-secondary); } .diagram-gallery-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; } .diagram-gallery-feature, .diagram-gallery-catalogue-preview { min-width: 0; padding: 1rem; border: var(--edge-width) solid var(--color-edge); border-radius: var(--radius-lg); background: var(--color-page); } .diagram-gallery-feature-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-block-end: 0.75rem; } .diagram-gallery-feature-heading h3 { font-size: var(--text-sm); font-weight: 600; } .diagram-gallery-feature-heading code { font-size: var(--text-xs); color: var(--color-text-tertiary); } .diagram-gallery-feature .ch-diagram { min-width: 0; } .diagram-gallery-feature { width: min(100%, 52rem); margin-inline: auto; } .diagram-gallery-specimen-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 0.75rem; margin-block-end: 1rem; } .diagram-gallery-document { container-type: inline-size; width: min(100%, 52rem); margin-inline: auto; border: var(--edge-width) solid var(--color-edge); border-radius: var(--radius-xl); background: var(--color-page); box-shadow: var(--shadow-raised); } .diagram-gallery-document .design-audit-static-plan, .diagram-gallery-document .plan-document { min-height: 0; height: auto; box-shadow: none; } .diagram-gallery-document .plan-content { padding-block-end: 0; } .diagram-gallery-document .diagram-gallery-document-diagrams { padding-block-start: 0; padding-block-end: 3rem; } .diagram-gallery-document figure { display: grid; gap: 0.5rem; margin-block: 1.5rem; } .diagram-gallery-document figcaption { font-size: var(--text-xs); color: var(--color-text-tertiary); } .diagram-gallery-unmounted { padding: 1rem; border: var(--edge-width) dashed var(--color-edge); border-radius: var(--radius-lg); background: var(--color-inset); } .diagram-gallery-catalogue { display: grid; grid-template-columns: minmax(14rem, 21rem) minmax(0, 1fr); align-items: start; gap: 1rem; } .diagram-gallery-types { display: grid; gap: 1.5rem; padding: 1rem; border: var(--edge-width) solid var(--color-edge); border-radius: var(--radius-lg); background: var(--color-page); } .diagram-gallery-family h3 { margin-block-end: 0.5rem; font-size: var(--text-sm); font-weight: 600; } .diagram-gallery-family ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; list-style: none; padding: 0; margin: 0; } .diagram-gallery-family button { width: 100%; min-height: 2rem; padding: 0.375rem 0.5rem; border: 0; border-radius: var(--radius-md); background: transparent; font-size: var(--text-xs); text-align: left; color: var(--color-text-secondary); cursor: pointer; } .diagram-gallery-family button:hover { background: var(--color-hover); color: var(--color-text-primary); } .diagram-gallery-family button[aria-current="true"] { background: var(--color-selected); color: var(--color-text-primary); font-weight: 600; } .diagram-gallery-catalogue-preview { position: sticky; top: 1rem; } .diagram-gallery-render-state { margin-block-end: 0.75rem; font-size: var(--text-xs); color: var(--color-text-tertiary); } @media (max-width: 42rem) { .diagram-gallery-header, .diagram-gallery-section-heading { align-items: start; flex-direction: column; gap: 0.5rem; } .diagram-gallery-catalogue { grid-template-columns: 1fr; } .diagram-gallery-catalogue-preview { position: static; } .diagram-gallery-document .plan-content { --plan-gutter: 1rem; } }