/* FlightMap public pages.
 *
 * No webfont is requested. The app bundles Inter precisely so that launching it
 * sends nothing to Google; serving these pages from a font CDN would hand a
 * third party the IP address of everyone who came here to read that claim.
 * System stack only, on purpose.
 */

:root {
  --brand: #0066ff;
  --brand-ink: #0052cc;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --fg: #16191f;
  --fg-soft: #4c5566;
  --fg-faint: #6b7280;
  --rule: #e3e8ef;
  --focus: #0066ff;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4d94ff;
    --brand-ink: #7db0ff;
    --bg: #0e1116;
    --bg-soft: #161b22;
    --fg: #e6e9ef;
    --fg-soft: #aab2c0;
    --fg-faint: #8b93a1;
    --rule: #262c36;
    --focus: #4d94ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* Arabic pages: a face that actually has the glyphs, and a little more leading
   because Arabic ascenders and descenders stack taller than Latin ones. */
html[lang="ar"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", Arial,
    sans-serif;
  line-height: 1.95;
  font-size: 18px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--brand-ink);
}

.brand svg {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
}

.brand span {
  color: var(--fg);
}

.langs {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.langs a,
.langs strong {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
}

.langs a {
  color: var(--fg-soft);
}

.langs a:hover {
  color: var(--brand);
  background: var(--bg-soft);
}

.langs strong {
  color: var(--brand);
  border-color: var(--rule);
  background: var(--bg-soft);
  font-weight: 600;
}

/* ── Document body ──────────────────────────────────────────────────── */

main {
  padding: 2.75rem 0 4rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.03rem;
  margin: 1.6rem 0 0.4rem;
}

p,
ul,
ol,
table {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-inline-start: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

strong {
  font-weight: 650;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.updated {
  color: var(--fg-faint);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

/* The draft / source-of-truth notices. */
.note {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-inline-start: 3px solid var(--brand);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--fg-soft);
}

.note p:last-child {
  margin-bottom: 0;
}

/* ── Tables ─────────────────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
  margin: 0;
  min-width: 30rem;
}

th,
td {
  text-align: start;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  background: var(--bg-soft);
  font-weight: 650;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ── Landing page ───────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 3.5rem 0 1rem;
}

.hero svg {
  width: 84px;
  height: 84px;
  color: var(--brand);
}

.hero h1 {
  margin-top: 1rem;
}

.hero p {
  color: var(--fg-soft);
  max-width: 34rem;
  margin-inline: auto;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
}

.card {
  display: block;
  height: 100%;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-soft);
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--brand);
  color: inherit;
}

.card b {
  display: block;
  color: var(--brand);
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.card span {
  color: var(--fg-soft);
  font-size: 0.93rem;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 3rem;
  color: var(--fg-faint);
  font-size: 0.9rem;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 1.6rem;
  }
  main {
    padding-top: 2rem;
  }
}

/* Landing page: the "also available in" line. A class rather than a style
   attribute so the Content-Security-Policy can refuse inline styles outright. */
.also {
  text-align: center;
  color: var(--fg-faint);
  font-size: 0.92rem;
  margin-top: 2rem;
}
