/* Goliath docs: the landing page's sheet, set for reading. */

.docs-band {
  border-top: 0;
}

.docs-band > .wrap::before,
.docs-band > .wrap::after {
  display: none;
}

.docs-band > .wrap.docs-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(40px, 6vw, 80px) clamp(88px, 10vw, 140px);
}

.docs-nav {
  position: sticky;
  top: 104px;
}

.docs-nav-title {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 600;
}

.docs-nav ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--rule);
  list-style: none;
}

.docs-nav a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--ink);
}

.docs-nav a[aria-current="true"] {
  color: var(--ink);
  font-weight: 620;
}

.docs-nav a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--route);
}

.docs-body {
  max-width: 760px;
  min-width: 0;
}

.docs-body section + section {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}

.docs-body h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 640;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.docs-body h2 {
  margin: 0;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
}

.docs-body h3 {
  margin: 36px 0 0;
  font-size: 1.1875rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.docs-body p,
.docs-body li {
  color: var(--ink-2);
}

.docs-body p {
  margin: 16px 0 0;
}

.docs-body ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.docs-body li::marker {
  color: var(--rule-strong);
}

.docs-body a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-body :not(pre) > code {
  padding: 0.1em 0.38em;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.docs-lede {
  font-size: 1.25rem;
  line-height: 1.5;
}

.docs-body .page-updated {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px 0 0;
  border-top: 1px solid var(--rule);
}

.facts > div {
  padding: 18px 20px 20px 0;
  border-bottom: 1px solid var(--rule);
}

.facts > div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.facts dt {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 600;
}

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

.doc-code {
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--night);
  color: #d4e0e7;
}

.doc-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 4px 6px 4px 16px;
  border-bottom: 1px solid rgba(238, 243, 245, 0.08);
  color: var(--on-night-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.doc-copy {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--on-night-2);
  cursor: pointer;
}

.doc-copy:hover {
  background: rgba(238, 243, 245, 0.08);
  color: var(--on-night);
}

.doc-copy .icon {
  width: 17px;
  height: 17px;
}

/* Long commands wrap instead of hiding past the edge. */
.doc-code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

.guide-links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding: 0 !important;
  list-style: none;
}

.guide-links a {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.guide-links a:hover {
  border-color: var(--ink-3);
}

.note {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--paper-deep);
  font-size: 0.9375rem;
}

.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
  background: var(--card);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--paper);
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

td {
  color: var(--ink-2);
}

th[scope="row"] {
  width: 1%;
  white-space: nowrap;
}

td code {
  white-space: nowrap;
}

.key {
  margin: 20px 0 0;
  border-top: 1px solid var(--rule);
}

.key > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.key dd {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .docs-band > .wrap.docs-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }

  .docs-nav {
    position: static;
  }

  .docs-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    border: 0;
  }

  .docs-nav a {
    padding: 6px 12px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--card);
    font-size: 0.875rem;
  }

  .docs-nav a[aria-current="true"]::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .key > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.facts code {
  font-size: 0.8em !important;
  white-space: nowrap;
  overflow-wrap: normal !important;
}
