/* Aviation Incidents / violet edition. System fonts; no remote font requests. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.5; font-synthesis: none;
  --bg: #eeebf5; --panel: #faf9fd; --surface: #ffffff; --surface-2: #f0edf7;
  --surface-3: #e5dff1; --text: #252038; --muted: #68607b; --faint: #746982;
  --line: #ded8e9; --line-strong: #c4b9da; --accent: #6650be;
  --accent-strong: #513da6; --accent-soft: #eae3ff; --accent-on: #ffffff;
  --danger: #ac3636; --shadow: 0 12px 36px #21163724; --sidebar: 390px;
  color-scheme: light; color: var(--text); background: var(--bg);
}
html[data-theme="dark"] {
  --bg: #15131f; --panel: #201c2e; --surface: #272236; --surface-2: #302941;
  --surface-3: #413653; --text: #f2eefc; --muted: #c1b8d2; --faint: #aea2c3;
  --line: #3d334f; --line-strong: #5c4c78; --accent: #b9a5ff;
  --accent-strong: #d5c8ff; --accent-soft: #3b2d5c; --accent-on: #211438;
  --danger: #ff9b9b; --shadow: 0 14px 40px #0005;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body, #root { height: 100%; width: 100%; margin: 0; }
body { overflow: hidden; color: var(--text); background: var(--bg); }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.35; font-size: 14px; }
button:hover { background: var(--surface-2); border-color: var(--line-strong); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.active, .period-buttons .active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input, select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input::placeholder { color: var(--muted); opacity: 1; }
input[type=range], input[type=checkbox] { accent-color: var(--accent); }
input[type=checkbox] { width: 19px; height: 19px; flex: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.6px; font-weight: 650; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { line-height: 1.65; }
small { font-size: 12px; color: var(--muted); }
svg { height: 20px; width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-button { width: 40px; height: 40px; padding: 9px; flex: none; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-on); font-weight: 600; }
.primary:hover { background: var(--accent-strong); color: var(--accent-on); }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); padding: 18px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.application { height: 100dvh; display: flex; flex-direction: column; }
.app-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; gap: 20px; flex: none; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 40; }
.brand { font-size: 19px; color: var(--text); letter-spacing: -.5px; white-space: nowrap; }
.brand strong { font-weight: 650; }
.brand:hover { text-decoration: none; }
.app-header nav { display: flex; gap: 6px; align-self: center; }
.app-header nav button { background: transparent; border: 0; color: var(--muted); padding-inline: 16px; }
.app-header nav button.active { background: var(--accent-soft); color: var(--accent); }
.header-end { display: flex; gap: 8px; align-items: center; }
.header-end select { font-size: 13px; width: 65px; padding-inline: 8px; }
.theme-toggle { background: transparent; }
.workspace { position: relative; flex: 1; min-height: 0; }
.main-content { position: absolute; inset: 0; }
.map-view, .map-container { position: absolute; inset: 0; }
.map-canvas { position: absolute; inset: 0; }
.view-hidden { visibility: hidden; pointer-events: none; }
.map-search { position: absolute; z-index: 24; left: 16px; top: 16px; width: 390px; max-width: calc(100% - 350px); }
.global-search { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 14px; min-height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); box-shadow: 0 3px 14px #21163712; }
.global-search input { border: 0; padding: 7px 0; width: 100%; background: transparent; outline: none; font-size: 15px; }
.global-search>svg { color: var(--muted); }
.global-search kbd { margin-right: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; }
.global-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.global-search .icon-button { width: 32px; min-height: 32px; height: 32px; padding: 5px; border: 0; background: transparent; }
.search-results { margin-top: 8px; border: 1px solid var(--line-strong); background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); max-height: min(640px, calc(100dvh - 200px)); overflow: auto; scrollbar-width: thin; }
.search-results h3 { padding: 14px 16px 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.suggestion { display: flex; justify-content: flex-start; text-align: left; border: 0; border-radius: 0; width: 100%; background: none; padding: 10px 16px; gap: 12px; min-height: 56px; }
.suggestion svg { color: var(--accent); }
.suggestion span { min-width: 0; overflow-wrap: anywhere; }
.suggestion strong { display: block; font-size: 14px; font-weight: 600; }
.suggestion small { display: block; margin-top: 2px; font-size: 12px; }
.search-footer { border-top: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.search-footer>button { width: 100%; }
.search-footer small { line-height: 1.5; padding: 2px 4px; }
.osm-credit { display: block; padding: 10px; }
.map-toolbar { position: absolute; z-index: 20; top: 16px; right: 16px; display: flex; gap: 8px; }
.map-toolbar button { height: 50px; background: var(--panel); border-color: var(--line-strong); border-radius: 11px; }
.map-toolbar .icon-button { width: 50px; }
.map-toolbar button.active { background: var(--accent-soft); }
.map-chips { position: absolute; top: 76px; left: 16px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 90px); z-index: 10; pointer-events: none; }
.map-chips>button, .map-chips>span { pointer-events: auto; font-size: 12px; min-height: 32px; padding: 5px 10px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 2px 8px #0001; }
.map-chips svg { width: 14px; height: 14px; }
.count-chip { color: var(--muted); display: inline-flex; align-items: center; }
.layers-popover { position: absolute; right: 16px; top: 76px; width: 315px; z-index: 25; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow); border-radius: 13px; padding: 0 16px 16px; }
.layers-popover>.panel-heading { padding-inline: 0; }
.layers-popover>label { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 18px; font-size: 13px; }
.layers-popover>button { width: 100%; }
.timeline { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; width: min(640px, calc(100% - 380px)); height: 68px; z-index: 8; display: flex; align-items: center; gap: 18px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; }
.timeline>button { font-size: 12px; white-space: nowrap; background: none; border: 0; padding-inline: 5px; }
.period-label { color: var(--accent); font-weight: 650; }
.timeline-chart { flex: 1; min-width: 0; }
.histogram { display: flex; align-items: flex-end; height: 25px; gap: 3px; }
.histogram button { flex: 1; padding: 0; min-height: 3px; min-width: 0; border: 0; border-radius: 2px 2px 0 0; background: var(--accent); opacity: .8; }
.histogram button:hover { opacity: 1; background: var(--accent-strong); }
.timeline-years { display: flex; justify-content: space-between; margin-top: 3px; font-size: 11px; color: var(--muted); }
.legend-box { position: absolute; right: 16px; bottom: 44px; z-index: 12; display: flex; flex-direction: column-reverse; align-items: flex-end; }
.legend-toggle { font-size: 12px; background: var(--panel); }
.legend-items { display: flex; flex-direction: column; gap: 10px; width: 240px; margin-bottom: 8px; padding: 16px; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow); border-radius: 12px; }
.legend-items>span { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-items i, .detail-eyebrow i { width: 13px; height: 15px; flex: none; clip-path: polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%); }
.maplibregl-ctrl-top-right>.maplibregl-ctrl { margin: 125px 16px 0 0 !important; }
.maplibregl-ctrl-group { background: var(--panel) !important; border: 1px solid var(--line-strong); border-radius: 10px !important; box-shadow: none !important; }
.maplibregl-ctrl-group button { min-height: 40px; width: 40px !important; height: 40px !important; border-color: var(--line) !important; }
html[data-theme="dark"] .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-ctrl-attrib { font-size: 11px !important; background: var(--panel) !important; color: var(--muted) !important; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-scale { background: var(--panel) !important; color: var(--text) !important; border-color: var(--muted) !important; font-size: 11px !important; }
.map-notice { position: absolute; left: 16px; bottom: 108px; z-index: 12; width: min(350px, calc(100% - 90px)); display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); padding: 10px 12px; font-size: 12px; }
.map-notice button { font-size: 12px; min-height: 32px; }
.map-failure { position: absolute; inset: 30%; padding: 25px; background: var(--panel); border-radius: 12px; }
.data-loading-overlay { position: absolute; z-index: 14; top: 124px; left: 16px; width: min(315px, calc(100% - 90px)); padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); box-shadow: var(--shadow); pointer-events: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; font-size: 13px; }
progress { display: block; width: 100%; height: 4px; accent-color: var(--accent); border: 0; border-radius: 4px; }
progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.data-error { position: absolute; z-index: 16; left: 16px; top: 124px; width: 330px; padding: 18px; background: var(--panel); border: 1px solid var(--danger); border-radius: 12px; }
.data-error p { font-size: 13px; margin: 8px 0; }
.coindicent-picker, .coincident-picker { position: absolute; z-index: 18; left: 16px; top: 126px; width: 340px; max-height: 45vh; padding: 14px; overflow: auto; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.coincident-picker>button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
.sidebar { position: absolute; z-index: 30; left: 16px; top: 124px; bottom: 16px; width: var(--sidebar); display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.view-records .sidebar, .view-data .sidebar, .view-insights .sidebar { top: 16px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; flex: none; border-bottom: 1px solid var(--line); }
.panel-heading>div { display: flex; gap: 5px; }
.panel-heading .icon-button { background: none; border: 0; }
.panel-scroll { flex: 1; overflow: auto; min-height: 0; padding: 20px; overscroll-behavior: contain; scrollbar-width: thin; }
.panel-scroll:has(.detail-panel) { padding: 0; }
.panel-footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; font-size: 13px; }
.sheet-handle, .expand-sheet { display: none; }
.sector-tabs, .period-buttons { display: flex; gap: 5px; margin-bottom: 18px; }
.sector-tabs>button, .period-buttons>button { flex: 1; padding-inline: 5px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-bottom: 24px; }
.filter-select { display: flex; flex-direction: column; gap: 7px; font-size: 13px; min-width: 0; }
.filter-select select { width: 100%; font-size: 13px; padding-inline: 7px; }
.filter-select:nth-child(3), .filter-select:nth-child(4) { grid-column: span 2; }
.panel-scroll>h3 { margin-bottom: 12px; }
.period-inputs { display: flex; gap: 12px; margin: 12px 0; }
.period-inputs label { display: flex; flex: 1; flex-direction: column; gap: 5px; font-size: 13px; }
.period-inputs input { width: 100%; }
.reset-button { margin-top: 20px; width: 100%; color: var(--accent); }
.detail-topbar { display: flex; justify-content: flex-end; padding: 14px 20px 0; }
.detail-topbar>.text-button { display: none; }
.record-id { color: var(--muted); font: 12px ui-monospace, monospace; }
.detail-content { padding: 18px 20px 28px; }
.detail-content h1 { margin: 12px 0; font-size: 26px; }
.detail-content h2 { margin: 25px 0 12px; font-size: 15px; }
.detail-eyebrow { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.detail-date { font-size: 14px; color: var(--muted); }
.detail-aircraft { margin-top: 20px; padding: 16px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; }
.detail-aircraft>div+div { padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
.eyebrow { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.detail-aircraft strong { display: block; font-size: 17px; font-weight: 600; }
.detail-aircraft small { display: block; margin-top: 5px; }
.casualty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.casualty-grid>div { padding: 14px; background: var(--surface-2); border-radius: 9px; }
.casualty-grid strong { display: block; font-size: 30px; }
.casualty-grid span { display: block; font-size: 12px; color: var(--muted); }
.detail-facts { margin: 14px 0; }
.detail-facts>div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
dt { color: var(--muted); } dd { margin: 0; }
.method-note, .summary-text, .position-note, .shared-event p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.method-note { padding: 12px 14px; margin-top: 12px; background: var(--surface-2); border-radius: 8px; }
.unresolved-total { display: flex; gap: 12px; padding: 15px 0; font-size: 14px; }
.shared-event { padding: 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; margin: 20px 0; }
.shared-total { font-size: 26px; display: block; margin: 12px 0; }
.sibling-link { display: flex; width: 100%; margin: 6px 0; text-align: left; }
.wiki-button { display: flex; align-items: center; justify-content: space-between; padding: 13px; border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; font-size: 14px; }
.wiki-letter { font: 23px Georgia,serif; }
.source-links a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: 13px; }
.source-links small { display: block; margin-top: 4px; }
.quality-details { border-top: 1px solid var(--line); padding-top: 15px; margin: 22px 0; font-size: 13px; color: var(--muted); }
.quality-details p { margin-top: 10px; }.quality-details code { display: block; margin-top: 10px; overflow-wrap: anywhere; }
.small-note { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 12px 0; }
.detail-loading { padding: 22px; color: var(--muted); }
.page-view { position: absolute; inset: 0; overflow: auto; padding: 38px max(24px, calc((100vw - 1080px)/2)); background: var(--bg); }
.page-heading { margin-bottom: 25px; }.page-heading p { color: var(--muted); margin-top: 12px; font-size: 14px; max-width: 800px; }
.records-tools { display: flex; gap: 10px; margin-top: 20px; }.records-tools input { flex: 1; }
.table-scroll { overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; padding: 13px 16px; font-size: 12px; color: var(--muted); background: var(--surface-2); font-weight: 600; }
td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
td:first-child { white-space: nowrap; font-size: 12px; }td small { display: block; margin-top: 3px; }
.table-link { padding: 0; border: 0; text-align: left; justify-content: flex-start; background: transparent; min-height: 30px; color: var(--text); }
.pagination { display: flex; justify-content: center; gap: 18px; align-items: center; margin: 24px 0; font-size: 13px; }
.rank-toolbar { display: flex; gap: 15px; justify-content: space-between; }
.ranking-list { margin-top: 20px; }.ranking-row { display: flex; text-align: left; width: 100%; padding: 18px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 18px; }
.rank-number { color: var(--muted); width: 28px; text-align: center; font-size: 13px; }.rank-body { flex: 1; }.rank-body strong { font-size: 15px; }.rank-track { display: block; height: 6px; background: var(--surface-3); border-radius: 4px; overflow: hidden; margin-top: 10px; }.rank-track>span { display: block; height: 100%; background: var(--accent); }
.stat-strip { display: flex; gap: 40px; padding: 25px 0; border-block: 1px solid var(--line); margin: 25px 0 35px; }.stat-strip strong { display: block; font-size: 32px; font-weight: 600; }.stat-strip span { color: var(--muted); font-size: 13px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }.data-section { border-top: 1px solid var(--line); padding-top: 18px; }.data-section h2 { margin-bottom: 12px; }.data-section p { color: var(--muted); font-size: 14px; margin: 10px 0; }.data-section a { font-size: 13px; }
.check-label { display: flex; align-items: center; gap: 9px; font-size: 13px; margin-top: 14px; }.data-footer { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.boot-message { padding: 40px; font-size: 22px; }.boot-message small { display: block; margin-top: 8px; }
@media(max-width:1000px) { .app-header { gap: 12px; padding-inline: 14px; }.app-header nav { gap: 1px; }.app-header nav button { padding-inline: 10px; }.timeline { width: min(550px, calc(100% - 290px)); gap: 8px; }.timeline>button:last-child { display: none; }.map-search { width: 350px; } }
@media(max-width:760px) {
 :root { font-size: 16px; --sidebar: 100%; }
 button { min-height: 44px; }
 .icon-button { min-height: 44px; width: 44px; height: 44px; }
 input,select { font-size: 16px; min-height: 44px; }
 .app-header { height: 102px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 55px 47px; gap: 0; padding: 0 12px; }
 .brand { font-size: 18px; grid-area: 1/1/2/2; }.header-end { grid-area: 1/2/2/3; gap: 2px; }.header-end select { font-size: 13px; width: 58px; }
 .app-header nav { grid-area: 2/1/3/3; justify-content: space-between; gap: 0; }.app-header nav button { min-height: 39px; font-size: 13px; padding: 9px 10px; }
 .map-search { left: 10px; right: 10px; top: 10px; width: auto; max-width: none; }
 .global-search { min-height: 52px; padding-left: 12px; border-radius: 11px; }.global-search input { font-size: 16px; }.global-search kbd { display: none; }
 .search-results { max-height: min(55dvh,500px); }.suggestion { min-height: 60px; }
 .map-toolbar { top: 73px; right: 10px; gap: 6px; }.map-toolbar button { height: 44px; min-height: 44px; padding: 10px; }.map-toolbar .icon-button { width: 44px; }.map-toolbar span { display: none; }
 .map-chips { left: 10px; top: 78px; max-width: calc(100% - 168px); }.map-chips>button { min-height: 34px; font-size: 12px; padding: 6px 9px; }.count-chip { display: none !important; }
 .layers-popover { right: 10px; top: 126px; width: min(330px,calc(100% - 20px)); }
 .timeline { display: none; }
 .legend-box { bottom: 36px; right: 10px; }.legend-toggle { min-height: 38px; font-size: 12px; }.legend-items { width: 230px; }
 .maplibregl-ctrl-top-right>.maplibregl-ctrl { margin: 134px 10px 0 0 !important; }.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }
 .map-notice { left: 10px; bottom: 34px; width: calc(100% - 110px); font-size: 12px; }.map-notice button { min-height: 40px; padding: 5px; }
 .data-loading-overlay { top: 131px; left: 10px; width: calc(100% - 75px); }.data-error { left: 10px; top: 131px; width: calc(100% - 75px); }
 .sidebar, .view-records .sidebar, .view-insights .sidebar, .view-data .sidebar { left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 60dvh; max-height: calc(100% - 62px); border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 40px #130e2828; }
 .sheet-expanded .sidebar { height: 80dvh; }
 .sheet-handle { display: flex; align-items: center; justify-content: center; height: 24px; flex: none; touch-action: none; cursor: ns-resize; }.sheet-handle>span { width: 42px; height: 4px; border-radius: 5px; background: var(--line-strong); }
 .expand-sheet { display: inline-flex; }.sheet-expanded .expand-sheet svg { transform: rotate(180deg); }
 .panel-heading { padding: 4px 16px 10px; }.panel-heading h2 { font-size: 17px; }.panel-scroll { padding: 18px 16px; }.panel-footer { padding: 10px 16px; }
 .filter-select select { font-size: 16px; }
 .coincident-picker { top: auto; bottom: 38px; left: 10px; width: calc(100% - 20px); max-height: 43dvh; }
 .page-view { padding: 24px 16px; }.page-heading h1 { font-size: 27px; }.page-heading p { font-size: 14px; }
 .table-scroll { border-radius: 10px; }table { min-width: 520px; }th,td { padding: 12px; }.records-tools { flex-wrap: wrap; }.records-tools input { min-width: 180px; width: 60%; }
 .rank-toolbar { flex-wrap: wrap; }.rank-toolbar select { max-width: 100%; }.rank-body strong { font-size: 14px; }.ranking-row { gap: 8px; }
 .stat-strip { gap: 14px; }.stat-strip>div { flex: 1; min-width: 0; }.stat-strip strong { font-size: 24px; }.stat-strip span { font-size: 12px; }
 .data-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Airport overlay */
.layers-popover>label.airport-toggle { gap: 5px; padding-top: 2px; }
.airport-toggle>span { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.airport-toggle small { padding-left: 29px; }
.airport-card {
  position: absolute; z-index: 16; left: 16px; bottom: 108px;
  width: min(380px, calc(100% - 32px)); display: grid;
  grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--panel); box-shadow: var(--shadow);
}
.airport-card>div { min-width: 0; }
.airport-card strong, .airport-card small { display: block; }
.airport-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.airport-card small { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.airport-badge {
  min-width: 54px; height: 30px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #ffffffcc; border-radius: 8px; background: #6f52d9; color: #fff;
  font-size: 13px; font-weight: 750; letter-spacing: .05em; box-shadow: 0 2px 8px #2b1b5f2b;
}

@media(max-width:760px) {
  .airport-card { left: 10px; bottom: 36px; width: calc(100% - 20px); padding: 10px; gap: 10px; }
  .airport-card strong { font-size: 14px; }
  .airport-badge { min-width: 50px; height: 30px; }
}

/* Font Awesome UI icon normalization. The project keeps icons local at build time. */
.fa-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
  overflow: visible;
}
.icon-button .fa-icon { width: 18px; height: 18px; }
.global-search > .fa-icon { width: 17px; height: 17px; color: var(--muted); }
.suggestion > .fa-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.chip-close-icon { width: 10px !important; height: 10px !important; margin-left: 2px; opacity: .72; }
.external-icon { width: 12px; height: 12px; margin-left: 5px; vertical-align: -.04em; }
.link-with-icon { display: inline-flex; align-items: center; gap: 6px; }
.source-links a > .fa-icon { width: 13px; height: 13px; margin-left: 12px; margin-top: 3px; color: var(--muted); }
.wiki-button > .fa-icon { width: 13px; height: 13px; }
.sibling-link .fa-icon { width: 12px; height: 12px; margin-left: 4px; }
.coincident-picker .between .icon-button { width: 36px; height: 36px; min-height: 36px; padding: 8px; border: 0; background: transparent; }

/* Airport preferences live inside Layers and are intentionally opt-in. */
.airport-toggle > span > .fa-icon { width: 15px; height: 15px; color: var(--accent); }
.airport-settings {
  display: grid;
  gap: 10px;
  margin: -6px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.airport-settings > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
}
.airport-settings select { width: 100%; }
.airport-badge { gap: 6px; }
.airport-badge .fa-icon { width: 12px; height: 12px; }

@media(max-width:760px) {
  .airport-settings > label { grid-template-columns: 1fr; gap: 5px; }
}

/* Legal notice and privacy */
.legal-link { min-height: 38px; padding: 7px 10px; background: transparent; border-color: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.legal-link:hover, .legal-link.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.legal-page { padding-bottom: 70px; }
.legal-draft { max-width: 900px; margin: 0 0 28px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); }
.legal-draft strong { display: block; margin-bottom: 5px; }
.legal-draft p { color: var(--muted); font-size: 13px; }
.legal-grid { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.6fr); gap: 24px; align-items: start; }
.legal-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.legal-card>p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal-card section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-card section p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.legal-card section a { font-size: 13px; }
.legal-details { margin: 22px 0 0; }
.legal-details div { padding: 14px 0; border-top: 1px solid var(--line); }
.legal-details dt { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.legal-details dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.legal-updated { display: block; margin-top: 26px; }
@media(max-width:900px) { .legal-grid { grid-template-columns: 1fr; } }
@media(max-width:760px) {
 .legal-link { min-height: 38px; padding: 6px 8px; font-size: 11px; }
 .legal-card { padding: 19px 16px; }
 .legal-draft { padding: 14px 15px; }
}
