/* Pages ported from the previous Pack site: text unchanged, restyled to the site's system. */
.topbar.scrolled {
  position: sticky;
}
.doc {
  max-width: 860px;
  padding-block: clamp(36px, 6vw, 72px) 8px;
  display: grid;
  gap: 0;
}
.doc > div:first-child {
  max-width: 46em;
}
.doc h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--forest);
  margin: 14px 0 18px;
  text-wrap: balance;
}
.doc h1 + div {
  font-size: 19px;
  color: var(--muted);
  max-width: 40em;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--forest);
  margin: 0 0 10px;
}
.doc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}
.doc section {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--rule);
}
.doc section > div:first-child > div {
  color: var(--muted);
  max-width: 44em;
}
.doc section > div + div {
  margin-top: 18px;
}
.doc p {
  margin: 0 0 10px;
}
.doc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.doc ul li {
  position: relative;
  padding-left: 20px;
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}
.doc ul li > span {
  display: block;
}
.doc .g {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.doc dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
}
.doc dl > div,
.doc .card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
  padding: 16px 18px;
  box-shadow: var(--sh-1);
  min-width: 0;
}
.doc dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.doc dd {
  margin: 6px 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.doc a {
  color: var(--forest);
  text-underline-offset: 3px;
}
.doc a.card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease);
}
.doc a.card:hover {
  border-color: var(--forest);
  transform: translateY(-1px);
}
.doc details summary {
  cursor: pointer;
  font-weight: 500;
}
.doc details[open] summary {
  margin-bottom: 10px;
}
.doc pre {
  background: var(--forest);
  color: #dfeadf;
  border-radius: var(--r-m);
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.doc code {
  font-family: var(--mono);
  font-size: 0.92em;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--signal);
  background: transparent;
  border: 1px solid rgba(232, 105, 44, 0.45);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 0;
}
footer {
  margin-top: clamp(48px, 7vw, 88px);
}
