/* VicADSB — signage layout in the logo colours: deep navy, signal blue, white. Type: Barlow Condensed for display, Barlow for reading, IBM Plex Mono for raw data. */
:root {
  /* colours from the VicADSB logo: deep navy, signal blue, white */
  --deep: #03060c;        /* header, footer, darkest bands */
  --bg: #05080f;          /* page background */
  --panel: #0b1220;       /* cards and panels */
  --panel-2: #111b2e;     /* raised / hovered panels */
  --line: #1b2740;
  --line-2: #2a3a5a;
  --fg: #eef3fb;          /* main text */
  --fg-2: #a9b5ca;        /* secondary text */
  --fg-3: #6f7d96;        /* quiet text */
  --accent: #3a9afc;      /* the logo blue */
  --accent-hi: #6cb6ff;
  --on-accent: #03101f;   /* text on blue */
  --wanted: #ffb547;      /* stations still needing a host */
  --live: #4cd480;
  --grid: rgba(58, 154, 252, .07);
  --blue: var(--accent); --magenta: var(--wanted);

  /* names the admin page uses */
  --bg-2: var(--panel); --surface: var(--panel); --surface-2: var(--panel-2);
  --line-strong: var(--line-2); --text: var(--fg); --text-2: var(--fg-2); --muted: var(--fg-3);
  --signal: var(--accent); --signal-soft: rgba(58, 154, 252, .2); --amber: var(--wanted);
  --white: var(--panel); --black: var(--deep); --yellow: var(--accent);
  --radius: 4px;

  --display: "Figtree", system-ui, sans-serif;  /* headings and UI */
  --body: "Figtree", system-ui, sans-serif;
  --sign: "Barlow Condensed", "Arial Narrow", sans-serif;  /* sign plates only */
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-hi); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; }

/* ---------- sign plates: the one visual idea, used for real information ---------- */
.sign { display: inline-flex; align-items: center; gap: .45em; padding: .18em .5em .12em; font: 700 1em/1 var(--sign); text-transform: uppercase; letter-spacing: .02em; border-radius: 3px; white-space: nowrap; }
.sign.loc { background: var(--deep); color: var(--accent); box-shadow: inset 0 0 0 2px var(--deep), inset 0 0 0 4px var(--accent); padding: .3em .6em .24em; }
.sign.dir { background: var(--accent); color: var(--on-accent); }
.sign.dir.on-yellow { box-shadow: none; }
.sign svg { width: .95em; height: .95em; flex: none; }
.sign.wanted { background: transparent; color: var(--wanted); box-shadow: inset 0 0 0 2px var(--wanted); }

/* ---------- header ---------- */
.site-head { background: rgba(3, 6, 12, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); color: var(--fg); position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; font-size: 24px; }
.logo img { height: 46px; width: auto; }
.site-foot .logo img { height: 34px; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { color: var(--fg-2); text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: .04em; padding: 10px 12px; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-cta { margin-left: 12px; }
.nav .nav-cta a { color: var(--on-accent); background: var(--accent); border: 0; border-radius: 3px; padding: 12px 16px 10px; }
.nav .nav-cta a:hover { background: var(--accent-hi); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 2px solid var(--line-2); border-radius: 4px; background: none; color: var(--fg); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 2px 22px 0; border-radius: 3px; border: 2px solid var(--black); font: 700 20px/1 var(--display); letter-spacing: .03em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-yellow { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-yellow:hover { background: var(--accent-hi); }
.btn-sm { height: 40px; font-size: 17px; padding: 2px 14px 0; }

/* ---------- hero ---------- */
.hero { background: var(--bg); color: var(--fg); overflow: hidden; position: relative;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; background-position: -1px -1px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 76px 0 0; }
.hero h1 { font-size: clamp(60px, 8.4vw, 118px); font-weight: 800; line-height: .84; letter-spacing: -.01em; }
.hero h1::after { content: ""; display: block; width: 120px; height: 12px; margin-top: 26px; background: repeating-linear-gradient(90deg, var(--accent) 0 26px, transparent 26px 40px); }
.hero .lede { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; font-weight: 500; max-width: 30em; margin-top: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-photo { position: relative; align-self: center; }
.hero-photo figure { margin: 0; border: 10px solid #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); transform: rotate(1.5deg); background: #fff; }
.hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.hero-photo figcaption { font-size: 14px; color: #4a4f56; padding: 10px 2px 2px; }
.hero-photo .plate { position: absolute; left: -26px; bottom: 74px; font-size: 26px; transform: rotate(-2deg); box-shadow: inset 0 0 0 2px var(--deep), inset 0 0 0 4px var(--accent), 0 14px 30px rgba(0, 0, 0, .5); }

/* the sign row along the bottom of the hero: where to go next */
.sign-row { background: var(--deep); border-block: 1px solid var(--line); margin-top: 72px; }
.sign-row .wrap { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0; }
.sign-row a { text-decoration: none; font-size: 26px; }
.sign-row a.sign.dir:hover { background: var(--accent-hi); }

/* ---------- sections ---------- */
.block { padding: 110px 0; }
.block.white { background: #0a1222; border-block: 1px solid var(--line); }
.block { background: var(--bg); }
.block.dark { background: var(--deep); color: var(--fg); }
.block h2 { font-size: clamp(44px, 6vw, 76px); max-width: 14ch; }
.intro { font-size: 20px; color: var(--fg-2); max-width: 36em; margin-top: 22px; }
.block.dark .intro { color: var(--fg-2); }

/* what we do: three plain columns, no boxes */
.do { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 60px; }
.do h3 { font-size: 32px; margin: 18px 0 12px; }
.do p { color: var(--fg-2); }
.do .sign { font-size: 20px; }

/* goal: chart + station signs */
.goal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 56px; }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { font-size: 14px; color: var(--muted); padding: 10px 6px 4px; }
.station-list { display: grid; gap: 0; }
.st { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.st:first-child { border-top: 1px solid var(--line); }
.st .sign { font-size: 24px; justify-self: start; }
.st small { display: block; color: var(--fg-2); font-size: 15px; margin-top: 6px; }
.st .status { font: 700 16px/1 var(--display); letter-spacing: .05em; }
.st .status.live { color: var(--live); }
.st .status.wanted { color: var(--magenta); }

/* who's flying: photo-led */
.flying { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.who div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.who svg { width: 30px; height: 30px; color: var(--accent); margin-top: 2px; }
.who b { display: block; font: 700 25px/1.1 var(--display); color: var(--fg); margin-bottom: 4px; }
.who p { color: var(--fg-2); }

/* steps: a real sequence, numbered like taxiway location signs */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 60px; }
.step .sign { font-size: 34px; }
.step h3 { font-size: 32px; margin: 20px 0 10px; }
.step p { color: var(--fg-2); }
.host { margin-top: 90px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 44px 48px; background: var(--black); color: var(--white); border-radius: 4px; }
.host h3 { color: var(--fg); }
.host p { color: var(--fg-2); }
.host h3 { font-size: clamp(34px, 4vw, 52px); }
.host p { font-size: 18px; margin-top: 12px; max-width: 34em; }

/* ---------- builds ---------- */
.builds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }
.block .builds-grid { margin-top: 56px; }
.build-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; color: var(--fg); text-decoration: none; transition: border-color .15s; }
.build-card:hover { border-color: var(--accent); }
.build-card:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.build-img { position: relative; aspect-ratio: 16 / 10; background: var(--deep); overflow: hidden; }
.build-img img { width: 100%; height: 100%; object-fit: cover; }
.build-img .ph { position: absolute; inset: 0; }
.build-img .scen { position: absolute; top: 14px; left: 14px; font-size: 19px; }
.build-body { display: grid; gap: 12px; padding: 22px 24px 24px; flex: 1; align-content: start; }
.build-body h3 { font-size: 32px; }
.build-body p { color: var(--fg-2); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }
.facts b { color: var(--fg); font-weight: 600; }
.diff-Easy { color: var(--live) !important; } .diff-Medium { color: var(--blue) !important; } .diff-Advanced { color: var(--magenta) !important; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filters button { height: 42px; padding: 2px 16px 0; border-radius: 3px; border: 2px solid var(--line-2); background: transparent; color: var(--fg-2); font: 700 18px/1 var(--display); letter-spacing: .03em; cursor: pointer; }
.filters button:hover { color: var(--fg); border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* build detail */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: .04em; margin-bottom: 28px; }
.back:hover { color: var(--fg); }
.back svg { width: 18px; height: 18px; }
.build-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.build-detail .build-img { border-radius: 4px; }
.detail-head { display: grid; gap: 18px; justify-items: start; }
.detail-head .sign { font-size: 22px; }
.detail-head h1 { font-size: clamp(48px, 6vw, 84px); line-height: .9; }
.detail-head p { color: var(--fg-2); font-size: 19px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0; border-top: 2px solid var(--accent); }
.spec div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { padding-right: 18px; }
.spec span { display: block; font-size: 14px; color: var(--muted); }
.spec b { font-size: 18px; font-weight: 600; }
.note-box { padding: 18px 20px; border-left: 5px solid var(--accent); background: var(--panel); color: var(--fg-2); font-size: 16px; }
.note-box b { color: var(--fg); }
.parts { margin-top: 64px; }
.parts h2 { font-size: 48px; margin-bottom: 20px; }
.parts-list { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.part { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 104px; gap: 18px; align-items: center; padding: 16px 20px; }
.part + .part { border-top: 1px solid var(--line); }
.part .n { font: 700 22px/1 var(--display); color: var(--muted); }
.part b { font-weight: 600; }
.part small { display: block; color: var(--muted); font-size: 15px; }
.part .price { font: 700 22px/1 var(--display); white-space: nowrap; }
.part .buy { justify-self: end; }
.part .buy.none { visibility: hidden; }
.parts-total { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--deep); color: var(--fg); border-top: 1px solid var(--line); border-radius: 0 0 3px 3px; font-weight: 600; }
.parts-total b { font: 700 32px/1 var(--display); color: var(--accent); }
.disclaimer { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- page heads ---------- */
.page-head { background: var(--bg); padding: 80px 0 70px; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; background-position: -1px -1px; }
.page-head h1 { font-size: clamp(64px, 10vw, 136px); font-weight: 800; line-height: .86; }
.page-head p { font-size: 21px; font-weight: 500; max-width: 34em; margin-top: 24px; }

/* ---------- setup guide ---------- */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 70px; padding: 80px 0 120px; }
.toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 0; }
.toc a { display: grid; grid-template-columns: 32px 1fr; align-items: baseline; text-decoration: none; color: var(--fg-2); padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.toc a span { font: 700 18px/1 var(--display); color: var(--muted); }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--fg); font-weight: 600; }
.toc a.on span { color: var(--on-accent); background: var(--accent); justify-self: start; padding: 2px 6px 0; border-radius: 2px; }
.guide-body { display: grid; gap: 80px; max-width: 46em; }
.g-sec { scroll-margin-top: 96px; }
.g-sec h2 { display: flex; align-items: center; gap: 16px; font-size: 46px; margin-bottom: 22px; }
.g-sec h2 .sign { font-size: 34px; }
.g-sec > p, .g-sec li { color: var(--fg-2); }
.g-sec > p + p { margin-top: 14px; }
.g-sec ol, .g-sec ul { padding-left: 24px; display: grid; gap: 10px; margin: 18px 0; }
.g-sec li::marker { color: var(--fg); font-weight: 700; }
.g-sec strong { color: var(--fg); font-weight: 600; }
.g-sec code { font: 15px ui-monospace, Consolas, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; color: var(--fg); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 18px 0; border-top: 2px solid var(--accent); }
.checklist div { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: 16px; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.checklist b { display: block; color: var(--fg); font-weight: 600; }
.callout { display: flex; gap: 14px; margin: 22px 0; padding: 18px 20px; background: var(--panel); border-left: 5px solid var(--accent); color: var(--fg-2); font-size: 16px; }
.callout.warn { border-left-color: var(--magenta); }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
.callout.warn svg { color: var(--wanted); }
.callout b { color: var(--fg); }
.feeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 18px 0; border-top: 2px solid var(--accent); }
.feeds div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feeds b { display: block; font-weight: 600; }
.feeds span { font-size: 14px; color: var(--muted); }
.trouble { border-top: 2px solid var(--accent); margin-top: 18px; }
.trouble details { border-bottom: 1px solid var(--line); }
.trouble summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--fg); display: flex; justify-content: space-between; gap: 20px; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::after { content: "+"; font: 700 26px/1 var(--display); }
.trouble details[open] summary::after { content: "−"; }
.trouble details p { padding: 0 0 20px; color: var(--fg-2); }

/* ---------- footer ---------- */
.site-foot { background: var(--deep); border-top: 1px solid var(--line); color: var(--fg-3); padding: 54px 0; font-size: 15px; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot nav a { color: var(--fg-2); text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: .04em; }
.site-foot nav a:hover { color: var(--accent); }

.empty { padding: 56px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: 4px; }

/* the one moment of motion: the hero photo settles in on load */
@keyframes settle { from { opacity: 0; transform: translateY(40px) rotate(4deg); } }
.hero-photo figure { animation: settle .9s cubic-bezier(.2, .7, .2, 1) both .1s; }
@media (prefers-reduced-motion: reduce) { .hero-photo figure { animation: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .goal, .flying, .build-detail { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { max-width: 560px; }
  .do, .steps { grid-template-columns: 1fr; gap: 40px; }
  .guide { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }
  .host { grid-template-columns: 1fr; padding: 34px 28px; }
}
@media (max-width: 720px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--black); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-cta { margin: 14px 0 0; }
  .nav .nav-cta a { display: block; text-align: center; }
  .block { padding: 76px 0; }
  .hero .wrap { padding-top: 48px; }
  .hero-photo .plate { left: 10px; bottom: 60px; font-size: 20px; }
  .sign-row a { font-size: 21px; }
  .checklist, .feeds, .spec { grid-template-columns: 1fr; }
  .spec div:nth-child(odd) { padding-right: 0; }
  .part { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 12px; }
  .part .buy { grid-column: 2 / -1; justify-self: start; }
  .part .buy.none { display: none; }
  .builds-grid { grid-template-columns: 1fr; }
  .g-sec h2 { font-size: 36px; }
}

/* ---------- the decoder: raw 1090 MHz messages, decoded in the page ---------- */
.mono, code, .frame code { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; }
.st small .mono { font-size: 13px; color: var(--muted); white-space: nowrap; margin-left: 6px; }
.hears { background: var(--deep); }
.decoder { margin-top: 48px; }
.dec-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.dec-tabs button { height: 42px; padding: 2px 16px 0; border-radius: 3px; border: 2px solid var(--line-2); background: transparent; color: var(--fg-2); font: 700 18px/1 var(--display); letter-spacing: .03em; cursor: pointer; }
.dec-tabs button:hover { border-color: var(--accent); color: var(--accent); }
.dec-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dec-own { margin-top: 22px; display: grid; gap: 10px; max-width: 640px; }
.dec-own[hidden] { display: none; }
.dec-own label { color: var(--fg-2); font-size: 15px; }
.dec-own div { display: flex; gap: 8px; }
.dec-own input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 3px; border: 2px solid var(--line-2); background: var(--bg); color: var(--accent-hi); font: 500 16px "IBM Plex Mono", monospace; letter-spacing: .04em; }
.dec-own input:focus { outline: none; border-color: var(--accent); }
.frame { display: flex; flex-wrap: wrap; gap: 4px; margin: 34px 0 30px; }
.seg { display: grid; gap: 8px; padding: 14px 16px 12px; border-radius: 3px; background: var(--panel); border-top: 4px solid; transition: background .15s; cursor: default; }
.seg code { font-size: clamp(20px, 2.6vw, 34px); font-weight: 500; color: var(--fg); letter-spacing: .06em; }
.seg small { font: 700 14px/1 var(--display); letter-spacing: .06em; color: var(--fg-2); }
.seg-df { border-color: var(--fg-2); } .seg-icao { border-color: var(--wanted); } .seg-me { border-color: var(--accent); } .seg-pi { border-color: #e0529c; }
.seg.hl { background: var(--panel-2); }
.dec-grid { display: grid; gap: 34px; }
.dec-grid .ppm { order: -1; }
.dec-table { max-width: 900px; }
.dec-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.dec-table th { text-align: left; font: 700 14px/1 var(--display); letter-spacing: .06em; color: var(--fg-2); padding: 0 12px 12px 0; border-bottom: 2px solid var(--line-2); }
.dec-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); vertical-align: top; }
.dec-table td.mono { color: var(--fg); font-size: 14.5px; }
.dec-table td:nth-child(2) { color: var(--fg-3); white-space: nowrap; }
.dec-table tr { transition: background .15s; }
.dec-table tr.hl td { background: var(--panel); }
.dec-table tr[data-seg="icao"] td:first-child { box-shadow: inset 3px 0 var(--wanted); padding-left: 10px; }
.dec-table tr[data-seg="me"] td:first-child { box-shadow: inset 3px 0 var(--accent); padding-left: 10px; }
.dec-table tr[data-seg="pi"] td:first-child { box-shadow: inset 3px 0 #e0529c; padding-left: 10px; }
.dec-table tr[data-seg="df"] td:first-child { box-shadow: inset 3px 0 var(--fg-2); padding-left: 10px; }
.ppm { color: var(--fg-2); padding: 20px; background: var(--panel); border-radius: 3px; }
.ppm svg { width: 100%; height: auto; display: block; }
.ppm .pl text { font: 500 13px "IBM Plex Mono", monospace; fill: var(--fg-2); }
.ppm .pl .pre { fill: var(--accent); }
.ppm-note { margin-top: 14px; font-size: 15px; color: var(--fg-2); max-width: 60em; }
.dec-err { margin-top: 30px; padding: 16px 18px; border-left: 4px solid #e0529c; background: var(--panel); color: #f0c2d9; }
.dec-src { margin-top: 26px; font-size: 14px; color: var(--fg-3); }
.dec-src a { color: var(--fg-2); }
@media (max-width: 720px) { .seg { padding: 10px 10px 9px; } .frame { gap: 3px; } }

.st .status.underway { color: var(--accent); }

/* ---------- Figtree type scale (AirNav-style: bold geometric, mixed case, tight) ---------- */
h1, h2, h3 { font-weight: 800; }
.hero h1 { font-size: clamp(44px, 6vw, 82px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.page-head h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1; letter-spacing: -.035em; }
.block h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.03em; max-width: 18ch; }
.detail-head h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.03em; }
.parts h2 { font-size: 34px; }
.g-sec h2 { font-size: 30px; letter-spacing: -.02em; }
.do h3, .step h3 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin: 18px 0 8px; }
.build-body h3 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.host h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.who b { font: 700 19px/1.2 var(--display); letter-spacing: -.01em; }
.nav a { font: 600 15px/1 var(--body); letter-spacing: 0; }
.nav .nav-cta a { font-weight: 700; padding: 12px 16px; }
.btn { font: 700 16px/1 var(--body); letter-spacing: 0; padding: 0 22px; height: 50px; }
.btn-sm { font-size: 14.5px; height: 40px; padding: 0 15px; }
.filters button, .dec-tabs button { font: 600 15px/1 var(--body); letter-spacing: 0; padding: 0 16px; }
.back { font: 600 15px/1 var(--body); letter-spacing: 0; }
.st .status { font: 700 13px/1 var(--body); letter-spacing: .02em; }
.seg small { font: 600 13px/1 var(--body); letter-spacing: 0; }
.dec-table th { font: 600 13px/1 var(--body); letter-spacing: 0; }
.part .price, .part .n { font-family: var(--body); font-weight: 700; font-size: 18px; }
.parts-total b { font: 800 28px/1 var(--body); }
.toc a span { font: 700 15px/1 var(--body); }
.site-foot nav a { font: 600 15px/1 var(--body); letter-spacing: 0; }
.intro { font-size: 19px; }
.hero .lede { font-size: clamp(18px, 1.6vw, 20px); }

/* build placeholders: chart grid with a large icon */
.build-img .ph { display: grid; place-items: center; background-color: #070c17;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.ph-ico { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 24px; background: rgba(58, 154, 252, .1); box-shadow: inset 0 0 0 1px rgba(58, 154, 252, .3); color: var(--accent); }
.ph-ico svg { width: 52px; height: 52px; }
.build-detail .ph-ico { width: 140px; height: 140px; border-radius: 32px; }
.build-detail .ph-ico svg { width: 76px; height: 76px; }
.page-head + .sign-row { margin-top: 0; }
.sign-row .sign svg { width: .9em; height: .9em; }
.steps { margin-top: 44px; }
.host { background: linear-gradient(120deg, rgba(58, 154, 252, .16), rgba(58, 154, 252, .04) 60%), var(--panel); box-shadow: inset 0 0 0 1px rgba(58, 154, 252, .35); }
.host h3 { max-width: 22ch; }

/* network map (MapLibre); the drawn chart underneath is the fallback */
.chart { position: relative; }
.netmap .maplibregl-ctrl-group { background: var(--panel); box-shadow: 0 0 0 1px var(--line-2); }
.netmap .maplibregl-ctrl-group button { filter: invert(1) hue-rotate(180deg); }
.netmap .maplibregl-ctrl-attrib { background: rgba(5, 8, 15, .8); color: var(--fg-3); }
.netmap .maplibregl-ctrl-attrib a { color: var(--fg-2); }
.nm-pin { display: flex; align-items: center; gap: 7px; pointer-events: none; }
.nm-pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--c); }
.nm-pin.nm-live i { width: 18px; height: 18px; background: var(--c); box-shadow: 0 0 0 3px var(--fg), 0 0 0 8px rgba(58, 154, 252, .25); }
.nm-pin span { font: 700 14px/1 var(--body); color: var(--fg); text-shadow: 0 0 4px var(--bg), 0 0 8px var(--bg), 0 1px 2px var(--bg); white-space: nowrap; }
.nm-pin.nm-live span { font-size: 15.5px; }

/* ---------- live map page ---------- */
.live-page { position: relative; height: calc(100svh - 68px); min-height: 520px; background: #070c17; }
.livemap { position: absolute; inset: 0; }
.livemap .maplibregl-ctrl-group { background: var(--panel); box-shadow: 0 0 0 1px var(--line-2); }
.livemap .maplibregl-ctrl-group button { filter: invert(1) hue-rotate(180deg); }
.livemap .maplibregl-ctrl-attrib { background: rgba(5, 8, 15, .8); color: var(--fg-3); }
.livemap .maplibregl-ctrl-attrib a { color: var(--fg-2); }
.live-panel { position: absolute; top: 16px; left: 16px; width: 300px; max-width: calc(100% - 32px); padding: 20px; background: rgba(8, 13, 24, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.live-panel h1 { font-size: 28px; letter-spacing: -.02em; }
.live-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14.5px; color: var(--fg-2); }
.live-status b { color: var(--fg); }
.live-status.bad { color: var(--wanted); }
.live-status .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(76, 212, 128, .6); animation: livepulse 2s infinite; flex: none; }
.live-status .pulse.off { background: var(--fg-3); animation: none; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(76, 212, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 212, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .live-status .pulse { animation: none; } }
.live-stations { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.live-stations li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 14.5px; }
.live-stations li span { color: var(--fg-3); font-size: 13.5px; }
.live-stations .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--fg); }
.live-stations .none { display: block; color: var(--fg-3); }
.live-note { margin-top: 14px; font-size: 13.5px; color: var(--fg-3); line-height: 1.5; }
.live-scale { display: grid; grid-template-columns: repeat(4, 1fr) auto; margin-top: 14px; font: 600 11px/1 var(--body); color: var(--fg-3); }
.live-scale i { grid-column: 1 / -1; height: 6px; margin-bottom: 7px; border-radius: 3px;
  background: linear-gradient(90deg, #ffe14d 0%, #c6f03a 2.5%, #6ee05a 7.5%, #2fd39a 15%, #22c7d6 25%, #3aa6ff 37.5%, #4f7dff 50%, #6c5cff 62.5%, #9a4dff 75%, #d14cff 87.5%, #ff4fa8 100%); }
.live-detail { position: absolute; left: 16px; bottom: 28px; width: 300px; max-width: calc(100% - 32px); padding: 18px 20px; background: rgba(8, 13, 24, .95); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.live-detail[hidden] { display: none; }
.ld-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-2); font-size: 22px; line-height: 1; cursor: pointer; }
.ld-close:hover { background: var(--panel-2); color: var(--fg); }
.ld-head b { display: block; font: 800 24px/1.1 var(--display); letter-spacing: -.02em; }
.ld-head span { color: var(--fg-2); font-size: 14.5px; }
.ld-desc { margin-top: 6px; font-size: 13.5px; color: var(--fg-3); }
.ld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ld-grid span { display: block; font-size: 12.5px; color: var(--fg-3); }
.ld-grid b { font-size: 15.5px; font-weight: 600; }
.ld-via { margin-top: 12px; font-size: 13px; color: var(--fg-3); }
@media (max-width: 720px) {
  .live-panel { top: 10px; left: 10px; right: 10px; width: auto; padding: 14px 16px; }
  .live-panel h1 { font-size: 22px; }
  .live-note, .live-scale { display: none; }
  .live-stations { margin-top: 10px; padding-top: 10px; }
  .live-detail { left: 10px; right: 10px; bottom: 30px; width: auto; }
}

/* MapLibre's stylesheet sets .maplibregl-map { position: relative }, which collapsed these to 0 height */
.live-page .livemap.maplibregl-map, .live-page .livemap { position: absolute; inset: 0; width: 100%; height: 100%; }

/* homepage network map: the map sits in the flow; the drawn chart covers it until the map loads */
.chart { position: relative; padding: 10px; }
.chart .netmap, .chart .netmap.maplibregl-map { position: relative; width: 100%; aspect-ratio: 7 / 8; border-radius: 3px; overflow: hidden; background: #070c17; }
.chart-fallback { position: absolute; top: 10px; left: 10px; right: 10px; }
.chart.has-map .chart-fallback { display: none; }
.chart figcaption { padding: 12px 4px 2px; }
.chart figcaption a { color: var(--fg-2); }
/* live map credit: dark, collapsed to an (i) button */
.livemap .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(5, 8, 15, .85); color: var(--fg-3); box-shadow: 0 0 0 1px var(--line-2); }
.livemap .maplibregl-ctrl-attrib-button { filter: invert(1); }
/* live map: aircraft photo from Planespotters */
.live-detail { padding-top: 14px; }
.ld-photo { display: block; margin: 0 0 12px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.ld-photo img { width: 100%; height: 100%; object-fit: cover; }
.ld-photo.loading { background: linear-gradient(90deg, var(--panel-2), #172440, var(--panel-2)); background-size: 200% 100%; animation: ldshimmer 1.2s linear infinite; }
@keyframes ldshimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ld-photo.loading { animation: none; } }
.ld-credit { margin: -6px 0 12px; font-size: 12px; color: var(--fg-3); }
.ld-credit a { color: var(--fg-2); }
.live-detail .ld-close { z-index: 2; top: 20px; right: 20px; background: rgba(5, 8, 15, .75); color: var(--fg); }
@media (max-width: 720px) { .ld-photo { aspect-ratio: 16 / 7; } }
/* the aircraft card sits on the right so it never covers the station panel */
.live-detail { left: auto; right: 16px; top: 16px; bottom: auto; max-height: calc(100% - 32px); overflow-y: auto; }
@media (max-width: 720px) { .live-detail { left: 10px; right: 10px; top: auto; bottom: 30px; max-height: 60%; } }

/* recommended build */
.rec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.rec-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 30px; padding: 16px 0; border-block: 1px solid var(--line); }
.rec-total span { color: var(--fg-3); font-size: 15px; }
.rec-total b { font: 800 26px/1 var(--display); color: var(--accent); letter-spacing: -.02em; }
.rec-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rec-part { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 18px 20px; }
.rec-part + .rec-part { border-top: 1px solid var(--line); }
.rec-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(58, 154, 252, .1); color: var(--accent); }
.rec-ico svg { width: 22px; height: 22px; }
.rec-part b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.rec-part small { display: block; color: var(--fg-3); font-size: 14px; margin-top: 2px; }
.rec-price { font: 700 17px/1 var(--display); white-space: nowrap; }
.rec-part .btn { min-width: 118px; }
@media (max-width: 980px) { .rec { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) {
  .rec-part { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; }
  .rec-price, .rec-part .btn { grid-column: 2; justify-self: start; }
  .rec-total { flex-direction: column; gap: 6px; }
}
