.docs-body {
  --ink: #15202b;
  --ink-soft: #23313c;
  --ink-faint: #5e6c78;
  --rule: #e1e7ec;
  --rule-strong: #d4dce2;
  --accent-strong: #1d4f68;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  margin: 0;
  min-height: 100vh;
  background: #f3f5f7;
  color: #15202b;
  font: 15px/1.65 var(--sans);
}

.docs-body,
.docs-body *,
.docs-body *::before,
.docs-body *::after {
  box-sizing: border-box;
}

.docs-body .site-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: max(16px, calc(var(--safe-top) + 16px))
    max(16px, calc(var(--safe-right) + clamp(16px, 3vw, 36px)))
    max(44px, calc(var(--safe-bottom) + 24px))
    max(16px, calc(var(--safe-left) + clamp(16px, 3vw, 36px)));
}

.docs-body .site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid #d4dce2;
}

.docs-body .site-header::after {
  display: none;
}

.docs-body .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.docs-body .site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.docs-body .site-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #d4dce2;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.site-brand-mark-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.docs-body .site-brand-name {
  color: #17232c;
  font: 700 18px/1.1 var(--sans);
  letter-spacing: -0.01em;
}

.docs-body .site-brand-sub {
  color: #5e6c78;
  font: 600 10px/1.25 var(--mono);
  letter-spacing: 0.12em;
}

.docs-body .site-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.docs-body .site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #4a5b68;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.docs-body .site-nav a:hover,
.docs-body .site-nav a:focus-visible {
  border-color: #d4dce2;
  color: #17232c;
  background: #fff;
  transform: none;
  outline: none;
}

.docs-body .site-nav a[aria-current="page"] {
  border-color: #c8d2da;
  background: #fff;
  color: #17232c;
}

.docs-body .site-main {
  padding-top: 22px;
}

.doc-page {
  width: min(980px, 100%);
}

.doc-page--guide {
  width: 100%;
}

.doc-header {
  display: grid;
  gap: 8px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d4dce2;
}

.doc-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.doc-brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  border: 1px solid #d4dce2;
  border-radius: 4px;
  background: #fff;
  object-fit: cover;
}

.doc-brand-wordmark {
  width: min(220px, 100%);
  height: auto;
  display: block;
}

.doc-title {
  margin: 0;
  color: #17232c;
  font: 700 31px/1.08 var(--serif);
  letter-spacing: -0.03em;
  max-width: 24ch;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #5e6c78;
  font: 600 10px/1.35 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.doc-meta li + li::before {
  content: "·";
  margin: 0 10px;
}

.doc-section {
  padding: 18px 0;
  border-bottom: 1px solid #e1e7ec;
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section > h2 {
  margin: 0 0 10px;
  color: #51616e;
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-section > h3 {
  margin: 16px 0 8px;
  color: #17232c;
  font: 700 18px/1.25 var(--sans);
}

.doc-section p {
  margin: 0 0 11px;
  color: #23313c;
  font-size: 15px;
  line-height: 1.7;
}

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

.doc-section ul {
  margin: 0;
  padding-left: 18px;
  color: #23313c;
  font-size: 14px;
  line-height: 1.65;
}

.doc-section li + li {
  margin-top: 6px;
}

.doc-section a,
.site-footer a {
  color: #1d4f68;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.doc-section a:hover,
.site-footer a:hover {
  color: #17232c;
}

.doc-warning {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e0c9c9;
  border-left: 3px solid #9a4b4b;
  background: #fbf5f5;
}

.doc-warning p {
  margin: 0;
  color: #17232c;
  font-size: 14px;
  line-height: 1.6;
}

.site-callout {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid #7b8d99;
  background: #eef2f5;
}

.site-callout p {
  margin: 0;
  color: #23313c;
  font-size: 14px;
  line-height: 1.65;
}

.source-matrix {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.source-matrix th {
  padding: 0 12px 8px 0;
  border-bottom: 1px solid #cfd8df;
  text-align: left;
  color: #5e6c78;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-matrix td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid #e1e7ec;
  vertical-align: top;
  color: #23313c;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.source-matrix tr:last-child td {
  border-bottom: none;
}

.src-id {
  color: #17232c;
  font: 600 11px/1.35 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.src-status {
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.src-live {
  color: #1f6a43;
}

.src-hours {
  color: #8a6230;
}

.src-daily {
  color: #5e6c78;
}

.docs-body .site-button,
.docs-body .site-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c8d2da;
  border-radius: 4px;
  background: #fff;
  color: #17232c;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.docs-body .site-button:hover,
.docs-body .site-button-outline:hover {
  background: #f7f9fb;
}

.docs-body .site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #d4dce2;
  color: #5e6c78;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .doc-page {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .docs-body .site-header {
    align-items: stretch;
  }

  .docs-body .site-nav {
    width: 100%;
  }

  .doc-title {
    font-size: 25px;
  }

  .doc-brand-lockup {
    align-items: flex-start;
  }

  .doc-brand-wordmark {
    width: min(180px, 100%);
  }

  .source-matrix th:nth-child(3),
  .source-matrix td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 560px) {
  .docs-body .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-body .site-nav a {
    justify-content: flex-start;
  }

  .doc-meta li + li::before {
    margin: 0 8px;
  }

  .doc-section p,
  .doc-section ul {
    font-size: 14px;
  }
}
