@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  --bg: #f6f7fb;
  --surface: #fff;
  --ink: #202334;
  --muted: #6f7387;
  --accent: #5046e5;
  --accent-soft: #eeedff;
  --line: #e6e8f0;
  --green: #b5e778;
  --radius: 18px;
  --shadow: 0 8px 24px #27234d06;
  --sidebar: 252px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a29aff;
  outline-offset: 4px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.25;
}
h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  letter-spacing: -0.055em;
  font-weight: 800;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  font-weight: 750;
}
h3 {
  font-size: 1.1rem;
  letter-spacing: -0.018em;
  font-weight: 750;
}
p {
  color: var(--muted);
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 16px;
}
.boot,
.error-screen {
  padding: 15vh 10vw;
}
.text-accent {
  color: var(--accent);
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.lede {
  font-size: 1.06rem;
  line-height: 1.7;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 33px 22px 20px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 20;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 44px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  font-size: 1.8rem;
  letter-spacing: -0.08em;
}
.brand-mark > span {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.brand-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
}
.workspace-label {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: #858a9c;
  font-weight: 700;
  margin: 34px 12px 10px;
}
.primary-nav {
  display: grid;
  gap: 6px;
}
.primary-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.primary-nav .icon {
  width: 20px;
  height: 20px;
}
.primary-nav a:hover {
  background: #f7f7fd;
  color: var(--ink);
}
.primary-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 25px 10px 0;
}
.sidebar-divider + .workspace-label {
  margin-top: 23px;
}
.subject-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font-size: 0.88rem;
  font-weight: 600;
}
.topic-nav {
  margin-top: 15px;
  display: grid;
  gap: 8px;
}
.topic-nav a {
  font-size: 0.81rem;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 9px;
  color: var(--muted);
  line-height: 1.45;
}
.topic-nav a:hover {
  color: var(--accent);
}
.topic-nav a > span {
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  color: var(--topic);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 36px 10px 0;
  font-size: 0.76rem;
}
.local-label {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}
.local-label .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.sidebar-progress,
.progress-track {
  height: 4px;
  background: #edecf4;
  border-radius: 5px;
  overflow: hidden;
}
.sidebar-progress {
  margin: 13px 0 8px;
}
.sidebar-progress span,
.progress-track span {
  height: 100%;
  display: block;
  background: var(--topic, var(--accent));
  transition: width 0.5s;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}
.text-button .icon {
  width: 15px;
  height: 15px;
}
.import-label {
  display: block;
  font-size: 0.72rem;
}
.main-shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
  background: #ffffff90;
}
.breadcrumb {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}
.breadcrumb .icon {
  height: 14px;
  width: 14px;
  color: #a3a7b8;
}
.breadcrumb span {
  color: var(--ink);
  font-weight: 500;
}
.personal-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.personal-badge .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.mobile-menu {
  display: none !important;
}
main {
  max-width: 1450px;
  padding: 38px 44px 48px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 44px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: #9094a4;
}
.button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.16s,
    transform 0.16s;
  min-height: 44px;
}
.button:hover {
  background: #f5f4ff;
  transform: translateY(-1px);
}
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.button.primary:hover {
  background: #4239cd;
}
.button.small {
  padding: 8px 12px;
  font-size: 0.8rem;
}
.button.ghost {
  background: transparent;
  border-color: transparent;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: white;
}
.icon-button:hover {
  background: var(--accent-soft);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 32px;
}
.page-heading .eyebrow {
  margin-bottom: 13px;
}
.page-heading .lede {
  margin-top: 17px;
}
.course-visual {
  width: min(42%, 420px);
  padding: 12px;
  opacity: 0.95;
}
.course-visual svg {
  width: 100%;
  height: auto;
  display: block;
}
.diagram-pulse {
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.82;
  }
}
.resume-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.resume-banner .eyebrow {
  font-size: 0.64rem;
  color: var(--accent);
  margin-bottom: 5px;
}
.resume-banner h2 {
  font-size: 1.12rem;
}
.resume-banner p:last-child {
  font-size: 0.85rem;
  margin-top: 5px;
}
.resume-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.resume-icon .icon {
  width: 20px;
  height: 20px;
}
.resume-banner .button {
  margin-left: auto;
  flex-shrink: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading > span {
  font-size: 0.8rem;
  color: var(--muted);
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.topic-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 16px;
  box-shadow: var(--shadow);
  transition:
    border 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 284px;
}
.topic-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--topic) 45%, white);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.topic-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--topic, var(--accent)) 10%, white);
  color: var(--topic, var(--accent));
  flex-shrink: 0;
}
.topic-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a0a5b6;
}
.card-body {
  flex: 1;
}
.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 9px;
  max-width: 260px;
}
.card-body p {
  font-size: 0.86rem;
  line-height: 1.65;
}
.card-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.71rem;
  color: var(--muted);
  margin: 25px 0 14px;
}
.card-meta > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-meta .icon {
  width: 13px;
  height: 13px;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: 11px;
}
.card-foot .icon {
  width: 14px;
  height: 14px;
  color: var(--topic);
}
.practice-promo {
  padding: 24px;
  background: #edeef8;
  border: 1px solid #e0e2f0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}
.practice-promo .eyebrow {
  font-size: 0.62rem;
  color: var(--accent);
}
.practice-promo h3 {
  margin: 4px 0 7px;
}
.practice-promo p {
  font-size: 0.85rem;
}
.practice-promo .pill {
  align-self: flex-start;
  background: white;
}
.bottom-note {
  font-size: 0.77rem;
  color: #888d9d;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
}
.bottom-note .icon {
  width: 15px;
  height: 15px;
}
.back-link {
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
}
.back-link .icon {
  width: 16px;
  height: 16px;
}
.topic-heading {
  position: relative;
  padding-right: 80px;
  margin-bottom: 35px;
}
.topic-heading h1 {
  font-size: 2.65rem;
  margin: 8px 0 13px;
}
.topic-heading .eyebrow {
  color: var(--topic);
}
.topic-symbol.large {
  position: absolute;
  right: 0;
  top: 7px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
}
.large .icon {
  width: 32px;
  height: 32px;
}
.meta-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 18px;
}
.meta-row > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.meta-row .icon {
  width: 15px;
  height: 15px;
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 30px;
}
.lesson-list {
  display: grid;
  gap: 10px;
}
.lesson-row {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 21px 19px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lesson-row:hover {
  border-color: #b8b1f2;
}
.lesson-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f2f2fa;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.lesson-index.done {
  background: #e2f5ec;
  color: #148b75;
}
.lesson-row h3 {
  font-size: 0.98rem;
}
.lesson-row p {
  font-size: 0.81rem;
  line-height: 1.55;
  margin-top: 5px;
}
.lesson-row > .icon {
  width: 16px;
  height: 16px;
  color: #9295aa;
}
.lesson-time {
  font-size: 0.75rem;
  white-space: nowrap;
  margin-left: auto;
  color: var(--muted);
}
.aside-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  margin-bottom: 18px;
}
.aside-card h3 {
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aside-card h3 .icon {
  width: 20px;
  color: var(--accent);
}
.objective-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 15px;
}
.objective-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
}
.objective-list .icon {
  width: 15px;
  height: 18px;
  color: #159078;
  flex-shrink: 0;
}
.source-card .eyebrow {
  font-size: 0.65rem;
  margin-bottom: 10px;
}
.source-card p {
  font-size: 0.78rem;
  margin-top: 10px;
}
.source-card details {
  margin-top: 20px;
  font-size: 0.78rem;
}
.coverage-list {
  max-height: 300px;
  overflow: auto;
}
.coverage-list p {
  margin-top: 12px;
  font-size: 0.73rem;
}
.source-card summary {
  cursor: pointer;
  color: var(--accent);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + var(--sidebar) / 2);
  transform: translate(-50%, 20px);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 30px #0002;
  padding: 13px 22px;
  font-size: 0.9rem;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  main {
    padding-top: 48px;
  }
  .topic-card {
    min-height: 305px;
  }
  .page-heading {
    margin-bottom: 42px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 230px;
  }
  .sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }
  main {
    padding: 32px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-column {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
  .course-visual {
    width: 36%;
  }
  .resume-banner {
    padding: 20px;
  }
  .site-footer {
    padding: 20px 28px;
  }
  .card-body h3 {
    max-width: none;
  }
}
@media (max-width: 950px) {
  .personal-badge {
    display: none;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .two-column > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .topic-heading h1 {
    font-size: 2.2rem;
  }
  .resume-banner {
    flex-wrap: wrap;
  }
  .resume-banner .button {
    margin-left: 66px;
  }
  .course-visual {
    display: none;
  }
  .page-heading h1 {
    font-size: 2.7rem;
  }
  .lesson-time {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 270px;
    transition: transform 0.2s;
    box-shadow: 12px 0 40px #0001;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-grid !important;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
    justify-content: flex-start;
    gap: 15px;
  }
  .breadcrumb {
    gap: 9px;
    font-size: 0.75rem;
  }
  main {
    padding: 28px 20px 35px;
  }
  .page-heading h1 {
    font-size: 2.45rem;
  }
  .page-heading .lede {
    font-size: 0.98rem;
  }
  .topic-grid {
    gap: 14px;
  }
  .topic-card {
    padding: 19px 17px 15px;
    min-height: 292px;
  }
  .card-body h3 {
    font-size: 1rem;
  }
  .card-body p {
    font-size: 0.8rem;
  }
  .card-meta {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.67rem;
  }
  .practice-promo {
    padding: 19px 17px;
  }
  .resume-banner {
    padding: 19px;
    gap: 12px;
    margin-bottom: 28px;
  }
  .resume-banner h2 {
    font-size: 1rem;
  }
  .resume-banner .button {
    margin-left: 0;
    width: 100%;
    margin-top: 6px;
  }
  .resume-banner > div:nth-child(2) {
    flex: 1;
  }
  .resume-icon {
    width: 40px;
    height: 40px;
  }
  .section-heading h2 {
    font-size: 1.2rem;
  }
  .section-heading span {
    font-size: 0.73rem;
  }
  .topic-heading {
    padding-right: 0;
  }
  .topic-symbol.large {
    position: static;
    margin-bottom: 18px;
  }
  .two-column > aside {
    grid-template-columns: 1fr;
  }
  .lesson-row {
    padding: 17px 13px;
    gap: 12px;
  }
  .lesson-row p {
    font-size: 0.77rem;
  }
  .site-footer {
    padding: 19px 20px;
    flex-direction: column;
    gap: 5px;
  }
  #toast {
    left: 50%;
    width: calc(100% - 40px);
    max-width: 500px;
    font-size: 0.83rem;
  }
  .topic-heading h1 {
    font-size: 2rem;
  }
}
@media (max-width: 380px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .topic-card {
    min-height: 250px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .site-footer,
  .button,
  .icon-button,
  .bottom-note {
    display: none !important;
  }
  .main-shell {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .topic-card,
  .aside-card,
  .lesson-row {
    break-inside: avoid;
  }
  body {
    background: white;
  }
}
