/* Study-page rhythm. Keep experimental padding/gap inside specimens editable. */
:root{--study-block-space:36px}
.section.container > :where(div,article,aside,form,figure,details,ul,ol,dl,table,pre) + :where(div,article,aside,form,figure,details,ul,ol,dl,table,pre){margin-block-start:var(--study-block-space)}
.section.container > :where(div,article,aside,form,figure,details,ul,ol,dl,table,pre) + :where(h3,h4){margin-block-start:40px}
.section.container > p + :where(div,article,aside,form,figure,details,ul,ol,dl,table,pre){margin-block-start:28px}
.section.container > :where(div,article,aside,form,figure,details,ul,ol,dl,table,pre) + p{margin-block-start:24px}
.section-head{margin-bottom:36px}
:is(.design-three,.principle-grid,.course-grid,.reference-grid,.js-lesson-grid,.review-blocks,.challenge-grid,.error-grid){gap:28px}
:is(.design-three article,.review-blocks article,.challenge-card,.source-card,.font-family-card) > h3{margin-bottom:18px}
:is(.section-head,.challenge-card,.source-card,.reference-content,.topic-sources,.lesson-completion) :where(p,li,dd){line-height:1.85}
.control-panel legend{margin-bottom:24px}.control-panel label{margin-top:24px;margin-bottom:12px}
.editor-actions{gap:14px}.editor-actions + :is(pre,p){margin-top:20px}
.review-exercise[open] > summary{margin-bottom:26px}
/* Standalone field labels must not run into the input on the same baseline. */
main label:has(+ :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea)){display:block;margin-block:20px 12px}
label[for=font-sample]{display:block;margin:24px 0 12px}
#font-sample{display:block;margin:0 0 28px;max-width:min(100%,520px)}
@media(max-width:600px){:root{--study-block-space:28px}.section-head{margin-bottom:28px}:is(.design-three,.principle-grid,.course-grid,.reference-grid,.js-lesson-grid,.review-blocks,.challenge-grid,.error-grid){gap:22px}.section.container > :where(div,article,aside,form,figure,details,ul,ol,dl,table,pre) + :where(h3,h4){margin-block-start:32px}.control-panel label{margin-top:22px}}
