.morph-kit {
    --material-rule: #b9a494;
    display: grid;
    grid-template-columns: minmax(195px, 245px) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 68px);
    align-items: start;
    max-width: 1180px;
    margin: 20px auto 0;
    scroll-margin-top: 100px;
}
.morph-menu {
    display: grid;
    gap: 7px;
    padding-block: 10px;
    position: sticky;
    top: 96px;
}
.morph-menu h2 { margin: 0 0 12px; font-size: 1.35rem; }
.morph-menu a.button { justify-content: flex-start; background: transparent; border: 1px solid transparent; color: var(--section-deep); box-shadow: none; }
.morph-menu a.button:hover { background: var(--section-wash); }
.morph-menu a[aria-current="page"] { border-color: var(--section-line); background: var(--section-soft); }
.morph-menu .icon { flex: none; }
.morph-menu a:focus-visible, .handout-toolbar a:focus-visible { outline: 2px solid var(--section-deep); outline-offset: 2px; }
.morph-menu a:last-child { margin-top: 10px; }
.morph-toolbar, .morph-name { display: flex; align-items: center; gap: 12px; }
.morph-toolbar { justify-content: space-between; margin: 0 0 12px; color: #665144; }
.morph-paper {
    padding: clamp(18px, 4.8vw, 64px);
    color: #322a24;
    background: #fffefa;
    border: 1px solid #e2d4c7;
    border-top: 5px solid var(--section-accent);
    border-radius: 3px;
    box-shadow: 0 12px 35px #42210e0e;
}
.morph-paper__head { padding-bottom: 15px; border-bottom: 1px solid var(--material-rule); }
.morph-paper__head p { margin: 0; }
.morph-paper__head p:first-child, .morph-card__number { font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.morph-paper__head h2 { margin: .1em 0; font: bold clamp(2rem, 3vw, 3rem)/1.1 Georgia, serif; }
.morph-name { margin: 18px 0; font-size: .94rem; }
.morph-name span { flex: 1; border-bottom: 1px solid #a49284; height: 1.25em; }
.morph-exercises, .morph-answers { margin: 0; padding-left: 1.55em; }
.morph-exercises li { padding: 9px 0; }
.morph-exercises li::marker, .morph-answers li::marker { font-weight: 700; }
.morph-paper h3 { font: bold 1.32rem/1.18 Georgia, serif; margin: 0 0 .28em; }
.morph-exercises p, .morph-card p { margin: .3em 0; }
.morph-example { color: #754b22; font: italic 1.2rem/1.34 Georgia, serif; }
.morph-lines i { display: block; height: 1.6em; border-bottom: 1px solid #c9bfb6; }
.morph-print-tip { margin: 1em 0; }
.morph-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px dashed var(--material-rule); }
.morph-card { padding: clamp(15px, 2vw, 26px); }
.morph-card:nth-child(odd) { border-right: 1px dashed var(--material-rule); }
.morph-card:nth-child(n+3) { border-top: 1px dashed var(--material-rule); }
.morph-card .morph-card__number { margin: 0 0 1em; color: #70472d; }
.morph-card .morph-example { margin: .5em 0; }
.morph-paper .morph-answer-heading { margin: 1.1em 0 .5em; }
.morph-answers li { margin: .5em 0; }
.handout-toolbar, .handout-toolbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.handout-toolbar [aria-current="page"] { background: var(--section-soft); border-color: var(--section-line); color: var(--section-deep); }
.junior-handouts .morph-menu .button { white-space: normal; text-align: left; line-height: 1.35; }
.junior-handouts .morph-menu .button svg { flex-shrink: 0; }
.junior-handouts .morph-paper + .morph-paper { margin-top: 24px; }
.junior-handouts .morph-example { white-space: pre-line; font: 600 1.1em/1.55 "Segoe UI", Arial, sans-serif; }
.handout-hint { margin: .9em 0 .5em; }
@media screen and (max-width: 760px) {
    .morph-kit { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 12px; }
    .morph-menu { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .morph-menu h2 { grid-column: 1 / -1; margin: 0; }
    .morph-menu a.button { min-width: 0; justify-content: flex-start; padding: 8px; white-space: normal; line-height: 1.2; }
    .morph-menu a:last-child { margin: 0; }
    .morph-cards { grid-template-columns: minmax(0, 1fr); }
    .morph-card:nth-child(odd) { border-right: 0; }
    .morph-card + .morph-card { border-top: 1px dashed var(--material-rule); }
}
@media print {
    .morph-menu, .morph-toolbar { display: none !important; }
    .morph-kit, .morph-paper { display: block; margin: 0; padding: 0; background: #fff; border: 0; box-shadow: none; color: #111; font: 11pt/1.32 Arial, sans-serif; }
    .morph-paper__head { padding-bottom: 3mm; }
    .morph-paper__head h2 { font-size: 22pt; }
    .morph-paper h3 { font-size: 14pt; }
    .morph-name { margin: 4mm 0; }
    .morph-exercises li { break-inside: avoid; padding: 2mm 0; }
    .morph-example { color: #222; font-size: 12pt; }
    .morph-lines i { height: 7mm; border-color: #aaa; }
    .morph-card { min-height: 94mm; padding: 6mm; break-inside: avoid; }
    .morph-answers li { break-inside: avoid; }
    .junior-handouts .morph-paper { font-size: 12pt; }
    .junior-handouts .handout-student { font-size: 13pt; }
    .junior-handouts .morph-paper + .morph-paper { break-before: page; margin-top: 0; }
    .junior-handouts .morph-lines i { height: 10mm; }
}
