@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f7fa;
  --white: #fff;
  --ink: #122339;
  --muted: #4e5f74;
  --line: #dce4ed;
  --soft: #ebf1f8;
  --accent: #9c421e;
  --accent-hover: #773013;
  --tint: #fff1e5;
  --amber: #ffc291;
  --map: #11243a;
  --map-line: #334e68;
  --map-ink: #f3f7fc;
  --shadow: 0 12px 33px #172f5010;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid #c36546; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
.shell { max-width: 1240px; margin-inline: auto; padding-inline: clamp(14px, 4vw, 38px); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 8px 12px; background: var(--white); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 67px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 800; letter-spacing: -.055em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-icon { display: block; width: 36px; height: 36px; flex: none; }
.brand-accent { color: var(--accent); }
.main-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(4px, 1.6vw, 21px); flex-wrap: wrap; }
.main-nav a, .site-footer nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.main-nav a { padding: 6px 12px; border-radius: 100px; white-space: nowrap; transition: color .16s, background-color .16s; }
.main-nav a:hover { color: var(--ink); background: var(--soft); }
.main-nav a[aria-current="page"] { color: var(--accent-hover); background: var(--tint); }

.home-page { position: relative; isolation: isolate; --backdrop-height: clamp(389px, 38vw, 548px); }
.home-page .site-header { border-color: #d6e5ff24; background: #0b1b2ce0; backdrop-filter: blur(12px); }
.home-page .site-header .brand { color: #fff8ee; }
.home-page .site-header .brand-accent { color: #ffcd9d; }
.home-page .main-nav a { color: #e2ecf6; }
.home-page .main-nav a:hover { color: var(--white); background: #ffffff1a; }
.home-page .main-nav a[aria-current="page"] { color: #ffe2c8; background: #eec8ad24; }
.hero-backdrop { position: absolute; z-index: -1; inset: 0 0 auto; height: var(--backdrop-height); overflow: hidden; background: #0b1b2c; pointer-events: none; }
.hero-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; animation: settle-sky 1s var(--ease-out) both; }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, #09162429, transparent 21%, transparent 67%, var(--paper)),
  linear-gradient(90deg, #0a182bd6, #0a182b47 47%, #0a182b00 72%); }
.hero-home { position: relative; display: flex; align-items: center; min-height: clamp(218px, 23vw, 329px); padding-block: clamp(24px, 4.1vw, 58px); color: var(--white); }
.hero-home h1 { font-size: clamp(58px, 6.6vw, 102px); font-weight: 660; line-height: .9; letter-spacing: -.076em; }
.hero-home h1 em { display: block; color: #ffce9e; font: italic 400 1.08em/.91 var(--serif); letter-spacing: -.035em; }
.hero-home p { max-width: 44ch; margin-top: 16px; color: #e5edf6; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.48; }
.hero-copy :is(h1, p) { animation: settle-copy .54s var(--ease-out) both; }
.hero-copy p { animation-delay: .09s; }
@keyframes settle-sky { from { transform: scale(1.038); } to { transform: scale(1); } }
@keyframes settle-copy { from { opacity: .35; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hero { position: relative; isolation: isolate; overflow: hidden; margin: 22px 0 15px; padding: clamp(22px, 3.8vw, 47px); border-radius: 21px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 5.85vw, 77px); line-height: .98; font-weight: 750; letter-spacing: -.069em; }
.hero p { margin-top: 14px; max-width: 52ch; color: var(--muted); font-size: clamp(15px, 1.65vw, 18px); line-height: 1.55; }
.hero strong { color: var(--ink); }
.route-hero { min-height: 184px; padding-block: 22px 30px; border: 1px solid #dbe5f2; background: linear-gradient(105deg, #e7eff9, #eff4f9 62%, #f6ede3); }
.route-hero h1 { font-size: clamp(35px, 5.05vw, 61px); line-height: 1.03; }
.breadcrumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--muted); font-size: 12px; font-weight: 600; }
.breadcrumbs a { color: var(--ink); }
.hero-symbol { position: absolute; display: grid; place-items: center; width: 206px; aspect-ratio: 1; top: 50%; right: 7%; transform: translateY(-50%); color: #597797; border: 1px solid #7794b142; border-radius: 50%; box-shadow: 0 0 0 23px #7794b11c, 0 0 0 46px #7794b10b; }
.hero-symbol svg { width: 80px; height: 80px; stroke-width: .85; }

.tool { display: grid; grid-template-columns: minmax(285px, .79fr) minmax(0, 1.21fr); border: 1px solid var(--line); background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.home-page .tool { box-shadow: 0 20px 60px #101f3124, 0 4px 12px #12233912; }
.tool > :not(.flight-form, .map-panel) { grid-column: 1 / -1; }
.tool.time-tool > .time-results { grid-column: 2; grid-row: 1; }
.time-results { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 9px 9px 9px 0; padding: clamp(17px, 3.5vw, 35px); border-radius: 13px; background: radial-gradient(ellipse at 94% 12%, #2d4d70, #122439 70%); color: var(--map-ink); }
.time-results a { align-self: flex-start; color: inherit; font-size: .88rem; }
.time-result-route { align-self: flex-start; padding: 5px 9px; border: 1px solid #ffd5ab3d; border-radius: 5px; background: #ffb77512; color: #ffdfbd; font: 650 14px/1.45 var(--mono); overflow-wrap: anywhere; }
.time-result-route svg { width: 1em; height: 1em; margin-right: .25em; vertical-align: -.15em; }
.estimate-total-label { margin: 14px 0 3px; color: #d6e3f0; }
.estimate-total { display: block; font-size: clamp(2.25rem, 6.5vw, 4.3rem); line-height: 1.15; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.time-composition { height: 8px; margin-top: 15px; overflow: hidden; border-radius: 30px; background: #7298bc; }
.time-composition span { display: block; width: var(--flight-share, 100%); height: 100%; background: var(--amber); transition: width .38s var(--ease-out); }
.time-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.time-breakdown dt, .time-assumptions { font-size: .85rem; color: #d6e3f0; }
.time-breakdown dt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 2px; background: var(--amber); vertical-align: 1px; }
.time-breakdown div + div dt::before { background: #7298bc; }
.time-breakdown dd { margin: 3px 0 0; font-weight: 650; }
.time-assumptions { margin: 0 0 8px; }
.estimate-settings { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 0 0 11px; font-size: .88rem; }
.estimate-settings summary { cursor: pointer; font-weight: 600; }
.estimate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 9px 0; }
.estimate-fields label { display: grid; align-content: start; gap: 4px; font-size: .82rem; }
.estimate-fields input, .estimate-fields select { min-width: 0; width: 100%; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.estimate-settings p { font-size: .8rem; color: var(--muted); }
.airport-directory { border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.lookup-form { padding: clamp(12px, 3vw, 24px); }
.lookup-form h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.04em; }
.lookup-form label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.lookup-submit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.lookup-submit input { border: 1px solid #d4e0ed; border-radius: 9px; background: #f9fbfd; color: var(--ink); padding: 9px 12px; min-width: 0; font: inherit; }
.lookup-output { border-top: 1px solid var(--line); padding: clamp(12px, 3vw, 24px); }
.lookup-output > p { color: var(--muted); margin: 0 0 9px; font-size: .9rem; }
.lookup-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.airport-directory-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fafbfd; overflow-wrap: anywhere; }
.airport-directory-card h3 { margin: 3px 0; line-height: 1.35; font-size: 1rem; }
.airport-directory-card p, .airport-directory-card dl { margin: 0; font-size: .88rem; color: var(--muted); }
.airport-directory-card .airport-directory-code { display: inline-block; padding: 4px 8px; border-radius: 6px; background: var(--soft); color: var(--ink); font: 725 18px/1.2 var(--mono); }
.airport-directory-card dl { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 8px; }
.airport-directory-card dl div { display: flex; justify-content: space-between; gap: 8px; margin: 2px 0; }
.airport-directory-card dd { margin: 0; color: var(--ink); text-align: right; }
.comparison-fields { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 2fr); gap: 16px; }
.comparison-form h2 { line-height: 1.25; }
.comparison-fields label { font-size: 12px; }
.comparison-fields .suggestions { top: auto; bottom: calc(100% + 4px); max-height: min(240px, 38vh); }
#comparison-destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 9px; }
.comparison-actions { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 9px; }
.comparison-origin { margin-bottom: 11px; padding: 11px 13px; border-radius: 10px; background: var(--map); color: var(--map-ink); }
.comparison-origin h3 { font-size: 15px; }
.comparison-origin h3 span { color: var(--amber); }
.comparison-origin p { color: #c6d9ea; font-size: 12px; }
.comparison-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; list-style: none; padding: 0; margin: 0; }
.comparison-card:first-child { border-color: #eed1bc; background: #fff6ef; }
.comparison-card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.comparison-rank { color: var(--muted); font-size: 12px; font-weight: 750; text-align: right; }
.comparison-card:first-child .comparison-rank { color: var(--accent); }
.comparison-card h4 { margin: 8px 0 2px; font-size: 14px; line-height: 1.35; }
.comparison-card .comparison-mileage { color: var(--ink); }
.comparison-mileage strong { font-size: 26px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.comparison-card .comparison-coordinates { margin-top: 6px; font-size: 12px; }
.lookup-pagination { display: flex; justify-content: flex-end; gap: 16px; margin-top: 10px; }
.flight-form { min-width: 0; padding: clamp(17px, 2.1vw, 25px) clamp(17px, 2.5vw, 29px); }
.tool-heading { display: flex; align-items: center; gap: 9px; font-size: clamp(20px, 2.15vw, 26px); line-height: 1.14; letter-spacing: -.04em; }
.tool-heading svg { width: 21px; height: 21px; color: var(--accent); }
.trip-mode { position: relative; margin: 13px 0 10px; padding: 3px; border: 1px solid #dce6f1; border-radius: 10px; background: var(--soft); display: grid; grid-template-columns: repeat(2, 1fr); min-width: 0; }
.trip-mode label { position: relative; }
.trip-mode input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.trip-mode span { display: block; padding: 5px 6px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.trip-mode input:checked + span { border-color: #e2e3db; background: var(--white); color: var(--ink); box-shadow: 0 1px 3px #1c35231a; }
.trip-mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
@supports selector(:has(*)) {
  .trip-mode::before { content: ""; position: absolute; inset: 3px auto 3px 3px; width: calc(50% - 3px); border: 1px solid #e0e7ef; border-radius: 6px; background: var(--white); box-shadow: 0 1px 4px #172f501b; transition: transform .25s var(--ease-out); }
  .trip-mode:has(input[value="round"]:checked)::before { transform: translateX(100%); }
  .trip-mode input:checked + span { border-color: transparent; background: transparent; box-shadow: none; }
}
.airport-field { position: relative; margin-bottom: 9px; min-width: 0; }
.airport-field label { display: inline-block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 750; }
.airport-entry { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 1px solid #d4e0ed; border-radius: 9px; background: #f9fbfd; transition: border-color .16s, box-shadow .16s, background-color .16s; }
.airport-entry:focus-within, .lookup-submit input:focus { border-color: #b75b2c; background: var(--white); box-shadow: 0 0 0 3px #b75b2c22; outline: none; }
.airport-entry svg { width: 16px; height: 16px; color: var(--accent); }
.airport-entry input { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; font-weight: 700; }
.airport-entry input::placeholder { color: #6b7975; font-size: 13px; font-weight: 500; }
.airport-entry input[data-code] { width: 4ch; flex: none; font: 750 17px/1.35 var(--mono); letter-spacing: .035em; }
.airport-city { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.airport-entry input[aria-invalid="true"] { color: var(--accent); }
.remove-stop { margin-left: auto; color: var(--muted); border: 0; background: transparent; padding: 2px 5px; font-size: 21px; line-height: 1; }
.suggestions { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow: auto; padding: 4px; margin: 0; list-style: none; border-radius: 9px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 28px #15292228; }
.suggestions:not([hidden]) { animation: settle-copy .17s var(--ease-out) both; }
.suggestions li { display: grid; grid-template-columns: 41px minmax(0, 1fr); align-items: center; gap: 6px; padding: 8px; border-radius: 5px; cursor: pointer; line-height: 1.3; }
.suggestions li:hover, .suggestions [aria-selected="true"] { background: var(--soft); }
.suggestions li strong { color: var(--accent); font-size: 13px; }
.suggestions li span { font-size: 13px; font-weight: 650; }
.suggestions li small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.form-actions { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 3px 0; background: none; border: 0; color: var(--accent); font-size: 13px; font-weight: 750; }
.text-button:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.text-button span { font-size: 18px; line-height: 12px; }
.text-button svg { width: 15px; height: 15px; }
.form-message { margin: 0 0 9px; font-size: 13px; color: var(--accent); }
.calculate { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 9px 13px; background: var(--accent); color: var(--white); border-radius: 9px; border: 0; font-size: 14px; text-align: left; font-weight: 750; transition: background-color .18s, box-shadow .18s, transform .18s var(--ease-out); }
.calculate:hover { background: var(--accent-hover); box-shadow: 0 4px 12px #77301331; }
.calculate:active { transform: translateY(1px); box-shadow: none; }
.calculate svg { height: 17px; width: 17px; transition: transform .18s; }
.calculate:hover svg { transform: translateX(3px); }
.estimate-note { font-size: 12px; margin-top: 8px; }

.map-panel { grid-column: 2; grid-row: 1; background: var(--map); color: var(--map-ink); display: flex; flex-direction: column; min-width: 0; margin: 9px 9px 9px 0; border-radius: 13px; overflow: hidden; }
.map-header { display: flex; align-items: center; gap: 9px; padding: 13px 17px; border-bottom: 1px solid var(--map-line); min-height: 47px; }
.map-header h2 { display: flex; align-items: center; gap: 7px; font: 650 13px/1.2 var(--sans); white-space: nowrap; }
.map-header h2 svg { width: 15px; height: 15px; color: #a6c0d8; }
.map-route { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; border: 1px solid #ffd5ab3d; border-radius: 5px; color: #ffdfbd; background: #ffb77512; font: 650 12px/1.3 var(--mono); }
.map-window { position: relative; min-height: clamp(196px, 23vw, 272px); flex: 1; overflow: hidden; background: radial-gradient(ellipse at 70% 35%, #294866, var(--map) 75%); }
#route-map { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#route-map:active { cursor: grabbing; }
.map-controls { position: absolute; right: 11px; bottom: 11px; display: flex; flex-direction: column; border: 1px solid #5e7893; border-radius: 8px; overflow: hidden; }
.map-controls button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: #162c44f2; color: var(--map-ink); border: 0; font-size: 18px; }
.map-controls button + button { border-top: 1px solid #5e7893; }
.map-controls button:hover { background: #355575; }
.map-controls button:focus-visible { outline-offset: -3px; }
.map-controls svg { width: 16px; height: 16px; }
#map-message { position: absolute; inset: 0; width: fit-content; height: fit-content; margin: auto; padding: 8px 11px; border-radius: 5px; background: var(--map); }
.map-footer { display: flex; justify-content: space-between; gap: 10px; padding: 7px 17px; border-top: 1px solid var(--map-line); color: #c8d7e8; font-size: 11px; }
.map-footer a { color: inherit; white-space: nowrap; }

.results { display: grid; grid-template-columns: minmax(0, 1.38fr) repeat(3, minmax(0, .9fr)) minmax(0, 1.18fr); background: #f9fbfd; border-top: 1px solid var(--line); }
.result { display: flex; flex-direction: column; justify-content: center; padding: 13px clamp(10px, 1.7vw, 23px); min-width: 0; }
.result + .result { border-left: 1px solid var(--line); }
.result:first-child { background: linear-gradient(105deg, #fff1e4, #fff8f2); }
.result-label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.result-label svg { width: 14px; height: 14px; }
.result strong { display: block; margin-top: 3px; color: var(--ink); font-size: clamp(19px, 2.65vw, 32px); letter-spacing: -.055em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.result:first-child strong { color: var(--accent); font-size: clamp(26px, 3.35vw, 46px); }
.result strong small { font-size: .48em; font-weight: 650; letter-spacing: 0; }
.time-zone strong { font-size: clamp(14px, 1.9vw, 19px); line-height: 1.4; letter-spacing: -.02em; }
.result-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 17px; border-top: 1px solid var(--line); }
.result-footer p { color: var(--muted); font-size: 12px; }
.share-status, .share-url { margin: 0 17px 9px; font-size: 13px; }
.share-url { width: calc(100% - 34px); padding: 6px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.leg-details { padding: 9px 17px 15px; }
.leg-details table { width: 100%; border-collapse: collapse; font-size: 13px; }
.leg-details caption { text-align: left; font-weight: 700; }
.leg-details th, .leg-details td { border-bottom: 1px solid var(--line); padding: 5px 8px 5px 0; text-align: left; }

.content-block { margin-top: clamp(38px, 5vw, 62px); }
.section-heading { margin-bottom: 16px; }
.section-heading h2, .privacy h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.055em; }
.section-heading p, .privacy p { max-width: 63ch; margin-top: 7px; color: var(--muted); }
.route-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.related-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-card { display: flex; flex-direction: column; min-width: 0; padding: 15px 15px 11px; border: 1px solid #d9e4ef; border-radius: 16px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .22s, box-shadow .22s, transform .22s var(--ease-out); }
.route-card:hover { border-color: #99afc7; box-shadow: var(--shadow); transform: translateY(-3px); }
.route-region { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.route-codes { display: flex; align-items: center; gap: 8px; margin-block: 9px 3px; font: 760 clamp(19px, 2.5vw, 27px)/1.1 var(--mono); letter-spacing: -.055em; }
.route-connector { display: flex; align-items: center; gap: 4px; flex: 1; color: #557a9c; }
.route-connector::before, .route-connector::after { content: ""; flex: 1; border-bottom: 1px dashed #8da7bd; }
.route-connector svg { width: 14px; height: 14px; transform: rotate(90deg); }
.route-city { margin-top: 3px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.route-art { display: grid; place-items: center; min-width: 0; height: 58px; margin: auto 0 9px; border: 1px solid #dfe8f2; border-radius: 8px; background-color: #edf3fa; background-image: linear-gradient(90deg, #dae5f0 1px, transparent 1px), linear-gradient(#dae5f0 1px, transparent 1px); background-size: 16px 16px; overflow: hidden; }
.route-art svg { width: 100%; height: 100%; }
.route-art path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route-preview-track { stroke: #a7bed4; stroke-width: 2px; }
.route-preview-path { stroke: #ad4e27; stroke-width: 2px; stroke-dasharray: 1; }
.route-art circle { fill: #fff8ee; stroke: #ad4e27; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.route-card[data-entered] .route-preview-path { animation: trace-preview .68s var(--ease-out) var(--route-delay, 0ms) both; }
@keyframes trace-preview { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.route-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed #cedcea; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.route-bottom svg { width: 16px; height: 16px; color: var(--accent); transition: transform .18s; }
.route-card:hover .route-bottom svg { transform: translateX(3px); }
.more-route-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.more-route-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); text-decoration: none; }
.more-route-links a:hover { border-color: #9eb2c9; }
.more-route-links strong { font-size: 14px; }
.more-route-links small { display: block; color: var(--muted); line-height: 1.35; }
.more-route-miles { font-size: 13px; white-space: nowrap; }
.more-route-miles svg { width: 13px; color: var(--accent); margin-left: 3px; }
.all-routes-link { margin-top: 10px; font-size: 14px; }

.reading-layout { display: grid; grid-template-columns: minmax(155px, .8fr) minmax(0, 3.2fr); column-gap: clamp(22px, 5vw, 72px); margin-top: clamp(35px, 6vw, 72px); }
.reading-aside, .reading-content { min-width: 0; }
.reading-content > :first-child { margin-top: 0; }
.reading-nav { position: sticky; top: 88px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.reading-nav p { margin: 0 0 7px 7px; font-size: 13px; font-weight: 750; }
.reading-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.reading-nav a { display: block; padding: 6px 7px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.4; }
.reading-nav a:hover, .reading-nav a[aria-current="location"] { color: var(--ink); background: var(--soft); }
.method { padding: clamp(14px, 2.8vw, 25px); background: linear-gradient(140deg, #e9f1fa, #f6f9fd); border: 1px solid #d7e3ef; border-radius: 14px; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.method-grid > div { padding: 13px; border: 1px solid #dce6f0; border-radius: 9px; background: #ffffffbd; }
.method-grid svg { color: var(--accent); }
.method-grid h3 { margin-top: 7px; font-size: 15px; }
.method-grid p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.sources { margin-top: 18px; color: var(--muted); font-size: 12px; }
.home-guide > p, .route-story p { max-width: 69ch; color: var(--muted); }
.home-guide > p { margin-top: 13px; }
.flight-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: guide-step; }
.flight-steps li { padding: 15px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--muted); font-size: .9rem; counter-increment: guide-step; }
.flight-steps li::before { content: counter(guide-step); display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 7px; border-radius: 7px; background: var(--tint); color: var(--accent-hover); font: 700 13px var(--mono); }
.flight-steps strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.flight-comparison { width: 100%; margin-block: 13px; border: 1px solid var(--line); border-spacing: 0; overflow: hidden; border-radius: 11px; background: var(--white); font-size: .94rem; }
.flight-comparison th, .flight-comparison td { padding: 9px clamp(7px, 2vw, 15px); text-align: left; }
.flight-comparison tr + tr :is(th, td), .flight-comparison tbody tr:first-child :is(th, td) { border-top: 1px solid var(--line); }
.flight-comparison thead, .flight-comparison tbody tr:nth-child(even) { background: #edf3fa; }
.flight-comparison td { color: var(--muted); font-variant-numeric: tabular-nums; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.faq-list details[open] { border-color: #c9d8e8; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 9px; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: 0 0 9px; height: 9px; margin-right: 3px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-2px) rotate(45deg); transition: transform .18s; }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-answer { padding: 0 13px 12px; color: var(--muted); }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  :is(.faq-list details, .estimate-settings)::details-content { interpolate-size: allow-keywords; block-size: 0; overflow: clip; transition: block-size .26s var(--ease-out), content-visibility .26s allow-discrete; }
  :is(.faq-list details, .estimate-settings)[open]::details-content { block-size: auto; }
}
.airport-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.airport-cards > div { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow-wrap: anywhere; }
.airport-cards h3 { margin-top: 4px; font-size: 17px; }
.airport-cards p { color: var(--muted); }
.airport-coordinates { margin-top: 5px; font: 550 12px/1.4 var(--mono); }
.route-story { margin-top: clamp(33px, 5vw, 57px); }
.route-story section + section { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.route-story h2 { font-size: clamp(23px, 3vw, 32px); line-height: 1.13; letter-spacing: -.044em; }
.route-story p { margin-top: 10px; }
.tool-link { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .16s, box-shadow .16s; }
.tool-link:hover { border-color: #9eb2c9; box-shadow: var(--shadow); }
.tool-link + .tool-link { margin-top: 8px; }
.tool-link-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 8px; background: var(--soft); color: var(--accent); }
.tool-link strong + span { display: block; color: var(--muted); font-size: 14px; }
.privacy { padding-top: 15px; border-top: 1px solid var(--line); }
.privacy h2 { font-size: 22px; }
.privacy p { font-size: .88rem; }
.site-footer { margin-top: 48px; padding-block: 19px; border-top: 1px solid #32455f; background: var(--ink); color: #d6e3f0; }
.site-footer .brand, .site-footer nav a { color: #f3f7fc; }
.site-footer .brand-accent { color: var(--amber); }
.site-footer nav a:hover { color: var(--amber); }
.site-footer p { margin-top: 6px; font-size: 13px; }

@media (max-width: 950px) {
  .reading-layout { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .reading-nav { position: static; padding: 10px 11px; }
  .reading-nav p { margin-bottom: 4px; }
  .reading-nav ul { display: flex; flex-wrap: wrap; gap: 3px 6px; }
  .reading-nav a { background: #f1f5f9; }
  .hero-symbol { right: 5%; opacity: .65; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .hero-home { min-height: 240px; padding-block: 24px 28px; }
  .hero-home h1 { font-size: clamp(58px, 6.1vw, 85px); }
}

@media (max-width: 760px) {
  .hero { margin-top: 13px; padding: 24px 21px; }
  .home-page { --backdrop-height: 365px; }
  .hero-home { min-height: 230px; }
  .hero-backdrop::after { background:
    linear-gradient(180deg, #09162426, transparent 20%, transparent 67%, var(--paper)),
    linear-gradient(90deg, #0a182bef, #0a182bac 41%, #0a182b2b 85%); }
  .hero-image { object-position: 72% 26%; }
  .hero p { margin-top: 10px; }
  .hero-symbol { opacity: .28; right: 3%; width: 144px; }
  .hero-symbol svg { width: 58px; height: 58px; }
  .tool { grid-template-columns: minmax(0, 1fr); }
  .tool.time-tool > .time-results, .map-panel { grid-column: 1; grid-row: auto; border-radius: 13px; margin: 7px; }
  .lookup-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .comparison-cards, .more-route-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-form { padding: 18px; }
  .map-window { min-height: 215px; }
  .results { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .result { grid-column: span 2; padding: 10px 9px; }
  .result:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .result:nth-child(4) { border-left: 0; }
  .result-label { min-height: 18px; font-size: 11px; }
  .result strong { font-size: 21px; }
  .result:first-child strong { font-size: clamp(23px, 6.3vw, 34px); }
  .time-zone strong { font-size: 16px; }
  .result-footer { padding-inline: 9px; }
  .route-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid, .flight-steps { grid-template-columns: minmax(0, 1fr); }
  .flight-steps li { position: relative; padding: 11px 12px 11px 46px; }
  .flight-steps li::before { position: absolute; top: 11px; left: 11px; }
  .site-footer .footer-inner { align-items: flex-start; flex-direction: column; gap: 11px; }
}

@media (max-width: 480px) {
  html { scroll-padding-top: 112px; }
  .lookup-submit, .lookup-results { grid-template-columns: minmax(0, 1fr); }
  .comparison-cards, .more-route-links { grid-template-columns: minmax(0, 1fr); }
  .comparison-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  #comparison-origin-input, #comparison-destinations { display: contents; }
  .comparison-fields .airport-entry { gap: 5px; padding-inline: 7px; }
  #comparison-destinations .airport-entry svg { display: none; }
  #comparison-destinations .airport-entry input[data-code] { width: 3.35ch; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 3px; padding-block: 7px; }
  .brand { font-size: 21px; }
  .brand-icon { width: 31px; height: 31px; }
  .main-nav { gap: 1px 4px; }
  .main-nav a { padding: 4px 7px; font-size: 12px; }
  .hero { padding: 19px 16px; }
  .home-page { --backdrop-height: 333px; }
  .hero-home { min-height: 208px; padding-block: 22px; }
  .hero-home h1 { font-size: clamp(46px, 12vw, 61px); }
  .hero-home p { margin-top: 12px; max-width: 30ch; font-size: 14px; }
  .hero p { font-size: 14px; }
  .route-hero { min-height: auto; }
  .route-hero h1 { font-size: clamp(30px, 8.3vw, 40px); }
  .hero-symbol { width: 125px; right: -10px; }
  .flight-form { padding: 15px 13px; }
  .suggestions { top: auto; bottom: calc(100% + 4px); max-height: 176px; }
  .result-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .route-card { padding-inline: 9px; }
  .route-codes { gap: 4px; }
  .route-connector { gap: 2px; }
  .route-connector svg { width: 12px; height: 12px; }
  .route-region, .route-city { overflow-wrap: anywhere; }
  .flight-comparison { font-size: .82rem; }
}

@media (max-width: 360px) {
  .airport-distance-page .main-nav { gap: 1px 2px; }
  .airport-distance-page .main-nav a { padding-inline: 5px; font-size: 11px; }
  .airport-distance-page .route-hero { margin-block: 9px; padding: 12px 13px 14px; }
  .airport-distance-page .breadcrumbs { margin-bottom: 6px; }
  .airport-distance-page .route-hero p { margin-top: 7px; }
}

@media (max-width: 480px) and (max-height: 700px) {
  .home-page { --backdrop-height: 305px; }
  .hero-home { min-height: 0; padding-block: 14px 15px; }
  .hero-home h1 { font-size: clamp(42px, 12vw, 55px); }
  .hero-home p { margin-top: 9px; }
  .flight-form { padding-block: 12px; }
  .trip-mode { margin-block: 10px 8px; }
  .airport-field { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  :is(.faq-list details, .estimate-settings)::details-content { transition: none !important; }
}
