:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --bg: #f2f5fa; --sidebar: #e8eef6; --surface: #fff; --fill: #edf2f8;
  --line: #d4deeb; --text: #14263e; --muted: #4f627a; --accent: #0059b3;
  --selected: #dceaff; --primary: #0059b3; --primary-text: #fff;
  --notice: #fff4dc; --notice-text: #624100; --notice-line: #e9d29e;
  --hero: #122c4e; --hero-end: #214c76; --hero-text: #f6f9ff; --hero-muted: #d5e4f4;
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111923; --sidebar: #172230; --surface: #1c2939; --fill: #26364a;
    --line: #364a61; --text: #f0f5fb; --muted: #bdc9d9; --accent: #9cc9ff;
    --selected: #293e5b; --primary: #a9d0ff; --primary-text: #102945;
    --notice: #382f20; --notice-text: #ffde9c; --notice-line: #715930;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 1.0625rem; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; background: var(--primary); color: var(--primary-text); cursor: pointer; font-weight: 650; }
button:hover { filter: brightness(.94); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 4; padding: 10px; background: var(--surface); color: var(--accent); transform: translateY(-150%); }
.skip:focus { transform: none; }
.mast { position: fixed; inset: 0 auto 0 0; width: 258px; padding: 34px 18px; background: var(--sidebar); border-inline-end: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 2px; background: none; color: var(--text); text-align: start; line-height: 1.25; font-size: 1rem; }
.brand small { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 500; }
.mark { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; background: var(--primary); color: var(--primary-text); font-size: 1.35rem; }
nav { display: grid; gap: 5px; margin-top: 42px; }
nav button { display: flex; align-items: center; gap: 12px; padding-inline: 13px; background: transparent; color: var(--muted); text-align: start; }
nav button[aria-current="page"] { color: var(--accent); background: var(--selected); }
nav button > span:first-child { display: inline-grid; place-items: center; width: 24px; font-size: 1.28rem; line-height: 1; }
.wrap { width: min(calc(100% - 258px), 1170px); margin-inline-start: max(258px, calc((100% - 912px) / 2)); padding: clamp(24px, 5vw, 68px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); letter-spacing: -.055em; line-height: 1.06; overflow-wrap: anywhere; }
h2 { font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.2; }
h3 { font-size: 1.16rem; line-height: 1.25; }
small, .muted { color: var(--muted); }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 17px; padding: clamp(24px, 5vw, 56px); border-radius: 26px; background: linear-gradient(120deg, var(--hero), var(--hero-end)); color: var(--hero-text); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .35; background: repeating-radial-gradient(circle at 89% 34%, transparent 0 32px, #91b4d6 33px 34px, transparent 35px 65px); mask-image: linear-gradient(90deg, transparent 39%, #000); pointer-events: none; }
.hero h1 { max-width: 12ch; }
.hero p { color: var(--hero-muted); max-width: 39ch; }
.search { position: relative; max-width: 510px; margin-top: 8px; }
.search > span { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.4rem; pointer-events: none; }
.search input { padding-inline-start: 42px; background: var(--surface); }
.hero :focus-visible { outline-color: #fff; }
.section { margin-block: 26px; }
.stack, .grid { display: grid; gap: 14px; }
.grid { margin-top: 13px; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.grid > p { padding: 18px; }
.airport-row { display: grid; grid-template-columns: max-content minmax(0,1fr) auto; align-items: center; gap: 16px; border: 0; border-radius: 0; padding: 14px 18px; color: var(--text); background: transparent; text-align: start; }
.airport-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.airport-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.airport-row:only-child { border-radius: var(--radius); }
.airport-row + .airport-row { border-top: 1px solid var(--line); }
.airport-row:hover { background: var(--fill); filter: none; }
.airport-row strong { background: var(--selected); color: var(--accent); border-radius: 10px; padding: 8px; font-size: .875rem; font-weight: 750; }
.airport-row small { display: block; font-size: .875rem; font-weight: 500; }
.chevron { color: var(--accent); font-size: 1.4rem; }
.quiet { width: fit-content; background: var(--selected); color: var(--accent); }
.card { display: grid; gap: 10px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); background: var(--surface); }
.notice { padding: 14px 16px; border: 1px solid var(--notice-line); border-radius: 14px; background: var(--notice); color: var(--notice-text); font-size: .9375rem; }
.pill { width: fit-content; padding: 4px 10px; border-radius: 9px; background: var(--selected); color: var(--accent); font-size: .8125rem; font-weight: 650; }
.card .row { gap: 7px; }
.narrow { max-width: 640px; }
form.narrow { margin-block-start: 18px; }
label { display: grid; gap: 6px; font-size: .9375rem; font-weight: 650; }
input, select, textarea { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--fill); color: var(--text); }
input::placeholder { color: var(--muted); }
textarea { min-height: 94px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; }
.check input { appearance: auto; accent-color: var(--accent); flex: 0 0 auto; width: 22px; min-height: 0; height: 22px; margin: 0; padding: 0; }
.status { color: var(--notice-text); }
.status:empty { display: none; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 780px) {
  .mast { position: static; width: auto; padding: 14px 18px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .wrap { width: auto; margin: 0 auto; padding: 20px 16px calc(90px + env(safe-area-inset-bottom)); }
  nav { position: fixed; z-index: 3; inset: auto 0 0; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; margin: 0; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  nav button { min-width: 0; justify-content: center; flex-direction: column; gap: 2px; padding: 5px 2px; text-align: center; font-size: .8125rem; overflow-wrap: anywhere; }
  .airport-row { gap: 10px; padding-inline: 12px; }
}
/* Airport library */
:root {
  --radius: 24px;
  --bg: #f4f6fb;
  --sidebar: #fff;
  --primary: #0057d8;
  --hero: #101f3a;
  --hero-end: #173e64;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101723; --sidebar: #151e2c; --primary: #a9d0ff; }
}
.mast { width: 232px; padding: 32px 15px; }
.wrap { width: min(calc(100% - 232px), 1200px); margin-inline: max(232px, calc((100% - 968px) / 2)) auto; padding: clamp(24px, 4vw, 58px); }
.hero { min-height: 335px; align-content: center; gap: 14px; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); max-width: 11ch; }
.hero .eyebrow { color: #a6d4ff; font-size: .76rem; font-weight: 750; letter-spacing: .17em; }
.hero::before { opacity: .65; background: radial-gradient(circle at 82% 47%, #438bc54d, transparent 40%), repeating-radial-gradient(circle at 84% 47%, transparent 0 36px, #a7d3ff70 37px 38px, transparent 39px 75px); }
.hero::after { content: ""; z-index: -1; position: absolute; width: 38%; height: 12%; right: 1%; top: 40%; transform: rotate(-39deg); border-block: 1px solid #a7d3ff65; background: linear-gradient(90deg,#a7d3ff22,#a7d3ff65,#a7d3ff20); pointer-events: none; }
.search input { border: 0; border-radius: 14px; }
.grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; background: none; border: 0; }
.grid .airport-row { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); min-height: 130px; }
.grid .airport-row:hover { background: var(--fill); }
.airport-row strong { grid-column: 1; justify-self: start; }
.airport-row > span:nth-child(2) { grid-column: 1; grid-row: 2; align-self: start; overflow-wrap: anywhere; }
.airport-row .chevron { grid-column: 2; grid-row: 1 / 3; }
.note { position: relative; overflow: hidden; padding-inline-start: clamp(20px, 4vw, 36px); }
.note::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.note h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.025em; }
.annotation-label { color: var(--accent); font-weight: 650; overflow-wrap: anywhere; }
.diagram-section { display: grid; justify-items: start; gap: 12px; padding: clamp(12px, 3vw, 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.diagram-header { display: grid; gap: 7px; }
.diagram { position: relative; width: min(100%, 650px); background: white; border: 1px solid var(--line); }
.diagram img { display: block; width: 100%; height: auto; }
.diagram.pick img { cursor: crosshair; }
.map-pin { position: absolute; display: grid; place-items: center; transform: translate(-50%,-50%); min-width: 44px; min-height: 44px; border: 2px solid white; border-radius: 50%; background: #0057d8; color: white; font-size: .875rem; padding: 4px; box-shadow: 0 2px 8px #0006; }
.annotation-editor { display: grid; gap: 10px; }
.annotation-editor > * + * { margin-top: 10px; }
summary { color: var(--accent); cursor: pointer; min-height: 44px; align-content: center; font-weight: 650; }
.coordinates label { max-width: 135px; }
.diagram-section a { color: var(--accent); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } .grid .airport-row { min-height: 80px; grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: auto; } .airport-row > span:nth-child(2) { grid-column: 2; grid-row: 1; align-self: center; } .airport-row .chevron { grid-column: 3; grid-row: 1; } }
@media (max-width: 780px) { .mast { width: auto; padding: 14px 18px; } .wrap { width: auto; margin: 0 auto; padding: 20px 16px calc(90px + env(safe-area-inset-bottom)); } .hero { min-height: 280px; } }
