.edugen-course-story {
  --course-ink: #182942;
  --course-muted: #4c617a;
  --course-line: #dae6f5;
  --course-azur: #255fae;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  padding-block: clamp(66px, 8.6vw, 125px) clamp(58px, 7vw, 102px);
  background: #f8f9fc;
  color: var(--course-ink);
  font-family: "Google Sans Flex Variable", "Google Sans Flex Variable Placeholder", Arial, sans-serif;
}

.edugen-course-story, .edugen-course-story * { box-sizing: border-box; }

.edugen-story-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1270px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

.edugen-story-head {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: end;
  gap: 16px clamp(24px, 5vw, 70px);
  margin-block-end: clamp(24px, 4vw, 48px);
}

.edugen-story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid var(--course-line);
  border-radius: 99px;
  background: #fff;
  color: var(--course-azur);
  font-size: 12px;
  font-weight: 760;
}

.edugen-story-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a73dd;
  content: "";
}

#edugen-course-title {
  margin: 0;
  font-family: "Stack Sans Headline", "Stack Sans Headline Placeholder", sans-serif;
  font-size: clamp(36px, 4.8vw, 66px);
  font-weight: var(--edugen-display-weight);
  line-height: 1.04;
  letter-spacing: var(--edugen-display-tracking);
  color: var(--edugen-ink);
  text-wrap: balance;
}

.edugen-story-intro {
  max-width: 47ch;
  margin: 0;
  color: var(--course-muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.5;
}

.edugen-course-blueprint {
  overflow: hidden;
  border: 1px solid #d5e3f6;
  border-radius: 26px;
  background: #edf4ff url('/edugen-preview/story-course-art.svg') center / cover;
  box-shadow: 0 23px 55px -40px #243c67a3;
}

.edugen-blueprint-bar, .edugen-blueprint-review {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px clamp(14px, 2vw, 25px);
  background: #ffffffea;
}

.edugen-blueprint-bar { flex-wrap: wrap; border-bottom: 1px solid var(--course-line); }
.edugen-blueprint-bar strong, .edugen-blueprint-bar small { display: block; }
.edugen-blueprint-bar strong { font-size: 16px; letter-spacing: -.02em; }
.edugen-blueprint-bar small { color: var(--course-muted); font-size: 11px; font-weight: 730; }

.edugen-blueprint-mark, .edugen-blueprint-check {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid #d5e4fa;
  border-radius: 11px;
  background: #eaf2ff;
  color: #245ca7;
  font-weight: 780;
}

.edugen-blueprint-mark svg { width: 23px; }

.edugen-blueprint-outline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.edugen-blueprint-outline li {
  padding: 4px 8px;
  border-radius: 7px;
  background: #edf3fb;
  color: #36577e;
  font-size: 11px;
  font-weight: 700;
}

.edugen-blueprint-outline [aria-current="step"] {
  background: #dceaff;
  color: #184d94;
  box-shadow: inset 0 0 0 1px #c8ddfb;
}

.edugen-blueprint-flow {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.24fr) minmax(0, .96fr);
  gap: 19px;
  margin: 0;
  padding: clamp(12px, 2vw, 22px);
  list-style: none;
}

.edugen-blueprint-stage {
  position: relative;
  min-width: 0;
  padding: clamp(13px, 1.4vw, 21px);
  border: 1px solid #d8e6f7;
  border-radius: 16px;
  background: #fcfdfff5;
}

.edugen-blueprint-stage:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -15px;
  width: 8px;
  height: 8px;
  transform: rotate(-45deg);
  border: solid #4c79b6;
  border-width: 0 2px 2px 0;
  content: "";
}

.edugen-blueprint-stage header { display: flex; align-items: center; gap: 8px; }
.edugen-blueprint-stage header span {
  padding: 4px 6px;
  border-radius: 6px;
  background: #e8f1ff;
  color: #1b559e;
  font-size: 11px;
  font-weight: 800;
}

.edugen-blueprint-stage :is(h3, h5) {
  margin: 0;
  font: var(--edugen-small-weight) clamp(16px, 1.65vw, 23px)/1.12 "Stack Sans Headline", sans-serif;
  letter-spacing: var(--edugen-small-tracking);
  text-wrap: balance;
}

.edugen-blueprint-stage > p {
  min-height: 2.8em;
  margin: 8px 0 14px;
  color: var(--course-muted);
  font-size: 13px;
  line-height: 1.4;
}

.edugen-blueprint-stage small, .edugen-blueprint-stage strong { display: block; }
.edugen-blueprint-stage small { font-size: 11px; font-weight: 730; line-height: 1.2; }
.edugen-blueprint-stage strong { margin-top: 3px; font-size: 14px; font-weight: 755; line-height: 1.25; }
.edugen-blueprint-files, .edugen-blueprint-formats { margin: 0; padding: 0; list-style: none; }
.edugen-blueprint-files { display: grid; gap: 7px; }

.edugen-blueprint-files li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  border: 1px solid #e8ddd4;
  border-radius: 9px;
  background: linear-gradient(115deg, #fff8f1, #fff);
}

.edugen-blueprint-files li > span {
  padding: 7px 5px;
  border: 1px solid #f0d5c1;
  border-radius: 5px;
  background: #fff0e5;
  color: #8d492a;
  font-size: 11px;
  font-weight: 800;
}

.edugen-blueprint-files small { color: var(--course-muted); }

.edugen-blueprint-stage--model {
  border-color: #294c78;
  background:
    linear-gradient(#c4d9f311 1px, transparent 1px) 0 0 / 19px 19px,
    linear-gradient(90deg, #c4d9f311 1px, transparent 1px) 0 0 / 19px 19px,
    linear-gradient(145deg, #1b3456, #11233e);
  color: #f8fbff;
}

.edugen-blueprint-stage--model > p { color: #d1e0f4; }
.edugen-blueprint-stage--model header span { background: #395b86; color: #fff; }
.edugen-blueprint-goal, .edugen-blueprint-skills > div, .edugen-blueprint-misconception {
  padding: 8px 9px;
  border: 1px solid #5076a5;
  border-radius: 9px;
  background: #203e61;
}

.edugen-blueprint-goal {
  background: #f1f7ff;
  border-color: #d6e7ff;
  color: #183b68;
}

.edugen-blueprint-stage--model small { color: #b9d3f3; }
.edugen-blueprint-goal small { color: #335d91; }
.edugen-blueprint-branches { display: block; width: 100%; height: 18px; color: #82afe8; }
.edugen-blueprint-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.edugen-blueprint-misconception {
  margin-top: 11px;
  border-color: #e9b798;
  background: #ffe9da;
  color: #5b3829;
}
.edugen-blueprint-misconception small { color: #873e20; }

.edugen-blueprint-paths {
  padding: 9px;
  border: 1px solid #dce8f8;
  border-radius: 12px;
  background:
    radial-gradient(#4785cf32 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(130deg, #eef5ff, #fff4eb);
}

.edugen-blueprint-shared-goal {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d3e4fa;
  border-radius: 8px;
  background: #fff;
}

.edugen-blueprint-shared-goal svg { width: 21px; flex: 0 0 21px; color: #276ac2; }
.edugen-blueprint-shared-goal small { color: #416087; }
.edugen-blueprint-path-fork { display: block; width: 100%; height: 19px; }

.edugen-blueprint-path-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.edugen-blueprint-path {
  --path-surface: #edf5ff;
  --path-border: #c5daf6;
  --path-ink: #1b508f;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--path-border);
  border-radius: 8px;
  background: #fff;
  color: var(--path-ink);
}

.edugen-blueprint-path--sam {
  --path-surface: #fff1e7;
  --path-border: #efd3bf;
  --path-ink: #814627;
}

.edugen-blueprint-path > div { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.edugen-blueprint-path b { font-size: 12px; }
.edugen-blueprint-path > div span {
  display: grid;
  width: 20px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 6px;
  background: var(--path-surface);
  font-size: 11px;
  font-weight: 780;
}
.edugen-blueprint-path small { color: #435972; }
.edugen-blueprint-path strong { font-size: 13px; }

.edugen-blueprint-formats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.edugen-blueprint-formats li {
  padding: 4px 7px;
  border: 1px solid #dbe8f8;
  border-radius: 6px;
  background: #f3f7ff;
  color: #315c90;
  font-size: 11px;
  font-weight: 700;
}

.edugen-blueprint-review { border-top: 1px solid var(--course-line); }
.edugen-blueprint-review > div { flex: 1; }
.edugen-blueprint-review strong { font-size: 15px; }
.edugen-blueprint-review p { margin: 3px 0 0; color: var(--course-muted); font-size: 13px; line-height: 1.4; }
.edugen-blueprint-review a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 13px;
  border: 1px solid #c8dbf5;
  border-radius: 99px;
  background: #f2f7ff;
  color: #194a89;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.edugen-blueprint-review a:hover { background: #e4efff; }
.edugen-blueprint-review a:focus-visible { outline: 2px solid #255fae; outline-offset: 3px; }

@media (max-width: 800px) {
  .edugen-story-head, .edugen-blueprint-flow { grid-template-columns: minmax(0, 1fr); }
  .edugen-blueprint-flow { gap: 17px; }
  .edugen-blueprint-stage > p { min-height: 0; margin-bottom: 10px; }
  .edugen-blueprint-stage:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -12px;
    transform: rotate(45deg);
  }
  .edugen-blueprint-review { flex-wrap: wrap; }
  .edugen-blueprint-review > div { flex-basis: calc(100% - 52px); }
  .edugen-blueprint-review a { margin-inline-start: 50px; }
  .edugen-blueprint-outline { width: 100%; margin: 0; }
}

@media (min-width: 1200px) {
  #features:has(.edugen-course-blueprint) { scroll-margin-top: 18px; }
}
