/* =========================================================
   RIVOKATALYST - One Stop Career Builder
   Global Stylesheet
   ========================================================= */

:root {
  /* Colour palette */
  --navy: #0a1f3c;
  --navy-light: #13294f;
  --navy-soft: #1c3a66;
  --green: #f5a623;
  --green-dark: #c9810f;
  --white: #ffffff;
  --off-white: #eef4fa;
  --bg-page: #f3f8fc;
  --bg-alt: #e7f0f8;
  --grey: #6b7785;
  --grey-light: #dde7f0;
  --text: #16223a;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --gap-sm: 0.75rem;
  --gap-md: 1.5rem;
  --gap-lg: 3rem;
  --gap-xl: 5rem;

  /* Misc */
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(10, 31, 60, 0.08);
  --max-width: 1180px;
  --transition: 0.18s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  margin-bottom: var(--gap-md);
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto var(--gap-lg);
  text-align: center;
  color: var(--grey);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
[hidden] {
  display: none !important;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(10, 31, 60, 0.14);
}

/* ----- Tier 1: primary nav ----- */
.nav-primary {
  background: var(--navy);
  display: flex;
  align-items: stretch;
  padding: 0 1.5rem;
  height: 56px;
  max-width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
  padding: 0.5rem 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand .brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-brand .brand-name span {
  color: var(--green);
}

.nav-brand .brand-tag {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
  align-self: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  margin: 5px 0;
  transition: var(--transition);
}

.nav-primary-links {
  display: flex;
  align-items: stretch;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 16px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-item i {
  font-size: 19px;
  line-height: 1;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

.nav-item.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ----- Tier 2: secondary nav ----- */
.nav-secondary {
  background: var(--navy-light);
  border-bottom: 1px solid rgba(245,166,35,0.15);
}

.nav-secondary-inner {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 32px;
  gap: 2px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-sub-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-sub-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.nav-sub-link.active {
  color: var(--green);
  font-weight: 600;
}

.nav-sub-divider {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.18);
  margin: 0 6px;
  flex-shrink: 0;
  display: none;
}

.nav-sub-explore {
  display: inline-flex;
}

.nav-sub-divider {
  display: block;
}

/* ----- Mobile nav ----- */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-primary-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 72%;
    max-width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 0;
    z-index: 1100;
    box-shadow: -6px 0 24px rgba(0,0,0,0.25);
    border-left: 1px solid rgba(245,166,35,0.2);
  }

  .nav-primary-links.open {
    display: flex;
  }

  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 24px;
    font-size: 0.9rem;
    width: 100%;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
  }

  .nav-item.active {
    border-left-color: var(--green);
    border-bottom-color: transparent;
    color: var(--green);
    background: rgba(245,166,35,0.08);
  }

  .nav-sub-explore {
    display: inline-flex !important;
  }

  .nav-sub-divider {
    display: block !important;
  }

  .nav-secondary-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 6px 1rem;
    gap: 4px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg-page) 100%);
  color: var(--text);
  padding: var(--gap-xl) 0;
  text-align: center;
}

.hero h1 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--grey);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.page-hero {
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg-page) 100%);
  color: var(--text);
  padding: var(--gap-xl) 0 var(--gap-lg);
  text-align: center;
}

.page-hero h1 {
  color: var(--navy);
}

.page-hero .lead {
  color: var(--grey);
  max-width: 700px;
  margin: 0.75rem auto 0;
}

/* ---------- Sections ---------- */
section {
  padding: var(--gap-xl) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-navy p {
  color: var(--grey-light);
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: var(--gap-md);
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(10, 31, 60, 0.12);
}

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.card ul {
  margin: 0.5rem 0 1rem 0;
  padding-left: 0;
}

.card ul li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.card ul li::before {
  content: "✓";
  color: var(--green-dark);
  font-weight: 800;
  position: absolute;
  left: 0;
}

.qual-gap-header::before {
  content: "" !important;
}

.qual-gap-item::before {
  content: "→" !important;
  color: var(--grey, #8a99a8) !important;
}

.tag {
  display: inline-block;
  background: rgba(43, 217, 124, 0.12);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.salary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--grey-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.salary-pill span {
  color: var(--green-dark);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--white);
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--grey-light);
  font-size: 0.92rem;
}

th {
  background: var(--bg-alt);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--off-white);
}

/* ---------- Timeline / Roadmap ---------- */
.timeline {
  position: relative;
  padding-left: 2.25rem;
  border-left: 3px solid var(--green);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--gap-lg);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.65rem;
  top: 0.2rem;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--green);
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
}

/* ---------- Steps (numbered route) ---------- */
.step-list {
  display: grid;
  gap: var(--gap-md);
}

.step {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-success {
  display: none;
  background: rgba(43, 217, 124, 0.12);
  color: var(--green-dark);
  border: 1.5px solid var(--green);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

/* Newsletter banner */
.newsletter {
  background: var(--bg-alt);
  border: 1px solid var(--grey-light);
  color: var(--text);
  border-radius: var(--radius);
  padding: var(--gap-lg);
  text-align: center;
}

.newsletter h2 {
  color: var(--navy);
}

.newsletter p {
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1 1 200px;
}

.newsletter .btn {
  flex: 0 0 auto;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--green);
  color: var(--navy);
  border-radius: var(--radius);
  padding: var(--gap-lg);
  text-align: center;
}

.cta-banner h2 {
  color: var(--navy);
}

.cta-banner p {
  color: var(--navy-soft);
}

/* ---------- Quiz ---------- */
.quiz {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.quiz-question {
  margin-bottom: 1.75rem;
}

.quiz-question p.q-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.quiz-options {
  display: grid;
  gap: 0.6rem;
}

.quiz-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--text);
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.quiz-options label:hover {
  border-color: var(--green);
  background: rgba(245,166,35,0.08);
}

.quiz-options input {
  width: auto;
}

.quiz-result {
  display: none;
  background: var(--off-white);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  text-align: center;
}

.quiz-result.visible {
  display: block;
}

.quiz-result h3 {
  margin-bottom: 0.5rem;
}

.quiz-confidence {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.quiz-result ul {
  text-align: left;
  display: inline-block;
  margin: 0.5rem auto 0;
}

.quiz-alt {
  font-size: 0.95rem;
}

/* ---------- Opportunities ---------- */
.opp-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.opp-card h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

.opp-card .btn {
  white-space: normal;
  word-break: break-word;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin-top: auto;
}

.opp-card .opp-meta {
  font-size: 0.85rem;
  color: var(--grey);
}

.opp-card .opp-deadline {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.85rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--gap-md);
  justify-content: center;
}

.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--grey-light);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--navy);
}

.filter-btn.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--green);
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px var(--green-dark);
}

/* ---------- Page tabs (e.g. Opportunities: Browse / My Opportunities) ---------- */
.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: var(--gap-md);
}

.page-tab-btn {
  background: var(--white);
  border: 1.5px solid var(--grey-light);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--navy);
}

.page-tab-btn:hover {
  border-color: var(--green);
}

.page-tab-btn.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--green);
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px var(--green-dark);
}

/* ---------- Quote / Personal note ---------- */
.quote-block {
  background: var(--off-white);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--grey);
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  text-align: center;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-number {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--green-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.placeholder-box {
  border: 2px dashed var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--grey);
  font-weight: 600;
  background: var(--off-white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--grey-light);
  color: var(--grey);
  padding: var(--gap-lg) 0 var(--gap-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand-head .logo-mark {
  width: 30px;
  height: 30px;
}

.footer-brand .brand-name {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
}

.footer-brand .brand-name span {
  color: var(--green-dark);
}

.footer-brand .brand-tag {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.footer-brand p {
  color: var(--grey);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--grey);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--green-dark);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--grey-light);
  color: var(--navy);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--green);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--grey-light);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey);
}

/* ---------- Career Planner ---------- */
.planner-wrap {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.planner-progress {
  margin-bottom: 1.5rem;
}

.planner-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.planner-progress-fill {
  height: 100%;
  width: 20%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.planner-progress-label {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.planner-step h2 {
  margin-bottom: 1rem;
}

.planner-options label {
  display: block;
}

/* Skill depth selectors (Step 5 of Career Planner) */
.skill-depth-list {
  display: grid;
  gap: 0.5rem;
}

.skill-depth-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--surface);
}

.skill-depth-label {
  flex: 1;
  font-size: 0.93rem;
  line-height: 1.4;
}

.skill-depth-opts {
  display: flex;
  gap: 0.4rem;
}

.skill-depth-opts label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  white-space: nowrap;
  transition: var(--transition);
}

.skill-depth-opts label:hover {
  border-color: var(--green);
  background: rgba(245,166,35,0.08);
}

.skill-depth-opts label:has(input[value="beginner"]:checked) {
  border-color: #1c3a66;
  background: rgba(28,58,102,0.07);
  color: #1c3a66;
}

.skill-depth-opts label:has(input[value="proficient"]:checked) {
  border-color: var(--green);
  background: rgba(245,166,35,0.12);
  color: #8a5f00;
}

.skill-depth-opts input[type="radio"] {
  width: auto;
  margin: 0;
}

@media (max-width: 520px) {
  .skill-depth-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .skill-depth-opts {
    width: 100%;
    justify-content: space-between;
  }
  .skill-depth-opts label {
    flex: 1;
    justify-content: center;
  }
}

/* Beginner-skill note in milestone output */
.depth-note {
  display: block;
  font-size: 0.82rem;
  color: #1c3a66;
  background: rgba(28,58,102,0.07);
  border-left: 3px solid #1c3a66;
  padding: 0.3rem 0.6rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.4rem;
}

.planner-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.planner-nav .btn {
  flex: 0 0 auto;
}

.planner-nav #planner-next,
.planner-nav #planner-submit {
  margin-left: auto;
}

.planner-result {
  display: none;
  margin-top: 1rem;
}

.planner-result.visible {
  display: block;
}

#planner-result-intro {
  margin-bottom: 0;
}

.plan-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--gap-lg);
}

.plan-card {
  background: var(--bg-alt);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.plan-card ul li {
  margin-bott