/* Shared course navigation: illustrated chapter rows within a responsive phase grid. */
.ai-page .ai-phases,.ps-page .ps-phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.ai-page .ai-phase,.ps-page .ps-phase{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:18px;border-radius:21px}
.ai-page .ai-phase-intro,.ps-page .ps-phase-heading{padding:0;min-height:38px}
.ai-page .ai-phase-intro h3,.ps-page .ps-phase-heading h3{font-size:21px;line-height:1.25}
.ai-page .ai-phase-intro p,.ps-page .ps-phase>p{font-size:12px;line-height:1.5;min-height:38px;margin:9px 0 18px}
.ai-page .ai-chapter-list,.ps-page .ps-module-rows{display:grid;gap:10px;margin-top:4px}
.ai-page .ai-chapter,.ps-page .ps-module-row{display:grid;grid-template-columns:96px minmax(0,1fr) 12px;gap:12px;align-items:center;min-height:95px;padding:11px;border-radius:13px;background:#fff;text-decoration:none;border:1px solid #dfe7ef}
.ai-page .ai-chapter>img,.ps-page .course-chapter-media>img{display:block;width:96px;height:54px;object-fit:cover;border-radius:6px}
.ps-page .course-chapter-media{position:relative;min-width:0}
.ps-page .course-chapter-media .ps-row-number{position:absolute;bottom:3px;left:3px;padding:3px 5px;border-radius:4px;background:#17265bf0;color:#fff;font:800 9px/1.1 Inter,system-ui,sans-serif}
.ai-page .ai-chapter-copy>strong,.ps-page .ps-row-copy strong{font-size:12px;line-height:1.35}
.ai-page .ai-chapter-copy>span,.ps-page .ps-row-copy small{font-size:10px;line-height:1.4;margin-top:5px}
.ai-page .ai-upcoming-grid,.ps-page .ps-future-groups{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
.ai-page #upcoming-chapters,.ps-page .ps-future-section{padding-top:32px}
@media(max-width:1150px){.ai-page .ai-phases,.ps-page .ps-phases{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ai-page .ai-phases,.ps-page .ps-phases{grid-template-columns:1fr}.ai-page .ai-upcoming-grid,.ps-page .ps-future-groups{grid-template-columns:1fr}.ai-page .ai-phase-intro,.ps-page .ps-phase-heading{min-height:0}.ai-page .ai-phase-intro p,.ps-page .ps-phase>p{min-height:0}.ai-page .ai-phase,.ps-page .ps-phase{padding:16px}}
@media(max-width:360px){.ai-page .ai-chapter,.ps-page .ps-module-row{grid-template-columns:78px minmax(0,1fr) 10px;gap:9px;padding:9px}.ai-page .ai-chapter>img,.ps-page .course-chapter-media>img{width:78px;height:44px}}

/* Give every chapter a readable, uncropped thumbnail above its text. */
.ai-page .ai-chapter,.ps-page .ps-module-row{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;min-height:0}
.ai-page .ai-chapter>img,.ps-page .course-chapter-media>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:0;background:#eef3f7}
.ps-page .course-chapter-media{display:block;width:100%;aspect-ratio:16/9}
.ai-page .ai-chapter-copy,.ps-page .ps-row-copy{display:block;padding:15px 17px 18px;min-width:0}
.ai-page .ai-chapter-copy>strong,.ps-page .ps-row-copy strong{font-size:16px;line-height:1.35;padding-right:14px}
.ai-page .ai-chapter-copy>span,.ps-page .ps-row-copy small{font-size:11px;line-height:1.45;margin-top:7px}
.ai-page .ai-chapter-copy>small{font-size:10px;margin-bottom:5px}
.ai-page .ai-chapter>b,.ps-page .ps-row-arrow{position:absolute;right:13px;bottom:19px;font-size:17px;line-height:1}
.ps-page .course-chapter-media .ps-row-number{bottom:8px;left:8px;padding:5px 7px;border-radius:5px;font-size:11px}
.ai-page .ai-chapter-list,.ps-page .ps-module-rows{gap:16px}
@media(max-width:760px){.ai-page .ai-chapter-copy,.ps-page .ps-row-copy{padding:15px 17px 18px}.ai-page .ai-chapter-copy>strong,.ps-page .ps-row-copy strong{font-size:17px}}
