/* Split landing page styles */
.landing-split {
  flex: 1 0 50vh;
  /* Do not shrink below 50vh */
  transition: flex 0.3s ease;
  background-size: cover;
  background-position: center;
  min-height: 50vh;
  width: 100%;
  /* Default to full width for stacking */
}

@media (min-width: 768px) {
  .landing-split {
    flex: 1;
    /* Evenly split on desktop */
    min-height: 80vh;
    width: 50%;
  }
}

.landing-split:hover {
  /* Removed flex-grow to prevent middle boundary flickering */
  z-index: 2;
}

/* Ensure no conflict with bootstrap col widths in flex container */
@media (min-width: 768px) {
  .landing-split {
    width: auto !important;
  }
}

.meshcore-split {
  background-color: #0d6efd;
}

.meshtastic-split {
  background-color: #198754;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.landing-split:hover .overlay {
  background: rgba(0, 0, 0, 0.5);
}

.logo-placeholder svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.content {
  padding: 2rem;
  width: 100%;
}

.content-container {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: 2rem;
  background: rgba(8, 11, 20, 0.5);
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.content-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 11, 20, 0.18), rgba(8, 20, 44, 0.14));
  pointer-events: none;
}

.content-container>.row,
.content-container article {
  position: relative;
  z-index: 1;
}

.main-bg {
  position: relative;
  background-color: #050713;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 100vh;
  overflow: hidden;
}

.main-bg>* {
  position: relative;
  z-index: 1;
}

/* Section Specific Overrides for Perfect Unification */
.section-meshcore .main-bg,
.section-meshtastic .main-bg {
  background-image: none !important;
}

.section-meshcore .main-bg::before,
.section-meshtastic .main-bg::before {
  display: none !important;
}

.section-meshcore .content-container,
.section-meshtastic .content-container {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding-top: 2rem !important;
}

.section-meshcore .content-container::before,
.section-meshtastic .content-container::before {
  display: none !important;
}

.section-meshcore .main-bg {
  background-color: #080b14 !important;
  background: #080b14 !important;
}

.section-meshtastic .main-bg {
  background-color: #05160c !important;
  background: #05160c !important;
}

/* Global Dark Theme */
/* Standard layout for all pages */
body {
  background-color: #212529;
  color: #f8f9fa;
  width: 90%;
  margin: 0 auto !important;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Home page is edge-to-edge */
.home-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  .home-layout {
    height: 100vh;
    overflow: hidden;
  }

  .home-main {
    height: 80vh;
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .home-main {
    min-height: 80vh;
  }
}





a {
  color: #6ea8fe;
}

a:hover {
  color: #8bb9fe;
}

/* Hairline Tables */
table {
  width: 100%;
  margin-bottom: 1rem;
  color: #fff;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #444;
  /* Hairline */
}

thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #444;
}

tbody+tbody {
  border-top: 2px solid #444;
}

/* UI Depth Shadows */
.navbar {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

footer {
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Nav Colors - High specificity to override Bootstrap */
.navbar.bg-meshcore,
.bg-meshcore {
  background-color: #0d6efd !important;
}

/* Mobile Table Responsiveness */
@media (max-width: 767px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

.navbar.bg-meshtastic,
.bg-meshtastic {
  background-color: #198754 !important;
}