:root{--bg1:#ffffff;--bg2:#ffffff;--ink:#000000}
*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  color:var(--ink);min-height:100vh;
  background:linear-gradient(165deg,var(--bg1),var(--bg2)) fixed;
}
/* light air-related watermark */
.wm{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.10}
.wm-clouds{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='190' viewBox='0 0 300 190'%3E%3Cg fill='%230a63c9'%3E%3Cpath d='M40 80a18 18 0 0 1 5-35 24 24 0 0 1 46 5 16 16 0 0 1 4 30z'/%3E%3Cpath d='M190 165a14 14 0 0 1 4-27 20 20 0 0 1 38 4 13 13 0 0 1 3 23z'/%3E%3Cpath d='M215 60a10 10 0 0 1 3-19 14 14 0 0 1 27 3 9 9 0 0 1 2 16z'/%3E%3C/g%3E%3C/svg%3E");background-size:300px 190px}
.wm-planes{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg fill='%230a63c9' transform='translate(40 30) scale(2.6) rotate(45 12 12)'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/g%3E%3C/svg%3E");background-size:170px 170px}
.wm-image{background-size:cover;background-position:center;opacity:.22}
.wm-none{display:none}

[hidden]{display:none!important}
/* logo + flight number are centred on the screen as one block, like the reference design */
/* Two fixed zones: the logo sits just above the middle of the screen, the flight numbers hang below it.
   The logo never moves, however many flight numbers are shown. */
.stage{position:relative;z-index:1;min-height:100vh;min-height:100dvh;display:grid;grid-template-rows:minmax(0,52fr) minmax(0,48fr);justify-items:center;padding:16px;text-align:center}
.logo-cell{align-self:end;padding-bottom:clamp(10px,3.2vh,36px);max-width:100%}
.text-cell{align-self:start;max-width:100%}
.brand{display:block;height:auto;width:min(76vw, calc(34vh * var(--ratio, 2)))}
.brand-text{font-size:clamp(2.4rem,9vw,6rem);font-weight:900;line-height:1.1}
.fno{--n:1;--chars:16;margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:min(6.4vw,10vh);font-weight:800;letter-spacing:.06em;text-transform:uppercase;line-height:1.15;color:var(--ink);white-space:nowrap;transition:opacity .25s ease}
.fno.swap{opacity:0}
/* several flight numbers at once: one per line, text shrinks so everything fits above/below the logo */
.fno[data-layout="stack"]{font-size:min(6.4vw,10vh,calc(34vh / var(--n)));line-height:1.2}
.fno[data-layout="stack"] .fno-item{display:block}
/* several flight numbers at once: as much as fits on one line; text never gets smaller than a readable floor, the rest wraps */
.fno[data-layout="inline"]{font-size:min(10vh,max(calc(102vw / var(--chars)),3.2vw,16px));white-space:normal;max-width:94vw;margin-inline:auto}
.fno[data-layout="inline"] .fno-num,.fno[data-layout="inline"] .fno-label{white-space:nowrap}
.fno .sep{opacity:.55}
/* outside the schedule the text is invisible but keeps its space, so the logo never jumps */
.fno[hidden]{display:block!important;visibility:hidden}

/* home list (page list) */
.stage.home{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}
.list{width:min(560px,92vw);display:flex;flex-direction:column;gap:12px;align-items:stretch}
.list a{display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid rgba(0,0,0,.12);border-radius:10px;background:rgba(255,255,255,.85);color:#000;text-decoration:none;font-weight:700;text-align:left}
.list a:hover{border-color:#000}
.list img{height:44px;width:90px;object-fit:contain}
@media (prefers-reduced-motion:reduce){.fno{transition:none}}
