:root {
  --manual-ink: #172033;
  --manual-muted: #5d6677;
  --manual-line: #d9e0ea;
  --manual-bg: #f6f8fb;
  --manual-panel: #ffffff;
  --manual-blue: #1666d9;
  --manual-green: #0f8b5f;
  --manual-amber: #a16300;
  --manual-red: #b42318;
  --manual-shadow: 0 18px 46px rgba(23, 32, 51, 0.08);
}

.manual-skip-link {
  background: #fff;
  border: 2px solid var(--manual-blue);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.16);
  color: var(--manual-ink);
  font-weight: 800;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(calc(-100% - 20px));
  transition: transform 0.12s ease;
  z-index: 110;
}

.manual-skip-link:focus {
  outline: 3px solid #f4b740;
  outline-offset: 2px;
  transform: translateY(0);
}

.manual-shell {
  background: var(--manual-bg);
  box-sizing: border-box;
  color: var(--manual-ink);
  display: grid;
  grid-template-columns: 280px minmax(0, 1160px);
  justify-content: center;
  margin-inline: auto;
  min-height: 100vh;
  width: min(1488px, calc(100% - 48px));
}

.manual-sidebar {
  align-self: start;
  background: #fff;
  border-right: 1px solid var(--manual-line);
  height: 100vh;
  overflow: auto;
  padding: 24px 20px;
  position: sticky;
  top: 0;
}

.manual-home-link {
  color: var(--manual-ink);
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-decoration: none;
}

.manual-nav-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  color: var(--manual-ink);
  font: inherit;
  font-weight: 800;
  justify-content: space-between;
  min-height: 44px;
  padding: 9px 12px;
  width: 100%;
}

.manual-nav-toggle span {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  height: 8px;
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform .16s ease;
  width: 8px;
}

.manual-nav-toggle[aria-expanded="true"] span {
  transform: rotate(225deg) translate(-2px, 2px);
}

.manual-nav-toggle:focus-visible {
  outline: 3px solid #f4b740;
  outline-offset: 2px;
}

.manual-nav-panel[hidden] {
  display: none;
}

.manual-search-label {
  color: var(--manual-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.manual-search-input {
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  color: var(--manual-ink);
  font: inherit;
  margin-bottom: 22px;
  padding: 12px 12px;
  width: 100%;
}

.manual-nav section {
  border-top: 1px solid var(--manual-line);
  padding: 16px 0;
}

.manual-nav h2 {
  color: var(--manual-muted);
  font-size: 12px;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.manual-nav a {
  border-radius: 8px;
  color: var(--manual-ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  padding: 9px 10px;
  text-decoration: none;
}

.manual-nav a:hover,
.manual-nav a.active {
  background: #edf4ff;
  color: var(--manual-blue);
}

.manual-download,
.manual-download-inline {
  background: var(--manual-ink);
  border-radius: 8px;
  color: #fff;
  display: inline-block;
  font-weight: 800;
  margin-top: 16px;
  padding: 11px 14px;
  text-decoration: none;
}

.manual-content {
  margin: 0 auto;
  max-width: 1160px;
  padding: 38px 32px 80px;
  width: 100%;
}

.manual-breadcrumbs {
  align-items: center;
  color: var(--manual-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
  margin-bottom: 22px;
}

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

.manual-hero,
.manual-section,
.manual-gallery,
.manual-related,
.manual-chapter-group {
  background: var(--manual-panel);
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  box-shadow: var(--manual-shadow);
  margin-bottom: 22px;
  padding: 28px;
}

.manual-hero {
  background: #fff;
  border-top: 4px solid var(--manual-green);
}

.manual-hero.compact {
  background: #fff;
}

.manual-eyebrow {
  color: var(--manual-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.manual-hero h1 {
  color: var(--manual-ink);
  font-size: 52px;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 16px;
  max-width: 920px;
}

.manual-section h2,
.manual-gallery h2,
.manual-related h2,
.manual-chapter-group h2 {
  color: var(--manual-ink);
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 14px;
}

.manual-lead {
  color: #344054;
  font-size: 20px;
  line-height: 1.55;
  margin: 0;
  max-width: 920px;
}

.manual-proof,
.manual-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0 0;
}

.manual-proof span,
.manual-facts div {
  background: #fff;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  color: var(--manual-muted);
  font-size: 14px;
  padding: 12px;
}

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

.manual-facts dt {
  color: var(--manual-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.manual-facts dd {
  color: var(--manual-ink);
  margin: 0;
}

.manual-source-details {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  background: #fff;
  color: var(--manual-muted);
  font-size: 13px;
}

.manual-source-details summary {
  width: fit-content;
  color: var(--manual-blue-dark);
  cursor: pointer;
  font-weight: 800;
}

.manual-source-details summary:focus-visible {
  outline: 3px solid rgba(47, 110, 168, .28);
  outline-offset: 3px;
}

.manual-source-details p {
  margin: 9px 0 0;
  overflow-wrap: anywhere;
  color: var(--manual-muted);
  line-height: 1.55;
}

.manual-section p,
.manual-gallery p {
  color: #344054;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.manual-list,
.manual-steps {
  color: #344054;
  line-height: 1.65;
  margin: 16px 0 0;
  padding-left: 22px;
}

.manual-list li,
.manual-steps li {
  margin: 8px 0;
}

.manual-steps li strong {
  color: var(--manual-ink);
  display: block;
}

.manual-steps li span {
  display: block;
}

.manual-figure-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
}

.manual-figure {
  background: #fff;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.manual-figure-trigger {
  background: #f2f4f7;
  border: 0;
  cursor: zoom-in;
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}

.manual-figure-trigger:focus-visible {
  outline: 3px solid rgba(22, 102, 217, 0.45);
  outline-offset: -3px;
}

.manual-figure-trigger img {
  aspect-ratio: 1440 / 1000;
  background: #f2f4f7;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.manual-figure figcaption {
  color: var(--manual-muted);
  display: grid;
  font-size: 14px;
  gap: 3px;
  line-height: 1.45;
  padding: 12px 14px 14px;
}

.manual-figure figcaption strong {
  color: var(--manual-ink);
}

.manual-lightbox-open {
  overflow: hidden;
}

.manual-lightbox {
  align-items: center;
  background: rgba(12, 18, 32, 0.86);
  border: 0;
  display: none;
  inset: 0;
  justify-content: center;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 28px;
  position: fixed;
  width: auto;
  z-index: 10000;
}

.manual-search-status {
  color: var(--manual-muted);
  font-size: 12px;
  line-height: 1.35;
  margin: -14px 0 16px;
  min-height: 16px;
}

.manual-lightbox.is-open {
  display: flex;
}

.manual-lightbox-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: 92vh;
  max-width: 1180px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.manual-lightbox-image {
  background: #101828;
  display: block;
  height: auto;
  max-height: calc(92vh - 96px);
  object-fit: contain;
  width: 100%;
}

.manual-lightbox-caption {
  color: var(--manual-muted);
  display: grid;
  font-size: 14px;
  gap: 3px;
  line-height: 1.45;
  padding: 14px 18px 16px;
}

.manual-lightbox-caption strong {
  color: var(--manual-ink);
  font-size: 16px;
}

.manual-lightbox-close,
.manual-lightbox-prev,
.manual-lightbox-next {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 24, 40, 0.18);
  border-radius: 8px;
  color: var(--manual-ink);
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  position: absolute;
  width: 42px;
}

.manual-lightbox-close {
  right: 14px;
  top: 14px;
}

.manual-lightbox-prev,
.manual-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.manual-lightbox-prev {
  left: 14px;
}

.manual-lightbox-next {
  right: 14px;
}

.manual-lightbox-close:focus-visible,
.manual-lightbox-prev:focus-visible,
.manual-lightbox-next:focus-visible {
  outline: 3px solid rgba(22, 102, 217, 0.5);
  outline-offset: 2px;
}

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

.manual-card {
  background: #fff;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  color: var(--manual-ink);
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  text-decoration: none;
}

.manual-card:hover {
  border-color: var(--manual-blue);
  box-shadow: 0 14px 30px rgba(22, 102, 217, 0.12);
}

.manual-card span {
  color: var(--manual-amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.manual-card strong {
  font-size: 19px;
  line-height: 1.2;
}

.manual-card small {
  color: var(--manual-muted);
  font-size: 14px;
  line-height: 1.45;
}

.manual-card.compact {
  min-height: 130px;
}

.manual-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.manual-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.manual-table th,
.manual-table td {
  border: 1px solid var(--manual-line);
  line-height: 1.5;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.manual-table th {
  background: #f0f5fb;
  color: var(--manual-ink);
  font-size: 13px;
  text-transform: uppercase;
}

.manual-hidden {
  display: none !important;
}

.manual-no-results {
  background: #fff6ed;
  border: 1px solid #f8d7aa;
  border-radius: 8px;
  color: var(--manual-amber);
  display: none;
  font-weight: 800;
  margin: 0 0 20px;
  padding: 14px 16px;
}

.manual-no-results.visible {
  display: block;
}

@media (max-width: 980px) {
  .manual-shell {
    display: block;
    width: 100%;
  }

  .manual-sidebar {
    border-bottom: 1px solid var(--manual-line);
    border-right: 0;
    height: auto;
    max-height: min(52vh, 430px);
    overflow: auto;
    position: static;
  }

  .manual-home-link {
    margin-bottom: 12px;
  }

  .manual-nav-toggle:not([hidden]) {
    display: flex;
  }

  .manual-nav-panel {
    margin-top: 14px;
  }

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

  .manual-nav section {
    border: 1px solid var(--manual-line);
    border-radius: 8px;
    padding: 12px;
  }

  .manual-content {
    padding: 26px 16px 54px;
  }

  .manual-proof,
  .manual-card-grid,
  .manual-figure-grid {
    grid-template-columns: 1fr;
  }

  .manual-lightbox {
    padding: 12px;
  }

  .manual-lightbox-panel {
    max-height: 94vh;
  }

  .manual-lightbox-image {
    max-height: calc(94vh - 118px);
  }

  .manual-lightbox-prev,
  .manual-lightbox-next {
    bottom: 12px;
    top: auto;
    transform: none;
  }
}

@media (max-width: 640px) {
  .manual-nav {
    grid-template-columns: 1fr;
  }

  .manual-hero,
  .manual-section,
  .manual-gallery,
  .manual-related,
  .manual-chapter-group {
    padding: 20px;
  }

  .manual-hero h1 {
    font-size: 34px;
  }
}
