Spaces:
Running
Running
| /* ---------- Reset & base ---------- */ | |
| *, *::before, *::after { box-sizing: border-box; } | |
| html, body { margin: 0; padding: 0; } | |
| :root { | |
| --bg: #ffffff; | |
| --ink: #0a0a0a; | |
| --ink-2: #2a2a2a; | |
| --muted: #6b6b6b; | |
| --muted-2: #9a9a9a; | |
| --line: #E5E5E5; | |
| --line-strong: #d8d8d8; | |
| --surface: #ffffff; | |
| --surface-2: #fafafa; | |
| --surface-3: #f4f4f4; | |
| --risk-low: #15803d; | |
| --risk-mod: #c2620c; | |
| --risk-high: #b91c1c; | |
| --risk-low-bg: #effaf2; | |
| --risk-mod-bg: #fdf6ec; | |
| --risk-high-bg: #fdf0f0; | |
| --shadow-card: 0 1px 2px rgba(15,15,15,0.04), 0 1px 1px rgba(15,15,15,0.02); | |
| --shadow-pop: 0 6px 24px rgba(15,15,15,0.06), 0 2px 6px rgba(15,15,15,0.04); | |
| --r-sm: 8px; | |
| --r-md: 12px; | |
| --r-lg: 16px; | |
| --r-xl: 22px; | |
| --maxw: 1240px; | |
| } | |
| html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } | |
| body { | |
| font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; | |
| font-feature-settings: "ss01", "cv11"; | |
| font-size: 15px; | |
| line-height: 1.5; | |
| color: var(--ink); | |
| background: var(--bg); | |
| letter-spacing: -0.005em; | |
| } | |
| .tnum { font-variant-numeric: tabular-nums; } | |
| /* ---------- Top bar ---------- */ | |
| .topbar { | |
| position: sticky; | |
| top: 0; | |
| z-index: 30; | |
| background: rgba(255,255,255,0.85); | |
| backdrop-filter: saturate(180%) blur(14px); | |
| -webkit-backdrop-filter: saturate(180%) blur(14px); | |
| border-bottom: 1px solid var(--line); | |
| } | |
| .topbar .inner { | |
| max-width: var(--maxw); | |
| margin: 0 auto; | |
| padding: 14px 28px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .brand { | |
| display: flex; align-items: center; gap: 10px; | |
| font-weight: 600; letter-spacing: -0.02em; font-size: 15px; | |
| color: inherit; text-decoration: none; | |
| } | |
| .brand .mark { | |
| width: 22px; height: 22px; border-radius: 50%; | |
| background: radial-gradient(circle at 30% 30%, #1a1a1a 0%, #000 70%); | |
| position: relative; | |
| } | |
| .brand .mark::after { | |
| content: ""; position: absolute; inset: 3px; | |
| border-radius: 50%; | |
| border: 1px solid rgba(255,255,255,0.22); | |
| } | |
| .brand .sub { | |
| color: var(--muted-2); font-weight: 400; margin-left: 6px; font-size: 13px; | |
| } | |
| .nav { display: flex; gap: 26px; align-items: center; } | |
| .nav a { | |
| color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 450; | |
| } | |
| .nav a:hover { color: var(--ink); } | |
| /* ---------- Container ---------- */ | |
| .container { | |
| max-width: var(--maxw); | |
| margin: 0 auto; | |
| padding: 0 28px; | |
| } | |
| /* ---------- Hero ---------- */ | |
| .hero { | |
| padding: 96px 0 48px; | |
| text-align: center; | |
| } | |
| .hero h1 { | |
| font-size: clamp(34px, 4.6vw, 56px); | |
| font-weight: 600; | |
| letter-spacing: -0.03em; | |
| line-height: 1.05; | |
| margin: 0 auto 20px; | |
| max-width: 880px; | |
| text-wrap: balance; | |
| } | |
| .hero p.lead { | |
| max-width: 720px; | |
| margin: 0 auto 22px; | |
| font-size: 17px; | |
| color: var(--muted); | |
| letter-spacing: -0.005em; | |
| text-wrap: pretty; | |
| } | |
| .hero .badge { | |
| display: inline-flex; align-items: center; gap: 8px; | |
| font-size: 12px; color: var(--muted); | |
| border: 1px solid var(--line); | |
| padding: 6px 12px; | |
| border-radius: 999px; | |
| background: #fff; | |
| letter-spacing: 0.005em; | |
| } | |
| .hero .badge .dot { | |
| width: 6px; height: 6px; border-radius: 50%; | |
| background: var(--ink); | |
| opacity: 0.6; | |
| } | |
| /* ---------- Tool main ---------- */ | |
| .tool { | |
| margin-top: 8px; | |
| display: grid; | |
| grid-template-columns: 1fr 1.2fr; | |
| gap: 0; | |
| border: 1px solid var(--line); | |
| border-radius: var(--r-xl); | |
| background: #fff; | |
| box-shadow: var(--shadow-card); | |
| overflow: hidden; | |
| min-height: 620px; | |
| } | |
| .tool .col-left { | |
| padding: 36px 36px; | |
| border-right: 1px solid var(--line); | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .tool .col-right { | |
| position: relative; | |
| background: var(--surface-2); | |
| min-height: 620px; | |
| } | |
| @media (max-width: 900px) { | |
| .tool { grid-template-columns: 1fr; } | |
| .tool .col-left { border-right: none; border-bottom: 1px solid var(--line); } | |
| .tool .col-right { min-height: 420px; } | |
| } | |
| /* ---------- Form ---------- */ | |
| .form-block .label-uc { | |
| font-size: 11.5px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.1em; | |
| color: var(--muted); | |
| font-weight: 500; | |
| } | |
| .form-block h2 { | |
| font-size: 21px; | |
| font-weight: 600; | |
| letter-spacing: -0.02em; | |
| margin: 6px 0 22px; | |
| } | |
| .field { | |
| display: flex; flex-direction: column; | |
| border: 1px solid var(--line); | |
| border-radius: var(--r-md); | |
| padding: 10px 14px; | |
| background: #fff; | |
| transition: border-color .15s ease, box-shadow .15s ease; | |
| margin-bottom: 12px; | |
| } | |
| .field:focus-within { | |
| border-color: var(--ink); | |
| box-shadow: 0 0 0 3px rgba(10,10,10,0.06); | |
| } | |
| .field label { | |
| font-size: 11px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.1em; | |
| color: var(--muted); | |
| font-weight: 500; | |
| } | |
| .field .row { | |
| display: flex; align-items: baseline; gap: 6px; margin-top: 2px; | |
| } | |
| .field input { | |
| border: 0; outline: none; background: transparent; | |
| font: inherit; font-size: 17px; color: var(--ink); | |
| letter-spacing: -0.01em; | |
| width: 100%; padding: 0; | |
| } | |
| .field input::placeholder { color: var(--muted-2); } | |
| .field.flight input { letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; } | |
| .btn-primary { | |
| font: inherit; | |
| width: 100%; | |
| padding: 14px 20px; | |
| border-radius: var(--r-md); | |
| background: var(--ink); | |
| color: #fff; | |
| border: 1px solid var(--ink); | |
| cursor: pointer; | |
| font-size: 14.5px; | |
| font-weight: 500; | |
| letter-spacing: -0.005em; | |
| transition: opacity .15s ease, transform .04s ease; | |
| margin-top: 4px; | |
| } | |
| .btn-primary:hover { opacity: 0.92; } | |
| .btn-primary:active { transform: translateY(0.5px); } | |
| .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } | |
| .manual-toggle { | |
| margin-top: 14px; | |
| font-size: 12.5px; | |
| color: var(--muted); | |
| text-align: center; | |
| cursor: pointer; | |
| user-select: none; | |
| display: block; | |
| background: none; | |
| border: none; | |
| width: 100%; | |
| padding: 4px; | |
| font-family: inherit; | |
| letter-spacing: -0.005em; | |
| } | |
| .manual-toggle:hover { color: var(--ink); } | |
| .manual-toggle .chev { | |
| display: inline-block; | |
| margin-left: 4px; | |
| transition: transform .2s ease; | |
| } | |
| .manual-toggle.open .chev { transform: rotate(180deg); } | |
| .manual-fields { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 10px; | |
| margin-top: 14px; | |
| } | |
| .manual-fields .field { margin-bottom: 0; } | |
| /* ---------- Result ---------- */ | |
| .result { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 18px; | |
| } | |
| .result-head { | |
| display: flex; align-items: center; justify-content: space-between; | |
| margin-bottom: 0; | |
| } | |
| .result-head .label-uc { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; } | |
| .dose-display { | |
| display: flex; align-items: baseline; gap: 12px; | |
| flex-wrap: wrap; | |
| } | |
| .dose-display .num { | |
| font-size: 84px; | |
| font-weight: 600; | |
| letter-spacing: -0.045em; | |
| line-height: 0.95; | |
| font-variant-numeric: tabular-nums; | |
| } | |
| .dose-display .unit { | |
| font-size: 22px; color: var(--muted); font-weight: 500; | |
| letter-spacing: -0.01em; | |
| } | |
| /* risk badge */ | |
| .risk { | |
| display: inline-flex; align-items: center; gap: 8px; | |
| padding: 7px 14px; border-radius: 999px; | |
| font-size: 13px; font-weight: 500; letter-spacing: -0.005em; | |
| border: 1px solid; | |
| width: fit-content; | |
| } | |
| .risk .pip { width: 8px; height: 8px; border-radius: 50%; } | |
| .risk.low { color: var(--risk-low); border-color: rgba(21,128,61,0.25); background: var(--risk-low-bg); } | |
| .risk.low .pip { background: var(--risk-low); box-shadow: 0 0 0 3px rgba(21,128,61,0.12); } | |
| .risk.mod { color: var(--risk-mod); border-color: rgba(194,98,12,0.28); background: var(--risk-mod-bg); } | |
| .risk.mod .pip { background: var(--risk-mod); box-shadow: 0 0 0 3px rgba(194,98,12,0.14); } | |
| .risk.high { color: var(--risk-high); border-color: rgba(185,28,28,0.28); background: var(--risk-high-bg); } | |
| .risk.high .pip { background: var(--risk-high); box-shadow: 0 0 0 3px rgba(185,28,28,0.14); } | |
| .compare-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 8px; | |
| } | |
| .compare-card { | |
| border: 1px solid var(--line); | |
| border-radius: var(--r-md); | |
| padding: 12px 14px; | |
| background: #fff; | |
| display: flex; | |
| align-items: baseline; | |
| justify-content: space-between; | |
| gap: 12px; | |
| } | |
| .compare-card .v { | |
| font-size: 19px; | |
| font-weight: 600; | |
| letter-spacing: -0.02em; | |
| font-variant-numeric: tabular-nums; | |
| color: var(--ink); | |
| white-space: nowrap; | |
| } | |
| .compare-card .k { | |
| font-size: 13px; | |
| color: var(--muted); | |
| letter-spacing: -0.005em; | |
| } | |
| .flight-meta { | |
| margin-top: 4px; | |
| padding-top: 16px; | |
| border-top: 1px solid var(--line); | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 18px 24px; | |
| font-size: 12.5px; | |
| color: var(--muted); | |
| } | |
| .flight-meta .k { | |
| font-size: 10.5px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.1em; | |
| color: var(--muted-2); | |
| font-weight: 500; | |
| margin-bottom: 2px; | |
| } | |
| .flight-meta .v { | |
| font-size: 13.5px; | |
| color: var(--ink-2); | |
| font-variant-numeric: tabular-nums; | |
| letter-spacing: -0.005em; | |
| } | |
| .flight-meta .meta-item { display: flex; flex-direction: column; } | |
| .error-msg { | |
| font-size: 13px; | |
| color: var(--risk-high); | |
| background: var(--risk-high-bg); | |
| border: 1px solid rgba(185,28,28,0.18); | |
| padding: 10px 14px; | |
| border-radius: var(--r-md); | |
| margin-top: 12px; | |
| } | |
| .fade-in { animation: fade .35s ease both; } | |
| @keyframes fade { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none;} } | |
| /* ---------- Map ---------- */ | |
| .map-empty { | |
| position: absolute; | |
| inset: 0; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| z-index: 401; | |
| pointer-events: none; | |
| background: rgba(255,255,255,0.5); | |
| backdrop-filter: blur(2px); | |
| } | |
| .map-empty .icon { | |
| width: 36px; height: 36px; | |
| border: 1px dashed var(--line-strong); | |
| border-radius: 50%; | |
| display: flex; align-items: center; justify-content: center; | |
| color: var(--muted-2); | |
| background: #fff; | |
| } | |
| .map-empty .text { | |
| font-size: 13.5px; | |
| color: var(--muted); | |
| letter-spacing: -0.005em; | |
| } | |
| #map { | |
| position: absolute; inset: 0; | |
| background: var(--surface-2); | |
| } | |
| /* leaflet overrides */ | |
| .leaflet-container { font-family: inherit ; background: var(--surface-2) ; } | |
| .leaflet-control-attribution { | |
| background: rgba(255,255,255,0.85) ; | |
| font-size: 10px ; | |
| color: var(--muted-2) ; | |
| } | |
| .leaflet-control-attribution a { color: var(--muted) ; } | |
| .leaflet-bar a { | |
| background: #fff ; | |
| border-color: var(--line) ; | |
| color: var(--ink) ; | |
| width: 28px ; height: 28px ; line-height: 28px ; | |
| } | |
| .leaflet-bar a:hover { background: var(--surface-2) ; } | |
| /* trajectory markers */ | |
| .trajectory-dot { | |
| width: 12px; height: 12px; | |
| border-radius: 50%; | |
| border: 2px solid #fff; | |
| box-shadow: 0 1px 2px rgba(0,0,0,0.2); | |
| cursor: pointer; | |
| transition: transform .12s ease; | |
| } | |
| .trajectory-dot:hover { transform: scale(1.4); } | |
| .trajectory-dot.low { background: var(--risk-low); } | |
| .trajectory-dot.mod { background: var(--risk-mod); } | |
| .trajectory-dot.high { background: var(--risk-high); } | |
| .airport-pin { | |
| width: 24px; height: 24px; | |
| border-radius: 50%; | |
| background: #0a0a0a; | |
| color: #fff; | |
| display: flex; align-items: center; justify-content: center; | |
| font-size: 9.5px; | |
| font-weight: 600; | |
| letter-spacing: 0.04em; | |
| border: 2px solid #fff; | |
| box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 0 0 4px rgba(10,10,10,0.06); | |
| font-family: "Inter", system-ui, sans-serif; | |
| } | |
| /* leaflet tooltip */ | |
| .leaflet-tooltip.penumbra-tip { | |
| background: rgba(10,10,10,0.96); | |
| color: #fff; | |
| border: none; | |
| border-radius: 8px; | |
| padding: 10px 12px; | |
| font-size: 12px; | |
| letter-spacing: -0.005em; | |
| box-shadow: 0 4px 16px rgba(0,0,0,0.18); | |
| font-family: "Inter", system-ui, sans-serif; | |
| line-height: 1.4; | |
| } | |
| .leaflet-tooltip.penumbra-tip::before { display: none; } | |
| .penumbra-tip .tip-row { display: flex; justify-content: space-between; gap: 14px; } | |
| .penumbra-tip .tip-row .k { color: rgba(255,255,255,0.55); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; } | |
| .penumbra-tip .tip-row .v { font-variant-numeric: tabular-nums; } | |
| .penumbra-tip .tip-head { | |
| font-weight: 600; | |
| letter-spacing: -0.005em; | |
| margin-bottom: 6px; | |
| font-size: 12.5px; | |
| border-bottom: 1px solid rgba(255,255,255,0.12); | |
| padding-bottom: 6px; | |
| } | |
| /* legend */ | |
| .map-legend { | |
| position: absolute; | |
| left: 14px; bottom: 14px; | |
| z-index: 400; | |
| background: rgba(255,255,255,0.94); | |
| backdrop-filter: blur(10px); | |
| border: 1px solid var(--line); | |
| border-radius: 10px; | |
| padding: 10px 12px; | |
| box-shadow: var(--shadow-card); | |
| font-size: 11.5px; | |
| color: var(--ink-2); | |
| display: flex; align-items: center; gap: 14px; | |
| } | |
| .map-legend .item { display: inline-flex; align-items: center; gap: 6px; } | |
| .map-legend .swatch { | |
| width: 8px; height: 8px; border-radius: 50%; | |
| } | |
| .map-legend .swatch.low { background: var(--risk-low); } | |
| .map-legend .swatch.mod { background: var(--risk-mod); } | |
| .map-legend .swatch.high { background: var(--risk-high); } | |
| /* ---------- Explainer ---------- */ | |
| .explainer { | |
| margin-top: 80px; | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 16px; | |
| } | |
| @media (max-width: 880px) { | |
| .explainer { grid-template-columns: 1fr; } | |
| } | |
| .explainer .card { | |
| border: 1px solid var(--line); | |
| border-radius: var(--r-xl); | |
| background: #fff; | |
| box-shadow: var(--shadow-card); | |
| padding: 28px 28px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .explainer .icon { | |
| width: 32px; height: 32px; | |
| display: flex; align-items: center; justify-content: center; | |
| border: 1px solid var(--line); | |
| border-radius: 8px; | |
| color: var(--ink); | |
| background: #fff; | |
| } | |
| .explainer h3 { | |
| margin: 0; | |
| font-size: 16px; | |
| font-weight: 600; | |
| letter-spacing: -0.015em; | |
| } | |
| .explainer p { | |
| margin: 0; | |
| font-size: 13.5px; | |
| color: var(--muted); | |
| line-height: 1.55; | |
| letter-spacing: -0.005em; | |
| } | |
| /* ---------- Footer ---------- */ | |
| .footer { | |
| margin-top: 96px; | |
| border-top: 1px solid var(--line); | |
| padding: 32px 0 56px; | |
| color: var(--muted); | |
| font-size: 12.5px; | |
| } | |
| .footer .cols { | |
| display: flex; justify-content: space-between; align-items: center; | |
| gap: 24px; flex-wrap: wrap; | |
| } | |
| .footer a { color: var(--muted); text-decoration: none; } | |
| .footer a:hover { color: var(--ink); } | |
| /* placeholder state */ | |
| .placeholder-state { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| text-align: center; | |
| padding: 40px 16px; | |
| color: var(--muted); | |
| flex: 1; | |
| } | |
| .placeholder-state .ph-icon { | |
| width: 44px; height: 44px; | |
| border: 1px dashed var(--line-strong); | |
| border-radius: 50%; | |
| display: flex; align-items: center; justify-content: center; | |
| margin-bottom: 14px; | |
| color: var(--muted-2); | |
| } | |
| .placeholder-state .ph-text { | |
| font-size: 14px; | |
| color: var(--muted); | |
| max-width: 240px; | |
| line-height: 1.5; | |
| letter-spacing: -0.005em; | |
| } | |
| /* ---------- Lang switch ---------- */ | |
| .lang-switch { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 4px 10px; | |
| border: 1px solid var(--line); | |
| border-radius: 999px; | |
| background: #fff; | |
| } | |
| .lang-switch .ls-btn { | |
| font: inherit; | |
| font-size: 12px; | |
| letter-spacing: 0.04em; | |
| font-weight: 500; | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| color: var(--muted-2); | |
| padding: 2px 4px; | |
| } | |
| .lang-switch .ls-btn.active { color: var(--ink); } | |
| .lang-switch .ls-btn:hover { color: var(--ink); } | |
| .lang-switch .ls-sep { color: var(--line-strong); font-size: 12px; } | |
| .nav a.active { color: var(--ink); font-weight: 500; } | |
| /* ---------- CI line ---------- */ | |
| .ci-line { | |
| font-size: 12.5px; | |
| color: var(--muted); | |
| letter-spacing: -0.005em; | |
| margin-top: -6px; | |
| } | |
| .link-btn { | |
| font: inherit; | |
| font-size: 12px; | |
| color: var(--muted); | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| letter-spacing: -0.005em; | |
| padding: 4px 0; | |
| } | |
| .link-btn:hover { color: var(--ink); } | |
| .form-note { | |
| margin: 16px 0 0; | |
| font-size: 12px; | |
| color: var(--muted); | |
| line-height: 1.5; | |
| letter-spacing: -0.005em; | |
| } | |
| /* ---------- Docs page ---------- */ | |
| .docs { display: flex; flex-direction: column; gap: 18px; padding-bottom: 16px; } | |
| .docs-card { | |
| background: #fff; | |
| border: 1px solid var(--line); | |
| border-radius: var(--r-xl); | |
| box-shadow: var(--shadow-card); | |
| padding: 28px 32px; | |
| } | |
| .docs-h3 { | |
| font-size: 11.5px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.1em; | |
| color: var(--muted); | |
| font-weight: 500; | |
| margin: 26px 0 12px; | |
| } | |
| .docs-h3:first-of-type { margin-top: 22px; } | |
| .endpoint { | |
| display: inline-flex; align-items: center; gap: 10px; | |
| padding: 8px 12px; | |
| border: 1px solid var(--line); | |
| border-radius: 10px; | |
| background: var(--surface-2); | |
| font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace; | |
| font-size: 13.5px; | |
| } | |
| .endpoint .method { | |
| background: var(--ink); color: #fff; | |
| padding: 2px 8px; border-radius: 5px; | |
| font-size: 11px; font-weight: 600; | |
| letter-spacing: 0.04em; | |
| } | |
| .endpoint .path { color: var(--ink); letter-spacing: -0.005em; } | |
| .param-table { width: 100%; border-collapse: collapse; font-size: 13.5px; } | |
| .param-table th, .param-table td { | |
| text-align: left; padding: 10px 12px; | |
| border-bottom: 1px solid var(--line); | |
| vertical-align: top; | |
| } | |
| .param-table th { | |
| font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; | |
| color: var(--muted); font-weight: 500; | |
| border-bottom-color: var(--line-strong); | |
| } | |
| .param-table tr:last-child td { border-bottom: none; } | |
| .param-table td:first-child, .param-table td:nth-child(2) { width: 1%; white-space: nowrap; } | |
| .param-table code { | |
| font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace; | |
| font-size: 12.5px; | |
| background: var(--surface-3); | |
| padding: 2px 6px; border-radius: 4px; | |
| color: var(--ink); | |
| } | |
| .docs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } | |
| @media (max-width: 880px) { .docs-grid-2 { grid-template-columns: 1fr; } } | |
| .code-block { | |
| border: 1px solid var(--line); | |
| border-radius: var(--r-md); | |
| overflow: hidden; | |
| background: var(--surface-2); | |
| } | |
| .code-head { | |
| display: flex; justify-content: space-between; align-items: center; | |
| padding: 8px 14px; | |
| border-bottom: 1px solid var(--line); | |
| background: #fff; | |
| } | |
| .code-head .lang { | |
| font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; | |
| color: var(--muted); font-weight: 500; | |
| } | |
| .copy-btn { | |
| font: inherit; font-size: 12px; | |
| border: 1px solid var(--line); background: #fff; | |
| border-radius: 6px; padding: 3px 9px; | |
| color: var(--ink-2); cursor: pointer; | |
| } | |
| .copy-btn:hover { border-color: var(--ink); } | |
| .code-block pre { | |
| margin: 0; padding: 16px 18px; | |
| font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace; | |
| font-size: 12.5px; line-height: 1.6; | |
| color: var(--ink); background: var(--surface-2); | |
| overflow-x: auto; white-space: pre; | |
| } | |
| .github-link { | |
| display: flex; align-items: center; gap: 14px; | |
| padding: 16px 22px; | |
| border: 1px solid var(--line); | |
| border-radius: var(--r-md); | |
| background: #fff; | |
| text-decoration: none; | |
| color: var(--ink); | |
| font-size: 13.5px; | |
| letter-spacing: -0.005em; | |
| transition: border-color .15s ease; | |
| } | |
| .github-link:hover { border-color: var(--ink); } | |
| .github-link .gh-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); } | |
| .github-link .arrow-ext { margin-left: auto; color: var(--muted-2); } | |
| /* ---------- Field pair (two fields side by side) ---------- */ | |
| .field-pair { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 12px; | |
| } | |
| .field-pair .field { margin-bottom: 0; } | |
| .iata-input { | |
| letter-spacing: 0.1em; | |
| text-transform: uppercase; | |
| font-weight: 600; | |
| font-size: 16px ; | |
| } | |
| /* ---------- Solar event alert ---------- */ | |
| .solar-alert { | |
| display: flex; | |
| gap: 12px; | |
| align-items: flex-start; | |
| background: #fff8f0; | |
| border: 1px solid #f0b070; | |
| border-radius: var(--r-md); | |
| padding: 14px 16px; | |
| margin-bottom: 16px; | |
| font-size: 13px; | |
| line-height: 1.5; | |
| } | |
| .alert-icon { | |
| flex-shrink: 0; | |
| color: #c85000; | |
| margin-top: 1px; | |
| } | |
| .alert-body strong { | |
| display: block; | |
| font-size: 13.5px; | |
| font-weight: 600; | |
| color: var(--ink); | |
| margin-bottom: 4px; | |
| } | |
| .alert-row { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| color: var(--ink-2); | |
| } | |
| .storm-badge { | |
| display: inline-block; | |
| padding: 1px 7px; | |
| border-radius: 4px; | |
| font-size: 11px; | |
| font-weight: 700; | |
| color: #fff; | |
| letter-spacing: 0.04em; | |
| } | |
| .alert-note { | |
| margin-top: 6px; | |
| font-size: 12px; | |
| color: var(--muted); | |
| } | |
| /* ---------- Map controls (NAT toggle + legend) ---------- */ | |
| .map-controls { | |
| position: absolute; | |
| left: 14px; bottom: 14px; | |
| z-index: 400; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| } | |
| .nat-toggle { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 5px; | |
| background: rgba(255,255,255,0.94); | |
| backdrop-filter: blur(10px); | |
| border: 1px solid var(--line); | |
| border-radius: 10px; | |
| padding: 8px 12px; | |
| box-shadow: var(--shadow-card); | |
| font-size: 11.5px; | |
| color: var(--ink-2); | |
| cursor: pointer; | |
| transition: border-color .15s, color .15s; | |
| } | |
| .nat-toggle:hover { border-color: var(--ink); color: var(--ink); } | |
| .nat-toggle.active { border-color: #1a6fbd; color: #1a6fbd; background: #f0f6ff; } | |
| .nat-label { | |
| background: rgba(26,111,189,0.15); | |
| color: #1a6fbd; | |
| font-size: 10px; | |
| font-weight: 600; | |
| padding: 2px 6px; | |
| border-radius: 4px; | |
| letter-spacing: 0.05em; | |
| pointer-events: none; | |
| white-space: nowrap; | |
| } | |
| /* override map-legend to not be absolute anymore (now inside .map-controls) */ | |
| .map-controls .map-legend { | |
| position: static; | |
| box-shadow: var(--shadow-card); | |
| } | |
| /* ---------- Airport autocomplete ---------- */ | |
| .ap-field { | |
| position: relative; | |
| } | |
| .ap-suggestions { | |
| position: absolute; | |
| top: calc(100% + 4px); | |
| left: 0; right: 0; | |
| z-index: 200; | |
| margin: 0; padding: 4px 0; | |
| list-style: none; | |
| background: #fff; | |
| border: 1px solid var(--line); | |
| border-radius: var(--r-md); | |
| box-shadow: 0 8px 24px rgba(0,0,0,0.10); | |
| overflow: hidden; | |
| } | |
| .ap-suggestions li { | |
| display: flex; | |
| align-items: baseline; | |
| gap: 8px; | |
| padding: 9px 14px; | |
| cursor: pointer; | |
| font-size: 13px; | |
| transition: background .1s; | |
| } | |
| .ap-suggestions li:hover { background: var(--surface-2); } | |
| .ap-code { | |
| font-weight: 700; | |
| font-size: 12px; | |
| letter-spacing: 0.06em; | |
| color: var(--ink); | |
| min-width: 34px; | |
| } | |
| .ap-city { | |
| color: var(--ink); | |
| font-weight: 500; | |
| } | |
| .ap-name { | |
| color: var(--muted); | |
| font-size: 11.5px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |