/* wxdecoder.com — design tokens and components from the Claude Design handoff. */

:root {
  --ink: #0f172a;
  --body: #334155;
  --slate: #475569;
  --dim: #64748b;
  --faint: #94a3b8;
  --border: #e2e8f0;
  --soft: #f6f8fb;
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-bg: #e0f2fe;
  --blue-light: #bae6fd;
  --blue-ink: #7dd3fc;
  --vfr: #16a34a;
  --vfr-border: #15803d;
  --mvfr: #2563eb;
  --mvfr-border: #1d4ed8;
  --ifr: #dc2626;
  --ifr-border: #b91c1c;
  --lifr: #c026d3;
  --lifr-border: #a21caf;
  --unknown: #64748b;
  --unknown-border: #475569;
  --taf: #7c3aed;
  --taf-bg: #f3e8ff;
  --warn-ink: #92400e;
  --warn-bg: #fef3c7;
  --warn-border: #fde68a;
  --danger-ink: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --dark: #0f172a;
  --dc-green: #1f4733;
  --dc-green-dark: #163526;
  --dc-cream: #cfe3c8;
  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html, body { margin: 0; padding: 0; background: #ffffff; }
* { box-sizing: border-box; }
::selection { background: var(--blue-bg); }
textarea:focus, input:focus { outline: none; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #ffffff;
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; }
.mono { font-family: var(--mono); }

/* ===== Header ===== */
.site-header { border-bottom: 1px solid var(--border); background: #ffffff; }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.page-narrow .header-inner, .page-narrow .footer-inner { max-width: 1040px; }
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-lockup { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark span {
  font-family: var(--display); font-weight: 700; font-size: 13px; color: #ffffff; letter-spacing: 0.02em;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--dim); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13.5px; font-weight: 500; color: var(--slate); text-decoration: none;
  padding: 7px 10px; border-radius: 8px;
}
.nav-link:hover { background: var(--soft); color: var(--ink); }
.nav-pill {
  font-size: 13.5px; font-weight: 600; color: var(--blue); text-decoration: none;
  padding: 7px 14px; border-radius: 999px; background: var(--blue-bg);
}
.nav-pill:hover { background: var(--blue-light); }

/* ===== Layout ===== */
.layout {
  max-width: 1200px; margin: 0 auto; padding: 26px 20px 0;
  display: flex; gap: 28px; align-items: flex-start;
}
.main-col { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.rail { width: 300px; flex-shrink: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1023px) { .rail { display: none; } }

.stack {
  max-width: 1040px; margin: 0 auto; padding: 24px 20px 0;
  display: flex; flex-direction: column; gap: 20px;
}

/* ===== Hero / input ===== */
.hero { display: flex; flex-direction: column; gap: 14px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.015em; margin: 0 0 4px; text-wrap: pretty;
}
.hero-sub { margin: 0; font-size: 14.5px; color: var(--dim); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wx-input {
  width: 100%; resize: vertical; font-family: var(--mono); font-size: 15px; line-height: 1.65;
  color: var(--ink); background: #ffffff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; min-height: 88px;
}
.wx-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-hint { margin: 0; font-size: 12.5px; color: var(--faint); }
.hero-hint .mono { font-family: var(--mono); }

/* ===== Buttons ===== */
.btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: #ffffff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; cursor: pointer; min-height: 44px;
}
.btn:hover { background: var(--soft); }
.btn-primary {
  font-size: 14px; color: #ffffff; background: var(--blue); border-color: var(--blue); padding: 10px 22px;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { color: var(--dim); background: transparent; border: none; padding: 10px 12px; }
.btn-ghost:hover { color: var(--ink); background: var(--soft); }
.btn-sm { font-size: 13px; padding: 9px 14px; min-height: 40px; }
.btn-blue-soft { color: var(--blue); background: var(--blue-bg); border: 1px solid var(--blue-light); }
.btn-blue-soft:hover { background: var(--blue-light); }

/* ===== Cards ===== */
.card { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; }
.card-pad { padding: 18px 20px; }

/* ===== Category pills & badges ===== */
.cat-pill {
  display: inline-flex; align-items: center; gap: 7px; color: #ffffff;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 999px; border: 1px solid transparent;
}
.cat-pill-sm { font-size: 14px; padding: 4px 12px; }
.cat-pill-xs { font-size: 12px; letter-spacing: 0.05em; padding: 3px 10px; flex-shrink: 0; }
.cat-VFR { background: var(--vfr); border-color: var(--vfr-border); }
.cat-MVFR { background: var(--mvfr); border-color: var(--mvfr-border); }
.cat-IFR { background: var(--ifr); border-color: var(--ifr-border); }
.cat-LIFR { background: var(--lifr); border-color: var(--lifr-border); }
.cat-UNKNOWN { background: var(--unknown); border-color: var(--unknown-border); }
.dot-VFR { background: var(--vfr); }
.dot-MVFR { background: var(--mvfr); }
.dot-IFR { background: var(--ifr); }
.dot-LIFR { background: var(--lifr); }
.dot-UNKNOWN { background: #cbd5e1; }

.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  border-radius: 5px; padding: 2px 7px;
}
.badge-metar { color: var(--blue); background: var(--blue-bg); }
.badge-taf { color: var(--taf); background: var(--taf-bg); }

.age-chip {
  font-size: 12.5px; color: var(--dim); background: var(--soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.age-chip.stale { color: var(--danger-ink); background: var(--danger-bg); border-color: var(--danger-border); }

/* ===== Result card ===== */
.result-card { overflow: hidden; }
.result-head { padding: 18px 20px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-headline { font-size: 15px; font-weight: 500; color: var(--ink); }
.result-edu { font-size: 11.5px; color: var(--faint); margin-left: auto; }
.result-station { padding: 14px 20px 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.result-station .station-id { font-family: var(--display); font-weight: 600; font-size: 15px; }
.result-station .station-name { font-size: 13px; color: var(--dim); }
.result-summary {
  margin: 0; padding: 12px 20px 4px; font-size: 16.5px; line-height: 1.65;
  color: var(--ink); text-wrap: pretty; max-width: 68ch;
}

/* Raw interactive report */
.raw-box {
  margin: 16px 20px 0; background: var(--soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px 12px;
}
.raw-tokens { display: flex; flex-wrap: wrap; gap: 2px 4px; line-height: 2; }
.tok-wrap { position: relative; display: inline-block; }
.tok {
  font-family: var(--mono); font-size: 15px; font-weight: 500; padding: 2px 6px;
  border-radius: 6px; cursor: pointer; color: var(--ink); background: transparent;
  border: none; line-height: inherit;
}
.tok-sm { font-size: 14px; padding: 2px 5px; }
.tok:hover, .tok.active { background: var(--blue-light); }
.tok:focus-visible { background: var(--blue-light); box-shadow: 0 0 0 2px var(--blue); outline: none; }
.raw-hint { margin: 8px 0 0; font-size: 12px; color: var(--faint); }

.tok-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: 264px; background: var(--dark); color: #f8fafc; border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}
.tok-pop-raw { display: block; font-family: var(--mono); font-size: 12px; color: var(--blue-ink); margin-bottom: 4px; }
.tok-pop-title { display: block; font-weight: 600; font-size: 13px; margin-bottom: 3px; line-height: 1.4; }
.tok-pop-text { display: block; font-size: 12.5px; line-height: 1.55; color: #cbd5e1; }

/* Detail grid */
.detail-grid {
  padding: 16px 20px 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.detail-card { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.detail-card h3 {
  margin: 0 0 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--dim);
}
.detail-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.detail-card .note { margin-top: 6px; font-size: 12.5px; color: var(--dim); }
.detail-card .code-chip {
  font-family: var(--mono); font-size: 12.5px; background: var(--soft);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px;
}
.detail-wind { display: flex; gap: 14px; align-items: flex-start; }
.detail-wind > div:last-child { min-width: 0; }
.detail-full { grid-column: 1 / -1; }

.compass {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--soft); position: relative; flex-shrink: 0;
}
.compass .n {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  font-size: 8px; font-weight: 700; color: var(--faint);
}
.compass .needle {
  position: absolute; left: 50%; top: 50%; width: 2.5px; height: 17px; background: var(--blue);
  border-radius: 2px; transform-origin: bottom center;
}
.compass .hub {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); transform: translate(-50%, -50%);
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font-size: 12px; font-weight: 600; color: var(--slate); background: var(--soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.chip-warn { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-border); }
.chip-danger { color: #ffffff; background: var(--ifr); border-color: var(--ifr-border); }

.remark-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.remark-row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.remark-row code { font-family: var(--mono); font-size: 13px; font-weight: 600; min-width: 96px; }
.remark-row span { font-size: 13.5px; color: var(--slate); flex: 1; min-width: 200px; }

.freshness { margin: 0; padding: 14px 20px 0; font-size: 12.5px; color: var(--dim); }
.result-actions {
  margin: 12px 20px 18px; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.result-actions .push-right { margin-left: auto; }
.btn-quiet { font-weight: 500; color: var(--faint); background: transparent; border: none; padding: 9px 10px; min-height: 40px; }
.btn-quiet:hover { color: var(--dim); background: var(--soft); }

/* ===== TAF card ===== */
.taf-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.taf-head .station-id { font-family: var(--display); font-weight: 600; font-size: 15px; }
.taf-head .issued { font-size: 13px; color: var(--dim); }
.taf-summary { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink); max-width: 68ch; text-wrap: pretty; }

.taf-timeline { display: flex; width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.taf-block {
  height: 36px; cursor: pointer; position: relative; border: none; padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
}
.taf-block:last-child { border-right: none; }
.taf-block:hover { filter: brightness(1.08); }
.taf-block.selected { box-shadow: inset 0 0 0 3px rgba(15, 23, 42, 0.85); }
.taf-block .tag {
  position: absolute; left: 7px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 700; color: #ffffff; letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); white-space: nowrap; pointer-events: none;
}
.taf-block.tight .tag { display: none; }
.bg-VFR { background: var(--vfr); }
.bg-MVFR { background: var(--mvfr); }
.bg-IFR { background: var(--ifr); }
.bg-LIFR { background: var(--lifr); }
.bg-UNKNOWN { background: #94a3b8; }
.bg-hatch-IFR { background: repeating-linear-gradient(135deg, #dc2626 0 10px, #b91c1c 10px 20px); }
.bg-hatch-LIFR { background: repeating-linear-gradient(135deg, #c026d3 0 10px, #a21caf 10px 20px); }
.bg-hatch-MVFR { background: repeating-linear-gradient(135deg, #2563eb 0 10px, #1d4ed8 10px 20px); }
.bg-hatch-VFR { background: repeating-linear-gradient(135deg, #16a34a 0 10px, #15803d 10px 20px); }
.bg-hatch-UNKNOWN { background: repeating-linear-gradient(135deg, #94a3b8 0 10px, #cbd5e1 10px 20px); }

.taf-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.taf-axis span { font-size: 11px; color: var(--faint); font-family: var(--mono); }

.taf-selected {
  margin-top: 12px; background: var(--soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap;
}
.taf-selected .body { min-width: 200px; flex: 1; }
.taf-selected .label { margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.taf-selected .text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }

.taf-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.taf-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-hatch { background: repeating-linear-gradient(135deg, #94a3b8 0 3px, #cbd5e1 3px 6px); }

.taf-raw { margin-top: 14px; }

/* ===== Sponsor ads ===== */
.ad-card { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.ad-label { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--faint); }
.ad-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ad-tile {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.ad-body { flex: 1; min-width: 220px; }
.ad-title { margin: 0 0 2px; font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.ad-text { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.5; }
.ad-cta {
  font-size: 13px; font-weight: 600; color: var(--ink); background: #ffffff;
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 16px; cursor: pointer;
  min-height: 44px; flex-shrink: 0; text-decoration: none; display: inline-flex; align-items: center;
}
.ad-cta:hover { background: var(--soft); }

/* Right rail */
.rail-card { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.rail-card .ad-label { margin-bottom: 12px; }
.dc-tile { width: 56px; height: 56px; border-radius: 14px; background: var(--dc-green); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.dc-headset { width: 30px; height: 26px; position: relative; }
.dc-headset .band {
  position: absolute; top: 0; left: 2px; width: 26px; height: 15px;
  border: 3px solid var(--dc-cream); border-bottom: none; border-radius: 13px 13px 0 0;
}
.dc-headset .cup-l, .dc-headset .cup-r {
  position: absolute; bottom: 0; width: 9px; height: 12px; background: var(--dc-cream); border-radius: 3px;
}
.dc-headset .cup-l { left: 0; }
.dc-headset .cup-r { right: 0; }
.dc-brand { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--dc-green); }
.dc-product { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 16px; }
.rail-card .ad-text { margin-bottom: 12px; }
.btn-dc {
  width: 100%; font-size: 13px; font-weight: 600; color: #ffffff; background: var(--dc-green);
  border: 1px solid var(--dc-green); border-radius: 10px; padding: 10px 14px; cursor: pointer;
  min-height: 44px; text-align: center; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center;
}
.btn-dc:hover { background: var(--dc-green-dark); }
.ad-cta-dc {
  background: var(--dc-green); border-color: var(--dc-green); color: #ffffff;
}
.ad-cta-dc:hover { background: var(--dc-green-dark); }

.rail-slot { background: var(--soft); border: 1px dashed #cbd5e1; border-radius: 14px; padding: 16px 18px; }
.rail-slot .slot-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--slate); }
.rail-slot .slot-text { margin: 0 0 10px; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.link-cta {
  font-size: 12.5px; font-weight: 600; color: var(--blue); background: transparent;
  border: none; padding: 0; cursor: pointer; text-decoration: none;
}
.link-cta:hover { color: var(--blue-dark); }
.house-title { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.house-text { margin: 0 0 10px; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.btn-house {
  font-size: 12.5px; font-weight: 600; color: var(--blue); background: var(--blue-bg);
  border: 1px solid var(--blue-light); border-radius: 8px; padding: 8px 12px; cursor: pointer;
  min-height: 40px; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-house:hover { background: var(--blue-light); }

/* ===== App upsell ===== */
.app-card {
  background: var(--dark); border-radius: 14px; padding: 22px; color: #f8fafc;
  position: relative; overflow: hidden;
}
.app-card .glow {
  position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(2, 132, 199, 0.18);
}
.app-card .row { position: relative; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.app-tile {
  width: 58px; height: 58px; border-radius: 14px; background: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}
.app-tile span { font-family: var(--mono); font-weight: 700; font-size: 17px; color: #ffffff; }
.app-copy { flex: 1; min-width: 240px; }
.app-copy h2 {
  margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.app-copy p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--faint); max-width: 52ch; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-light {
  font-size: 13px; font-weight: 600; color: var(--ink); background: #f8fafc;
  border: 1px solid #f8fafc; border-radius: 10px; padding: 10px 16px; cursor: pointer;
  min-height: 44px; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-light:hover { background: var(--border); }
.btn-outline-dark {
  font-size: 13px; font-weight: 600; color: #f8fafc; background: transparent;
  border: 1px solid #334155; border-radius: 10px; padding: 10px 16px; cursor: pointer; min-height: 44px;
}
.btn-outline-dark:hover { border-color: var(--dim); }
.email-input {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
  min-height: 44px; width: 210px;
}
.email-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.btn-notify {
  font-size: 13.5px; font-weight: 600; color: #ffffff; background: var(--blue);
  border: 1px solid var(--blue); border-radius: 10px; padding: 10px 18px; cursor: pointer; min-height: 44px;
}
.btn-notify:hover { background: var(--blue-dark); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ===== Learning ===== */
.learn { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.learn > h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.learn-card { background: var(--soft); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.learn-card h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 17px; }
.learn-card p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.65; color: var(--body); max-width: 70ch; text-wrap: pretty; }
.learn-card p:last-child { margin-bottom: 0; }

.anatomy { background: #ffffff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin-bottom: 14px; }
.anatomy-row { font-family: var(--mono); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; line-height: 2.1; }
.anatomy-row span { border-bottom: 3px solid; padding-bottom: 1px; }
.key-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; }
.key-grid p { margin: 0; font-size: 13px; color: var(--body); }
.key-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }
.key-grid .mono { font-family: var(--mono); }

.glossary { display: flex; flex-direction: column; gap: 8px; }
.glossary details { background: #ffffff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.glossary summary { font-size: 14px; font-weight: 600; cursor: pointer; min-height: 24px; }
.glossary details p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--slate); max-width: none; }

/* ===== Footer ===== */
.site-footer { margin-top: 40px; background: var(--soft); border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 20px 28px;
  display: flex; flex-direction: column; gap: 24px;
}
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-brand { flex: 2; min-width: 260px; }
.footer-brand .lockup { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand .brand-mark span { font-size: 10.5px; }
.footer-brand .brand-name { font-size: 15px; }
.footer-brand p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--dim); max-width: 54ch; text-wrap: pretty; }
.footer-col { flex: 1; min-width: 130px; }
.footer-col h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--faint); }
.footer-col nav { display: flex; flex-direction: column; gap: 7px; }
.footer-col a { font-size: 13px; color: var(--slate); text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.footer-bar {
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bar span, .footer-bar a { font-size: 12px; color: var(--faint); }
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { color: var(--blue); }

/* ===== Mobile token bottom sheet ===== */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #ffffff;
  border-top: 1px solid var(--border); border-radius: 18px 18px 0 0;
  box-shadow: 0 -14px 44px rgba(15, 23, 42, 0.2); padding: 14px 18px 22px;
}
.sheet[hidden] { display: none; }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sheet-raw {
  font-family: var(--mono); font-size: 15px; font-weight: 600; background: var(--blue-bg);
  color: var(--blue-dark); border-radius: 7px; padding: 3px 9px;
}
.sheet-pos { font-size: 12px; color: var(--faint); }
.sheet-close {
  font-size: 18px; color: var(--dim); background: var(--soft); border: 1px solid var(--border);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; line-height: 1;
}
.sheet-close:hover { background: var(--border); }
.sheet-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.sheet-text { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--slate); }
.sheet-nav { display: flex; gap: 10px; }
.sheet-nav .btn { flex: 1; padding: 11px; font-size: 13.5px; }

/* ===== Airport page ===== */
.crumbs { margin: 0 0 8px; font-size: 12.5px; color: var(--faint); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { color: var(--blue-dark); }
.airport-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.airport-title h1 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.015em;
}
.airport-title .full-name { font-size: 16px; font-weight: 500; color: var(--slate); }
.airport-meta { margin: 6px 0 0; font-size: 13.5px; color: var(--dim); }

.live-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.live-head .age-chip { margin-left: auto; }
.live-head .headline { font-size: 14px; font-weight: 500; }
.raw-strip { background: var(--soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.raw-strip span { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.live-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.live-actions .source { font-size: 12.5px; color: var(--faint); margin-left: auto; }
.btn-decode {
  font-size: 13px; font-weight: 600; color: #ffffff; background: var(--blue); border: 1px solid var(--blue);
  border-radius: 10px; padding: 9px 16px; text-decoration: none; display: inline-flex;
  align-items: center; min-height: 40px; cursor: pointer;
}
.btn-decode:hover { background: var(--blue-dark); }
.skeleton-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eef2f7, #f6f8fb, #eef2f7); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin: 8px 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.nearby-chip {
  display: flex; align-items: center; gap: 10px; background: var(--soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); min-height: 44px;
}
.nearby-chip:hover { border-color: var(--blue); background: #ffffff; }
.nearby-chip .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: #cbd5e1; }
.nearby-chip .id { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.nearby-chip .name { font-size: 12.5px; color: var(--dim); flex: 1; }
.nearby-chip .dist { font-size: 12px; color: var(--faint); }
.nearby-note { margin: 10px 0 0; font-size: 12px; color: var(--faint); }
.section-title { margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: 17px; }

.edu-block { background: var(--soft); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.edu-block h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 17px; }
.edu-block p { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: var(--body); max-width: 70ch; text-wrap: pretty; }
.edu-block p:last-child { margin-bottom: 0; }
.edu-block a { color: var(--blue); text-decoration: none; }
.edu-block a:hover { color: var(--blue-dark); }

/* ===== Airports index ===== */
.directory-intro { margin: 0; font-size: 14.5px; color: var(--dim); max-width: 70ch; }
.directory-search {
  width: 100%; max-width: 420px; font-family: var(--sans); font-size: 14px; color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; min-height: 44px;
}
.directory-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.state-group h2 {
  margin: 18px 0 10px; font-family: var(--display); font-weight: 600; font-size: 16px;
}
.airport-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }

/* ===== Misc ===== */
.error-card { padding: 18px 20px; }
.error-card h2 { margin: 0 0 6px; font-family: var(--display); font-size: 17px; }
.error-card p { margin: 0; font-size: 14px; color: var(--dim); }
.noscript-note {
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-ink);
  border-radius: 10px; padding: 12px 16px; font-size: 13.5px;
}

@media (max-width: 640px) {
  .result-edu { display: none; }
  .header-inner { height: auto; min-height: 62px; padding-top: 8px; padding-bottom: 8px; }
}
