/* Learner-facing syllabus and module outline */

.syllabus-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 2.5rem;
  padding: clamp(1.75rem, 5vw, 3.75rem);
  border: 1px solid rgba(0, 91, 92, 0.18);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(238, 121, 82, 0.22), transparent 28%),
    linear-gradient(135deg, #f1f8f7 0%, #fffaf3 100%);
  box-shadow: 0 1.25rem 3rem rgba(27, 48, 54, 0.09);
}

.syllabus-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 14rem;
  height: 14rem;
  border: 2rem solid rgba(0, 91, 92, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.syllabus-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: #006466;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.syllabus-hero .hero-title {
  display: block;
  max-width: 18ch;
  margin: 0 0 1rem;
  border: 0;
  color: #18383d;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.syllabus-hero .hero-title p {
  margin: 0;
}

.syllabus-hero > p {
  max-width: 65ch;
  color: #3e5559;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.65;
}

.course-meta,
.learning-path,
.calendar-grid,
.quick-start {
  display: grid;
  gap: 1rem;
}

.course-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.7rem 0;
}

.meta-pill {
  min-height: 5.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 91, 92, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  color: #3e5559;
  line-height: 1.45;
}

.meta-pill strong {
  color: #18383d;
  font-size: 1.03rem;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.course-actions .btn {
  min-height: 2.75rem;
  padding: 0.65rem 1.05rem;
  border-radius: 0.65rem;
  font-weight: 700;
}

.course-actions .btn:focus-visible,
.syllabus-nav a:focus-visible,
.support-card a:focus-visible {
  outline: 0.2rem solid #ee7952;
  outline-offset: 0.2rem;
}

.syllabus-nav {
  margin: -1rem 0 2.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d8e5e3;
  border-radius: 0.8rem;
  background: #fff;
  color: #44595d;
  line-height: 1.8;
}

.syllabus-nav p {
  margin: 0;
}

.syllabus-nav a {
  display: inline-block;
  margin: 0 0.12rem;
  text-underline-offset: 0.16em;
}

.quick-start {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0 2.5rem;
}

.quick-start > div {
  padding: 1.25rem 1.35rem;
  border-left: 0.3rem solid #ee7952;
  border-radius: 0 0.9rem 0.9rem 0;
  background: #fff8ef;
}

.quick-start h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.learning-path {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.25rem 0 2.75rem;
}

.path-stage {
  position: relative;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid #d8e5e3;
  border-top: 0.35rem solid #006466;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0.6rem 1.4rem rgba(27, 48, 54, 0.06);
  color: #44595d;
}

.path-stage strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #18383d;
}

.calendar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.25rem 0 1.5rem;
}

.calendar-card {
  padding: 1rem 1.1rem;
  border: 1px solid #e7ddd0;
  border-radius: 0.85rem;
  background: #fffaf3;
  color: #4b5c60;
  line-height: 1.5;
}

.calendar-card strong {
  color: #18383d;
}

.module-list {
  display: grid;
  gap: 1.6rem;
  margin: 1.5rem 0 3rem;
}

.module-card {
  overflow: hidden;
  border: 1px solid #d7e3e1;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(27, 48, 54, 0.07);
}

.module-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem;
  align-items: start;
  padding: 1.45rem 1.5rem 1.25rem;
  background: linear-gradient(120deg, #f1f8f7 0%, #fff 65%);
}

.module-number {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 0.85rem;
  background: #006466;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.module-heading > p:first-child {
  margin: 0 0 0.3rem;
  color: #006466;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.module-heading h3 {
  margin: 0 0 0.4rem;
  color: #18383d;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
}

.module-heading > p:last-child {
  margin: 0;
  color: #52666a;
}

.module-effort {
  white-space: nowrap;
  padding: 0.45rem 0.7rem;
  border: 1px solid #d9e5e4;
  border-radius: 999px;
  background: #fff;
  color: #44595d;
  font-size: 0.82rem;
}

.module-outcome {
  margin: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid #dce8e6;
  border-bottom: 1px solid #dce8e6;
  background: #f8fbfa;
  color: #2f484d;
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
}

.module-section {
  padding: 1.25rem 1.5rem 1.1rem;
}

.module-section + .module-section {
  border-left: 1px solid #e2e9e8;
}

.module-section h4 {
  margin: 0 0 0.75rem;
  color: #18383d;
  font-size: 1rem;
}

.module-section ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.module-section li + li {
  margin-top: 0.45rem;
}

.completion-check {
  padding: 0.95rem 1.5rem 1.05rem;
  border-top: 1px solid #f0d7ca;
  background: #fff8f3;
  color: #4e5c5f;
}

.completion-check p {
  margin: 0;
}

.success-grid,
.support-grid,
.rhythm-grid,
.tool-grid {
  display: grid;
  gap: 1rem;
}

.success-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.25rem 0;
}

.success-card,
.support-card,
.rhythm-card,
.tool-card,
.process-intro,
.workload-note {
  padding: 1.15rem 1.25rem;
  border: 1px solid #d8e5e3;
  border-radius: 0.9rem;
  background: #fff;
}

.success-card h3,
.support-card h3,
.rhythm-card h4,
.tool-card h3,
.workload-note h3 {
  margin-top: 0;
  color: #18383d;
}

.success-card > :last-child,
.support-card > :last-child,
.rhythm-card > :last-child,
.tool-card > :last-child,
.process-intro > :last-child,
.workload-note > :last-child {
  margin-bottom: 0;
}

.success-card {
  border-top: 0.3rem solid #006466;
}

.workload-note {
  margin: 1rem 0 2.5rem;
  border-color: #f0d7ca;
  background: #fff8f3;
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.25rem 0 2rem;
}

.support-card {
  border-top: 0.3rem solid #ee7952;
}

.support-card > p:first-of-type a {
  font-weight: 700;
}

.process-intro {
  margin: 0 0 1.25rem;
  border-left: 0.35rem solid #006466;
  background: #f1f8f7;
  font-size: 1.05rem;
}

.rhythm-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 1.25rem;
}

.rhythm-card {
  position: relative;
  padding-top: 1.35rem;
  border-top: 0.35rem solid #006466;
}

.rhythm-card:nth-child(2) {
  border-top-color: #ee7952;
}

.rhythm-card:nth-child(3) {
  border-top-color: #705c8d;
}

.tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.25rem 0 2.5rem;
}

.tool-card-wide {
  grid-row: span 2;
}

.studio-timeline {
  max-width: 52rem;
  padding: 1rem 1.25rem;
  border-left: 0.3rem solid #006466;
  background: #f8fbfa;
}

.studio-timeline ol {
  margin-bottom: 0;
}

.studio-timeline li + li {
  margin-top: 0.4rem;
}

table {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .course-meta,
  .learning-path,
  .rhythm-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-header {
    grid-template-columns: auto 1fr;
  }

  .module-effort {
    grid-column: 2;
    justify-self: start;
  }

  .tool-card-wide {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .syllabus-hero {
    margin-right: -0.35rem;
    margin-left: -0.35rem;
    padding: 1.45rem 1.1rem;
    border-radius: 1rem;
  }

  .quick-start,
  .calendar-grid,
  .module-grid,
  .success-grid,
  .support-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .syllabus-nav {
    margin-top: -0.5rem;
    line-height: 2;
  }

  .module-header {
    grid-template-columns: 2.6rem 1fr;
    gap: 0.8rem;
    padding: 1.15rem 1rem;
  }

  .module-number {
    width: 2.6rem;
    height: 2.6rem;
  }

  .module-effort {
    grid-column: 1 / -1;
  }

  .module-outcome,
  .module-section,
  .completion-check {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .module-section + .module-section {
    border-top: 1px solid #e2e9e8;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media print {
  .course-actions,
  .syllabus-nav {
    display: none;
  }

  .syllabus-hero,
  .module-card,
  .path-stage,
  .success-card,
  .support-card,
  .rhythm-card,
  .tool-card {
    box-shadow: none;
  }

  .module-card {
    break-inside: auto;
  }

  .module-header,
  .module-outcome,
  .completion-check,
  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  .module-grid,
  .success-grid,
  .support-grid,
  .rhythm-grid,
  .tool-grid {
    break-inside: avoid;
  }

  a[href^="http"]::after {
    overflow-wrap: anywhere;
  }
}
