/* ==========================================================================
   PCARC (W5CUQ) — Pittsburg County Amateur Radio Club
   Clean Civic / EMCOM Design System
   ========================================================================== */

:root {
  /* Core Palette */
  --navy-950: #071426;
  --navy-900: #0b1f3a;
  --navy-800: #132d52;
  --navy-700: #1e4273;
  --navy-100: #e6eef8;
  --navy-50: #f2f6fc;

  /* Neutrals */
  --bg-page: #f5f7fa;
  --bg-surface: #ffffff;
  --bg-subtle: #eef2f6;
  --border-light: #dce3ec;
  --border-strong: #c2cedd;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  --text-inverse-muted: #cbd5e1;

  /* Accents */
  --amber-600: #b45309;
  --amber-500: #d97706;
  --amber-400: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  /* Status */
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;

  --red-700: #991b1b;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --red-50: #fef2f2;

  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout & Radius */
  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 6px 20px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 18px 40px rgba(7, 20, 38, 0.16);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-med: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--amber-600);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.65rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

p {
  margin: 0 0 1rem;
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--amber-400);
  color: var(--navy-950);
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.75rem;
}

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

/* ==========================================================================
   Utility Status Strip (Top Bar)
   ========================================================================== */

.utility-bar {
  background-color: var(--navy-950);
  color: var(--text-inverse-muted);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.45rem 0;
}

.utility-bar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-inverse-muted);
}

.utility-pill strong {
  color: var(--text-inverse);
  font-weight: 600;
}

.utility-divider {
  color: rgba(255, 255, 255, 0.25);
}

.utility-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fde68a;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.utility-live-link:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #ffffff;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--green-500);
  opacity: 0.65;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ==========================================================================
   Main Navigation Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.5rem 0;
}

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

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

.brand__logo-wrap {
  width: 54px;
  height: 54px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(7, 20, 38, 0.16));
  transition: transform var(--transition-fast);
}

.brand:hover .brand__logo {
  transform: scale(1.04);
}

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

.brand__callsign {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.callsign-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--navy-900);
  color: var(--amber-400);
  padding: 0.16rem 0.48rem;
  border-radius: 4px;
}

.brand__sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Desktop Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.5rem 0.68rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover,
.nav-trigger:hover,
.nav-item.is-open > .nav-trigger {
  background: var(--navy-50);
  color: var(--navy-700);
}

.nav-link.is-active {
  color: var(--navy-900);
  background: var(--navy-100);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-item.is-open > .nav-trigger .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 255px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 300;
}

.nav-item.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  transition: background var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--navy-50);
  color: var(--navy-900);
}

.dropdown-link__title {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dropdown-link__desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-cta {
  margin-left: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.54rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-950);
  background: var(--amber-400);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: var(--amber-500);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--navy-900);
  cursor: pointer;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-group {
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0;
}

.mobile-nav-group:last-of-type {
  border-bottom: 0;
}

.mobile-nav-heading {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0.35rem 0 0.25rem;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background: var(--amber-400);
  color: var(--navy-950);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn--primary:hover {
  background: var(--amber-500);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.btn--navy {
  background: var(--navy-900);
  color: #ffffff;
}

.btn--navy:hover {
  background: var(--navy-800);
  color: #ffffff;
  transform: translateY(-1px);
}

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

.btn--outline:hover {
  background: var(--navy-50);
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.btn--sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 52%, var(--navy-800) 100%);
  color: var(--text-inverse);
  padding: 3.75rem 0 4.25rem;
  overflow: hidden;
}

/* Subtle radio wave geometric pattern */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 24%, rgba(245, 158, 11, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(56, 189, 248, 0.12) 0%, transparent 42%),
    repeating-radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 38px
    );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.15rem;
}

.hero__title {
  color: #ffffff;
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.hero__lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-inverse-muted);
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat__value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.hero-stat__label {
  font-size: 0.8rem;
  color: var(--text-inverse-muted);
  margin-top: 0.2rem;
}

/* Countdown Card inside Hero */
.countdown-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-lg);
}

.countdown-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.countdown-card__kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-400);
}

.countdown-card__pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.32);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.countdown-card__title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.countdown-card__date {
  color: var(--text-inverse-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.countdown-unit {
  background: rgba(7, 20, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.4rem;
  text-align: center;
}

.countdown-unit__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.countdown-unit__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-inverse-muted);
  margin-top: 0.28rem;
}

.countdown-card__meta {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: var(--text-inverse-muted);
}

.countdown-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.countdown-meta-row svg {
  width: 17px;
  height: 17px;
  color: var(--amber-400);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Section Scaffolding
   ========================================================================== */

.section {
  padding: 3.5rem 0;
}

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

.section--compact {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-600);
  margin-bottom: 0.35rem;
  display: block;
}

.section-title {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Live NWS Alerts Widget
   ========================================================================== */

.alerts-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--green-600);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  margin-top: -1.75rem;
  position: relative;
  z-index: 10;
}

.alerts-panel.is-loading {
  border-left-color: var(--navy-700);
}

.alerts-panel.has-alerts {
  border-left-color: var(--red-600);
  background: #fffafa;
}

.alerts-panel.has-advisory {
  border-left-color: var(--amber-500);
  background: #fffdf7;
}

.alerts-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.alerts-panel__title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alerts-status-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  color: var(--green-700);
  flex-shrink: 0;
}

.alerts-panel.has-alerts .alerts-status-icon {
  background: var(--red-100);
  color: var(--red-700);
}

.alerts-panel.has-advisory .alerts-status-icon {
  background: var(--amber-100);
  color: var(--amber-600);
}

.alerts-panel__heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.alerts-panel__sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0.15rem 0 0;
}

.alerts-panel__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.zone-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--navy-800);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.alerts-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.alert-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 1rem 1.15rem;
}

.alert-item--severe {
  border-color: #fecaca;
  background: var(--red-50);
}

.alert-item--moderate {
  border-color: #fde68a;
  background: var(--amber-50);
}

.alert-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.alert-item__event {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-900);
}

.alert-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
}

.alert-badge--severe {
  background: var(--red-600);
  color: #ffffff;
}

.alert-badge--moderate {
  background: var(--amber-500);
  color: #ffffff;
}

.alert-badge--minor {
  background: var(--blue-700);
  color: #ffffff;
}

.alert-item__headline {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.alert-item__meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.alert-item details {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.alert-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-700);
}

.alert-item pre {
  white-space: pre-wrap;
  font-family: var(--font-sans);
  line-height: 1.55;
  margin: 0.65rem 0 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Repeater Directory Preview Grid
   ========================================================================== */

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

.repeater-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.repeater-card:hover {
  border-color: var(--navy-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.repeater-card--primary {
  border-top: 3px solid var(--amber-400);
}

.repeater-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.repeater-freq {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
}

.repeater-freq small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.status-pill--up {
  background: var(--green-100);
  color: var(--green-700);
}

.status-pill--up::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}

.repeater-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-subtle);
  color: var(--navy-900);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
}

.repeater-loc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
}

.broadcastify-banner {
  margin-top: 1.35rem;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.broadcastify-banner__info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.broadcastify-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.broadcastify-banner h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.broadcastify-banner p {
  color: var(--text-inverse-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ==========================================================================
   Two-Column Meetings & Schedule
   ========================================================================== */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.info-list {
  list-style: none;
  margin: 1.15rem 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.info-list__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-list strong {
  color: var(--navy-900);
  display: block;
  margin-bottom: 0.1rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

/* Upcoming Events List */
.events-list {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-page);
}

.event-row--next {
  background: var(--amber-50);
  border-color: #fcd34d;
}

.event-date-box {
  width: 56px;
  min-width: 56px;
  text-align: center;
  background: var(--navy-900);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.25rem;
  line-height: 1.1;
}

.event-row--next .event-date-box {
  background: var(--amber-500);
  color: #ffffff;
}

.event-date-box__month {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.event-date-box__day {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 2px;
}

.event-row__body {
  flex: 1;
  min-width: 0;
}

.event-row__title {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.event-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: var(--navy-100);
  color: var(--navy-800);
}

.event-row--next .event-tag {
  background: var(--amber-400);
  color: var(--navy-950);
}

.event-row__meta {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ==========================================================================
   Support & Community Partners
   ========================================================================== */

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
}

.donate-box {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.donate-box h2 {
  color: #ffffff;
  font-size: 1.55rem;
}

.donate-box p {
  color: var(--text-inverse-muted);
}

.donate-dues-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.dues-chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.patch-offer {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0.25rem 0 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.patch-offer__media {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.patch-offer__img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(7, 20, 38, 0.52));
  transition: transform var(--transition-med);
}

.patch-offer:hover .patch-offer__img {
  transform: scale(1.06) rotate(-2deg);
}

.patch-offer__body {
  min-width: 0;
}

.patch-offer__badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--amber-400);
  color: var(--navy-950);
  margin-bottom: 0.45rem;
}

.patch-offer__title {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.donate-box .patch-offer__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-inverse-muted);
}

.donate-box .patch-offer__desc strong {
  color: #ffffff;
}

@media (max-width: 560px) {
  .patch-offer {
    flex-direction: column;
    text-align: center;
    padding: 1.15rem 1rem;
  }

  .patch-offer__media,
  .patch-offer__img {
    width: 108px;
    height: 108px;
  }
}

.donate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.donate-mail {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  color: var(--text-inverse-muted);
}

.partners-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.emcom-feature {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1rem;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.emcom-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.emcom-feature h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.emcom-feature p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0;
}

.partners-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.partners-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.partners-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber-500);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: var(--text-inverse-muted);
  padding: 3.5rem 0 1.75rem;
  border-top: 4px solid var(--amber-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.footer-brand__title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
}

.footer-brand__sub {
  font-size: 0.82rem;
  color: var(--amber-400);
  font-family: var(--font-mono);
}

.footer-about {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 34ch;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-inverse-muted);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* ==========================================================================
   Phase 1 Preview Toast (for Subpage Links Pending Phase 2)
   ========================================================================== */

.preview-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: 390px;
  background: var(--navy-900);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-left: 4px solid var(--amber-400);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.preview-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.preview-toast__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.preview-toast__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fde68a;
}

.preview-toast__close {
  background: transparent;
  border: 0;
  color: var(--text-inverse-muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
}

.preview-toast__body {
  font-size: 0.84rem;
  color: var(--text-inverse-muted);
  margin: 0 0 0.55rem;
}

.preview-toast__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber-400);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .repeater-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .two-col,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .utility-bar__inner {
    justify-content: center;
    text-align: center;
  }

  .utility-bar__left {
    justify-content: center;
    gap: 0.25rem 0.75rem;
  }

  .utility-divider {
    display: none;
  }

  .brand__sub {
    display: none;
  }

  .hero {
    padding: 2.5rem 0 3.25rem;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .hero-stat__value {
    font-size: 1.05rem;
  }

  .hero-stat__label {
    font-size: 0.72rem;
  }

  .countdown-card {
    padding: 1.25rem;
  }

  .countdown-grid {
    gap: 0.4rem;
  }

  .countdown-unit {
    padding: 0.65rem 0.25rem;
  }

  .countdown-unit__num {
    font-size: 1.3rem;
  }

  .alerts-panel {
    padding: 1rem 1.1rem;
  }

  .repeater-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .preview-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}


/* ==========================================================================
   Header Auth Button & Subpage Hero
   ========================================================================== */

.nav-auth-btn {
  margin-left: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.52rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--navy-50);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-auth-btn:hover {
  background: var(--navy-100);
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.nav-auth-btn.is-signed-in {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.nav-auth-btn.is-signed-in:hover {
  background: var(--navy-800);
  color: #ffffff;
}

.nav-auth-call {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber-400);
  font-weight: 700;
}

.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: #ffffff;
  padding: 2.65rem 0 2.75rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 88% 20%, rgba(245, 158, 11, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.page-hero__title {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.page-hero__lead {
  color: var(--text-inverse-muted);
  max-width: 60ch;
  margin: 0;
  font-size: 1rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Mode Banner (Local Preview vs Live Supabase) */
.mode-banner {
  background: var(--blue-50);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--navy-900);
}

.mode-banner strong {
  color: var(--navy-900);
}

/* ==========================================================================
   Swapmeet Toolbar, Grid & Cards
   ========================================================================== */

.swap-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.9fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 66, 115, 0.12);
}

.field-textarea {
  min-height: 110px;
  resize: vertical;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.swap-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

.swap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.swap-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-700);
}

.swap-card.is-sold {
  opacity: 0.78;
}

.swap-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.swap-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swap-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 1rem;
}

.swap-card__placeholder span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.swap-type-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.swap-type-badge--sale {
  background: var(--amber-400);
  color: var(--navy-950);
}

.swap-type-badge--trade {
  background: var(--blue-700);
  color: #ffffff;
}

.swap-type-badge--wanted {
  background: #7c3aed;
  color: #ffffff;
}

.swap-type-badge--free {
  background: var(--green-600);
  color: #ffffff;
}

.swap-sold-overlay {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--red-600);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.24rem 0.62rem;
  border-radius: 4px;
}

.swap-card__body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.swap-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.swap-price {
  font-family: var(--font-mono);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy-900);
}

.swap-price small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.swap-condition {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.16rem 0.52rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--navy-800);
}

.swap-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
  cursor: pointer;
}

.swap-card__title:hover {
  color: var(--amber-600);
}

.swap-card__cat {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.swap-card__desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swap-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.seller-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--navy-900);
}

.seller-call {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--navy-900);
  color: var(--amber-400);
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
}

.swap-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Modals (Swapmeet Detail & Listing Composer)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(7, 20, 38, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 2;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--navy-900);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--navy-100);
}

.modal-body {
  padding: 1.4rem 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  background: var(--bg-page);
}

.detail-photo {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.1rem;
  border: 1px solid var(--border-light);
}

.detail-contact-box {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-top: 1.15rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-900);
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-error {
  background: var(--red-50);
  border: 1px solid #fecaca;
  color: var(--red-700);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-success {
  background: var(--green-50);
  border: 1px solid #a7f3d0;
  color: var(--green-700);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.photo-upload-box {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  background: var(--bg-page);
}

.photo-preview-img {
  max-height: 180px;
  margin: 0.65rem auto 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Account & Member Auth Page
   ========================================================================== */

.auth-shell {
  max-width: 520px;
  margin: 0 auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--bg-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
}

.auth-tab {
  border: 0;
  background: transparent;
  padding: 0.62rem 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab.is-active {
  background: #ffffff;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.demo-callout {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--amber-50);
  border: 1px solid #fcd34d;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: start;
}

.my-listing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-page);
}

.btn--danger-outline {
  background: transparent;
  color: var(--red-700);
  border-color: #fca5a5;
}

.btn--danger-outline:hover {
  background: var(--red-50);
  border-color: var(--red-600);
  color: var(--red-700);
}

@media (max-width: 1024px) {
  .swap-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .swap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .swap-toolbar,
  .swap-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   License Study Guide, Reference Tables & Interactive Quiz
   ========================================================================== */

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

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--amber-400);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.step-card h3 {
  font-size: 1rem;
  margin: 0;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* License Class Selector Tabs */
.class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.class-tab {
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.class-tab:hover {
  border-color: var(--navy-700);
  background: var(--navy-50);
}

.class-tab.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.class-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.metric-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
}

.metric-box__val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
}

.metric-box__lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.topic-pill {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--navy-50);
  color: var(--navy-800);
  border: 1px solid var(--navy-100);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* Interactive Practice Quiz */
.quiz-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-md);
}

.quiz-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.quiz-progress {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--navy-50);
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
}

.quiz-question-text {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

.quiz-options {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.quiz-option {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--navy-700);
  background: var(--navy-50);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option__letter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-option.is-correct {
  background: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-700);
}

.quiz-option.is-correct .quiz-option__letter {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #ffffff;
}

.quiz-option.is-wrong {
  background: var(--red-50);
  border-color: var(--red-600);
  color: var(--red-700);
}

.quiz-option.is-wrong .quiz-option__letter {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #ffffff;
}

.quiz-feedback {
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.quiz-feedback--correct {
  background: var(--green-50);
  border: 1px solid #a7f3d0;
  color: var(--green-700);
}

.quiz-feedback--wrong {
  background: var(--amber-50);
  border: 1px solid #fde68a;
  color: var(--navy-900);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Reference Cheat Sheet & Tables */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ref-table th,
.ref-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
}

.ref-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-page);
}

.phonetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.45rem;
}

.phonetic-cell {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phonetic-cell strong {
  font-family: var(--font-mono);
  color: var(--navy-900);
  width: 18px;
}

/* Frequency <-> Wavelength Helper */
.calc-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.75rem;
}

.calc-result {
  background: var(--navy-900);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  margin-top: 0.85rem;
}

/* Study Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.resource-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.resource-card:hover {
  border-color: var(--navy-700);
  box-shadow: var(--shadow-md);
}

.resource-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  background: var(--green-100);
  color: var(--green-700);
  align-self: flex-start;
}

/* Interactive Exam Checklist */
.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.checklist li label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.checklist li label:hover {
  background: var(--navy-50);
}

.checklist input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--navy-900);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.checklist input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .class-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .steps-grid,
  .ref-grid,
  .resources-grid,
  .calc-row {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Official NCVEC Study Studio (Guided Read-First Mode + Practice Exam Mode)
   ========================================================================== */

.study-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.mode-switch {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  gap: 0.25rem;
}

.mode-switch__btn {
  border: 0;
  background: transparent;
  padding: 0.52rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-switch__btn.is-active {
  background: var(--navy-900);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.study-filter-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.mastery-bar-wrap {
  margin-bottom: 1.25rem;
}

.mastery-bar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.mastery-track {
  width: 100%;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  overflow: hidden;
}

.mastery-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-700), var(--green-500));
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 300ms ease;
}

.question-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.qid-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--navy-900);
  color: var(--amber-400);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.ref-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--navy-800);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.question-figure-box {
  margin: 0.9rem 0 1.1rem;
  padding: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
}

.question-figure-box img {
  max-height: 280px;
  margin: 0 auto;
}

.question-figure-caption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

/* Guided Study Explanation Box (Shown BEFORE Answering) */
.study-explain-box {
  background: linear-gradient(180deg, #f0f6ff 0%, #f8fbff 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.15rem;
}

.study-explain-box__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  margin-bottom: 0.5rem;
}

.study-explain-box__topic {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.study-explain-box__text {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.62;
  margin: 0 0 0.7rem;
}

.study-explain-box__keypoint {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--navy-900);
  line-height: 1.55;
}

.study-reveal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--amber-50);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

@media (max-width: 760px) {
  .study-filter-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Repeaters Directory, CHIRP Downloads & Radio Programming Guide
   ========================================================================== */

.status-pill--down {
  background: var(--red-100);
  color: var(--red-700);
}

.status-pill--down::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-600);
}

.status-pill--simplex {
  background: var(--blue-100);
  color: var(--blue-700);
}

.status-pill--simplex::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-700);
}

.repeater-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  padding: 1rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.repeater-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.filter-chip {
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.42rem 0.82rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--navy-700);
  background: var(--navy-50);
}

.filter-chip.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.repeater-search-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.repeater-search {
  min-width: 220px;
  padding: 0.48rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.repeater-search:focus {
  outline: none;
  border-color: var(--navy-700);
  background: #ffffff;
}

.repeater-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.repeater-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 820px;
}

.repeater-table th,
.repeater-table td {
  padding: 0.82rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.repeater-table thead th {
  background: var(--navy-50);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
  white-space: nowrap;
}

.repeater-table tbody tr {
  transition: background var(--transition-fast);
}

.repeater-table tbody tr:hover {
  background: #f8fbff;
}

.repeater-table tbody tr.is-primary-row {
  background: #fffdf5;
}

.repeater-table tbody tr.is-primary-row:hover {
  background: #fef9e7;
}

.repeater-table tbody tr:last-child td {
  border-bottom: 0;
}

.rep-freq-cell {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-900);
  white-space: nowrap;
}

.rep-input-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.rep-name-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.16rem 0.45rem;
  border-radius: 4px;
}

.rep-check {
  width: 17px;
  height: 17px;
  accent-color: var(--navy-900);
  cursor: pointer;
}

.copy-spec-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.62rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.copy-spec-btn:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.copy-spec-btn.is-copied {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #ffffff;
}

.custom-csv-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.2rem;
  background: var(--navy-900);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.custom-csv-bar__info {
  font-size: 0.88rem;
  color: var(--text-inverse-muted);
}

.custom-csv-bar__info strong {
  color: #ffffff;
}

.custom-csv-bar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.start-ch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-inverse-muted);
}

.start-ch-input {
  width: 68px;
  padding: 0.38rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
}

/* Info / Warning Notice Boxes */
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 1.15rem;
}

.notice-banner--info {
  background: var(--blue-50);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--navy-700);
  color: var(--navy-900);
}

.notice-banner--warn {
  background: var(--amber-50);
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--amber-500);
  color: var(--navy-900);
}

.notice-banner__icon {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.2rem 0.48rem;
  border-radius: 4px;
  background: var(--navy-900);
  color: var(--amber-400);
  flex-shrink: 0;
  margin-top: 2px;
}

/* CHIRP Download Feature Cards */
.chirp-packs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.chirp-pack-card {
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chirp-pack-card--light {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.chirp-pack-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.chirp-pack-card--light h3 {
  color: var(--navy-900);
}

.chirp-pack-card p {
  color: var(--text-inverse-muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.chirp-pack-card--light p {
  color: var(--text-secondary);
}

.chirp-pack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chirp-pack-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

.chirp-pack-card--light .chirp-pack-tag {
  background: var(--navy-50);
  color: var(--navy-800);
  border: 1px solid var(--navy-100);
}

/* Radio Programming Step-by-Step Guide */
.guide-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.guide-models-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.guide-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.guide-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.guide-step__num {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--amber-400);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step__title {
  font-weight: 800;
  color: var(--navy-900);
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.guide-step__body {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.58;
  margin: 0;
}

.kbd-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-900);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.05rem 0.42rem;
  vertical-align: baseline;
}

.worked-example-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  background: var(--navy-900);
  border-radius: var(--radius-md);
  color: #ffffff;
}

.worked-example-item__lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-inverse-muted);
  font-weight: 700;
}

.worked-example-item__val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--amber-400);
  margin-top: 2px;
}

.worked-example-item__note {
  font-size: 0.76rem;
  color: var(--text-inverse-muted);
  margin-top: 2px;
}

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

.trouble-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.trouble-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.trouble-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .chirp-packs-grid,
  .trouble-grid {
    grid-template-columns: 1fr;
  }

  .worked-example-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .worked-example-strip {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

