/* Shared treatment for the three educational directions; existing layout/components retained. */
:root{color-scheme:dark;--ink:#eaf6ff;--muted:#adccdf;--gold:#5bc7fa;--line:#9dcbe62b}
body.night-section{position:relative;isolation:isolate;background:#03101d;color:#eaf6ff;min-height:100vh}
body.night-section::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 95% 5%,#0b2e4c66,transparent 60%),linear-gradient(145deg,#01070f,#041525 65%,#071f31)}
.night-section a:focus-visible,.night-section button:focus-visible,.night-section summary:focus-visible{outline-color:#6ccfff}
.night-section .top,.night-section .nav{border-color:#9dcbe630}
.night-section .brand .site-logo{padding:0;background:transparent;border-radius:0}
.night-section .cabinet{border-color:#a3cce778;color:#eff8ff;background:#061b2c77;min-height:44px;display:inline-flex;align-items:center}
.night-section .cabinet:hover{background:#16364d}
.night-section .back,.night-section footer{color:#a9cce0;border-color:#9dcbe630}
.night-section .eyebrow,.night-section .number,.night-section .tag{color:#79d2ff}
.night-section h1,.night-section h2,.night-section h3{color:#eff9ff}
.night-section header p,.night-section .card p,.night-section .empty p,.night-section .lead,.night-section .intro,.night-section .article-note{color:#b4d2e5}
/* Reference photographs are decorative scenery, fading into the page rather than cards. */
.direction-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:420px;margin:8px 0 35px;overflow:hidden}
.direction-hero[data-direction="aviation"]{--direction-image:url("direction-aviation-night.jpg");--image-position:70% 0%}
.direction-hero[data-direction="technical"]{--direction-image:url("direction-technical-night.jpg");--image-position:70% 48%}
.direction-hero[data-direction="job"]{--direction-image:url("direction-interview-night-6c095f939e.webp");--image-position:80% 50%}
.direction-hero::before{content:"";position:absolute;inset:-8px;z-index:-2;pointer-events:none;background-image:var(--direction-image);background-position:var(--image-position);background-size:cover;filter:blur(1.5px);opacity:.8}
.direction-hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#03101d 0%,#03101de8 28%,#03101d66 65%,#03101d22),linear-gradient(180deg,#03101d 0%,transparent 24%,transparent 65%,#03101d 100%)}
.direction-hero>header{position:relative;min-width:0;width:100%;padding:45px 0;text-align:left}
.direction-hero .home-header{padding:45px 0;text-align:left}
.direction-hero .home-header h1{font-size:clamp(28px,4.2vw,51px)}
.direction-hero .home-header p{margin:0;color:#b4d2e5}
.night-section[data-view]:not([data-view="home"]) .direction-hero{min-height:300px}
.night-section .card,.night-section .empty,.night-section .article-card,.night-section .item,.night-section .notice,.night-section .lesson{background:linear-gradient(140deg,#0b2439eb,#071a2be8);border-color:#91c8e632;box-shadow:0 14px 45px #0002}
.night-section .card:hover,.night-section .item:hover{border-color:#5bbfee}
.night-section .go,.night-section .cp-source,.night-section .cp-copy,.night-section .cp-note{color:#7ed6ff}
.night-section .routes-link{background:linear-gradient(120deg,#10334a,#0a253c);border-color:#78c9ec45}
.night-section .article-card summary,.night-section .readable-story summary{background:linear-gradient(120deg,#0b2438,#0d2c43)}
.night-section .article-card summary::after{color:#7ed6ff}
.night-section .article-read-cta{background:#1489c2;color:#fff;box-shadow:0 6px 18px #0003}
.night-section .readable-story summary:hover .article-read-cta{background:#1c9bd5}
.night-section .readable-story[open] .article-read-cta{background:#17435d;color:#e8f8ff}
.night-section .prose blockquote,.night-section .passage{background:#0b253a;border-left-color:#4abaf1;color:#def2ff}
.night-section .translation,.night-section .intro-translation,.night-section .level4-criteria-bridge{border-color:#73bde252;color:#b6d7ea}
.night-section .cp-comparison,.night-section .cp-word-note,.night-section .cp-criteria,.night-section .cp-expert-link{background:linear-gradient(145deg,#0b263c,#071a2c);border-color:#91c8e632;color:#e2f3ff}
.night-section .cp-tab{background:#0a2337;border-color:#8ecdf33b;color:#daeeff}
.night-section .cp-tab[aria-selected="true"]{background:#a5ddff;border-color:#c4edff;color:#08243b;box-shadow:inset 0 -3px #25a8e3}
.night-section .cp-answer{background:#061b2d;border-left-color:#51bff4;color:#e6f5ff}
.night-section .cp-term{background:#16415d;border-color:#78caff;color:#e0f4ff}
.night-section .cp-term:hover{background:#215671}
.night-section .cp-intro,.night-section .cp-lead,.night-section .cp-phrase-hint,.night-section .cp-disclaimer,.night-section .cp-expert-link span{color:#adccdf}
.night-section .cp-breakdown>*,.night-section .cp-criteria-list>*,.night-section .cp-copy-helper{background:#0b263b;border-color:#8ecdf333;color:#d7eefe}
.night-section .cp-faq-item{border-color:#8ecdf333}
.night-section .cp-challenge{background:linear-gradient(120deg,#0b4564,#126585)}
.night-section .cp-challenge p,.night-section .cp-challenge .go{color:#ecfaff}
.night-section button,.night-section label{background:#0d2a40;color:#e5f5ff;border-color:#8ecdf34d}
.night-section .action,.night-section .button{background:#168fc9;color:#fff;border-color:#5cc8f6}
.night-section .community-motto{color:#b5e6ff}
.night-section .cp-legal-notice{color:#adcadd;border-color:#8ecdf32e}
.night-section .cp-legal-notice a{color:#83d5ff}
.night-section .journey-scene{background:linear-gradient(135deg,#071e32,#0a2a42);border-color:#8ecdf338;box-shadow:0 14px 55px #0003}
.night-section .journey-title{color:#fff}
.night-section .journey-scene text,.night-section .journey-label,.night-section .journey-label-small,.night-section .flight-station text{fill:#fff;stroke:none;stroke-width:0;paint-order:normal}
.night-section .route-base{stroke:#7badd0}.night-section .route-progress{stroke:#47c3ff}
.night-section .flight-station circle{fill:#0d2940;stroke:#8cc4e7}.night-section .flight-station text{fill:#fff;stroke:none}
.night-section .flight-station.reached circle{fill:#178bc6;stroke:#78d3ff}
.night-section .flight-plane path{fill:#d6f2ff;stroke:#2a8ac2}
.night-section .flight-replay{background:#123d59;color:#fff}
.night-section .flight-replay:hover{background:#1a5374}
.night-section .feedback.correct{color:#85e4b4}.night-section .feedback.incorrect{color:#ffc1a4}
.night-section #feedback[style*="994f20"]{color:#ffc1a4!important}.night-section #feedback[style*="176642"]{color:#85e4b4!important}
@media(max-width:850px){.direction-hero{min-height:350px;margin-bottom:28px}.direction-hero>header,.direction-hero .home-header{padding:32px 0}.direction-hero::after{background:linear-gradient(90deg,#03101de8,#03101d88),linear-gradient(180deg,#03101d,transparent 25%,transparent 65%,#03101d)}.direction-hero .home-header h1{font-size:clamp(28px,5.3vw,51px)}}
@media(max-width:650px){.direction-hero{margin-top:0;min-height:320px}.direction-hero::before{opacity:.65;background-position:center}.night-section[data-view]:not([data-view="home"]) .direction-hero{min-height:250px}.night-section .cp-copy-row{align-items:stretch}.night-section .cp-comparison{padding-inline:16px}}

/* Keep the upper marshal wands in frame on narrow screens as well. */
@media(max-width:650px){.direction-hero[data-direction="aviation"]::before{background-position:70% 0%}}
