/* Give library names their natural width; scroll the comparison on narrow screens. */
.libraries-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.library-card{overflow:hidden;background:#fff;padding:22px}
.library-card .library-image{aspect-ratio:16/9;margin:-22px -22px 22px;background:white;border-bottom:1px solid #dce2db;overflow:hidden}
.library-image img{display:block;width:100%;height:100%;object-fit:contain}
.library-card:has(.library-image) h4{font-size:18px}
.library-card p{font-size:14px}
@media(max-width:900px){.libraries-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.libraries-grid{grid-template-columns:1fr}.library-card{padding:22px}}
.lesson-body .library-comparison{table-layout:auto;min-width:680px;overflow-wrap:normal;word-break:normal}
.lesson-body .library-comparison th:first-child,.lesson-body .library-comparison td:first-child{min-width:155px;width:18%;white-space:nowrap}
.lesson-body .library-comparison td:first-child a{display:inline;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.module-game{margin:24px 0}
.decision-game{background:#fff;border:1px solid #ccd8c7;border-radius:16px;padding:clamp(20px,3vw,32px);max-width:1100px}
.decision-game .game-label{font-size:13px;font-weight:750;letter-spacing:1.4px;color:#a53920;margin:0 0 12px}
.decision-game h3{margin:0 0 14px}
.game-options{display:grid;gap:12px;margin:22px 0}
.game-options button{font:inherit;line-height:1.5;text-align:left;white-space:normal;color:#102a43;background:#f7f5f2;border:1px solid #c9d2d8;border-radius:10px;padding:16px 20px;min-height:52px}
.game-options button:hover{border-color:#e24725;background:#fff3ee}
.game-options button[data-result=correct]{background:#e8f7ce;border-color:#769844}
.game-options button[data-result=retry]{background:#fff0e7;border-color:#c37850}
.game-feedback{min-height:110px;border-radius:10px;background:#edf1f4;color:#29475c;padding:20px;font-size:16px;line-height:1.7}
.game-feedback[data-result=correct]{background:#e8f7ce;color:#304a1c}
.game-feedback[data-result=retry]{background:#fff0e7;color:#713d26}
.game-reset,.lesson-body .game-jump{display:inline-block;margin-top:18px;padding:12px 18px;border:1px solid #102a43;background:#102a43;color:white;border-radius:8px;font-size:15px;font-weight:650;text-decoration:none}
.game-reset:hover,.lesson-body .game-jump:hover{background:#23465f;color:white}
.game-options button:focus-visible,.game-reset:focus-visible{outline:3px solid #e24725;outline-offset:3px}
@media(max-width:700px){.decision-game{padding:20px}.game-options button{padding:14px;font-size:16px}.game-feedback{min-height:150px}}

/* Compact disclosures preserve every definition and its module link. */
.academy-glossary{gap:8px;align-items:start}.glossary-entry{display:block;padding:0;background:#ffffffd9;border-radius:8px}.glossary-entry summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:15px 17px;cursor:pointer;list-style:none;font-size:15px;font-weight:700;line-height:1.4}.glossary-entry summary::-webkit-details-marker{display:none}.glossary-entry summary>span{font-size:22px;font-weight:400;color:#a73b22}.glossary-entry[open] summary>span{transform:rotate(45deg)}.glossary-entry summary:hover{background:#f4f7ef}.glossary-entry summary:focus-visible{outline:3px solid #e24725;outline-offset:2px;border-radius:8px}.glossary-definition{padding:0 17px 18px}.glossary-definition p{font-size:14px;line-height:1.7;margin:0 0 12px;color:#486270}.glossary-entry button{min-height:32px}.glossary-hint{font-size:13px;color:#536c60;margin:0 0 16px}.glossary-toolbar{margin-bottom:12px}

.route-row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.route-stage:nth-child(even) .route-row{direction:ltr}.route-stage:last-child .route-row{max-width:550px}.course-note{background:#eef3e8;border-left:4px solid #789750;border-radius:8px;padding:20px 24px;margin:24px 0;line-height:1.7}.course-note p{margin:8px 0 0}.course-prerequisites{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:20px 0 28px;font-size:14px}.course-link{font:inherit;border:1px solid #bdcbb5;border-radius:7px;background:#fff;padding:8px 12px;color:#102a43;cursor:pointer;text-align:left}.course-link:hover{border-color:#e24725}.course-practice{padding:24px;border:1px solid #c9d6bf;border-radius:12px;background:#f4f7ef;margin:32px 0}.course-review{border:1px solid #d1d9ce;border-radius:8px;margin:20px 0;padding:16px}.course-review summary{cursor:pointer;font-weight:700}.course-note strong{color:#304e24}.course-check{margin:22px 0;padding:20px;background:white;border:1px solid #cad5c3;border-radius:10px}.course-check label{display:flex;align-items:flex-start;gap:12px;margin:12px 0;line-height:1.6}.course-check input{width:20px;height:20px;flex:none;margin-top:4px;accent-color:#e24725}.course-check output{display:block;padding-top:15px;border-top:1px solid #dce4d7;font-weight:650}.course-check button{font:inherit;color:#102a43;background:#f7f5f2;border:1px solid #b9c7b1;border-radius:6px;padding:8px 12px}.course-link:focus-visible,.course-review summary:focus-visible{outline:3px solid #e24725;outline-offset:3px}@media(max-width:760px){.route-row,.route-stage:nth-child(even) .route-row{grid-template-columns:1fr}.course-practice,.course-note{padding:18px}.course-prerequisites{display:block}.course-link{display:block;margin:8px 0;width:100%}}
/* Option B: compact visual catalog. Module content remains unchanged. */
#modulos>.container{width:min(1400px,calc(100% - 64px))}
#modulos .section-heading{margin-bottom:24px}
#modulos .section-heading h2{font-size:clamp(30px,3.4vw,46px)}
#modulos .intro-entry{padding:16px 20px;gap:16px}
#modulos .intro-entry .bookend-symbol{width:40px;height:40px}
#modulos .intro-entry strong{font-size:18px}
#modulos .intro-entry small{margin-bottom:4px}
#modulos .course-stage-nav{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 26px}
.course-stage-nav a{padding:10px 16px;border:1px solid #d3dadc;border-radius:24px;font-size:14px;line-height:1.4;background:#fff;transition:background .15s,color .15s}
.course-stage-nav a:hover,.course-stage-nav a[aria-current]{background:var(--navy);color:#fff;border-color:var(--navy)}
.course-stage-nav a:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
#modulos .module-route{margin:0 0 20px}
#modulos .route-stage{padding:0 0 30px;scroll-margin-top:80px}
#modulos .route-stage::after,#modulos .route-row::before{display:none}
#modulos .stage-heading{gap:10px;margin:0 0 14px;flex-wrap:wrap}
#modulos .stage-index{background:none;color:var(--orange);padding:0;font-size:21px;border-radius:0}
#modulos .stage-heading h3{font-size:21px;line-height:1.3}
#modulos .stage-heading>span:last-child{font-size:13px}
#modulos .route-row,#modulos .route-stage:last-child .route-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:none;direction:ltr}
#modulos .route-stop{display:flex;flex-direction:column;align-items:stretch;gap:0;border:1px solid #d6ddda;border-radius:12px;overflow:hidden;background:#fff;transition:border-color .18s,box-shadow .18s}
#modulos .route-cover{display:block;height:150px;flex:none;width:100%;background:#eeefeb;overflow:hidden;border-bottom:1px solid #e5e8e3}
#modulos .route-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
#modulos .cover-contain{background:white}
#modulos .cover-contain img{object-fit:contain;padding:8px}
#modulos .cover-boat{background:#102a43}
#modulos .cover-boat img{object-fit:contain;padding:5px}
#modulos .route-card{padding:15px 17px 13px;min-height:0;border:0;border-radius:0;transform:none;box-shadow:none}
#modulos .route-card-heading{font-size:18px;line-height:1.35;letter-spacing:-.35px;margin:0 0 8px;overflow-wrap:break-word}
#modulos .route-number{color:#c43b1d;white-space:nowrap}
#modulos .route-description{font-size:16px;line-height:1.5;color:#566c7b;flex:1}
#modulos .route-meta{border:0;margin-top:12px;padding:0;gap:10px;flex-wrap:wrap}
#modulos .route-open{font-size:14px;font-weight:750;color:#bd361b;transform:none}
#modulos .route-media-count{font-size:12px;color:#667b87;transform:none}
#modulos .route-stop:hover,#modulos .route-stop:focus-visible{border-color:var(--orange);box-shadow:0 4px 14px #102a430c}
#modulos .route-stop:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
#modulos .route-stop:hover .route-card{transform:none;box-shadow:none}
#modulos .route-stop:hover img{transform:scale(1.025)}
#modulos .cover-costs{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:18px 22px;background:#102a43;color:white}
.costs-label{font-size:11px;font-weight:700;letter-spacing:1.4px;color:#b7ef4a}.costs-equation{font-size:17px;font-weight:650}.costs-rule{height:1px;background:#496272;width:100%}.costs-total{font-size:18px;font-weight:750}
@media(max-width:1000px){#modulos .route-row,#modulos .route-stage:last-child .route-row{grid-template-columns:repeat(2,minmax(0,1fr))}#modulos>.container{width:calc(100% - 40px)}}
@media(max-width:600px){#modulos .route-row,#modulos .route-stage:last-child .route-row{grid-template-columns:1fr;gap:14px}#modulos .route-cover{height:160px}#modulos .stage-heading h3{font-size:19px}#modulos .stage-heading>span:last-child{display:none}#modulos .route-card{padding:15px 17px}#modulos .course-stage-nav{gap:7px;margin:18px 0 24px}.course-stage-nav a{font-size:14px;padding:9px 12px}#modulos .intro-entry{padding:16px}#modulos .intro-entry .bookend-action{margin-left:56px}}
@media(prefers-reduced-motion:reduce){#modulos .route-stop,#modulos .route-cover img{transition:none}#modulos .route-stop:hover img{transform:none}}
@media(max-width:600px){#modulos .intro-entry{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:12px}#modulos .intro-entry .bookend-action{grid-column:2;margin:0;white-space:normal}#modulos .intro-entry small{font-size:12px;letter-spacing:1px}#modulos .intro-entry strong{font-size:18px;line-height:1.35}#modulos .intro-entry span>span{font-size:14px;line-height:1.5}}
