:root {
  color-scheme: light;
  --ink: #101827;
  --ink-soft: #526078;
  --ink-faint: #7d899c;
  --line: #e6ebf2;
  --line-strong: #d7deea;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-blue: #f2f6ff;
  --blue: #2c65f6;
  --blue-deep: #1f4ed8;
  --blue-soft: #eaf0ff;
  --cyan: #35b8d9;
  --green: #168760;
  --amber: #a56813;
  --danger: #b73b4b;
  --sidebar-width: 264px;
  --content-width: 1220px;
  --reading-width: 920px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-float: 0 14px 34px rgba(25, 45, 82, 0.09), 0 2px 8px rgba(25, 45, 82, 0.04);
  --shadow-button: 0 8px 18px rgba(44, 101, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 2%, rgba(53, 184, 217, 0.08), transparent 25rem),
    linear-gradient(180deg, #ffffff 0, #fbfcff 58%, #ffffff 100%);
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(44, 101, 246, 0.2);
  outline-offset: 2px;
}

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

h1,
h2,
h3,
strong {
  font-weight: 650;
  letter-spacing: -0.015em;
}

.course-shell {
  min-height: 100vh;
}

.course-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(215, 222, 234, 0.82);
  background: rgba(251, 252, 255, 0.9);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.brand-block,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(145deg, #17233d 4%, var(--blue) 70%, var(--cyan));
  box-shadow: 0 9px 20px rgba(44, 101, 246, 0.21), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.03em;
}

.brand-block strong,
.brand-block span,
.mobile-brand strong {
  display: block;
}

.brand-block strong {
  color: #10192b;
  font-size: 15px;
}

.brand-block div > span {
  margin-top: 1px;
  color: var(--ink-faint);
  font-size: 10px;
  white-space: nowrap;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.sidebar-search {
  margin-top: 24px;
}

.sidebar-search label {
  display: block;
}

.sidebar-search label,
.sidebar-section-label {
  margin: 0 0 7px;
  padding-left: 2px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
}

.sidebar-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 6px;
}

.sidebar-search input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  box-shadow: inset 0 1px 2px rgba(25, 45, 82, 0.03);
}

.sidebar-search-row button {
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #344157;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.sidebar-search-row button:hover {
  border-color: #afc0e7;
  color: var(--blue-deep);
  background: #ffffff;
}

.sidebar-search.is-current input,
.sidebar-search input:focus {
  border-color: #9db5ee;
  background: #ffffff;
}

.sidebar-course-tree {
  min-height: 0;
  margin-top: 20px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.sidebar-tree-scroll {
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cfd7e6 transparent;
}

.sidebar-tree-unit + .sidebar-tree-unit {
  margin-top: 17px;
}

.sidebar-tree-unit > p {
  margin: 0 0 5px;
  color: #344157;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-tree-unit ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-lesson-link {
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  color: #657086;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sidebar-lesson-link:hover {
  color: #26344c;
  background: rgba(255, 255, 255, 0.78);
}

.sidebar-lesson-link.is-current {
  color: #1746ba;
  background: var(--blue-soft);
}

.sidebar-lesson-link.is-read:not(.is-current) {
  color: #2d6e59;
}

.sidebar-lesson-link span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
}

.sidebar-lesson-link strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-course-tree + .sidebar-progress {
  margin-top: 14px;
}

.sidebar-course-tree ~ .sidebar-footer {
  margin-top: 12px;
}

.nav-link,
.code-link,
.breadcrumb-button,
.outline-link {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-link {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  border-radius: 11px;
  color: #5d687c;
  font-size: 14px;
  font-weight: 570;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.nav-link.is-current {
  color: #1746ba;
  background: rgba(234, 240, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(44, 101, 246, 0.11);
}

.sidebar-progress {
  margin-top: 28px;
  padding: 15px 13px;
  border: 1px solid rgba(215, 222, 234, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.sidebar-progress strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf3;
}

.sidebar-progress .progress-track {
  margin-top: 11px;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 240ms ease;
}

.sidebar-footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.sidebar-footer-label {
  padding-left: 12px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 620;
}

.code-link {
  min-height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #46536a;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 5px 13px rgba(25, 45, 82, 0.05), inset 0 1px 0 #ffffff;
}

.code-link:hover {
  border-color: #bac8e6;
  color: var(--blue-deep);
  transform: translateY(-1px);
}

.code-link.is-current {
  border-color: #b9c8ea;
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.course-main {
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.mobile-header,
.mobile-nav {
  display: none;
}

.page-content {
  width: 100%;
  min-width: 0;
  padding: 52px clamp(28px, 4.2vw, 72px) 88px;
}

.content-frame {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.narrow-page {
  width: min(100%, 820px);
}

.page-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.eyebrow,
.dialog-kicker {
  margin-bottom: 9px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 690;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-heading h1 {
  max-width: 760px;
  margin-bottom: 13px;
  color: #0c1527;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.042em;
}

.page-heading > p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.ui-button {
  min-width: 112px;
  min-height: 42px;
  height: 42px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ui-button:hover {
  transform: translateY(-1px);
}

.ui-button:active {
  transform: translateY(0);
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(180deg, #3973ff 0%, #285de9 100%);
  box-shadow: var(--shadow-button);
}

.primary-action:hover {
  box-shadow: 0 11px 22px rgba(44, 101, 246, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.secondary-action {
  border-color: var(--line-strong);
  color: #26344c;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 16px rgba(25, 45, 82, 0.07), inset 0 1px 0 #ffffff;
}

.secondary-action:hover {
  border-color: #b9c7e4;
  color: var(--blue-deep);
}

.full-width {
  width: 100%;
}

.resume-panel {
  margin-bottom: 34px;
  padding: 24px 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(196, 210, 239, 0.8);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 0, rgba(53, 184, 217, 0.13), transparent 18rem),
    linear-gradient(135deg, rgba(242, 246, 255, 0.94), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow-float);
}

.resume-panel span,
.access-panel span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 650;
}

.resume-panel h2 {
  margin: 3px 0 3px;
  font-size: 20px;
  line-height: 1.35;
}

.resume-panel p {
  margin-bottom: 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.course-layout {
  min-width: 0;
}

.curriculum-list {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.course-unit {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 25px rgba(25, 45, 82, 0.045);
}

.unit-heading {
  padding: 20px 21px 17px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 253, 0.72);
}

.unit-heading > div {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.unit-heading span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.unit-heading h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.unit-heading p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: right;
}

.course-row {
  width: 100%;
  min-width: 0;
  min-height: 86px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 88px 64px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
}

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

.course-row:hover {
  background: var(--surface-blue);
}

.course-number {
  color: #8b96a8;
  font-size: 12px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

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

.course-row-copy strong,
.course-row-copy small {
  display: block;
}

.course-row-copy strong {
  overflow: hidden;
  color: #172034;
  font-size: 15px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-row-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-label {
  overflow: hidden;
  color: #66738a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-status {
  min-height: 27px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 999px;
  color: #66738a;
  background: #f1f4f8;
  font-size: 11px;
  font-style: normal;
  font-weight: 620;
  white-space: nowrap;
}

.course-status.is-current {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.course-status.is-read {
  color: var(--green);
  background: #eaf8f2;
}

.course-status.is-locked {
  color: var(--amber);
  background: #fff6e8;
}

.breadcrumb-button {
  min-height: 36px;
  margin-bottom: 16px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #526078;
  background: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 620;
  box-shadow: 0 5px 12px rgba(25, 45, 82, 0.04);
}

.breadcrumb-button:hover {
  border-color: #bdc9dd;
  color: var(--blue-deep);
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading-width)) 190px;
  align-items: start;
  justify-content: center;
  gap: 30px;
}

.reading-sheet {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-float);
}

.reading-hero {
  min-height: 230px;
  padding: clamp(34px, 5vw, 58px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 10%, rgba(53, 184, 217, 0.12), transparent 17rem),
    linear-gradient(135deg, #f5f8ff 0%, #ffffff 65%);
}

.reading-hero > div {
  min-width: 0;
}

.reading-hero span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 660;
}

.reading-hero h1 {
  max-width: 690px;
  margin: 10px 0 13px;
  color: #0c1527;
  font-size: clamp(29px, 4vw, 45px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.reading-hero p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.reading-hero small {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--ink-faint);
  font-size: 11px;
  white-space: nowrap;
}

.reading-section,
.related-section,
.source-note {
  scroll-margin-top: 28px;
  padding: clamp(32px, 5vw, 54px) clamp(34px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.reading-section.is-key {
  background: #fcfdff;
}

.section-label {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reading-section h2 {
  margin-bottom: 18px;
  color: #162036;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.35;
}

.reading-section p,
.source-note p {
  margin-bottom: 15px;
  color: #39475e;
  font-size: 16px;
  line-height: 1.9;
}

.reading-section p:last-child,
.source-note p:last-child {
  margin-bottom: 0;
}

.reading-section ul {
  margin: 4px 0 0;
  padding-left: 1.3em;
  color: #39475e;
}

.reading-section li {
  margin: 8px 0;
  padding-left: 4px;
  font-size: 16px;
  line-height: 1.8;
}

.page-outline {
  position: sticky;
  top: 28px;
  min-width: 0;
  padding: 16px 0 16px 17px;
  display: grid;
  gap: 3px;
  border-left: 1px solid var(--line-strong);
}

.page-outline > strong {
  margin-bottom: 7px;
  color: #28344a;
  font-size: 12px;
}

.outline-link {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.outline-link:hover,
.outline-link.is-current {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

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

.related-link {
  min-width: 0;
  min-height: 68px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.related-link:hover {
  border-color: #bdc9e1;
  background: var(--surface-blue);
  transform: translateY(-1px);
}

.related-link span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.related-link strong {
  min-width: 0;
  color: #263249;
  font-size: 13px;
  line-height: 1.45;
}

.source-note {
  background: var(--surface-soft);
}

.source-note strong {
  color: #4d5a70;
  font-size: 12px;
}

.source-note p {
  margin-top: 8px;
  color: #69768b;
  font-size: 12px;
  line-height: 1.7;
}

.source-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-links a {
  min-height: 32px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 620;
  text-decoration: none;
}

.source-links a:hover {
  border-color: #b8c6df;
  background: #ffffff;
}

.reading-actions {
  min-height: 98px;
  padding: 24px clamp(34px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.locked-panel,
.access-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-float);
}

.locked-panel {
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.locked-panel > span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 650;
}

.locked-panel h1 {
  margin: 11px 0 12px;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.25;
}

.locked-panel p {
  max-width: 530px;
  margin: 0 auto 25px;
  color: var(--ink-soft);
}

.library-controls {
  margin-bottom: 25px;
  padding: 17px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(25, 45, 82, 0.04);
}

.search-field {
  display: grid;
  gap: 6px;
}

.search-field span {
  color: #5e6b80;
  font-size: 11px;
  font-weight: 640;
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #ffffff;
}

.search-field input::placeholder {
  color: #99a3b3;
}

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

.filter-button {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5c687b;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 590;
  text-align: center;
}

.filter-button:hover,
.filter-button.is-current {
  border-color: #b9c8ea;
  color: var(--blue-deep);
  background: var(--blue-soft);
}

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

.concept-card {
  min-width: 0;
  min-height: 232px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 23px rgba(25, 45, 82, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.concept-card:hover {
  border-color: #bdc9e0;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(25, 45, 82, 0.085);
}

.concept-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.concept-card > div span,
.application-row > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 720;
}

.concept-card > div small {
  color: var(--ink-faint);
  font-size: 10px;
}

.concept-card h2 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.concept-card p {
  display: -webkit-box;
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.concept-card em,
.application-row em {
  margin-top: auto;
  color: #647188;
  font-size: 11px;
  font-style: normal;
  font-weight: 610;
}

.empty-state {
  padding: 55px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  text-align: center;
}

.empty-state strong {
  display: block;
  font-size: 18px;
}

.empty-state p {
  margin: 6px 0 20px;
  color: var(--ink-soft);
}

.mistake-note {
  margin-top: 23px;
  padding: 15px 17px;
  display: grid;
  gap: 4px;
  border-left: 3px solid #7394e6;
  border-radius: 4px 10px 10px 4px;
  background: var(--surface-blue);
}

.mistake-note strong {
  color: #274caa;
  font-size: 11px;
}

.mistake-note span {
  color: #485671;
  font-size: 13px;
  line-height: 1.65;
}

.capability-atlas {
  margin-bottom: 46px;
}

.application-index {
  min-width: 0;
}

.library-section-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.library-section-heading > span {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.library-section-heading h2 {
  margin: 5px 0 7px;
  color: #172034;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.35;
}

.library-section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.domain-card {
  min-width: 0;
  padding: 19px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(25, 45, 82, 0.04);
}

.domain-card > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.domain-card h3 {
  margin: 0 0 5px;
  color: #1a2438;
  font-size: 16px;
  line-height: 1.4;
}

.domain-card p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.domain-card dl,
.domain-card dd {
  margin: 0;
}

.domain-card dl {
  display: grid;
  gap: 7px;
}

.domain-card dl > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  font-size: 11px;
  line-height: 1.55;
}

.domain-card dt {
  color: #7a8699;
  font-weight: 620;
}

.domain-card dd {
  color: #536078;
}

.reference-note {
  margin: 12px 2px 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.application-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px rgba(25, 45, 82, 0.045);
}

.application-row {
  width: 100%;
  min-width: 0;
  min-height: 122px;
  padding: 21px 23px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
}

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

.application-row:hover {
  background: var(--surface-blue);
}

.application-row small {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 640;
}

.application-row h2 {
  margin: 3px 0 5px;
  font-size: 18px;
  line-height: 1.35;
}

.application-row p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.system-flow > div {
  min-height: 112px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.system-flow span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 720;
}

.system-flow strong {
  color: #3a475d;
  font-size: 12px;
  line-height: 1.55;
}

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

.role-grid > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.role-grid strong {
  color: #2d3a51;
  font-size: 13px;
}

.role-grid ul {
  margin-bottom: 0;
}

.access-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
}

.access-panel strong {
  display: block;
  margin: 5px 0;
  font-size: 23px;
}

.access-panel p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.access-dialog {
  width: min(calc(100vw - 32px), 440px);
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(207, 216, 232, 0.9);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 80px rgba(18, 31, 57, 0.22);
  backdrop-filter: blur(25px) saturate(130%);
  -webkit-backdrop-filter: blur(25px) saturate(130%);
}

.access-dialog::backdrop {
  background: rgba(10, 18, 34, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dialog-inner {
  position: relative;
  padding: 31px;
}

.dialog-inner h2 {
  margin-bottom: 8px;
  font-size: 27px;
  line-height: 1.25;
}

.dialog-inner > p {
  margin-bottom: 23px;
  color: var(--ink-soft);
  font-size: 13px;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #5e6a7f;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 6px 13px rgba(25, 45, 82, 0.06);
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #536077;
  font-size: 11px;
  font-weight: 640;
}

#access-code {
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #ffffff;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-message {
  min-height: 22px;
  margin-top: 9px;
  color: var(--danger);
  font-size: 12px;
}

.form-message.is-success {
  color: var(--green);
}

.prototype-note {
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 90;
  left: calc(50% + (var(--sidebar-width) / 2));
  bottom: 26px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: #ffffff;
  background: rgba(18, 28, 47, 0.92);
  box-shadow: 0 12px 30px rgba(18, 28, 47, 0.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  margin: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 1120px) {
  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-outline {
    display: none;
  }

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

@media (max-width: 760px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    background: #ffffff;
  }

  .course-sidebar {
    display: none;
  }

  .course-main {
    margin-left: 0;
  }

  .mobile-header {
    position: sticky;
    z-index: 25;
    top: 0;
    min-height: 62px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(215, 222, 234, 0.8);
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    font-size: 12px;
  }

  .mobile-brand strong {
    font-size: 14px;
  }

  .compact-action {
    min-height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: #344157;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    font-size: 12px;
    font-weight: 620;
    line-height: 1;
    text-align: center;
    box-shadow: 0 6px 14px rgba(25, 45, 82, 0.06);
  }

  .mobile-nav {
    position: fixed;
    z-index: 35;
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 58px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    border: 1px solid rgba(211, 219, 233, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(18, 31, 57, 0.18);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
  }

  .mobile-nav .nav-link {
    min-height: 42px;
    padding: 0 8px;
    justify-content: center;
    font-size: 12px;
    text-align: center;
  }

  .page-content {
    padding: 30px 16px 104px;
  }

  .page-heading {
    margin-bottom: 25px;
  }

  .page-heading h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .page-heading > p:last-child {
    font-size: 14px;
  }

  .resume-panel {
    padding: 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .resume-panel .ui-button {
    width: 100%;
  }

  .unit-heading {
    padding: 17px;
    display: block;
  }

  .unit-heading p {
    margin-top: 5px;
    text-align: left;
  }

  .course-row {
    min-height: 91px;
    padding: 14px 15px;
    grid-template-columns: 28px minmax(0, 1fr) 58px;
    gap: 10px;
  }

  .topic-label {
    display: none;
  }

  .course-row-copy strong {
    white-space: normal;
  }

  .course-row-copy small {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .course-status {
    padding: 0 6px;
    font-size: 10px;
  }

  .reading-sheet {
    border-radius: 17px;
  }

  .reading-hero {
    min-height: 0;
    padding: 30px 23px;
    display: block;
  }

  .reading-hero h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .reading-hero p {
    font-size: 14px;
  }

  .reading-hero small {
    display: block;
    margin-top: 13px;
  }

  .reading-section,
  .related-section,
  .source-note {
    padding: 29px 23px;
  }

  .reading-section p,
  .reading-section li {
    font-size: 15px;
    line-height: 1.82;
  }

  .related-links,
  .role-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reading-actions {
    min-height: 90px;
    padding: 20px 23px;
  }

  .reading-actions .ui-button {
    min-width: 104px;
  }

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

  .capability-atlas {
    margin-bottom: 38px;
  }

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

  .domain-card {
    padding: 17px;
  }

  .concept-card {
    min-height: 205px;
  }

  .application-row {
    min-height: 132px;
    padding: 18px 16px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .application-row em {
    grid-column: 2;
  }

  .system-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-flow > div {
    min-height: 0;
  }

  .access-panel {
    padding: 23px;
    grid-template-columns: minmax(0, 1fr);
  }

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

  .dialog-inner {
    padding: 27px 23px 23px;
  }

  .toast {
    left: 50%;
    bottom: 82px;
  }
}

@media (max-width: 390px) {
  .page-content {
    padding-right: 13px;
    padding-left: 13px;
  }

  .reading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reading-actions > span {
    display: none;
  }

  .reading-actions .ui-button {
    width: 100%;
  }

  .topic-filters {
    gap: 6px;
  }

  .filter-button {
    padding: 0 10px;
  }
}

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

/* 3.2 — Markdown-style reading mode */

:root {
  --content-width: 960px;
  --reading-width: 740px;
}

body {
  background: #ffffff;
  font-size: 16px;
}

.page-content {
  padding-top: 48px;
}

.document-index {
  width: min(100%, 880px);
}

.markdown-page {
  width: min(100%, var(--reading-width));
}

.document-index .page-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.document-index .page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4.2vw, 48px);
}

.document-intro,
.article-note {
  margin: 0;
  padding: 3px 0 3px 20px;
  border-left: 3px solid #b9c9ee;
  color: #4c5a70;
}

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

.document-continue {
  margin: 40px 0 14px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.document-continue span,
.document-group-number,
.article-meta {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 680;
}

.document-continue h2 {
  margin: 4px 0;
  font-size: 20px;
  line-height: 1.4;
}

.document-continue p,
.document-group > p,
.document-footnote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.document-toc,
.document-group {
  min-width: 0;
}

.document-group {
  padding: 38px 0 8px;
  border-top: 1px solid var(--line);
}

.document-group:first-child {
  border-top: 0;
}

.document-group h2 {
  margin: 5px 0 5px;
  color: #182236;
  font-size: 24px;
  line-height: 1.4;
}

.document-list,
.markdown-link-list,
.markdown-sources ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.document-link {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 0;
  border-top: 1px solid var(--line);
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.document-list li:first-child .document-link {
  border-top-color: var(--line-strong);
}

.document-link:hover {
  background: #f8faff;
}

.document-link-number {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.document-link-copy,
.document-link-copy strong,
.document-link-copy small {
  min-width: 0;
  display: block;
}

.document-link-copy strong {
  color: #182236;
  font-size: 16px;
  line-height: 1.45;
}

.document-link-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.document-link-state {
  color: var(--ink-faint);
  font-size: 11px;
  white-space: nowrap;
}

.document-link-state.is-current {
  color: var(--blue-deep);
}

.document-link-state.is-read {
  color: var(--green);
}

.document-footnote {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}

.markdown-article {
  width: 100%;
}

.markdown-header {
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--line-strong);
}

.markdown-header h1 {
  margin: 10px 0 14px;
  color: #0e1728;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.article-meta {
  margin-bottom: 0;
}

.article-lead {
  max-width: 680px;
  margin: 0;
  color: #4c596d;
  font-size: 19px;
  line-height: 1.75;
}

.markdown-section {
  padding: 36px 0 0;
  scroll-margin-top: 28px;
}

.markdown-section.is-key {
  margin-top: 34px;
  padding: 20px 0 20px 24px;
  border-left: 3px solid #aebfe9;
}

.markdown-section h2,
.markdown-related h2,
.markdown-sources h2 {
  margin: 0 0 14px;
  color: #172135;
  font-size: 24px;
  line-height: 1.45;
}

.markdown-section h2:not(:first-child) {
  margin-top: 34px;
}

.markdown-section p,
.markdown-section li,
.markdown-related li,
.markdown-sources p,
.markdown-sources li {
  color: #303e53;
  font-size: 17px;
  line-height: 1.9;
}

.markdown-section p {
  margin: 0 0 17px;
}

.markdown-section p:last-child {
  margin-bottom: 0;
}

.markdown-section ul,
.markdown-section ol {
  margin: 8px 0 0;
  padding-left: 1.4em;
}

.markdown-section li {
  margin: 7px 0;
  padding-left: 3px;
}

.article-steps {
  counter-reset: article-step;
}

.article-note {
  margin-top: 22px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.article-detailed-steps,
.article-explained-list,
.source-link-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.article-detailed-steps {
  counter-reset: detailed-step;
  border-top: 1px solid var(--line);
}

.article-detailed-steps > li {
  counter-increment: detailed-step;
  position: relative;
  margin: 0;
  padding: 20px 0 20px 48px;
  border-bottom: 1px solid var(--line);
}

.article-detailed-steps > li::before {
  content: counter(detailed-step);
  position: absolute;
  top: 22px;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1px solid #c7d3ed;
  border-radius: 50%;
  color: #315da8;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.article-detailed-steps strong,
.article-explained-list strong {
  display: block;
  margin-bottom: 5px;
  color: #18243a;
  font-size: 17px;
  line-height: 1.55;
}

.article-detailed-steps p {
  margin: 0;
}

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

.article-explained-list > li {
  margin: 0;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.article-explained-list span {
  display: block;
  color: #303e53;
  font-size: 17px;
  line-height: 1.9;
}

.article-table-scroll {
  width: 100%;
  margin: 18px 0 4px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  color: #303e53;
  font-size: 15px;
  line-height: 1.7;
}

.article-table th,
.article-table td {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th:last-child,
.article-table td:last-child {
  border-right: 0;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-table th {
  background: #f6f8fc;
  color: #1b2940;
  font-size: 14px;
  font-weight: 700;
}

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

.source-link-list li {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.source-link-list a {
  display: inline-block;
  color: #245fbd;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
  text-decoration: none;
}

.source-link-list a:hover {
  text-decoration: underline;
}

.source-link-list span {
  display: block;
  margin-top: 4px;
  color: #657087;
  font-size: 15px;
  line-height: 1.7;
}

.markdown-related,
.markdown-sources {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.markdown-link-list {
  margin-top: 8px;
}

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

.markdown-text-link {
  width: 100%;
  min-height: 50px;
  padding: 8px 2px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 0;
  color: #21304a;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.markdown-text-link:hover {
  color: var(--blue-deep);
  background: #f8faff;
}

.markdown-text-link span {
  flex: 0 0 auto;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 680;
}

.markdown-text-link strong {
  font-size: 15px;
  line-height: 1.55;
}

.markdown-sources p,
.markdown-sources li {
  color: #667286;
  font-size: 13px;
  line-height: 1.75;
}

.markdown-sources ul {
  margin-top: 10px;
  padding-left: 1.2em;
  list-style: disc;
}

.markdown-sources a {
  color: var(--blue-deep);
}

.markdown-article .reading-actions {
  min-height: 0;
  margin-top: 48px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-strong);
}

.library-controls {
  margin: 0 0 18px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.search-field input {
  border-radius: 7px;
  box-shadow: none;
}

.topic-filters {
  gap: 16px;
}

.filter-button {
  min-height: 30px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.filter-button:hover,
.filter-button.is-current {
  border-color: var(--blue);
  background: transparent;
}

.concept-group {
  padding-top: 30px;
}

.concept-list-link,
.application-list-link {
  grid-template-columns: minmax(0, 1fr) auto;
}

.markdown-text-link.is-title-only {
  gap: 0;
}

.markdown-definition-list {
  margin-top: 20px;
}

.markdown-definition {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.markdown-definition:first-child {
  border-top-color: var(--line-strong);
}

.markdown-definition h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.markdown-definition p {
  margin: 5px 0 0;
  color: #435168;
  font-size: 15px;
  line-height: 1.75;
}

.application-index {
  margin-top: 6px;
  padding-top: 22px;
}

.application-results {
  margin-top: 8px;
}

.application-result-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.application-list-meta {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.03em;
}

.reading-layout {
  display: block;
}

.page-outline {
  display: none !important;
}

.course-reading-guide {
  margin-top: 34px;
  padding: 26px 0 8px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.course-reading-guide h2 {
  margin: 0 0 14px;
  color: #172135;
  font-size: 20px;
}

.course-reading-guide ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reading-guide;
}

.course-reading-guide li {
  counter-increment: reading-guide;
  position: relative;
  min-height: 42px;
  padding: 9px 0 9px 40px;
  border-top: 1px solid var(--line);
}

.course-reading-guide li::before {
  content: counter(reading-guide);
  position: absolute;
  top: 10px;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #c4d0eb;
  border-radius: 50%;
  color: #315da8;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.course-reading-guide strong,
.course-reading-guide span {
  display: block;
}

.course-reading-guide strong {
  color: #1d2a40;
  font-size: 15px;
}

.course-reading-guide span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.course-map-item {
  border-top: 1px solid var(--line);
}

.course-map-item:first-child {
  border-top-color: var(--line-strong);
}

.course-map-item .document-link {
  border-top: 0;
}

.lesson-outline {
  margin: -5px 0 9px 56px;
  border-bottom: 1px solid var(--line);
}

.lesson-outline summary {
  width: max-content;
  max-width: 100%;
  padding: 5px 0 11px;
  color: #5f6d83;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.lesson-outline[open] summary {
  color: var(--blue-deep);
}

.lesson-outline-content {
  padding: 4px 0 18px;
}

.lesson-outline-content section + section {
  margin-top: 18px;
}

.lesson-outline-content h3 {
  margin: 0 0 4px;
  color: #35435a;
  font-size: 12px;
}

.lesson-outline-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-outline-content li + li {
  border-top: 1px solid #edf0f5;
}

.outline-reading-link {
  width: 100%;
  padding: 10px 0;
  display: block;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.outline-reading-link:hover strong {
  color: var(--blue-deep);
}

.outline-reading-link strong,
.outline-reading-link span {
  display: block;
}

.outline-reading-link strong {
  color: #28364d;
  font-size: 14px;
  line-height: 1.5;
}

.outline-reading-link span {
  margin-top: 2px;
  color: #657086;
  font-size: 12px;
  line-height: 1.6;
}

.global-search-form {
  margin-bottom: 28px;
  padding-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.global-search-form label,
.global-search-form label > span {
  display: block;
}

.global-search-form label > span {
  margin-bottom: 7px;
  color: #526078;
  font-size: 12px;
  font-weight: 650;
}

.global-search-form input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
}

.global-search-count {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 13px;
}

.global-search-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.global-search-result {
  width: 100%;
  min-height: 78px;
  padding: 14px 2px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.global-search-result:hover {
  background: #f8faff;
}

.search-result-kind {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
}

.search-result-copy,
.search-result-copy strong,
.search-result-copy small {
  min-width: 0;
  display: block;
}

.search-result-copy strong {
  color: #182236;
  font-size: 15px;
  line-height: 1.5;
}

.search-result-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.search-empty {
  margin-top: 0;
}

@media (max-width: 760px) {
  .page-content {
    padding: 28px 18px 104px;
  }

  .document-index .page-heading h1,
  .markdown-header h1 {
    font-size: clamp(31px, 9vw, 38px);
  }

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

  .document-continue {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .document-continue .ui-button {
    width: 100%;
  }

  .document-group {
    padding-top: 30px;
  }

  .document-link {
    min-height: 82px;
    padding: 14px 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .concept-list-link,
  .application-list-link {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .document-link-state {
    display: none;
  }

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

  .document-link-copy small {
    font-size: 12px;
  }

  .lesson-outline {
    margin-left: 40px;
  }

  .global-search-form {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .global-search-form .ui-button {
    width: 100%;
  }

  .global-search-result {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .global-search-result .document-link-state {
    display: none;
  }

  .markdown-header {
    padding-bottom: 28px;
  }

  .markdown-section {
    padding-top: 31px;
  }

  .markdown-section.is-key {
    margin-top: 28px;
    padding: 15px 0 15px 18px;
  }

  .markdown-section h2,
  .markdown-related h2,
  .markdown-sources h2 {
    font-size: 21px;
  }

  .markdown-section p,
  .markdown-section li {
    font-size: 16px;
    line-height: 1.85;
  }

  .article-detailed-steps > li {
    padding: 18px 0 18px 42px;
  }

  .article-detailed-steps > li::before {
    top: 20px;
    width: 25px;
    height: 25px;
    line-height: 23px;
  }

  .article-detailed-steps strong,
  .article-explained-list strong {
    font-size: 16px;
  }

  .article-explained-list span {
    font-size: 16px;
    line-height: 1.85;
  }

  .article-table-scroll {
    overflow: visible;
  }

  .article-table,
  .article-table tbody,
  .article-table tr,
  .article-table td {
    display: block;
    width: 100%;
  }

  .article-table thead {
    display: none;
  }

  .article-table tr {
    padding: 5px 0;
  }

  .article-table tr + tr {
    border-top: 1px solid var(--line-strong);
  }

  .article-table td,
  .article-table tr:last-child td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 12px;
    border: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .article-table td::before {
    content: attr(data-label);
    color: #526078;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
  }

  .topic-filters {
    gap: 11px;
  }
}

@media (max-width: 390px) {
  .page-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .document-intro {
    padding-left: 16px;
  }

  .markdown-section.is-key {
    padding-left: 15px;
  }
}
