/**
 * Site-wide shared styles (static HTML + built Tailwind in assets/css/tailwind-built.css).
 * Brand tokens align with tailwind.config lb-* colors on each page.
 */
:root {
  --lb-dark: #003366;
  --lb-light: #6699cc;
  --lb-accent: #ffd700;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body #app > header:first-of-type,
body > header:first-of-type {
  padding-top: env(safe-area-inset-top, 0px);
}

footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

header nav {
  -webkit-user-select: none;
  user-select: none;
}

/* Portal tab bars: always dock to bottom (all screen sizes) */
body #app > header:first-of-type nav.lb-portal-nav,
body > header:first-of-type nav.lb-portal-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Safe-area bottom padding for navs not inside a header (e.g. index.html) */
nav.lb-portal-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Touch-friendly horizontal scroll for nav + wide tables */
.custom-scroll {
  -webkit-overflow-scrolling: touch;
}
.custom-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Optional: section labels (match index / stats / club-milestones) */
.lb-section-title {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Primary content cards */
.lb-card {
  background-color: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Scrollable table region (use with <table class="w-full ..."> inside) */
.lb-table-shell {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

/* Primary / secondary / danger buttons (use with Tailwind for fine-tuning) */
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  font-weight: 900;
  font-size: 0.625rem;
  line-height: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.lb-btn-primary {
  background-color: #2563eb;
  color: #fff;
}
.lb-btn-primary:hover {
  background-color: #1d4ed8;
}
.lb-btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.lb-btn-secondary:hover {
  background-color: #e5e7eb;
}
.lb-btn-danger {
  background-color: #dc2626;
  color: #fff;
}
.lb-btn-danger:hover {
  background-color: #b91c1c;
}
