:root {
  color: #152033;
  background: #f4f6f8;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #152033;
  --ink-2: #334155;
  --muted: #6b778c;
  --line: #e3e8ef;
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --primary: #155eef;
  --primary-dark: #0f47ba;
  --green: #0c9f6e;
  --amber: #db7c10;
  --night: #101722;
  --radius: 8px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.topline {
  height: 32px;
  color: #c9d3df;
  background: var(--night);
  font-size: 12px;
}

.topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #123b91 52%, #155eef 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.2);
}

.brand-mark::before {
  position: absolute;
  top: -13px;
  right: -12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  content: "";
}

.brand-symbol {
  position: relative;
  z-index: 1;
  margin-right: 4px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 1;
}

.brand-spark {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  color: #cfe0ff;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 19px;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.desktop-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 22px;
  margin-left: 42px;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav > a {
  position: relative;
  display: flex;
  align-items: center;
  color: #354052;
}

.desktop-nav > a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -25px;
  height: 3px;
  background: var(--primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active {
  color: var(--primary);
}

.desktop-nav > a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-group {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-group::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.nav-group.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-group-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #354052;
  white-space: nowrap;
}

.nav-group:hover .nav-group-trigger,
.nav-group.active .nav-group-trigger {
  color: var(--primary);
}

.nav-group-trigger svg {
  transition: transform 160ms ease;
}

.nav-group:hover .nav-group-trigger svg,
.nav-group:focus-within .nav-group-trigger svg {
  transform: rotate(180deg);
}

.nav-mega {
  position: absolute;
  top: 62px;
  left: 50%;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  width: 470px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(20, 31, 50, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -5px);
  transition: 160ms ease;
}

.nav-group:hover .nav-mega,
.nav-group:focus-within .nav-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-mega-intro {
  padding: 10px 14px 10px 4px;
  border-right: 1px solid var(--line);
}

.nav-mega-intro > span {
  display: block;
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
}

.nav-mega-intro > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.nav-mega-intro p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.nav-mega-intro a {
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
}

.nav-mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding-left: 12px;
}

.nav-mega-links a {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 64px;
  padding: 9px 10px;
  border-radius: 6px;
}

.nav-mega-links a:hover {
  background: #f1f5fb;
}

.nav-mega-links strong {
  color: var(--ink);
  font-size: 12px;
}

.nav-mega-links a:hover strong {
  color: var(--primary);
}

.nav-mega-links small {
  color: var(--muted);
  font-size: 10px;
}

.nav-more {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: 58px;
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(20, 31, 50, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: 160ms ease;
}

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

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 5px;
}

.nav-dropdown a:hover {
  color: var(--primary);
  background: #f1f5fb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.icon-action,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 9px;
  color: #526073;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-action span {
  font-size: 13px;
}

.icon-action:hover {
  color: var(--primary);
}

.login-button,
.primary-button,
.secondary-button,
.mobile-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.login-button {
  margin-left: 8px;
  color: var(--primary);
  border: 1px solid var(--primary);
  background: #fff;
}

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

.menu-button {
  display: none;
  width: 40px;
  padding: 0;
}

.home-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.home-hero-image,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-image {
  object-fit: cover;
  object-position: center 52%;
}

.home-hero-shade {
  background: rgba(8, 15, 25, 0.66);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-bottom: 18px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: #dce8ff;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 660px;
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 850;
}

.hero-content > p {
  max-width: 600px;
  margin-bottom: 30px;
  color: #e1e7ee;
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-button {
  color: #fff;
  border: 1px solid var(--primary);
  background: var(--primary);
}

.primary-button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.primary-button.dark {
  color: var(--night);
  border-color: #fff;
  background: #fff;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-weight: 700;
}

.text-button.light {
  color: #fff;
}

.text-button svg {
  transition: transform 160ms ease;
}

.text-button:hover svg {
  transform: translateX(3px);
}

.hero-proof {
  display: flex;
  gap: 24px;
  margin-top: 34px;
  color: #d7e0e9;
  font-size: 13px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof svg {
  color: #48d5a1;
}

.hero-feature {
  position: absolute;
  right: max(24px, calc((100% - 1200px) / 2));
  bottom: 30px;
  z-index: 3;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 330px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.hero-feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
}

.hero-feature > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hero-feature small {
  color: var(--muted);
  font-size: 11px;
}

.hero-feature strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-strip-inner,
.category-nav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar,
.category-nav-scroll::-webkit-scrollbar {
  display: none;
}

.category-strip a,
.category-nav-scroll a {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: #465469;
  font-size: 14px;
  font-weight: 650;
  border-radius: 6px;
}

.category-strip a:hover,
.category-strip a.active,
.category-nav-scroll a:hover,
.category-nav-scroll a.active {
  color: #fff;
  background: var(--primary);
}

.content-section {
  padding: 70px 0;
}

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

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.section-heading h2,
.path-copy h2,
.related-section h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.25;
}

.course-grid {
  display: grid;
  gap: 22px;
}

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

.course-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: var(--radius);
  box-shadow: 0 5px 18px rgba(35, 48, 70, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.course-card:hover {
  border-color: #d2dae5;
  box-shadow: 0 12px 30px rgba(35, 48, 70, 0.11);
  transform: translateY(-3px);
}

.course-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbe2ea;
}

.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.course-card:hover .course-cover img {
  transform: scale(1.025);
}

.course-level {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(14, 23, 36, 0.78);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
}

.save-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(14, 23, 36, 0.68);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

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

.course-card-body {
  padding: 15px 16px 16px;
}

.course-category,
.article-category {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

.course-card h3 {
  min-height: 48px;
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 1.5;
}

.course-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.course-card h3 a:hover {
  color: var(--primary);
}

.course-card-body > p {
  display: -webkit-box;
  min-height: 42px;
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 13px;
  color: #7a879a;
  border-top: 1px solid #edf0f4;
  font-size: 11px;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.course-meta span:last-child {
  margin-left: auto;
}

.path-section {
  padding: 76px 0;
  color: #fff;
  background: #151e2c;
}

.path-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 80px;
}

.path-copy .eyebrow {
  color: #5ee4b3;
}

.path-copy h2 {
  max-width: 470px;
  margin-bottom: 18px;
  font-size: 36px;
}

.path-copy p {
  max-width: 500px;
  margin-bottom: 28px;
  color: #b8c5d4;
  font-size: 16px;
  line-height: 1.8;
}

.path-steps {
  display: grid;
  border-top: 1px solid #344154;
}

.path-steps a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 91px;
  border-bottom: 1px solid #344154;
}

.path-steps > a > span {
  color: #5ee4b3;
  font-size: 13px;
  font-weight: 800;
}

.path-steps div {
  display: grid;
  gap: 5px;
}

.path-steps strong {
  font-size: 17px;
}

.path-steps p {
  margin: 0;
  color: #9eadbe;
  font-size: 13px;
}

.path-steps svg {
  color: #718095;
  transition: transform 160ms ease;
}

.path-steps a:hover svg {
  color: #fff;
  transform: translateX(4px);
}

.latest-section {
  background: #fff;
}

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

.latest-grid .course-card {
  background: var(--canvas);
  box-shadow: none;
}

.category-hero {
  padding: 44px 0 48px;
  color: #fff;
  background: #182335;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  color: #9facbd;
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.category-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.category-title-row .eyebrow {
  color: #5ee4b3;
}

.category-title-row h1 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.2;
}

.category-title-row p {
  max-width: 600px;
  margin-bottom: 0;
  color: #bac6d4;
  font-size: 15px;
  line-height: 1.8;
}

.category-stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 9px;
  flex: 0 0 auto;
}

.category-stat strong {
  font-size: 40px;
  line-height: 1;
}

.category-stat span {
  padding-bottom: 4px;
  color: #9facbd;
  font-size: 12px;
}

.category-nav-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-nav-scroll {
  min-height: 62px;
}

.category-content {
  padding: 32px 0 72px;
}

.category-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-bottom: 22px;
}

.result-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.result-count small {
  color: var(--muted);
  font-weight: 500;
}

.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  margin-left: auto;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.sort-select select {
  color: var(--ink-2);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.filter-button {
  display: none;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  align-items: start;
  gap: 28px;
}

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

.archive-sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-block {
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sidebar-title svg {
  color: var(--amber);
}

.sidebar-title h2 {
  margin: 0;
  font-size: 16px;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-cloud button {
  padding: 7px 9px;
  color: #4b5b6f;
  background: #f3f6f9;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.topic-cloud button:hover {
  color: var(--primary);
  border-color: #bdd2ff;
  background: #edf3ff;
}

.ranking-block > a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid #edf0f4;
}

.ranking-block > a > span {
  color: #9aa6b5;
  font-size: 13px;
  font-weight: 800;
}

.ranking-block a:nth-of-type(-n + 3) > span {
  color: var(--primary);
}

.ranking-block a div {
  display: grid;
  gap: 6px;
}

.ranking-block a strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-block a small {
  color: var(--muted);
  font-size: 11px;
}

.detail-page {
  padding: 30px 0 76px;
  background: #fff;
}

.detail-breadcrumbs {
  margin-bottom: 26px;
  color: #7f8b9c;
}

.detail-breadcrumbs a:hover {
  color: var(--primary);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 48px;
}

.article-header {
  max-width: 850px;
}

.article-header h1 {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.35;
}

.article-lead {
  margin-bottom: 19px;
  color: #5d6b7e;
  font-size: 17px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #8290a1;
  font-size: 12px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-cover {
  position: relative;
  margin-top: 30px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbe2ea;
  border-radius: 8px;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover::after {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 20, 0.22);
  content: "";
}

.article-cover button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.article-body {
  max-width: 830px;
  padding-top: 34px;
}

.article-body > p,
.article-intro p,
.article-note p {
  color: #435268;
  font-size: 16px;
  line-height: 1.95;
}

.article-body h2 {
  margin: 42px 0 20px;
  padding-left: 13px;
  font-size: 24px;
  line-height: 1.35;
  border-left: 4px solid var(--primary);
}

.article-intro {
  padding: 22px 24px;
  background: #f0f5ff;
  border-left: 4px solid var(--primary);
}

.article-intro > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.article-intro p,
.article-note p {
  margin-bottom: 0;
}

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

.outcome-grid > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 17px;
  background: #f7f8fa;
  border: 1px solid #e8ecf1;
  border-radius: 7px;
}

.outcome-grid > div > svg {
  padding: 6px;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.outcome-grid span {
  display: grid;
  gap: 5px;
}

.outcome-grid small {
  color: var(--muted);
  line-height: 1.5;
}

.chapter-list {
  border-top: 1px solid var(--line);
}

.chapter-list > div {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.chapter-number {
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
}

.chapter-copy {
  display: grid;
  gap: 6px;
}

.chapter-copy strong {
  font-size: 15px;
}

.chapter-copy small {
  color: var(--muted);
  line-height: 1.5;
}

.chapter-list svg {
  color: #9ba7b7;
}

.article-note {
  margin-top: 34px;
  padding: 20px 22px;
  background: #fff8e9;
  border: 1px solid #f2ddb3;
  border-radius: 7px;
}

.article-note strong {
  display: block;
  margin-bottom: 7px;
  color: #995c10;
}

.article-actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-actions button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid #d9e0e9;
  border-radius: 6px;
  cursor: pointer;
}

.article-actions button:hover,
.article-actions button.active {
  color: var(--primary);
  border-color: #a9c5ff;
  background: #edf3ff;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.access-panel {
  padding: 23px;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(36, 48, 68, 0.09);
}

.access-label {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 5px 8px;
  color: #8c560d;
  background: #fff0d4;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.access-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.access-price strong {
  color: #e04535;
  font-size: 32px;
}

.access-price del {
  color: #98a3b1;
  font-size: 13px;
}

.access-panel > p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.access-button,
.access-panel .secondary-button {
  width: 100%;
}

.access-panel .secondary-button {
  margin-top: 10px;
}

.access-panel ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  color: #536176;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 12px;
}

.access-panel li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.access-panel li svg {
  color: var(--green);
}

.course-facts {
  display: grid;
  background: #f7f8fa;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
}

.course-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #e6eaf0;
  font-size: 12px;
}

.course-facts > div:last-child {
  border-bottom: 0;
}

.course-facts span {
  color: var(--muted);
}

.related-section {
  margin-top: 72px;
  padding-top: 55px;
  border-top: 1px solid var(--line);
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 880px;
}

.site-footer {
  padding: 54px 0 0;
  color: #c6d0dc;
  background: var(--night);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 70px;
  padding-bottom: 44px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: #8997a9;
  font-size: 13px;
}

.footer-grid h3 {
  margin-bottom: 17px;
  color: #fff;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: #8f9cad;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  color: #6f7d90;
  border-top: 1px solid #283347;
  font-size: 11px;
}

.mobile-menu,
.mobile-menu-backdrop,
.mobile-dock {
  display: none;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 10vh 20px 30px;
}

.search-overlay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(9, 16, 27, 0.76);
  border: 0;
  backdrop-filter: blur(5px);
}

.search-panel {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.search-panel-head strong {
  font-size: 19px;
}

.search-panel-head button,
.mobile-menu-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 15px;
  background: #f4f6f8;
  border: 1px solid #dce2e9;
  border-radius: 7px;
}

.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}

.search-topics button {
  padding: 7px 9px;
  color: #566579;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.search-topics button:hover {
  color: var(--primary);
  border-color: #a9c5ff;
}

.search-result-label {
  display: block;
  margin-bottom: 7px;
  color: #8a96a6;
  font-size: 11px;
  font-weight: 800;
}

.search-results > a {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.search-results img {
  width: 74px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 5px;
}

.search-results a > span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.search-results strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results small {
  color: var(--muted);
  font-size: 11px;
}

.search-results a:hover strong {
  color: var(--primary);
}

.empty-search {
  padding: 26px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1160px) {
  .desktop-nav {
    gap: 19px;
    margin-left: 32px;
  }

  .desktop-nav .nav-group:last-child {
    display: none;
  }

  .header-actions .icon-action span {
    display: none;
  }

  .featured-grid,
  .latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .archive-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

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

@media (max-width: 900px) {
  .site-container {
    width: min(100% - 36px, 760px);
  }

  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .search-action span {
    display: none;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 79;
    display: block;
    background: rgba(8, 14, 24, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(360px, 88vw);
    padding: 19px;
    background: #fff;
    transform: translateX(101%);
    transition: transform 220ms ease;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
  }

  .mobile-menu nav {
    display: grid;
    overflow-y: auto;
    padding: 10px 0;
  }

  .mobile-menu-nav {
    align-content: start;
  }

  .mobile-menu nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 53px;
    border-bottom: 1px solid #edf0f4;
  }

  .mobile-menu nav a span {
    font-weight: 700;
  }

  .mobile-menu nav a small {
    color: var(--muted);
  }

  .mobile-nav-group {
    padding: 2px 0 12px;
    border-bottom: 1px solid #e8ecf1;
  }

  .mobile-menu nav .mobile-group-title {
    min-height: 50px;
    border-bottom: 0;
  }

  .mobile-group-title span {
    color: var(--ink);
  }

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

  .mobile-menu nav .mobile-subnav a {
    min-height: 36px;
    padding: 0 9px;
    color: #566579;
    background: #f3f6f9;
    border: 0;
    border-radius: 5px;
    font-size: 12px;
  }

  .mobile-menu nav .mobile-subnav a:hover {
    color: var(--primary);
    background: #edf3ff;
  }

  .mobile-login {
    margin-top: auto;
    color: #fff;
    background: var(--primary);
    border: 0;
  }

  .hero-feature {
    display: none;
  }

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

  .path-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

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

  .archive-sidebar {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
    order: -1;
  }

  .related-grid {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 62px;
  }

  .site-container {
    width: min(100% - 28px, 560px);
  }

  .topline {
    display: none;
  }

  .site-header {
    height: 62px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .header-actions {
    gap: 0;
  }

  .home-hero {
    height: 500px;
  }

  .home-hero-image {
    object-position: 60% center;
  }

  .home-hero-shade {
    background: rgba(7, 13, 23, 0.72);
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 48px;
  }

  .hero-kicker {
    margin-bottom: 15px;
    font-size: 12px;
  }

  .hero-content h1 {
    margin-bottom: 13px;
    font-size: 42px;
  }

  .hero-content > p {
    margin-bottom: 23px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-top: 25px;
    font-size: 11px;
  }

  .hero-proof span:last-child {
    grid-column: 1 / -1;
  }

  .category-strip-inner,
  .category-nav-scroll {
    width: 100%;
    min-height: 56px;
    padding-inline: 14px;
  }

  .content-section {
    padding: 48px 0;
  }

  .section-heading {
    align-items: center;
    margin-bottom: 21px;
  }

  .section-heading h2,
  .related-section h2 {
    font-size: 25px;
  }

  .section-heading .text-button {
    font-size: 13px;
  }

  .featured-grid,
  .latest-grid,
  .archive-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .course-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 132px;
  }

  .course-cover {
    height: 100%;
    aspect-ratio: auto;
  }

  .course-level {
    left: 8px;
    top: 8px;
    padding: 4px 6px;
    font-size: 9px;
  }

  .save-button {
    top: 7px;
    right: 7px;
    width: 30px;
    height: 30px;
  }

  .course-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
  }

  .course-category {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .course-card h3 {
    min-height: 0;
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.45;
  }

  .course-card-body > p {
    display: none;
  }

  .course-meta {
    gap: 8px;
    margin-top: auto;
    padding-top: 9px;
    font-size: 10px;
  }

  .course-meta span:nth-child(2) {
    display: none;
  }

  .path-section {
    padding: 52px 0;
  }

  .path-copy h2 {
    font-size: 29px;
  }

  .path-copy p {
    font-size: 14px;
  }

  .path-steps a {
    min-height: 80px;
  }

  .category-hero {
    padding: 28px 0 32px;
  }

  .breadcrumbs {
    margin-bottom: 21px;
  }

  .category-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .category-title-row h1 {
    font-size: 33px;
  }

  .category-title-row p {
    font-size: 14px;
  }

  .category-stat {
    display: none;
  }

  .category-content {
    padding: 20px 0 48px;
  }

  .category-toolbar {
    margin-bottom: 16px;
  }

  .result-count small {
    display: none;
  }

  .sort-select {
    margin-left: auto;
  }

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

  .archive-sidebar {
    grid-template-columns: 1fr;
  }

  .ranking-block {
    display: none;
  }

  .detail-page {
    padding: 20px 0 48px;
  }

  .detail-layout {
    gap: 28px;
  }

  .article-header h1 {
    margin-bottom: 14px;
    font-size: 27px;
    line-height: 1.4;
  }

  .article-lead {
    font-size: 15px;
  }

  .article-meta {
    gap: 11px;
  }

  .article-cover {
    margin-top: 23px;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .course-facts {
    grid-template-columns: 1fr 1fr;
  }

  .course-facts > div:nth-child(2) {
    border-right: 0;
  }

  .course-facts > div {
    border-right: 1px solid #e6eaf0;
  }

  .article-body {
    padding-top: 26px;
  }

  .article-body h2 {
    margin-top: 34px;
    font-size: 21px;
  }

  .article-body > p,
  .article-intro p,
  .article-note p {
    font-size: 15px;
    line-height: 1.85;
  }

  .article-intro {
    padding: 18px;
  }

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

  .chapter-list > div {
    grid-template-columns: 34px 1fr auto;
    min-height: 82px;
  }

  .related-section {
    margin-top: 50px;
    padding-top: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobile-dock a,
  .mobile-dock button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    color: #778396;
    background: transparent;
    border: 0;
    font-size: 10px;
  }

  .mobile-dock a.active {
    color: var(--primary);
  }

  .search-overlay {
    align-items: end;
    padding: 0;
  }

  .search-panel {
    width: 100%;
    max-height: 88vh;
    padding: 18px 16px 26px;
    border-radius: 8px 8px 0 0;
  }

  .search-results > a {
    grid-template-columns: 65px 1fr auto;
  }
}

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

  .hero-content h1 {
    font-size: 38px;
  }

  .course-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .course-meta span:first-child {
    display: none;
  }

  .sort-select svg,
  .filter-button span {
    display: none;
  }

  .article-header h1 {
    font-size: 24px;
  }
}
