/*
Layout breakpoints:
- 1100px and up: sidebar + main + right TOC (220px / flexible / 190px).
- 861px to 1099px: sidebar + main; right TOC hidden.
- 700px to 860px: sidebar is a drawer; overview remains tabular.
- 699px and below: overview table becomes stacked cards.
*/

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #fbfbfd;
  --text: #1d1d1f;
  --text-dim: #5f6368;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #006bd6;
  --accent-hover: #0057b8;
  --focus: rgba(0, 107, 214, 0.32);
  --shadow-soft: 0 10px 32px rgba(15, 23, 42, 0.08);
  --status-supported-bg: #dff7e7;
  --status-supported-text: #0f5f2b;
  --status-partial-bg: #fff1cc;
  --status-partial-text: #7a4a00;
  --status-testing-bg: #efe8ff;
  --status-testing-text: #574098;
  --status-paused-bg: #ffe0e4;
  --status-paused-text: #9f1230;
  --code-bg: #f0f3f7;
  --code-text: #132033;
  --topbar-height: 68px;
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --surface: #1f232b;
  --surface-raised: #252a33;
  --text: #f5f7fa;
  --text-dim: #a7adb8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #6bb6ff;
  --accent-hover: #91c9ff;
  --focus: rgba(107, 182, 255, 0.34);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.32);
  --status-supported-bg: #113d27;
  --status-supported-text: #8ee6a6;
  --status-partial-bg: #442f0b;
  --status-partial-text: #f4ca70;
  --status-testing-bg: #342653;
  --status-testing-text: #cab8ff;
  --status-paused-bg: #4a1220;
  --status-paused-text: #ff9aad;
  --code-bg: #141922;
  --code-text: #edf4ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --bg-alt: #171a21;
    --surface: #1f232b;
    --surface-raised: #252a33;
    --text: #f5f7fa;
    --text-dim: #a7adb8;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #6bb6ff;
    --accent-hover: #91c9ff;
    --focus: rgba(107, 182, 255, 0.34);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.32);
    --status-supported-bg: #113d27;
    --status-supported-text: #8ee6a6;
    --status-partial-bg: #442f0b;
    --status-partial-text: #f4ca70;
    --status-testing-bg: #342653;
    --status-testing-text: #cab8ff;
    --status-paused-bg: #4a1220;
    --status-paused-text: #ff9aad;
    --code-bg: #141922;
    --code-text: #edf4ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(1440px, calc(100% - 32px));
  min-height: var(--topbar-height);
  margin: 0 auto;
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

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

.icon-button.menu-button {
  display: none;
}

.icon-button,
.search-trigger,
.button,
.filter-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-weight: 800;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--text-dim);
  text-align: left;
}

kbd {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: auto;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text-dim);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.button.secondary {
  color: var(--accent);
}

.compact-button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px;
}

.account-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.account-name {
  max-width: 180px;
  overflow-wrap: anywhere;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 800;
}

.account-error {
  color: var(--status-paused-text);
  font-size: 13px;
  font-weight: 800;
}

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: start;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.docs-shell--single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.docs-shell--overview {
  grid-template-columns: 220px minmax(0, 1fr);
}

.docs-shell--overview .docs-toc {
  display: none;
}

.docs-main {
  min-width: 0;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  max-height: calc(100vh - var(--topbar-height) - 36px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.docs-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 8px;
}

.docs-toc {
  color: var(--text-dim);
  font-size: 14px;
}

.sidebar-close {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
}

.text-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.sidebar-tools {
  flex: 0 0 auto;
  background: var(--bg);
}

.sidebar-filter {
  margin-bottom: 18px;
}

.sidebar-nav {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  gap: 6px;
}

.sidebar-link,
.sidebar-section-link,
.sidebar-site-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.sidebar-link:hover,
.sidebar-section-link:hover,
.sidebar-site-link:hover,
.sidebar-link[aria-current="page"],
.sidebar-section-link[aria-current="page"],
.sidebar-site-link[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.sidebar-section {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}

.sidebar-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 4px;
}

.sidebar-section-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 900;
}

.sidebar-site-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 10px;
  list-style: none;
}

.sidebar-site-link {
  justify-content: space-between;
  font-weight: 650;
}

.sidebar-empty {
  padding: 8px 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.status-dot {
  display: inline-flex;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.status-dot-partial {
  background: var(--status-partial-text);
}

.status-dot-testing {
  background: var(--status-testing-text);
}

.status-dot-paused {
  background: var(--status-paused-text);
}

.doc-page,
.overview-page {
  min-width: 0;
}

.doc-page {
  max-width: 820px;
}

.overview-page {
  max-width: none;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 6px;
  color: var(--text-dim);
  content: "/";
}

.page-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.15;
}

.lead-text {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 17px;
}

.data-date {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 750;
}

.site-meta {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.site-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.status-supported {
  background: var(--status-supported-bg);
  color: var(--status-supported-text);
}

.status-partial {
  background: var(--status-partial-bg);
  color: var(--status-partial-text);
}

.status-testing {
  background: var(--status-testing-bg);
  color: var(--status-testing-text);
}

.status-paused {
  background: var(--status-paused-bg);
  color: var(--status-paused-text);
}

.status-neutral {
  background: var(--bg-alt);
  color: var(--text-dim);
}

.verified-date,
.muted {
  color: var(--text-dim);
}

.status-note {
  margin: 0;
  color: var(--text-dim);
}

.history-fold {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

.history-list {
  margin: 10px 0 0;
  padding-left: 1.35em;
}

.doc-content {
  margin-top: 34px;
  font-size: 16.5px;
  line-height: 1.85;
}

.doc-content h2,
.doc-content h3,
.doc-content h4 {
  position: relative;
  scroll-margin-top: calc(var(--topbar-height) + 24px);
  color: var(--text);
  line-height: 1.35;
}

.doc-content h2 {
  margin: 54px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.65rem;
}

.page-type-site .doc-content h2 .heading-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.96em;
}

.doc-content h3 {
  margin: 34px 0 10px;
  font-size: 1.2rem;
}

.doc-content h4 {
  margin: 24px 0 8px;
  color: var(--text-dim);
  font-size: 1rem;
}

.heading-anchor {
  margin-left: 8px;
  opacity: 0;
  color: var(--text-dim);
  font-size: 0.72em;
}

.doc-content h2:hover .heading-anchor,
.doc-content h3:hover .heading-anchor,
.doc-content h4:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.doc-content p,
.doc-content ul,
.doc-content ol {
  margin: 0 0 16px;
}

.doc-content li + li {
  margin-top: 6px;
}

code,
.mode-chip {
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

code {
  padding: 0.12em 0.34em;
}

.code-block {
  position: relative;
  margin: 18px 0;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-text);
}

pre code {
  display: block;
  padding: 0;
  background: transparent;
  white-space: pre;
}

.copy-button {
  position: absolute;
  right: 8px;
  top: 8px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.copy-button.is-copied {
  color: var(--status-supported-text);
}

.table-wrap {
  overflow: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.overview-table-wrap {
  overflow: visible;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 850;
}

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

.admonition {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-raised);
}

.admonition strong {
  color: var(--text);
}

.admonition--tip {
  border-left-color: var(--status-supported-text);
}

.admonition--warning {
  border-left-color: var(--status-partial-text);
}

.no-modes {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-dim);
}

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

.prev-next-card a {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
}

.prev-next-card--next a {
  text-align: right;
}

.prev-next-label {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
}

.page-toc-nav {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.toc-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.page-toc-nav ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-item a {
  display: block;
  padding: 4px 0;
  color: var(--text-dim);
}

.toc-item--child {
  padding-left: 12px;
}

.toc-item a[aria-current="true"] {
  color: var(--accent);
  font-weight: 850;
}

.state-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.state-panel--plain {
  margin-top: 40px;
}

.state-panel p {
  margin: 0;
}

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

.small {
  font-size: 13px;
}

.overview-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.3fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 7px 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.result-count {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.overview-results {
  margin-top: 18px;
}

.overview-table {
  min-width: 0;
  table-layout: fixed;
}

.overview-table thead th {
  position: sticky;
  top: var(--topbar-height);
  z-index: 1;
  background: var(--surface);
}

.overview-table th:first-child,
.overview-table td:first-child {
  width: 12rem;
  min-width: 12rem;
  overflow-wrap: anywhere;
}

.overview-table th:nth-child(2),
.overview-table td:nth-child(2) {
  width: 6.8rem;
}

.overview-table th:nth-child(4),
.overview-table td:nth-child(4) {
  width: 7.2rem;
  white-space: nowrap;
}

.site-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.mode-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mode-chip {
  display: inline-flex;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 3px 7px;
}

.empty-value {
  color: var(--text-dim);
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding: 9vh 16px 24px;
  background: rgba(15, 17, 21, 0.45);
}

.search-dialog {
  width: min(720px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.search-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.search-close {
  width: auto;
  min-width: 4.5rem;
  padding: 0 12px;
  white-space: nowrap;
}

.search-results {
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 10px;
}

.search-group {
  display: grid;
  gap: 4px;
}

.search-group + .search-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.search-group-heading {
  margin: 0 0 4px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 850;
}

.search-option {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
}

.search-option[aria-selected="true"],
.search-option:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}

.search-option-label {
  font-weight: 850;
}

.search-option-context,
.empty-search {
  color: var(--text-dim);
  font-size: 13px;
}

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

@media (max-width: 1099px) {
  .docs-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }

  .overview-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-height: 62px;
  }

  .site-header-inner {
    grid-template-columns: auto auto minmax(0, 1fr);
    width: min(100% - 24px, 1440px);
  }

  .icon-button.menu-button {
    display: inline-flex;
  }

  .brand {
    font-size: 17px;
  }

  .header-actions {
    gap: 8px;
  }

  .search-trigger {
    min-width: 44px;
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .account-name {
    display: none;
  }

  .docs-shell,
  .docs-shell--single {
    display: block;
    width: min(100% - 24px, 820px);
    padding-top: 22px;
  }

  .docs-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 110;
    width: min(86vw, 320px);
    height: 100vh;
    max-height: none;
    padding: 18px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .sidebar-tools {
    background: var(--surface);
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-flex;
    width: auto;
    min-width: 72px;
    margin-bottom: 14px;
    padding: 0 10px;
  }

  .drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 17, 21, 0.48);
  }

  .result-count {
    white-space: normal;
  }
}

@media (max-width: 699px) {
  .overview-table-wrap {
    overflow: visible;
    border: 0;
  }

  .overview-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
  }

  .overview-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .overview-table tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .overview-table td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 10px;
    width: auto;
    padding: 0;
    border: 0;
  }

  .overview-table th:first-child,
  .overview-table td:first-child {
    width: auto;
    min-width: 0;
  }

  .overview-table td::before {
    color: var(--text-dim);
    content: attr(data-label);
    font-size: 13px;
    font-weight: 850;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15.5px;
  }

  .site-header-inner {
    gap: 8px;
  }

  .header-actions {
    min-width: 0;
  }

  .account-area .button {
    max-width: 112px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .page-title {
    font-size: 2rem;
  }

  .site-meta,
  .overview-controls,
  .state-panel {
    padding: 14px;
  }

  .doc-content {
    font-size: 16px;
  }

  table {
    min-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
