/* TollFreeAirline.com — airfield signage + sectional chart palette */
:root {
  --paper: #F4F7F9;
  --white: #FFFFFF;
  --ink: #15212C;
  --ink-soft: #4A5866;
  --rule: #D3DCE3;
  --public: #1D5FA6;   /* sectional chart blue */
  --private: #8E2A73;  /* sectional chart magenta */
  --sign: #F3C318;     /* taxiway sign yellow */
  --sign-ink: #15212C;
  --focus: #F3C318;
  --font: "Overpass", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --pad: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--public); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--sign); color: var(--ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.brand svg { width: 1.9rem; height: 1.9rem; }
.brand span { letter-spacing: -.01em; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: var(--white); text-decoration: none; padding: .4rem .7rem; border-radius: 3px; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); }

/* ---------- airfield signs (the signature element) ---------- */
.sign {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; line-height: 1; letter-spacing: .02em;
  border-radius: 3px; white-space: nowrap;
}
/* location sign: yellow legend + yellow border on black */
.sign-loc {
  background: var(--ink); color: var(--sign);
  box-shadow: inset 0 0 0 2px var(--sign);
  padding: .5em .6em .38em; font-size: .95rem; min-width: 3.6em;
}
/* direction sign: black legend on yellow */
.signs { display: flex; flex-wrap: wrap; gap: 0; margin: 1.75rem 0 0; }
.sign-dir {
  background: var(--sign); color: var(--sign-ink); text-decoration: none;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem); padding: .75em 1em .6em; gap: .55em;
  border-radius: 0; border-right: 2px solid var(--ink);
}
.signs > :first-child { border-radius: 3px 0 0 3px; }
.signs > :last-child { border-radius: 0 3px 3px 0; border-right: 0; }
.signs .sign-loc { font-size: clamp(1.05rem, 2.6vw, 1.35rem); padding: .75em 1em .6em; border-radius: 0; box-shadow: inset 0 0 0 3px var(--sign); }
.sign-dir:hover { background: #FFD43B; }
.sign-dir svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); border-top: 1px solid rgba(255,255,255,.08); }
.hero h1 { max-width: 18ch; }
.hero p { color: #C9D3DC; font-size: 1.15rem; max-width: 52ch; }
.hero .search { margin-top: 2rem; max-width: 40rem; }

/* ---------- search ---------- */
.search { position: relative; }
.search label { display: block; font-weight: 700; margin-bottom: .4rem; }
.hero .search label { color: var(--white); }
.search input {
  width: 100%; font: inherit; font-size: 1.1rem; padding: .85rem 1rem;
  border: 2px solid var(--rule); border-radius: 4px; background: var(--white); color: var(--ink);
}
.hero .search input { border-color: transparent; }
.search input:focus { outline: none; border-color: var(--sign); box-shadow: 0 0 0 3px rgba(243,195,24,.35); }
.results { list-style: none; margin: .5rem 0 0; padding: 0; background: var(--white); border-radius: 4px; color: var(--ink); overflow: hidden; }
.results:empty { display: none; }
.results li { border-top: 1px solid var(--rule); }
.results li:first-child { border-top: 0; }
.results a, .results .r-row { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; text-decoration: none; color: var(--ink); }
.results a:hover, .results a:focus { background: #EAF1F8; }
.results .r-main { flex: 1; min-width: 0; }
.results .r-name { font-weight: 700; display: block; }
.results .r-meta { color: var(--ink-soft); font-size: .92rem; }
.results .r-note { padding: .7rem 1rem; color: var(--ink-soft); font-size: .95rem; }
.results .sign-loc { font-size: .8rem; min-width: 4.4em; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- airline directory ---------- */
.letters { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.letters a { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; text-decoration: none; font-weight: 700; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; background: var(--white); }
.letters a:hover { border-color: var(--ink); }
.filter { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filter input { font: inherit; padding: .6rem .8rem; border: 2px solid var(--rule); border-radius: 4px; min-width: min(100%, 20rem); flex: 1; max-width: 26rem; background: var(--white); }
.filter input:focus { outline: none; border-color: var(--ink); }
.filter .count { color: var(--ink-soft); font-size: .95rem; }

.airlines { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; columns: 2 26rem; column-gap: 0; }
.airline { display: flex; align-items: baseline; gap: 1rem; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.airline .a-name { font-weight: 700; }
.airline .a-name a { color: var(--ink); text-decoration: none; }
.airline .a-name a:hover { color: var(--public); text-decoration: underline; }
.airline .a-note { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.airline .a-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.airline .a-phone a { color: var(--public); font-weight: 600; text-decoration: none; }
.airline .a-none { color: var(--ink-soft); font-size: .92rem; }
.airline { position: relative; }
.airline .letter-anchor { position: absolute; top: 0; left: 0; scroll-margin-top: 1rem; }
.note { color: var(--ink-soft); font-size: .95rem; margin-top: 1rem; }

/* ---------- state grid ---------- */
.states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); background: var(--white); }
.states li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.states a { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .8rem 1rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.states a:hover { background: #EAF1F8; }
.states .n { color: var(--ink-soft); font-weight: 400; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ---------- page header (state/county) ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--rule); padding: 1.5rem 0 2rem; }
.crumbs { font-size: .95rem; margin: 0 0 1.25rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--rule); }
.crumbs a { color: var(--ink-soft); }
.stats { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.stats li { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.dot { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; flex: none; }
.dot.public { background: var(--public); }
.dot.private { border: 2.5px solid var(--private); }

/* ---------- county list (state page) ---------- */
.counties { list-style: none; margin: 0; padding: 0; columns: 4 13rem; column-gap: 2rem; }
.counties li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.counties a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.counties a:hover { color: var(--public); }
.counties .n { color: var(--ink-soft); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- airport records (county page) ---------- */
.toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.toggle button { font: inherit; font-weight: 700; border: 0; background: var(--white); color: var(--ink); padding: .5rem .9rem; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.toggle button + button { border-left: 2px solid var(--ink); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.airports { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; }
.airport { display: grid; grid-template-columns: 5.5rem 1fr 1fr; gap: 1rem 1.5rem; padding: 1.25rem; border-bottom: 1px solid var(--rule); }
.airport:last-child { border-bottom: 0; }
.airport[hidden] { display: none; }
.airport .sign-loc { align-self: start; font-size: .95rem; width: 100%; }
.airport h3 { margin: 0 0 .2rem; }
.airport .city { color: var(--ink-soft); margin: 0 0 .5rem; }
.usage { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; }
.usage.public { color: var(--public); }
.usage.private { color: var(--private); }
.contact { font-style: normal; color: var(--ink); line-height: 1.5; }
.contact .who { font-weight: 600; }
.contact .tel { display: inline-block; margin-top: .35rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact .none { color: var(--ink-soft); }
.empty { padding: 1.25rem; color: var(--ink-soft); }

.aside-links { display: grid; gap: 2rem; grid-template-columns: 1fr; }
details.more { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; }
details.more summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; }
details.more .counties { padding: 0 1.25rem 1rem; }
.callout { background: var(--white); border-left: 4px solid var(--public); padding: 1rem 1.25rem; border-radius: 0 4px 4px 0; }
.callout p { margin: 0; }

/* ---------- prose pages ---------- */
.prose > * { max-width: 44rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose li { margin-bottom: .4rem; max-width: 68ch; }
.prose .updated { color: var(--ink-soft); }

/* ---------- contact form ---------- */
.form { max-width: 36rem; display: grid; gap: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 2px solid var(--rule); border-radius: 4px; background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243,195,24,.45); }
.btn { justify-self: start; font: inherit; font-weight: 800; background: var(--sign); color: var(--ink); border: 0; border-radius: 3px; padding: .8rem 1.4rem .7rem; cursor: pointer; }
.btn:hover { background: #FFD43B; }
.sent { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem; margin: 0 0 1.5rem; display: grid; grid-template-columns: 6rem 1fr; gap: .6rem 1rem; }
.sent dt { font-weight: 700; }
.sent dd { margin: 0; overflow-wrap: anywhere; }
.sent-msg { white-space: pre-wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9D3DC; padding: 2.5rem 0; margin-top: 0; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: start; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; max-width: 44ch; }
.site-footer .copy { width: 100%; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- mobile ---------- */
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .site-header .wrap { padding-top: .6rem; padding-bottom: .6rem; }
  .nav { width: 100%; margin: 0 -.5rem; gap: 0; }
  .nav a { padding: .4rem .5rem; font-size: .93rem; }
  .signs .sign-loc { display: none; }
  .signs .sign-dir { flex: 1; font-size: 1rem; padding: .8em .7em .65em; justify-content: center; }
  .airport { grid-template-columns: 4.6rem 1fr; padding: 1rem; }
  .airport .contact { grid-column: 2; }
  .airline { flex-direction: column; gap: .15rem; }
  .toggle { width: 100%; }
  .sent { grid-template-columns: 1fr; gap: .2rem; }
  .sent dd { margin-bottom: .6rem; }
  .toggle button { flex: 1; justify-content: center; padding: .55rem .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .filter, .toggle, .signs, .search { display: none !important; }
  body { background: #fff; }
}
