:root {
  --navy: #132229;
  --teal: #018788;
  --teal-tint: #e9ffff;
  --teal-tint-2: #d4f5f5;
  --white: #ffffff;
  --off-white: #f7f9f9;
  --muted: #5a6a70;
  --success: #1f9d63;
  --warning: #d68a1f;
  --error: #c0392b;
  --border: #dfe8e8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

/* ---------- NAV ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 5%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.brand-lockup { display: flex; align-items: center; gap: 0.85rem; }
.brand-lockup img { height: 44px; width: auto; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.nav-links a:not(.nav-cta) { margin-right: 2rem; }
.nav-links a:last-of-type:not(.nav-cta) { margin-right: 0; }
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-cta:hover { background: var(--teal); }

/* ---------- PLACEHOLDER DATA BANNER (gated pages only) ---------- */
.placeholder-banner {
  background: #fff8e8;
  border-bottom: 1px solid #f0dca0;
  color: #8a6416;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.55rem 1rem;
}
.placeholder-banner strong { font-weight: 600; }

/* ---------- GENERIC LAYOUT ---------- */
.page-hero {
  padding: 3.5rem 5% 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 600;
  margin: 0.8rem 0 1rem;
  letter-spacing: -0.01em;
}
.page-hero p.lead { font-size: 1.02rem; color: var(--muted); max-width: 60ch; margin: 0 auto; }

section { padding: 3rem 5%; max-width: 1080px; margin: 0 auto; }
.section-narrow { max-width: 760px; }
.section-head { max-width: 640px; margin: 0 auto 2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; margin-top: 0.5rem; }
.section-head p { color: var(--muted); margin-top: 0.6rem; font-size: 0.96rem; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  border: 1px solid var(--teal);
}
.btn-primary:hover { background: #016d6e; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--navy);
  display: inline-block;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* ---------- CARDS ---------- */
.card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem;
}
.card-white { background: var(--white); }

/* ---------- STATUS BADGES ---------- */
.badge { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 3px; font-size: 0.78rem; font-weight: 600; }
.badge-success { background: #e3f6ec; color: var(--success); }
.badge-warning { background: #fdf2e3; color: var(--warning); }
.badge-error { background: #fbeaea; color: var(--error); }
.badge-muted { background: var(--off-white); color: var(--muted); }
.badge-teal { background: var(--teal-tint); color: var(--teal); }

/* ---------- TABLES ---------- */
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data-table th {
  text-align: left; padding: 0.7rem 0.8rem; border-bottom: 2px solid var(--border);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
table.data-table td { padding: 0.8rem; border-bottom: 1px solid var(--border); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy);
  color: #b9c4c7;
  padding: 3rem 5% 2rem;
  text-align: center;
}
footer .brand-lockup { justify-content: center; margin-bottom: 1rem; }
footer p { font-size: 0.85rem; color: #8fa0a5; }
footer a:hover { color: var(--white); }

/* ---------- SIDEBAR LAYOUT (dashboards) ---------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 78px); }
.dash-sidebar { background: var(--off-white); border-right: 1px solid var(--border); padding: 2rem 1.2rem; }
.dash-sidebar a { display: block; padding: 0.65rem 0.9rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--navy); }
.dash-sidebar a.active { background: var(--teal-tint); color: var(--teal); }
.dash-sidebar a:hover:not(.active) { background: var(--border); }
.dash-main { padding: 2.5rem 3rem; }
.dash-main h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.8rem; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
}
