@font-face {
  font-family: "Cina GEO";
  src: url("/assets/fonts/CinaGEORegular.otf") format("opentype");
  font-display: swap;
}

:root {
  --forest: #173f2e;
  --forest-deep: #0e2d21;
  --forest-soft: #285943;
  --gold: #f5b916;
  --gold-deep: #b77c00;
  --cream: #f7f2e4;
  --paper: #fffdf7;
  --ink: #18211c;
  --muted: #667069;
  --line: #dedfd4;
  --code: #10271d;
  --blue: #246a86;
  --red: #b5452d;
  --green: #278257;
  --shadow: 0 20px 70px rgba(18, 44, 32, 0.11);
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-padding-top: 96px;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 185, 22, 0.09), transparent 25rem),
    var(--paper);
  font-family: "Cina GEO", Georgia, serif;
  font-size: 16px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

code,
kbd,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  border-radius: 5px;
  padding: 0.12em 0.34em;
  color: var(--forest-deep);
  background: #edf1ea;
  font-size: 0.88em;
}

.boot {
  display: grid;
  min-height: 100vh;
  color: var(--muted);
  place-content: center;
  justify-items: center;
  gap: 16px;
}

.prerendered {
  width: min(100% - 40px, 900px);
  margin: 70px auto;
}

.prerendered h1 {
  color: var(--forest-deep);
  font-size: 48px;
  font-weight: 400;
}

.boot-mark {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  color: var(--forest);
  background: var(--gold);
  font-size: 32px;
  font-weight: 700;
  place-content: center;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  height: var(--header-height);
  border-bottom: 1px solid rgba(23, 63, 46, 0.13);
  padding: 0 28px;
  align-items: center;
  grid-template-columns: 220px 190px minmax(15rem, 30rem) minmax(13rem, 1fr);
  gap: 22px;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 116px;
  height: auto;
}

.brand span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.version-switcher {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #f1efe7;
}

.version-switcher a {
  display: flex;
  min-width: 0;
  min-height: 36px;
  border-radius: 7px;
  padding: 5px 9px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #667069;
  text-decoration: none;
}

.version-switcher strong {
  font-size: 12px;
}

.version-switcher small {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-switcher a.active {
  color: var(--paper);
  background: var(--forest);
  box-shadow: 0 4px 12px rgba(14, 45, 33, 0.14);
}

.version-switcher a.active small {
  color: var(--gold);
}

.sidebar-version {
  display: none;
  margin-bottom: 24px;
}

.search-trigger {
  display: flex;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px 0 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: #f6f5ee;
  font-size: 13px;
}

.search-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

kbd {
  border: 1px solid #d7d7cc;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 6px;
  color: #59615c;
  background: var(--paper);
  font-size: 10px;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 20px;
}

.header-actions a {
  color: var(--forest);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.header-actions .header-cta {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--paper);
  background: var(--forest);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--forest);
  background: #edf0e9;
  font-size: 19px;
  place-items: center;
}

.mobile-only,
.sidebar-mobile-head {
  display: none;
}

.site-shell {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: 275px minmax(0, 1fr) 210px;
}

.sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 28px 22px 32px 28px;
  background: #faf8f0;
  scrollbar-width: thin;
}

.nav-group {
  margin-bottom: 27px;
}

.nav-group h2 {
  margin: 0 0 8px 9px;
  color: #8a918b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-group > a,
.endpoint-nav a {
  display: block;
  margin: 2px 0;
  border-radius: 7px;
  padding: 8px 9px;
  color: #49534c;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
}

.nav-group a:hover {
  color: var(--forest);
  background: #f0ede1;
}

.nav-group a.active {
  color: var(--forest);
  background: #e8eddf;
  font-weight: 700;
}

.endpoint-nav {
  margin: 8px 0 0 8px;
}

.endpoint-nav summary {
  padding: 6px 2px;
  color: #788078;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.endpoint-nav a {
  padding-left: 13px;
  font-size: 12px;
}

.sidebar-foot {
  margin-top: 32px;
  border-radius: 12px;
  padding: 15px;
  color: #dce9df;
  background: var(--forest);
  font-size: 11px;
}

.sidebar-foot span,
.sidebar-foot b {
  display: block;
}

.sidebar-foot b {
  margin-top: 2px;
  color: var(--gold);
}

.sidebar-foot a {
  display: inline-block;
  margin-top: 16px;
  color: white;
}

.document {
  min-width: 0;
  padding: 32px clamp(30px, 5vw, 78px) 100px;
}

.article {
  width: min(100%, 820px);
  margin: 0 auto;
}

.home-article {
  width: min(100%, 1120px);
}

.breadcrumb {
  display: flex;
  width: min(100%, 820px);
  overflow: hidden;
  margin: 0 auto 34px;
  align-items: center;
  gap: 8px;
  color: #8a918b;
  white-space: nowrap;
  font-size: 11px;
}

.breadcrumb a {
  color: var(--forest);
  text-decoration: none;
}

.breadcrumb strong {
  overflow: hidden;
  color: #626b64;
  text-overflow: ellipsis;
}

.article h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--forest-deep);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.article h2 {
  margin: 64px 0 16px;
  color: var(--forest-deep);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.article h3 {
  color: var(--forest-deep);
  font-weight: 400;
}

.article p,
.article li {
  color: #535e56;
  line-height: 1.75;
}

.article p {
  margin: 0 0 20px;
}

.article .lead {
  max-width: 720px;
  color: #55625a;
  font-size: 20px;
  line-height: 1.6;
}

.article a:not(.button) {
  color: var(--forest-soft);
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: 570px;
  overflow: hidden;
  margin: -32px calc(-1 * clamp(30px, 5vw, 78px)) 0;
  padding: clamp(58px, 8vw, 104px) clamp(38px, 7vw, 96px);
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 60px;
  color: var(--paper);
  background:
    linear-gradient(110deg, rgba(14, 45, 33, 0.98), rgba(23, 63, 46, 0.91)),
    url("/assets/topography.png") center / 620px;
}

.hero::after {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -130px;
  border: 70px solid rgba(245, 185, 22, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero .pill {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin: 25px 0 24px;
  color: var(--paper);
  font-size: clamp(48px, 6.1vw, 86px);
}

.hero p {
  max-width: 650px;
  color: #dbe5de;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.button.primary {
  color: var(--forest-deep);
  background: var(--gold);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.flow-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 28px;
  background: rgba(8, 32, 22, 0.52);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flow-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--forest-deep);
  background: var(--gold);
  font-size: 12px;
  font-weight: 600;
  place-items: center;
}

.flow-step strong,
.flow-step small {
  display: block;
}

.flow-step strong {
  font-size: 16px;
  font-weight: 400;
}

.flow-step small {
  margin-top: 4px;
  color: #aebfb3;
  font-size: 11px;
}

.flow-line {
  width: 1px;
  height: 38px;
  margin: 6px 0 6px 21px;
  background: rgba(255, 255, 255, 0.22);
}

.doc-section {
  padding: 90px 0 20px;
}

.section-kicker {
  margin-bottom: 12px !important;
  color: var(--gold-deep) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.doc-section > h2 {
  max-width: 740px;
  margin: 0 0 42px;
  font-size: clamp(34px, 5vw, 56px);
}

.concept-grid,
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.concept-grid article {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: white;
}

.concept-no {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--forest);
  background: #ecf0e5;
  font-size: 12px;
  font-weight: 700;
  place-items: center;
}

.concept-grid h3 {
  margin: 50px 0 10px;
  font-size: 21px;
}

.concept-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.path-grid a {
  display: block;
  min-height: 235px;
  border-radius: 16px;
  padding: 25px;
  color: var(--paper) !important;
  background: var(--forest);
  text-decoration: none;
  transition: transform 180ms, box-shadow 180ms;
}

.path-grid a:nth-child(2) {
  color: var(--forest-deep) !important;
  background: var(--gold);
}

.path-grid a:nth-child(3) {
  color: var(--forest-deep) !important;
  background: #dbe5d8;
}

.path-grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.path-grid span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.path-grid h3 {
  margin: 38px 0 10px;
  color: inherit;
  font-size: 23px;
}

.path-grid p {
  color: inherit;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.75;
}

.path-grid b {
  display: block;
  margin-top: 22px;
  font-size: 12px;
}

.callout {
  display: grid;
  margin: 34px 0;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 20px 22px;
  gap: 5px;
  background: #eef6f7;
}

.callout.warning {
  border-color: var(--gold-deep);
  background: #fff7da;
}

.callout.success {
  border-color: var(--green);
  background: #eaf6ee;
}

.callout strong {
  color: var(--forest-deep);
}

.callout p {
  margin: 0;
  font-size: 14px;
}

.check-list {
  display: grid;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.check-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px 12px 42px;
  background: white;
}

.check-list li::before {
  position: absolute;
  left: 14px;
  color: var(--green);
  content: "✓";
  font-weight: 700;
}

.sequence {
  display: flex;
  overflow-x: auto;
  margin: 28px 0;
  padding: 22px;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  white-space: nowrap;
}

.sequence span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.sequence b {
  color: var(--gold-deep);
}

.architecture {
  display: grid;
  overflow-x: auto;
  margin: 30px 0;
  padding: 28px;
  align-items: center;
  grid-template-columns: minmax(10rem, 1fr) 4rem minmax(10rem, 1fr) 4rem minmax(10rem, 1fr);
  background: var(--forest);
}

.architecture div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 17px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.architecture div span,
.architecture div strong {
  display: block;
}

.architecture div span {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 10px;
  text-transform: uppercase;
}

.architecture > b {
  padding: 8px;
  color: #a9bbaf;
  font-size: 9px;
  text-align: center;
}

.steps {
  margin: 28px 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 80px;
  border-left: 1px solid var(--line);
  margin-left: 17px;
  padding: 0 0 28px 38px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  width: 34px;
  height: 34px;
  left: -17px;
  top: -2px;
  display: grid;
  border-radius: 50%;
  color: var(--forest);
  background: var(--gold);
  content: counter(steps, decimal-leading-zero);
  font-size: 10px;
  font-weight: 700;
  place-items: center;
}

.steps li:last-child {
  border-left-color: transparent;
}

.steps b {
  color: var(--forest-deep);
  font-size: 17px;
}

.steps p {
  margin: 5px 0 0;
  font-size: 14px;
}

.boundary-grid,
.key-grid,
.charge-grid {
  display: grid;
  margin: 28px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.key-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.charge-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boundary-grid article,
.key-grid article,
.charge-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: white;
}

.boundary-grid h3,
.key-grid h3,
.charge-grid h3 {
  margin: 18px 0 8px;
}

.boundary-grid p,
.key-grid p,
.charge-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.key-grid code {
  color: var(--gold-deep);
  background: #fff5d1;
  font-weight: 700;
}

.charge-grid span {
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  vertical-align: top;
}

th {
  color: var(--forest);
  background: #f2f3ea;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

td {
  color: #566057;
  line-height: 1.5;
}

.code-card {
  overflow: hidden;
  margin: 22px 0 30px;
  border: 1px solid #244735;
  border-radius: 13px;
  color: #eaf3ed;
  background: var(--code);
  box-shadow: 0 14px 38px rgba(15, 40, 28, 0.15);
}

.code-head {
  display: flex;
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 10px 0 14px;
  align-items: center;
  justify-content: space-between;
  background: #173627;
}

.code-head button {
  border: 0;
  padding: 7px 9px;
  color: #9fb2a5;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.code-tabs {
  display: flex;
  align-self: stretch;
}

.code-tabs button {
  border-bottom: 2px solid transparent;
}

.code-tabs button.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.code-language {
  color: var(--gold);
  font: 700 10px "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.code-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  font-size: 12px;
  line-height: 1.7;
  tab-size: 2;
}

.code-card code {
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.error-list {
  display: grid;
  margin: 25px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
}

.error-list code,
.error-list span {
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
}

.error-list code:nth-last-child(2),
.error-list span:last-child {
  border-bottom: 0;
}

.error-list code {
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--red);
  background: #fff7f2;
  font-size: 11px;
}

.error-list span {
  color: var(--muted);
  font-size: 13px;
}

.endpoint-heading {
  display: flex;
  min-width: 0;
  margin-bottom: 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.endpoint-heading > code {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0;
  color: var(--muted);
  background: none;
  font-size: 14px;
}

.method {
  display: inline-flex;
  min-width: 42px;
  min-height: 22px;
  border-radius: 5px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--blue);
  font: 700 9px "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.04em;
}

.method.post {
  background: var(--green);
}

.endpoint-meta {
  display: grid;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.endpoint-meta div {
  padding: 15px;
}

.endpoint-meta div + div {
  border-left: 1px solid var(--line);
}

.endpoint-meta span,
.endpoint-meta strong {
  display: block;
}

.endpoint-meta span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.endpoint-meta strong {
  color: var(--forest);
  font-size: 12px;
}

.endpoint-view .site-shell {
  grid-template-columns: 275px minmax(0, 1fr);
}

.playground-view .site-shell {
  display: block;
}

.playground-view .sidebar {
  display: none;
}

.playground-view .document {
  padding-inline: clamp(24px, 3vw, 56px);
}

.playground-article {
  width: min(100%, 1580px);
}

.playground-intro {
  display: grid;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  align-items: center;
  grid-template-columns: minmax(24rem, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(24px, 4vw, 54px);
}

.playground-intro h1 {
  max-width: none;
  margin: 8px 0 6px;
  font-size: clamp(34px, 4vw, 48px);
}

.playground-intro .lead {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.55;
}

.playground-intro aside {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 18px;
}

.playground-intro aside strong {
  color: var(--forest);
  font-size: 13px;
}

.playground-intro aside p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.playground-workbench {
  display: grid;
  align-items: start;
  grid-template-columns:
    minmax(15rem, 0.56fr)
    minmax(23rem, 1.04fr)
    minmax(21rem, 0.9fr);
  gap: clamp(18px, 2vw, 32px);
}

.playground-catalogue {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 45px rgba(15, 40, 28, 0.08);
}

.playground-version {
  display: grid;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  background: var(--cream);
}

.playground-version button {
  display: grid;
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.playground-version button.active {
  color: white;
  background: var(--forest);
  box-shadow: 0 7px 18px rgba(14, 45, 33, 0.16);
}

.playground-version strong,
.playground-version small {
  display: block;
}

.playground-version strong {
  font-size: 12px;
}

.playground-version small {
  margin-top: 2px;
  color: inherit;
  font-size: 9px;
  opacity: 0.72;
}

.playground-search {
  display: grid;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  gap: 7px;
}

.playground-search span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playground-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--forest);
  outline: none;
  background: #f8f7f1;
}

.playground-search input:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(245, 185, 22, 0.12);
}

.playground-endpoints {
  max-height: calc(100vh - var(--header-height) - 190px);
  overflow-y: auto;
  padding: 9px;
}

.playground-endpoint-group {
  margin: 0 0 14px;
}

.playground-endpoint-group:last-child {
  margin-bottom: 0;
}

.playground-endpoint-group > h3 {
  margin: 0;
  padding: 9px 9px 6px;
  color: #7c867f;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playground-endpoint {
  display: grid;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 9px;
  padding: 10px 9px;
  align-items: start;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 9px;
  color: var(--forest);
  background: transparent;
  text-align: left;
}

.playground-endpoint:hover {
  background: #f4f2e9;
}

.playground-endpoint.active {
  background: #e8eddf;
  box-shadow: inset 3px 0 var(--gold-deep);
}

.playground-endpoint > span:last-child {
  min-width: 0;
}

.playground-endpoint strong,
.playground-endpoint code {
  display: block;
}

.playground-endpoint strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground-endpoint code {
  overflow: hidden;
  margin-top: 4px;
  padding: 0;
  color: var(--muted);
  background: none;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground-stage {
  min-width: 0;
}

.playground-route {
  display: flex;
  min-width: 0;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  align-items: center;
  gap: 10px;
  background: white;
}

.playground-route code {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0;
  color: var(--forest);
  background: none;
  font-size: 11px;
}

.playground-reference-copy {
  margin-bottom: 24px;
}

.playground-facts {
  display: grid;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: white;
}

.playground-facts article {
  padding: 13px 14px;
}

.playground-facts article + article {
  border-left: 1px solid var(--line);
}

.playground-facts span,
.playground-facts strong {
  display: block;
}

.playground-facts span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.playground-facts strong {
  color: var(--forest);
  font-size: 11px;
  font-weight: 600;
}

.article .playground-reference-copy h2 {
  margin: 25px 0 11px;
  font-size: 18px;
  font-weight: 500;
}

.playground-reference-copy > p {
  color: var(--muted);
  font-size: 12px;
}

.response-reference {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #263b32;
  border-radius: 16px;
  color: #edf5ef;
  background: #10241b;
  box-shadow: 0 20px 55px rgba(14, 45, 33, 0.16);
}

.response-reference-head {
  display: flex;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 19px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.response-reference-head > div {
  min-width: 0;
}

.response-reference-head span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article .response-reference-head h2 {
  margin: 5px 0 0;
  color: white;
  font-size: 18px;
  font-weight: 400;
}

.response-status {
  display: inline-flex;
  min-width: 46px;
  min-height: 29px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  color: #8fe0b1;
  background: rgba(100, 217, 156, 0.12);
  font: 600 11px "SFMono-Regular", Consolas, monospace;
}

.response-status:not(.response-200) {
  color: #ffb6a8;
  background: rgba(255, 131, 108, 0.12);
}

.response-status-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 12px 0;
  gap: 4px;
}

.response-status-tabs button {
  min-width: 43px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 9px 9px;
  color: #8ca195;
  background: transparent;
  font: 500 10px "SFMono-Regular", Consolas, monospace;
}

.response-status-tabs button.active {
  border-bottom-color: var(--gold);
  color: white;
}

.response-contract,
.response-example-head {
  display: flex;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.response-contract {
  color: #84998d;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
}

.response-contract code {
  color: #c8d8ce;
  background: none;
  font-size: 9px;
}

.response-example-head {
  padding-bottom: 8px;
  color: #b9c9bf;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.response-example-head button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 8px;
  color: #b9c9bf;
  background: transparent;
  font-size: 8px;
}

.response-example {
  max-height: 310px;
  overflow: auto;
  margin: 0;
  padding: 11px 18px 19px;
}

.response-example code {
  padding: 0;
  color: #d4e5da;
  background: none;
  font: 10px/1.65 "SFMono-Regular", Consolas, monospace;
}

.response-schema {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.response-schema summary {
  display: flex;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  color: #d7e5dc;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  list-style: none;
}

.response-schema summary::-webkit-details-marker {
  display: none;
}

.response-schema summary span {
  border-radius: 12px;
  padding: 3px 7px;
  color: var(--gold);
  background: rgba(245, 185, 22, 0.1);
  font-size: 8px;
}

.response-schema > div {
  max-height: 285px;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.response-schema article {
  display: grid;
  min-width: 0;
  padding: 10px 18px;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 3px 8px;
}

.response-schema article + article {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.response-schema code {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0;
  color: #d5e7dc;
  background: none;
  font-size: 9px;
}

.response-schema article > span {
  color: #82cda3;
  font: 9px "SFMono-Regular", Consolas, monospace;
  text-align: right;
}

.response-schema small {
  overflow: hidden;
  grid-column: 1 / -1;
  color: #72877b;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-guidance {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 18px 18px;
  background: rgba(255, 131, 108, 0.05);
}

.response-guidance strong {
  color: #ffb6a8;
  font-size: 10px;
}

.article .response-guidance p {
  margin: 5px 0 0;
  color: #94a99c;
  font-size: 9px;
  line-height: 1.55;
}

.playground-selected {
  display: flex;
  min-width: 0;
  margin-bottom: 17px;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.playground-selected > div {
  min-width: 0;
}

.playground-selected span {
  color: var(--gold-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article .playground-selected h2 {
  margin: 6px 0;
  font-size: 28px;
}

.playground-selected p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.playground-selected a {
  flex: 0 0 auto;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
}

.reference-playground {
  display: flex;
  margin: 28px 0 42px;
  border: 1px solid #254a37;
  border-radius: 15px;
  padding: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  color: white;
  background:
    radial-gradient(circle at 92% 0%, rgba(245, 185, 22, 0.18), transparent 12rem),
    var(--forest);
}

.reference-playground span,
.reference-playground strong {
  display: block;
}

.reference-playground span {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-playground strong {
  font-size: 17px;
}

.reference-playground p {
  margin: 6px 0 0;
  color: #bfd0c5;
  font-size: 11px;
}

.reference-playground .button {
  color: var(--forest-deep);
  background: var(--gold);
}

.endpoint-document {
  padding-inline: clamp(28px, 4vw, 64px);
}

.endpoint-document .breadcrumb {
  width: min(100%, 1280px);
}

.endpoint-article {
  width: min(100%, 1280px);
}

.endpoint-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(24rem, 1.08fr) minmax(22rem, 0.92fr);
  gap: clamp(38px, 5vw, 72px);
}

.legacy-endpoint-layout {
  width: min(100%, 820px);
  grid-template-columns: 1fr;
}

.endpoint-copy {
  min-width: 0;
}

.endpoint-copy > h1 {
  font-size: clamp(42px, 5vw, 64px);
}

.endpoint-console-column {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  min-width: 0;
}

.api-console {
  overflow: hidden;
  border: 1px solid #213e32;
  border-radius: 18px;
  color: #eef6f0;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 185, 22, 0.12), transparent 17rem),
    #10271d;
  box-shadow: 0 24px 70px rgba(14, 45, 33, 0.19);
}

.console-title {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 23px 24px 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.article .console-title h2 {
  margin: 7px 0 4px;
  color: white;
  font-size: 23px;
  font-weight: 400;
}

.article .console-title p {
  margin: 0;
  color: #9eb2a5;
  font-size: 11px;
  line-height: 1.5;
}

.console-title code {
  color: #d9e8dd;
  background: rgba(255, 255, 255, 0.07);
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font: 700 9px "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
}

.console-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64d99c;
  box-shadow: 0 0 0 5px rgba(100, 217, 156, 0.1);
}

.console-form {
  display: grid;
  padding: 22px 24px 24px;
  gap: 17px;
}

.console-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.console-field > span {
  color: #c9d8ce;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.console-field input,
.console-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 11px 12px;
  color: white;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.console-field input::placeholder {
  color: #72877a;
}

.console-field input:focus,
.console-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 22, 0.1);
}

.console-field textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.6;
}

.api-key-field input {
  padding-right: 60px;
}

.api-key-field button {
  position: absolute;
  right: 7px;
  bottom: 6px;
  height: 29px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  color: var(--gold);
  background: #203c30;
  font-size: 9px;
  font-weight: 700;
}

.console-safety {
  border: 1px solid rgba(100, 217, 156, 0.2);
  border-radius: 10px;
  padding: 12px 13px;
  background: rgba(100, 217, 156, 0.07);
}

.console-safety.secret {
  border-color: rgba(245, 185, 22, 0.25);
  background: rgba(245, 185, 22, 0.07);
}

.console-safety strong {
  color: #bde3c9;
  font-size: 10px;
}

.console-safety.secret strong {
  color: var(--gold);
}

.article .console-safety p {
  margin: 4px 0 0;
  color: #91aa9b;
  font-size: 10px;
  line-height: 1.55;
}

.console-send {
  display: flex;
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  color: var(--forest-deep);
  background: var(--gold);
  font-weight: 700;
}

.console-send:disabled {
  cursor: wait;
  opacity: 0.6;
}

.console-send b {
  font-size: 20px;
}

.console-result {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1e16;
}

.console-result-head {
  display: flex;
  min-height: 49px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

.console-result-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.console-result-head [data-response-dot] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #88978e;
}

.console-result-head [data-response-dot].success {
  background: #64d99c;
}

.console-result-head [data-response-dot].error {
  background: #ff836c;
}

.console-result-head [data-response-dot].loading {
  background: var(--gold);
  animation: pulse 1s infinite alternate;
}

.console-result-head strong {
  font-size: 11px;
}

.console-result-head button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  padding: 6px 8px;
  color: #b8c7bd;
  background: transparent;
  font-size: 9px;
}

.console-request-preview {
  display: flex;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #82988a;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
}

.console-request-preview code {
  overflow-wrap: anywhere;
  color: #d8e5dc;
  background: none;
}

.console-response-meta {
  display: flex;
  padding: 12px 20px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.console-response-meta span {
  border-radius: 6px;
  padding: 6px 8px;
  color: #a8b8ad;
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
}

.console-response-meta b {
  margin-right: 5px;
  color: #718478;
  font-weight: 400;
}

.console-result pre {
  max-height: 390px;
  overflow: auto;
  margin: 0;
  padding: 18px 20px 22px;
  white-space: pre-wrap;
  word-break: break-word;
}

.console-result pre code {
  padding: 0;
  color: #d6e6dc;
  background: none;
  font-size: 10px;
  line-height: 1.65;
}

@keyframes pulse {
  to {
    opacity: 0.35;
  }
}

.reference-summary > section {
  margin: 44px 0;
}

.reference-summary > section > h2 {
  margin: 0 0 13px;
  font-size: 21px;
}

.reference-summary a {
  display: grid;
  border-top: 1px solid var(--line);
  padding: 15px 5px;
  align-items: center;
  grid-template-columns: 52px minmax(11rem, 0.7fr) minmax(14rem, 1.3fr) 24px;
  gap: 13px;
  text-decoration: none;
}

.reference-summary a:last-child {
  border-bottom: 1px solid var(--line);
}

.reference-summary a:hover {
  background: #f8f6ed;
}

.reference-summary a code {
  overflow: hidden;
  padding: 0;
  background: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-summary a p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.reference-summary a b {
  color: var(--gold-deep);
}

.next-reference {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.next-reference a {
  display: flex;
  text-decoration: none;
  flex-direction: column;
  align-items: flex-end;
}

.next-reference span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.next-reference strong {
  margin-top: 5px;
}

.toc {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 54px 24px 30px 0;
}

.toc > p {
  margin: 0 0 12px;
  color: #8a918b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc > a {
  display: block;
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 12px;
  color: #6a746c;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.4;
}

.toc > a:hover {
  border-left-color: var(--gold);
  color: var(--forest);
}

.toc .toc-support {
  margin-top: 26px;
  border: 0;
  border-radius: 9px;
  padding: 13px;
  background: #f1efe5;
  line-height: 1.5;
}

.not-found {
  display: grid;
  min-height: 65vh;
  place-content: center;
  justify-items: start;
}

.not-found > span {
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
}

.not-found .button {
  color: white;
  background: var(--forest);
}

.search-backdrop {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 9vh 18px;
  align-items: start;
  justify-items: center;
  background: rgba(10, 28, 20, 0.66);
  backdrop-filter: blur(5px);
}

.search-dialog {
  width: min(100%, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
}

.search-input {
  display: grid;
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr) max-content;
  gap: 12px;
}

.search-input > span {
  color: var(--forest);
  font-size: 26px;
}

.search-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

.search-results {
  max-height: 55vh;
  overflow-y: auto;
  padding: 8px;
}

.search-results a {
  position: relative;
  display: block;
  border-radius: 9px;
  padding: 12px 15px;
  text-decoration: none;
}

.search-results a:hover,
.search-results a.selected {
  background: #edf1e8;
}

.search-results span {
  color: var(--gold-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-results strong {
  display: block;
  margin-top: 2px;
  color: var(--forest-deep);
  font-size: 15px;
}

.search-results p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  padding: 45px 20px;
  text-align: center;
}

.search-empty p {
  color: var(--muted);
  font-size: 13px;
}

.search-foot {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  justify-content: flex-end;
  gap: 15px;
  color: var(--muted);
  background: #f5f3ea;
  font-size: 9px;
}

#toast {
  position: fixed;
  z-index: 800;
  left: 50%;
  bottom: 24px;
  border-radius: 8px;
  padding: 11px 15px;
  color: white;
  background: var(--forest-deep);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms, transform 160ms;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

:where(
  .site-header,
  .site-shell,
  .hero,
  .architecture,
  .error-list,
  .endpoint-layout,
  .endpoint-heading,
  .endpoint-meta,
  .playground-intro,
  .playground-workbench,
  .playground-version,
  .playground-endpoint,
  .playground-selected,
  .reference-summary a,
  .search-input
) > * {
  min-width: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 190px 160px minmax(12rem, 1fr) minmax(14rem, 0.75fr);
    gap: 14px;
  }

  .header-actions {
    gap: 12px;
  }

  .header-playground {
    display: none;
  }

  .site-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  .document {
    padding-inline: clamp(28px, 6vw, 72px);
  }

  .endpoint-view .site-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .playground-view .site-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .endpoint-document {
    padding-inline: clamp(28px, 4vw, 52px);
  }

  .endpoint-layout {
    grid-template-columns: minmax(20rem, 1fr) minmax(21rem, 0.9fr);
    gap: 34px;
  }

  .playground-intro,
  .playground-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .playground-catalogue {
    position: static;
  }

  .playground-endpoints {
    max-height: 360px;
  }

  .playground-workbench {
    grid-template-columns: minmax(15rem, 0.55fr) minmax(23rem, 1fr);
  }

  .playground-catalogue {
    grid-row: 1 / span 2;
  }

  .response-reference {
    position: static;
    grid-column: 2;
  }
}

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

  .endpoint-console-column {
    position: static;
  }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 190px 155px minmax(12rem, 1fr) minmax(8rem, 0.55fr);
  }

  .header-actions > a:not(.header-cta) {
    display: none;
  }
}

@media (max-width: 880px) {
  .site-header {
    padding-inline: 18px;
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .search-trigger {
    display: none;
  }

  .header-version {
    display: none;
  }

  .header-actions > a {
    display: none;
  }

  .mobile-only,
  .sidebar-mobile-head {
    display: flex;
  }

  .sidebar-version {
    display: grid;
  }

  .sidebar-mobile-head {
    margin-bottom: 24px;
    align-items: center;
    justify-content: space-between;
  }

  .site-shell {
    display: block;
  }

  .playground-view .sidebar {
    display: block;
  }

  .playground-intro {
    margin-inline: -18px;
    padding: 0 22px 30px;
  }

  .playground-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .playground-catalogue,
  .response-reference {
    grid-row: auto;
    grid-column: auto;
  }

  .sidebar {
    position: fixed;
    z-index: 300;
    top: 0;
    left: 0;
    width: min(88vw, 330px);
    height: 100vh;
    box-shadow: 20px 0 70px rgba(10, 32, 22, 0.2);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  body.nav-open::after {
    position: fixed;
    z-index: 250;
    inset: 0;
    background: rgba(10, 28, 20, 0.5);
    content: "";
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .document {
    padding: 28px clamp(22px, 6vw, 56px) 80px;
  }

  .endpoint-layout {
    grid-template-columns: 1fr;
  }

  .endpoint-console-column {
    position: static;
  }

  .hero {
    min-height: auto;
    margin: -28px calc(-1 * clamp(22px, 6vw, 56px)) 0;
    padding: 64px clamp(25px, 7vw, 65px);
    grid-template-columns: 1fr;
  }

  .flow-card {
    width: min(100%, 500px);
  }

  .concept-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .concept-grid article {
    min-height: 220px;
  }

  .concept-grid h3 {
    margin-top: 30px;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 62px;
  }

  .brand img {
    width: 95px;
  }

  .brand span {
    font-size: 11px;
  }

  .document {
    padding-inline: 18px;
  }

  .article h1 {
    font-size: 42px;
  }

  .article h2 {
    margin-top: 48px;
    font-size: 25px;
  }

  .article .lead {
    font-size: 17px;
  }

  .endpoint-meta {
    grid-template-columns: 1fr;
  }

  .playground-facts {
    grid-template-columns: 1fr;
  }

  .playground-facts article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .endpoint-meta div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .console-title,
  .console-form {
    padding-inline: 17px;
  }

  .hero {
    margin-inline: -18px;
    padding: 54px 22px;
    gap: 35px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .flow-card {
    padding: 21px;
  }

  .doc-section {
    padding-top: 65px;
  }

  .doc-section > h2 {
    font-size: 36px;
  }

  .key-grid,
  .boundary-grid,
  .charge-grid,
  .endpoint-meta {
    grid-template-columns: 1fr;
  }

  .endpoint-meta div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .architecture {
    grid-template-columns: 190px 64px 190px 64px 190px;
  }

  .reference-summary a {
    grid-template-columns: 45px minmax(0, 1fr) 24px;
  }

  .reference-summary a p {
    display: none;
  }

  .error-list {
    grid-template-columns: 1fr;
  }

  .error-list code {
    border-right: 0;
  }

  .error-list span {
    padding-top: 8px;
  }

  .parameter-table {
    min-width: 640px;
  }

  .breadcrumb {
    margin-bottom: 28px;
  }

  .search-backdrop {
    padding: 0;
  }

  .search-dialog {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .search-results {
    max-height: calc(100vh - 120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
