.docs-body {
  color: var(--ink);
  background: var(--paper);
}

.docs-sub-nav .sub-nav-links {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.docs-sub-nav .sub-nav-links a {
  flex: none;
}

.docs-hero {
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 64px;
}

.docs-breadcrumb,
.doc-label,
.doc-source,
.mini-label,
.status-label {
  color: var(--slate);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-breadcrumb {
  margin-bottom: 20px;
}

.docs-breadcrumb a,
.docs-content a:not(.doc-button),
.doc-source a {
  color: var(--accent);
}

.docs-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 5.4vw, 3.9rem);
}

.docs-hero h1 em {
  color: inherit;
  font-style: normal;
}

.docs-hero-copy > p:last-child,
.docs-hero-copy > p:last-of-type {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--slate);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
}

.docs-status {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: #ffffff;
}

.status-label {
  display: block;
  margin-bottom: 17px;
  color: var(--slate);
}

.status-row {
  min-height: 48px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  border-top: 1px solid var(--divider);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0;
}

.status-row span {
  color: var(--slate);
}

.status-row strong {
  text-align: right;
  font-weight: 600;
}

.docs-shell {
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding: 80px 0 112px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  border-top: 1px solid var(--divider);
}

.docs-sidebar {
  position: sticky;
  top: 120px;
}

.docs-sidebar > span {
  margin-bottom: 12px;
  display: block;
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.docs-sidebar a {
  min-height: 36px;
  padding: 6px 0 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 2px solid var(--rule);
  color: var(--slate);
  font-size: 14px;
  line-height: 1.43;
  transition: color 160ms ease, border-color 160ms ease;
}

.docs-sidebar a:hover {
  border-left-color: var(--signal);
  color: var(--ink);
}

.docs-content {
  min-width: 0;
}

.doc-section {
  padding-bottom: 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--divider);
}

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

.doc-label {
  margin-bottom: 17px;
  display: block;
}

.doc-section h2 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.doc-section h3 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 1.3125rem;
}

.doc-section p,
.doc-section li,
.doc-table,
.service-card p,
.policy-summary p {
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: 0;
}

.doc-section > p,
.doc-section > ul {
  max-width: 68ch;
}

.doc-section > p:not(.doc-label) {
  margin: 17px 0 0;
}

.doc-lead {
  color: var(--slate);
  font-family: var(--font-text);
  font-size: 1.1875rem !important;
  line-height: 1.55 !important;
}

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

.fact {
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: #ffffff;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  font-family: var(--font-sign);
  font-stretch: condensed;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.fact span {
  margin-top: 8px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.43;
}

.service-grid,
.policy-summary {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.policy-summary > div {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--ink);
  background: #ffffff;
}

.service-card strong,
.policy-summary strong {
  margin-top: 12px;
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
}

.service-card p,
.policy-summary p {
  margin: 12px 0 0;
  color: var(--slate);
}

.pipeline {
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
}

.pipeline-step {
  min-height: 132px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 48px 180px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
}

.pipeline-step > span {
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.pipeline-step > strong {
  font-size: 17px;
  font-weight: 600;
}

.pipeline-step p {
  margin: 0;
  color: var(--slate);
}

.table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 0;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.doc-table th,
.doc-table td {
  min-width: 140px;
  padding: 17px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  color: var(--slate);
  background: var(--parchment);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
}

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

.doc-table td {
  color: var(--slate);
}

.doc-table td strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-callout {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--white);
}

.doc-callout strong {
  font-size: 17px;
  font-weight: 600;
}

.doc-callout p {
  margin: 8px 0 0;
  color: var(--slate);
}

.doc-callout.warning {
  color: #ffffff;
  background: var(--tile-1);
  border-color: var(--tile-1);
}

.doc-callout.warning p {
  color: var(--slate-on-dark);
}

.detail-list {
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.detail-list li {
  padding: 17px 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
}

.detail-list strong {
  font-weight: 600;
}

.detail-list span {
  color: var(--slate);
}

.doc-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-button.secondary {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
}

code {
  padding: 2px 5px;
  border-radius: 0;
  color: var(--ink);
  background: var(--parchment);
  font-size: 0.84em;
}

.status-pill {
  padding: 4px 8px;
  border-radius: 0;
  color: #ffffff;
  background: var(--accent);
  font-size: 12px;
}

.doc-source {
  margin-top: 32px !important;
}

@media (max-width: 900px) {
  .docs-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .docs-status {
    max-width: 520px;
  }

  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .docs-sidebar {
    position: static;
    padding: 24px;
    border: 1px solid var(--hairline);
    border-radius: 0;
  }

  .docs-sidebar a {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .docs-sub-nav {
    gap: 16px;
  }

  .docs-sub-nav .sub-nav-title {
    display: none;
  }

  .docs-sub-nav .sub-nav-links {
    width: 100%;
    gap: 18px;
  }

  .docs-hero {
    padding: 48px 0;
  }

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

  .docs-hero-copy > p:last-child,
  .docs-hero-copy > p:last-of-type,
  .doc-lead {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  .docs-shell {
    padding: 48px 0 80px;
  }

  .doc-section {
    padding-bottom: 48px;
    margin-bottom: 48px;
  }

  .doc-section h2 {
    font-size: 34px;
  }

  .fact-strip,
  .service-grid,
  .policy-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipeline-step,
  .detail-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 419px) {
  .docs-hero h1,
  .doc-section h2 {
    font-size: 28px;
  }
}
