/* =============================================================
   PROGRAMS — Phase 4: Professional Training course cards
   Dedicated .course-card (NOT the shared .program-card) so the
   home/hub cards are unaffected. Theme-aware via design tokens;
   equal-height cards, actions pinned to the bottom, native
   <details> curriculum accordion (no JavaScript).
   ============================================================= */

.course-grid {
  display: grid;
  grid-template-columns: 1fr;                 /* mobile: 1 col */
  gap: var(--space-6);
  align-items: stretch;                       /* equal height */
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.course-card:hover,
.course-card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.course-card__badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.course-card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}
.course-card__tagline {
  font-size: var(--font-size-base);
  color: var(--color-text-medium);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-4);
}

.course-card__meta,
.course-card__start,
.course-card__projects {
  font-size: var(--font-size-sm);
  color: var(--color-text-medium);
  margin-bottom: var(--space-3);
}
.course-card__meta { font-weight: var(--font-weight-semibold); color: var(--color-text-dark); }
.course-card__projects strong { color: var(--color-accent); font-size: var(--font-size-lg); }

/* Career-outcome tags */
.course-card__outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.course-card__tag {
  font-size: var(--font-size-xs);
  color: var(--color-accent);
  background: rgba(27, 110, 243, 0.10);
  border: 1px solid rgba(27, 110, 243, 0.22);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.course-card__tag--todo {
  color: var(--color-text-medium);
  background: transparent;
  border-style: dashed;
  border-color: var(--color-border);
}

/* Price */
.course-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.course-card__amount {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-dark);
}
.course-card__alt { font-size: var(--font-size-sm); color: var(--color-text-medium); }
.course-card__installments {
  font-size: var(--font-size-xs);
  color: var(--color-text-medium);
  margin-top: var(--space-1);
  margin-bottom: var(--space-2);
}

/* Full-payment option, shown under the instalment line */
.course-card__fullpay {
  font-size: var(--font-size-xs);
  color: var(--color-text-medium);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-5);
}
.course-card__fullpay strong { color: var(--color-text-dark); }

/* "To be confirmed" chip for guarded placeholders */
.course-card__tba {
  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-text-medium);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 6px;
}

/* ── Curriculum accordion (native <details>) ─────────────────── */
.course-card__curric {
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
}
.course-card__curric summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
}
.course-card__curric summary::-webkit-details-marker { display: none; }
.course-card__curric summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.course-card__chev { transition: transform 0.25s ease; }
.course-card__curric[open] .course-card__chev { transform: rotate(180deg); }

.course-card__curric-body { overflow: hidden; }
.course-card__curric[open] .course-card__curric-body {
  animation: curric-reveal 0.32s ease;
}
@keyframes curric-reveal {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 640px; }
}
.course-card__weeks { padding: 0 0 var(--space-3); }
.course-card__weeks li {
  font-size: var(--font-size-sm);
  color: var(--color-text-medium);
  line-height: var(--line-height-normal);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.course-card__weeks li:last-child { border-bottom: none; }
.course-card__week { font-weight: var(--font-weight-bold); color: var(--color-text-dark); }

/* ── Actions pinned to the bottom ────────────────────────────── */
.course-card__actions {
  margin-top: auto;                 /* pushes actions to card bottom */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
}
.course-card__enroll { justify-content: center; }

/* Quiet fallback under the grid — a link, not a button, so the primary
   action stays unambiguous. */
.course-help {
  margin-top: var(--space-8);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-medium);
}
/* --color-electric-bright, not --color-accent: the flat accent lands at
   4.36:1 here, just under the 4.5 needed for text this size. This token
   is theme-aware (#1553C0 on light, #4D8EFF on dark) and clears it. */
.course-help a {
  color: var(--color-electric-bright);
  text-decoration: underline;
  font-weight: var(--font-weight-semibold);
}
.course-help a:hover,
.course-help a:focus-visible { color: var(--color-text-primary); }

/* ── Breakpoints: 2-col tablet, 3-col desktop ────────────────── */
@media (min-width: 768px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .course-card,
  .course-card__chev { transition: none; }
  .course-card:hover,
  .course-card:focus-within { transform: none; }
  .course-card__curric[open] .course-card__curric-body { animation: none; }
}

/* ── Book Club: current book cover ───────────────────────────────
   Mobile first: cover above the title, then side by side once
   there is room. 2:3 is the standard book-cover ratio, and the
   fixed aspect stops the layout jumping while the image loads.
   ------------------------------------------------------------- */
.book-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.book-cover {
  width: 150px;
  aspect-ratio: 2 / 3;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius-md, 8px);
  object-fit: cover;
  border: 1px solid var(--color-border);
  /* Lifts the cover off a dark background without a hard edge */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.book-cover--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  border-style: dashed;
  box-shadow: none;
  text-align: center;
}
.book-cover__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
}
.book-cover__note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .book-head {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .book-cover { width: 180px; }
}

/* ── Book Club: progress + weekly modules ────────────────────────
   Four weekly sessions, each a native <details>. The current week
   is open on load and marked; past weeks dim back so the eye lands
   on what is next.
   ------------------------------------------------------------- */
.bc-progress {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
}
.bc-progress__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.bc-progress__week {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
}
.bc-progress__pct {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.bc-progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.bc-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--color-electric-bright);
  /* No min-width here. It was added so a tiny percentage stayed visible,
     but it applies at 0% too — the track showed a filled sliver while
     aria-valuenow said 0, so the bar disagreed with the screen reader
     and with the "0% complete" label beside it. The smallest non-zero
     step is one session (20% across five weeks), which needs no help. */
  transition: width 400ms ease;
}
.bc-progress__next {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.bc-progress__next strong { color: var(--color-text-primary); }

.bc-schedule__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.bc-weeks {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.bc-week {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bc-week--current { border-color: var(--color-electric-bright); }
.bc-week--past    { opacity: 0.78; }

.bc-week__summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
}
.bc-week__summary::-webkit-details-marker { display: none; }
.bc-week__summary:hover { background: var(--color-bg-hover); }
.bc-week__summary:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: -2px;
}
.bc-week__num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-electric-bright);
  flex-shrink: 0;
}
.bc-week__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.bc-week__module {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
}
.bc-week__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.bc-week__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bc-week__tag--now {
  color: var(--color-electric-bright);
  border: 1px solid var(--color-electric-bright);
}
.bc-week__tag--done {
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.bc-week__chev {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.bc-week[open] .bc-week__chev { transform: rotate(45deg); }

.bc-week__body {
  padding: 0 var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}
.bc-week__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-5);
}
.bc-week__facts {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.bc-week__facts dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.bc-week__facts dd {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  line-height: 1.6;
}
.bc-week__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-violet-light);
  margin-bottom: var(--space-3);
}
.bc-week__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.bc-week__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.bc-week__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-electric-bright);
}
.bc-week__pending {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
}
.bc-week__watch { margin-top: var(--space-4); }

@media (min-width: 640px) {
  .bc-week__facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-progress__bar,
  .bc-week__chev { transition: none; }
}

/* ── Mentorship ──────────────────────────────────────────────────
   Blues and neutrals only — --color-electric-bright for accents,
   --color-cta for the primary action. No violet/rose/teal here, so
   the page reads as one brand rather than a swatch board.
   ------------------------------------------------------------- */
.mentor-intro { max-width: 62ch; }
.mentor-intro__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}
.mentor-intro__body p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}
.mentor-intro__body p + p { margin-top: var(--space-5); }

/* Steps: one column on mobile, two from 640px, four on wide screens */
.mentor-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  counter-reset: none;
}
.mentor-step {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  /* The top rule reads as a progress tick across the row of cards */
  border-top: 3px solid var(--color-electric-bright);
}
.mentor-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  color: var(--color-electric-bright);
  margin-bottom: var(--space-3);
}
.mentor-step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.mentor-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Closing CTA */
.mentor-cta {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  max-width: 62ch;
  margin: 0 auto;
}
.mentor-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}
.mentor-cta__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}
.mentor-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 640px) {
  .mentor-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .mentor-steps { grid-template-columns: repeat(4, 1fr); }
}

/* Waitlist form: reuses the submission-form layout — one column on
   mobile, form plus aside once there is room. */
.waitlist-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 900px) {
  .waitlist-layout { grid-template-columns: 1.5fr 1fr; }
}

/* ── Mentorship banner ───────────────────────────────────────────
   A wide brand image between the intro and the process steps. The
   fixed aspect ratio holds its space while the image loads, so the
   steps below do not jump.
   ------------------------------------------------------------- */
.mentor-banner {
  margin: var(--space-8) 0 0;
  max-width: 900px;
}
.mentor-banner__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.mentor-banner__caption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Placeholder: the same mentor → brand → mentee idea, drawn in CSS,
   so the section still reads before the artwork is uploaded. */
.mentor-banner__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  aspect-ratio: 3 / 2;
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
}
.mentor-banner__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: clamp(84px, 22vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--color-electric-bright);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  padding: var(--space-2);
}
.mentor-banner__node--brand {
  border-style: solid;
  border-color: var(--color-cta);
  width: clamp(96px, 26vw, 152px);
}
.mentor-banner__link {
  width: clamp(16px, 5vw, 48px);
  height: 2px;
  background: var(--color-electric-bright);
  flex-shrink: 0;
}

/* Book Club plans: monthly and quarterly side by side in the price card */
.bc-plans {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.bc-plan + .bc-plan {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.bc-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.bc-plan__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-muted);
}
.bc-plan__save {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-teal-light);
  border: 1px solid var(--color-teal-light);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.bc-plan__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.1;
}
.bc-plan__alt {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}
.bc-plan__rate {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Receipt values that are plain text rather than links, so a pod name
   and a project title read the same way as the links beside them. */
.submit-receipt__value {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  overflow-wrap: anywhere;
}
