:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --text: #17202a;
  --muted: #5f6f80;
  --line: #d8e0e7;
  --accent: #0f6b70;
  --accent-dark: #0a4b50;
  --accent-soft: #e5f3f3;
  --focus: #bf7b1f;
  --shadow: 0 18px 45px rgba(25, 39, 52, 0.08);
  --sidebar-width: 286px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 0.8rem;
  background: var(--text);
  color: #fff;
  transform: translateY(-140%);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid rgba(216, 224, 231, 0.75);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  font-weight: 800;
  text-decoration: none;
  color: var(--accent-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 0 0.45rem;
  border-radius: 999px;
  text-decoration: none;
}

.language-switch a[aria-current="true"] {
  background: var(--accent-dark);
  color: #fff;
}

.language-en .role {
  white-space: normal;
}

.site-sidebar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.sidebar-title {
  display: none;
}

.sidebar-nav {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-nav p {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.42rem 0.2rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: none;
}

.sidebar-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 36px;
  padding: 0.38rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible,
.sidebar-nav a[aria-current="page"] {
  background: var(--accent-soft);
  border-color: rgba(15, 107, 112, 0.16);
  color: var(--accent-dark);
}

.sidebar-nav a.parent-active {
  background: rgba(229, 243, 243, 0.72);
  border-color: rgba(15, 107, 112, 0.16);
  color: var(--accent-dark);
}

.sidebar-nav a.has-subnav {
  position: relative;
  padding-right: 1.7rem;
}

.sidebar-nav a.has-subnav::after {
  position: absolute;
  right: 0.62rem;
  color: var(--accent-dark);
  content: "+";
  font-weight: 900;
}

.sidebar-nav a.has-subnav[aria-expanded="true"]::after {
  content: "-";
}

.sidebar-subnav {
  display: none;
  flex: 0 0 auto;
  gap: 6px;
}

.sidebar-subnav.is-expanded {
  display: flex;
}

.sidebar-nav a.sidebar-subitem {
  min-height: 32px;
  padding: 0.32rem 0.55rem;
  border-color: rgba(15, 107, 112, 0.12);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.section-band,
.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 88px) 0;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  word-break: keep-all;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  line-height: 1.42;
  letter-spacing: 0;
}

.role {
  margin: 1rem 0 0;
  color: var(--accent-dark);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.intro {
  max-width: 660px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.cta-group,
.contact-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

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

.button.secondary {
  background: var(--surface);
  color: var(--accent-dark);
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 509 / 380;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(52px, 7vw, 86px) 0;
}

.muted {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: var(--surface-soft);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

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

.card,
.contact-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(25, 39, 52, 0.05);
}

.card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.book-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.book-kicker {
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
}

.career-list {
  display: grid;
  gap: 14px;
}

.career-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(25, 39, 52, 0.04);
}

.career-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 0.85rem;
}

.career-heading span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.career-heading h3 {
  margin: 0;
}

.career-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  min-height: 42px;
  padding: 0.58rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.reference-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: clamp(18px, 2.6vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid rgba(15, 107, 112, 0.72);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(25, 39, 52, 0.04);
}

.reference-card p {
  margin: 0;
  color: var(--muted);
}

.reference-card h2,
.reference-card h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

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

.link-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 112, 0.5);
  box-shadow: 0 14px 32px rgba(25, 39, 52, 0.08);
}

.link-card span {
  display: block;
  min-height: 1.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.link-card strong {
  display: block;
  min-height: 3.95rem;
  color: var(--text);
  line-height: 1.42;
}

.contact-section {
  padding-bottom: clamp(64px, 9vw, 104px);
}

.contact-card {
  width: 100%;
  max-width: none;
}

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

.site-footer p {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.archive-hero {
  padding: clamp(48px, 7vw, 82px) 0 clamp(30px, 5vw, 54px);
}

.archive-hero h1 {
  max-width: 980px;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.archive-hero .intro {
  max-width: 760px;
}

.timeline-hero {
  padding: clamp(18px, 2.4vw, 24px) 0 12px;
}

.timeline-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.timeline-hero .intro {
  margin-top: 0.75rem;
}

.timeline-hero .page-summary {
  gap: 10px;
  margin-top: 14px;
}

.timeline-hero .summary-item {
  padding: 10px 12px;
}

.timeline-hero .summary-item strong {
  font-size: 1rem;
}

.archive-layout {
  padding-bottom: clamp(58px, 8vw, 96px);
}

.admin-overview-page {
  padding-bottom: clamp(64px, 8vw, 104px);
}

.admin-document-shell {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 3vw, 44px);
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: clamp(24px, 3vw, 34px);
}

.admin-document-index,
.admin-document-main {
  min-width: 0;
}

.admin-document-index {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.admin-overview-page .section-heading {
  max-width: none;
  margin-bottom: 20px;
}

.admin-overview-page .section-heading h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.16;
}

.admin-track-page .archive-hero,
.admin-level-page .archive-hero,
.apex-track-page .archive-hero,
.apex-level-page .archive-hero {
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(34px, 5vw, 62px);
}

.admin-track-page .section,
.apex-track-page .section {
  padding-top: clamp(34px, 5vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.breadcrumb a {
  color: var(--accent-dark);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  text-decoration: underline;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  width: fit-content;
  padding: 0.28rem 0.72rem;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 107, 112, 0.2);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.level-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.level-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
}

.level-card h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}

@media (min-width: 860px) {
  .level-card > div:first-child {
    min-height: 160px;
  }

  .level-card-meta > div {
    min-height: 90px;
  }
}

.level-card-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.level-card-meta div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.level-card-meta dt {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.level-card-meta dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 860px) {
    .level-card-grid {
      grid-template-rows: repeat(5, auto);
    }

    .level-card {
      grid-row: span 5;
      grid-template-rows: subgrid;
      gap: 0;
    }

    .level-card > div:first-child,
    .level-card-meta > div,
    .level-card > .text-link {
      min-width: 0;
    }

    .level-card-meta {
      display: contents;
    }

    .level-card > .text-link {
      align-self: start;
    }
  }
}

@supports not (grid-template-rows: subgrid) {
  @media (min-width: 860px) {
    .level-card > div:first-child {
      min-height: 178px;
    }

    .level-card-meta > div {
      min-height: 92px;
    }

    .level-card-meta > div:last-child {
      min-height: 126px;
    }

    .level-card > .text-link {
      align-self: end;
    }
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  padding: 0.58rem 0.82rem;
  background: var(--surface);
  border: 1px solid rgba(15, 107, 112, 0.24);
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  background: var(--accent-soft);
  border-color: rgba(15, 107, 112, 0.45);
}

.admin-level-shell {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 54px);
  padding-top: clamp(28px, 3.6vw, 42px);
}

.apex-level-page .admin-level-shell {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(14px, 1.7vw, 24px);
  width: min(1480px, calc(100% - 12px));
  max-width: none;
}

.admin-level-page .section-heading {
  margin-bottom: 18px;
}

.admin-level-page .section-heading h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.16;
}

.admin-level-page .chapter-index {
  grid-template-columns: 1fr;
  gap: 7px;
}

.admin-level-page .doc-index a {
  min-height: 40px;
  padding: 0.52rem 0.68rem;
  font-size: 0.84rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.apex-level-page .doc-index a {
  min-height: 40px;
  padding: 0.5rem 0.64rem;
  font-size: 0.8rem;
}

.level-chapter-list {
  display: grid;
  gap: 12px;
}

.level-chapter-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.level-chapter-card h3 {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.level-chapter-card p {
  margin-bottom: 0.75rem;
}

.level-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-track-page .archive-hero {
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(34px, 5vw, 62px);
}

.flow-track-page .admin-document-shell {
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
}

.flow-track-page .chapter-index {
  grid-template-columns: 1fr;
  gap: 7px;
}

.flow-track-page .doc-index a {
  min-height: 40px;
  padding: 0.52rem 0.68rem;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.flow-card-grid,
.flow-level-grid,
.flow-competency-grid {
  display: grid;
  gap: 14px;
}

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

.flow-card-grid--support,
.flow-level-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.flow-course-card,
.flow-support-card,
.flow-level-card,
.flow-competency-card,
.flow-module-card {
  min-width: 0;
  border-radius: 8px;
}

.flow-course-card,
.flow-support-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.flow-course-card h3,
.flow-support-card h3,
.flow-level-card h3,
.flow-competency-card h3 {
  color: var(--text);
  line-height: 1.3;
  word-break: keep-all;
}

.flow-course-card .text-link,
.flow-support-card .text-link {
  align-self: end;
}

.flow-doc-intro,
.flow-course-overview {
  display: grid;
  gap: 18px;
  box-shadow: 0 14px 34px rgba(25, 39, 52, 0.05);
}

.flow-course-overview h2,
.flow-doc-intro h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
}

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

.flow-meta-grid div {
  min-width: 0;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-meta-grid dt {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.flow-meta-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
}

.flow-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.52rem;
  background: #eef6f7;
  border: 1px solid rgba(15, 107, 112, 0.16);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.2;
}

.flow-level-card,
.flow-competency-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.flow-competency-card > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.flow-level-card p,
.flow-competency-card p {
  margin: 0;
  color: var(--muted);
}

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

.flow-module-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(36, 62, 103, 0.24);
}

.flow-module-card[open] {
  border-color: rgba(15, 107, 112, 0.45);
  box-shadow: 0 14px 32px rgba(25, 39, 52, 0.06);
}

.flow-module-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.flow-module-card summary::-webkit-details-marker {
  display: none;
}

.flow-module-card summary strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
  word-break: keep-all;
}

.flow-module-card summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.flow-module-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.flow-module-body .flow-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-part .article-body--document {
  gap: 18px;
}

.flow-track-page .admin-document-shell {
  display: block;
  width: min(100% - 32px, 1040px);
  max-width: 1040px;
}

.flow-track-page .admin-document-index,
.flow-track-page .admin-document-main > .section-heading {
  display: none;
}

.flow-track-page[data-flow-course] .admin-document-shell {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(14px, 1.7vw, 24px);
  width: min(1480px, calc(100% - 12px));
  max-width: none;
}

.flow-track-page[data-flow-course] .admin-document-index,
.flow-track-page[data-flow-course] .admin-document-main > .section-heading {
  display: block;
}

.flow-track-page[data-flow-course] .flow-course-document {
  max-width: none;
}

.flow-track-page[data-flow-course] .archive-hero h1,
.flow-track-page[data-flow-course] .archive-hero .intro,
.flow-track-page[data-flow-course] .flow-part-header h2,
.flow-track-page[data-flow-course] .flow-module-header h3 {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  letter-spacing: 0;
}

.flow-track-page[data-flow-course] .doc-index {
  grid-template-columns: 1fr;
  gap: 7px;
}

.flow-track-page[data-flow-course] .doc-index-group summary {
  min-height: 40px;
  padding: 0.52rem 0.68rem;
  padding-right: 2rem;
  overflow: visible;
  font-size: 0.84rem;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.flow-track-page[data-flow-course] .doc-index-group summary span,
.flow-track-page[data-flow-course] .doc-index a {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.flow-track-page[data-flow-course] .doc-index a[data-depth="2"] {
  margin-left: 12px;
}

.flow-track-page .article-body--document {
  line-height: 1.72;
}

.flow-overview-document,
.flow-course-document {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  max-width: 960px;
  margin: 0 auto;
}

.flow-course-document {
  max-width: 900px;
}

.flow-overview-intro,
.flow-track-summary,
.flow-learning-path,
.flow-document-section,
.flow-resource-links,
.flow-course-summary,
.flow-part-section,
.flow-course-next {
  scroll-margin-top: 112px;
}

.flow-overview-intro,
.flow-track-summary,
.flow-learning-path,
.flow-document-section,
.flow-resource-links,
.flow-course-summary,
.flow-course-next {
  display: grid;
  gap: 16px;
}

.flow-overview-intro h2,
.flow-track-summary h2,
.flow-learning-path h2,
.flow-document-section h2,
.flow-resource-links h2,
.flow-course-summary h2,
.flow-course-next h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.flow-overview-intro,
.flow-course-summary {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.flow-section-number {
  margin: 0 0 -6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-summary-lines {
  display: grid;
  gap: 10px;
  padding: 18px 0 18px 18px;
  border-left: 3px solid var(--accent);
}

.flow-summary-lines p,
.flow-resource-links p,
.flow-learning-path > p,
.flow-course-next p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.flow-course-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flow-course-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  box-shadow: none;
}

.flow-course-card h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}

.flow-course-card p {
  margin: 0.7rem 0 0;
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.flow-course-card-meta {
  width: 100%;
}

.flow-course-card-meta dd,
.flow-learning-path > p,
.flow-overview-chapter .article-body--document {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.flow-course-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.flow-overview-track-document {
  gap: clamp(28px, 4vw, 42px);
}

.flow-track-page[data-flow-page="overview"] .archive-hero .intro {
  max-width: 1040px;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.flow-track-page[data-flow-page="overview"] .admin-document-shell {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
}

.flow-track-page[data-flow-page="overview"] .flow-overview-document {
  max-width: 1120px;
}

.flow-overview-track-document .section-heading {
  margin-bottom: 0;
}

.flow-overview-chapter {
  box-shadow: 0 14px 34px rgba(25, 39, 52, 0.05);
}

.flow-overview-chapter .chapter-header {
  align-items: start;
  padding: clamp(24px, 3vw, 38px);
}

.flow-overview-chapter .chapter-header h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  line-height: 1.2;
}

.flow-overview-chapter .chapter-label {
  min-width: 48px;
  height: 38px;
  font-size: 0.86rem;
}

.flow-overview-chapter .article-body--document {
  padding: clamp(24px, 3vw, 38px);
}

.flow-overview-chapter .article-body--document.flow-summary-lines {
  padding-left: clamp(24px, 3vw, 38px);
  border-left: 0;
}

.flow-card-meta,
.flow-module-chips,
.flow-resource-link-row,
.flow-part-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-card-meta span,
.flow-module-chips span,
.flow-part-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.56rem;
  border: 1px solid rgba(15, 107, 112, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.2;
}

.flow-part-nav {
  position: sticky;
  top: 82px;
  z-index: 3;
  padding: 12px 0;
  background: rgba(247, 250, 252, 0.95);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.flow-part-nav a {
  background: var(--surface);
  text-decoration: none;
}

.flow-part-nav a:hover,
.flow-part-nav a:focus-visible {
  background: var(--accent-soft);
  border-color: rgba(15, 107, 112, 0.4);
}

.flow-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 6px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-summary-strip div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.flow-summary-strip div:last-child {
  border-right: 0;
}

.flow-summary-strip dt,
.flow-compact-meta dt {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
}

.flow-summary-strip dd,
.flow-compact-meta dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.45;
}

.flow-part-section {
  display: grid;
  gap: 18px;
  padding-top: clamp(30px, 5vw, 52px);
  border-top: 2px solid rgba(15, 107, 112, 0.18);
}

.flow-part-header {
  display: grid;
  gap: 10px;
}

.flow-part-label {
  width: fit-content;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.flow-part-header h2 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.24;
}

.flow-track-page[data-flow-course] .flow-part-header h2 {
  max-width: none;
  font-size: clamp(1.5rem, 2.05vw, 2rem);
  line-height: 1.3;
  text-wrap: balance;
}

.flow-part-header p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.flow-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-compact-meta div {
  min-width: min(100%, 180px);
  max-width: 100%;
}

.flow-module-sequence {
  display: grid;
  gap: 0;
}

.flow-module-item {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.flow-module-item:first-child {
  border-top: 1px solid var(--line);
}

.flow-module-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.flow-module-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 107, 112, 0.2);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-module-header h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.flow-module-goal,
.flow-module-scenario,
.flow-module-output {
  margin: 0 0 0 48px;
  color: var(--muted);
  line-height: 1.72;
}

.flow-module-goal {
  color: var(--text);
}

.flow-module-details {
  margin: 4px 0 0 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-module-details summary {
  padding: 0.76rem 0.9rem;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  list-style: none;
}

.flow-module-details summary::-webkit-details-marker {
  display: none;
}

.flow-module-details summary::after {
  float: right;
  content: "+";
  font-weight: 900;
}

.flow-module-details[open] summary::after {
  content: "-";
}

.flow-module-detail-body {
  display: grid;
  gap: 16px;
  padding: 0 0.9rem 1rem;
}

.flow-module-detail-section {
  display: grid;
  gap: 6px;
}

.flow-module-detail-section h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.flow-module-detail-section p,
.flow-module-detail-section li {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.manuscript-preface {
  box-shadow: 0 12px 30px rgba(25, 39, 52, 0.05);
}

.manuscript-document {
  gap: 22px;
}

.manuscript-chapter {
  scroll-margin-top: 104px;
}

.manuscript-section {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  scroll-margin-top: 112px;
}

.doc-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  border: 0;
  background: var(--line);
}

.doc-checkbox {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: middle;
}

.doc-checkbox input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

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

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

.doc-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-card h2,
.doc-card h3 {
  margin: 0 0 0.75rem;
}

.doc-card p,
.doc-card li {
  color: var(--muted);
}

.doc-card p {
  margin: 0 0 0.85rem;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.15rem;
}

.doc-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.doc-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0.72rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.doc-links a:hover,
.doc-links a:focus-visible {
  border-color: rgba(15, 107, 112, 0.45);
  background: var(--accent-soft);
}

.page-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.summary-item {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-item span {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.local-index {
  margin-bottom: 18px;
}

.glossary-tools {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 18px;
}

.glossary-tools label {
  color: var(--text);
  font-weight: 850;
}

.glossary-tools input {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
}

.glossary-tools input:focus {
  border-color: var(--accent);
}

.glossary-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.term-index,
.chapter-index {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

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

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

.term-index a,
.chapter-index a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.62rem 0.76rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.term-index a:hover,
.term-index a:focus-visible,
.chapter-index a:hover,
.chapter-index a:focus-visible {
  background: var(--accent-soft);
  border-color: rgba(15, 107, 112, 0.45);
}

.term-collection,
.chapter-collection {
  display: grid;
  gap: 18px;
}

.term-card,
.doc-chapter {
  scroll-margin-top: 110px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(25, 39, 52, 0.04);
}

.term-card {
  padding: clamp(20px, 3vw, 30px);
}

.glossary-enhanced .glossary-page .term-index {
  display: none;
}

.glossary-enhanced .glossary-page .term-collection {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.glossary-enhanced .glossary-page .term-card {
  min-height: 104px;
  padding: 16px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.glossary-enhanced .glossary-page .term-card:hover,
.glossary-enhanced .glossary-page .term-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 112, 0.5);
  box-shadow: 0 14px 32px rgba(25, 39, 52, 0.08);
}

.glossary-enhanced .glossary-page .term-card-header {
  margin-bottom: 0;
}

.glossary-enhanced .glossary-page .term-card h2 {
  font-size: 1rem;
  line-height: 1.42;
}

.glossary-enhanced .glossary-page .term-section {
  display: none;
}

.term-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.term-number,
.chapter-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 107, 112, 0.2);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.term-card h2,
.doc-chapter h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.term-section {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.term-section h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.98rem;
}

.term-section p {
  margin: 0;
  color: var(--muted);
}

.glossary-modal[hidden] {
  display: none;
}

.glossary-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.glossary-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 39, 0.48);
}

.glossary-modal__panel {
  position: relative;
  display: grid;
  width: min(860px, 100%);
  max-height: min(82vh, 820px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(17, 27, 39, 0.28);
}

.glossary-modal__header {
  padding: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}

.glossary-modal__header h2 {
  margin: 0;
  padding-right: 86px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.glossary-modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  min-height: 38px;
  padding: 0 0.75rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.glossary-modal__body {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 28px);
}

.glossary-modal__body .term-section {
  display: grid;
  gap: 8px;
  padding: 0 0 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.glossary-modal__body .term-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.doc-chapter {
  overflow: hidden;
}

.chapter-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, #ffffff 0%, #f2f7f8 100%);
  border-bottom: 1px solid var(--line);
}

.chapter-kicker {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 750;
}

.article-body {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}

.article-body h3 {
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.article-body p {
  margin: 0;
  color: var(--muted);
}

.article-body .line-note {
  padding: 0.62rem 0.82rem;
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  color: var(--text);
  font-weight: 750;
}

.doc-index a[data-depth="1"] {
  background: var(--accent-soft);
  border-color: rgba(15, 107, 112, 0.2);
  color: var(--accent-dark);
}

.doc-index a[data-depth="2"] {
  padding-left: 1.05rem;
}

.admin-overview-page .doc-index {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 0;
}

.admin-overview-page .doc-index a {
  min-height: 42px;
  padding: 0.56rem 0.72rem;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-overview-page .doc-index a[data-depth="1"] {
  min-height: 46px;
  background: #e2f1f1;
  border-color: rgba(15, 107, 112, 0.22);
  color: var(--accent-dark);
}

.admin-overview-page .doc-index a[data-depth="2"] {
  min-height: 38px;
  padding: 0.43rem 0.82rem;
  background: var(--surface);
  border-color: rgba(36, 62, 103, 0.82);
  color: var(--text);
  font-weight: 850;
}

.admin-overview-page .doc-index a[data-depth="2"]:hover,
.admin-overview-page .doc-index a[data-depth="2"]:focus-visible {
  background: #f7fbfc;
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.admin-overview-page .doc-index a.is-active,
.admin-overview-page .doc-index a[aria-current="location"],
.admin-level-page .doc-index a.is-active,
.admin-level-page .doc-index a[aria-current="location"],
.apex-level-page .doc-index a.is-active,
.apex-level-page .doc-index a[aria-current="location"],
.flow-track-page .doc-index a.is-active,
.flow-track-page .doc-index a[aria-current="location"] {
  background: #cfe8e8;
  border-color: rgba(15, 107, 112, 0.58);
  color: var(--accent-dark);
  box-shadow: inset 4px 0 0 var(--accent);
}

.doc-index-group {
  display: grid;
  gap: 6px;
}

.doc-index-group summary {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0.56rem 2.1rem 0.56rem 0.72rem;
  background: #e2f1f1;
  border: 1px solid rgba(15, 107, 112, 0.22);
  border-radius: 6px;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.3;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-index-group summary::-webkit-details-marker {
  display: none;
}

.doc-index-group summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-index-group summary::after {
  position: absolute;
  right: 0.75rem;
  color: var(--accent-dark);
  content: "+";
  font-size: 1.05rem;
  font-weight: 850;
}

.doc-index-group[open] summary::after {
  content: "-";
}

.doc-index-group summary:hover,
.doc-index-group summary:focus-visible,
.doc-index-group.is-active summary {
  border-color: rgba(15, 107, 112, 0.45);
  background: #cfe8e8;
}

.doc-index-sublist {
  display: grid;
  gap: 6px;
  padding-top: 6px;
}

.article-document {
  overflow: visible;
}

.article-body--document {
  gap: 18px;
}

.article-body--document > p,
.article-body--document > .doc-list {
  max-width: 900px;
}

.article-body--document > .doc-quote {
  width: 100%;
  max-width: none;
}

.article-body--document > .code-block {
  max-width: 100%;
}

.admin-overview-page .article-document {
  gap: 20px;
}

.admin-overview-page .doc-chapter {
  box-shadow: 0 14px 34px rgba(25, 39, 52, 0.05);
}

.admin-overview-page .chapter-header {
  padding: clamp(24px, 3vw, 38px);
}

.admin-overview-page .chapter-header h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  line-height: 1.2;
}

.admin-overview-page .chapter-label {
  min-width: 48px;
  height: 38px;
  font-size: 0.86rem;
}

.admin-overview-page .article-body--document {
  padding: clamp(24px, 3vw, 38px);
}

.article-body--document .doc-heading {
  scroll-margin-top: 112px;
}

.article-body--document .doc-heading--major {
  margin-top: 18px;
  padding-top: 26px;
  border-top: 2px solid rgba(15, 107, 112, 0.2);
  color: var(--text);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.article-body--document .doc-heading--minor {
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.36;
}

.article-body--document .doc-list {
  color: var(--muted);
}

.article-body--document .doc-list li::marker {
  color: var(--accent);
  font-weight: 850;
}

.article-body--document strong {
  color: var(--text);
  font-weight: 850;
}

.article-body--document code {
  padding: 0.12rem 0.32rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--accent-dark);
  font-size: 0.92em;
}

.article-body--document .code-block code {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  white-space: pre;
}

.doc-figure {
  display: grid;
  gap: 10px;
  width: min(100%, 980px);
  margin: 4px 0 10px;
  padding: clamp(12px, 2vw, 16px);
  background: #f7fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-figure img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(21, 43, 58, 0.16);
  border-radius: 6px;
  background: var(--surface);
}

.doc-figure figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
}

.doc-quote {
  margin: 0;
  padding: 16px 18px;
  background: #f3f8f9;
  border: 1px solid rgba(15, 107, 112, 0.14);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.doc-quote p {
  margin: 0;
  color: var(--text);
  font-weight: 720;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.doc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.62;
}

.doc-table th,
.doc-table td {
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-weight: 850;
}

.doc-table td:first-child {
  width: 28%;
  color: var(--text);
  font-weight: 760;
}

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

.code-block {
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: clamp(18px, 3vw, 24px);
  background: #13242b;
  border: 1px solid rgba(216, 224, 231, 0.25);
  border-radius: 8px;
  color: #f6fbfc;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.72;
}

.code-block--diagram {
  background: linear-gradient(180deg, #f8fbfc 0%, #eef7f8 100%);
  border-color: rgba(15, 107, 112, 0.24);
  box-shadow: inset 4px 0 0 rgba(15, 107, 112, 0.72);
  color: var(--text);
}

.code-block code {
  font: inherit;
  white-space: pre;
}

.code-block--diagram code {
  display: block;
  width: fit-content;
  min-width: max-content;
  margin: 0 auto;
  color: inherit;
  font-size: clamp(0.7rem, 0.82vw, 0.84rem);
  line-height: 1.62;
}

.semantic-diagram {
  display: grid;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(180deg, #f8fbfc 0%, #eef7f8 100%);
  border: 1px solid rgba(15, 107, 112, 0.24);
  border-radius: 8px;
  box-shadow: inset 4px 0 0 rgba(15, 107, 112, 0.72);
}

.semantic-diagram--objects {
  grid-template-columns: minmax(150px, 1fr) minmax(76px, 0.5fr) minmax(150px, 1fr) minmax(20px, 0.18fr) minmax(150px, 1fr);
}

.semantic-diagram--integration {
  grid-template-columns: minmax(150px, 0.9fr) minmax(46px, 0.28fr) minmax(220px, 1.25fr) minmax(46px, 0.28fr) minmax(150px, 0.9fr);
}

.semantic-node,
.semantic-wing {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid rgba(15, 107, 112, 0.28);
  border-radius: 8px;
  text-align: center;
}

.semantic-node--core {
  min-height: 132px;
  background: #ffffff;
}

.semantic-node__label {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.semantic-node strong,
.semantic-wing strong {
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.25;
  word-break: keep-all;
}

.semantic-node span:last-child,
.semantic-wing span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.semantic-link {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.semantic-link--wide {
  grid-template-columns: minmax(32px, 1fr);
}

.semantic-link__line {
  position: relative;
  display: block;
  height: 2px;
  background: rgba(15, 107, 112, 0.64);
}

.semantic-link__line::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(15, 107, 112, 0.8);
  content: "";
  transform: translateY(-50%);
}

.semantic-link--reverse .semantic-link__line::after {
  right: auto;
  left: -1px;
  border-right: 9px solid rgba(15, 107, 112, 0.8);
  border-left: 0;
}

.semantic-gap {
  min-width: 12px;
}

.relationship-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.relationship-node {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.relationship-node:hover,
.relationship-node:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 112, 0.5);
  box-shadow: 0 14px 32px rgba(25, 39, 52, 0.08);
}

.relationship-node span {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.relationship-node strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.definition-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.definition-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.definition-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.definition-list dt {
  color: var(--text);
  font-weight: 850;
}

.definition-list dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: timeline;
}

.timeline-list li {
  position: relative;
  min-height: 52px;
  padding-left: 56px;
}

.timeline-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  content: counter(timeline);
  counter-increment: timeline;
  font-weight: 850;
}

.timeline-roadmap {
  margin-top: 12px;
  margin-bottom: clamp(28px, 5vw, 54px);
  padding: clamp(20px, 3.4vw, 30px);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.2);
  color: #f8fafc;
}

.timeline-roadmap .eyebrow {
  color: #f4c76a;
}

.timeline-roadmap__fallback,
.timeline-roadmap__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.timeline-roadmap__fallback h2,
.timeline-roadmap__header h2 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.timeline-roadmap__fallback p,
.timeline-roadmap__header p {
  max-width: 720px;
  margin: 0.7rem 0 0;
  color: #cbd5e1;
}

.timeline-roadmap__hint {
  justify-self: end;
  width: fit-content;
  max-width: 280px;
  padding: 0.58rem 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.timeline-roadmap__route {
  position: relative;
  min-height: 320px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-roadmap__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.timeline-roadmap__line path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.timeline-roadmap-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: grid;
  width: 176px;
  gap: 7px;
  justify-items: center;
  color: #f8fafc;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, color 160ms ease;
}

.timeline-roadmap-node:hover,
.timeline-roadmap-node:focus-visible {
  color: #ffffff;
  transform: translate(-50%, -54%);
}

.timeline-roadmap-node:focus-visible {
  outline: 3px solid rgba(244, 199, 106, 0.65);
  outline-offset: 5px;
  border-radius: 8px;
}

.timeline-roadmap-node__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f4c76a;
  border: 3px solid #0f172a;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(244, 199, 106, 0.78), 0 0 26px rgba(244, 199, 106, 0.22);
  color: #101827;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.timeline-roadmap-node:hover .timeline-roadmap-node__dot,
.timeline-roadmap-node:focus-visible .timeline-roadmap-node__dot {
  background: #6ee7e2;
  box-shadow: 0 0 0 1px rgba(110, 231, 226, 0.86), 0 0 30px rgba(110, 231, 226, 0.3);
}

.timeline-roadmap-node__label {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 64px;
  align-content: center;
  padding: 8px 10px;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.timeline-roadmap-node__label span {
  color: #f4c76a;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
}

.timeline-roadmap-node__label strong {
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.32;
  word-break: keep-all;
}

.timeline-roadmap-node__label small {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.timeline-event-panel {
  margin-top: clamp(26px, 4vw, 42px);
  padding: clamp(18px, 3vw, 26px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.timeline-event-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.timeline-event-panel__header h3 {
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
}

.timeline-event-panel__header p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.timeline-event-count,
.timeline-event-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.22rem 0.56rem;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 107, 112, 0.2);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

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

.timeline-event-grid--flow {
  position: relative;
  grid-template-columns: 1fr;
  padding-left: 22px;
}

.timeline-event-grid--flow::before {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(15, 107, 112, 0.24);
  content: "";
}

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

.timeline-event-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: #fbfcfe;
  border: 1px solid rgba(216, 224, 231, 0.95);
  border-radius: 8px;
  overflow: hidden;
  scroll-margin-top: 120px;
}

.timeline-event-card--primary,
.timeline-event-card--mechanism,
.timeline-event-card--mechanism-card {
  grid-column: span 2;
  background: #ffffff;
  border-color: rgba(15, 107, 112, 0.28);
}

.timeline-event-grid--flow .timeline-event-card,
.timeline-event-grid--matrix .timeline-event-card {
  grid-column: auto;
}

.timeline-event-grid--flow .timeline-event-card::before {
  position: absolute;
  left: -23px;
  top: 24px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 3px solid var(--surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 107, 112, 0.22);
  content: "";
}

.timeline-event-card[open] {
  background: #ffffff;
}

details.timeline-event-card {
  display: block;
}

.timeline-event-card.is-roadmap-target {
  border-color: rgba(191, 123, 31, 0.62);
  box-shadow: 0 0 0 4px rgba(191, 123, 31, 0.14);
}

.timeline-event-card summary {
  display: grid;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.timeline-event-card summary::-webkit-details-marker {
  display: none;
}

.timeline-event-card summary::after {
  justify-self: start;
  padding: 0.14rem 0.48rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  content: "자세히";
  font-size: 0.72rem;
  font-weight: 850;
}

.timeline-event-card[open] summary::after {
  content: "접기";
}

.timeline-event-card__head,
.timeline-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.timeline-event-card__head {
  justify-content: space-between;
}

.timeline-event-card__meta span,
.timeline-event-card__order {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.16rem 0.46rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
}

.timeline-event-card__order {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.timeline-event-card h4,
.timeline-event-card summary strong {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.42;
  word-break: keep-all;
}

.timeline-event-card > p,
.timeline-event-card summary > span:not(.timeline-event-card__meta) {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline-event-causal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.timeline-event-causal--compact {
  grid-template-columns: 1fr;
}

.timeline-event-causal > div {
  min-width: 0;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid rgba(216, 224, 231, 0.9);
  border-radius: 8px;
}

.timeline-event-causal > div > span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 850;
}

.timeline-event-causal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-event-arrow {
  align-self: center;
  color: var(--accent);
  font-weight: 850;
}

.timeline-event-causal--compact .timeline-event-arrow {
  display: none;
}

.timeline-event-card__detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.timeline-event-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.timeline-event-tags {
  display: flex;
  min-width: 0;
  flex: 1 1 240px;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-event-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.14rem 0.42rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.timeline-source-section {
  margin-top: clamp(32px, 5vw, 58px);
}

.source-note-card {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.source-note-card p {
  margin: 0;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    gap: 8px;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .role {
    font-size: 1rem;
  }

  .hero-photo {
    max-width: 560px;
  }

  .card-grid.three,
  .link-list,
  .content-grid.two,
  .level-card-grid,
  .flow-card-grid,
  .flow-card-grid--support,
  .flow-level-grid,
  .flow-competency-grid,
  .term-index,
  .glossary-enhanced .glossary-page .term-collection,
  .relationship-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-summary,
  .chapter-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-document-shell {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1120px);
  }

  .flow-track-page .admin-document-shell {
    grid-template-columns: 1fr;
  }

  .flow-track-page[data-flow-course] .admin-document-shell {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1120px);
    max-width: 1120px;
  }

  .apex-level-page .admin-level-shell {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1120px);
    max-width: 1120px;
  }

  .admin-document-index {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .admin-overview-page .doc-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-module-body .flow-meta-grid {
    grid-template-columns: 1fr;
  }

  .flow-course-path,
  .flow-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-summary-strip div:nth-child(2) {
    border-right: 0;
  }

  .flow-part-nav {
    position: static;
  }

  .timeline-roadmap__fallback,
  .timeline-roadmap__header {
    grid-template-columns: 1fr;
  }

  .timeline-roadmap__hint {
    justify-self: start;
    max-width: none;
  }

  .timeline-roadmap__route {
    min-height: 350px;
  }

  .timeline-roadmap-node {
    width: 160px;
  }

  .timeline-event-panel__header,
  .timeline-event-causal {
    grid-template-columns: 1fr;
  }

  .timeline-event-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-band,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .muted {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .card-grid.two,
  .card-grid.three,
  .link-list,
  .content-grid.two,
  .level-card-grid,
  .flow-card-grid,
  .flow-card-grid--support,
  .flow-level-grid,
  .flow-competency-grid,
  .flow-meta-grid,
  .flow-course-path,
  .flow-summary-strip,
  .term-index,
  .glossary-enhanced .glossary-page .term-collection,
  .chapter-index,
  .page-summary,
  .relationship-map {
    grid-template-columns: 1fr;
  }

  .button,
  .cta-group,
  .contact-actions,
  .section-actions {
    width: 100%;
  }

  .button {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .hero {
    padding-top: 38px;
  }

  .link-card {
    min-height: 112px;
  }

  .link-card strong {
    min-height: auto;
  }

  .reference-card {
    grid-template-columns: 1fr;
  }

  .role {
    font-size: 0.86rem;
  }

  .admin-document-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 24px;
  }

  .admin-overview-page .doc-index {
    grid-template-columns: 1fr;
  }

  .admin-overview-page .section-heading h2 {
    font-size: clamp(1.85rem, 10vw, 2.35rem);
  }

  .admin-overview-page .chapter-header {
    grid-template-columns: 1fr;
  }

  .flow-module-card summary {
    grid-template-columns: 1fr;
  }

  .flow-track-page .admin-document-shell {
    width: min(100% - 28px, 1040px);
  }

  .flow-track-page[data-flow-course] .admin-document-shell {
    width: min(100% - 28px, 1120px);
  }

  .apex-level-page .admin-level-shell {
    width: min(100% - 28px, 1120px);
  }

  .flow-summary-strip div,
  .flow-summary-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-summary-strip div:last-child {
    border-bottom: 0;
  }

  .flow-module-header {
    grid-template-columns: 1fr;
  }

  .flow-module-goal,
  .flow-module-scenario,
  .flow-module-output,
  .flow-module-details {
    margin-left: 0;
  }

  .flow-course-card,
  .flow-support-card,
  .flow-level-card,
  .flow-competency-card,
  .flow-module-card summary,
  .flow-module-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  .code-block {
    padding: 14px;
  }

  .code-block--diagram code {
    margin-right: 0;
    margin-left: 0;
    font-size: 0.62rem;
    line-height: 1.55;
  }

  .semantic-diagram,
  .semantic-diagram--objects,
  .semantic-diagram--integration {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .semantic-node,
  .semantic-wing,
  .semantic-node--core {
    min-height: auto;
    padding: 14px;
  }

  .semantic-link,
  .semantic-link--wide {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 32px;
  }

  .semantic-link > span:not(.semantic-link__line) {
    display: none;
  }

  .semantic-link__line {
    width: 2px;
    height: 32px;
  }

  .semantic-link__line::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 50%;
    border-top: 9px solid rgba(15, 107, 112, 0.8);
    border-right: 6px solid transparent;
    border-bottom: 0;
    border-left: 6px solid transparent;
    transform: translateX(-50%);
  }

  .semantic-link--reverse .semantic-link__line::after {
    top: -1px;
    bottom: auto;
    left: 50%;
    border-top: 0;
    border-right: 6px solid transparent;
    border-bottom: 9px solid rgba(15, 107, 112, 0.8);
    border-left: 6px solid transparent;
  }

  .semantic-gap {
    display: none;
  }

  .level-chapter-card {
    grid-template-columns: 1fr;
  }

  .level-actions,
  .level-actions .button,
  .text-link {
    width: 100%;
  }

  .timeline-roadmap {
    padding: 18px;
  }

  .timeline-roadmap__fallback h2,
  .timeline-roadmap__header h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .timeline-roadmap__hint {
    width: 100%;
    border-radius: 8px;
  }

  .timeline-roadmap__route {
    display: grid;
    min-height: auto;
    gap: 12px;
    margin-top: 18px;
    padding: 8px 0 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .timeline-roadmap__route::before {
    position: absolute;
    left: 10px;
    top: 22px;
    bottom: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.32);
    content: "";
  }

  .timeline-roadmap__line {
    display: none;
  }

  .timeline-roadmap-node {
    position: relative;
    left: auto;
    top: auto;
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    justify-items: stretch;
    text-align: left;
    transform: none;
  }

  .timeline-roadmap-node:hover,
  .timeline-roadmap-node:focus-visible {
    transform: none;
  }

  .timeline-roadmap-node__dot {
    width: 30px;
    height: 30px;
    margin-left: -27px;
  }

  .timeline-roadmap-node__label {
    min-height: auto;
    padding: 10px 11px;
  }

  .timeline-roadmap-node__label strong {
    font-size: 0.94rem;
  }

  .timeline-event-panel {
    padding: 16px;
  }

  .timeline-event-grid,
  .timeline-event-grid--matrix {
    grid-template-columns: 1fr;
  }

  .timeline-event-grid--flow {
    grid-template-columns: 1fr;
    padding-left: 18px;
  }

  .timeline-event-card--primary,
  .timeline-event-card--mechanism,
  .timeline-event-card--mechanism-card {
    grid-column: auto;
  }

  .timeline-event-card {
    padding: 15px;
  }

  .timeline-event-tags {
    flex-basis: 100%;
  }

  .timeline-event-source {
    white-space: normal;
  }
}

@media (min-width: 1120px) {
  .site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 6;
    width: var(--sidebar-width);
    overflow-y: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .sidebar-title {
    display: block;
    padding: 24px 24px 14px;
    color: var(--accent-dark);
    font-weight: 850;
    text-decoration: none;
  }

  .sidebar-nav {
    display: grid;
    width: auto;
    margin: 0;
    gap: 4px;
    padding: 8px 16px 28px;
  }

  .sidebar-nav p {
    margin-top: 16px;
    padding: 0 8px;
  }

  .sidebar-nav a {
    width: 100%;
  }

  .sidebar-subnav {
    display: none;
    gap: 3px;
    margin: 0 0 2px 10px;
    padding-left: 10px;
    border-left: 2px solid var(--line);
  }

  .sidebar-subnav.is-expanded {
    display: grid;
  }

  .sidebar-nav a.sidebar-subitem {
    min-height: 30px;
    padding: 0.26rem 0.55rem;
    border-color: transparent;
    font-size: 0.8rem;
  }

  .site-header,
  main,
  .site-footer {
    margin-left: var(--sidebar-width);
  }
}

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