:root {
  --ink: #10253d;
  --muted: #5c6c80;
  --blue: #126da4;
  --blue-dark: #0d4b75;
  --sky: #59b7e8;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --warm: #f7f4ef;
  --rule: #d9e0e6;
  --soft-rule: #e9edf0;
  --header-height: 76px;
  --sidebar-width: 288px;
  --article-width: 1040px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: linear-gradient(90deg, var(--warm) 0, var(--warm) var(--sidebar-width), var(--paper) var(--sidebar-width));
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--blue-dark);
}

button,
input {
  font: inherit;
}

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

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

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

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(320px, 540px);
  align-items: center;
  gap: 22px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 2vw, 36px);
}

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

.brand img {
  display: block;
  width: 258px;
  max-width: 27vw;
  height: auto;
}

.brand > span {
  padding: 4px 10px 3px;
  border: 1px solid #9dd7f4;
  border-radius: 8px;
  background: #eff9fe;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.site-context {
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
  line-height: 1.2;
}

.site-context span,
.site-context small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-context span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.site-context small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid #becbd5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 37, 61, 0.03);
}

.search-shell:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(89, 183, 232, 0.18);
}

.search-shell svg {
  flex: 0 0 auto;
  width: 18px;
  margin-left: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-shell input {
  width: 100%;
  height: 100%;
  padding: 0 70px 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.93rem;
}

.search-shell kbd {
  position: absolute;
  right: 12px;
  padding: 1px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--wash);
  color: var(--muted);
  font-size: 0.75rem;
  font-family: inherit;
}

.search-clear {
  position: absolute;
  right: 8px;
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.3rem;
}

.search-shell.has-query kbd {
  display: none;
}

.search-shell.has-query .search-clear {
  display: block;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(520px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: white;
  box-shadow: 0 18px 46px rgba(20, 39, 60, 0.2);
}

.search-result {
  display: block;
  padding: 11px 12px;
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
}

.search-result:hover,
.search-result.is-active {
  background: #edf7fc;
  color: var(--ink);
}

.search-result-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.search-result strong {
  font-size: 0.91rem;
}

.search-result em {
  color: var(--blue);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result p {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.81rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-empty {
  margin: 0;
  padding: 22px 14px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.page-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
}

.sidebar {
  position: relative;
  z-index: 30;
  border-right: 1px solid var(--rule);
  background: var(--warm);
}

.sidebar-inner {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 30px 24px 40px;
  scrollbar-width: thin;
}

.sidebar-title {
  margin: 0 0 22px;
  color: #884817;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-group {
  margin: 0 0 22px;
}

.nav-group p {
  margin: 0 0 7px;
  color: #884817;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-group a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-left: -8px;
  padding: 5px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  color: #42556d;
  font-size: 0.84rem;
  line-height: 1.35;
  text-decoration: none;
}

.nav-group a span {
  flex: 0 0 25px;
  color: #758497;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav-group a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.nav-group a.is-active {
  border-left-color: var(--sky);
  background: #e7f3f9;
  color: var(--ink);
  font-weight: 750;
}

.sidebar-footer {
  padding-top: 18px;
  border-top: 1px solid #ddd7cd;
}

.sidebar-footer a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.main-content {
  min-width: 0;
  padding: 58px clamp(32px, 6vw, 92px) 100px;
  background: var(--paper);
}

.wiki-article {
  width: min(100%, var(--article-width));
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
}

.article-hero {
  padding-bottom: 20px;
  border-bottom: 1px solid #aab8c3;
}

.breadcrumb {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-hero h1,
.article-hero h2 {
  max-width: 920px;
  margin: 0;
  color: #0c2239;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.article-hero sup {
  font-size: 0.25em;
  vertical-align: super;
}

.article-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.28rem;
}

.article-note {
  max-width: 760px;
  margin: 8px 0 0;
  color: #6b7887;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
}

.ucs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ucs-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid #a9cada;
  border-radius: 5px;
  background: #eef7fb;
  color: var(--blue-dark);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.ucs-download:hover {
  border-color: var(--blue);
  background: #dff0f8;
  color: var(--ink);
}

.article-infobox {
  float: right;
  width: 292px;
  margin: 32px 0 26px 34px;
  border: 1px solid #bfcbd4;
  border-top: 5px solid var(--blue);
  background: #f8fafb;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
}

.infobox-title {
  padding: 13px 15px;
  border-bottom: 1px solid var(--rule);
  background: #eaf4f9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 700;
  text-align: center;
}

.article-infobox dl {
  margin: 0;
  padding: 9px 15px 13px;
}

.article-infobox dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--soft-rule);
}

.article-infobox dl > div:last-child {
  border-bottom: 0;
}

.article-infobox dt {
  color: #4e6279;
  font-weight: 800;
}

.article-infobox dd {
  margin: 0;
}

.article-section {
  clear: both;
  padding: 32px 0 12px;
}

#overview {
  clear: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid #aebbc5;
}

.section-heading h2 {
  margin: 0;
  padding-bottom: 7px;
  color: #0c2239;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.14;
}

.heading-anchor {
  opacity: 0;
  color: #8291a0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.section-heading:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.article-section p {
  max-width: 80ch;
  margin: 0 0 1em;
}

.article-section h3 {
  color: #163552;
  font-weight: 600;
}

.part-heading {
  clear: both;
  margin: 74px 0 8px;
  padding: 23px 0 17px;
  border-top: 5px solid var(--ink);
  border-bottom: 1px solid #aebbc5;
}

.part-heading span {
  display: block;
  margin-bottom: 4px;
  color: #884817;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.part-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 500;
}

.domain-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 800px;
  margin: 26px 0 12px;
}

.domain-index a {
  display: grid;
  min-height: 96px;
  padding: 13px;
  border: 1px solid var(--rule);
  border-top: 5px solid var(--domain-color);
  background: #fafbfc;
  color: var(--ink);
  text-decoration: none;
}

.domain-index a:hover {
  border-color: var(--domain-color);
  background: #fff;
}

.domain-index span {
  color: var(--domain-color);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.domain-index strong {
  align-self: end;
  font-size: 0.9rem;
}

.domain-section,
.objective-section {
  position: relative;
}

.domain-section::before,
.objective-section::before {
  position: absolute;
  top: 34px;
  bottom: 13px;
  left: -25px;
  width: 4px;
  background: var(--section-accent);
  content: "";
}

.section-label {
  grid-column: 1 / -1;
  margin: 0 0 -2px !important;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--section-accent);
}

.domain-essay p + p {
  text-indent: 1.4em;
}

.table-wrap {
  max-width: 900px;
  overflow-x: auto;
  border: 1px solid var(--rule);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--soft-rule);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf2f5;
  color: #3d5268;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: #fafbfc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  width: 78px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.objective-summary {
  max-width: 88ch !important;
  padding: 16px 18px;
  border-left: 3px solid var(--section-accent);
  background: #f7f9fa;
}

.requirements-list {
  max-width: 900px;
  margin-top: 20px;
  border-top: 1px solid #bdc8d1;
}

.requirement {
  position: relative;
  padding: 18px 4px 16px 108px;
  border-bottom: 1px solid var(--soft-rule);
}

.requirement header {
  display: contents;
}

.requirement-code {
  position: absolute;
  top: 21px;
  left: 2px;
  width: 78px;
  padding: 3px 7px;
  border: 1px solid #bdc9d2;
  border-radius: 3px;
  background: #f5f8fa;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}

.requirement h3 {
  margin: 0 0 5px;
  font-size: 1.02rem;
}

.requirement p {
  margin: 0;
  color: #273c51;
  font-size: 0.96rem;
}

.special-requirement .requirement-code {
  border-color: #e2c195;
  background: #fff8e9;
}

.definition {
  padding: 17px 0;
  border-bottom: 1px solid var(--soft-rule);
}

.definition dt {
  color: #163552;
  font-size: 1.08rem;
  font-weight: 700;
}

.definition dd {
  max-width: 82ch;
  margin: 5px 0 0;
}

.about-mspalliance {
  margin: 0 0 56px;
  padding: 28px 32px 32px;
  border: 1px solid #bfd5e2;
  border-top: 5px solid var(--blue);
  background: linear-gradient(135deg, #f4fafd 0%, #eaf4f9 100%);
}

.about-mspalliance .section-heading {
  border-bottom-color: #bfd5e2;
}

.about-mspalliance .section-heading h1 {
  margin: 0;
  padding-bottom: 7px;
  color: #0c2239;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}

.about-content {
  max-width: 78ch;
}

.about-content p {
  margin: 0 0 13px;
}

.about-content .about-lead {
  color: #173b5c;
  font-size: 1.12rem;
  line-height: 1.65;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 5px;
  background: var(--blue-dark);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.about-link:hover {
  background: var(--ink);
  color: #fff;
}

.article-footer {
  clear: both;
  margin-top: 68px;
  padding: 28px 0 10px;
  border-top: 5px solid var(--ink);
  color: #405267;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.77rem;
}

.article-footer p {
  max-width: 90ch;
}

.source-fidelity {
  color: #6d7a89;
}

.search-entry.search-flash {
  animation: search-flash 1.6s ease-out;
}

@keyframes search-flash {
  0%, 30% { background-color: #fff2a8; }
  100% { background-color: transparent; }
}

.search-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 252px;
  }

  .header-inner {
    grid-template-columns: auto minmax(270px, 480px);
    gap: 18px;
  }

  .site-context {
    display: none;
  }

  .main-content {
    padding-inline: clamp(30px, 5vw, 60px);
  }

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

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  body {
    background: var(--paper);
  }

  .header-inner {
    grid-template-columns: auto auto minmax(180px, 1fr);
    gap: 12px;
    padding-inline: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .brand img {
    width: 205px;
    max-width: 29vw;
  }

  .brand > span {
    display: none;
  }

  .page-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: min(330px, 86vw);
    border-right: 1px solid var(--rule);
    box-shadow: 16px 0 45px rgba(16, 37, 61, 0.18);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  body.menu-open {
    overflow: hidden;
  }

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

  .sidebar-inner {
    position: static;
    height: 100%;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 80;
    inset: var(--header-height) 0 0;
    background: rgba(10, 25, 39, 0.34);
  }

  body.menu-open .sidebar-backdrop {
    display: block;
  }

  .main-content {
    padding: 42px clamp(24px, 6vw, 54px) 84px;
  }

  .article-infobox {
    float: none;
    width: min(100%, 540px);
    margin: 26px 0;
  }

  .article-section {
    clear: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    padding-inline: 12px;
  }

  .brand {
    display: none;
  }

  .search-shell {
    min-width: 0;
  }

  .search-shell input {
    min-width: 0;
    font-size: 0.85rem;
  }

  .main-content {
    padding: 30px 18px 64px;
  }

  .about-mspalliance {
    padding: 22px 20px 24px;
  }

  .article-hero h1,
  .article-hero h2 {
    font-size: 2.25rem;
  }

  .article-subtitle {
    font-size: 1.08rem;
  }

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

  .domain-index a {
    min-height: 82px;
  }

  .domain-section::before,
  .objective-section::before {
    left: -10px;
    width: 3px;
  }

  .requirement {
    padding: 17px 2px;
  }

  .requirement header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .requirement-code {
    position: static;
    flex: 0 0 66px;
    width: auto;
  }

  .requirement h3 {
    margin-top: 1px;
    font-size: 0.98rem;
  }

  .requirement p {
    margin-top: 9px;
    font-size: 0.92rem;
  }

  th,
  td {
    padding: 8px 10px;
  }

  .domain-section table {
    min-width: 720px;
  }
}

@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;
  }
}

@media print {
  .site-header,
  .sidebar,
  .sidebar-backdrop,
  .skip-link {
    display: none !important;
  }

  .page-layout {
    display: block;
  }

  .main-content {
    padding: 0;
  }

  .wiki-article {
    width: 100%;
    font-size: 10pt;
  }

  .article-infobox {
    break-inside: avoid;
  }

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