/* ==========================================================================
   LMAC — Leicestershire Microlight Aircraft Club
   Design System & Shared Stylesheet (Hostinger Static Build v1)
   Brand blues sampled directly from official LMAC wing logo:
   Deep Wing Navy #132C4E | Mid Wing Blue #0070B8 | Sky Wing Blue #0098F8
   ========================================================================== */

/* Self-hosted Variable Web Fonts (Zero Google CDN / IP transfers) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-var.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-var.woff2') format('woff2');
}

:root {
  --navy-950: #08182E;
  --navy-900: #0E2442;
  --navy-800: #17345C;
  --navy-700: #203860;
  --blue-600: #0070B8;
  --blue-500: #0098F8;
  --blue-400: #3AB4FF;
  --blue-100: #E5F4FF;
  --blue-50:  #F2F9FF;

  --amber-500: #E58E0B;
  --amber-100: #FEF3C7;
  --amber-900: #78350F;
  --green-600: #0E8A56;
  --green-100: #DCFCE7;
  --red-600:   #C81E1E;
  --red-100:   #FEE2E2;

  --bg:        #FFFFFF;
  --surface:   #F6F9FC;
  --surface-2: #EDF3F9;
  --border:    #D9E4F0;
  --border-strong: #BDD0E4;

  --ink-900:   #0F1D2E;
  --ink-700:   #2E4157;
  --ink-500:   #586D84;
  --ink-400:   #7B90A6;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 74px;
  --container-max: 1260px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 3px rgba(8, 24, 46, 0.06);
  --shadow-sm: 0 4px 16px rgba(8, 24, 46, 0.07);
  --shadow-md: 0 12px 32px rgba(8, 24, 46, 0.10);
  --shadow-lg: 0 24px 56px rgba(8, 24, 46, 0.16);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background-color: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--blue-500);
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 36px);
}

.container-narrow {
  max-width: 860px;
}

main {
  flex: 1;
  padding-top: var(--nav-h);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--navy-900);
}

.brand-link img {
  height: 44px;
  width: auto;
}

.brand-link .logo-dark {
  display: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Segmented Dark / Auto / Light Mode Switcher (Top Right) */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  gap: 2px;
  flex-shrink: 0;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-500);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.theme-btn:hover {
  color: var(--navy-900);
}

.theme-btn.active {
  background: #fff;
  color: var(--navy-950);
  box-shadow: 0 1px 4px rgba(8, 24, 46, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--navy-900);
  background: var(--blue-50);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--blue-600);
  background: var(--blue-100);
}

.nav-cta {
  background: var(--navy-900) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--blue-600) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 152, 248, 0.28);
}

.btn-primary:hover {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 112, 184, 0.34);
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 36, 66, 0.2);
}

.btn-navy:hover {
  background: var(--navy-800);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-50);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-sky {
  background: var(--blue-100);
  color: var(--blue-600);
}

.badge-navy {
  background: var(--navy-900);
  color: #fff;
}

.badge-amber {
  background: var(--amber-100);
  color: var(--amber-900);
}

.badge-green {
  background: var(--green-100);
  color: var(--green-600);
}

.badge-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 100%);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.84);
}

.section-header {
  max-width: 740px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.section-dark .eyebrow {
  color: var(--blue-400);
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-500);
  line-height: 1.7;
}

/* ==========================================================================
   Hero & Subpage Banners
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  max-height: 860px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background-color: var(--navy-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(8, 24, 46, 0.88) 0%,
    rgba(14, 36, 66, 0.68) 52%,
    rgba(8, 24, 46, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 18px 0 20px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Telemetry / Quick Briefing Card on Hero */
.hero-brief-card {
  background: rgba(8, 24, 46, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brief-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-400);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #7CF2B8;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.brief-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.brief-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
}

.brief-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 4px;
}

.brief-stat-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.brief-ppr {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(229, 142, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #FEF3C7;
  margin-bottom: 16px;
}

.brief-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.brief-links a {
  text-align: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.brief-links a:hover {
  background: var(--blue-500);
  color: #fff;
}

/* Subpage Hero Banner */
.page-banner {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px);
  color: #fff;
  background-color: var(--navy-950);
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(8, 24, 46, 0.92) 0%, rgba(14, 36, 66, 0.72) 60%, rgba(0, 112, 184, 0.42) 100%);
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 800;
  margin: 12px 0 14px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 720px;
}

/* ==========================================================================
   Cards, Grids & Notice Strips
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-400);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-500);
  font-size: 0.95rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--blue-50);
  color: var(--navy-900);
  font-size: 0.95rem;
}

.notice-bar.notice-amber {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: var(--amber-900);
}

.notice-bar strong {
  color: inherit;
}

/* Stats Strip */
.stats-strip {
  background: var(--navy-900);
  color: #fff;
  padding-block: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-item {
  border-left: 3px solid var(--blue-500);
  padding-left: 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* ==========================================================================
   Members & Their Machines Cards
   ========================================================================== */
.machine-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.machine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.machine-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-950);
}

.machine-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.machine-card:hover .machine-img-wrap img {
  transform: scale(1.04);
}

.reg-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 24, 46, 0.84);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

.machine-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.machine-body h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.machine-body p {
  font-size: 0.92rem;
  color: var(--ink-500);
}

/* ==========================================================================
   Pilot Hub — Weather, Windy Embed & Tool Cards
   ========================================================================== */
.weather-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.windy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.windy-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--navy-900);
  color: #fff;
}

.windy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.layer-btn:hover,
.layer-btn.active {
  background: var(--blue-500);
  border-color: var(--blue-500);
}

.windy-frame-wrap {
  position: relative;
  width: 100%;
  height: 470px;
  background: var(--navy-950);
}

.windy-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.wx-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.wx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-block: 18px;
}

.wx-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.wx-box-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  display: block;
  margin-bottom: 4px;
}

.wx-box-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
}

.wx-box-sub {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 2px;
}

.metar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.metar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.9rem;
}

.metar-list a:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
  color: var(--blue-600);
}

.icao-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--navy-900);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
  color: inherit;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-card h3 {
  font-size: 1.08rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--ink-500);
  flex: 1;
}

.tool-link-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   50-Mile Airfields Interactive Map & Directory
   ========================================================================== */
.map-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  margin-bottom: 32px;
}

#airfields-map {
  width: 100%;
  height: 480px;
  z-index: 1;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink-700);
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.legend-dot span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.filter-input,
.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink-900);
  background: #fff;
}

.filter-input {
  min-width: 220px;
  flex: 1;
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-500);
}

.airfield-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.airfield-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.airfield-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}

.airfield-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.airfield-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.dist-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
}

.airfield-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-700);
}

.meta-pill.school {
  background: var(--green-100);
  color: var(--green-600);
}

.meta-pill.club {
  background: #CCFBF1;
  color: #0F766E;
}

.meta-pill.ppr {
  background: var(--amber-100);
  color: var(--amber-900);
}

.airfield-club-sub {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-top: -4px;
}

.airfield-desc {
  font-size: 0.9rem;
  color: var(--ink-500);
  flex: 1;
}

.airfield-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
}

.focus-map-btn {
  background: none;
  border: none;
  color: var(--ink-500);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.focus-map-btn:hover {
  color: var(--blue-600);
}

/* ==========================================================================
   History Timeline & Video Cards
   ========================================================================== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue-500), var(--navy-700));
  border-radius: 3px;
}

.era-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-xs);
}

.era-card::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 32px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue-500);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--blue-500);
}

.era-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.era-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy-900);
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.era-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  margin-bottom: 14px;
}

.era-card p {
  color: var(--ink-700);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

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

.era-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.era-photos.two-up {
  grid-template-columns: 1fr 1fr;
}

.era-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.era-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.era-figure figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.35;
}

.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.video-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--navy-950);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 46, 0.68);
}

.video-poster > * {
  position: relative;
  z-index: 2;
}

.play-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 152, 248, 0.45);
}

.video-card-body {
  padding: 22px;
}

.video-card-body h3 {
  margin-bottom: 8px;
}

.video-card-body p {
  font-size: 0.92rem;
  color: var(--ink-500);
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Vintage British Broadcast Test Card ("PENDING") for unlinked archive videos */
.tv-test-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0D1626;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  user-select: none;
}

.tv-bars {
  height: 14%;
  width: 100%;
  background: linear-gradient(
    90deg,
    #E5E7EB 0% 14.28%,
    #FACC15 14.28% 28.56%,
    #22D3EE 28.56% 42.84%,
    #22C55E 42.84% 57.12%,
    #E879F9 57.12% 71.40%,
    #EF4444 71.40% 85.68%,
    #2563EB 85.68% 100%
  );
  opacity: 0.92;
}

.tv-bars-bottom {
  height: 10%;
  background: linear-gradient(
    90deg,
    #111827 0% 20%,
    #374151 20% 40%,
    #6B7280 40% 60%,
    #D1D5DB 60% 80%,
    #F9FAFB 80% 100%
  );
  opacity: 0.85;
}

.tv-test-center {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 16px),
    radial-gradient(circle at center, rgba(0, 152, 248, 0.14) 0%, rgba(8, 24, 46, 0.94) 68%);
}

.tv-reticle {
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 12px 24px;
  background: rgba(8, 24, 46, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.tv-pending-stamp {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #FEF3C7;
  background: rgba(229, 142, 11, 0.26);
  border: 1.5px solid #F59E0B;
  padding: 4px 14px 4px 17px;
  border-radius: 6px;
}

.tv-test-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Gallery & Lightbox
   ========================================================================== */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.tab-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-950);
  position: relative;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.05);
}

.gallery-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 24, 46, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}

.gallery-card-meta {
  padding: 14px 16px;
}

.gallery-card-meta h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.gallery-card-meta p {
  font-size: 0.84rem;
  color: var(--ink-500);
  line-height: 1.45;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 30, 0.94);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1080px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  max-width: 720px;
}

.lightbox-caption h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.lightbox-caption p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-400);
  margin-top: 6px;
}

.lightbox-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: background 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--blue-500);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Contact & Forms
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink-900);
  background: var(--surface);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(0, 152, 248, 0.14);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.form-status.show { display: block; }
.form-status.success { background: var(--green-100); color: var(--green-600); border: 1px solid #86EFAC; }
.form-status.error   { background: var(--red-100);   color: var(--red-600);   border: 1px solid #FCA5A5; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 64px;
  padding-bottom: 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
  height: 54px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero { min-height: auto; max-height: none; align-items: flex-start; }
  .hero-content { grid-template-columns: 1fr; padding-block: 42px 54px; }
  .weather-dashboard { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .airfield-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 6px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .nav-cta { margin-left: 0; justify-content: center; margin-top: 6px; }
}

@media (max-width: 900px) {
  .grid-3, .grid-2, .contact-layout, .era-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-4, .airfield-grid, .footer-grid, .form-row-2 { grid-template-columns: 1fr; }
  .era-photos.two-up { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }
  .era-card::before { left: -21px; }
  .windy-frame-wrap { height: 360px; }
  #airfields-map { height: 360px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   ICO / PECR Cookie Consent Slide-Up Strip (Max Mara-inspired, slim profile)
   Full-width yellow banner with centered text-only left/right margins & --navy-950 ink
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 9500;
  background: var(--amber-100);
  color: var(--navy-950);
  border-top: 2px solid var(--amber-500);
  box-shadow: 0 -8px 28px rgba(8, 24, 46, 0.16);
  padding: 14px 0 16px;
  transform: translateY(calc(100% + 90px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s ease,
    visibility 0s linear 0.72s;
}

.cookie-banner.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s ease,
    visibility 0s linear 0s;
}

.cookie-banner-inner {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.2;
}

.cookie-dismiss-link {
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-950);
  opacity: 0.82;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.cookie-dismiss-link:hover {
  opacity: 1;
  color: var(--blue-600);
}

.cookie-banner-copy p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--navy-950);
  margin: 0;
}

.cookie-banner-copy a {
  color: var(--navy-950);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-copy a:hover {
  color: var(--blue-600);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--navy-950);
  background: var(--navy-950);
  color: #fff;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-align: center;
  line-height: 1.2;
}

.consent-btn:hover {
  transform: translateY(-1px);
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.consent-btn-essential {
  background: var(--navy-950);
  color: #fff;
  border-color: var(--navy-950);
}

.consent-btn-accept {
  background: var(--navy-950);
  color: #fff;
  border-color: var(--navy-950);
}

.embed-consent-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  background: linear-gradient(150deg, rgba(8, 24, 46, 0.94), rgba(14, 36, 66, 0.9)),
              url('../assets/images/thumbs/golden-sunset-clouds.jpg') center/cover no-repeat;
  color: #fff;
  gap: 12px;
}

.embed-consent-gate[hidden] {
  display: none;
}

.embed-consent-gate h3 {
  color: #fff;
  font-size: 1.25rem;
}

.embed-consent-gate p {
  max-width: 480px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
}

.embed-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-legal-links a,
.footer-cookie-btn {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links a:hover,
.footer-cookie-btn:hover {
  color: var(--blue-400);
}

/* Policy Table styling for privacy.html */
.policy-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  margin-block: 16px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.policy-table th,
.policy-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.policy-table th {
  background: var(--surface);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 11px 0 12px;
  }
  .cookie-banner-inner {
    padding-inline: 18px;
    gap: 7px;
  }
  .cookie-banner-copy p {
    font-size: 0.77rem;
    line-height: 1.42;
  }
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .consent-btn {
    min-width: 0;
    padding: 7px 10px;
    font-size: 0.76rem;
  }
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .theme-btn span { display: none; }
  .theme-btn { padding: 6px 8px; }
}

.era-card.era-modern {
  border-color: var(--blue-400);
  background: linear-gradient(to bottom right, #FFFFFF, #F2F9FF);
}

/* ==========================================================================
   Public Event & Fly-In Cards (Home Featured & Events Page)
   ========================================================================== */
.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.event-date-pill {
  flex-shrink: 0;
  min-width: 64px;
  padding: 8px 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-mono);
}

.event-date-day {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy-900);
}

.event-date-mon {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-top: 2px;
}

.event-card-head h3 {
  font-size: 1.06rem;
  margin-top: 6px;
  line-height: 1.25;
}

.event-meta-line {
  font-size: 0.84rem;
  color: var(--ink-500);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-summary {
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.55;
  flex: 1;
}

.event-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-source {
  font-size: 0.78rem;
  color: var(--ink-400);
  font-weight: 600;
}

/* ==========================================================================
   Dark Mode Theme (Cockpit / Night-VFR Aviation Palette)
   Activated via html[data-theme="dark"] (manual Dark or Auto matching OS)
   ========================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #071324;
  --surface:       #0C1C33;
  --surface-2:     #132949;
  --border:        #1E375B;
  --border-strong: #2C4E7D;

  --ink-900:       #F0F6FC;
  --ink-700:       #C8D9EC;
  --ink-500:       #93AECB;
  --ink-400:       #6E8AA8;

  --blue-100:      rgba(0, 152, 248, 0.2);
  --blue-50:       rgba(0, 152, 248, 0.12);
  --amber-900:     #FDE68A;
  --green-100:     rgba(14, 138, 86, 0.24);
  --green-600:     #4ADE80;
  --red-100:       rgba(200, 30, 30, 0.24);
  --red-600:       #FCA5A5;

  --shadow-xs:     0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-sm:     0 6px 20px rgba(0, 0, 0, 0.42);
  --shadow-md:     0 14px 36px rgba(0, 0, 0, 0.52);
  --shadow-lg:     0 24px 56px rgba(0, 0, 0, 0.64);
}

html[data-theme="dark"] body {
  background-color: var(--bg);
  color: var(--ink-900);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .wx-box-val,
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .policy-table th {
  color: #F2F7FD;
}

html[data-theme="dark"] a {
  color: var(--blue-400);
}

html[data-theme="dark"] a:hover {
  color: #7CCBFF;
}

/* Preserve crisp white contrast on solid & glass button links in Dark Mode */
html[data-theme="dark"] a.btn-primary,
html[data-theme="dark"] a.btn-primary:hover,
html[data-theme="dark"] a.btn-navy,
html[data-theme="dark"] a.btn-navy:hover,
html[data-theme="dark"] a.btn-ghost-light,
html[data-theme="dark"] a.btn-ghost-light:hover,
html[data-theme="dark"] .brief-links a,
html[data-theme="dark"] .brief-links a:hover,
html[data-theme="dark"] a.tab-btn.active {
  color: #fff;
}

html[data-theme="dark"] .footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .footer-links a:hover {
  color: var(--blue-400);
}

html[data-theme="dark"] .legend-dot span {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .site-header {
  background: rgba(7, 19, 36, 0.92);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .brand-link .logo-light {
  display: none;
}

html[data-theme="dark"] .brand-link .logo-dark {
  display: block;
}

html[data-theme="dark"] .nav-links a {
  color: var(--ink-700);
}

html[data-theme="dark"] .nav-links a:hover {
  color: #fff;
  background: rgba(58, 180, 255, 0.14);
}

html[data-theme="dark"] .nav-links a.active,
html[data-theme="dark"] .nav-links a[aria-current="page"] {
  color: #7CCBFF;
  background: rgba(0, 152, 248, 0.22);
}

html[data-theme="dark"] .nav-cta {
  background: var(--blue-500) !important;
  color: #fff !important;
}

html[data-theme="dark"] .nav-cta:hover {
  background: var(--blue-600) !important;
}

html[data-theme="dark"] .nav-toggle {
  background: var(--surface);
  color: #F0F6FC;
  border-color: var(--border);
}

html[data-theme="dark"] .theme-switcher {
  background: #0B1B32;
  border-color: var(--border-strong);
}

html[data-theme="dark"] .theme-btn {
  color: var(--ink-500);
}

html[data-theme="dark"] .theme-btn:hover {
  color: #fff;
}

html[data-theme="dark"] .theme-btn.active {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 152, 248, 0.35);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .machine-card,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .airfield-card,
html[data-theme="dark"] .era-card,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .wx-panel,
html[data-theme="dark"] .windy-card,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .map-legend,
html[data-theme="dark"] .policy-table-wrap,
html[data-theme="dark"] .tab-btn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink-900);
}

html[data-theme="dark"] .era-card.era-modern {
  background: linear-gradient(to bottom right, #0D203B, #112A4D);
  border-color: var(--blue-500);
}

html[data-theme="dark"] .era-card::before {
  border-color: var(--bg);
}

html[data-theme="dark"] .era-figure {
  background: var(--surface-2);
}

html[data-theme="dark"] .wx-box,
html[data-theme="dark"] .event-date-pill,
html[data-theme="dark"] .metar-list a,
html[data-theme="dark"] .policy-table th {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--ink-900);
}

html[data-theme="dark"] .event-date-day {
  color: #fff;
}

html[data-theme="dark"] .event-date-mon {
  color: var(--blue-400);
}

html[data-theme="dark"] .metar-list a:hover {
  background: rgba(0, 152, 248, 0.16);
  border-color: var(--blue-400);
  color: #fff;
}

html[data-theme="dark"] .notice-bar {
  background: rgba(0, 152, 248, 0.12);
  border-color: rgba(58, 180, 255, 0.34);
  color: var(--ink-900);
}

html[data-theme="dark"] .notice-bar.notice-amber {
  background: rgba(229, 142, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #FDE68A;
}

html[data-theme="dark"] .btn-outline {
  color: var(--ink-900);
  border-color: var(--border-strong);
}

html[data-theme="dark"] .btn-outline:hover {
  color: #fff;
  background: rgba(0, 152, 248, 0.16);
  border-color: var(--blue-400);
}

html[data-theme="dark"] .btn-navy,
html[data-theme="dark"] .tab-btn.active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

html[data-theme="dark"] .btn-navy:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
}

html[data-theme="dark"] .badge-sky,
html[data-theme="dark"] .dist-chip {
  background: rgba(0, 152, 248, 0.22);
  color: #7CCBFF;
}

html[data-theme="dark"] .badge-amber,
html[data-theme="dark"] .meta-pill.ppr {
  background: rgba(229, 142, 11, 0.24);
  color: #FCD34D;
}

html[data-theme="dark"] .meta-pill.club {
  background: rgba(13, 148, 136, 0.28);
  color: #5EEAD4;
}

html[data-theme="dark"] .airfield-club-sub {
  color: var(--blue-400);
}

html[data-theme="dark"] .badge-navy,
html[data-theme="dark"] .icao-tag {
  background: var(--blue-600);
  color: #fff;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .tool-link-text {
  color: var(--blue-400);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .filter-input,
html[data-theme="dark"] .filter-select {
  background: #081529;
  color: #F0F6FC;
  border-color: var(--border-strong);
}

html[data-theme="dark"] .form-control:focus {
  background: #0A1B33;
  border-color: var(--blue-400);
}

/* Keep the yellow Max Mara-style cookie strip crisp yellow + dark navy in Dark Mode too */
html[data-theme="dark"] .cookie-banner {
  background: var(--amber-100);
  color: var(--navy-950);
  border-top-color: var(--amber-500);
}

html[data-theme="dark"] .cookie-banner-title,
html[data-theme="dark"] .cookie-banner-copy p,
html[data-theme="dark"] .cookie-banner-copy a,
html[data-theme="dark"] .cookie-dismiss-link {
  color: var(--navy-950);
}

html[data-theme="dark"] .cookie-banner-copy a:hover,
html[data-theme="dark"] .cookie-dismiss-link:hover {
  color: var(--blue-600);
}


