.host-docs {
  display: grid;
  grid-template-columns: 242px minmax(0, 720px);
  gap: 48px;
  align-items: start;
  padding: 16px 0 64px;
}
.host-docs-nav {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 24px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding-right: 24px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}
#ammo-host .host-docs-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
}
#ammo-host .host-docs-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.host-docs-tool-links { padding-left: 16px; }
#ammo-host .host-docs-nav .host-docs-text-link {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--blue);
}
.host-docs-content { min-width: 0; }
#ammo-host .host-docs-heading p { margin-top: 16px; }
.host-docs-section { margin-top: 40px; }
.host-docs section { scroll-margin-top: 24px; }
#ammo-host .host-docs h2 { margin-bottom: 16px; }
#ammo-host .host-docs p { max-width: 70ch; }
#ammo-host .host-docs p + p { margin-top: 16px; }
#ammo-host .host-docs code {
  font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: inherit;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow-wrap: anywhere;
}
.host-docs a { text-underline-offset: 3px; }
.host-docs-endpoint {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  margin-bottom: 16px;
}
.host-docs-endpoint span { font-size: 12px; }
#ammo-host .host-docs-code {
  margin: 16px 0 0;
  padding: 16px;
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  tab-size: 2;
}
#ammo-host .host-docs-schema {
  margin-top: 0;
  max-height: 480px;
  overflow: auto;
  white-space: pre;
}
.host-docs ol { padding-left: 24px; margin: 16px 0 24px; }
.host-docs li { padding-left: 8px; margin: 8px 0; }
.host-docs li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
#ammo-host .host-docs-notice {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.host-docs-limits {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
}
.host-docs-limits th, .host-docs-limits td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  vertical-align: top;
}
.host-docs-limits th { font-weight: 400; text-align: left; padding-right: 24px; }
.host-docs-limits thead th { font-size: 12px; color: var(--muted); font-weight: 550; }
.host-docs-limits td, .host-docs-limits thead th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.host-docs-tool { padding: 24px 0; border-top: 1px solid var(--line); }
#ammo-host .host-docs-tool h3 {
  font: 650 16px/1.5 var(--pico-font-family);
  color: var(--ink);
  margin: 0 0 8px;
}
#ammo-host .host-docs-tool h3 code { font-size: 16px; font-weight: 650; }
#ammo-host .host-docs-tool h3 a { color: inherit; text-decoration: none; }
#ammo-host .host-docs-tool h3 a:hover { color: var(--blue); text-decoration: underline; }
.host-docs-tool details { margin: 16px 0 0; border: 0; padding: 0; }
.host-docs-tool summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.host-docs-tool summary:hover { color: var(--blue); }
.host-docs ::selection { background: var(--primary-fill); color: var(--primary-ink); }
.host-docs-nav, .host-docs-schema { scrollbar-color: var(--control-border) var(--code-bg); }
@media (max-width: 1000px) {
  .host-docs { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 0; }
  .host-docs-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
    max-height: none;
  }
  .host-docs-tool-links { display: none; }
  #ammo-host .host-docs-nav .host-docs-text-link { margin: 0; border: 0; }
  .host-docs-content { max-width: 720px; }
}
@media (max-width: 480px) {
  .host-docs-limits th { padding-right: 16px; }
  .host-docs-limits td { max-width: 160px; }
}
