/* ── Reset inherited globals from com.css ── */
.curric-hero p,
.curric-body p {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: inherit;
  margin: 0;
}

.curric-hero h1 {
  font-family: 'Oswald', sans-serif;
  color: white;
}

button.phase-btn {
  font-family: 'Oswald', sans-serif;
  background-color: white;
  color: #555;
  width: auto;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

button.phase-btn:hover {
  background-color: white;
  border-color: #999;
  color: #111;
}

button.phase-btn.active {
  color: white;
  border-color: transparent;
}

/* ── Hero ── */
.curric-hero {
  background: #0d0d0d;
  padding: 56px 24px 44px;
  text-align: center;
}

.curric-hero__inner {
  max-width: 640px;
  margin: 0 auto;
}

.curric-hero__eyebrow {
  font-family: 'Oswald', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4) !important;
  margin-bottom: 14px !important;
}

.curric-hero__title {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 14px;
  color: white;
}

.curric-hero__sub {
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  letter-spacing: 0.08em;
  margin-bottom: 40px !important;
}

.curric-hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.curric-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.curric-stat__num {
  font-family: 'Oswald', sans-serif;
  font-size: 34px;
  font-weight: 500;
  color: white;
  line-height: 1;
}

.curric-stat__label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Body ── */
.curric-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* ── Prereqs ── */
.prereq-card {
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.prereq-card__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.prereq-card__title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.02em;
}

.prereq-card__note {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: auto;
}

.prereq-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 24px;
}

.prereq-card__item {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  color: #555;
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.prereq-card__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #bbb;
  font-size: 10px;
  top: 1px;
}

/* ── Phase nav ── */
.phase-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.phase-btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Phase info ── */
.phase-info {
  background: #111;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-left: 3px solid var(--phase-color, #555);
}

.phase-info__title {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: white;
  margin-bottom: 5px;
}

.phase-info__sub {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ── Weeks list ── */
.weeks-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ── Progress bar ── */
.curric-progress {
  padding: 14px 0 18px;
}

.curric-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}

.curric-progress__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.curric-progress__pct {
  font-size: 12px;
  color: #555;
}

.curric-progress__bar {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.curric-progress__done {
  height: 100%;
  background: #16a34a;
  border-radius: 3px 0 0 3px;
  transition: width 0.5s ease;
}

.curric-progress__inprog {
  height: 100%;
  background: #f59e0b;
  transition: width 0.5s ease;
}

/* ── Status badge ── */
.curric-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.curric-status--done   { background: #d1fae5; color: #065f46; }
.curric-status--inprog { background: #fef3c7; color: #92400e; }
.curric-status--todo   { background: #f3f4f6; color: #6b7280; }

/* ── Week card ── */
.week-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-left: 3px solid var(--phase-color, #333);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.week-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.week-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  user-select: none;
}

.week-card__num {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaa;
  min-width: 54px;
  flex-shrink: 0;
}

.week-card__topic {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  flex: 1;
  letter-spacing: 0.01em;
}

.badge {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--hw {
  background: #d1fae5;
  color: #065f46;
}

.badge--sim {
  background: #ede9fe;
  color: #5b21b6;
}

.week-card__chevron {
  font-size: 9px;
  color: #ccc;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.week-card.open .week-card__chevron {
  transform: rotate(180deg);
}

/* ── Week body (accordion) ── */
.week-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.week-body.open {
  max-height: 2400px;
}

.week-body__inner {
  border-top: 1px solid #f0f0f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Week sections ── */
.week-section__label {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.week-section__text {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  color: #444;
  line-height: 1.65;
}

/* Study */
.week-section--study .week-section__label {
  color: #888;
}

.study-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.study-list li {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  color: #444;
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.study-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #ccc;
  font-size: 11px;
  top: 1px;
}

/* Simulation */
.week-section--sim {
  background: #f5f3ff;
  border-radius: 5px;
  padding: 12px 14px;
}

.week-section--sim .week-section__label {
  color: #6d28d9;
}

.week-section--sim .week-section__text {
  color: #3b1f8c;
}

/* Hardware */
.week-section--hw {
  background: #f0fdf4;
  border-radius: 5px;
  padding: 12px 14px;
}

.week-section--hw .week-section__label {
  color: #166534;
}

.week-section--hw .week-section__text {
  color: #14532d;
}

/* Video */
.week-section--video {
  background: #fefce8;
  border-radius: 5px;
  padding: 12px 14px;
  border-left: 3px solid #fbbf24;
}

.week-section--video .week-section__label {
  color: #92400e;
}

.week-section--video .week-section__text {
  color: #111;
  font-style: italic;
}

/* Embed */
.week-section--embed {
  border-radius: 5px;
  overflow: hidden;
}

.week-section--embed .week-section__label {
  color: #888;
  padding: 0 0 8px;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #000;
  margin-top: 10px;
}

.video-embed:first-of-type {
  margin-top: 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .prereq-card__grid {
    grid-template-columns: 1fr;
  }

  .curric-hero__stats {
    gap: 28px;
  }

  .phase-nav {
    gap: 6px;
  }

  button.phase-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .week-card__topic {
    font-size: 13px;
  }
}
