:root {
  --bg0: #070a12;
  --bg1: #0b1020;
  --bg2: rgba(15, 20, 40, 0.6);
  --panel: rgba(10, 12, 20, 0.62);
  --panel2: rgba(14, 16, 28, 0.72);
  --stroke: rgba(170, 205, 255, 0.14);
  --stroke2: rgba(170, 205, 255, 0.22);

  --text: rgba(245, 248, 255, 0.92);
  --muted: rgba(220, 230, 255, 0.72);
  --faint: rgba(220, 230, 255, 0.55);

  --purple: #8b5cf6;
  --blue: #38bdf8;
  --pink: #ec4899;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radiusSm: 14px;

  --container: 1120px;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background-color: #070a12;
  background-image: 
    radial-gradient(900px 600px at 22% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(800px 520px at 88% 6%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(900px 680px at 55% 105%, rgba(236, 72, 153, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 50%, #070a12);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Main content area grows to push footer down */
main,
.page {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 650;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 12, 20, 0.95);
  border: 1px solid var(--stroke2);
  color: var(--text);
  z-index: 9999;
}
.skipLink:focus {
  left: 16px;
  top: 16px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(7, 10, 18, 0.84),
    rgba(7, 10, 18, 0.52)
  );
  border-bottom: 1px solid rgba(170, 205, 255, 0.10);
}

.navInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brandLogo {
  width: auto;
  height: 32px;
  max-width: 220px;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  filter:
    drop-shadow(0 4px 20px rgba(56, 189, 248, 0.25))
    drop-shadow(0 4px 20px rgba(139, 92, 246, 0.25));
}

.brandMark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(56, 189, 248, 0.9));
  box-shadow:
    0 0 0 1px rgba(170, 205, 255, 0.20),
    0 10px 30px rgba(139, 92, 246, 0.22),
    0 10px 30px rgba(56, 189, 248, 0.18);
}

.brandText {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
}
.brandName {
  font-weight: 750;
  letter-spacing: 0.3px;
}
.brandTag {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.4px;
}

.navLinks {
  display: flex;
  gap: 12px;
  align-items: center;
}
.navLink {
  padding: 9px 14px;
  border-radius: 12px;
  color: rgba(230, 238, 255, 0.85);
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.navLink:hover {
  background: rgba(170, 205, 255, 0.06);
  border-color: rgba(170, 205, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}
.navLinkActive {
  background: rgba(139, 92, 246, 0.13);
  border-color: rgba(139, 92, 246, 0.25);
  color: rgba(255, 255, 255, 0.96);
}

/* Hamburger Menu */
.navToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(170, 205, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.navToggle:hover {
  background: rgba(170, 205, 255, 0.06);
  border-color: rgba(170, 205, 255, 0.22);
}
.navToggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(230, 238, 255, 0.85);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.navToggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navToggle.active span:nth-child(2) {
  opacity: 0;
}
.navToggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.navMobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  background: rgba(7, 10, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.navMobile.open {
  opacity: 1;
  visibility: visible;
}
.navMobile .navLink {
  font-size: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(170, 205, 255, 0.10);
  background: rgba(15, 18, 30, 0.5);
}
.navMobile .navLinkActive {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.30);
}

.navActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(170, 205, 255, 0.16);
  background: rgba(10, 12, 20, 0.62);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(170, 205, 255, 0.26);
  background: rgba(12, 15, 26, 0.70);
}
.btn:active {
  transform: translateY(0);
}

.btnPrimary {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.86), rgba(56, 189, 248, 0.86));
  box-shadow:
    0 18px 60px rgba(56, 189, 248, 0.20),
    0 18px 60px rgba(139, 92, 246, 0.18);
}
.btnPrimary:hover {
  border-color: rgba(139, 92, 246, 0.55);
}

.btnGhost {
  background: rgba(10, 12, 20, 0.44);
}

.btnSmall {
  padding: 9px 11px;
  border-radius: 13px;
  font-size: 13px;
}

.btnIcon {
  opacity: 0.9;
}

/* Hero */
.hero {
  position: relative;
  padding: 70px 0 36px;
  overflow: hidden;
}

.heroBg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 48% 22%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(600px 460px at 55% 50%, rgba(139, 92, 246, 0.12), transparent 65%),
    radial-gradient(1000px 680px at 50% 110%, rgba(236, 72, 153, 0.08), transparent 65%);
}

.heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

/* Home page hero section */
.heroSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 40px;
}
.heroLogo {
  width: auto;
  height: 180px;
  max-width: 90%;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 30px rgba(56, 189, 248, 0.3))
          drop-shadow(0 4px 30px rgba(139, 92, 246, 0.3));
}
.heroTitle {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #e0e7ff 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.heroSubtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--muted);
  margin: 0;
}

/* Global particle background for all pages */
.globalParticleBg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  isolation: isolate;
}
.globalParticlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* Subtle overlay for particles - using opacity instead of backdrop-filter to avoid conflicts */
.particleBlur {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 32, 0.15);
  pointer-events: none;
}

.heroContent {
  position: relative;
}

.heroKicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.kickerPill {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(170, 205, 255, 0.16);
  background: rgba(10, 12, 20, 0.58);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 18px 60px rgba(0, 0, 0, 0.25);
}
.kickerDot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.55);
}
.kickerText {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.45px;
}

.heroTitle {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 18px 60px rgba(0, 0, 0, 0.30);
}

.textGradient {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.98), rgba(56, 189, 248, 0.98), rgba(236, 72, 153, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroSub {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.heroCtas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.heroBadges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.badge {
  border-radius: var(--radiusSm);
  border: 1px solid rgba(170, 205, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.62), rgba(10, 12, 20, 0.44));
  box-shadow: var(--shadow);
  padding: 12px 12px;
}
.badgeLabel {
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--faint);
}
.badgeValue {
  margin-top: 6px;
  font-weight: 650;
}

/* Sections / panes */
.section {
  padding: 38px 0;
}
.sectionTight {
  padding: 24px 0 44px;
}
.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.sectionTitle {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.2px;
}
.sectionSub {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

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

.pane {
  border-radius: var(--radius);
  border: 1px solid rgba(170, 205, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.62), rgba(10, 12, 20, 0.42));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
  overflow: hidden;
}


.paneTitle {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.2px;
}
.paneHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}
.bullets li {
  margin: 6px 0;
}

.callout {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 14px;
  border: 1px solid rgba(170, 205, 255, 0.12);
  background: rgba(10, 12, 20, 0.46);
  padding: 12px 12px;
}
.calloutIcon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(170, 205, 255, 0.18);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.20), rgba(56, 189, 248, 0.16));
}
.calloutText {
  color: var(--muted);
  line-height: 1.45;
}

/* Map */
.mapShell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(170, 205, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow);
  min-height: 460px;
}
.mapShellTight {
  min-height: 360px;
}
.mapShellMedium {
  min-height: 320px;
}
.repeaterMapSection {
  margin-bottom: 24px;
}
.map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #1a1a2e;
}

/* Leaflet customizations */
.leaflet-container {
  background: #1a1a2e;
  font-family: var(--font);
}
.leaflet-control-zoom {
  border: none !important;
}
.leaflet-control-zoom a {
  background: rgba(30, 30, 50, 0.9) !important;
  color: var(--fg) !important;
  border: 1px solid rgba(170, 205, 255, 0.18) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(50, 50, 80, 0.95) !important;
}
.leaflet-control-attribution {
  background: rgba(30, 30, 50, 0.8) !important;
  color: var(--muted) !important;
  font-size: 10px;
}
.leaflet-control-attribution a {
  color: var(--muted) !important;
}
.leaflet-popup-content-wrapper {
  background: rgba(20, 24, 40, 0.95) !important;
  color: var(--fg) !important;
  border-radius: var(--radius) !important;
  border: 1px solid rgba(170, 205, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.leaflet-popup-tip {
  background: rgba(20, 24, 40, 0.95) !important;
}
.leaflet-popup-content {
  margin: 14px 16px;
  color: var(--fg);
}
.leaflet-popup-close-button {
  color: var(--muted) !important;
}
.leaflet-popup-close-button:hover {
  color: var(--fg) !important;
}

/* Map popup content */
.mapPopup {
  min-width: 180px;
}
.mapPopupTitle {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: #e0e7ff;
}
.mapPopupMeta {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(230, 238, 255, 0.7);
}
.mapPopupRole {
  opacity: 0.8;
}
.mapPopupAction {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(170, 205, 255, 0.12);
}
.mapPopupAction a {
  color: #a78bfa;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.mapPopupAction a:hover {
  text-decoration: underline;
}
.leaflet-marker-custom {
  background: transparent !important;
  border: none !important;
}
.mapMessage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  max-width: min(520px, calc(100% - 28px));
  text-align: center;
}
.mapMessageTitle {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.2px;
}
.mapMessageBody {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.mapGridOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(170, 205, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 205, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.15;
  mix-blend-mode: screen;
  z-index: 2;
}
.mapLegend {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 220px;
}
.legendRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
}
.legendDot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
}
.legendOnline {
  background: var(--green);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
}
.legendIntermittent {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}
.legendPlanned {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}
.legendOffline {
  background: var(--red);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
}
.legendActions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Pages */
.page {
  padding: 30px 0 52px;
}
.pageHead {
  padding-top: 8px;
  padding-bottom: 18px;
}
.pageTitle {
  margin: 10px 0 8px;
  font-size: 42px;
  letter-spacing: -0.4px;
}
.pageSub {
  margin: 0;
  line-height: 1.6;
  max-width: 820px;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--faint);
}
.breadcrumbs a {
  color: rgba(230, 238, 255, 0.86);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Repeaters list */
.repeaterLayout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.filters .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.fieldLabel {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--faint);
}
.input,
.select {
  border-radius: 14px;
  border: 1px solid rgba(170, 205, 255, 0.16);
  background: rgba(10, 12, 20, 0.56);
  color: rgba(255, 255, 255, 0.90);
  padding: 10px 12px;
  outline: none;
}
.input:focus,
.select:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.stack {
  display: grid;
  gap: 12px;
}

.paneDetails {
  border-radius: var(--radius);
  border: 1px solid rgba(170, 205, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.60), rgba(10, 12, 20, 0.44));
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Repeater card (non-expandable) */
.repeaterCard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.repeaterCard:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(180deg, rgba(20, 24, 40, 0.70), rgba(10, 12, 20, 0.50));
}
.repeaterCard:hover .repeaterName {
  color: #a78bfa;
}
.repeaterCardSelected {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(180deg, rgba(30, 28, 50, 0.75), rgba(15, 14, 30, 0.55));
}
.repeaterCardSelected .repeaterName {
  color: #a78bfa;
}
.paneSummary {
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.paneSummary::-webkit-details-marker {
  display: none;
}
.paneSummary:hover {
  background: rgba(170, 205, 255, 0.04);
}

.repeaterTitleRow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.repeaterName {
  font-weight: 750;
  letter-spacing: 0.2px;
}
.repeaterMeta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(170, 205, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 12, 20, 0.50);
}
.statusBadge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
}
.statusOnline::before {
  background: var(--green);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
}
.statusIntermittent::before {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}
.statusPlanned::before {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}
.statusOffline::before {
  background: var(--red);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
}

.paneBody {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(170, 205, 255, 0.10);
}
.paneBodyGrid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  padding-top: 14px;
}
.paneBody p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.paneButtons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Profile */
.profileLayout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profileTopRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.profileMapPane,
.profileDetailsPane {
  display: flex;
  flex-direction: column;
}
.profileMapPane .mapShell {
  flex: 1;
}
.profileDetailsPane .specs {
  flex: 1;
}
.mapShellProfile {
  min-height: 300px;
}
.profileIdentityPane {
  width: 100%;
}
.profileGalleryPane {
  width: 100%;
}
.profileGalleryPane:empty,
.profileGalleryPane .gallery:empty {
  display: none;
}

/* Horizontal specs for identity section */
.specsHorizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.specsHorizontal .specsRow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.specsHorizontal dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.specsHorizontal dd {
  font-size: 14px;
  word-break: break-all;
}

.specs {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.specsRow {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.specs dt {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}
.specs dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.galleryItem {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(170, 205, 255, 0.14);
  background: rgba(10, 12, 20, 0.55);
  box-shadow: var(--shadow);
  min-height: 180px;
  display: grid;
  place-items: center;
}
.galleryItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.galleryItemPlaceholder {
  padding: 18px;
}
.galleryItemPlaceholder img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 18px 60px rgba(139, 92, 246, 0.18));
}

/* Contact cards */
.contactGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.contactCard {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(170, 205, 255, 0.14);
  background: rgba(10, 12, 20, 0.46);
  padding: 12px 12px;
}
.contactLabel {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.55px;
  text-transform: uppercase;
}
.contactValue {
  margin-top: 6px;
  font-weight: 650;
}

/* About page profile */
.profileCard {
  padding: 32px;
  margin-bottom: 24px;
}
.profileHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.profilePicture {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(170, 205, 255, 0.2);
  box-shadow: 
    0 0 30px rgba(56, 189, 248, 0.2),
    0 0 30px rgba(139, 92, 246, 0.2);
}
.profilePicture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profileInfo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profileName {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #e0e7ff 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.profileTagline {
  font-size: 15px;
  margin: 0;
}
.profileBio {
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.7;
}
.profileBio p {
  margin: 0 0 14px;
}
.profileBio p:last-child {
  margin-bottom: 0;
}

.aboutSections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.aboutSections .pane {
  padding: 28px;
}
.aboutSections .pane p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.aboutSections .pane p:last-child {
  margin-bottom: 0;
}
.aboutSections .paneTitle {
  margin-bottom: 16px;
}
.aboutLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(170, 205, 255, 0.1);
}

/* Footer */
.footer {
  flex-shrink: 0;
  padding: 26px 0 40px;
  border-top: 1px solid rgba(170, 205, 255, 0.10);
  background: linear-gradient(180deg, rgba(7, 10, 18, 0), rgba(7, 10, 18, 0.65));
}
.footerInner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.footerLinks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footerLinks a {
  color: rgba(230, 238, 255, 0.78);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.footerLinks a:hover {
  border-color: rgba(170, 205, 255, 0.12);
  background: rgba(170, 205, 255, 0.06);
}

/* Responsive */
@media (max-width: 980px) {
  .heroBadges {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .repeaterLayout {
    grid-template-columns: 1fr;
  }
  .profileTopRow {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .mapLegend {
    position: static;
    width: auto;
    margin-top: 12px;
  }
  .mapShell {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .navToggle {
    display: flex;
  }
  .navLinks {
    display: none;
  }
  .navMobile {
    display: flex;
  }
  
  /* Header adjustments */
  .nav {
    padding: 6px 0;
  }
  .navInner {
    padding: 8px 0;
  }
  .brandLogo {
    height: 24px;
    max-width: 150px;
  }
  .navToggle {
    width: 44px;
    height: 44px;
  }
  
  /* Hero adjustments */
  .heroSection {
    padding: 40px 16px 32px;
  }
  .heroLogo {
    height: 120px;
    margin-bottom: 20px;
  }
  
  /* Map adjustments */
  .mapShell {
    min-height: 300px;
  }
  .mapShellMedium {
    min-height: 260px;
  }
  
  /* Page adjustments */
  .page {
    padding: 20px 0 40px;
  }
  .pageHead {
    padding-top: 4px;
    padding-bottom: 14px;
  }
  .pageTitle {
    font-size: 28px;
    margin: 6px 0;
  }
  
  /* About page profile */
  .profileCard {
    padding: 24px 20px;
  }
  .profilePicture {
    width: 120px;
    height: 120px;
  }
  .profileName {
    font-size: 26px;
  }
  .profileTagline {
    font-size: 14px;
  }
  .aboutSections .pane {
    padding: 20px;
  }
  .aboutLinks {
    flex-direction: column;
  }
  .aboutLinks .btn {
    text-align: center;
    justify-content: center;
  }
  
  /* Filters pane */
  .filters {
    padding: 14px;
  }
  
  /* Repeater cards */
  .repeaterCard {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  /* Specs on profile page */
  .specsRow {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .specsHorizontal {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footerInner {
    flex-direction: column;
    text-align: center;
  }
  .footerLinks {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .brandLogo {
    height: 22px;
    max-width: 140px;
  }
  .pageTitle {
    font-size: 24px;
  }
  .paneBodyGrid {
    grid-template-columns: 1fr;
  }
  .heroLogo {
    height: 100px;
  }
  .navToggle {
    width: 42px;
    height: 42px;
    padding: 10px;
  }
}

/* MapLibre tweaks */
.maplibregl-control-container .maplibregl-ctrl {
  box-shadow: none;
}
.maplibregl-ctrl-group {
  background: rgba(10, 12, 20, 0.65) !important;
  border: 1px solid rgba(170, 205, 255, 0.14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.maplibregl-ctrl-group button {
  filter: saturate(1.1);
}
.maplibregl-popup-content {
  background: rgba(10, 12, 20, 0.86) !important;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 14px !important;
  border: 1px solid rgba(170, 205, 255, 0.18);
  box-shadow: var(--shadow);
}
.maplibregl-popup-tip {
  border-top-color: rgba(10, 12, 20, 0.86) !important;
}

/* Marker */
.marker {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 6px rgba(56, 189, 248, 0.12),
    0 0 22px rgba(56, 189, 248, 0.55);
  background: var(--blue);
}
.markerOnline {
  background: var(--green);
  box-shadow:
    0 0 0 6px rgba(34, 197, 94, 0.12),
    0 0 22px rgba(34, 197, 94, 0.55);
}
.markerIntermittent {
  background: var(--amber);
  box-shadow:
    0 0 0 6px rgba(245, 158, 11, 0.12),
    0 0 22px rgba(245, 158, 11, 0.55);
}
.markerPlanned {
  background: var(--amber);
  box-shadow:
    0 0 0 6px rgba(245, 158, 11, 0.12),
    0 0 22px rgba(245, 158, 11, 0.55);
}
.markerOffline {
  background: var(--red);
  box-shadow:
    0 0 0 6px rgba(239, 68, 68, 0.12),
    0 0 22px rgba(239, 68, 68, 0.55);
}

