/* NCOH GMRS Database */

:root {
  --ncoh-navy: #14304f;
  --ncoh-navy-dark: #0e2338;
  --ncoh-accent: #d97706;
}

html, body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f7fa;
}

/* --- Navbar ------------------------------------------------------------ */

.ncoh-navbar {
  background-color: var(--ncoh-navy);
  --bs-navbar-color: rgba(255, 255, 255, 0.75);
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.25);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.ncoh-navbar .nav-link.active {
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--ncoh-accent);
}

/* --- Login ------------------------------------------------------------- */

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  padding: 3rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 26rem;
}

.login-badge {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ncoh-navy);
  color: #fff;
  font-size: 1.5rem;
}

/* --- Stat cards -------------------------------------------------------- */

.stat-card {
  border-left: 4px solid var(--ncoh-navy);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.stat-card.accent {
  border-left-color: var(--ncoh-accent);
}

/* --- Tables ------------------------------------------------------------ */

.table-callsign {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.table thead th {
  white-space: nowrap;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6675;
}

.table-hover tbody tr {
  cursor: default;
}

.row-link {
  text-decoration: none;
}

.freq-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- Misc -------------------------------------------------------------- */

.sk-marker {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6c757d;
  border: 1px solid currentColor;
  border-radius: 0.2rem;
  padding: 0 0.25rem;
  vertical-align: middle;
}

footer {
  background-color: #fff;
}

/* Sortable column headers on the public roster. A button rather than a bare
   th so the control is reachable by keyboard and announced as clickable; the
   CSP rules out the inline onclick the old repeater page used. */
.ncoh-sort {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ncoh-sort:hover,
.ncoh-sort:focus-visible {
  text-decoration: underline;
}

.ncoh-sort-arrow::before {
  content: "\2195";        /* up-down arrow: sortable, not currently sorted */
  opacity: 0.35;
  font-size: 0.85em;
}

[aria-sort="ascending"] .ncoh-sort-arrow::before {
  content: "\2191";
  opacity: 1;
}

[aria-sort="descending"] .ncoh-sort-arrow::before {
  content: "\2193";
  opacity: 1;
}

@media print {
  .ncoh-navbar, footer, .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
