/* Layout and controls shared by desktop, tablet and phone. */
html { scroll-behavior: auto; scroll-padding-top: 100px; }
body { min-width: 0; }
main, section, .hero-copy, .hero-visual, .question-card, .quiz-side, .section-head > div { min-width: 0; }
button, input, select { font: inherit; }
button, .btn, nav a, .lang select { min-height: 44px; }
a, button, input, select, #warehouse { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.btn { text-align: center; white-space: normal; line-height: 1.35; }
nav a { display: inline-flex; align-items: center; }
.brand { flex-shrink: 0; }
.brand { direction: ltr; }
.brand-logo { flex-shrink: 0; }
.lang select { max-width: 150px; text-overflow: ellipsis; }
.brand small { font-size: .66rem; }
.kicker, .eyebrow, .module, .date, .progress-wrap { line-height: 1.5; font-size: .8rem; }
.course-meta { flex-wrap: wrap; font-size: .9rem; }
.hero-copy > p, .section-head > p, .payment-gate p, .quiz-side p { overflow-wrap: break-word; }
.section-head { align-items: center; }
.sim-top, .sim-controls { height: auto; min-height: 60px; gap: 14px; flex-wrap: wrap; padding: 12px 18px; font-size: .875rem; }
.sim-top > span { min-width: 0; }
#simStatus { flex: 1 1 190px; text-align: center; color: var(--white); }
.sim-top button { padding: 8px 12px; }
.warehouse { height: clamp(320px, 47vw, 600px); }
.sim-hint { font-size: .75rem; max-width: calc(100% - 130px); }
.speed-hud { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; background: #071318dc; border: 1px solid #41646b; pointer-events: none; }
.speed-hud b { font: 700 1.4rem monospace; }
.speed-hud span { font-size: .75rem; color: var(--muted); }
#simError { position: absolute; inset: 20%; padding: 20px; background: var(--panel); border: 1px solid var(--danger); }
[hidden] { display: none !important; }
.sim-loader { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; pointer-events: none; background: radial-gradient(circle, rgba(19, 48, 56, .76), rgba(7, 19, 24, .2) 45%, transparent 72%); transition: opacity .25s ease; }
.sim-loader i { width: 52px; height: 52px; border: 2px solid #41646b; border-top-color: var(--lime); border-radius: 50%; animation: sim-spin 1s linear infinite; }
.sim-loader span { color: var(--cyan); font: 800 .75rem monospace; letter-spacing: .18em; }
.warehouse.is-ready .sim-loader, .warehouse.load-failed .sim-loader { opacity: 0; visibility: hidden; }
.sim-shell button:disabled, .touch-drive:disabled { opacity: .45; cursor: wait; }
.warehouse noscript { position: absolute; inset: 24px; z-index: 4; padding: 18px; color: var(--white); background: var(--panel); border: 1px solid var(--danger); }
@keyframes sim-spin { to { transform: rotate(360deg); } }
.touch-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; background: #0d2026; border-top: 1px solid var(--line); }
.touch-panel > p { max-width: 350px; margin: 0; color: #b9ccd0; font-size: 1rem; }
.drive-pad { display: grid; grid-template-columns: repeat(3, minmax(80px, 1fr)); grid-template-rows: repeat(3, 62px); gap: 6px; width: 290px; }
.touch-drive { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; background: #18353e; border: 1px solid #47636b; border-radius: 8px; color: white; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.touch-drive span { font: 700 1.4rem monospace; line-height: 1; }
.touch-drive small { font-size: .8rem; }
.touch-drive:active, .touch-drive.is-pressed { background: var(--lime); color: var(--ink); }
.forward { grid-area: 1 / 2; } .left { grid-area: 2 / 1; } .brake { grid-area: 2 / 2; } .right { grid-area: 2 / 3; } .reverse { grid-area: 3 / 2; }
.brake { border-color: #c6d891; }
.legal-note { font-size: .875rem; line-height: 1.6; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 12px; }
dialog form { min-width: 0; }
dialog label { font-size: .9375rem; }
dialog input:not([type=checkbox]) { width: 100%; min-width: 0; min-height: 48px; font-size: 1rem; }
.check { display: flex; align-items: start; gap: 10px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
dialog .close { width: 44px; height: 44px; z-index: 2; }
.preview-note { border-left: 3px solid var(--cyan); padding: 10px 12px; color: #c4d6da; font-size: .875rem; background: #132c34; margin: 0; }
#selectedCourse { overflow-wrap: anywhere; margin: 0; }
#formSuccess { margin: 0; }
.privacy-policy-link { color: var(--cyan); font-size: .875rem; }
footer { flex-wrap: wrap; }
footer .legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
footer .legal-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--cyan); text-decoration: none; }
footer .legal-links a:hover, footer .legal-links a:focus-visible { text-decoration: underline; }
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(3.2rem, 7vw, 5.3rem); }
  .hero { gap: 24px; }
  .section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
}
@media (max-width: 900px) {
  .topbar { padding: 12px 24px 0; display: grid; grid-template-columns: 1fr auto; height: auto; min-height: 110px; gap: 8px 16px; }
  .topbar nav { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 0; border-top: 1px solid var(--line); }
  .topbar nav a { justify-content: center; flex: 1; padding: 10px; font-size: .95rem; }
  .actions { grid-row: 1; grid-column: 2; }
  html { scroll-padding-top: 138px; }
  .hero { grid-template-columns: 1fr; padding: 50px 24px; background-attachment: scroll; }
  .hero h1 { max-width: 700px; font-size: clamp(3.2rem, 9vw, 5rem); line-height: .96; }
  .hero-visual { width: 100%; height: 350px; margin-top: 8px; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hero-copy > p { font-size: 1.05rem; }
  .section { padding: 52px 24px; }
  #courses { background-attachment: scroll; }
  .section-head { gap: 14px; }
  .section-head > p { margin: 0; }
  .course-grid { grid-template-columns: 1fr; }
  .course { min-height: 0; padding: 24px; }
  .course h3 { margin-top: 20px; }
  .progress-wrap { width: 100%; }
  .quiz-side { padding: 24px; }
  .score { margin-top: 16px; display: flex; align-items: baseline; gap: 16px; }
  .score b { font-size: 2rem; }
  .payment-gate { grid-template-columns: 48px 1fr; padding: 20px; gap: 16px; }
  .payment-gate .btn { grid-column: 1 / -1; width: 100%; }
  .lock-icon { width: 44px; height: 44px; }
  .touch-panel { gap: 16px; }
}
@media (max-width: 600px) {
  .topbar { padding: 9px 16px 0; gap: 8px 10px; }
  .topbar .brand > span:last-child { display: block; font-size: .82rem; }
  .brand small { font-size: .6rem; letter-spacing: .17em; }
  .brand-logo { width: 42px; height: 42px; }
  .actions .compact { display: none; }
  .lang select { padding: 8px 6px; min-width: 56px; font-size: .95rem; }
  html { scroll-padding-top: 122px; }
  .hero { padding: 38px 16px 40px; gap: 20px; }
  .hero h1 { font-size: clamp(2.55rem, 11vw, 4rem); letter-spacing: -.065em; overflow-wrap: anywhere; margin: 22px 0; }
  .hero-actions { margin: 25px 0; gap: 14px; align-items: stretch; flex-direction: column; }
  .hero-actions .ghost { padding: 10px 2px; font-size: 1rem; }
  .standards { justify-content: space-between; }
  .standards span { margin: 0; padding: 14px 10px 0 0; flex: 1; }
  .standards span + span { padding-left: 12px; }
  .standards span:last-child { border-right: 0; padding-right: 0; }
  .standards b { font-size: 1.25rem; }
  .standards small { font-size: .875rem; }
  .hero-visual { height: 290px; }
  .section { padding: 42px 16px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .compliance h2 { font-size: clamp(1.85rem, 8vw, 2.5rem); line-height: 1.08; overflow-wrap: anywhere; }
  .payment-gate { grid-template-columns: 1fr; padding: 20px; }
  .lock-icon { display: none; }
  .payment-gate h3 { font-size: 1.35rem; }
  .quiz-panel { display: none; }
  .learning .progress-wrap { display: none; }
  .sim-top { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 10px; }
  .sim-top > span:first-child { font-size: .78rem; }
  #simStatus { grid-row: 2; grid-column: 1 / -1; text-align: left; font-size: .85rem; }
  .sim-top button { font-size: .875rem; padding: 6px; }
  .warehouse { height: 340px; }
  .sim-hint { left: 8px; bottom: 8px; padding: 6px 8px; font-size: .75rem; max-width: calc(100% - 105px); }
  .speed-hud { right: 8px; bottom: 8px; padding: 6px 8px; gap: 4px; }
  .speed-hud b { font-size: 1.05rem; }
  .sim-controls { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px; text-align: center; }
  .sim-controls .keyboard-help { display: none; }
  .sim-controls .btn { width: 100%; min-height: 48px; }
  .touch-panel { flex-direction: column; padding: 16px 10px; gap: 12px; }
  .touch-panel > p { font-size: .9375rem; text-align: center; }
  .drive-pad { width: min(100%, 310px); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, 62px); }
  .touch-drive small { font-size: .8rem; }
  dialog { width: calc(100% - 24px); margin: auto; max-height: calc(100dvh - 24px); }
  dialog form { padding: 42px 20px 24px; gap: 14px; }
  dialog h2 { font-size: 1.7rem; padding-right: 14px; }
  footer { padding: 28px 16px; flex-direction: column; align-items: start; gap: 12px; }
  footer .brand > span:last-child { display: block; }
  footer p { margin: 0; font-size: .9rem; }
  .sources { align-items: stretch; gap: 14px; }
  .sources a { font-size: .9rem; overflow-wrap: anywhere; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .topbar { position: relative; }
  .warehouse { height: 300px; }
  .touch-panel { flex-direction: row; }
  .touch-panel > p { max-width: 230px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* High-definition brand presentation. */
.brand-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: invert(1) brightness(1.2);
  mix-blend-mode: normal;
}
.topbar { min-height: 104px; height: auto; }
.hero-logo-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  width: 178px;
  padding: 15px 15px 11px;
  background: rgba(246, 250, 249, .94);
  color: #071318;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
  backdrop-filter: blur(8px);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.hero-logo-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; filter: none; }
.hero-logo-card span { display: block; margin-top: 4px; text-align: center; font: 700 .65rem/1.25 monospace; letter-spacing: .04em; }

/* Two-day course programme and trust information. */
.course-format {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 34px;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(87, 230, 255, .42);
  background: linear-gradient(120deg, rgba(11, 29, 35, .98), rgba(13, 46, 53, .9));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .3);
}
.course-format h3, .about-trust h3, .trust-panel h3 { margin: 12px 0; font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.05; letter-spacing: -.04em; }
.course-format-copy > p, .about-copy > p, .trust-panel p, .trust-grid p { color: #b8c9cd; }
.course-days { display: grid; gap: 1px; padding: 0; margin: 0; list-style: none; background: var(--line); }
.course-days li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; background: rgba(7, 19, 24, .94); }
.course-days li.course-day-action { display: block; padding: 0; }
.course-day-action a { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 18px; padding: 22px; color: inherit; text-decoration: none; transition: background .2s ease, color .2s ease; }
.course-day-action a:hover, .course-day-action a:focus-visible { background: rgba(255, 191, 55, .12); outline: 2px solid var(--lime); outline-offset: -2px; }
.course-day-action a > span { color: var(--lime); font-size: 1.4rem; line-height: 1; }
.course-day-action a > b { display: grid; place-items: center; align-self: start; width: 42px; height: 42px; color: var(--ink); background: var(--lime); font: 900 .9rem monospace; }
.course-days li > b { display: grid; place-items: center; align-self: start; width: 42px; height: 42px; color: var(--ink); background: var(--lime); font: 900 .9rem monospace; }
.course-days strong { font-size: 1.05rem; }
.course-days p { margin: 8px 0 0; color: var(--muted); }
.course-duration { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 18px; }
.course-duration span { padding: 8px 10px; border-left: 2px solid var(--cyan); background: rgba(87, 230, 255, .07); font: 700 .7rem/1.35 monospace; color: #c9e9ed; }
.calendar-shell { margin: 22px 0; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); background: rgba(7, 19, 24, .94); }
.calendar-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.calendar-heading h3 { margin: 10px 0 0; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.04em; }
.calendar-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.training-calendar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.calendar-month { padding: 20px; border: 1px solid #2c4951; background: #0b1d23; }
.calendar-month h4 { margin: 0 0 16px; text-transform: capitalize; font-size: 1.15rem; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekdays { margin-bottom: 5px; }
.calendar-weekdays span { padding: 4px; text-align: center; color: #7f979c; font: 700 .68rem monospace; text-transform: uppercase; }
.calendar-days > i { min-height: 58px; }
.calendar-day { min-width: 0; min-height: 58px; padding: 7px; border: 1px solid #20383f; background: #0d252b; color: #c7d4d7; text-align: left; }
.calendar-day b { display: block; font: 700 .8rem monospace; }
button.calendar-day { cursor: pointer; font: inherit; }
.calendar-day.course-date { border-color: var(--lime); background: rgba(216, 255, 62, .13); color: var(--white); box-shadow: inset 0 0 0 1px rgba(216, 255, 62, .22); }
.calendar-day.course-date:hover, .calendar-day.course-date:focus-visible { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.calendar-day small { display: block; margin-top: 5px; overflow: hidden; font-size: .58rem; line-height: 1.15; text-overflow: ellipsis; }
.calendar-legend { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: .85rem; }
.calendar-legend i { width: 14px; height: 14px; border: 1px solid var(--lime); background: rgba(216, 255, 62, .18); }
.about-trust { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; margin-top: 56px; }
.about-copy, .trust-panel { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: rgba(7, 19, 24, .9); }
.trust-panel { display: grid; grid-template-columns: auto 1fr; gap: 22px; border-color: rgba(216, 255, 62, .55); background: linear-gradient(135deg, rgba(20, 37, 28, .98), rgba(7, 19, 24, .96)); }
.trust-mark { display: grid; place-items: center; width: 86px; height: 86px; border: 2px solid var(--lime); border-radius: 50%; color: var(--lime); font: 900 1rem monospace; letter-spacing: .05em; }
.trust-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.trust-grid article { padding: 26px; border: 1px solid var(--line); margin-right: -1px; background: rgba(11, 29, 35, .9); }
.trust-grid article > b { color: var(--lime); font: 900 1.15rem monospace; }
.trust-grid h3 { margin: 22px 0 8px; font-size: 1.15rem; }
.trust-grid p { margin: 0; }
.bank-workflow { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; border: 1px solid var(--line); background: #071318; }
.bank-workflow article { padding: 22px; border-right: 1px solid var(--line); }
.bank-workflow article > b { color: var(--cyan); font: 800 .78rem monospace; }
.bank-workflow h3 { margin: 14px 0 7px; font-size: 1rem; }
.bank-workflow p { margin: 0; color: var(--muted); font-size: .875rem; }
.bank-workflow aside { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-top: 1px solid var(--line); color: #ffd782; font: 700 .75rem monospace; letter-spacing: .04em; text-align: center; }
.bank-workflow aside .live { background: #ffd782; box-shadow: 0 0 12px #ffd782; }

@media (max-width: 900px) {
  .topbar { min-height: 142px; }
  .course-format, .about-trust { grid-template-columns: 1fr; }
  .training-calendar { grid-template-columns: 1fr; }
  .bank-workflow { grid-template-columns: 1fr; }
  .bank-workflow article { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article { margin: 0 0 -1px; }
}
@media (max-width: 600px) {
  .hero { background-image: linear-gradient(90deg, rgba(7,19,24,.98) 0%, rgba(7,19,24,.82) 100%), url('portal/course-airport-hero-branded.png'); }
  .hero-visual { background-image: linear-gradient(180deg, transparent 45%, #071318dd), url('portal/course-airport-hero-branded.png'); }
  #courses { background-image: linear-gradient(90deg, #071318 0%, rgba(7,19,24,.88) 100%), url('portal/course-airport-hero-branded.png'); }
  .brand-logo { width: 68px; height: 68px; }
  .lang select { max-width: 92px; }
  .hero-logo-card { width: 126px; right: 14px; bottom: 14px; padding: 10px 10px 8px; }
  .hero-logo-card span { font-size: .52rem; }
  .course-format { padding: 20px; gap: 22px; }
  .course-days li { padding: 16px; gap: 12px; }
  .course-day-action a { padding: 16px; gap: 12px; }
  .course-day-action a > b { width: 36px; height: 36px; }
  .course-days li > b { width: 36px; height: 36px; }
  .course-duration { grid-template-columns: 1fr; }
  .calendar-shell { padding: 18px 12px; }
  .calendar-heading { align-items: start; flex-direction: column; gap: 12px; }
  .calendar-month { padding: 12px 8px; }
  .calendar-weekdays, .calendar-days { gap: 3px; }
  .calendar-days > i, .calendar-day { min-height: 45px; }
  .calendar-day { padding: 5px; }
  .calendar-day small { display: none; }
  .about-trust { margin-top: 38px; }
  .about-copy, .trust-panel { padding: 22px; }
  .trust-panel { grid-template-columns: 1fr; }
  .trust-mark { width: 68px; height: 68px; }
}
@media (max-width: 360px) {
  .topbar .brand > span:last-child { display: none; }
}
