/* ==========================================================================
   AOPA Malta — editorial redesign
   Palette: Malta red, off-white ground, near-black text
   Type: Space Grotesk (display) / Inter (body)
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-deep: #9c0b23;
  --red-tint: #fbe6ea;
  --ink: #0f0f0f;
  --ink-soft: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e6e2da;
  --paper: #faf7f2;
  --paper-warm: #f4efe6;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); }

p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
a:hover { border-bottom-color: var(--red); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 1.75rem; }

.eyebrow {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 1.5rem;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 3rem 0;
}

/* ---------- Nav ---------- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  border-bottom: none;
}
.brand-mark { width: 38px; height: 38px; display: block; }
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  mix-blend-mode: multiply; /* drops white background against light nav */
}
.brand-logo-footer {
  display: block;
  height: 96px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 4px;
}
.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .brand-logo { height: 50px; max-width: 200px; }
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: none;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

.nav-wx {
  display: none;
  align-items: baseline;
  gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  padding-left: 1rem;
  margin-left: 0.75rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  line-height: 1;
}
.nav-wx-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.nav-wx-da {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.nav-wx-updated {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.nav-wx-elevated .nav-wx-da,
.nav-wx-elevated .nav-wx-icon { color: #1e6f3e; }        /* dark green on light nav */
.nav-wx-critical .nav-wx-da,
.nav-wx-critical .nav-wx-icon { color: var(--red); }
.nav-wx-critical .nav-wx-icon {
  animation: wx-da-pulse 1.8s ease-in-out infinite;
}
.nav-wx-icon { font-size: 0.9rem; margin-left: 0.1rem; cursor: help; }
@media (min-width: 1100px) { .nav-wx { display: inline-flex; } }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.75rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); border-bottom-color: var(--red-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); border-bottom-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--red); padding-left: 0; padding-right: 0; }
.btn-ghost::after { content: " →"; }
.btn-ghost:hover { color: var(--red-deep); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-success { background: #1e6f3e; color: var(--white); border-color: #1e6f3e; }
.btn-success:hover { background: #164e2c; border-color: #164e2c; color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--paper);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, rgba(200, 16, 46, 0.08), transparent 60%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero-title em {
  font-style: normal;
  color: var(--red);
  font-family: "Space Grotesk", serif;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 500px;
  margin: 1.5rem 0 2rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-side { position: relative; }
.hero-compass {
  width: 100%;
  max-width: 380px;
  display: block;
  margin-left: auto;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-compass { max-width: 260px; margin: 1rem auto 0; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink .eyebrow { color: #ff8896; border-color: #ff8896; }
.section-ink .btn-outline { color: var(--paper); border-color: var(--paper); }
.section-ink .btn-outline:hover { background: var(--paper); color: var(--ink); }

.section-heading { max-width: 720px; margin-bottom: 3rem; }
.section-heading p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Pillars: 3-up but editorial, not card-y */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pillar:last-child { border-right: none; }
.pillar-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 1rem;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.pillar p { color: var(--muted); margin: 0; }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; }
}

/* ---------- Feature strip (image + text) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-reverse .feature-media { order: 2; }
.feature-media {
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.feature-media svg { width: 100%; height: 100%; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: 0; }
}

/* ---------- Data cards (AIP briefing style) ---------- */
.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.brief {
  background: var(--white);
  padding: 1.5rem 1.5rem;
}
.brief-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}
.brief-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.brief-value small { font-size: 0.85rem; font-weight: 400; color: var(--muted); display: block; margin-top: 0.3rem; }
.brief ul { padding-left: 1.1rem; margin: 0.5rem 0 0; color: var(--ink-soft); }
.brief ul li { margin-bottom: 0.35rem; }

/* Two-column editorial */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}
.editorial-side h4 { margin-top: 0; }
.editorial-side p { color: var(--muted); }
.editorial-body p { font-size: 1.05rem; }
@media (max-width: 820px) { .editorial { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Events ---------- */
.event-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.event-row:last-child { border-bottom: none; }
.event-when {
  font-family: "Space Grotesk", sans-serif;
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
}
.event-when .d { display: block; font-size: 2rem; line-height: 1; color: var(--ink); font-weight: 700; }
.event-when .m { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
.event-title { font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; font-weight: 600; }
.event-meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.event-past { opacity: 0.5; }
@media (max-width: 640px) {
  .event-row { grid-template-columns: 90px 1fr; }
  .event-row .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Forms ---------- */
.form-card {
  max-width: 620px;
  margin: 3rem auto;
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--line);
}
.form-card h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.form-card > p { color: var(--muted); margin-bottom: 2rem; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="datetime-local"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.field .error { font-size: 0.85rem; color: var(--red); margin-top: 0.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field-check { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; }
.field-check label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 400; color: var(--ink); }

.form-section {
  padding-top: 1.5rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.form-section:first-of-type { border-top: none; margin-top: 0.5rem; padding-top: 0; }
.form-section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.25rem;
}
.form-section-title .section-sub {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.form-section .section-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.5rem 0 1.25rem;
}

.req { color: var(--red); font-weight: 700; }
.hint-inline { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.8rem; margin-left: 0.4rem; }

.radio-group, .check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}
.radio-group.radio-stack { flex-direction: column; gap: 0.5rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.4rem 1rem; }
.check-grid ul { list-style: none; padding: 0; margin: 0; display: contents; }
.check-grid li { display: contents; }

.radio-option, .check-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  font-size: 0.9rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}
.radio-option:hover, .check-option:hover { border-color: var(--red); background: var(--red-tint); }
.radio-option input, .check-option input { margin: 0; cursor: pointer; accent-color: var(--red); }
.radio-option input:checked ~ span,
.check-option input:checked ~ span { font-weight: 600; color: var(--red-deep); }
.radio-option:has(input:checked),
.check-option:has(input:checked) { border-color: var(--red); background: var(--red-tint); }

.radio-option-stacked {
  align-items: flex-start;
  padding: 0.85rem 1rem;
  width: 100%;
}
.radio-option-stacked input { margin-top: 0.15rem; }
.radio-option-content { display: flex; flex-direction: column; gap: 0.2rem; }
.radio-option-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.01em;
}
.radio-option-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.radio-option-stacked:has(input:checked) .radio-option-title { color: var(--red-deep); }

/* ---------- Flash messages ---------- */
.flash {
  padding: 0.85rem 1.2rem;
  margin: 1rem 0;
  border-left: 4px solid var(--red);
  background: var(--red-tint);
  font-size: 0.95rem;
}
.flash-success { border-color: #1e6f3e; background: #e6f3ea; }
.flash-info { border-color: #1e5f8c; background: #e3eff8; }
.flash-warning { border-color: #b57a00; background: #fbf1d9; }
.flash-danger { border-color: var(--red); background: var(--red-tint); }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.data-table th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  background: var(--paper-warm);
}
.data-table tr:hover td { background: var(--paper); }

.pill {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pill-pending { background: #fbf1d9; color: #7d5300; }
.pill-approved { background: #e6f3ea; color: #1e6f3e; }
.pill-rejected { background: var(--red-tint); color: var(--red-deep); }
.pill-admin { background: var(--ink); color: var(--paper); }
.pill-public { background: #e3eff8; color: #1e5f8c; }
.pill-members { background: var(--paper-warm); color: var(--ink-soft); }

/* ---------- Admin nav ---------- */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  overflow-x: auto;
}
.admin-tabs a {
  padding: 0.85rem 1.25rem;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a.active { color: var(--red); border-bottom-color: var(--red); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.stat {
  background: var(--white);
  padding: 1.5rem;
}
.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
}

/* ---------- Applicant detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.detail-section {
  background: var(--white);
  padding: 1.5rem;
}
.detail-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin: 0 0 1rem;
}
.detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--paper-warm);
  align-items: baseline;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-value {
  font-size: 0.95rem;
  color: var(--ink);
  word-break: break-word;
  white-space: pre-line;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #b8b8b8;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer h5 {
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 1rem;
}
.footer a { color: #b8b8b8; }
.footer a:hover { color: var(--white); border-bottom-color: var(--white); }
.footer .brand-text { color: var(--white); }
.footer .brand-text small { color: #b8b8b8; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  color: #777;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Auth background (login page) ---------- */
.auth-bg {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 6rem;
  background-image: url("../img/login-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.auth-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.15) 100%);
  z-index: 0;
}

.auth-hero {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 560px;
  flex: 1 1 auto;
}
.auth-hero h2 {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0.5rem 0 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.auth-hero-quote {
  font-style: italic;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}
.auth-hero-quote .q {
  color: var(--red);
  font-weight: 400;
  font-style: normal;
  font-size: 1.15em;
  margin: 0 0.05em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.auth-hero-attribution {
  color: rgba(255,255,255,0.75);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.01em;
  margin: 0 0 1.5rem !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.auth-hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1.28rem;
  max-width: 460px;
  margin: 0 !important;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.auth-hero p { margin: 0; }

.auth-card {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  flex: 0 0 auto;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.auth-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

@media (max-width: 960px) {
  .auth-bg {
    flex-direction: column;
    align-items: stretch;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .auth-hero { text-align: center; max-width: 100%; }
  .auth-hero p { max-width: 100%; margin: 0 auto; }
  .auth-card { align-self: center; }
}

/* ---------- Pilot Info hero (cockpit shot) ---------- */
.pilot-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 5rem;
  color: #fff;
  background-image: url("../img/pilot-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.pilot-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.30) 65%, rgba(0,0,0,0.50) 100%),
    linear-gradient(90deg, rgba(11,11,11,0.35) 0%, rgba(11,11,11,0.05) 55%, transparent 100%);
  z-index: 0;
}
.pilot-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.pilot-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.pilot-hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-top: 1.25rem;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
@media (max-width: 640px) {
  .pilot-hero { min-height: 420px; }
}

/* ---------- Weather / METAR block ---------- */
.wx {
  position: relative;
  color: var(--paper);
  padding: 2rem;
  border: 1px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(rgba(11, 11, 11, 0.35), rgba(11, 11, 11, 0.35)),
    url("../img/wx-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.wx .wx-raw { text-shadow: none; }
/* Animated background: drifting radar sweep + faint wind lines */
.wx::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 60px,
      rgba(255, 255, 255, 0.025) 60px,
      rgba(255, 255, 255, 0.025) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 60px,
      rgba(255, 255, 255, 0.02) 60px,
      rgba(255, 255, 255, 0.02) 61px
    );
  z-index: -2;
  animation: wx-drift 60s linear infinite;
}
.wx::after {
  content: "";
  position: absolute;
  top: 50%; left: -20%;
  width: 140%; aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(200, 16, 46, 0.06) 20deg, transparent 40deg);
  z-index: -1;
  animation: wx-sweep 12s linear infinite;
  pointer-events: none;
}
@keyframes wx-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}
@keyframes wx-sweep {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}
.wx > * { position: relative; z-index: 1; }
.wx-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 2rem;
  border-right: 1px solid #2a2a2a;
}
.wx-cat-pill {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  line-height: 1;
}
.wx-cat-VFR   { background: #1e6f3e; color: #fff; }
.wx-cat-MVFR  { background: #1e5f8c; color: #fff; }
.wx-cat-IFR   { background: var(--red); color: #fff; }
.wx-cat-LIFR  { background: #8b1e8b; color: #fff; }
.wx-cat-UNKN  { background: #555; color: #fff; }
.wx-cat-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  opacity: 0.85;
  margin-top: 0.6rem;
}

.wx-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
}
.wx-field { display: flex; flex-direction: column; }
.wx-field-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}
.wx-field-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: var(--paper);
  font-weight: 500;
}

/* ── Runway wind components (LMML) ────────────────────────────────── */
.wx-runways {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}
.wx-runways-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.wx-runways-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  opacity: 0.85;
}
.wx-runways-best {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  color: #7fd39d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wx-runways-best strong { color: #b7f0c9; font-weight: 700; }
.wx-runways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.wx-rw {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  color: var(--paper);
  font-family: "Space Grotesk", sans-serif;
}
.wx-rw-best {
  background: rgba(30, 111, 62, 0.18);
  border-color: rgba(127, 211, 157, 0.55);
}
.wx-rw-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wx-rw-id {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wx-rw-hdg {
  font-size: 0.72rem;
  color: #a8adb2;
  letter-spacing: 0.06em;
}
.wx-rw-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wx-rw-line { font-size: 0.82rem; line-height: 1.35; }
.wx-rw-line strong { font-weight: 700; }
.wx-rw-hw { color: #b7f0c9; }
.wx-rw-tw { color: #f2b8b8; }
.wx-rw-cross { color: #f0d78a; }
.wx-rw-none { color: #7a7a7a; font-size: 0.78rem; }
.wx-rw-note { color: #a8adb2; font-style: italic; font-size: 0.85rem; }
.wx-rw-line small { color: #a8adb2; font-size: 0.7rem; }

@media (max-width: 720px) {
  .wx-runways-grid { grid-template-columns: repeat(2, 1fr); }
}

.wx-meta {
  text-align: right;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  color: #fff;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.wx-meta strong { color: var(--paper); display: block; font-size: 1rem; margin-top: 0.25rem; letter-spacing: 0.02em; opacity: 1; }

.wx-raw {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #1a1a1a;
  border-left: 3px solid var(--red);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.85rem;
  color: #cfcfcf;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.wx-raw-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 0.4rem;
  display: block;
}
.wx-raws { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }

.wx-error {
  padding: 1.25rem;
  background: #2a1a1a;
  color: #fcc;
  font-size: 0.9rem;
  border-left: 3px solid var(--red);
}

/* Full-width homepage weather strip */
.wx-strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #2a2a2a;
}
.wx-strip-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.75rem 1.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  flex-wrap: wrap;
}
.wx-mini-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: white;
}
.wx-mini-VFR   { background: #1e6f3e; }
.wx-mini-MVFR  { background: #1e5f8c; }
.wx-mini-IFR   { background: var(--red); }
.wx-mini-LIFR  { background: #8b1e8b; }
.wx-mini-UNKN  { background: #555; }
.wx-strip-icao {
  color: var(--paper);
  letter-spacing: 0.06em;
  padding-right: 0.5rem;
  border-right: 1px solid #333;
}
.wx-strip-meta { color: #9a9a9a; font-weight: 400; }
.wx-strip-item {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  white-space: nowrap;
}
.wx-strip-item .wx-k {
  color: #6b6b6b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.wx-strip-item .wx-v { color: #cfcfcf; font-weight: 400; }
.wx-strip-da { color: var(--paper); font-weight: 700; letter-spacing: 0.02em; font-size: 1.2rem; }
.wx-da-elevated .wx-strip-da,
.wx-da-elevated .wx-da-icon { color: #4ade80; }          /* green — DA > 2,000 ft */
.wx-da-critical .wx-strip-da,
.wx-da-critical .wx-da-icon { color: #ff6b6b; }          /* red   — DA > 3,000 ft */
.wx-da-critical .wx-da-icon {
  animation: wx-da-pulse 1.8s ease-in-out infinite;
}
@keyframes wx-da-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.wx-da-icon { font-size: 1rem; margin-left: 0.15rem; cursor: help; }
.wx-strip-alert .wx-k { color: #ffb166; }
.wx-strip-alert .wx-v { color: #ffdca8; font-weight: 600; }
.wx-strip-updated {
  margin-left: auto;
  color: #6b6b6b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .wx-strip-updated { margin-left: 0; }
}

@media (max-width: 820px) {
  .wx { grid-template-columns: 1fr; }
  .wx-cat { padding-right: 0; padding-bottom: 1rem; border-right: none; border-bottom: 1px solid #2a2a2a; }
  .wx-meta { text-align: left; }
  .wx-raws { grid-template-columns: 1fr; }
}

/* ---------- Regional weather map ---------- */
.region-map {
  height: 520px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  background: var(--paper-warm);
  position: relative;
}
.region-map .leaflet-container {
  background: #eef2f5;
  font-family: "Inter", sans-serif;
}
.region-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  align-items: center;
}
.region-legend-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--ink);
}
.region-legend-dot.VFR   { background: #1e6f3e; }
.region-legend-dot.MVFR  { background: #1e5f8c; }
.region-legend-dot.IFR   { background: var(--red); }
.region-legend-dot.LIFR  { background: #8b1e8b; }
.region-legend-dot.UNKN  { background: #555; }

/* Custom map marker */
.airport-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--ink), 0 3px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.airport-marker.major { font-size: 0.6rem; }
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-top: -1px;
}
.map-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.map-toolbar-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}
.map-toolbar-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.map-toolbar-unit {
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 0.15rem;
}
.map-toolbar-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 0.25rem;
}
.map-toolbar-hint kbd {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
  color: var(--ink);
  margin: 0 0.1rem;
}
.map-tool-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
.map-tool-btn:hover { opacity: 0.85; }
.map-tool-btn.active { background: #1e6f3e; }
.map-tool-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.map-tool-btn-ghost:hover { color: var(--ink); opacity: 1; }
.map-tool-select {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.map-tool-input {
  width: 60px;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.8rem;
}
.wind-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform-origin: center;
}
.wind-arrow-lbl {
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
  text-shadow: 0 0 3px white, 0 0 3px white;
}

/* ── Range-ring label (draws on the map itself) ───────────────────── */
.ring-label {
  background: var(--red);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.airport-marker:hover { transform: scale(1.25); z-index: 1000 !important; }
.airport-marker.VFR   { background: #1e6f3e; }
.airport-marker.MVFR  { background: #1e5f8c; }
.airport-marker.IFR   { background: var(--red); }
.airport-marker.LIFR  { background: #8b1e8b; }
.airport-marker.UNKN  { background: #555; }
.airport-marker.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: airport-pulse 2s ease-out infinite;
  opacity: 0;
}
@keyframes airport-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.leaflet-popup-content-wrapper {
  border-radius: 4px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
}
.leaflet-popup-content { margin: 0 !important; width: 260px !important; }
.leaflet-popup-tip { background: var(--ink) !important; }
.wx-popup { background: var(--ink); color: var(--paper); font-family: "Inter", sans-serif; }
.wx-popup-head {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
}
.wx-popup-head h4 {
  margin: 0; color: var(--paper); font-size: 0.95rem;
  text-transform: none; letter-spacing: 0;
}
.wx-popup-head .icao {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  color: #888; letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-top: 2px;
}
.wx-popup-body { padding: 0.85rem 1rem; font-size: 0.85rem; }
.wx-popup-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.wx-popup-row span:first-child {
  color: #888;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.wx-popup-row span:last-child { color: var(--paper); font-weight: 500; }
.wx-popup-raw {
  padding: 0.6rem 1rem;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #cfcfcf;
  word-break: break-all;
}
.wx-popup-cat {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.wx-popup-cat.VFR  { background: #1e6f3e; }
.wx-popup-cat.MVFR { background: #1e5f8c; }
.wx-popup-cat.IFR  { background: var(--red); }
.wx-popup-cat.LIFR { background: #8b1e8b; }
.wx-popup-cat.UNKN { background: #555; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Airspace diagram ---------- */
.as-diagram {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 820px;
  font-family: "Space Grotesk", sans-serif;
}
.as-level-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.as-level-mark::before,
.as-level-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.as-level-mark span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.3rem 0;
}
.as-level-mark--key span {
  color: var(--ink);
  background: var(--paper);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.as-level-mark--key::before,
.as-level-mark--key::after {
  background: var(--ink);
  opacity: 0.25;
  height: 2px;
}

/* Band row */
.as-band {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 80px;
}
.as-band-uir  { min-height: 140px; background: #eaf3fb; }
.as-band-tma  { min-height: 120px; background: #e8f4fd; }
.as-band-fir  { min-height: 120px; background: #edf7f1; }
.as-band-ctr  { min-height: 80px;  background: #f0f7ee; }
.as-band-g    { min-height: 60px;  background: #f4f4f4; }

.as-band-left {
  width: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-right: 2px solid rgba(0,0,0,0.08);
}
.as-band-body {
  flex: 1;
  padding: 1rem 1.25rem;
}
.as-band-right-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 1rem 0.6rem;
  border-left: 1px solid rgba(0,0,0,0.08);
  opacity: 0.6;
}
.as-band-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.as-icao {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  letter-spacing: 0.05em;
}
.as-band-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
}
.as-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.as-chip {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.as-chip-backup {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Class badges */
.as-class-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  flex-shrink: 0;
}
.as-c { background: #1a6fa5; color: #fff; }
.as-d { background: #1e6f3e; color: #fff; }
.as-g { background: #777; color: #fff; }

/* Split row (TMA + outer FIR side by side) */
.as-band-split {
  display: flex;
  align-items: stretch;
}
.as-band-split .as-band {
  flex: 1;
}
.as-band-split-divider {
  width: 2px;
  background: rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.as-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: right;
}

/* ── Airspace cake SVG diagram ─────────────────────────────────────── */
.cake-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.cake-svg {
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 0 auto;
}
.cake-alt {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 11px;
  fill: #555;
  dominant-baseline: middle;
}
.cake-label-main {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: #1a1a1a;
  dominant-baseline: middle;
}
.cake-label-sub {
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  fill: #555;
  dominant-baseline: middle;
}
.cake-label-freq {
  font-family: "Inter", monospace, sans-serif;
  font-size: 10px;
  fill: #333;
  dominant-baseline: middle;
}
.cake-class-badge {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  dominant-baseline: middle;
  text-anchor: middle;
}
.cake-c { fill: #1a6fa5; }
.cake-d { fill: #1e6f3e; }
.cake-g { fill: #777; }
