:root {
  --navy: #12324f;
  --navy-deep: #0c2438;
  --teal: #0f766e;
  --coral: #c9431f;
  --coral-hover: #a8361a;
  --sand: #f7f4ee;
  --mint: #e6f3f1;
  --ink: #1c2733;
  --slate: #5a6878;
  --line: #e4ddd2;
  --white: #ffffff;
  --warn: #8a5a00;
  --warn-bg: #fff6e4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 50, 79, 0.08);
  --max: 1120px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; color: var(--navy); margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.8em; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.muted { color: var(--slate); }
.banner {
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.92rem;
  text-align: center;
  padding: 8px 16px;
}
.topbar {
  background: var(--navy-deep);
  color: #d7e3ee;
  font-size: 0.92rem;
  padding: 8px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #d7e3ee; font-weight: 700; }
.topbar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar { position: relative; z-index: 30; }
a.staff-lock {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  color: #8aa0b3; background: transparent; border-radius: 8px;
  text-decoration: none; font-weight: 400;
}
a.staff-lock svg { display: block; }
a.staff-lock:hover { color: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.45); }
.staff-toggle {
  background: transparent; border: 0; color: #8aa0b3;
  font: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 4px 6px; cursor: pointer; border-radius: 8px;
}
.staff-toggle:hover { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.45); }
footer.site a.staff-signin { font-size: 0.78rem; font-weight: 500; color: #8aa0b3; text-decoration: none; }
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 800; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; }
.tagline { display: block; font-size: 0.72rem; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--navy);
  display: grid; place-items: center;
}
.mark svg { display: block; }
.links { display: flex; align-items: center; gap: 18px; }
.links a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1rem; }
.links a[aria-current="page"] { color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--coral); color: white; text-decoration: none;
  border: 0; border-radius: 999px; padding: 12px 18px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--coral-hover); }
.btn.secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.secondary:hover { background: var(--sand); }
.btn.small { padding: 8px 14px; font-size: 0.95rem; }
select.role-select { width: auto; min-width: 8.5rem; padding: 8px 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 700; color: var(--navy); }
.menu-btn svg path { stroke: currentColor; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; flex: none; order: 3; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--navy); cursor: pointer; font: inherit; font-weight: 700; font-size: 0.9rem;
}
.theme-btn svg { display: block; flex: none; }
.menu-theme { display: none; }
.topbar .theme-btn { color: #d7e3ee; border-color: rgba(215, 227, 238, 0.4); }
.brand { order: 1; }
.links { order: 2; margin-left: auto; }
.menu-btn { order: 4; }

.hero { background: linear-gradient(180deg, var(--sand) 0%, #fff 70%); padding: 48px 0 28px; }
#cost.section { padding-top: 8px; scroll-margin-top: 88px; }
.hero .card { margin-top: 8px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: start; }
.pill {
  display: inline-block; background: var(--mint); color: var(--teal);
  border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 0.88rem; margin-bottom: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { background: white; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 0.92rem; }
button.chip { font: inherit; color: var(--navy); cursor: pointer; }
button.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); color: var(--teal); }
.signin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.signin-row .btn { gap: 8px; width: 100%; }
.mail-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.form-error { color: var(--coral); font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.card, .panel {
  background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel { padding: 20px; }
.hero form.panel { padding: 14px 16px; }
.panel h2 { font-size: 1.35rem; }
.hero form.panel h2 { font-size: 1.15rem; margin: 0; }
.hero form.panel .muted { font-size: 0.88rem; margin: 4px 0 2px; }
.hero form.panel label { margin: 6px 0 2px; font-size: 0.85rem; }
.hero form.panel input,
.hero form.panel select { padding: 7px 10px; border-radius: 8px; }
.hero form.panel .row2 { gap: 8px; }
.hero form.panel .fine { font-size: 0.78rem; margin-top: 4px; }
.hero form.panel p { margin: 8px 0 0; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; border: 1px solid #d5cec4; border-radius: 10px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: white;
}
textarea { min-height: 90px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; }
.peek { position: relative; display: block; }
.peek input { padding-right: 96px; }
.peek-btn {
  position: absolute; z-index: 1; right: 4px; top: 50%; transform: translateY(-50%);
  height: 44px; min-width: 44px; width: auto; padding: 0 10px; border: 0; border-radius: 8px;
  background: white; color: var(--navy); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: 0.82rem; font-weight: 700;
  user-select: none; touch-action: manipulation; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.peek-btn:hover { color: var(--teal); }
html[data-theme="dark"] .peek-btn { background: #162636; color: #e8f1f8; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fine { font-size: 0.85rem; color: var(--slate); margin-top: 8px; }
.section { padding: 56px 0; }
.section.sand { background: var(--sand); }
.grid-5, .grid-4, .grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card { padding: 18px; }
a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; cursor: pointer; min-height: 100%; }
a.card:hover { border-color: var(--teal); }
.card h3 { margin-bottom: 6px; }
.card .more { font-weight: 700; text-decoration: none; color: var(--teal); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: white; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: white; font-family: var(--display); font-weight: 800; margin-bottom: 8px;
}
.check { list-style: none; padding: 0; }
.check li { padding-left: 1.4em; position: relative; margin: 0.45em 0; }
.check li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--teal); }
.cities { display: flex; flex-wrap: wrap; gap: 8px; }
.cities span { background: var(--mint); color: var(--navy); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 0.92rem; }
details.faq { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.band { background: var(--navy); color: white; padding: 36px 0; }
.band h2, .band p { color: white; }
.band form { display: flex; gap: 8px; flex-wrap: wrap; }
.band input { max-width: 320px; }
footer.site { background: var(--navy-deep); color: #d5e0ea; padding: 36px 0 20px; font-size: 0.95rem; }
footer.site a { color: #d5e0ea; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.course {
  display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: white; box-shadow: var(--shadow);
}
.course .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--sand); border-radius: 999px; padding: 3px 8px; font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.price { font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.rate-table { width: 100%; margin: 8px 0 4px; font-size: 0.95rem; }
.rate-table th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.rate-table th:not(:first-child),
.rate-table td:not(:first-child) { text-align: right; }
.rate-table td:first-child { font-weight: 700; color: var(--navy); }
.rate-table td:nth-child(n+2) { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 12px; }
.price-pair.one { grid-template-columns: 1fr; }
.price-pair > div { background: var(--sand); border-radius: 10px; padding: 8px 10px; }
.price-pair span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.price-pair strong { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; color: var(--navy); }
.course .price-pair { margin-top: 4px; }
.grid-4 > .card { display: flex; flex-direction: column; }
.grid-4 > .card .more { margin-top: 10px; }
.outline { margin: 8px 0 0; padding-left: 1.1em; }
.outline li { margin: 0.2em 0; }
.hidden-tile { display: none !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px; vertical-align: top; }
th { color: var(--navy); }
.note { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; color: #6d4700; }
.session { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ok { background: var(--mint); border-radius: 12px; padding: 12px 14px; color: var(--navy); display: none; }
fieldset { border: 0; margin: 14px 0 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 4px; }
fieldset label { font-weight: 500; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.staff-menu { position: relative; }
/* Never show a signed-in email or account chip in the public header. */
header.site #account-link,
header.site [data-account],
header.site [data-user],
header.site [data-user-email],
header.site [data-grok-account],
header.site .user-button,
header.site .auth-user,
header.site .cl-userButton {
  display: none !important;
}
.staff-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 180px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow);
}
.staff-pop a, .staff-pop button {
  background: none; border: 0; text-align: left; padding: 8px 10px; border-radius: 8px;
  font: inherit; font-weight: 700; color: var(--navy); text-decoration: none; cursor: pointer;
}
.staff-pop a:hover, .staff-pop button:hover { background: var(--sand); }
.course-acc { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; background: var(--white); }
.course-acc summary { cursor: pointer; font-weight: 800; padding: 14px 16px; }
.course-acc .class-list, .course-acc > p, .course-acc > .btn, .course-acc > .price-block { margin: 0 16px 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
th[data-sort] { cursor: pointer; }
@media (max-width: 700px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 8px; background: var(--white); }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 4px; }
  table.stack td::before { content: attr(data-label); font-weight: 700; color: var(--slate); }
}


@media (max-width: 900px) {
  .hero-grid, .grid-5, .grid-4, .grid-3, .steps, .foot, .grid-2, .session { grid-template-columns: 1fr; }
  .links { display: none; }
  .links.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; z-index: 40; max-height: calc(100vh - 80px); overflow: auto; }
  .links.open .menu-theme {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; margin-top: 8px; padding: 12px 2px 4px;
    background: none; border: 0; border-top: 1px solid var(--line);
    font: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
  }
  .switch {
    width: 44px; height: 26px; border-radius: 999px; background: #c5d0da;
    position: relative; flex: none;
  }
  .switch::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%; background: white;
    transition: transform 0.15s ease;
  }
  .menu-theme[aria-pressed="true"] .switch { background: var(--teal); }
  .menu-theme[aria-pressed="true"] .switch::after { transform: translateX(18px); }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .theme-btn { width: 42px; padding: 0; margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .links { margin-left: 0; }
  header.site { position: sticky; }
  .nav { position: relative; }
  .mobile-bar {
    display: flex; position: sticky; bottom: 0; background: white; border-top: 1px solid var(--line);
    padding: 8px; gap: 8px; z-index: 30;
  }
  .mobile-bar a { flex: 1; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --sand: #12202c;
  --ink: #e7eef4;
  --slate: #a9b8c6;
  --line: #2c4154;
  --white: #0f1c28;
  --mint: #16383a;
  --warn: #f0c36a;
  --warn-bg: #3a2e14;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] body,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .links a,
html[data-theme="dark"] .price,
html[data-theme="dark"] .price-pair strong,
html[data-theme="dark"] .rate-table td,
html[data-theme="dark"] th,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .cities span,
html[data-theme="dark"] .ok,
html[data-theme="dark"] button.chip,
html[data-theme="dark"] details.faq summary,
html[data-theme="dark"] .theme-btn,
html[data-theme="dark"] .menu-theme,
html[data-theme="dark"] .menu-btn { color: #e8f1f8; }
html[data-theme="dark"] a,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .links a[aria-current="page"] { color: #7dddd4; }
html[data-theme="dark"] .links a { color: #e8f1f8; }
html[data-theme="dark"] header.site { background: rgba(15, 28, 40, 0.94); }
html[data-theme="dark"] .hero { background: linear-gradient(180deg, var(--sand) 0%, var(--white) 70%); }
html[data-theme="dark"] .chip,
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .step,
html[data-theme="dark"] details.faq,
html[data-theme="dark"] .course,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .mobile-bar,
html[data-theme="dark"] .links.open { background: #162636; color: #e8f1f8; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { border-color: var(--line); }
html[data-theme="dark"] .btn.secondary { color: #e8f1f8; border-color: #8eacbf; }
html[data-theme="dark"] .btn.secondary:hover { background: #1c3346; }
html[data-theme="dark"] .pill { color: #7dddd4; }
html[data-theme="dark"] .btn,
html[data-theme="dark"] .btn.small { color: white; }
html[data-theme="dark"] footer.site,
html[data-theme="dark"] footer.site a,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .band,
html[data-theme="dark"] .band h2,
html[data-theme="dark"] .band p { color: #d5e0ea; }
html[data-theme="dark"] footer.site a.staff-signin { color: #8aa0b3; }
