body[data-view="demos"] #page-header{background:#f7fbfff2;padding:clamp(22px,4vw,38px);border-radius:18px;margin-top:12px}
body[data-view="demos"] #title{font-size:clamp(28px,4vw,46px);font-weight:800}
.demo-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:30px 0}
.demo-hub-card{display:flex;flex-direction:column;min-width:0;border-radius:22px;overflow:hidden;background:#edf7fc;border:1px solid #91b6cf55;box-shadow:0 12px 36px #27618a12}
.demo-hub-card>img{display:block;width:100%;height:auto;aspect-ratio:1.4;object-fit:cover}
.demo-hub-body{display:flex;flex-direction:column;flex:1;position:relative;margin:-24px 12px 12px;padding:24px 20px;background:#f8fcfff5;border-radius:20px}
.demo-hub-body h2{font-size:clamp(30px,3vw,40px);line-height:1.2;margin:0 0 14px;font-weight:800}
.demo-hub-body h3{font-size:clamp(21px,2vw,27px);line-height:1.25;margin:0 0 10px;font-weight:800;overflow-wrap:anywhere}
.demo-hub-slogan{font-weight:700;font-style:italic;line-height:1.5;margin:0 0 14px;font-size:19px}
.demo-hub-description{font-size:18px;line-height:1.65;margin:0 0 18px}
.demo-hub-body ul{font-size:17px;line-height:1.65;padding-left:24px;margin:0 0 22px}
.demo-hub-body li{padding-left:3px;margin:4px 0}.demo-hub-body li::marker{content:'✓  ';color:#246789;font-weight:800}
.demo-hub-body .demo-start{margin-top:auto;padding:14px 12px;font-size:19px}
.demo-results{background:#f7fbfff5;padding:clamp(22px,3vw,32px);border-radius:22px;margin:24px 0 50px}.demo-results>h2{font-size:clamp(25px,3vw,34px);line-height:1.25;margin:0 0 12px;font-weight:800}
.demo-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}.demo-result-item{padding:24px;border-radius:18px;background:#e5f5fd}.demo-result-item:nth-child(2){background:#fff2df}.demo-result-item:nth-child(3){background:#ece8ff}
.demo-result-item>span{font-size:16px;font-weight:700;color:#246789}.demo-result-item h3{font-size:27px;line-height:1.2;margin:12px 0}.demo-result-item p{font-size:17px;line-height:1.6;margin:0}
.demo-hub-entry{display:block;text-align:center;margin:8px 0 36px;padding:18px 24px;font-size:clamp(19px,2.5vw,25px);font-weight:800;border-radius:16px;background:#246789;color:white!important}
.level-course-actions{display:flex;gap:16px;flex-wrap:wrap;padding:24px;background:#f7fbfff2;border-radius:18px;margin:24px 0}.level-course-actions .action{margin:0;font-size:19px;font-weight:700}
body[data-view^="level"] .level-intro{padding:clamp(22px,4vw,34px);background:#f7fbfff2;border-radius:18px;max-width:none}
@media(max-width:1000px){.demo-hub-grid{grid-template-columns:1fr;max-width:720px;margin:30px auto}.demo-hub-card>img{aspect-ratio:1.65}.demo-hub-body{padding:26px}.demo-hub-description{font-size:19px}.demo-result-grid{grid-template-columns:1fr}}
@media(max-width:500px){.demo-hub-body{margin:-20px 8px 8px;padding:22px 18px}.demo-hub-card>img{aspect-ratio:1.3}.level-course-actions{flex-direction:column}.level-course-actions a{text-align:center}}

@media(min-width:1001px){.demo-hub-body h3{min-height:2.5em}.demo-hub-slogan{min-height:3em}}

.level3-illustrated{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);align-items:center;gap:28px}.level3-illustrated>img{display:block;width:100%;height:auto;border-radius:16px}.level3-illustrated>p{margin:0}@media(max-width:800px){.level3-illustrated{grid-template-columns:1fr;gap:22px}}

.level3-copy>p{margin:0 0 24px}.level3-copy .level-course-actions{background:none;padding:0;margin:0}.level3-copy .level-course-actions .action{margin:0}
body[data-view^="level"] #intro{font-weight:700}
body .routes-link h2{font-size:clamp(30px,4vw,40px);font-weight:800}body .routes-link p{font-size:clamp(21px,2.4vw,27px);font-weight:750;color:#173d55}

.level-course-actions .level-demo-link{flex-basis:100%;font-size:18px;font-weight:750;text-decoration:underline;text-underline-offset:4px;color:#176d88}.creator-role{display:block}

body.night-section[data-view="level3"] .direction-hero{min-height:0;margin:0 0 12px}body.night-section[data-view="level3"] .direction-hero>header{padding:16px 0}body.night-section[data-view="level3"] .level3-illustrated{margin-top:12px}

body[data-view="level3"] .level3-unified{margin:0;padding:clamp(22px,3vw,36px);grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}body[data-view="level3"] .level3-copy #intro{background:none;border:0;padding:0;margin:0 0 18px}body[data-view="level3"] .level3-copy #title{margin:10px 0;font-size:clamp(34px,4.5vw,56px)}body[data-view="level3"] .level3-copy #label{display:none}@media(max-width:800px){body[data-view="level3"] .level3-unified{grid-template-columns:1fr}}

body .level-unified{margin:0;padding:clamp(22px,3vw,36px);grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}body .level-unified .level3-copy #intro{background:none;border:0;padding:0;margin:0 0 18px}body .level-unified .level3-copy #title{margin:10px 0;font-size:clamp(34px,4.5vw,56px)}body .level-unified #label{display:none}
body.night-section[data-view="level4"] .direction-hero,body.night-section[data-view="level5"] .direction-hero{min-height:0;margin:0 0 12px}body.night-section[data-view="level4"] .direction-hero>header,body.night-section[data-view="level5"] .direction-hero>header{padding:16px 0}@media(max-width:800px){body .level-unified{grid-template-columns:1fr}}

@media(min-width:1200px){.demo-result-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.demo-result-item{padding:22px}.demo-result-item h3{font-size:25px}}@media(min-width:701px) and (max-width:1199px){.demo-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.demo-result-item:nth-child(4){background:#e3f4ec}

.demo-result-item:nth-child(1){background:linear-gradient(145deg,#f0fbff,#e0f2fc)}.demo-result-item:nth-child(2){background:linear-gradient(145deg,#eaf6ff,#d2e8fa)}.demo-result-item:nth-child(3){background:linear-gradient(145deg,#e0effc,#c3daf2)}.demo-result-item:nth-child(4){background:linear-gradient(145deg,#d5e5f6,#b3cce8)}

.demo-hub-description,.demo-description>p{white-space:pre-line}
@media(min-width:1001px){.demo-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Display only the illustration above the sample card text. */
.demo-hub-card[data-demo="6"]>img{aspect-ratio:1.5;object-fit:cover;object-position:center top}

.demo-hub-card[data-demo="5"]>img,.demo-hub-card[data-demo="6"]>img{aspect-ratio:1.4;object-fit:cover;object-position:center center}
