@font-face {
  font-family: 'Paper Mono';
  src: url('/static/fonts/paper-mono.woff2') format('woff2');
  font-display: swap;
}

/* DNSR1 API reference components. The base layout is shared with the
   established Whiteyun documentation experience. */
.search-box i {
  color: var(--muted);
  font-size: 14px;
}

.api-summary {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.api-summary > div {
  min-height: 94px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.api-summary > div:last-child {
  border-right: 0;
}

.api-summary span {
  color: var(--muted);
  font-size: 12px;
}

.api-summary b {
  color: var(--text);
  font-size: 13px;
}

.start-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.start-card {
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.start-card .step-no {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0788b8;
  background: var(--blue-soft);
  font: 12px 'Paper Mono', monospace;
}

.start-card b {
  margin: 18px 0 7px;
  display: block;
  font-size: 14px;
}

.start-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.base-url {
  margin-top: 20px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.base-url strong {
  font-size: 12px;
}

.base-url code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-inline,
.tab-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font: 12px inherit;
  cursor: pointer;
}

.copy-inline {
  padding: 7px 10px;
}

.tabs {
  margin-top: 24px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
}

.tab-btn {
  padding: 8px 12px;
  white-space: nowrap;
}

.tab-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.endpoint-list {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}

.endpoint-row {
  min-height: 58px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 72px minmax(190px, 0.8fr) minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.endpoint-row:hover {
  border-color: #9fdcf3;
}

.method {
  min-width: 62px;
  padding: 5px 8px;
  display: inline-flex;
  justify-content: center;
  border-radius: 7px;
  font: 700 11px 'Paper Mono', monospace;
}

.method.get {
  color: #087e59;
  background: rgba(19, 138, 91, 0.12);
}

.method.post {
  color: #067ca9;
  background: var(--blue-soft);
}

.method.put {
  color: #8a6500;
  background: rgba(228, 198, 111, 0.18);
}

.method.delete {
  color: #bd4545;
  background: rgba(199, 75, 75, 0.12);
}

.path {
  font-family: 'Paper Mono', ui-monospace, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.endpoint-row span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.endpoint-title {
  margin: 24px 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.endpoint-title h3 {
  margin: 0;
  font-size: 16px;
}

.meta {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta span {
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--muted);
  background: var(--blue-soft);
  font-size: 11px;
}

.param-scroll {
  margin-top: 18px;
  overflow-x: auto;
}

.param-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--paper);
}

.param-table th,
.param-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}

.param-table th {
  color: var(--muted);
  background: var(--bg);
}

.required {
  color: var(--red);
  font-weight: 700;
}

.response-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.response-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.response-card b {
  font-size: 13px;
}

.response-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.api-footer {
  padding: 28px 20px 38px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

:root[data-theme='dark'] .api-summary,
:root[data-theme='dark'] .start-card,
:root[data-theme='dark'] .base-url,
:root[data-theme='dark'] .copy-inline,
:root[data-theme='dark'] .tab-btn,
:root[data-theme='dark'] .endpoint-row,
:root[data-theme='dark'] .param-table,
:root[data-theme='dark'] .response-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme='dark'] .param-table th {
  background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 1023px) {
  .api-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-summary > div:nth-child(2) {
    border-right: 0;
  }

  .api-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  .api-summary,
  .start-grid,
  .response-grid {
    grid-template-columns: 1fr;
  }

  .api-summary > div {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .base-url {
    grid-template-columns: 1fr auto;
  }

  .base-url strong {
    grid-column: 1 / -1;
  }

  .base-url code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .endpoint-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .endpoint-row span:last-child {
    grid-column: 2;
  }
}

:root {
  --bg: #f7f7f6;
  --paper: #fff;
  --text: #16181d;
  --muted: #62656b;
  --line: #e4e5e7;
  --blue: #05a9e8;
  --blue-soft: #dff5fd;
  --green: #138a5b;
  --red: #c74b4b;
  --yellow: #9a6d00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 66% 0, rgba(148, 218, 250, 0.32), transparent 34rem),
    var(--bg);
  font-family: 'Google Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
kbd {
  font-family: 'Paper Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

.docs-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: 58px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(247, 247, 246, 0.86);
  backdrop-filter: blur(18px);
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.docs-brand b {
  padding-left: 10px;
  border-left: 1px solid #ccc;
  color: #60636a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.docs-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #62656b;
  font-size: 13px;
}

.docs-header nav a:hover {
  color: #111;
}

.docs-header .header-primary {
  padding: 8px 12px;
  border: 1px solid #d6d8dc;
  border-radius: 9px;
  color: #1b1c1f;
  background: rgba(255, 255, 255, 0.72);
}

.docs-menu {
  display: none;
}

.docs-layout {
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 58px;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.docs-sidebar {
  position: fixed;
  top: 58px;
  bottom: 0;
  width: 272px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(247, 247, 246, 0.92);
  overflow-y: auto;
}

.search-box {
  min-height: 40px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9dade;
  border-radius: 11px;
  background: #fff;
}

.search-box img {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #25272b;
  font: inherit;
  font-size: 13px;
}

.search-box kbd {
  color: #8a8d92;
  font-size: 10px;
}

.docs-nav {
  margin-top: 18px;
}

.docs-nav p {
  margin: 20px 12px 7px;
  color: #25272b;
  font-size: 12px;
  font-weight: 700;
}

.docs-nav a {
  min-height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  color: #5d6066;
  font-size: 13px;
}

.docs-nav a:hover,
.docs-nav a.active {
  color: #0788b8;
  background: var(--blue-soft);
}

.docs-nav a.is-hidden {
  display: none;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 12px 2px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-foot span {
  font-family: 'Paper Mono', monospace;
  font-size: 11px;
}

.sidebar-foot small {
  color: #85878c;
  font-size: 11px;
}

.docs-main {
  grid-column: 2;
  min-width: 0;
  margin: 0 16px 16px;
  display: grid;
  grid-template-columns: minmax(0, 780px) 180px;
  justify-content: center;
  gap: 70px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 17px;
  background:
    radial-gradient(circle at 70% 4%, rgba(147, 218, 251, 0.31), transparent 25rem),
    rgba(255, 255, 255, 0.92);
}

.docs-main article {
  min-width: 0;
  padding: 56px 0 100px;
}

.doc-section {
  padding: 74px 0 10px;
  scroll-margin-top: 72px;
}

.doc-section:first-child {
  padding-top: 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.doc-section h1 {
  margin: 12px 0 8px;
  font-size: 42px;
  letter-spacing: -0.045em;
}

.doc-section h2 {
  margin: 12px 0 16px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.doc-section h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.doc-section > p,
.steps p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.lead {
  margin: 0;
  font-size: 18px !important;
}

.notice,
.warning {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid #b9e5f6;
  border-radius: 12px;
  background: rgba(231, 248, 254, 0.82);
}

.notice b {
  color: #097ba4;
  font-size: 13px;
}

.notice p {
  margin: 6px 0 0;
  color: #4b626b;
  font-size: 13px;
  line-height: 1.7;
}

.notice code,
.policy code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.055);
  font-size: 11px;
}

.role-grid,
.download-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-grid > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.role-grid b {
  font-size: 14px;
}

.role-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.inline-button {
  margin-top: 18px;
  padding: 10px 14px;
  display: inline-flex;
  border: 1px solid #c8dfe8;
  border-radius: 9px;
  color: #087da8;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.download-grid a {
  min-height: 128px;
  padding: 18px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-content: center;
  gap: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
}

.download-grid a:hover {
  border-color: #9fdcf3;
  transform: translateY(-2px);
}

.download-grid img {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  filter: invert(51%) sepia(99%) saturate(1322%) hue-rotate(160deg);
}

.download-grid b {
  font-size: 14px;
}

.download-grid span {
  color: var(--muted);
  font-size: 12px;
}

.environment-links {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.environment-links a {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.environment-links b {
  font-size: 13px;
}

.environment-links span {
  color: var(--muted);
  font-size: 11px;
}

.checksums {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.checksums summary {
  cursor: pointer;
  color: #51545a;
  font-size: 12px;
}

.checksums code {
  margin-top: 10px;
  display: block;
  overflow-x: auto;
  color: #686b70;
  font-size: 10px;
}

.code-title {
  margin-top: 28px !important;
}

.code-block {
  position: relative;
  margin: 14px 0 20px;
  overflow: hidden;
  border: 1px solid #282b31;
  border-radius: 12px;
  background: #111318;
}

.code-block pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #e7e9ed;
  font-family: 'Paper Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.75;
  tab-size: 2;
}

.copy-code {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  padding: 6px 9px;
  border: 1px solid #3b3e46;
  border-radius: 7px;
  color: #b9bdc6;
  background: #1b1e24;
  font: 11px 'PingFang SC', system-ui, sans-serif;
  cursor: pointer;
}

.quick-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-grid a {
  min-height: 156px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, transform 160ms ease;
}

.quick-grid a:hover {
  border-color: #a9dff4;
  transform: translateY(-2px);
}

.quick-grid img {
  width: 22px;
  height: 22px;
  margin-bottom: 18px;
  filter: invert(55%) sepia(94%) saturate(1120%) hue-rotate(158deg);
}

.quick-grid b {
  margin-bottom: 6px;
  font-size: 14px;
}

.quick-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checklist {
  margin-top: 20px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.checklist label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee;
  color: #4f5258;
  font-size: 13px;
}

.checklist label:last-child {
  border: 0;
}

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

.steps li {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.steps li > b {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0788b8;
  background: var(--blue-soft);
  font-size: 12px;
}

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

.compat-table,
.policy {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.compat-table > div,
.policy > div {
  min-height: 48px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.compat-table > div:last-child,
.policy > div:last-child {
  border: 0;
}

.compat-table > div:first-child {
  background: #fafafa;
}

.compat-table span,
.policy span {
  color: var(--muted);
}

.flow {
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
}

.flow > div {
  min-height: 112px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.flow b {
  color: var(--blue);
  font-family: 'Paper Mono', monospace;
  font-size: 12px;
}

.flow span {
  color: #45484d;
  font-size: 13px;
}

.flow i {
  height: 1px;
  background: #cfd1d4;
}

.warning {
  border-color: #ead8a4;
  color: #75591b;
  background: #fff9e8;
  font-size: 13px;
  line-height: 1.7;
}

.state-docs {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.state-docs > div {
  min-height: 154px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.state-docs b {
  font-family: 'Paper Mono', monospace;
  font-size: 12px;
}

.state-docs p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.state-docs .valid b {
  color: var(--green);
}

.state-docs .invalid b {
  color: var(--red);
}

.state-docs .unknown b {
  color: var(--yellow);
}

.limitations {
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.on-this-page {
  position: sticky;
  top: 105px;
  align-self: start;
  padding-top: 54px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-left: 1px solid var(--line);
}

.on-this-page p,
.on-this-page a {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
}

.on-this-page p {
  color: #34363a;
  font-weight: 700;
}

.on-this-page a {
  color: #74777c;
}

.on-this-page a:hover {
  color: var(--blue);
}

.search-empty {
  margin: 80px auto;
  color: #777;
  text-align: center;
}

.docs-header nav {
  margin-left: auto;
}

.docs-header > .theme-switch {
  margin-left: 16px;
}

.theme-switch {
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.theme-switch button {
  min-width: 42px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.theme-switch button:hover {
  color: var(--text);
}

.theme-switch button.is-active {
  color: var(--text);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000;
  --paper: #090909;
  --text: #f5f5f5;
  --muted: #969696;
  --line: rgba(255, 255, 255, 0.11);
  --blue: #5ac8f5;
  --blue-soft: rgba(90, 200, 245, 0.13);
  --green: #67d9a2;
  --red: #ff7c7c;
  --yellow: #e4c66f;
}

:root[data-theme='dark'] body {
  color: var(--text);
  background:
    radial-gradient(circle at 66% 0, rgba(40, 91, 116, 0.18), transparent 34rem),
    var(--bg);
}

:root[data-theme='dark'] .docs-header {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.84);
}

:root[data-theme='dark'] .docs-brand b {
  border-color: #3b3d42;
  color: #a1a3a8;
}

:root[data-theme='dark'] .docs-header nav {
  color: var(--muted);
}

:root[data-theme='dark'] .docs-header nav a:hover {
  color: #fff;
}

:root[data-theme='dark'] .docs-header .header-primary {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

:root[data-theme='dark'] .docs-sidebar {
  background: rgba(5, 5, 5, 0.94);
}

:root[data-theme='dark'] .search-box,
:root[data-theme='dark'] .role-grid > div,
:root[data-theme='dark'] .download-grid a,
:root[data-theme='dark'] .environment-links a,
:root[data-theme='dark'] .checksums,
:root[data-theme='dark'] .quick-grid a,
:root[data-theme='dark'] .checklist,
:root[data-theme='dark'] .compat-table,
:root[data-theme='dark'] .policy,
:root[data-theme='dark'] .flow > div,
:root[data-theme='dark'] .state-docs > div {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme='dark'] .search-box img,
:root[data-theme='dark'] .docs-menu span {
  filter: invert(1);
}

:root[data-theme='dark'] .search-box input,
:root[data-theme='dark'] .docs-nav p,
:root[data-theme='dark'] .on-this-page p,
:root[data-theme='dark'] .checksums summary,
:root[data-theme='dark'] .flow span,
:root[data-theme='dark'] .checklist label {
  color: #d4d5d8;
}

:root[data-theme='dark'] .search-box kbd,
:root[data-theme='dark'] .sidebar-foot small,
:root[data-theme='dark'] .on-this-page a,
:root[data-theme='dark'] .checksums code {
  color: #898c92;
}

:root[data-theme='dark'] .docs-nav a {
  color: #a2a4aa;
}

:root[data-theme='dark'] .docs-main {
  border-color: var(--line);
  background:
    radial-gradient(circle at 70% 4%, rgba(38, 101, 130, 0.2), transparent 25rem),
    rgba(6, 6, 6, 0.96);
}

:root[data-theme='dark'] .notice {
  border-color: rgba(90, 200, 245, 0.25);
  background: rgba(90, 200, 245, 0.08);
}

:root[data-theme='dark'] .notice b {
  color: #70d3f7;
}

:root[data-theme='dark'] .notice p {
  color: #a7bbc3;
}

:root[data-theme='dark'] .notice code,
:root[data-theme='dark'] .policy code {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .inline-button {
  border-color: rgba(90, 200, 245, 0.28);
  color: #78d5f8;
  background: rgba(90, 200, 245, 0.06);
}

:root[data-theme='dark'] .download-grid a:hover,
:root[data-theme='dark'] .quick-grid a:hover {
  border-color: rgba(90, 200, 245, 0.45);
}

:root[data-theme='dark'] .checklist label {
  border-color: var(--line);
}

:root[data-theme='dark'] .compat-table > div:first-child {
  background: rgba(255, 255, 255, 0.045);
}

:root[data-theme='dark'] .flow i {
  background: #4b4e53;
}

:root[data-theme='dark'] .warning {
  border-color: rgba(228, 198, 111, 0.28);
  color: #d8c080;
  background: rgba(228, 198, 111, 0.075);
}

@media (max-width: 1023px) {
  .docs-main {
    grid-template-columns: minmax(0, 720px);
    padding: 0 42px;
  }

  .on-this-page {
    display: none;
  }
}

@media (max-width: 767px) {
  .docs-header {
    height: 56px;
    padding: 0 16px;
  }

  .docs-header nav {
    display: none;
  }

  .docs-header > .theme-switch {
    margin-left: auto;
    margin-right: 10px;
  }

  .theme-switch button {
    min-width: 38px;
    padding: 0 7px;
  }

  .docs-menu {
    width: 38px;
    height: 38px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d5d7da;
    border-radius: 10px;
    background: #fff;
  }

  .docs-menu span {
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: #555;
  }

  .docs-layout {
    padding-top: 56px;
    display: block;
  }

  .docs-sidebar {
    z-index: 40;
    top: 56px;
    left: 0;
    width: min(320px, 86vw);
    display: none;
    box-shadow: 30px 0 70px rgba(15, 23, 42, 0.16);
  }

  .docs-sidebar.is-open {
    display: flex;
  }

  .docs-main {
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    display: block;
  }

  .docs-main article {
    padding: 48px 0 80px;
  }

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

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

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

  .lead {
    font-size: 16px !important;
  }

  .quick-grid,
  .state-docs,
  .role-grid,
  .download-grid,
  .environment-links {
    grid-template-columns: 1fr;
  }

  .compat-table > div,
  .policy > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow i {
    width: 1px;
    height: 18px;
    margin-left: 22px;
  }
}
