:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: #edf4f2;
  --ink: #1e2a32;
  --muted: #586875;
  --line: #d8e0e6;
  --teal: #0f766e;
  --blue: #315f91;
  --red: #b94d3e;
  --gold: #b47b00;
  --code-bg: #17212b;
  --code-fg: #edf6f4;
  --radius: 6px;
  --shadow: 0 12px 28px rgb(30 42 50 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

figure {
  margin: 0;
}

a {
  color: var(--blue);
}

a:hover,
a:focus {
  color: var(--teal);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-links a,
.nav-dropdown-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: max(100%, 13rem);
  height: 0.45rem;
}

.nav-dropdown-trigger {
  gap: 0.38rem;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 0.12rem solid currentColor;
  border-bottom: 0.12rem solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 140ms ease;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.18rem);
  z-index: 30;
  min-width: 13rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  transform: translateY(-0.35rem);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
  visibility: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: translateY(0.1rem) rotate(225deg);
}

.nav-dropdown-menu a {
  width: 100%;
  justify-content: flex-start;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"],
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus,
.nav-dropdown.is-active .nav-dropdown-trigger {
  background: var(--surface-strong);
  color: var(--teal);
  outline: none;
}

.nav-links a.nav-github-button {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.nav-links a.nav-github-button:hover,
.nav-links a.nav-github-button:focus {
  background: var(--teal);
  color: #fff;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.doc-page {
  display: block;
}

.doc-hero {
  padding: 1rem 0 2rem;
}

.doc-hero h1 {
  max-width: 18ch;
}

.doc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.4rem;
  align-items: start;
}

.doc-content {
  min-width: 0;
}

.doc-content h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
}

.doc-content h2 {
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.doc-content h2:first-of-type {
  border-top: 0;
}

.doc-content li + li {
  margin-top: 0.22rem;
}

.doc-content img {
  max-width: 100%;
  height: auto;
}

.doc-toc {
  position: sticky;
  top: 5.2rem;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 16px rgb(30 42 50 / 7%);
}

.doc-toc strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-transform: uppercase;
}

.doc-toc a {
  display: block;
  padding: 0.4rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  border-top: 1px solid var(--line);
}

.doc-toc a:hover,
.doc-toc a:focus {
  color: var(--teal);
}

.release-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.page-title {
  max-width: 17ch;
  margin-bottom: 1rem;
}

h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.15rem;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.instructor-line {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 700;
}

.instructor-line strong {
  color: var(--ink);
}

.instructor-line a {
  color: var(--blue);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button:hover,
.button:focus {
  border-color: var(--teal);
  color: var(--teal);
}

.button.primary:hover,
.button.primary:focus {
  background: var(--teal);
  color: #fff;
}

.visual-panel {
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.release-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 2.6rem;
}

.metric {
  min-height: 7rem;
  padding: 1rem;
  border-left: 5px solid var(--teal);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgb(30 42 50 / 7%);
}

.metric:nth-child(2) {
  border-left-color: var(--blue);
}

.metric:nth-child(3) {
  border-left-color: var(--gold);
}

.metric:nth-child(4) {
  border-left-color: var(--red);
}

.metric strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.94rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3:first-child {
  margin-top: 0;
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--teal);
  background: var(--surface-strong);
  border-radius: var(--radius);
}

.warning {
  border-left-color: var(--red);
  background: #fff3f0;
}

.timeline {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-number {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.step h3 {
  margin-top: 0;
}

.checklist {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.78rem 0.9rem 0.78rem 2.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.06rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--teal);
  border-radius: 2px;
}

.feature-list,
.timeline-list,
.assessment-list,
.reference-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

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

.feature-list li,
.timeline-list li,
.assessment-list li,
.reference-list li {
  position: relative;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 16px rgb(30 42 50 / 6%);
}

.feature-list li {
  border-left: 5px solid var(--teal);
}

.feature-list li:nth-child(2) {
  border-left-color: var(--blue);
}

.feature-list li:nth-child(3) {
  border-left-color: var(--gold);
}

.feature-list li:nth-child(4) {
  border-left-color: var(--red);
}

.timeline-list {
  counter-reset: week;
}

.timeline-list li {
  padding-left: 3.4rem;
}

.timeline-list li::before {
  counter-increment: week;
  content: counter(week);
  position: absolute;
  left: 0.95rem;
  top: 0.9rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.timeline-list li:nth-child(n + 3)::before {
  background: var(--teal);
}

.assessment-list li {
  border-left: 5px solid var(--blue);
}

.assessment-list li:nth-child(2) {
  border-left-color: var(--teal);
}

.assessment-list li:nth-child(3) {
  border-left-color: var(--gold);
}

.assessment-list li:nth-child(4) {
  border-left-color: var(--red);
}

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

.reference-list li {
  border-left: 5px solid var(--teal);
}

.reference-list li:nth-child(even) {
  border-left-color: var(--blue);
}

.reference-list a {
  font-weight: 800;
}

.doc-figure {
  margin: 1rem 0 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111820;
  box-shadow: var(--shadow);
}

.doc-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.doc-media-embed {
  width: 100%;
  margin: 1rem 0 1.5rem;
}

.doc-media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111820;
  box-shadow: var(--shadow);
}

.doc-media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.doc-media-embed figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 700;
}

code {
  padding: 0.1rem 0.28rem;
  border-radius: 4px;
  background: #e6edf3;
  color: #17212b;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--radius);
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.doc-table {
  width: 100%;
  margin: 1rem 0 1.6rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgb(30 42 50 / 6%);
  overflow: hidden;
}

.doc-table th,
.doc-table td {
  padding: 1.05rem 1rem;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.doc-table td {
  color: var(--muted);
}

.doc-table tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.doc-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.timeline-table td:nth-child(2),
.assessment-table td:nth-child(3),
.assessment-table td:nth-child(4),
.key-dates-table td:first-child,
.key-dates-table td:nth-child(2) {
  white-space: nowrap;
}

.assessment-table td:nth-child(3) {
  color: var(--ink);
  font-weight: 800;
}

.key-dates-table td:nth-child(2) {
  color: var(--blue);
  font-weight: 800;
}

.schedule-calendar {
  margin: 1.2rem 0 1.7rem;
  overflow-x: auto;
  --calendar-week-width: 5.7rem;
  --calendar-pin-width: 11.2rem;
  --calendar-cell-x: 0.46rem;
  --calendar-pin-gap: 0.24rem;
  --calendar-single-width: calc(var(--calendar-pin-width) + (var(--calendar-cell-x) * 2));
  --calendar-double-width: calc((var(--calendar-pin-width) * 2) + var(--calendar-pin-gap) + (var(--calendar-cell-x) * 2));
  --calendar-table-width: calc(var(--calendar-week-width) + (var(--calendar-single-width) * 2) + var(--calendar-double-width));
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin: 0 0 0.38rem;
}

.calendar-table {
  width: var(--calendar-table-width);
  min-width: var(--calendar-table-width);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgb(30 42 50 / 8%);
  table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
  padding: 0.42rem var(--calendar-cell-x);
  border-top: 1px solid #e3ebef;
  border-left: 1px solid #e3ebef;
  vertical-align: top;
}

.calendar-table thead th {
  border-top: 0;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-table thead th span,
.calendar-table thead th small {
  display: block;
}

.calendar-table thead th small {
  margin-top: 0.08rem;
  color: rgb(255 255 255 / 70%);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
}

.calendar-table thead th:first-child {
  width: var(--calendar-week-width);
}

.calendar-table thead th:nth-child(2),
.calendar-table thead th:nth-child(3) {
  width: var(--calendar-single-width);
}

.calendar-table thead th:nth-child(4) {
  width: var(--calendar-double-width);
}

.calendar-table th:first-child,
.calendar-table td:first-child {
  border-left: 0;
}

.calendar-week {
  width: var(--calendar-week-width);
  background: #f7faf8;
  color: var(--ink);
}

.calendar-week strong,
.calendar-week span {
  display: block;
}

.calendar-week strong {
  font-size: 0.98rem;
}

.calendar-week span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
}

.calendar-cell {
  background: #fff;
}

.calendar-cell-inner {
  display: grid;
  grid-template-columns: var(--calendar-pin-width);
  gap: var(--calendar-pin-gap);
  align-content: start;
  justify-content: start;
  min-height: 3.05rem;
  height: auto;
}

.calendar-cell.has-multiple .calendar-cell-inner {
  grid-template-columns: repeat(2, var(--calendar-pin-width));
}

.calendar-cell.is-empty {
  background: #fbfdfe;
}

.calendar-pin {
  --pin-color: var(--teal);
  box-sizing: border-box;
  display: grid;
  width: var(--calendar-pin-width);
  min-width: var(--calendar-pin-width);
  max-width: var(--calendar-pin-width);
  grid-template-columns: 0.56rem minmax(0, 1fr);
  gap: 0.34rem;
  align-items: start;
  margin: 0;
  padding: 0.36rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  line-height: 1.12;
}

.calendar-pin strong,
.calendar-pin small {
  display: block;
}

.calendar-pin strong {
  font-size: 0.96rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.calendar-pin small {
  margin-top: 0.06rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pin-dot {
  width: 0.56rem;
  height: 0.56rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--pin-color);
  box-shadow: 0 0 0 0.12rem color-mix(in srgb, var(--pin-color) 16%, transparent);
}

.calendar-pin.is-mandatory {
  --pin-color: var(--teal);
  border-color: rgb(15 118 110 / 24%);
  background: rgb(15 118 110 / 6%);
}

.calendar-pin.is-help {
  --pin-color: var(--blue);
  border-color: rgb(49 95 145 / 24%);
  background: rgb(49 95 145 / 6%);
}

.calendar-pin.is-deadline {
  --pin-color: var(--red);
  border-color: rgb(185 77 62 / 28%);
  background: rgb(185 77 62 / 7%);
}

.calendar-pin.is-presentation {
  --pin-color: var(--gold);
  border-color: rgb(180 123 0 / 28%);
  background: rgb(180 123 0 / 8%);
}

.calendar-legend .calendar-pin {
  display: inline-grid;
  grid-template-columns: 0.56rem auto;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0.2rem 0.34rem;
}

.calendar-legend .calendar-pin strong {
  font-size: 0.72rem;
}

.calendar-legend .calendar-pin small {
  display: none;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1.2rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .release-band,
  .doc-shell,
  .grid,
  .grid.two,
  .feature-list,
  .reference-list,
  .release-strip {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
    grid-column: auto;
    grid-row: auto;
    order: -1;
  }

  .visual-panel {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-dropdown-menu {
    left: 0;
    right: auto;
    margin-top: 0.25rem;
  }

  .page {
    padding-top: 1.4rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  .step {
    grid-template-columns: 1fr;
  }
}
