/* Owner supplied demo backgrounds, original panels clipped without distortion. */
body.night-section[data-level][data-view="demo3"]{--demo-art:url('/course-art/demo-icao3-background-20261025.svg')}
body.night-section[data-level][data-view="demo4"]{--demo-art:url('/course-art/demo-icao4-background-20261025.svg')}
body.night-section[data-level][data-view="demo5"]{--demo-art:url('/course-art/demo-icao5-background-20261025.svg')}
body.night-section[data-level][data-view="demo3"]::before,body.night-section[data-level][data-view="demo4"]::before,body.night-section[data-level][data-view="demo5"]::before{background:linear-gradient(#edf7fb55,#f5faff66),var(--demo-art) center center/cover no-repeat!important}
body[data-view="demo3"] #page-header,body[data-view="demo4"] #page-header,body[data-view="demo5"] #page-header{background:#f7fbfff2;border:1px solid #8bb4cd66;border-radius:18px;padding:clamp(22px,4vw,38px);margin-top:12px}
body[data-view="demo3"] #title,body[data-view="demo4"] #title,body[data-view="demo5"] #title{font-weight:800}
body[data-view="demo3"] #intro,body[data-view="demo4"] #intro,body[data-view="demo5"] #intro{font-weight:700;font-style:italic;max-width:none}
body[data-view="demo3"] #intro:empty,body[data-view="demo4"] #intro:empty,body[data-view="demo5"] #intro:empty{display:none}
body[data-view="demo3"] .demo-description,body[data-view="demo4"] .demo-description,body[data-view="demo5"] .demo-description{background:#f7fbfff2;font-weight:400;font-size:clamp(18px,1.5vw,21px)}
body[data-view="demo3"] .top,body[data-view="demo4"] .top,body[data-view="demo5"] .top,body[data-view="demo3"] footer,body[data-view="demo4"] footer,body[data-view="demo5"] footer{background:#f7fbfff2;border-radius:18px;padding:20px}
body[data-view="demo3"] .back,body[data-view="demo4"] .back,body[data-view="demo5"] .back{background:#f7fbfff2;padding:9px 16px;border-radius:12px}

body .demo-start{display:block;text-align:center;width:100%;box-sizing:border-box;font-size:clamp(19px,2vw,23px);font-weight:700;padding:15px 22px;border-radius:14px;background:#246789;color:white;margin-top:26px}body .demo-start:hover{background:#1b5575}

body.night-section[data-level][data-view="demo3"]{--demo-panel-width:max(100vw,58.660999vh);--demo-sheet-ratio:3.0289855;--demo-height-ratio:1.7047101;--demo-centre:.5}
body.night-section[data-level][data-view="demo4"]{--demo-panel-width:max(100vw,58.342189vh);--demo-sheet-ratio:3.0455373;--demo-height-ratio:1.7140255;--demo-centre:1.5218579}
body.night-section[data-level][data-view="demo5"]{--demo-panel-width:max(100vw,58.660999vh);--demo-sheet-ratio:3.0289855;--demo-height-ratio:1.7047101;--demo-centre:2.5289855}
body.night-section[data-level][data-view="demo3"]::before,body.night-section[data-level][data-view="demo4"]::before,body.night-section[data-level][data-view="demo5"]::before{background-image:linear-gradient(#edf7fb55,#f5faff66),url('/course-art/demo-background-sheet-20261026.webp')!important;background-size:100% 100%,calc(var(--demo-panel-width)*var(--demo-sheet-ratio)) calc(var(--demo-panel-width)*var(--demo-height-ratio))!important;background-position:0 0,calc(50vw - var(--demo-panel-width)*var(--demo-centre)) calc((100vh - var(--demo-panel-width)*var(--demo-height-ratio))/2)!important;background-repeat:no-repeat!important}

body.night-section[data-level][data-view="demo3"]::before{background:linear-gradient(#edf7fb55,#f5faff66),url("/course-art/icao3-demo-weather-20261026.webp") center/cover no-repeat!important}

body.night-section[data-level][data-view="demo6"]{--demo-art:url('/course-art/demo-icao5-background-20261025.svg')}
body[data-view="demo6"] #page-header{background:#f7fbfff2;border:1px solid #8bb4cd66;border-radius:18px;padding:clamp(22px,4vw,38px);margin-top:12px}
body[data-view="demo6"] #title{font-weight:800}
body[data-view="demo6"] #intro{font-weight:700;font-style:italic;max-width:none}
body[data-view="demo6"] #intro:empty{display:none}
body[data-view="demo6"] .demo-description{background:#f7fbfff2;font-weight:400;font-size:clamp(18px,1.5vw,21px)}
body[data-view="demo6"] footer{background:#f7fbfff2;border-radius:18px;padding:20px}
body[data-view="demo6"] .back{background:#f7fbfff2;padding:9px 16px;border-radius:12px}
body.night-section[data-level][data-view="demo6"]::before{background:linear-gradient(#edf7fb55,#f5faff66),url("/course-art/icao6-demo-fire-20261026.webp") center/cover no-repeat!important}

body.night-section[data-level][data-view="demo6"]::before{background-image:linear-gradient(#edf7fb55,#f5faff66),url("/course-art/icao6-demo-fire-20261026.webp")!important;background-size:100% 100%,max(100vw,150vh) auto!important;background-position:0 0,center top!important;background-repeat:no-repeat!important}

body.night-section[data-level][data-view="demo5"]::before{background:linear-gradient(#edf7fb55,#f5faff66),url("/course-art/icao5-demo-fire-20261026.webp") center/cover no-repeat!important}
body.night-section[data-level][data-view="demo6"]::before{background:linear-gradient(#edf7fb55,#f5faff66),url("/course-art/icao6-demo-crew-dynamics-20261026.webp") center/cover no-repeat!important}
