:root {
  --bg: #f6f7f9;
  --ink: #070b12;
  --navy: #102542;
  --navy-2: #183b68;
  --gold: #d9a83a;
  --gold-soft: #f3df9c;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #111827;
  --muted: #627083;
  --line: #d9e0e8;
  --danger: #b42318;
  --success: #157f3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--navy-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-with-mark {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.brand-with-mark img {
  border-radius: 8px;
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 16px;
}

.nav a,
.link-button {
  color: #26364a;
  font-size: 15px;
  font-weight: 700;
}

.shell,
.section,
.landing-hero {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.hero,
.dashboard {
  align-items: center;
  display: grid;
  gap: 32px;
  min-height: 320px;
}

.landing-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
  min-height: calc(100vh - 68px);
  padding-bottom: 72px;
  padding-top: 58px;
}

.hero-copy {
  max-width: 690px;
}

.hero h1,
.dashboard h1,
.auth-panel h1,
.empty-state h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  margin: 0 0 16px;
}

.landing-hero h1 {
  max-width: 760px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.actions,
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.actions {
  margin-top: 28px;
}

.button,
.link-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

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

.button:hover {
  background: var(--navy-2);
  text-decoration: none;
}

.button.secondary {
  background: var(--gold);
  color: #16130c;
}

.link-button {
  background: transparent;
  padding: 0;
}

.hero-visual {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(217, 168, 58, 0.36);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(16, 37, 66, 0.24);
  display: flex;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
}

.hero-visual img {
  display: block;
  height: auto;
  object-fit: contain;
  padding: 24px;
  width: 100%;
}

.hero-metrics {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  padding: 22px 0 0;
}

.hero-metrics div {
  min-width: 0;
}

.hero-metrics dt {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.hero-metrics dd {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.section {
  padding-bottom: 72px;
  padding-top: 72px;
}

.section-heading {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
  margin-bottom: 28px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2,
.cta-band h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 0;
}

.intro-band {
  background: var(--navy);
  color: #ffffff;
  max-width: none;
}

.intro-band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

.intro-band .eyebrow {
  color: var(--gold-soft);
}

.intro-band p {
  color: #d8e1ec;
}

.split-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 24px;
}

.path-card img {
  border-radius: 8px;
  height: 64px;
  object-fit: contain;
  width: 64px;
}

.path-card h3,
.card h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.path-card p {
  line-height: 1.6;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.feature-grid {
  align-items: stretch;
}

.card,
.auth-panel,
.profile-form,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card h2 {
  margin: 0 0 8px;
}

.card p,
.muted,
.empty-state p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-choice {
  display: grid;
  gap: 28px;
}

.auth-heading-row {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-heading-row .eyebrow {
  margin: 0;
}

.back-arrow {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.back-arrow:hover {
  border-color: var(--gold);
  text-decoration: none;
}

.login-offset {
  margin-top: clamp(32px, 8vh, 88px);
}

.auth-panel.login-offset {
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(48px, 10vh, 112px);
}

.auth-choice h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  margin: 0;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 10px;
  min-height: 250px;
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.login-card:hover {
  border-color: var(--gold);
  text-decoration: none;
  transform: translateY(-2px);
}

.login-card img {
  height: 56px;
  object-fit: contain;
  width: 56px;
}

.login-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card strong {
  color: var(--navy);
  font-size: 26px;
}

.login-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.cta-band {
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  max-width: none;
}

.cta-band > * {
  max-width: 720px;
}

.cta-band .eyebrow {
  color: var(--gold-soft);
}

.cta-band .button {
  background: var(--gold);
  color: #16130c;
}

.cta-band .button.secondary {
  background: #ffffff;
  color: var(--navy);
}

.auth-panel,
.empty-state {
  margin: 0 auto;
  max-width: 520px;
}

.auth-panel h1 {
  font-size: 40px;
}

.form {
  display: grid;
  gap: 16px;
}

.form [data-phone-step] {
  display: grid;
  gap: 16px;
}

.form [data-phone-step].hidden {
  display: none;
}

label {
  color: var(--text);
  display: grid;
  font-weight: 700;
  gap: 8px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-2);
  outline: 3px solid rgba(20, 92, 108, 0.16);
}

.form-message {
  color: var(--muted);
  min-height: 24px;
  margin: 0;
}

.form-message[data-type="error"] {
  color: var(--danger);
}

.form-message[data-type="success"] {
  color: var(--success);
}

.recaptcha-box {
  min-height: 78px;
}

.candidate-app {
  background: #eef2f6;
  color: var(--text);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.candidate-sidebar {
  background: var(--ink);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
}

.candidate-brand {
  align-items: center;
  color: #ffffff;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  gap: 10px;
}

.candidate-brand:hover {
  text-decoration: none;
}

.candidate-brand img {
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.candidate-side-nav {
  display: grid;
  gap: 8px;
}

.candidate-side-nav a,
.candidate-logout {
  align-items: center;
  border-radius: 8px;
  color: #d8e1ec;
  display: flex;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
}

.candidate-side-nav a:hover,
.candidate-side-nav a.active {
  background: rgba(217, 168, 58, 0.14);
  color: #ffffff;
  text-decoration: none;
}

.candidate-side-nav svg,
.candidate-logout svg,
.candidate-nav-actions svg,
.candidate-card svg {
  height: 20px;
  width: 20px;
}

.candidate-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font: inherit;
  margin-top: auto;
}

.candidate-logout:hover {
  border-color: var(--gold);
  color: #ffffff;
}

.candidate-main {
  min-width: 0;
}

.candidate-navbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px clamp(20px, 4vw, 44px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.candidate-navbar h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  margin: 0;
}

.candidate-nav-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.candidate-nav-actions button {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.candidate-avatar {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.candidate-content {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 4vw, 44px);
}

.candidate-hero-card,
.candidate-panel-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.candidate-hero-card {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.candidate-hero-card h2,
.candidate-panel-section h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.candidate-hero-card p {
  color: var(--muted);
  margin: 0;
}

.candidate-section-heading {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.55fr);
}

.candidate-section-heading > p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.candidate-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.candidate-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 20px;
}

.candidate-card span {
  align-items: center;
  background: rgba(217, 168, 58, 0.16);
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.candidate-card strong {
  color: var(--navy);
  font-size: 20px;
}

.candidate-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.candidate-profile-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.candidate-long-form {
  grid-template-columns: 1fr;
}

.candidate-info-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 230px minmax(0, 1fr);
}

.candidate-info-panels {
  grid-column: 2;
  min-width: 0;
}

.candidate-profile-form fieldset[hidden] {
  display: none;
}

.candidate-info-tabs {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-column: 1;
  grid-row: 1;
  padding: 10px;
  position: sticky;
  top: 108px;
}

.candidate-info-tabs button {
  align-items: center;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.candidate-info-tabs button:hover,
.candidate-info-tabs button.active {
  border-color: rgba(217, 168, 58, 0.55);
  color: var(--navy);
}

.candidate-info-tabs button.active {
  background: rgba(217, 168, 58, 0.16);
}

.candidate-info-tabs svg {
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.candidate-profile-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 18px;
}

.candidate-profile-form legend {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  padding: 0 8px;
}

.candidate-profile-form fieldset label:has(textarea),
.candidate-profile-form .full-field {
  grid-column: 1 / -1;
}

.candidate-field-group {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.candidate-field-group h3 {
  color: var(--navy);
  font-size: 18px;
  margin: 0;
}

.candidate-field-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.candidate-check-grid {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.candidate-check-grid label {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
}

.candidate-check-grid input {
  height: 18px;
  min-height: 0;
  width: 18px;
}

.candidate-profile-form button,
.candidate-profile-form .form-message {
  grid-column: 1 / -1;
}

.membership-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.membership-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.membership-card.featured {
  border-color: rgba(217, 168, 58, 0.7);
  box-shadow: 0 16px 34px rgba(16, 37, 66, 0.1);
}

.membership-card span {
  color: var(--gold);
  font-weight: 900;
}

.membership-card strong {
  color: var(--navy);
  font-size: 24px;
}

.membership-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .topbar,
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero,
  .section-heading,
  .split-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .path-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .path-card img {
    height: 52px;
    width: 52px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-offset {
    margin-top: 24px;
  }

  .candidate-app {
    grid-template-columns: 1fr;
  }

  .candidate-sidebar {
    position: static;
  }

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

  .candidate-navbar,
  .candidate-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .candidate-grid,
  .candidate-profile-form,
  .candidate-info-layout,
  .candidate-profile-form fieldset,
  .candidate-section-heading,
  .candidate-field-grid,
  .candidate-check-grid,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .candidate-info-tabs {
    order: -1;
    position: static;
  }
}
