:root {
  color-scheme: light;
  --paper: #f4f2ea;
  --paper-deep: #e9e5da;
  --ink: #151917;
  --muted: #626a65;
  --line: #c9cbc2;
  --line-strong: #92988f;
  --white: #fffef9;
  --lime: #d7fa45;
  --blue: #173fca;
  --blue-deep: #10266f;
  --coral: #f06d4f;
  --cyan: #7ddbd1;
  --violet: #9f86e9;
  --shadow: 5px 5px 0 var(--ink);
  --radius: 18px;
  --content: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 34px;
  border: 1px solid var(--ink);
  background: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -2px;
  transform: skew(-8deg);
}

.brand-mark span {
  color: var(--blue);
}

.brand-mark-small {
  width: 45px;
  height: 29px;
  font-size: 12px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  letter-spacing: 0.14em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.desktop-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--ink);
  color: white;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--white);
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
}

.icon-button:hover,
.menu-button:hover {
  background: var(--lime);
}

.menu-button {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.mobile-nav {
  position: sticky;
  top: 70px;
  z-index: 39;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

main {
  min-height: 70vh;
}

.page {
  padding: 56px 0 80px;
  animation: page-in 320ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 3px;
  background: currentColor;
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.hero-main,
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 28px;
}

.hero-main {
  min-height: 500px;
  padding: clamp(32px, 6vw, 74px);
  background: var(--ink);
  color: white;
}

.hero-main::after {
  position: absolute;
  right: -65px;
  bottom: -95px;
  width: 280px;
  height: 280px;
  border: 40px solid var(--lime);
  border-radius: 50%;
  content: "";
  opacity: 0.95;
  z-index: 0;
}

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

.hero-main .eyebrow {
  color: var(--lime);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 34px;
  color: #d0d6d2;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  box-shadow: 3px 3px 0 currentColor;
  transform: translate(-2px, -2px);
}

.button-primary {
  background: var(--lime);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-ghost-dark {
  border-color: #758079;
  background: transparent;
  color: white;
}

.button-small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--lime);
}

.hero-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-panel-label {
  padding: 6px 9px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
}

.hero-panel-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
}

.current-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin: 38px 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 42px;
  font-weight: 900;
  box-shadow: 8px 8px 0 var(--white), 9px 9px 0 var(--ink);
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.hero-panel p {
  margin: 0 0 22px;
  line-height: 1.65;
}

.progress-line {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.progress-line > span {
  display: block;
  height: 100%;
  background: var(--cyan);
}

.track-network { --track-color: var(--cyan); }
.track-ops { --track-color: var(--lime); }
.track-automation { --track-color: #f2a766; }
.track-rag { --track-color: #a996ed; }

.progress-p-0 { width: 0%; }
.progress-p-1 { width: 1%; }
.progress-p-2 { width: 2%; }
.progress-p-3 { width: 3%; }
.progress-p-4 { width: 4%; }
.progress-p-5 { width: 5%; }
.progress-p-6 { width: 6%; }
.progress-p-7 { width: 7%; }
.progress-p-8 { width: 8%; }
.progress-p-9 { width: 9%; }
.progress-p-10 { width: 10%; }
.progress-p-11 { width: 11%; }
.progress-p-12 { width: 12%; }
.progress-p-13 { width: 13%; }
.progress-p-14 { width: 14%; }
.progress-p-15 { width: 15%; }
.progress-p-16 { width: 16%; }
.progress-p-17 { width: 17%; }
.progress-p-18 { width: 18%; }
.progress-p-19 { width: 19%; }
.progress-p-20 { width: 20%; }
.progress-p-21 { width: 21%; }
.progress-p-22 { width: 22%; }
.progress-p-23 { width: 23%; }
.progress-p-24 { width: 24%; }
.progress-p-25 { width: 25%; }
.progress-p-26 { width: 26%; }
.progress-p-27 { width: 27%; }
.progress-p-28 { width: 28%; }
.progress-p-29 { width: 29%; }
.progress-p-30 { width: 30%; }
.progress-p-31 { width: 31%; }
.progress-p-32 { width: 32%; }
.progress-p-33 { width: 33%; }
.progress-p-34 { width: 34%; }
.progress-p-35 { width: 35%; }
.progress-p-36 { width: 36%; }
.progress-p-37 { width: 37%; }
.progress-p-38 { width: 38%; }
.progress-p-39 { width: 39%; }
.progress-p-40 { width: 40%; }
.progress-p-41 { width: 41%; }
.progress-p-42 { width: 42%; }
.progress-p-43 { width: 43%; }
.progress-p-44 { width: 44%; }
.progress-p-45 { width: 45%; }
.progress-p-46 { width: 46%; }
.progress-p-47 { width: 47%; }
.progress-p-48 { width: 48%; }
.progress-p-49 { width: 49%; }
.progress-p-50 { width: 50%; }
.progress-p-51 { width: 51%; }
.progress-p-52 { width: 52%; }
.progress-p-53 { width: 53%; }
.progress-p-54 { width: 54%; }
.progress-p-55 { width: 55%; }
.progress-p-56 { width: 56%; }
.progress-p-57 { width: 57%; }
.progress-p-58 { width: 58%; }
.progress-p-59 { width: 59%; }
.progress-p-60 { width: 60%; }
.progress-p-61 { width: 61%; }
.progress-p-62 { width: 62%; }
.progress-p-63 { width: 63%; }
.progress-p-64 { width: 64%; }
.progress-p-65 { width: 65%; }
.progress-p-66 { width: 66%; }
.progress-p-67 { width: 67%; }
.progress-p-68 { width: 68%; }
.progress-p-69 { width: 69%; }
.progress-p-70 { width: 70%; }
.progress-p-71 { width: 71%; }
.progress-p-72 { width: 72%; }
.progress-p-73 { width: 73%; }
.progress-p-74 { width: 74%; }
.progress-p-75 { width: 75%; }
.progress-p-76 { width: 76%; }
.progress-p-77 { width: 77%; }
.progress-p-78 { width: 78%; }
.progress-p-79 { width: 79%; }
.progress-p-80 { width: 80%; }
.progress-p-81 { width: 81%; }
.progress-p-82 { width: 82%; }
.progress-p-83 { width: 83%; }
.progress-p-84 { width: 84%; }
.progress-p-85 { width: 85%; }
.progress-p-86 { width: 86%; }
.progress-p-87 { width: 87%; }
.progress-p-88 { width: 88%; }
.progress-p-89 { width: 89%; }
.progress-p-90 { width: 90%; }
.progress-p-91 { width: 91%; }
.progress-p-92 { width: 92%; }
.progress-p-93 { width: 93%; }
.progress-p-94 { width: 94%; }
.progress-p-95 { width: 95%; }
.progress-p-96 { width: 96%; }
.progress-p-97 { width: 97%; }
.progress-p-98 { width: 98%; }
.progress-p-99 { width: 99%; }
.progress-p-100 { width: 100%; }

.filter-bar-compact {
  margin: 0;
}

.eyebrow-centered {
  justify-content: center;
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 72px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.stat {
  padding: 23px 26px;
  border-right: 1px solid var(--ink);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 29px;
  letter-spacing: -0.05em;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-block {
  margin-top: 72px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.section-header h2,
.page-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.065em;
  line-height: 1;
}

.section-header p,
.page-heading > p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  flex: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.track-card {
  --track-color: var(--cyan);
  position: relative;
  grid-column: span 6;
  min-height: 300px;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.track-card:nth-child(3),
.track-card:nth-child(4) {
  grid-column: span 6;
}

.track-card:hover {
  box-shadow: var(--shadow);
  transform: translate(-3px, -3px);
}

.track-card::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 128px;
  height: 128px;
  border: 25px solid var(--track-color);
  border-radius: 50%;
  content: "";
}

.track-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.track-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--track-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
}

.track-card h3 {
  margin: 32px 0 12px;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.05em;
}

.track-card p {
  max-width: 80%;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.track-meta,
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.track-meta {
  position: absolute;
  bottom: 28px;
  left: 27px;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 20px;
}

.panel {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--ink);
}

.panel-heading h3 {
  margin: 0;
  font-size: 18px;
}

.panel-heading span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.lesson-rows {
  display: grid;
}

.lesson-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.lesson-row:last-child {
  border-bottom: 0;
}

.lesson-row:hover {
  background: #f7f8ef;
}

.lesson-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 850;
}

.lesson-number.done {
  border-color: var(--ink);
  background: var(--lime);
}

.lesson-row-copy {
  min-width: 0;
}

.lesson-row-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-row-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.lesson-row-time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.method-list {
  counter-reset: methods;
  margin: 0;
  padding: 7px 22px 20px;
  list-style: none;
}

.method-list li {
  position: relative;
  padding: 20px 0 20px 50px;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.method-list li:last-child {
  border-bottom: 0;
}

.method-list li::before {
  position: absolute;
  top: 19px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  counter-increment: methods;
  content: counter(methods, decimal-leading-zero);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.method-list strong {
  display: block;
  margin-bottom: 4px;
}

.method-list span {
  color: var(--muted);
  font-size: 13px;
}

.page-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.45fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 48px;
}

.page-heading-aside {
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--lime);
  font-size: 13px;
  line-height: 1.6;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.roadmap-track {
  --track-color: var(--cyan);
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.roadmap-track-intro {
  padding: 27px;
  border-right: 1px solid var(--ink);
  background: var(--track-color);
}

.roadmap-track-intro .track-index {
  background: var(--white);
}

.roadmap-track-intro h2 {
  margin: 26px 0 10px;
  font-size: 29px;
  letter-spacing: -0.05em;
}

.roadmap-track-intro p {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.65;
}

.roadmap-track-lessons {
  display: grid;
}

.roadmap-lesson {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.roadmap-lesson:last-child {
  border-bottom: 0;
}

.roadmap-lesson:hover {
  background: #f7f8ef;
}

.roadmap-lesson-index {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
}

.roadmap-lesson h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.roadmap-lesson p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.lesson-state {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-badge,
.tiny-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 850;
}

.type-badge {
  padding: 7px 10px;
}

.tiny-badge {
  padding: 4px 7px;
}

.tiny-badge.done {
  background: var(--lime);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  color: var(--blue);
}

.lesson-hero {
  --track-color: var(--cyan);
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--ink);
  border-radius: 28px;
  background: var(--track-color);
}

.lesson-hero::after {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  border: 35px solid var(--ink);
  border-radius: 50%;
  content: "";
  opacity: 0.12;
}

.lesson-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.lesson-hero > p {
  position: relative;
  z-index: 1;
  max-width: 730px;
  margin: 0;
  line-height: 1.75;
}

.lesson-hero .lesson-meta {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  color: var(--ink);
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.lesson-content {
  display: grid;
  gap: 20px;
}

.content-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.content-card h2 {
  margin: 0 0 22px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.outcome-list,
.concept-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome-list li,
.concept-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.65;
}

.outcome-list li::before,
.concept-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  background: var(--lime);
  content: "";
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.task-item:hover {
  border-color: var(--ink);
}

.task-item input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.task-item span {
  line-height: 1.55;
}

.task-item:has(input:checked) span {
  color: var(--muted);
  text-decoration: line-through;
}

.lab-card {
  position: relative;
  padding: 24px 24px 24px 76px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-deep);
}

.lab-card::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  content: "↗";
  font-weight: 900;
}

.lab-card strong {
  display: block;
  margin-bottom: 8px;
}

.lab-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.resource-card:hover {
  border-color: var(--ink);
  background: #f7f8ef;
}

.resource-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.resource-card span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.resource-arrow {
  color: var(--blue) !important;
  font-size: 18px !important;
}

.lesson-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.sidebar-card h3 {
  margin: 0 0 15px;
  font-size: 16px;
}

.sidebar-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lesson-progress-number {
  display: block;
  margin: 15px 0 8px;
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.notes-area {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

.notes-area:focus,
.library-search:focus,
.search-dialog input:focus {
  outline: 3px solid color-mix(in srgb, var(--blue) 25%, transparent);
  border-color: var(--blue);
}

.notes-status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}

.library-search,
.search-dialog input {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--white);
}

.library-search {
  min-height: 50px;
  padding: 0 17px;
  border-radius: 999px;
}

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

.library-card {
  display: flex;
  flex-direction: column;
  min-height: 225px;
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
}

.library-card:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.library-card-tags {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.library-card h3 {
  margin: 30px 0 9px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.library-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.library-card footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.progress-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
}

.progress-score {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.progress-score strong {
  display: block;
  font-size: clamp(76px, 12vw, 132px);
  letter-spacing: -0.09em;
  line-height: 0.86;
}

.progress-score small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.track-progress-list {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.track-progress-item {
  display: grid;
  gap: 9px;
}

.track-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  font-weight: 800;
}

.track-progress-copy span:last-child {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.track-progress-item .progress-line > span {
  background: var(--track-color, var(--cyan));
}

.data-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.data-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.data-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lab-dashboard-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: #e2f5ef;
}

.lab-dashboard-promo h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.055em;
}

.lab-dashboard-promo p:not(.eyebrow) {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.lab-dashboard-count {
  display: grid;
  min-width: 130px;
  padding: 16px 22px;
  border-left: 1px solid var(--ink);
}

.lab-dashboard-count strong {
  font-size: 43px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.lab-dashboard-count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lab-safety-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px 23px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #e2f5ef;
}

.lab-safety-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-weight: 900;
}

.lab-safety-banner strong {
  display: block;
  margin-bottom: 4px;
}

.lab-safety-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.lab-tile,
.lab-detail-header {
  --lab-tone: #e2f5ef;
}

.tone-mint { --lab-tone: #e2f5ef; }
.tone-yellow { --lab-tone: #f3f3c7; }
.tone-peach { --lab-tone: #f8e4d7; }
.tone-lilac { --lab-tone: #eee8f8; }
.tone-sand { --lab-tone: #ebe5d7; }

.lab-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--lab-tone);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.lab-tile:hover {
  box-shadow: var(--shadow);
  transform: translate(-3px, -3px);
}

.lab-tile::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 125px;
  height: 125px;
  border: 22px solid var(--white);
  border-radius: 50%;
  content: "";
  opacity: 0.72;
}

.lab-tile-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.lab-tile-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
}

.lab-skill {
  width: fit-content;
  margin-top: 30px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-tile h2 {
  max-width: 85%;
  margin: 9px 0 10px;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.lab-tile p {
  max-width: 85%;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lab-open {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.lab-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--lab-tone);
}

.lab-detail-header h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.07em;
  line-height: 1;
}

.lab-detail-header > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lab-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.lab-rail {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.lab-rail a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.lab-rail a:last-child {
  border-bottom: 0;
}

.lab-rail a:hover,
.lab-rail a.active {
  background: #f3f3c7;
  color: var(--ink);
}

.lab-rail a span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.lab-workspace {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.lab-instructions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.lab-instructions span {
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #f3f3c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
}

.lab-instructions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lab-split {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  align-items: stretch;
}

.lab-control-panel {
  display: grid;
  gap: 15px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #faf9f4;
}

.lab-control-panel h2 {
  margin: 0 0 3px;
  font-size: 19px;
}

.lab-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.lab-field input,
.lab-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lab-field input:focus,
.lab-field select:focus {
  outline: 3px solid #dce4fb;
  border-color: var(--blue);
}

.lab-checks {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.lab-checks legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.lab-checks label {
  font-size: 12px;
}

.lab-checks input {
  accent-color: var(--ink);
}

.lab-console-wrap {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: #f5f3eb;
}

.lab-console-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ink);
  background: #ebe5d7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lab-console {
  min-height: 300px;
  max-height: 520px;
  margin: 0;
  overflow: auto;
  padding: 20px;
  background: #f5f3eb;
  color: #222823;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.lab-feedback {
  padding: 13px 15px;
  border-top: 1px solid var(--line-strong);
  background: #fffef9;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.lab-feedback[data-status="success"] {
  background: #e2f5ef;
  color: #173c32;
}

.lab-feedback[data-status="error"] {
  background: #fbe5df;
  color: #713024;
}

.tcp-board {
  display: grid;
  justify-items: center;
  gap: 17px;
}

.packet-pool {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  width: 100%;
}

.packet-card {
  display: grid;
  gap: 7px;
  min-height: 105px;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: #f3f3c7;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.packet-card:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.packet-card strong {
  font: 800 18px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.packet-card span {
  color: var(--muted);
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tcp-arrow {
  font-size: 25px;
}

.tcp-timeline {
  display: grid;
  gap: 9px;
  width: min(100%, 620px);
  min-height: 185px;
  padding: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #faf9f4;
}

.tcp-placeholder {
  align-self: center;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.tcp-step {
  display: grid;
  grid-template-columns: 30px 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.tcp-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2f5ef;
  font-size: 10px;
  font-weight: 900;
}

.tcp-step small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.filter-challenge {
  display: grid;
  gap: 22px;
  max-width: 750px;
  margin: 15px auto;
  padding: clamp(25px, 5vw, 45px);
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: #f8e4d7;
}

.challenge-counter {
  font: 900 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.filter-challenge h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.05em;
}

.tls-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.tls-selectors > span {
  padding-bottom: 13px;
  font: 900 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.table-scroll {
  margin-bottom: 16px;
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: 13px;
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 12px;
}

.compare-table th,
.compare-table td {
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  line-height: 1.5;
}

.compare-table th {
  width: 16%;
  background: #eee8f8;
}

.compare-table thead th {
  background: #ebe5d7;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.diagnosis-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.diagnosis-options button {
  min-height: 75px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.diagnosis-options button:hover {
  border-color: var(--ink);
}

.diagnosis-options button.correct {
  border-color: #327360;
  background: #e2f5ef;
}

.diagnosis-options button.wrong {
  border-color: #a04b38;
  background: #fbe5df;
}

.rag-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.rag-results {
  display: grid;
  gap: 9px;
  margin-bottom: 15px;
}

.rag-results article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 52px;
  gap: 13px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #faf9f4;
}

.rag-results article.selected {
  border-color: var(--ink);
  background: #e2f5ef;
}

.rag-results article > span,
.rag-results article > b {
  font: 900 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.rag-results article > b {
  text-align: right;
}

.rag-results strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.rag-results p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.rag-results i {
  display: block;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
}

.rag-results i u {
  display: block;
  height: 100%;
  background: var(--cyan);
  text-decoration: none;
}

.lab-auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.search-dialog {
  width: min(720px, calc(100% - 30px));
  margin-top: 10vh;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
}

.search-dialog::backdrop {
  background: rgba(21, 25, 23, 0.67);
  backdrop-filter: blur(4px);
}

.search-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ink);
}

.search-dialog-header label {
  font-weight: 900;
}

.search-dialog input {
  min-height: 56px;
  padding: 0 18px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.search-results {
  display: grid;
  max-height: 52vh;
  overflow-y: auto;
  padding: 12px;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.search-result:hover {
  background: var(--white);
}

.search-result strong {
  display: block;
  margin-bottom: 5px;
}

.search-result span {
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(380px, calc(100% - 44px));
  padding: 13px 17px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--lime);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  padding: 36px 0 42px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 12px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer p {
  margin: 0;
}

.safety-note {
  max-width: 480px;
  text-align: right;
}

@media (max-width: 980px) {
  .hero,
  .lesson-layout,
  .progress-overview {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 440px;
  }

  .hero-panel {
    min-height: 400px;
  }

  .current-symbol {
    margin: 30px 0;
  }

  .lesson-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .lab-layout {
    grid-template-columns: 1fr;
  }

  .lab-rail {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .lab-rail a {
    flex: 0 0 auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .page {
    padding: 35px 0 58px;
  }

  .hero-main {
    min-height: 470px;
    padding: 30px 25px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.02;
  }

  .hero-main::after {
    right: -110px;
    bottom: -125px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 50px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .track-card {
    grid-column: span 12 !important;
    min-height: 280px;
  }

  .dashboard-columns,
  .page-heading,
  .roadmap-track,
  .data-panel,
  .lab-dashboard-promo,
  .lab-detail-header,
  .lab-split {
    grid-template-columns: 1fr;
  }

  .lab-dashboard-count {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .roadmap-track-intro {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .roadmap-lesson {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .roadmap-lesson .lesson-state {
    grid-column: 2;
  }

  .resource-grid,
  .lesson-sidebar,
  .library-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .packet-pool,
  .diagnosis-options {
    grid-template-columns: 1fr;
  }

  .tls-selectors,
  .rag-controls {
    grid-template-columns: 1fr;
  }

  .tls-selectors > span {
    padding: 0;
    text-align: center;
  }

  .library-toolbar {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .safety-note {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .brand-copy {
    display: none;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .stat {
    padding: 18px;
  }

  .lesson-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lesson-row-time {
    display: none;
  }

  .lab-card {
    padding: 72px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
