:root {
  --navy: #071c3f;
  --navy-2: #102b5b;
  --blue: #1769c2;
  --teal: #08a5a5;
  --green: #35b768;
  --orange: #d8832f;
  --text: #172033;
  --muted: #637083;
  --border: #dce3ec;
  --surface: #f7f9fc;
  --white: #ffffff;
  --sidebar-width: 310px;
  --header-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.doc-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 32px;
  background:
    linear-gradient(
      135deg,
      #241f5f 0%,
      #2f2a78 46%,
      #3d348b 100%
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 28px rgba(19, 17, 67, 0.34);
  backdrop-filter: blur(14px);
}

.doc-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 300px;
  color: var(--white);
}

.doc-brand:hover {
  text-decoration: none;
}

.doc-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(7, 15, 42, 0.22);
}

.doc-brand span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.doc-brand strong {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.doc-brand small {
  margin-top: 5px;
  color: #8ff1e4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
}

.doc-search {
  display: flex;
  align-items: center;
  width: min(520px, 48vw);
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.doc-search:focus-within {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.19);
  box-shadow:
    0 0 0 3px rgba(143, 241, 228, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.doc-search span {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.doc-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
}

.doc-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.doc-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(20, 91, 61, 0.28);
}

.doc-back-link:hover {
  text-decoration: none;
  background: #2da85e;
}

.doc-layout {
  min-height: 100vh;
  padding-top: var(--header-height);
}

.doc-sidebar {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  padding: 22px 18px 40px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.doc-sidebar-title {
  margin: 0 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-nav-module {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #314057;
  font-size: 14px;
  font-weight: 650;
}

.doc-nav-module:hover,
.doc-nav-module.active {
  background: #e8f1fc;
  color: var(--blue);
  text-decoration: none;
}

.doc-nav-number {
  flex: 0 0 25px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.doc-main {
  min-width: 0;
  margin-left: var(--sidebar-width);
  padding: 30px 44px 70px;
}

.doc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 22px;
  max-width: 1080px;
  color: var(--muted);
  font-size: 14px;
}

.doc-article {
  max-width: 1080px;
  margin: 0 auto;
}

.doc-article-header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.doc-eyebrow {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
}

h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.3;
}

h3 {
  color: var(--navy-2);
}

.doc-metadata {
  flex: 0 0 260px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.doc-metadata div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 7px;
}

.doc-metadata div:last-child {
  margin-bottom: 0;
}

.doc-metadata dt {
  color: var(--muted);
  font-size: 13px;
}

.doc-metadata dd {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.doc-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

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

.doc-pending {
  padding: 13px 16px;
  border-left: 4px solid #9db1c9;
  background: var(--surface);
  color: var(--muted);
}

.doc-notice {
  margin: 28px 0 0;
  padding: 17px 20px;
  border-radius: 10px;
}

.doc-notice-info {
  border: 1px solid #bad8fa;
  background: #edf6ff;
}

.doc-notice strong {
  color: var(--navy);
}

.doc-notice p {
  margin: 5px 0 0;
}

.doc-screenshot-placeholder {
  display: flex;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  border: 2px dashed #9eb1c8;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #f9fbfe 25%, #f3f7fc 25%,
    #f3f7fc 50%, #f9fbfe 50%, #f9fbfe 75%,
    #f3f7fc 75%);
  background-size: 28px 28px;
}

.doc-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 30px;
}

.doc-screenshot-placeholder strong {
  color: var(--navy);
  font-size: 20px;
}

.doc-screenshot-placeholder p {
  margin: 6px 0;
}

.doc-steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.doc-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 14px 0;
  counter-increment: step;
}

.doc-steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}

.doc-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.doc-module-card {
  position: relative;
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(7, 28, 63, 0.06);
}

.doc-module-card:hover {
  border-color: #96bfe9;
  box-shadow: 0 14px 32px rgba(7, 28, 63, 0.11);
  text-decoration: none;
  transform: translateY(-2px);
}

.doc-module-card small {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 800;
}

.doc-module-card strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
}

.doc-module-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.doc-page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.doc-page-list a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.doc-page-list a:hover {
  background: var(--surface);
  text-decoration: none;
}

.doc-page-footer {
  max-width: 1080px;
  margin: 50px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.doc-mobile-menu {
  display: none;
}

.doc-search-results {
  position: fixed;
  z-index: 1200;
  top: calc(var(--header-height) - 4px);
  right: 180px;
  width: min(560px, calc(100vw - 40px));
  max-height: 65vh;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(7, 28, 63, 0.2);
}

.doc-search-result {
  display: block;
  padding: 12px;
  border-radius: 8px;
}

.doc-search-result:hover {
  background: var(--surface);
  text-decoration: none;
}

.doc-search-result strong {
  display: block;
  color: var(--navy);
}

.doc-search-result small {
  color: var(--muted);
}

@media (max-width: 1050px) {
  .doc-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-article-header {
    flex-direction: column;
  }

  .doc-metadata {
    flex-basis: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 76px;
  }

  .doc-header {
    gap: 12px;
    padding: 10px 15px;
  }

  .doc-brand {
    min-width: auto;
  }

  .doc-brand span {
    display: none;
  }

  .doc-brand img {
    width: 50px;
    height: 50px;
    padding: 3px;
  }

  .doc-back-link {
    display: none;
  }

  .doc-search {
    width: 100%;
    height: 44px;
  }

  .doc-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 22px;
  }

  .doc-sidebar {
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 10px 0 35px rgba(7, 28, 63, 0.18);
  }

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

  .doc-main {
    margin-left: 0;
    padding: 24px 20px 60px;
  }

  .doc-page-list,
  .doc-module-grid {
    grid-template-columns: 1fr;
  }

  .doc-search-results {
    top: calc(var(--header-height) - 2px);
    right: 20px;
    left: 20px;
    width: auto;
  }
}
/* =========================================================
   RESTRICTED DOCUMENTATION — MODULES 19–30
   ========================================================= */

.doc-nav-module.doc-nav-locked {
  cursor: pointer;
}

.doc-nav-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding-left: 8px;
  color: #8b5e14;
  font-size: 12px;
  line-height: 1;
  opacity: 0.78;
}

.doc-nav-module.doc-nav-locked:hover .doc-nav-lock-icon,
.doc-nav-module.doc-nav-locked.active .doc-nav-lock-icon {
  opacity: 1;
}

.doc-restricted-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 27, 70, 0.68);
  backdrop-filter: blur(4px);
}

.doc-restricted-overlay.is-open {
  display: flex;
}

.doc-restricted-dialog {
  width: min(600px, 100%);
  overflow: hidden;
  border: 1px solid rgba(15, 35, 79, 0.12);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(7, 27, 70, 0.34);
}

.doc-restricted-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #14275c, #312e81);
  color: var(--white);
}

.doc-restricted-header-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}

.doc-restricted-header h2 {
  margin: 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1.25;
}

#docRestrictedModule {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 650;
}

.doc-restricted-body {
  padding: 24px;
}

.doc-restricted-message {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

.doc-restricted-message + .doc-restricted-message {
  margin-top: 12px;
}

.doc-restricted-label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.doc-restricted-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: var(--white);
  color: #0f172a;
  font: inherit;
}

.doc-restricted-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 194, 0.13);
}

.doc-restricted-error {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 650;
}

.doc-restricted-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 24px;
}

.doc-restricted-close,
.doc-restricted-authorized,
.doc-restricted-submit {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 10px 17px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.doc-restricted-close {
  background: #e2e8f0;
  color: #334155;
}

.doc-restricted-close:hover {
  background: #cbd5e1;
}

.doc-restricted-authorized,
.doc-restricted-submit {
  background: var(--blue);
  color: var(--white);
}

.doc-restricted-authorized:hover,
.doc-restricted-submit:hover {
  background: #11579f;
}

.doc-restricted-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.doc-restricted-overlay [hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .doc-restricted-overlay {
    padding: 16px;
  }

  .doc-restricted-header,
  .doc-restricted-body {
    padding: 20px;
  }

  .doc-restricted-actions {
    flex-direction: column-reverse;
    padding: 0 20px 20px;
  }

  .doc-restricted-close,
  .doc-restricted-authorized,
  .doc-restricted-submit {
    width: 100%;
  }
}
@media print {
  .doc-header,
  .doc-sidebar,
  .doc-breadcrumb,
  .doc-search-results,
  .doc-page-footer,
  .doc-restricted-overlay {
    display: none !important;
  }

  .doc-main {
    margin: 0;
    padding: 0;
  }

  .doc-article {
    max-width: none;
  }

  .doc-section {
    break-inside: avoid;
  }

  a {
    color: inherit;
  }
}
