:root {
  --plum-950: #102d27;
  --plum-900: #17483c;
  --plum-700: #246653;
  --violet-700: #2b765f;
  --teal-800: #12644f;
  --teal-700: #16826a;
  --mint-300: #a8e6c2;
  --mint-100: #e7f8ee;
  --coral-700: #b45122;
  --amber-300: #ffd45a;
  --amber-100: #fff0ae;
  --cream: #f1faf4;
  --paper: #fffef8;
  --line: #9db9ad;
  --soft-line: #d3e4da;
  --code-bg: #142c27;
  --code-surface: #203c35;
  --code-ink: #fffdf4;
  --focus: #12644f;
}

.topbar { border-bottom-color: var(--amber-300); }
.global-search { border-color: #79ad96; background: #10382f; }
.nav-button:hover, .icon-button:hover { background: #246653; }
.curriculum-head { background: linear-gradient(135deg, var(--mint-100), #fff9d9 100%); }
.track-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.curriculum-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 18px 14px; }
.curriculum-filter-bar .filter-field:first-child,
.curriculum-filter-bar .filter-toggle { grid-column: 1 / -1; }
.filter-toggle { display: flex; align-items: center; gap: 9px; }
.filter-field.filter-toggle input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--teal-700); }
.progress-track { border-color: #7ca190; background: #e1eee7; }
.progress-badge, .progress-streak { background: #f4f8e5; }
.progress-badge { background: #fff1b8; }
.progress-streak { background: #dff7e9; }
.challenge-item.is-active { background: #fff3bd; }
.panel-tabs { background: #e2f5e9; }
/* Keep the quest tabs readable on the light responsive header surface. */
.panel-tabs .panel-kicker { color: var(--teal-800); }
.panel-tabs .panel-title { color: var(--plum-950); }
.panel-tabs .tab { color: var(--plum-700); }
.panel-tabs .tab:hover { color: var(--plum-950); }
.cohort-section { background: radial-gradient(circle at 12% 10%, #fff4b9 0, transparent 30%), linear-gradient(150deg, #fffdf2 0%, #eaf9ef 54%, #dff8ee 100%); }
.pricing-card { border-color: #a8c9b8; background: rgba(255, 255, 248, .94); }

@media (min-width: 1220px) {
  .topbar { grid-template-columns: auto minmax(260px, 1fr) auto; gap: 18px; padding-inline: 20px; }
  .menu-button, .close-menu, #mapButton { display: none; }
  .global-search { width: min(470px, 34vw); }
  .platform-shell { grid-template-columns: clamp(288px, 22vw, 328px) minmax(0, 1fr); }
  .curriculum {
    position: relative; z-index: 4; inset: auto; width: auto; height: 100%; max-height: none;
    transform: none; transition: none; box-shadow: none;
  }
  .workspace { grid-template-columns: minmax(330px, 39%) minmax(0, 61%); }
  .code-panel { grid-template-columns: minmax(300px, 62%) minmax(210px, 38%); }
  .backdrop { display: none; }
}

@media (max-width: 620px) {
  .lesson-content { padding: 28px clamp(17px, 5.5vw, 22px) 38px; }
  .cohort-hero h2 { font-size: clamp(2rem, 11vw, 3rem); }
  .founder-card, .pricing-card, .signup-card, .faq-card { padding: 22px 18px; }
}

@media (max-width: 420px) {
  .curriculum { width: 100%; }
  .curriculum-filter-bar { padding-inline: 14px; }
}
