[data-theme="light"] {
  --paper: #EDE8DC;
  --paper-deep: #E2DCC9;
  --ink: #1C2B24;
  --moss: #3F5C4D;
  --moss-deep: #2A3F35;
  --amber: #D98E3B;
  --amber-deep: #B97527;
  --route: #3E6E86;
  --line: #C2B8A1;
}
[data-theme="light"] .btn--primary { color: #fff; }
[data-theme="light"] .btn--secondary { color: var(--moss-deep); }
[data-theme="light"] .btn--secondary:hover { color: #fff; }
[data-theme="light"] .chip--active { color: #fff; }
[data-theme="light"] .career-card:hover { box-shadow: 0 2px 8px rgba(28,43,36,0.08); }
[data-theme="light"] .modal-backdrop { background: rgba(28,43,36,0.5); }
[data-theme="light"] .chat-fab { color: #fff; }
[data-theme="light"] .chat-send { color: #fff; }
[data-theme="light"] .chat-msg--user { color: #fff; }
[data-theme="light"] .nav-toggle span { background: var(--ink); }

:root {
  --paper: #1C2B24;
  --paper-deep: #162320;
  --ink: #EDE8DC;
  --moss: #C2D1C8;
  --moss-deep: #E0E7E2;
  --amber: #D98E3B;
  --amber-deep: #E9A54E;
  --route: #6AADCB;
  --line: #2E4A3A;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
  html { scroll-behavior: auto; }
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  line-height: 1.2;
}

h1 { font-size: 2.8rem; font-weight: 600; }
h2 { font-size: 1.8rem; font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 500; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--amber);
  color: #1C2B24;
}
.btn--primary:hover { background: var(--amber-deep); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--moss);
}
.btn--secondary:hover { background: var(--line); }

.btn--danger {
  color: #E05555;
  border-color: #E05555;
}
.btn--danger:hover { background: #E05555; color: #fff; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  display: block;
  text-decoration: none;
}

.nav-logo-svg {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--moss-deep);
  text-decoration: none;
  padding: 0.25rem 0;
}
.nav-link:hover { color: var(--ink); }
.nav-link--active {
  border-bottom: 2px solid var(--amber);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
}

.nav-dropdown__trigger--amber {
  color: var(--amber);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.35rem;
  z-index: 50;
}

.nav-dropdown__menu-inner {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  min-width: 190px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  padding: 0.35rem 0;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  display: block;
}

.nav-dropdown__item {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.1s;
}
.nav-dropdown__item:hover {
  background: var(--line);
}

.nav-cta {
  margin-left: 1rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.theme-toggle {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.theme-toggle:hover { border-color: var(--moss); }
.theme-icon--sun { display: none; }
.theme-icon--moon { display: block; }
[data-theme="light"] .theme-icon--sun { display: block; }
[data-theme="light"] .theme-icon--moon { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 0.75rem;
  }
  .nav-links--open { display: flex; }
  .nav-cta { display: none; }
  .nav-dropdown__menu {
    display: block;
    position: static;
    transform: none;
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
    background: none;
  }
  .nav-dropdown__trigger { pointer-events: none; }
  .nav-toggle { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero--home { padding: 6rem 1.5rem 5rem; }

.topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.topo-bg svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 { margin: 0.5rem 0 1rem; }
.hero h1 em { font-style: italic; }

.subhead {
  font-size: 1.1rem;
  color: var(--moss-deep);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.stat-line {
  font-size: 0.95rem;
  color: var(--moss);
  margin-top: 1rem;
}

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

.hero-waypoints {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.waypoint {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  opacity: 0.5;
}

.waypoint-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--moss);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  opacity: 0.6;
}

@media (max-width: 760px) {
  .hero-waypoints { display: none; }
  h1 { font-size: 2rem; }
}

/* ── Legend section ── */
.legend {
  padding: 4rem 0;
  background: var(--paper-deep);
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.legend-card {
  background: var(--paper);
  padding: 2rem;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.legend-icon {
  color: var(--moss);
  margin-bottom: 0.75rem;
}

.legend-card .eyebrow { display: block; margin-bottom: 0.5rem; }
.legend-card h3 { margin-bottom: 0.5rem; }
.legend-card p { font-size: 0.95rem; color: var(--moss-deep); margin-bottom: 1rem; }

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--route);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

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

/* ── Audience ── */
.audience {
  padding: 4rem 0;
}

.audience .eyebrow { display: block; margin-bottom: 0.5rem; }
.audience h2 { margin-bottom: 2rem; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.audience-card {
  background: var(--paper-deep);
  padding: 1.75rem;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.audience-card .eyebrow { display: block; margin-bottom: 0.5rem; color: var(--amber-deep); }
.audience-card h3 { margin-bottom: 0.5rem; }
.audience-card p { font-size: 0.95rem; color: var(--moss-deep); }

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

/* ── Internship Callout ── */
.intern-callout {
  padding: 3.5rem 0;
  background: var(--paper-deep);
}

.intern-callout__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.intern-callout__text .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--amber);
}

.intern-callout__text h2 {
  margin-bottom: 1rem;
}

.intern-callout__text p {
  font-size: 0.95rem;
  color: var(--moss-deep);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.intern-callout__tips h3 {
  margin-bottom: 0.75rem;
}

.intern-callout__tips ul {
  list-style: none;
  padding: 0;
}

.intern-callout__tips li {
  font-size: 0.9rem;
  color: var(--moss-deep);
  line-height: 1.6;
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.intern-callout__tips li:last-child { border-bottom: none; }

.intern-callout__tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 600;
}

@media (max-width: 700px) {
  .intern-callout__card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── Career of the Day ── */
.cotd {
  padding: 3rem 0;
}

.cotd__card {
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.cotd__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--line);
}
.cotd__header .eyebrow { color: var(--amber); }
.cotd__date {
  font-size: 0.8rem;
  color: var(--moss);
}

.cotd__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.cotd__field-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.5rem;
}

.cotd__info h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.cotd__blurb {
  font-size: 0.95rem;
  color: var(--moss-deep);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.cotd__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cotd__side h3 {
  margin-bottom: 0.6rem;
}

.cotd__side ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.cotd__side li {
  font-size: 0.9rem;
  color: var(--moss-deep);
  padding: 0.4rem 0 0.4rem 1.1rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.cotd__side li:last-child { border-bottom: none; }
.cotd__side li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 600;
}

@media (max-width: 700px) {
  .cotd__body { grid-template-columns: 1fr; gap: 1.5rem; }
  .cotd__header { padding: 0.75rem 1.25rem; }
  .cotd__body { padding: 1.25rem; }
}

/* ── About Section ── */
.about-section {
  padding: 3.5rem 0;
}

.about-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 2.5rem;
}

.about-text .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--amber);
}

.about-text h2 { margin-bottom: 1rem; }

.about-text p {
  font-size: 0.95rem;
  color: var(--moss-deep);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.about-details h3 { margin-bottom: 0.75rem; }

.about-stack {
  list-style: none;
  padding: 0;
}

.about-stack li {
  font-size: 0.88rem;
  color: var(--moss-deep);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.about-stack li:last-child { border-bottom: none; }
.about-stack strong { color: var(--ink); }

.about-credit {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.about-credit p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--moss);
}

@media (max-width: 700px) {
  .about-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* ── CTA Band ── */
.cta-band {
  background: var(--line);
  color: var(--ink);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-band h2 { color: var(--ink); margin-bottom: 1.5rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand { display: flex; align-items: center; }
.footer-logo-svg {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--moss-deep);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

/* ── Quiz ── */
.quiz-section {
  padding: 3rem 0 5rem;
}

.quiz-container {
  max-width: 640px;
  margin: 0 auto;
}

.progress-trail {
  text-align: center;
  margin-bottom: 2.5rem;
}

.progress-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.75rem;
}

.progress-segment {
  width: 18px;
  height: 2px;
  background: var(--line);
  transition: background 0.2s;
}
.progress-segment--filled { background: var(--route); }

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.progress-dot--filled {
  background: var(--route);
  border-color: var(--route);
}
.progress-dot--current {
  border-color: var(--amber);
  background: var(--amber);
}

.progress-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}
.progress-label--done { color: var(--amber-deep); }

.quiz-question__text {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-option:hover {
  border-color: var(--moss);
  background: var(--paper);
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  background: none;
  border: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--moss);
  cursor: pointer;
  text-decoration: underline;
}

.quiz-results { margin-top: 1rem; }

.results-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-card {
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 1.75rem;
}
.result-card--top {
  border-color: var(--amber);
}
.result-card .eyebrow { display: block; margin-bottom: 0.75rem; color: var(--amber-deep); }
.result-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--moss);
}
.result-card__head h3 { color: var(--ink); }
.result-card p { font-size: 0.95rem; color: var(--moss-deep); margin-bottom: 1rem; }

.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.report-cta {
  margin: 1.5rem 0;
}
.report-cta__card {
  background: var(--paper-deep);
  border: 2px solid var(--amber);
  border-radius: 3px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.report-cta__text {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--amber);
}
.report-cta__text div { flex: 1; }
.report-cta__text h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--ink);
}
.report-cta__text p {
  font-size: 0.85rem;
  color: var(--moss-deep);
  margin: 0;
}
.report-cta .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .report-cta__card { flex-direction: column; align-items: stretch; }
  .report-cta .btn { width: 100%; text-align: center; }
}

/* ── Payment Modal ── */
.pay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pay-backdrop[hidden] { display: none; }

.pay-modal {
  background: var(--paper);
  border-radius: 6px;
  max-width: 460px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}

.pay-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--moss);
  cursor: pointer;
  line-height: 1;
}
.pay-modal__close:hover { color: var(--ink); }

.pay-modal__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--amber);
}
.pay-modal__header h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0;
}
.pay-modal__price {
  font-size: 0.85rem;
  color: var(--moss);
  margin: 0;
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pay-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pay-field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}
.pay-field input {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper-deep);
  color: var(--ink);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.pay-field input:focus {
  border-color: var(--amber);
  outline: none;
}
.pay-field input::placeholder { color: var(--moss); }

.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
}

.pay-submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

.pay-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--moss);
  margin: 0.25rem 0 0;
}

@media (max-width: 480px) {
  .pay-modal { padding: 1.5rem; }
  .pay-row { grid-template-columns: 1fr 1fr; }
}

.return-banner {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--amber);
  padding: 0.6rem 0;
}
.return-banner[hidden] { display: none; }
.return-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--moss-deep);
}

.quiz-return {
  text-align: center;
  margin-bottom: 1rem;
}

.share-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.share-results h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.share-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  border: 1.5px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
}
.share-btn:hover { border-color: var(--moss); }
.share-btn--copy { border-color: var(--amber); }

@media (max-width: 600px) {
  .results-cards { grid-template-columns: 1fr; }
}

/* ── Browse ── */
.browse-section {
  padding: 2rem 0 4rem;
}

.browse-controls {
  margin-bottom: 2rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--moss-deep);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--moss); }
.chip--active {
  background: var(--amber);
  border-color: var(--amber);
  color: #1C2B24;
}

.browse-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.search-input {
  flex: 1;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.search-input::placeholder { color: var(--moss); }
.search-input:focus { border-color: var(--moss); }

.sort-select {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.result-count {
  font-size: 0.85rem;
  color: var(--moss);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.skeleton-card {
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.skeleton-line {
  height: 14px;
  border-radius: 3px;
  background: var(--line);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-line--sm { width: 40%; }
.skeleton-line--md { width: 75%; }
.skeleton-line--lg { width: 60%; height: 18px; }
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
@media (max-width: 900px) {
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .skeleton-grid { grid-template-columns: 1fr; }
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.career-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: 'IBM Plex Sans', sans-serif;
}
.career-card:hover {
  border-color: var(--moss);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.career-card[hidden] {
  display: none;
}

.career-card__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  color: var(--moss);
}

.career-card__field {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}

.career-card__name {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.career-card__blurb {
  font-size: 0.9rem;
  color: var(--moss-deep);
  flex: 1;
  margin-bottom: 0.75rem;
}

.career-card__meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.career-card__edu,
.career-card__pay {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--moss);
  background: var(--paper-deep);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.career-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--route);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--moss);
}
.empty-state p { margin-bottom: 1rem; }

.browse-disclaimer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--moss);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .career-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .career-grid { grid-template-columns: 1fr; }
  .browse-bar { flex-direction: column; }
  .filter-chips { gap: 0.4rem; }
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal-backdrop--jobs {
  z-index: 1000;
}

.modal {
  background: var(--paper);
  border-radius: 3px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--moss);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.modal__close:hover { color: var(--ink); }

.modal__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  color: var(--moss);
}

.modal h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.modal__pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pill {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--moss-deep);
}

.modal__detail {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: var(--moss-deep);
}

.modal h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.modal__day {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}
.modal__day li {
  font-size: 0.95rem;
  color: var(--moss-deep);
  margin-bottom: 0.3rem;
}

.modal p {
  font-size: 0.95rem;
  color: var(--moss-deep);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.modal p:last-child { margin-bottom: 0; }

.similar-careers {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.similar-careers h3 { margin-bottom: 0.75rem; }
.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.similar-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: border-color 0.15s;
}
.similar-card:hover { border-color: var(--moss); }
.similar-card__field {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}
.similar-card__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.similar-card__pay {
  font-size: 0.75rem;
  color: var(--moss);
}
@media (max-width: 500px) {
  .similar-grid { grid-template-columns: 1fr; }
}

/* ── Compare Page ── */
.compare-section {
  padding: 2rem 0 4rem;
}

.compare-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  position: sticky;
  top: 62px;
  z-index: 10;
  background: var(--paper);
  padding: 1rem 0;
}

.compare-slot {
  min-height: 160px;
  border: 2px dashed var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.compare-slot--over {
  border-color: var(--amber);
  background: rgba(217,142,59,0.12);
}

.slot-empty {
  text-align: center;
  color: var(--line);
}
.slot-icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--moss);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 auto 0.5rem;
}
.slot-empty p {
  font-size: 0.85rem;
}

.slot-filled {
  width: 100%;
  padding: 1.25rem;
  position: relative;
}
.slot-filled[hidden] { display: none; }

.slot-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--moss);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}
.slot-remove:hover { color: var(--ink); }

.slot-field {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}
.slot-name {
  font-size: 1.1rem;
  margin: 0.25rem 0 0.5rem;
}
.slot-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.slot-meta span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--moss);
  background: var(--paper-deep);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}

.compare-slot:has(.slot-filled:not([hidden])) {
  border-style: solid;
  border-color: var(--moss);
  background: var(--paper);
}

.compare-action {
  text-align: center;
  margin-bottom: 2rem;
}
.compare-action [hidden] { display: none; }

/* Comparison output */
.comparison-output {
  margin-bottom: 3rem;
}
.comparison-output[hidden] { display: none; }
.comparison-output h2 {
  margin-bottom: 1.25rem;
}

.comparison-table {
  overflow-x: auto;
  margin-bottom: 2.5rem;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.comparison-table th {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1rem;
  background: var(--paper-deep);
  position: sticky;
  top: 60px;
}
.row-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  white-space: nowrap;
  width: 120px;
  min-width: 120px;
}
.comparison-table ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
}
.comparison-table li {
  margin-bottom: 0.25rem;
  color: var(--moss-deep);
}
.comparison-table td {
  color: var(--moss-deep);
  line-height: 1.55;
}

/* Tradeoffs */
.tradeoffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.tradeoff-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem;
}
.tradeoff-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.tradeoff-section { margin-bottom: 1rem; }
.tradeoff-section:last-child { margin-bottom: 0; }
.tradeoff-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}
.tradeoff-label--pro { color: var(--moss); }
.tradeoff-label--con { color: var(--amber-deep); }
.tradeoff-section ul {
  list-style: none;
  padding: 0;
}
.tradeoff-section li {
  font-size: 0.9rem;
  color: var(--moss-deep);
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
}
.tradeoff-pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--moss);
  font-weight: 600;
}
.tradeoff-cons li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--amber-deep);
  font-weight: 600;
}

/* Career picker */
.career-picker {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.career-picker h2 { margin-bottom: 1rem; }

.picker-controls {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
.picker-controls .search-input {
  flex: 0 1 260px;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.picker-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  cursor: grab;
  transition: border-color 0.15s, opacity 0.15s;
  user-select: none;
}
.picker-card:hover { border-color: var(--moss); }
.picker-card--dragging { opacity: 0.4; }
.picker-card--used {
  opacity: 0.35;
  pointer-events: none;
}
.picker-card[hidden] { display: none; }

.picker-card__field {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}
.picker-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}
.picker-card__pay {
  font-size: 0.8rem;
  color: var(--moss);
}

@media (max-width: 900px) {
  .compare-slots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .compare-slots { grid-template-columns: 1fr; }
  .picker-controls { flex-direction: column; }
  .picker-controls .search-input { flex: 1 1 100%; }
}

/* ── Jobs / Map Page ── */
.jobs-section {
  padding: 2rem 0 4rem;
}

.jobs-controls {
  margin-bottom: 1.5rem;
}

.zip-bar {
  display: flex;
  gap: 0.75rem;
  max-width: 400px;
}
.zip-bar .search-input {
  flex: 1;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  letter-spacing: 0.05em;
}
.zip-bar .btn { white-space: nowrap; }

.jobs-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--moss);
  min-height: 1.4em;
}

.jobs-loader {
  margin: 0.75rem 0;
}
.jobs-loader[hidden] { display: none; }
.loader-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.loader-fill {
  height: 100%;
  width: 30%;
  background: var(--amber);
  border-radius: 2px;
  animation: loader-slide 1.5s ease-in-out infinite;
}
@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.loader-text {
  font-size: 0.85rem;
  color: var(--moss);
}

.map-wrap {
  border-radius: 3px;
  overflow: hidden;
  border: 1.5px solid var(--line);
}

#map {
  width: 100%;
  height: 520px;
  background: var(--paper-deep);
}

.jobs-legend {
  margin-top: 1.25rem;
}
.jobs-legend h3 {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--moss);
}
.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--moss-deep);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot--tech { background: #6AADCB; }
.legend-dot--health { background: #E05555; }
.legend-dot--design { background: #C47ADB; }
.legend-dot--trades { background: #D98E3B; }
.legend-dot--business { background: #5B9E6F; }
.legend-dot--education { background: #D4A843; }
.legend-dot--military { background: #8B9DAF; }
.legend-dot--law { background: #C75B5B; }

/* Map markers */
.map-marker {
  background: none;
  border: none;
}
.marker-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Map popups - override Leaflet defaults for dark theme */
.leaflet-popup-content-wrapper {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-radius: 3px !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4) !important;
}
.leaflet-popup-tip { background: var(--paper) !important; }
.leaflet-popup-content { margin: 12px 16px !important; }

.map-popup {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.map-popup strong {
  font-size: 0.95rem;
}
.popup-type {
  font-size: 0.8rem;
  color: var(--moss);
}
.popup-field {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.popup-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.3rem;
}
.popup-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--route);
  text-decoration: none;
}
.popup-links a:hover { text-decoration: underline; }

.popup-btn {
  margin-top: 0.4rem;
  background: none;
  border: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.popup-btn:hover { text-decoration: underline; }

.marker-pin--home {
  background: #fff !important;
  border: 3px solid var(--amber) !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(217,142,59,0.5);
}

/* Modal career list (for jobs page) */
.modal-career-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-career-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: border-color 0.15s;
}
.modal-career-item:hover { border-color: var(--moss); }
.modal-career-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.modal-career-item__meta {
  font-size: 0.78rem;
  color: var(--moss);
}
.modal-career-item__blurb {
  font-size: 0.85rem;
  color: var(--moss-deep);
}

@media (max-width: 600px) {
  #map { height: 400px; }
  .zip-bar { max-width: 100%; }
}

/* ── Chat Widget ── */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  font-family: 'IBM Plex Sans', sans-serif;
}

/* ── Portal Pages ── */
.hero--portal { padding: 4rem 1.5rem 3rem; }

.portal-section {
  padding: 2rem 0 4rem;
}

.portal-tabs {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.portal-tab {
  flex: 1;
  padding: 0.7rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--paper-deep);
  color: var(--moss);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.portal-tab--active {
  background: var(--amber);
  color: #1C2B24;
}

.portal-card {
  max-width: 400px;
  margin: 0 auto 2.5rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 2rem;
}
.portal-card[hidden] { display: none; }

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portal-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-error {
  background: rgba(200,60,60,0.15);
  color: #E05555;
  padding: 0.6rem 0.85rem;
  border-radius: 3px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.auth-error[hidden] { display: none; }

.portal-forgot {
  text-align: center;
  font-size: 0.82rem;
  margin: 0;
}
.portal-forgot a {
  color: var(--route);
  text-decoration: none;
}
.portal-forgot a:hover { text-decoration: underline; }

.portal-features {
  max-width: 700px;
  margin: 0 auto 3rem;
}
.portal-features h3 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.portal-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.portal-feature {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem;
  text-align: center;
}
.portal-feature svg { margin-bottom: 0.6rem; }
.portal-feature h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.portal-feature p {
  font-size: 0.82rem;
  color: var(--moss-deep);
  margin: 0;
  line-height: 1.5;
}

/* Pricing */
.portal-pricing-multi {
  max-width: 700px;
  margin: 0 auto;
}

.pricing-heading {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.pricing-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--moss-deep);
  margin-bottom: 1.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.portal-pricing {
  max-width: 360px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--paper-deep);
  border: 2px solid var(--amber);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
}
.pricing-card .eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--amber);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}
.pricing-dollar {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.pricing-number {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.pricing-period {
  font-size: 0.9rem;
  color: var(--moss);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}
.pricing-list li {
  font-size: 0.88rem;
  color: var(--moss-deep);
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 600;
}

.pricing-card--featured {
  border-color: var(--amber);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--amber);
  color: #1C2B24;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 0 5px 0 3px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--moss-deep);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.pricing-card--selectable {
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
}
.pricing-card--selectable:hover { border-color: var(--amber); }
.pricing-card--selected {
  border-color: var(--amber) !important;
}

.pricing-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-checkmark {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-card--selected .pricing-checkmark {
  background: var(--amber);
  border-color: var(--amber);
}
.pricing-card--selected .pricing-checkmark::after {
  content: '✓';
  color: #1C2B24;
  font-size: 14px;
  font-weight: 700;
}

.pricing-total {
  max-width: 400px;
  margin: 1.5rem auto 0;
  background: var(--paper-deep);
  border: 2px solid var(--amber);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.pricing-total[hidden] { display: none; }
.pricing-total__line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--moss-deep);
  margin-bottom: 0.35rem;
}
.pricing-total__amount {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}
.pricing-total .pricing-btn { margin-bottom: 0.5rem; }
.pricing-total .pricing-note { margin: 0; }

.pricing-btn { width: 100%; }

.pricing-note {
  font-size: 0.78rem;
  color: var(--moss);
  margin-top: 0.75rem;
}

/* ── Dashboard ── */
.dash-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.dash-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.dash-header h1 { font-size: 1.8rem; margin-bottom: 0.15rem; }
.dash-header__school { font-size: 0.9rem; color: var(--moss); }
.dash-header__actions { display: flex; gap: 0.5rem; }

.dash-section { padding: 2rem 0 4rem; }

.dash-code-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--amber);
  border-radius: 3px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.dash-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-code__label {
  font-size: 0.85rem;
  color: var(--moss);
}
.dash-code__value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.05em;
}
.dash-code__copy {
  background: none;
  border: none;
  color: var(--moss);
  cursor: pointer;
  padding: 0.2rem;
}
.dash-code__copy:hover { color: var(--ink); }
.dash-code__hint {
  font-size: 0.82rem;
  color: var(--moss);
  margin: 0;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-stat {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem;
  text-align: center;
}
.dash-stat__number {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.dash-stat__label {
  font-size: 0.78rem;
  color: var(--moss);
  margin-top: 0.25rem;
  display: block;
}

.dash-panel {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.dash-panel h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.dash-panel__sub { font-size: 0.85rem; color: var(--moss); margin-bottom: 1rem; }

.dash-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.dash-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 90px;
  gap: 0.75rem;
  align-items: center;
}
.dash-bar-label { font-size: 0.85rem; color: var(--ink); text-align: right; }
.dash-bar-track {
  height: 12px;
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s;
}
.dash-bar-value { font-size: 0.82rem; color: var(--moss-deep); }

.class-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.class-tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--paper-deep);
  color: var(--moss);
  border: none;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.class-tab:last-child { border-right: none; }
.class-tab:hover { color: var(--ink); }
.class-tab--active {
  background: var(--amber);
  color: #1C2B24;
}
.class-view[hidden] { display: none; }
.class-count {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--moss);
  margin-left: 0.5rem;
}
@media (max-width: 700px) {
  .class-tabs { flex-wrap: wrap; }
  .class-tab { flex: 1 1 48%; border-bottom: 1px solid var(--line); }
}

.dash-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dash-search-bar .search-input { flex: 1; }

.dash-table-wrap { overflow-x: auto; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.dash-table th, .dash-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.dash-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
}
.dash-table td { color: var(--ink); }
.dash-table tr[hidden] { display: none; }
.dash-table tr:hover td { background: var(--line); }

.dash-tag { font-weight: 600; }

.dash-status {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.dash-status--done {
  background: rgba(95,158,111,0.15);
  color: #5B9E6F;
}
.dash-status--pending {
  background: rgba(217,142,59,0.15);
  color: var(--amber);
}

@media (max-width: 700px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-bar-row { grid-template-columns: 100px 1fr 70px; }
  .dash-search-bar { flex-direction: column; }
  .dash-header__top { flex-direction: column; }
}

/* ── Student Dashboard ── */
.student-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.student-result {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem;
}
.student-result--top { border-color: var(--amber); }
.student-result .eyebrow { display: block; margin-bottom: 0.3rem; }
.student-result h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.student-result p { font-size: 0.82rem; color: var(--moss-deep); margin-bottom: 0.6rem; }

.student-result__score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.student-result__score span { font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.student-result__bar-track {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.student-result__bar-fill { height: 100%; border-radius: 3px; }

.student-actions {
  display: flex;
  gap: 0.75rem;
}

.saved-careers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.saved-career {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  gap: 1rem;
  flex-wrap: wrap;
}
.saved-career__info { flex: 1; min-width: 200px; }
.saved-career__info h4 { font-size: 1rem; margin-bottom: 0.15rem; color: #fff; }
.saved-career__info p { font-size: 0.82rem; color: var(--moss-deep); margin: 0; }
.saved-career__meta { display: flex; gap: 0.4rem; flex-shrink: 0; }

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.next-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.next-step:last-child { border-bottom: none; }
.next-step h4 { font-size: 0.92rem; margin-bottom: 0.1rem; color: var(--ink); }
.next-step p { font-size: 0.8rem; color: var(--moss-deep); margin: 0; }
.next-step > div { flex: 1; }

.next-step__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.next-step__check::after {
  content: '✓';
  color: #1C2B24;
  font-size: 12px;
  font-weight: 700;
}
.next-step__check--empty {
  background: none;
  border: 2px solid var(--line);
}
.next-step__check--empty::after { content: ''; }

.next-step__status {
  font-size: 0.8rem;
  font-weight: 500;
  flex-shrink: 0;
  text-decoration: none;
}
.next-step__status--done { color: var(--amber); }
.next-step__status--todo { color: var(--route); }
.next-step__status--todo:hover { text-decoration: underline; }

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-item p { font-size: 0.85rem; color: var(--ink); margin: 0; }
.activity-date { font-size: 0.75rem; color: var(--moss); }

@media (max-width: 700px) {
  .student-results { grid-template-columns: 1fr; }
  .student-actions { flex-direction: column; }
}

/* ── Student Detail ── */
.dash-student-link {
  color: var(--route);
  text-decoration: none;
  font-weight: 500;
}
.dash-student-link:hover { text-decoration: underline; }

.detail-status {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.detail-status__item {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  flex: 1;
  min-width: 120px;
  text-align: center;
}
.detail-status__label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.25rem;
}
.detail-status__item span:last-child {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.answers-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.answer-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.answer-row:last-child { border-bottom: none; }
.answer-q {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--moss);
}
.answer-a {
  font-size: 0.85rem;
  color: var(--ink);
  font-style: italic;
}
.answer-field {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.04em;
}

.detail-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.detail-badge {
  font-size: 0.82rem;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.detail-badge--earned {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(217,142,59,0.1);
}
.detail-badge--locked {
  color: var(--moss);
  opacity: 0.5;
}
.detail-badge-count {
  font-size: 0.8rem;
  color: var(--moss);
}

.counselor-notes {
  width: 100%;
  min-height: 100px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  margin-bottom: 0.75rem;
}
.counselor-notes:focus { border-color: var(--amber); outline: none; }
.counselor-notes-save { font-size: 0.85rem; }

@media (max-width: 700px) {
  .detail-split { grid-template-columns: 1fr; }
  .answer-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .detail-status { flex-direction: column; }
}

/* ── Roadmap ── */
.roadmap-section {
  padding: 2rem 0 4rem;
}

.roadmap-picker {
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.roadmap-career {
  text-align: center;
  margin-bottom: 2rem;
}
.roadmap-field {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}
.roadmap-career h2 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.roadmap-career p { font-size: 0.95rem; color: var(--moss-deep); max-width: 500px; margin: 0 auto 0.75rem; }
.roadmap-pills { display: flex; gap: 0.5rem; justify-content: center; }

/* Timeline */
.roadmap-timeline h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-step {
  position: relative;
  padding: 0 0 2rem 30px;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  z-index: 1;
}

.timeline-dot--end {
  width: 18px;
  height: 18px;
  left: -24px;
  top: 2px;
}

.timeline-step--start .timeline-content h4 { color: var(--amber); }
.timeline-step--end .timeline-content h4 { color: var(--amber); }

.timeline-content {}
.timeline-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--moss);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.15rem;
}
.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--ink);
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--moss-deep);
  line-height: 1.55;
  margin: 0;
}

/* Details cards */
.roadmap-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.roadmap-detail-card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem;
}
.roadmap-detail-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.roadmap-detail-card p {
  font-size: 0.88rem;
  color: var(--moss-deep);
  line-height: 1.55;
  margin: 0;
}
.roadmap-detail-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.roadmap-detail-card li {
  font-size: 0.85rem;
  color: var(--moss-deep);
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.roadmap-detail-card li:last-child { border-bottom: none; }
.roadmap-detail-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
}

#roadmapOutput[hidden] { display: none; }

@media (max-width: 600px) {
  .roadmap-details { grid-template-columns: 1fr; }
}

/* ── Tools Grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.tool-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.tool-card__icon { margin-bottom: 0.6rem; }

.tool-card h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.tool-card p {
  font-size: 0.78rem;
  color: var(--moss-deep);
  margin: 0;
  line-height: 1.45;
}

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

/* ── Badges ── */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.15s;
}
.badge--earned {
  border-color: var(--amber);
}
.badge--locked {
  opacity: 0.45;
}

.badge__icon {
  margin-bottom: 0.5rem;
  color: var(--moss);
}
.badge--earned .badge__icon { color: var(--amber); }

.badge h4 {
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
  color: var(--ink);
}
.badge p {
  font-size: 0.72rem;
  color: var(--moss-deep);
  margin: 0 0 0.3rem;
}
.badge__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--amber);
}
.badge__hint {
  font-size: 0.72rem;
  color: var(--moss);
}

.badges-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.badges-progress__bar-track {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.badges-progress__bar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 4px;
  transition: width 0.3s;
}
.badges-progress__text {
  font-size: 0.82rem;
  color: var(--moss);
  white-space: nowrap;
}

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

/* ── Goals ── */
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}

.goal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.goal:last-child { border-bottom: none; }
.goal--done .goal__info h4 {
  text-decoration: line-through;
  color: var(--moss);
}

.goal__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0;
  transition: border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.goal__check:hover { border-color: var(--amber); }
.goal__check--readonly {
  cursor: default;
  pointer-events: none;
}
.goal__check--checked {
  background: var(--amber);
  border-color: var(--amber);
  color: #1C2B24;
  font-size: 13px;
  font-weight: 700;
  cursor: default;
}

.goal__info { flex: 1; }
.goal__info h4 {
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
  color: var(--ink);
}
.goal__meta {
  font-size: 0.75rem;
  color: var(--moss);
}

.goal-add {
  display: flex;
  gap: 0.5rem;
}
.goal-add__input {
  flex: 1;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.goal-add__input::placeholder { color: var(--moss); }
.goal-add__input:focus { border-color: var(--amber); outline: none; }
.goal-add__btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background 0.15s, transform 0.15s;
  z-index: 250;
}
.back-to-top:hover { background: var(--moss); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

.chat-bubble {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 240px;
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 12px 12px 3px 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.chat-bubble--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chat-bubble p {
  font-size: 0.85rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.45;
}
.chat-bubble strong { color: var(--amber); }
.chat-bubble__close {
  position: absolute;
  top: 0.3rem;
  right: 0.4rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--moss);
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.25rem;
}
.chat-bubble__close:hover { color: var(--ink); }

.chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: #1C2B24;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: background 0.15s, transform 0.15s;
}
.chat-fab:hover { background: var(--amber-deep); transform: scale(1.05); }
.chat-fab[hidden] { display: none; }

.chat-panel {
  width: 380px;
  max-height: 520px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.chat-header__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.chat-header__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--moss);
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.3rem;
}
.chat-header__close:hover { color: var(--ink); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
  max-height: 360px;
}

.chat-msg {
  max-width: 92%;
  font-size: 0.88rem;
  line-height: 1.5;
}
.chat-msg p { margin: 0 0 0.4rem; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg ul, .chat-msg ol {
  margin: 0.3rem 0 0.5rem 1.1rem;
  padding: 0;
}
.chat-msg li { margin-bottom: 0.2rem; }

.chat-msg--bot {
  align-self: flex-start;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px 12px 12px 3px;
  padding: 0.75rem 1rem;
  color: var(--ink);
}
.chat-msg--bot a {
  color: var(--route);
  text-decoration: underline;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--amber);
  color: #1C2B24;
  border-radius: 12px 3px 3px 12px;
  padding: 0.6rem 1rem;
  font-weight: 500;
}

.chat-msg--bot strong { color: var(--ink); }

.chat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0.5rem 0;
}
.chat-table th, .chat-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.chat-table th {
  font-weight: 600;
  color: var(--ink);
}
.chat-table td { color: var(--moss-deep); }
.chat-table td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--moss);
}

.chat-input-bar {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  border: none;
  background: var(--paper-deep);
  color: var(--ink);
  outline: none;
}
.chat-input::placeholder { color: var(--moss); }

.chat-send {
  padding: 0.75rem 1rem;
  background: var(--amber);
  border: none;
  color: #1C2B24;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.chat-send:hover { background: var(--amber-deep); }

@media (max-width: 500px) {
  .chat-widget { bottom: 1rem; right: 1rem; }
  .chat-panel {
    width: calc(100vw - 2rem);
    max-height: 70vh;
  }
}

/* ── Salary Calculator ── */
.salary-section {
  padding: 2rem 0 4rem;
}

.salary-controls {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.salary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.salary-field { display: flex; flex-direction: column; gap: 0.35rem; }

.salary-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}

.salary-select {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper-deep);
  color: var(--ink);
  cursor: pointer;
}
.salary-select:focus { border-color: var(--moss); }

.searchable-select {
  position: relative;
}

.salary-search {
  width: 100%;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper-deep);
  color: var(--ink);
}
.salary-search::placeholder { color: var(--moss); }
.salary-search:focus { border-color: var(--moss); outline: none; }

.searchable-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-top: none;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.searchable-list[hidden] { display: none; }

.searchable-group {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  padding: 0.5rem 0.85rem 0.25rem;
  background: var(--paper-deep);
  position: sticky;
  top: 0;
}

.searchable-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.85rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}
.searchable-item:hover,
.searchable-item--active {
  background: var(--line);
}

.searchable-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: var(--moss);
}

.salary-controls .btn { width: 100%; }

.salary-output {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.salary-output[hidden] { display: none; }

.salary-card {
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem;
  flex: 1;
  max-width: 300px;
  text-align: center;
}
.salary-card .eyebrow { display: block; margin-bottom: 0.5rem; }
.salary-card h3 { margin-bottom: 0.5rem; }

.salary-card--adjusted {
  border-color: var(--amber);
}
.salary-card--adjusted .eyebrow { color: var(--amber); }

.salary-range {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.salary-note {
  font-size: 0.8rem;
  color: var(--moss);
}

.salary-arrow {
  font-size: 1.5rem;
  color: var(--moss);
  flex-shrink: 0;
}

.salary-breakdown {
  max-width: 640px;
  margin: 0 auto 2rem;
}
.salary-breakdown[hidden] { display: none; }
.salary-breakdown h3 { margin-bottom: 0.75rem; }

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.breakdown-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}

.breakdown-value {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.breakdown-value--text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
}

.breakdown-to {
  font-size: 0.75rem;
  color: var(--moss);
}

.salary-compare { margin-top: 1.5rem; }
.salary-compare h3 { margin-bottom: 0.75rem; }

.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compare-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 0.75rem;
  align-items: center;
}
.compare-bar-row--active .compare-bar-label { color: var(--amber); font-weight: 600; }
.compare-bar-row--active .compare-bar-fill { background: var(--amber); }
.compare-bar-row--active .compare-bar-value { color: var(--amber); font-weight: 600; }

.compare-bar-label {
  font-size: 0.82rem;
  color: var(--moss-deep);
  text-align: right;
}

.compare-bar-track {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.compare-bar-fill {
  height: 100%;
  background: var(--moss);
  border-radius: 4px;
  transition: width 0.3s;
}

.compare-bar-value {
  font-size: 0.82rem;
  color: var(--moss-deep);
}

/* City Compare */
.city-compare-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.city-compare-header { text-align: center; margin-bottom: 2rem; }
.city-compare-header h2 { margin-bottom: 0.5rem; }
.city-compare-header .subhead { max-width: 500px; margin: 0 auto; }

.city-compare-controls {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.city-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.city-compare-controls .btn { width: 100%; }

.city-compare-output {
  max-width: 800px;
  margin: 0 auto;
}
.city-compare-output[hidden] { display: none; }
.city-compare-output h3 { margin-bottom: 1rem; }

.city-compare-table {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.city-compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.city-compare-table th,
.city-compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.city-compare-table th {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  background: var(--paper-deep);
}
.city-pay {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.city-above { color: var(--amber); }
.city-below { color: var(--route); }

.city-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.city-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 120px;
  gap: 0.75rem;
  align-items: center;
}
.city-bar-label {
  font-size: 0.85rem;
  color: var(--ink);
  text-align: right;
  font-weight: 500;
}
.city-bar-track {
  height: 10px;
  background: var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.city-bar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 5px;
  transition: width 0.4s;
}
.city-bar-value {
  font-size: 0.85rem;
  color: var(--moss-deep);
  font-weight: 500;
}

.city-verdict {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem;
}
.city-verdict p {
  font-size: 0.9rem;
  color: var(--moss-deep);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .city-slots { grid-template-columns: 1fr; }
  .city-bar-row { grid-template-columns: 100px 1fr 90px; }
}

.salary-disclaimer {
  max-width: 640px;
  margin: 2rem auto 0;
  font-size: 0.8rem;
  color: var(--moss);
  text-align: center;
}

@media (max-width: 600px) {
  .salary-row { grid-template-columns: 1fr; }
  .salary-output { flex-direction: column; }
  .salary-arrow { transform: rotate(90deg); }
  .salary-card { max-width: 100%; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .compare-bar-row { grid-template-columns: 80px 1fr 90px; }
}
