/* NextGen Systems: nextgen-systems.com
   Visual language: airfield signs. Direction signs (black on yellow) point to the apps;
   a location sign (yellow on black, yellow border) marks where you are. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  --asphalt: #2b2e30;
  --sign-yellow: #f6c21c;
  --sign-yellow-lit: #ffd54d;
  --sign-black: #000;
  --concrete: #eceeee;
  --paper: #fff;
  --ink: #1c2023;
  --text: #384046;
  --muted: #586168;
  --line: #d2d6d8;
  --taxi-blue: #1d4fb2;
  --on-asphalt: #d3d8da;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --border: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--taxi-blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--taxi-blue); outline-offset: 3px; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; color: var(--ink); padding: 0.5rem 1rem; }

/* ---------- Sign plates (shared) ---------- */
.plate {
  --plate-h: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32em;
  min-height: var(--plate-h);
  padding: 0.12em 0.55em 0;
  font: 700 calc(var(--plate-h) * 0.5) / 1 var(--body);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plate--dir { background: var(--sign-yellow); color: var(--sign-black); border: var(--border) solid var(--sign-black); }
.plate--loc {
  background: var(--sign-black);
  color: var(--sign-yellow);
  border: var(--border) solid var(--sign-black);
  box-shadow: inset 0 0 0 calc(var(--plate-h) * 0.05) var(--sign-black), inset 0 0 0 calc(var(--plate-h) * 0.1) var(--sign-yellow);
  padding-left: 0.7em;
  padding-right: 0.7em;
}
.arrow { width: 0.86em; height: 0.86em; flex: none; fill: currentColor; margin-top: -0.1em; }
.arrow--left { transform: scaleX(-1); }
.arrow--up { transform: rotate(-90deg); }
.arrow--out { transform: rotate(-45deg); }

/* ---------- Apron (top band) ---------- */
.apron { background: var(--asphalt); color: var(--on-asphalt); position: relative; padding-bottom: calc(3.5rem + 34px); }
.apron a { color: inherit; }
.apron :focus-visible { outline-color: #fff; }
/* Hold-short marking: solid lines on the taxiway side, dashed on the runway side */
.apron::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background:
    linear-gradient(var(--sign-yellow), var(--sign-yellow)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--sign-yellow), var(--sign-yellow)) 0 10px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--sign-yellow) 0 34px, transparent 34px 68px) 0 20px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--sign-yellow) 0 34px, transparent 34px 68px) 0 30px / 100% 4px no-repeat;
}

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.apron .brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; font: 600 1.5rem/1 var(--display); letter-spacing: 0.01em; }
.apron .brand .plate { --plate-h: 2.25rem; --border: 2px; font-size: 0.95rem; padding: 0.1em 0.55em 0; }
.bar ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.bar ul a { text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.bar ul a:hover { color: #fff; text-decoration: underline; }

.hero h1 {
  max-width: 23ch;
  margin: clamp(2.5rem, 7vw, 5rem) 0 1.25rem;
  color: #fff;
  font: 600 clamp(2.75rem, 6.6vw, 5rem) / 1 var(--display);
  letter-spacing: -0.005em;
}
.hero .lede { max-width: 38rem; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); font-size: 1.25rem; line-height: 1.55; color: var(--on-asphalt); }

/* The sign array: one row of plates sharing black borders, a caption under each */
.signs { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
.signs > li { display: flex; flex: 1 1 auto; margin-left: calc(var(--border) * -1); }
.signs > li:first-child { flex: 0 0 auto; margin-left: 0; }
.post { display: flex; flex-direction: column; width: 100%; text-decoration: none; }
.post .plate { --plate-h: clamp(3.25rem, 5vw, 4.75rem); width: 100%; }
.post .caption { display: block; max-width: 16rem; padding: 0.85rem 0.75rem 0 0.15rem; font-size: 1rem; line-height: 1.4; color: var(--on-asphalt); }
a.post:hover .plate--dir { background: var(--sign-yellow-lit); }
a.post:hover .caption { color: #fff; }
a.post:focus-visible { outline-offset: 6px; }

@media (max-width: 60rem) {
  .signs { flex-direction: column; max-width: 28rem; }
  .signs > li { margin-left: 0; margin-top: 1.1rem; }
  .signs > li:first-child { margin-top: 0; align-self: flex-start; }
  .signs > li:first-child .post { width: auto; }
  .post .plate { --plate-h: 3.25rem; }
  .post .caption { max-width: none; padding-top: 0.45rem; }
}
@media (max-width: 40rem) {
  .bar nav { display: none; }
}

/* ---------- App sections ---------- */
.app { padding: clamp(4rem, 9vw, 7rem) 0; }
.app + .app { border-top: 1px solid var(--line); }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.app-head h2 { margin: 0; }
.app-head h2.plate { --plate-h: clamp(3rem, 5.2vw, 4rem); }
.app-head .tagline { margin: 0; font: 600 clamp(1.75rem, 3.4vw, 2.5rem) / 1.08 var(--display); color: var(--ink); max-width: 22ch; }

.app-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.app-body .lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink); max-width: 36rem; margin-bottom: 1.75rem; }

.points { list-style: none; margin: 0 0 2.25rem; padding: 0; max-width: 36rem; }
.points li { position: relative; padding: 0.7rem 0 0.7rem 1.6rem; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
/* Blue, like taxiway edge lights */
.points li::before { content: ""; position: absolute; left: 0.15rem; top: 1.35rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--taxi-blue); box-shadow: 0 0 0 3px rgba(29, 79, 178, 0.16); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0 0 2.25rem; max-width: 36rem; }
.facts div { border-top: 3px solid var(--ink); padding-top: 0.6rem; }
.facts dt { font-size: 0.9375rem; color: var(--muted); margin: 0 0 0.15rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.4; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.go {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.8em 1em 0.72em;
  background: var(--sign-yellow); color: var(--sign-black);
  border: 3px solid var(--sign-black);
  font: 700 1.125rem/1 var(--body);
  text-decoration: none;
}
.go:hover { background: var(--sign-yellow-lit); }
.go .arrow { width: 0.95em; height: 0.95em; margin-top: -0.15em; }
.actions .also { font-weight: 500; }

@media (min-width: 60.01rem) {
  .app--flip .app-body { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .app--flip .shot { order: -1; }
}
@media (max-width: 60rem) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Sample screens ---------- */
.shot { margin: 0; }
.screen {
  background: var(--paper);
  border: 1px solid #c9cfd2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 48px -30px rgba(20, 30, 40, 0.5);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #1f2937;
}
.shot figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }

/* SMS by NGS: flight risk assessment */
.sms-top { background: #1565c0; color: #fff; padding: 0.9rem 1.1rem; }
.sms-top b { display: block; font-size: 1.0625rem; }
.sms-top span { font-size: 0.875rem; opacity: 0.88; }
.sms-rows { list-style: none; margin: 0; padding: 0.35rem 1.1rem; }
.sms-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #e5e7eb; }
.sms-rows li:last-child { border-bottom: 0; }
.sms-rows b { color: #111827; font-variant-numeric: tabular-nums; }
.sms-total { padding: 0.9rem 1.1rem 1rem; background: #f8fafc; border-top: 1px solid #e5e7eb; }
.sms-score { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; font-weight: 600; color: #111827; }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.meter span { padding: 0.4rem 0; text-align: center; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; border-radius: 6px; background: #e5e7eb; color: #6b7280; }
.meter .is-high { background: #b42318; color: #fff; }
.sms-note { margin: 0.75rem 0 0; font-size: 0.875rem; color: #7a1d14; }

/* Crosswind: a flight with times offered */
.cw-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0.9rem 1.1rem; background: #0b1f4d; color: #fff; }
.cw-top b { font-size: 1.0625rem; }
.cw-top span { font-size: 0.875rem; color: #c8d4ee; }
.cw-route { padding: 0.9rem 1.1rem 0.75rem; border-bottom: 1px solid #e4e7ec; }
.cw-route strong { display: block; font-size: 1.1875rem; letter-spacing: 0.01em; color: #14171c; }
.cw-route span { font-size: 0.875rem; color: #5d6573; }
.cw-fill { margin: 0.75rem 1.1rem 0.25rem; padding: 0.65rem 0.8rem; border-radius: 10px; background: #eaf2fd; color: #164f97; font-size: 0.875rem; }
.cw-fill b { color: #0f3e7d; }
.cw-fields { list-style: none; margin: 0; padding: 0.2rem 1.1rem 0.7rem; }
.cw-fields li { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #eef0f3; }
.cw-fields li:last-child { border-bottom: 0; }
.cw-fields .val { font-variant-numeric: tabular-nums; font-weight: 600; color: #14171c; }
.bubble { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: #1c71d8; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.875rem; }

/* Aircraft Logbook: a signed entry */
.al-status { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1.1rem; background: #e6f2ea; color: #14532d; border-bottom: 1px solid #cfe3d6; }
.al-status .dot { width: 0.7rem; height: 0.7rem; margin-top: 0.35rem; border-radius: 50%; background: #1f7a44; flex: none; }
.al-status b { display: block; }
.al-status span { font-size: 0.875rem; }
.al-entry { padding: 1rem 1.1rem 0.4rem; }
.al-meta { margin: 0 0 0.35rem; font-size: 0.8125rem; color: #55616d; }
.al-entry h3 { margin: 0 0 0.5rem; font: 600 1.0625rem/1.3 -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: #14202b; }
.al-cert { margin: 0 0 0.6rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.9375rem; line-height: 1.5; color: #14202b; }
.al-sig { margin: 0; font-size: 0.8125rem; color: #3b4854; }
.al-sig b { color: #14532d; }
.al-foot { display: flex; gap: 0.9rem; align-items: center; margin-top: 0.8rem; padding: 0.85rem 1.1rem; border-top: 1px dashed #c3cad1; font-size: 0.8125rem; color: #3b4854; }
.al-foot svg { width: 64px; height: 64px; flex: none; }
.al-foot p { margin: 0; }

/* ---------- About & help ---------- */
.about, .help { padding: clamp(4rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.about { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); }
.split h2 { margin: 0; font: 600 clamp(2rem, 4vw, 2.75rem) / 1.05 var(--display); }
.split .body { max-width: 38rem; }
.split .body p:last-child { margin-bottom: 0; }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }

.helplist { list-style: none; margin: 1.5rem 0 1.75rem; padding: 0; }
.helplist li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.helplist li:last-child { border-bottom: 1px solid var(--line); }
.helplist strong { color: var(--ink); font-weight: 600; }
.helplist .links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (max-width: 34rem) { .helplist li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { background: var(--asphalt); color: var(--on-asphalt); padding: 2.25rem 0 2.75rem; font-size: 0.9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.foot a { color: inherit; }
.foot a:hover { color: #fff; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.foot :focus-visible { outline-color: #fff; }

/* ---------- Text pages (privacy, 404) ---------- */
.page { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.page .wrap > * { max-width: 42rem; }
.page h1 { margin: 0 0 0.5rem; font: 600 clamp(2.5rem, 5.5vw, 3.75rem) / 1.02 var(--display); }
.page .updated { color: var(--muted); margin-bottom: 2.5rem; }
.page h2 { margin: 2.5rem 0 0.6rem; font: 600 1.75rem/1.1 var(--display); }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
.apron--slim { padding-bottom: calc(1.5rem + 34px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .apron::after { display: none; }
  .apron, .foot { background: none; color: #000; }
  .bar ul, .skip { display: none; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
