@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/overpass-latin-wght-normal.29217ef8ad.woff2") format("woff2");
}

@font-face {
  font-family: "Overpass Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/overpass-mono-latin-wght-normal.a7ed2af1f5.woff2") format("woff2");
}

:root {
  --bg: #f2f4f6;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #566270;
  --line: #d3dae1;
  --signal: #c8251a;
  --link: #0b55ad;
  --code-bg: #e8ecf0;
  --sans: "Overpass", "Segoe UI", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 4px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151b;
    --surface: #17202a;
    --ink: #e7ecf1;
    --muted: #9aa7b4;
    --line: #2b3743;
    --signal: #ff6557;
    --link: #82b7ff;
    --code-bg: #1c2731;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1rem;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}

.wrap {
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
}

.narrow {
  max-width: 48rem;
  padding-block: 2.5rem 4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand span {
  padding-top: 0.18em;
}

.mark-sign {
  fill: var(--signal);
}

.mark-eye {
  fill: var(--bg);
}

.site-search {
  position: relative;
  flex: 1 1 12rem;
  max-width: 24rem;
  margin-left: auto;
}

.site-search input {
  width: 100%;
  height: 2.4rem;
  padding: 0.2rem 2.4rem 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.site-search kbd {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 0.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  pointer-events: none;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-top: 0.15em;
  white-space: nowrap;
}

.site-nav a:hover {
  text-decoration: underline;
}

.hero {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 13em;
}

.lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-search {
  margin-top: 2rem;
  max-width: 38rem;
}

.hero-search label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.hero-search-row {
  display: flex;
  gap: 0.5rem;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 3.25rem;
  padding: 0.25rem 1rem 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.hero-search button {
  height: 3.25rem;
  padding: 0.2rem 1.4rem 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--signal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .hero-search button {
    color: #1a0705;
  }
}

.start {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.start a {
  display: inline-block;
  margin: 0 0.9rem 0.3rem 0;
}

.hero-agent {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.1rem 0.9rem;
  min-width: 0;
}

.agent-title {
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.hero-agent pre {
  margin: 0 0 0.8rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: var(--code-bg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  line-height: 1.55;
}

.hero-agent p:last-child {
  margin: 0;
  font-size: 0.95rem;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 2rem 0.5rem;
}

.filter-label {
  margin-right: 0.3rem;
  font-weight: 700;
}

.chip {
  padding: 0.38rem 0.9rem 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.chip.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.topics {
  display: grid;
  gap: 0 3.5rem;
  padding-bottom: 4rem;
}

.topic {
  padding-top: 2.25rem;
}

.topic-head h2 {
  font-size: 1.55rem;
  font-weight: 800;
}

.topic-head h2 a {
  color: var(--ink);
  text-decoration: none;
}

.topic-head h2 a:hover {
  text-decoration: underline;
}

.topic-head p {
  margin: 0.4rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}

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

.rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  padding: 0.6rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
}

.rows li[hidden] {
  display: none;
}

.rows a {
  flex: 1 1 14rem;
  font-weight: 600;
  text-decoration: none;
}

.rows a:hover {
  text-decoration: underline;
}

.rows-detailed li {
  padding-block: 0.9rem 0.6rem;
}

.rows-detailed p {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.lvl {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.lvl-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.75rem;
}

.lvl-bars i {
  width: 4px;
  background: var(--line);
}

.lvl-bars i:nth-child(1) {
  height: 40%;
}

.lvl-bars i:nth-child(2) {
  height: 70%;
}

.lvl-bars i:nth-child(3) {
  height: 100%;
}

.lvl-1 i:nth-child(1),
.lvl-2 i:nth-child(-n + 2),
.lvl-3 i {
  background: var(--signal);
}

.results {
  padding-top: 2rem;
}

.results h2 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.results[hidden] {
  display: none;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.narrow > h1 + .prose {
  margin-top: 1.25rem;
}

.level-group {
  margin-top: 2.5rem;
}

.level-group h2 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.doc {
  display: grid;
  gap: 3rem;
  padding-block: 2.25rem 4rem;
}

.article {
  min-width: 0;
  max-width: 46rem;
}

.side,
.toc {
  display: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0.9rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reqbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.reqline {
  flex: 1 1 14rem;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: inherit;
}

.verb {
  color: var(--signal);
  font-weight: 700;
}

.accept {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.accept-label {
  color: var(--muted);
}

.fmt {
  padding: 0.2rem 0.5rem 0.1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
}

.fmt.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.copy {
  padding: 0.2rem 0.6rem 0.1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--ink);
}

.answer {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.2rem 0.9rem;
  border-left: 5px solid var(--signal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.answer-label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.answer p:last-child {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.prose h2,
.faq h2,
.related h2 {
  margin: 2.6rem 0 0.8rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.prose h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 750;
}

.prose .anchor {
  color: inherit;
  text-decoration: none;
}

.prose .anchor:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--muted);
}

.prose :not(pre) > code {
  padding: 0.12em 0.34em 0.02em;
  border-radius: 3px;
  background: var(--code-bg);
  overflow-wrap: anywhere;
}

.prose blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.code {
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
}

.code figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.45rem 0.25rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.code pre {
  margin: 0;
  padding: 0.85rem 0.9rem;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.55;
  tab-size: 2;
}

.table-wrap {
  margin: 0 0 1.5rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 0.55rem 0.7rem 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom: 2px solid var(--ink);
  font-weight: 750;
}

.disclosure {
  color: var(--muted);
  font-size: 0.92rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  padding: 0.8rem 0 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.related li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  padding: 0.6rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
}

.related a {
  font-weight: 600;
  text-decoration: none;
}

.related a:hover {
  text-decoration: underline;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.pager a {
  display: block;
  padding: 0.8rem 1rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--ink);
}

.pager span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.pager-next {
  text-align: right;
}

.status-line {
  color: var(--signal);
}

.notfound p {
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-row {
  display: grid;
  gap: 1rem;
}

.footer-row p {
  margin: 0;
  max-width: 34rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 40rem) {
  .site-search {
    display: none;
  }

  .site-nav {
    margin-left: auto;
    gap: 1rem;
    font-size: 0.92rem;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager-next {
    text-align: left;
  }
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .topics {
    grid-template-columns: 1fr 1fr;
  }

  .footer-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .doc {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .side {
    display: block;
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    font-size: 0.9rem;
  }

  .side-title {
    margin-bottom: 0.6rem;
    font-weight: 800;
  }

  .side-title a {
    color: var(--ink);
    text-decoration: none;
  }

  .side ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line);
  }

  .side li a {
    display: block;
    margin-left: -1px;
    padding: 0.32rem 0 0.26rem 0.8rem;
    border-left: 2px solid transparent;
    color: var(--muted);
    line-height: 1.3;
    text-decoration: none;
  }

  .side li a:hover {
    color: var(--ink);
  }

  .side li a[aria-current="page"] {
    border-left-color: var(--signal);
    color: var(--ink);
    font-weight: 700;
  }
}

@media (min-width: 76rem) {
  .doc {
    grid-template-columns: 15rem minmax(0, 46rem) 13rem;
    justify-content: space-between;
  }

  .toc {
    display: block;
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    font-size: 0.86rem;
  }

  .toc-title {
    margin-bottom: 0.5rem;
    font-weight: 800;
  }

  .toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .toc a {
    display: block;
    padding: 0.25rem 0;
    color: var(--muted);
    line-height: 1.3;
    text-decoration: none;
  }

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .site-header,
  .site-footer,
  .side,
  .toc,
  .reqbar,
  .pager,
  .copy {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
