/* APScore5 Shared Styles
   Drop into every new page with: <link rel="stylesheet" href="/css/apscore5-shared.css">
*/

:root {
  --navy: #0a0f5a;
  --navy-2: #101973;
  --navy-3: #070b43;
  --blue: #7ba3e8;
  --blue-2: #b9d1ff;
  --blue-light: #eef4ff;
  --orange: #f59e0b;
  --orange-2: #facc15;
  --orange-dark: #d97706;
  --white: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow: 0 18px 45px rgba(10, 15, 90, 0.10);
  --shadow-soft: 0 10px 30px rgba(10, 15, 90, 0.08);
  --shadow-hover: 0 24px 60px rgba(10, 15, 90, 0.14);
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(123,163,232,0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 22%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Topbar / Nav ---------- */
.topbar {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(226,232,240,0.82);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  color: var(--navy);
  letter-spacing: -0.035em;
  font-size: 1.12rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.55), transparent 26%),
    linear-gradient(135deg, var(--navy), var(--blue));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(10,15,90,0.18);
}

/* nav-cta slot — JS injects here */
#nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-link:hover { background: var(--blue-light); }

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #111827;
  border: 0;
  font-weight: 950;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border: 0;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn-navy:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(10, 15, 90, 0.18);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--navy); background: var(--blue-light); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }

/* Profile dropdown */
.profile-wrap {
  position: relative;
}
.profile-trigger {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 950;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 0.95rem;
}
.profile-trigger:hover { border-color: var(--navy); }
.profile-trigger .alert-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--danger);
  border: 2px solid white;
  border-radius: 50%;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px;
  display: none;
}
.profile-menu.open { display: block; }
.profile-menu a, .profile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}
.profile-menu a:hover, .profile-menu button:hover { background: var(--blue-light); color: var(--navy); }

/* Unverified email banner */
#verify-banner {
  display: none;
  background: #fff7ed;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.9rem;
  text-align: center;
  padding: 8px 16px;
}
#verify-banner.show { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
#verify-banner a { color: var(--navy); font-weight: 800; text-decoration: underline; }
#verify-banner .verify-banner-dismiss {
  background: transparent; border: 0; color: #92400e; font-size: 1.25rem;
  line-height: 1; cursor: pointer; padding: 0 4px;
}

/* ---------- Panels & cards ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px;
}
.panel {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-eyebrow {
  color: var(--orange-dark);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}
h1, h2, h3 {
  color: var(--navy);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 10px;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.05rem; }
p { margin-top: 0; }
.muted { color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-3);
  color: rgba(255,255,255,0.85);
  padding: 50px 20px 30px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h4 { color: white; font-size: 0.95rem; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 0.9rem; }
.footer a:hover { color: white; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: white; margin-bottom: 10px; }
.footer-bottom {
  max-width: var(--max);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-disclaimer { margin-top: 4px; font-size: 0.78rem; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav { padding: 12px 14px; }
  .container { padding: 20px 14px; }
  .panel { padding: 20px; border-radius: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
}
