/* RUNTEC Design System — Clean Slate & Obsidian Navy with Warm Amber Accent */
:root {
  --rt-primary: #0F172A;
  --rt-accent: #D97706;
  --rt-canvas: #F8FAFC;
  --rt-surface: #FFFFFF;
  --rt-border: #E2E8F0;
  --rt-muted: #64748B;
}

body {
  background-color: var(--rt-canvas);
  color: var(--rt-primary);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Clean Top Bar */
.rt-navbar {
  background: var(--rt-surface);
  border-bottom: 1px solid var(--rt-border);
}

.rt-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rt-primary);
  text-decoration: none;
  white-space: nowrap;
}

.rt-nav-link {
  color: #475569;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.4rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.rt-nav-link:hover,
.rt-nav-link.active {
  color: var(--rt-primary);
  border-bottom-color: var(--rt-accent);
}

/* Primary Buttons */
.btn-rt-primary {
  background-color: var(--rt-primary);
  color: #FFFFFF;
  border: 1px solid var(--rt-primary);
  font-weight: 600;
  white-space: nowrap;
}
.btn-rt-primary:hover {
  background-color: #1E293B;
  color: #FFFFFF;
}

.btn-rt-accent {
  background-color: var(--rt-accent);
  color: #FFFFFF;
  border: 1px solid var(--rt-accent);
  font-weight: 600;
  white-space: nowrap;
}
.btn-rt-accent:hover {
  background-color: #B45309;
  color: #FFFFFF;
}

/* Surfaces & Cards (Single Elevation, Clean Hairline Borders) */
.rt-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: 10px;
}

.rt-hero {
  background: var(--rt-primary);
  color: #F8FAFC;
}

.rt-hero-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
}

/* Semantic Status Indicators (Accessible text + subtle tint, never color-only) */
.rt-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-valid {
  background-color: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.status-expiring {
  background-color: #FFFBEB;
  color: #92400E;
  border-color: #FDE68A;
}

.status-expired {
  background-color: #FEF2F2;
  color: #991B1B;
  border-color: #FECACA;
}

.status-neutral {
  background-color: #F1F5F9;
  color: #334155;
  border-color: #CBD5E1;
}

/* Sidebar for Member & Admin Desktop */
.rt-sidebar {
  width: 248px;
  min-height: 100vh;
  background: var(--rt-surface);
  border-right: 1px solid var(--rt-border);
  flex-shrink: 0;
}

.rt-sidebar .nav-link {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.rt-sidebar .nav-link:hover {
  background-color: #F1F5F9;
  color: var(--rt-primary);
}

.rt-sidebar .nav-link.active {
  background-color: var(--rt-primary);
  color: #FFFFFF;
}

/* Mobile PWA Bottom Navigation (<= 15% sticky height, >= 44px touch targets) */
.rt-mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rt-border);
  z-index: 1030;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.rt-mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #64748B;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  position: relative;
}

.rt-mobile-bottom-nav a i {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.rt-mobile-bottom-nav a.active {
  color: var(--rt-primary);
}

.rt-mobile-bottom-nav a.active i {
  color: var(--rt-accent);
}

@media (max-width: 991.98px) {
  .rt-member-main {
    padding-bottom: 82px !important;
  }
}

.rt-offline-banner {
  display: none;
  background: #B45309;
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  text-align: center;
}

.rt-offline-banner.show {
  display: block;
}

.rt-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748B;
  font-weight: 600;
  background: #F8FAFC;
  border-bottom: 1px solid var(--rt-border);
}

.rt-table td {
  vertical-align: middle;
  font-size: 0.9rem;
}
