/* AirportArc.com — airport tools and route reference pages */
:root {
  color-scheme: light;
  --ink: #132744;
  --muted: #52647b;
  --soft: #63758d;
  --blue: #2459c2;
  --blue-deep: #1b459d;
  --blue-light: #eaf2ff;
  --warm: #b94b22;
  --orange: #ff9b68;
  --line: #dce6f1;
  --line-strong: #c3d2e4;
  --surface: #ffffff;
  --paper: #f4f8fd;
  --navy: #102653;
  --radius: 18px;
  --shell: 1184px;
  --shadow: 0 10px 32px -20px #193e7154, 0 1px 2px #24426b07;
  --focus: 0 0 0 3px #9dbeff;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #f9fbfe;
  line-height: 1.58;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
main { min-height: 60vh; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
input, select { min-width: 0; }
[hidden] { display: none !important; }

a { color: var(--blue-deep); text-underline-offset: .2em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #3d78df; outline-offset: 3px; }
:where(input, select):focus-visible { outline-offset: 1px; }
::selection { background: #cfe0ff; color: var(--ink); }

h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.55vw, 4.6rem); line-height: .99; letter-spacing: -.065em; font-weight: 760; }
h2 { font-size: clamp(1.58rem, 3vw, 2.33rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 740; }
h3 { font-size: 1.125rem; line-height: 1.28; letter-spacing: -.021em; font-weight: 720; }
small { font-size: .825rem; }

.wrap { width: min(var(--shell), calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: absolute; top: .75rem; left: 1rem; z-index: 20; padding: .6rem 1rem; background: white; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header > .wrap, .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1.35rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .655rem; color: var(--ink); text-decoration: none; font-size: 1.09rem; font-weight: 790; line-height: 1.18; letter-spacing: -.045em; }
.brand:hover { color: var(--blue-deep); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #173c80; color: #eef5ff; box-shadow: inset 0 0 0 1px #fff2; }
.brand-mark svg { width: 20px; height: 20px; }
.site-nav { display: flex; align-items: center; gap: clamp(.2rem, 1.15vw, .85rem); }
.site-nav a, .nav-link { display: inline-flex; align-items: center; min-height: 42px; padding: .35rem .65rem; border-radius: 8px; color: #40536e; font-size: .86rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .nav-link:hover, .site-nav a[aria-current="page"], .nav-link[aria-current="page"] { background: var(--blue-light); color: var(--blue-deep); }

.hero { position: relative; padding-block: clamp(2.35rem, 5.6vw, 5rem) clamp(2.5rem, 4.8vw, 4.15rem); background: radial-gradient(ellipse at 76% 3%, #dceafb 0%, transparent 56%), linear-gradient(170deg, #f6f9fe 16%, #edf5fe 100%); border-bottom: 1px solid var(--line); }
.hero-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(1.35rem, 3.6vw, 3.15rem); align-items: center; }
.hero-grid > *, .detail-grid > * { min-width: 0; }
.hero-copy, .detail-header { min-width: 0; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: .48rem; color: var(--blue-deep); font-weight: 760; font-size: .715rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .135em; }
.eyebrow::before { content: ''; inline-size: .6rem; block-size: .6rem; border: 2px solid #6c91d3; border-radius: 50%; }
.hero h1 { margin-top: .75rem; }
.hero .lede, .detail-header .lede { margin-top: 1.05rem; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.14rem); max-width: 56ch; line-height: 1.55; }
.hero-copy > .panel, .hero-copy > form, .hero-grid > div:first-child > .panel, .hero-grid > div:first-child > form { margin-top: 1.65rem; }

.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.2vw, 1.45rem); box-shadow: var(--shadow); }
.panel > h2 { margin-bottom: .65rem; }
.panel > h3 { margin-bottom: .45rem; }
.panel > p + p { margin-top: .65rem; }
.panel > .map-panel { margin: .75rem 0 0; }
.route-form { display: grid; gap: .92rem; }
.route-form > .button { justify-self: start; }
.split-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: .55rem; }
.field { display: grid; gap: .35rem; position: relative; min-width: 0; }
.field > label, .field-label { color: #314661; font-size: .79rem; font-weight: 740; line-height: 1.35; }
.field :where(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), select), input[type="search"] { display: block; width: 100%; min-height: 47px; padding: .65rem .75rem; background: #f8fbff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 9px; font-size: 1rem; line-height: 1.25; }
.field :where(input, select):focus { background: white; border-color: #6f9be6; }
.field input::placeholder, input[type="search"]::placeholder { color: #5e7189; opacity: 1; }
.field input[aria-invalid="true"] { border-color: #be4725; }
.field input[type="range"] { accent-color: var(--blue); }
.input-note, .form-hint, .muted, .subtle { color: var(--muted); font-size: .87rem; }
.form-error, [aria-live="assertive"] { color: #a0361d; }
.form-actions, .quick-links, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .75rem; }
.form-actions .input-note { flex-basis: 100%; }
.swap { display: inline-grid; place-items: center; min-width: 42px; height: 47px; padding-inline: .55rem; border-radius: 10px; border: 1px solid var(--line-strong); background: #edf4fe; color: var(--blue-deep); font-weight: 750; white-space: nowrap; }
.swap:hover { background: #dfeaff; border-color: #95b2e1; }
.swap svg { width: 18px; height: 18px; }

.button { display: inline-flex; min-height: 44px; max-width: 100%; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 9px; padding: .58rem .88rem; background: #eaf2ff; color: #1b459d; text-decoration: none; text-align: center; line-height: 1.24; font-size: .88rem; font-weight: 730; }
.button:hover { background: #dce9fe; color: #193d85; }
.button-primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 9px #1e4ea322; }
.button-primary:hover { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.button-secondary { background: white; color: var(--blue-deep); border-color: var(--line-strong); }
.button-secondary:hover { background: var(--blue-light); color: var(--blue-deep); }
.button-ghost { background: transparent; border-color: transparent; }
.button :is(svg, img) { width: 17px; height: 17px; flex: 0 0 17px; }
.button:disabled { opacity: .56; cursor: wait; }

.suggestions { position: absolute; z-index: 12; top: 100%; inset-inline: 0; width: max-content; min-width: 100%; max-width: min(25rem, 100vw - 2rem); max-height: 19rem; margin: .3rem 0 0; padding: .3rem; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: 10px; background: white; box-shadow: 0 12px 34px #172e5538; list-style: none; }
.split-inputs > :last-child .suggestions { left: auto; right: 0; }
.suggestions :is([role="option"], button) { display: block; width: 100%; min-height: 42px; padding: .45rem .65rem; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; font-size: .88rem; line-height: 1.3; cursor: pointer; }
.suggestions :is([role="option"], button):hover, .suggestions [aria-selected="true"] { background: var(--blue-light); color: var(--blue-deep); }
.suggestions :is(small, .subtle, .muted) { display: block; margin-top: .15rem; font-size: .75rem; }
.suggestions [role="option"] > button { min-height: 0; padding: 0; }
.suggestions .suggestion-code { display: inline-block; min-width: 3.2em; margin-right: .38rem; color: var(--blue-deep); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .83rem; font-weight: 750; }
.suggestions .suggestion-name { font-weight: 650; }
.suggestions .suggestion-meta { display: block; margin-top: .12rem; color: var(--muted); font-size: .76rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem .45rem; align-items: center; color: var(--muted); font-size: .8rem; }
.chips :is(a, button), .tag { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; min-height: 34px; padding: .24rem .62rem; border: 1px solid #cbd9ec; border-radius: 999px; background: #f9fcff; color: var(--blue-deep); text-decoration: none; line-height: 1.18; font-size: .76rem; font-weight: 690; }
.chips :is(a, button):hover { border-color: #9ab7e8; background: var(--blue-light); }
.chips > span:not(.tag) { font-weight: 650; }
.tag { width: fit-content; min-height: 26px; padding: .18rem .5rem; }

.map-panel { position: relative; min-width: 0; padding: clamp(.7rem, 1.8vw, 1.1rem); border: 1px solid #274978; border-radius: 22px; background: #102653; color: #eef5ff; box-shadow: 0 22px 48px -26px #11264cbe; }
.map-panel :where(a) { color: #bad3ff; }
.map-panel :where(a):hover { color: #fff; }
.map-panel :where(h2, h3) { color: #fff; }
.map-kicker { display: flex; align-items: center; gap: .45rem; padding: .2rem .18rem .6rem; color: #adcbfa; font-weight: 760; font-size: .7rem; line-height: 1.18; text-transform: uppercase; letter-spacing: .12em; }
.map-kicker::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: #86aff6; box-shadow: 0 0 0 4px #86aff62a; }
.map-stage { position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid #375786; background-color: #102c57; background-image: repeating-linear-gradient(90deg, #9db8df15 0 1px, transparent 1px 34px), repeating-linear-gradient(0deg, #9db8df15 0 1px, transparent 1px 34px), radial-gradient(ellipse at 50% 50%, #234677 0%, transparent 88%); }
.map-stage > svg, .map-stage > canvas, .map-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.map-stage:empty::before { content: ''; position: absolute; inset: 50% 0 auto; border-top: 1px dashed #89b3e769; }
.map-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1rem; padding: .7rem .12rem .15rem; color: #c0d4f3; font-size: .75rem; }
.map-footer > strong { color: #fff; }
.map-endpoints { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
.map-endpoints > :nth-child(2)::before { background: var(--orange); }
.endpoint { display: inline-flex; align-items: center; gap: .36rem; font-weight: 700; color: #f3f7ff; }
.endpoint::before { content: ''; width: .46rem; height: .46rem; border-radius: 50%; background: #9fc2ff; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.1rem), 1fr)); gap: .62rem; }
.metric { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: .83rem .9rem; background: #f5f9ff; }
.metric strong, .metric-value { display: block; color: var(--ink); line-height: 1.1; font-size: clamp(1.29rem, 3.2vw, 1.95rem); font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.metric :is(dt, small), .metric-label { color: var(--muted); font-size: .79rem; font-weight: 650; }
.metric dd { margin: .15rem 0 0; }
.metric strong + :is(small, span), .metric-value + .metric-label { display: block; margin-top: .35rem; }
.result { display: grid; gap: .7rem; }
.result-title { font-weight: 730; }
.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.code { display: inline-block; width: fit-content; color: var(--blue-deep); font: 720 .92em/1.25 "IBM Plex Mono", Consolas, monospace; letter-spacing: .035em; }

.section { padding-block: clamp(1.7rem, 3.7vw, 3.15rem); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .7rem 1.35rem; margin-bottom: clamp(.9rem, 2vw, 1.35rem); }
.section-head > :first-child { max-width: 67ch; }
.section-head p { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
.section-head > a { font-size: .875rem; font-weight: 710; }
.section-head .section-kicker + h2 { margin-top: .3rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .78rem; }
.card { display: block; min-width: 0; min-height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
a.card:hover, .card:focus-within { border-color: #9fbae5; box-shadow: 0 10px 26px #274b7817; }
a.card:hover .card-title, a.card:hover h3 { color: var(--blue-deep); }
.card > :first-child { margin-top: 0; }
.card > :not(:first-child) { margin-top: .37rem; }
.card :where(p, small), .card-copy { color: var(--muted); font-size: .875rem; }
.card-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e9f1ff; color: #285ab5; }
.card-icon svg { width: 19px; height: 19px; }
.card-title { color: var(--ink); font-weight: 735; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 720; font-size: .86rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .25rem .48rem; align-items: center; color: var(--muted); padding-block: 1rem; font-size: .8rem; }
.breadcrumbs :where(ol, ul) { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; color: #63758d; margin-right: .46rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.detail-header { padding-block: .65rem clamp(1.05rem, 2.8vw, 2rem); }
.detail-header h1 { max-width: 22ch; margin-top: .45rem; font-size: clamp(2.18rem, 4.75vw, 3.65rem); line-height: 1.03; }
.detail-grid { align-items: start; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1rem, 2.65vw, 2rem); }
.stack { display: grid; align-content: start; gap: 1rem; min-width: 0; }
.prose { max-width: 76ch; color: #344b65; }
.prose :is(h2, h3) { color: var(--ink); }
.prose :is(h2, h3):not(:first-child) { margin-top: 1.35rem; }
.prose :is(p, ul, ol, dl):not(:first-child) { margin-top: .58rem; }
.prose :is(ul, ol) { padding-inline-start: 1.3rem; }
.prose li + li { margin-top: .28rem; }
.prose a { overflow-wrap: anywhere; }
.source-list { display: flex; flex-wrap: wrap; gap: .35rem .85rem; padding: 0; margin: .55rem 0 0; color: var(--muted); font-size: .835rem; list-style: none; }
.source-list li + li { margin-top: 0; }
.source-list > li { min-width: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
:is(td, th) { padding: .66rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #385374; font-size: .8rem; }
tr:last-child td { border-bottom: 0; }
:is(td, th):first-child { padding-inline-start: 0; }
details { min-width: 0; }
details summary { width: fit-content; color: var(--blue-deep); font-weight: 680; }
details[open] > summary { margin-bottom: .65rem; }

.site-footer { margin-top: clamp(1.5rem, 4vw, 3.65rem); background: #eef4fb; border-top: 1px solid var(--line); }
.site-footer > .wrap, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding-block: 1.35rem; color: var(--muted); font-size: .82rem; }
.site-footer :where(nav, .footer-links) { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .95rem; }
.site-footer :where(nav, .footer-links) a { font-weight: 650; text-decoration: none; }
.site-footer :where(nav, .footer-links) a:hover { text-decoration: underline; }

@media (max-width: 970px) {
  .wrap { width: min(var(--shell), calc(100% - 44px)); }
  .hero-grid, .detail-grid { gap: 1.3rem; }
  .site-nav { gap: .15rem; }
  .site-nav a, .nav-link { padding-inline: .45rem; }
}

@media (max-width: 720px) {
  .site-header > .wrap, .header-inner { flex-wrap: wrap; justify-content: flex-start; min-height: 0; gap: .38rem; padding-block: .67rem .43rem; }
  .site-nav { flex: 1 1 100%; flex-wrap: wrap; gap: .13rem .25rem; }
  .site-nav a, .nav-link { font-size: .79rem; min-height: 36px; padding: .27rem .47rem; }
  .hero-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .map-panel { max-width: 39rem; }
  .map-panel { border-radius: var(--radius); }
  .section-head { align-items: start; flex-direction: column; gap: .4rem; }
}

@media (max-width: 435px) {
  .wrap { width: calc(100% - 30px); }
  .hero { padding-block: 2rem 1.75rem; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.02rem); }
  .panel { padding: .86rem; }
  .split-inputs { grid-template-columns: minmax(0, 1fr) auto; gap: .58rem; }
  .split-inputs > .field { grid-column: 1; }
  .split-inputs > .swap { grid-column: 2; grid-row: 2; }
  .split-inputs > :last-child .suggestions { left: 0; right: auto; }
  .suggestions { max-width: calc(100vw - 60px); }
  .button-primary { min-height: 46px; }
  .metric-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); gap: .42rem; }
  .metric { padding: .6rem .65rem; }
  .metric :is(dt, small), .metric-label { font-size: .73rem; }
  .map-footer { padding-top: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
