/* ═══════════════════════════════════════════════════════════════════════════
 *  GHub · "Concourse" Design System
 *
 *  Aviation-grade UI language for the whole app:
 *    · Night Apron (dark)  · Terminal Daylight (light)
 *    · Signal yellow wayfinding accent, approach-light dots
 *    · Boarding passes, split-flap departure boards, flight-path progress
 *    · Revolut-style hierarchy: big numbers, round quick actions, clean lists
 *
 *  groundhub.de: subset of the web app's assets/gh/gh.css (dus.groundhub.de) — only the
 *  tokens and components this site uses. Loaded by inc/head.php (before site.css/landing.css).
 * ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ─── 1 · TOKENS ───────────────────────────────────────────────────────────── */
:root {
    --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

    --appbar-h: 56px;
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --spring-soft: cubic-bezier(.22, 1.18, .36, 1);

    /* Terminal Daylight (light) */
    color-scheme: light;
    --bg: #EEF0F4;
    --bg-glow: rgba(31, 107, 255, .10);
    --surface: #FFFFFF;
    --surface-2: #F5F6F9;
    --surface-3: #E9ECF1;
    --surface-inv: #0B0F19;
    --text: #0A0E18;
    --text-2: #485063;
    --text-3: #5F687B;
    --text-4: #8F97A6;
    --text-inv: #F3F5F9;
    --line: rgba(10, 14, 24, .07);
    --line-2: rgba(10, 14, 24, .12);
    --line-3: rgba(10, 14, 24, .22);
    --fill: rgba(10, 14, 24, .045);
    --fill-2: rgba(10, 14, 24, .075);

    --signal: #FFCC00;
    --signal-ink: #0A0E18;
    --signal-text: #7A5500;
    --signal-soft: rgba(255, 204, 0, .22);
    --signal-glow: rgba(255, 204, 0, .55);

    --blue: #1458E6;   --blue-soft: rgba(20, 88, 230, .10);
    --green: #067A53;  --green-soft: rgba(6, 122, 83, .11);
    --amber: #9E5300;  --amber-soft: rgba(214, 125, 0, .14);
    --red: #C9262C;    --red-soft: rgba(229, 72, 77, .12);
    --violet: #5A3FE0; --violet-soft: rgba(110, 86, 248, .12);
    --teal: #06707F;   --teal-soft: rgba(11, 142, 166, .13);

    --glass: rgba(255, 255, 255, .76);
    --glass-line: rgba(10, 14, 24, .08);
    --overlay: rgba(8, 11, 18, .40);

    --shadow-1: 0 1px 2px rgba(10, 14, 24, .05);
    --shadow-2: 0 12px 32px -14px rgba(10, 14, 24, .22), 0 2px 6px -2px rgba(10, 14, 24, .06);
    --shadow-3: 0 30px 80px -22px rgba(10, 14, 24, .38), 0 10px 24px -12px rgba(10, 14, 24, .18);

    /* Boarding pass (paper in daylight) */
    --pass-bg: #FFFFFF;
    --pass-bg-2: #FFFFFF;
    --pass-text: #0A0E18;
    --pass-dim: #5F687B;
    --pass-line: rgba(10, 14, 24, .14);

    /* Departure board — always a dark object, like the real thing */
    --board-bg: #0A0D15;
    --board-cell: #171D2A;
    --board-text: #FFD21F;
    --board-text-2: #E9EDF5;
}

/* Night Apron (dark) */
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #05070C;
    --bg-glow: rgba(77, 141, 255, .13);
    --surface: #0E1219;
    --surface-2: #141924;
    --surface-3: #1B212E;
    --surface-inv: #F3F5F9;
    --text: #F3F5F9;
    --text-2: #A3ABBB;
    --text-3: #8089A0;
    --text-4: #5A6378;
    --text-inv: #0A0E18;
    --line: rgba(255, 255, 255, .065);
    --line-2: rgba(255, 255, 255, .11);
    --line-3: rgba(255, 255, 255, .19);
    --fill: rgba(255, 255, 255, .05);
    --fill-2: rgba(255, 255, 255, .085);

    --signal: #FFD21F;
    --signal-ink: #0A0E18;
    --signal-text: #FFD21F;
    --signal-soft: rgba(255, 210, 31, .14);
    --signal-glow: rgba(255, 210, 31, .5);

    --blue: #5B95FF;   --blue-soft: rgba(91, 149, 255, .15);
    --green: #34D399;  --green-soft: rgba(52, 211, 153, .14);
    --amber: #FFB224;  --amber-soft: rgba(255, 178, 36, .15);
    --red: #FF6369;    --red-soft: rgba(255, 99, 105, .15);
    --violet: #A291FF; --violet-soft: rgba(162, 145, 255, .15);
    --teal: #2DD4BF;   --teal-soft: rgba(45, 212, 191, .14);

    --glass: rgba(11, 14, 21, .74);
    --glass-line: rgba(255, 255, 255, .08);
    --overlay: rgba(0, 0, 0, .62);

    --shadow-1: 0 0 0 rgba(0, 0, 0, 0);
    --shadow-2: 0 18px 44px -20px rgba(0, 0, 0, .85);
    --shadow-3: 0 40px 100px -24px rgba(0, 0, 0, .92);

    --pass-bg: #121A2E;
    --pass-bg-2: #0C1120;
    --pass-text: #F3F5F9;
    --pass-dim: #94A0B8;
    --pass-line: rgba(255, 255, 255, .14);
}

/* ─── 2 · BASE ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
    background: var(--bg);
    scroll-padding-top: calc(var(--appbar-h) + var(--sat) + 12px);
}
body {
    min-height: 100vh; min-height: 100dvh;
    font-family: var(--font);
    font-size: 15px; line-height: 1.45; font-weight: 400;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
body::before {
    content: ""; position: fixed; inset: 0 0 auto 0; height: 480px; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 75% at 50% -12%, var(--bg-glow), transparent 72%);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; } /* prevents iOS zoom */
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--signal-soft); color: var(--text); }
[hidden] { display: none !important; }

/* Phosphor icon baseline */
.ph, .ph-fill, .ph-bold { line-height: 1; vertical-align: -.125em; }

/* ─── 3 · TYPOGRAPHY ───────────────────────────────────────────────────────── */
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.t-green { color: var(--green); }
.eyebrow {
    font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1.2;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.b { font-weight: 650; }
.center { text-align: center; }
.right { text-align: right; }
kbd {
    font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-3);
    border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface);
}

/* ─── 4 · SURFACES ─────────────────────────────────────────────────────────── */
.card {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}
a.card, button.card { display: block; text-decoration: none; color: inherit; text-align: left; width: 100%; font: inherit; }

/* ─── 5 · LISTS (Revolut-style rows) ──────────────────────────────────────── */
.row-ico {
    width: 40px; height: 40px; flex: none; border-radius: 50%;
    display: grid; place-items: center; font-size: 20px;
    background: var(--fill-2); color: var(--text);
}

/* Icon colour helpers (for .row-ico, .qa-ico, .tile-ico …) */
.i-blue   { background: var(--blue-soft)   !important; color: var(--blue)   !important; }
.i-green  { background: var(--green-soft)  !important; color: var(--green)  !important; }
.i-amber  { background: var(--amber-soft)  !important; color: var(--amber)  !important; }
.i-red    { background: var(--red-soft)    !important; color: var(--red)    !important; }
.i-violet { background: var(--violet-soft) !important; color: var(--violet) !important; }
.i-teal   { background: var(--teal-soft)   !important; color: var(--teal)   !important; }
.i-signal { background: var(--signal)      !important; color: var(--signal-ink) !important; }
.i-ink    { background: var(--surface-inv) !important; color: var(--text-inv) !important; }

/* ─── 6 · BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
    --h: 50px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--h); padding: 0 22px; border-radius: var(--r-pill); border: 0;
    background: var(--fill-2); color: var(--text);
    font-size: 15px; font-weight: 600; letter-spacing: -.008em; line-height: 1;
    text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none;
    transition: transform .3s var(--spring), background-color .2s, box-shadow .25s, opacity .2s, color .2s;
}
.btn i { font-size: 1.2em; }
.btn:active { transform: scale(.955); transition-duration: .1s; }
.btn-primary { background: var(--signal); color: var(--signal-ink); box-shadow: 0 10px 26px -12px var(--signal-glow); }
@media (hover: hover) { .btn-primary:hover { box-shadow: 0 14px 32px -12px var(--signal-glow); } }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--fill); }
.btn-block { width: 100%; }
.btn-lg { --h: 56px; font-size: 16px; padding: 0 26px; }
.btn-sm { --h: 40px; padding: 0 15px; font-size: 13.5px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid currentColor; border-color: var(--text-3) transparent var(--text-3) transparent;
    animation: gh-spin .8s linear infinite;
}
.btn-primary.is-loading::after { border-color: var(--signal-ink) transparent var(--signal-ink) transparent; }

.icon-btn {
    --size: 40px;
    width: var(--size); height: var(--size); flex: none; border-radius: 50%; border: 0;
    display: inline-grid; place-items: center; font-size: 20px; text-decoration: none;
    background: var(--fill-2); color: var(--text);
    transition: transform .3s var(--spring), background-color .2s;
}
.icon-btn:active { transform: scale(.88); }
.icon-btn.plain { background: transparent; }
.icon-btn.sm { --size: 32px; font-size: 16px; }
.icon-btn.is-disabled, .icon-btn[disabled], .icon-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.icon-btn { position: relative; }

/* ─── 7 · CHIPS & BADGES ──────────────────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
    border-radius: var(--r-pill); background: var(--fill-2); color: var(--text-2);
    font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap; line-height: 1;
}
.chip i { font-size: 13px; }
.chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip.live::before { animation: gh-live 1.6s ease-in-out infinite; box-shadow: 0 0 0 0 currentColor; }
.chip-amber  { background: var(--amber-soft);  color: var(--amber); }
.chip-signal { background: var(--signal);      color: var(--signal-ink); }

/* ─── 8 · FORMS ───────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); padding-left: 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-hint { font-size: 12.5px; color: var(--text-3); padding-left: 2px; line-height: 1.4; }
.field-error { font-size: 12.5px; color: var(--red); padding-left: 2px; }
.input {
    width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-md);
    background: var(--fill); border: 1px solid transparent; color: var(--text);
    font-size: 16px; font-weight: 500; outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .2s, background-color .2s, box-shadow .25s;
}
.input::placeholder { color: var(--text-4); font-weight: 450; }
.input:focus { border-color: var(--signal); background: var(--surface); box-shadow: 0 0 0 4px var(--signal-soft); }
.input[readonly] { color: var(--text-2); }
.input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.input.mono { font-family: var(--mono); letter-spacing: .02em; }
.input[type="time"], .input[type="date"], .input[type="month"] { font-variant-numeric: tabular-nums; }
.input[type="time"]::-webkit-calendar-picker-indicator, .input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
html[data-theme="dark"] .input[type="time"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .input[type="month"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset; transition: background-color 9999s; }

.input-wrap { position: relative; }
.input-wrap > i:first-child { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--text-3); pointer-events: none; }
.input-wrap > i:first-child + .input { padding-left: 46px; }
.input-wrap > .input-end { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

/* Checkbox */
.check { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-3); background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; transition: background-color .2s, border-color .2s; }
.check:checked { background: var(--signal); border-color: var(--signal); }
.check:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--signal-ink); border-bottom: 2px solid var(--signal-ink); transform: translateY(-1px) rotate(-45deg); }

/* ─── 9 · NOTICES / EMPTY / LOADING ──────────────────────────────────────── */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill); color: var(--text-2); font-size: 14px; line-height: 1.45; }
.notice > i { font-size: 20px; flex: none; margin-top: -1px; }
.notice b { color: var(--text); }
.notice-warn { background: var(--amber-soft); } .notice-warn > i { color: var(--amber); }
.notice-error { background: var(--red-soft); } .notice-error > i { color: var(--red); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 20px; color: var(--text-3); }

.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px; color: var(--text-3); font-size: 13.5px; }

/* ─── 10 · AVIATION COMPONENTS ────────────────────────────────────────────── */

/* Signage — yellow pictogram squares like airport wayfinding */
.sign-ico {
    width: 30px; height: 30px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 18px;
    background: var(--signal); color: var(--signal-ink);
}
.sign-ico.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 14px; }
.gate { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: var(--surface-inv); color: var(--signal); }
html[data-theme="dark"] .gate { background: #1B2232; }

/* Boarding pass */
.pass-stripe { height: 6px; background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, #0A0E18 10px 20px); opacity: .95; }

/* Split-flap characters */
.flap { display: inline-flex; gap: 1px; perspective: 400px; }
.flap-c {
    position: relative; display: inline-grid; place-items: center;
    min-width: .68em; height: 1.22em; padding: 0 .03em; border-radius: .14em;
    background: var(--board-cell); color: var(--board-text);
    font-family: var(--mono); font-weight: 600; line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
    transform-style: preserve-3d;
}
.flap-c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap-c.is-flip { animation: gh-flap .075s linear; }

/* Departure board (FIDS) */
.board {
    position: relative; overflow: hidden; border-radius: var(--r-lg);
    background: var(--board-bg); color: var(--board-text-2);
    box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.board::before { /* scanline gloss */
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 30%);
}
@keyframes gh-blink { 0% { opacity: 1; } 50% { opacity: .6; } }
.board .flap-c { background: var(--board-cell); }

/* Rolling digits (odometer) */
.roll { display: inline-flex; overflow: hidden; line-height: 1; vertical-align: baseline; }
.roll-col { display: inline-block; height: 1em; overflow: hidden; overflow: clip; position: relative; }
.roll-strip { display: flex; flex-direction: column; transition: transform 1.25s var(--ease-out); transition-delay: var(--d, 0ms); }
.roll-strip > span { height: 1em; display: block; text-align: center; }

/* ─── 11 · MOTION ──────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: gh-vt-out .2s var(--ease-in-out) both; }
::view-transition-new(root) { animation: gh-vt-in .42s var(--ease-out) both; }

@keyframes gh-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes gh-spin { to { transform: rotate(360deg); } }
@keyframes gh-vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes gh-vt-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gh-live { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes gh-beacon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes gh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes gh-flap { 0% { transform: rotateX(0); } 50% { transform: rotateX(-88deg); } 100% { transform: rotateX(0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
    @view-transition { navigation: none; }
}

/* ─── 12 · PRINT ───────────────────────────────────────────────────────────── */
@media print {
    body::before, dialog { display: none !important; }
    body { background: #fff; color: #000; padding: 0 !important; }
    .card { box-shadow: none; border-color: #ddd; }
}
