:root {
  --navy: #00284c;
  --navy-light: #07365f;
  --orange: #ff985b;
  --cyan: #55c9d2;
  --green: #5bd078;
  --red: #df5147;
  --paper: #f5f6f7;
  --card: #ffffff;
  --ink: #052b4d;
  --muted: #6f7f8f;
  --line: #e1e6ea;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 95% 0%, rgba(85, 201, 210, 0.08), transparent 24rem),
    var(--paper);
}

a {
  color: inherit;
}

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

code {
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.docs-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(250, 250, 251, 0.92);
  border-bottom: 1px solid rgba(218, 224, 229, 0.9);
  backdrop-filter: blur(18px);
}

.docs-header nav,
.docs-footer > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-header nav a {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}

.docs-header nav a:hover {
  background: #edf1f3;
}

.docs-header .header-download {
  color: #082d4b;
  background: var(--orange);
}

.docs-header .header-download:hover {
  background: #ffa66f;
}

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

.docs-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.docs-brand strong {
  font-size: 1.3rem;
  letter-spacing: -0.055em;
}

.docs-brand small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  color: var(--orange);
}

.docs-brand__mark i,
.docs-brand__mark i::after {
  position: absolute;
  display: block;
  content: "";
  background: currentColor;
  border-radius: 1px;
}

.docs-brand__mark i:first-child {
  left: 0;
  top: 20px;
  width: 22px;
  height: 6px;
}

.docs-brand__mark i:first-child::after {
  left: 8px;
  top: -8px;
  width: 6px;
  height: 22px;
}

.docs-brand__mark i:last-child {
  right: 0;
  top: 7px;
  width: 14px;
  height: 5px;
}

.docs-brand__mark i:last-child::after {
  left: 5px;
  top: -5px;
  width: 5px;
  height: 15px;
}

.docs-layout {
  width: min(1500px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
}

.docs-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 42px 24px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.docs-sidebar > p {
  margin: 0 10px 14px;
  color: #8a98a5;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.docs-sidebar nav a {
  padding: 8px 10px;
  color: #667889;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 680;
  text-decoration: none;
}

.docs-sidebar nav a:hover,
.docs-sidebar nav a.active {
  color: var(--ink);
  background: white;
}

.docs-sidebar nav a.active {
  box-shadow: inset 3px 0 0 var(--orange);
}

.mobile-toc {
  display: none;
  margin: 0;
  background: rgba(250, 250, 251, 0.97);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0, 40, 76, 0.08);
  backdrop-filter: blur(18px);
}

.mobile-toc > summary {
  min-height: 54px;
  padding: 9px clamp(18px, 4vw, 42px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 12px;
  align-items: center;
  gap: 11px;
  list-style: none;
}

.mobile-toc > summary::-webkit-details-marker {
  display: none;
}

.mobile-toc > summary::after {
  width: 7px;
  height: 7px;
  content: "";
  border-right: 2px solid #657788;
  border-bottom: 2px solid #657788;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.mobile-toc[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.mobile-toc > summary > span {
  color: #8a98a5;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mobile-toc > summary > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-toc nav {
  max-height: min(66vh, 570px);
  padding: 4px clamp(18px, 4vw, 42px) 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-toc nav a {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  color: #617486;
  background: #f0f3f5;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 720;
  text-decoration: none;
}

.mobile-toc nav a.active {
  color: var(--ink);
  background: #fff5ed;
  border-color: #f4cfb7;
  box-shadow: inset 3px 0 0 var(--orange);
}

.sidebar-version {
  margin-top: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  background: #eaf0f3;
  border-radius: 12px;
}

.sidebar-version span {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 750;
}

.sidebar-version strong {
  margin-top: 4px;
  font-size: 1rem;
}

.sidebar-version small {
  margin-top: 5px;
  color: #83919d;
  font-size: 0.53rem;
}

.docs-main {
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
}

.docs-hero {
  min-height: 510px;
  padding: clamp(34px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(35px, 6vw, 90px);
  color: white;
  background:
    radial-gradient(circle at 84% 14%, rgba(85, 201, 210, 0.17), transparent 25%),
    radial-gradient(circle at 55% 110%, rgba(255, 152, 91, 0.14), transparent 30%),
    var(--navy);
  border-radius: 26px;
  box-shadow: 0 22px 58px rgba(0, 38, 74, 0.14);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.63rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(91, 208, 120, 0.12);
}

.docs-hero h1 {
  max-width: 790px;
  margin: 24px 0 20px;
  font-size: clamp(3rem, 6vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.docs-hero > div:first-child > p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.9rem, 1.3vw, 1.06rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 780;
  text-decoration: none;
}

.button--primary {
  color: #082d4b;
  background: var(--orange);
}

.button--secondary {
  color: white;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.hero-card div {
  padding: 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 11px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.hero-card div > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--orange);
  border-radius: 50%;
  font-size: 0.67rem;
  font-weight: 850;
}

.hero-card strong {
  font-size: 0.76rem;
}

.hero-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.59rem;
}

.hero-card > i {
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 0.68rem;
  font-style: normal;
}

.docs-section {
  padding: clamp(70px, 9vw, 125px) clamp(4px, 3vw, 30px) 0;
}

.docs-section--accent {
  margin-top: clamp(70px, 9vw, 125px);
  padding: clamp(38px, 6vw, 70px);
  color: white;
  background: var(--navy);
  border-radius: 24px;
}

.docs-section--accent .section-heading > span {
  color: var(--orange);
}

.docs-section--accent .section-heading > p,
.docs-section--accent .body-copy {
  color: rgba(255, 255, 255, 0.64);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 36px;
}

.section-heading > span {
  color: #8a98a5;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 13px 0 14px;
  font-size: clamp(2.15rem, 4.5vw, 4.6rem);
  font-weight: 530;
  letter-spacing: -0.055em;
  line-height: 1;
}

.experimental-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  vertical-align: 0.18em;
  color: #743e1d;
  background: #ffd7be;
  border: 1px solid #f4b58d;
  border-radius: 999px;
  font-size: 0.22em;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-experimental {
  margin-left: 4px;
  padding: 2px 5px;
  color: #8d4b26;
  background: #ffe0cc;
  border-radius: 999px;
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading > p,
.body-copy,
.callout-copy {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.callout-copy {
  margin-top: 15px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.subheading {
  margin: 42px 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.notice {
  margin-top: 24px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.docs-main > .notice {
  margin: 26px clamp(4px, 3vw, 30px) 0;
}

.notice > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 850;
}

.notice strong {
  font-size: 0.8rem;
}

.notice p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.notice--important {
  background: #fff5ed;
  border-color: #f4dbc9;
}

.notice--important > span {
  color: #8d4b26;
  background: #ffd8bf;
}

.notice--success {
  background: #edf8f0;
  border-color: #d5eadb;
}

.notice--success > span {
  color: #24643d;
  background: #ccefd6;
}

.notice--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.notice--dark > span {
  background: rgba(255, 255, 255, 0.1);
}

.notice--dark p {
  color: rgba(255, 255, 255, 0.64);
}

.concept-grid,
.error-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.concept-grid article,
.info-card,
.error-grid article {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.concept-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #e3f3f4;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 850;
}

.concept-grid h3,
.info-card h3 {
  margin: 18px 0 9px;
  font-size: 0.92rem;
}

.concept-grid p,
.info-card p,
.error-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.plain-language {
  margin-top: 14px;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #eaf0f3;
  border-radius: 14px;
}

.plain-language strong {
  white-space: nowrap;
  font-size: 0.7rem;
}

.plain-language p {
  margin: 0;
  color: #647789;
  font-size: 0.75rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.step {
  padding: 22px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.step > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--orange);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 850;
}

.step h3 {
  margin: 3px 0 7px;
  font-size: 0.86rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.step .code-block {
  margin-top: 14px;
}

.code-block {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  color: #e8f0f6;
  background: #061f36;
  border: 1px solid #143a5b;
  border-radius: 14px;
}

.code-block pre {
  margin: 0;
  padding: 24px 76px 24px 24px;
  overflow-x: auto;
  font-size: 0.7rem;
  line-height: 1.75;
}

.code-block--large pre {
  min-height: 310px;
}

.copy-button {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  padding: 7px 9px;
  color: #b9cbd9;
  background: #123653;
  border: 1px solid #244a67;
  border-radius: 7px;
  font: inherit;
  font-size: 0.56rem;
  font-weight: 750;
  cursor: pointer;
}

.copy-button:hover,
.copy-button.copied {
  color: white;
  border-color: var(--orange);
}

.fact-row {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.fact-row div {
  padding: 18px;
  display: flex;
  flex-direction: column;
  background: #e9eef1;
  border-radius: 12px;
}

.fact-row strong {
  font-size: 1.1rem;
}

.fact-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.58rem;
}

.two-column {
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.info-card--danger {
  background: #fff3f1;
  border-color: #f3d9d6;
}

.output-card {
  margin-top: 13px;
  padding: 20px;
  color: #173c59;
  background: #e7f1f3;
  border-radius: 14px;
}

.output-card > span {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.output-card pre {
  margin: 13px 0 0;
  overflow-x: auto;
  font-size: 0.68rem;
  line-height: 1.65;
}

.app-example {
  padding: clamp(26px, 4vw, 45px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 35px;
  color: white;
  background:
    radial-gradient(circle at 92% 0%, rgba(85, 201, 210, 0.14), transparent 30%),
    var(--navy);
  border-radius: 20px;
}

.app-example h3 {
  margin: 19px 0 10px;
  font-size: 1.7rem;
}

.app-example p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  line-height: 1.65;
}

.app-example ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  list-style: none;
}

.app-example li {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
}

.app-example li > span {
  color: var(--green);
}

.app-example code {
  color: var(--orange);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-grid article {
  padding: 18px;
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  column-gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.status-grid strong {
  font-size: 0.7rem;
}

.status-grid span {
  grid-column: 2;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.57rem;
}

.dot {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--green { background: var(--green); }
.dot--orange { background: var(--orange); }
.dot--red { background: var(--red); }
.dot--grey { background: #9ba7b1; }

.safety-list {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  list-style: none;
  counter-reset: safety;
}

.safety-list li {
  padding: 17px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.63rem;
  line-height: 1.55;
}

.safety-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.api-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.67rem;
}

.api-table th,
.api-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.api-table th {
  color: #7c8b98;
  background: #f8f9fa;
  font-size: 0.53rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.api-table td:nth-child(1) {
  min-width: 230px;
  color: #123e61;
  font-weight: 700;
}

.api-table td:nth-child(2) {
  min-width: 330px;
  color: var(--muted);
  line-height: 1.55;
}

.api-table td:nth-child(3) {
  min-width: 150px;
}

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

.error-grid article code {
  color: #9a5730;
  font-size: 0.62rem;
  font-weight: 800;
}

.error-grid article p {
  margin-top: 10px;
}

.bridge-flow {
  margin-bottom: 23px;
  padding: 19px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
}

.integration-flow {
  margin-top: 16px;
  padding: 19px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(85, 201, 210, 0.16), transparent 18rem),
    var(--navy);
  border-radius: 16px;
}

.integration-flow div {
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
}

.integration-flow strong {
  font-size: 0.72rem;
}

.integration-flow span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
}

.integration-flow i {
  color: var(--orange);
  font-size: 0.53rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bridge-flow div {
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 11px;
}

.bridge-flow strong {
  font-size: 0.72rem;
}

.bridge-flow span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.58rem;
}

.bridge-flow i {
  color: var(--orange);
  font-size: 0.53rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-section--accent .step {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.11);
}

.docs-section--accent .step p {
  color: rgba(255, 255, 255, 0.57);
}

.docs-section--accent .step > span {
  background: var(--orange);
}

.schema-section {
  scroll-margin-top: 88px;
}

.schema-provenance {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  background:
    radial-gradient(circle at 88% 0%, rgba(85, 201, 210, 0.22), transparent 18rem),
    var(--navy);
  border-radius: 18px;
}

.schema-provenance > div:first-child {
  display: flex;
  align-items: center;
  gap: 15px;
}

.schema-provenance__icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--orange);
  border-radius: 14px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.schema-provenance strong {
  font-size: 0.86rem;
}

.schema-provenance p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.58rem;
  line-height: 1.5;
}

.schema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schema-actions .button--secondary {
  color: white;
}

.schema-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.schema-stats div {
  min-width: 0;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.schema-stats strong {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.schema-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 720;
}

.schema-toolbar {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr);
  gap: 10px;
}

.schema-search,
.schema-filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.schema-search > span,
.schema-filter > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schema-search input,
.schema-filter select {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: var(--ink);
  background: white;
  border: 1px solid #ccd6dd;
  border-radius: 11px;
  font: inherit;
  font-size: 0.75rem;
  outline: none;
}

.schema-search input:focus,
.schema-filter select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 152, 91, 0.16);
}

.schema-results-heading {
  margin: 34px 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.schema-results-heading h3 {
  margin: 5px 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.text-button {
  padding: 8px 0;
  color: var(--ink);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 780;
  cursor: pointer;
}

.text-button:hover {
  color: #c45e20;
}

.schema-results {
  display: grid;
  gap: 8px;
}

.schema-result {
  margin: 0;
  overflow: hidden;
}

.schema-result summary {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  list-style-position: outside;
}

.schema-result summary::marker {
  color: var(--orange);
}

.schema-result[open] summary {
  border-bottom: 1px solid var(--line);
}

.schema-result__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.schema-result__identity strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-kind {
  min-width: 76px;
  padding: 5px 7px;
  flex: 0 0 auto;
  color: #536879;
  background: #eaf0f3;
  border-radius: 999px;
  font-size: 0.51rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.schema-kind--query {
  color: #0d6542;
  background: #daf3e5;
}

.schema-kind--mutation {
  color: #9a4618;
  background: #ffeadc;
}

.schema-kind--subscription {
  color: #136570;
  background: #dcf4f5;
}

.schema-result summary > code {
  min-width: 0;
  overflow: hidden;
  color: #698092;
  font-size: 0.58rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-result__body {
  position: relative;
  color: #e8f0f6;
  background: #061f36;
}

.schema-result__body pre {
  margin: 0;
  padding: 54px 22px 22px;
  overflow-x: auto;
  font-size: 0.64rem;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}

.schema-result__body .copy-button {
  position: absolute;
}

.schema-message {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.75rem;
  text-align: center;
}

.schema-more {
  margin: 15px auto 0;
  color: var(--ink);
  background: white;
  border-color: var(--line);
  cursor: pointer;
}

.schema-raw {
  margin-top: 35px;
  border-color: #bfcbd3;
}

.schema-raw > summary {
  font-size: 0.78rem;
}

.schema-raw .code-block {
  margin: 0;
  border: 0;
  border-top: 1px solid #143a5b;
  border-radius: 0;
}

.code-block--schema pre {
  padding-top: 58px;
}

.checklist {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checklist li {
  list-style: none;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.checklist > li > span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  background: var(--orange);
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 850;
}

.checklist div {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.55;
}

.checklist strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

details {
  margin-bottom: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

summary {
  padding: 17px 19px;
  font-size: 0.73rem;
  font-weight: 760;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 19px 19px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.docs-footer {
  margin-top: 110px;
  padding: 35px 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.docs-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.55;
}

.docs-footer a {
  font-size: 0.66rem;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 1050px) {
  html {
    scroll-padding-top: 142px;
  }

  .mobile-toc {
    position: sticky;
    z-index: 45;
    top: 72px;
    display: block;
  }

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

  .docs-sidebar {
    display: none;
  }

  .docs-hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .safety-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 126px;
  }

  .docs-header {
    min-height: 62px;
  }

  .mobile-toc {
    top: 62px;
  }

  .docs-header nav > a:first-child {
    display: none;
  }

  .docs-main {
    padding: 18px 14px 45px;
  }

  .docs-hero {
    min-height: 560px;
    padding: 30px 24px;
    border-radius: 20px;
  }

  .docs-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .docs-main > .notice {
    margin-inline: 0;
  }

  .docs-section {
    padding-inline: 0;
  }

  .docs-section--accent {
    margin-inline: -4px;
    padding: 28px 18px;
  }

  .concept-grid,
  .error-grid,
  .two-column,
  .app-example,
  .checklist,
  .schema-toolbar {
    grid-template-columns: 1fr;
  }

  .fact-row,
  .status-grid,
  .schema-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .schema-provenance {
    align-items: flex-start;
    flex-direction: column;
  }

  .schema-result summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bridge-flow {
    grid-template-columns: 1fr;
  }

  .bridge-flow i,
  .integration-flow i {
    text-align: center;
  }

  .integration-flow {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 17px;
  }

  .code-block pre {
    padding: 56px 18px 20px;
    font-size: 0.63rem;
  }

  .plain-language {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .docs-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .docs-header {
    padding-inline: 14px;
  }

  .docs-brand small {
    display: none;
  }

  .docs-header nav a {
    padding: 8px 9px;
    font-size: 0.62rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .fact-row,
  .status-grid,
  .safety-list,
  .schema-stats {
    grid-template-columns: 1fr;
  }

  .docs-header nav > a:nth-child(2) {
    display: none;
  }

  .mobile-toc nav {
    grid-template-columns: 1fr;
  }

  .schema-actions {
    width: 100%;
  }

  .schema-actions .button {
    width: 100%;
  }

  .schema-result__identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .schema-result__identity strong {
    max-width: 100%;
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
