/* WealthReader docs — developer-portal layout with WR brand tokens */

:root {
  --wr-navy: #0f3554;
  --wr-red: #b8292f;
  --wr-ink: #33475f;
  --wr-muted: #6b7c92;
  --wr-faint: #8da0b5;
  --wr-accent: #2563eb;
  --wr-accent-hover: #1d4ed8;
  --wr-accent-soft: #eef4ff;
  --wr-border: #dce5ef;
  --wr-border-soft: #e8edf3;
  --wr-sidebar-bg: #fbfcfe;
  --wr-code-bg: #f7f9fc;
  --wr-warning-bg: #fff9e8;
  --wr-warning-border: #f1d99a;
  --wr-header-h: 64px;
  --wr-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--wr-header-h) + 24px); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--wr-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

.wr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--wr-header-h);
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--wr-border);
}

.wr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wr-brand-logo { display: flex; align-items: center; }

.wr-brand-logo img { display: block; }

.wr-brand-sep {
  width: 1px;
  height: 22px;
  background: var(--wr-border);
}

.wr-brand-dev {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--wr-navy);
  white-space: nowrap;
}

.wr-product {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wr-navy);
  text-decoration: none;
  white-space: nowrap;
}

.wr-product:hover { border-color: #c5d3e3; background: var(--wr-sidebar-bg); }

.wr-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wr-search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 340px;
  height: 38px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--wr-muted);
  background: #fff;
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  cursor: pointer;
}

.wr-search-trigger:hover { border-color: #c5d3e3; }

.wr-search-trigger svg { color: var(--wr-faint); flex: none; }

.wr-search-label {
  margin-right: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wr-kbd { display: flex; gap: 3px; }

.wr-search-trigger kbd,
.wr-search-box kbd {
  font-family: var(--wr-mono);
  font-size: 11px;
  color: var(--wr-muted);
  background: var(--wr-code-bg);
  border: 1px solid var(--wr-border);
  border-radius: 4px;
  padding: 1px 5px;
}

.wr-apiref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wr-navy);
  text-decoration: none;
  white-space: nowrap;
}

.wr-apiref:hover { border-color: #c5d3e3; background: var(--wr-sidebar-bg); }

.wr-apiref svg { color: var(--wr-muted); flex: none; }

.wr-lang { position: relative; }

.wr-lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wr-navy);
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  user-select: none;
}

.wr-lang summary svg { color: var(--wr-muted); }

.wr-lang summary::-webkit-details-marker { display: none; }

.wr-lang summary:hover { border-color: #c5d3e3; }

.wr-lang[open] summary { background: var(--wr-sidebar-bg); }

.wr-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 190px;
  max-height: 60vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--wr-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 53, 84, 0.12);
  padding: 6px;
}

.wr-lang-menu a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--wr-ink);
  text-decoration: none;
  white-space: nowrap;
}

.wr-lang-menu a:hover { background: #f1f5fa; }

.wr-lang-menu a.wr-lang-current { color: var(--wr-accent); font-weight: 600; }

.wr-burger { display: none; }

/* ---------- Layout ---------- */

.wr-layout {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr) 264px;
}

/* ---------- Sidebar ---------- */

.wr-sidebar {
  position: sticky;
  top: var(--wr-header-h);
  height: calc(100vh - var(--wr-header-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 20px;
  background: var(--wr-sidebar-bg);
  border-right: 1px solid var(--wr-border-soft);
}

.wr-nav { display: flex; flex-direction: column; }

.wr-nav-group { margin-bottom: 26px; }

.wr-nav-group:last-child { margin-bottom: 0; }

.wr-nav-group-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wr-muted);
  padding: 0 10px;
  margin-bottom: 8px;
}

.wr-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #44576a;
  text-decoration: none;
  line-height: 1.4;
}

.wr-nav-item:hover { background: #f1f5fa; color: var(--wr-navy); }

.wr-nav-item.wr-active {
  background: var(--wr-accent-soft);
  color: var(--wr-navy);
  font-weight: 600;
}

.wr-nav-item.wr-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 2px;
  background: var(--wr-accent);
}

.wr-nav-icon { display: flex; flex: none; color: var(--wr-faint); }

.wr-nav-item:hover .wr-nav-icon,
.wr-nav-item.wr-active .wr-nav-icon { color: var(--wr-navy); }

.wr-sidebar-bottom { margin-top: auto; padding-top: 28px; }

.wr-apiref-side { display: none; }

.wr-help {
  background: #fff;
  border: 1px solid var(--wr-border);
  border-radius: 10px;
  padding: 16px;
}

.wr-help-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--wr-navy);
  margin-bottom: 4px;
}

.wr-help-text {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--wr-muted);
}

.wr-help-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wr-navy);
  text-decoration: none;
}

.wr-help-cta:hover { border-color: #c5d3e3; background: var(--wr-sidebar-bg); }

.wr-help-cta svg { color: var(--wr-muted); }

/* ---------- Article ---------- */

.wr-content { padding: 34px 56px 80px; }

.wr-article { max-width: 43.5rem; margin: 0 auto; }

.wr-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--wr-muted);
  margin-bottom: 28px;
}

.wr-article .wr-breadcrumb a {
  color: var(--wr-muted);
  text-decoration: none;
}

.wr-article .wr-breadcrumb a:hover { color: var(--wr-accent); text-decoration: underline; }

.wr-crumb-sep { color: #c1cdda; }

.wr-crumb-current { color: #4a5f79; }

.wr-hero { margin-bottom: 26px; }

.wr-overline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wr-accent);
}

.wr-overline-sep { color: var(--wr-faint); }

.wr-article h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wr-navy);
  letter-spacing: -0.015em;
}

.wr-subtitle {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--wr-muted);
}

.wr-article h2 {
  margin: 2.2em 0 0.55em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wr-navy);
  letter-spacing: -0.01em;
}

.wr-article h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.19rem;
  font-weight: 700;
  color: var(--wr-navy);
}

.wr-anchor {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 10px;
  color: var(--wr-faint);
  opacity: 0.35;
  transition: opacity 0.15s, color 0.15s;
}

.wr-article h2:hover .wr-anchor,
.wr-article h3:hover .wr-anchor,
.wr-anchor:focus-visible { opacity: 1; }

.wr-anchor:hover { color: var(--wr-accent); }

.wr-article p { margin: 0.85em 0; }

.wr-article hr {
  border: none;
  border-top: 1px solid var(--wr-border);
  margin: 2.5rem 0;
}

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

.wr-article a:hover,
.wr-article a:focus-visible {
  color: var(--wr-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wr-article a.wr-ext::after {
  content: "\2197";
  font-size: 0.72em;
  margin-left: 3px;
  display: inline-block;
}

.wr-article ul, .wr-article ol { padding-left: 1.5em; margin: 0.9em 0; }

.wr-article li { margin: 0.4em 0; }

.wr-article li p { margin: 0.55em 0; }

/* Inline code */
.wr-article code {
  font-family: var(--wr-mono);
  font-size: 0.84em;
  background: #eef2f8;
  border-radius: 4px;
  padding: 0.14em 0.38em;
  color: #1e3a5f;
}

/* ---------- Code blocks ---------- */

/* Fallback styling before JS wraps the block */
.wr-article pre {
  background: var(--wr-code-bg);
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 1.5em 0;
  overflow-x: auto;
  line-height: 1.7;
}

.wr-article pre code {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: #2b3a44;
}

.wr-article pre code.hljs { background: transparent; padding: 0; }

.wr-code {
  margin: 1.5em 0;
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  background: var(--wr-code-bg);
  overflow: hidden;
}

.wr-code-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 0 10px;
}

.wr-code-lang {
  font-family: var(--wr-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wr-muted);
  background: #fff;
  border: 1px solid var(--wr-border);
  border-radius: 5px;
  padding: 2px 7px;
}

.wr-code-lang:empty { visibility: hidden; }

.wr-code-body { display: flex; align-items: stretch; }

.wr-code-gutter {
  flex: none;
  padding: 12px 10px 14px 6px;
  min-width: 38px;
  text-align: right;
  user-select: none;
  font-family: var(--wr-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--wr-faint);
  border-right: 1px solid var(--wr-border-soft);
  white-space: pre;
}

.wr-code .wr-code-body pre {
  flex: 1;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 12px 16px 14px;
}

.wr-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wr-muted);
  background: #fff;
  border: 1px solid var(--wr-border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}

.wr-copy:hover { color: var(--wr-navy); border-color: #c5d3e3; }

.wr-copy svg { flex: none; }

.wr-copy.wr-copied { color: var(--wr-accent); border-color: var(--wr-accent); }

/* ---------- Interactive checklist card ---------- */

.wr-checklist {
  border: 1px solid var(--wr-border);
  border-radius: 9px;
  background: #fff;
  padding: 0 20px;
  margin: 1.4em 0 2.4em;
}

.wr-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0 12px;
  border-bottom: 1px solid var(--wr-border-soft);
}

.wr-article .wr-checklist-head h2 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.wr-checklist-count {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wr-accent);
  background: var(--wr-accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.wr-checklist-items {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px;
}

.wr-article .wr-checklist-items li.wr-check-row { margin: 0; }

.wr-check-row { border-bottom: 1px solid var(--wr-border-soft); }

.wr-check-row:last-child { border-bottom: none; }

.wr-check-row label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 7px 2px;
  cursor: pointer;
}

.wr-check-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wr-check-box {
  position: relative;
  flex: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #b9c7d6;
  border-radius: 4px;
  background: #fff;
  transition: background 0.12s, border-color 0.12s;
}

.wr-check-row label:hover .wr-check-box { border-color: var(--wr-accent); }

.wr-check-input:focus-visible + .wr-check-box {
  outline: 2px solid var(--wr-accent);
  outline-offset: 2px;
}

.wr-check-input:checked + .wr-check-box {
  background: var(--wr-accent);
  border-color: var(--wr-accent);
}

.wr-check-input:checked + .wr-check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wr-check-text { font-size: 0.9375rem; line-height: 1.5; }

.wr-check-input:checked ~ .wr-check-text { color: var(--wr-muted); }

/* ---------- Legacy checklists (tables, non-card task lists) ---------- */

li.wr-task { list-style: none; }

.wr-article ul li.wr-task { margin-left: -1.5em; padding-left: 0; }

li.wr-task ul { padding-left: 2.1em; }

.wr-checkbox {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 1.5px solid #b9c7d6;
  border-radius: 4px;
  background: #fff;
  vertical-align: -3px;
  margin-right: 10px;
  position: relative;
  flex: none;
}

.wr-checkbox-on {
  background: var(--wr-accent);
  border-color: var(--wr-accent);
}

.wr-checkbox-on::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Tables ---------- */

.wr-table-wrap {
  overflow-x: auto;
  margin: 1.4em 0;
  border: 1px solid var(--wr-border);
  border-radius: 8px;
}

.wr-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wr-article th {
  background: var(--wr-code-bg);
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--wr-navy);
  padding: 10px 16px;
  border-bottom: 1px solid var(--wr-border);
}

.wr-article td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--wr-border-soft);
  vertical-align: top;
}

.wr-article tr:last-child td { border-bottom: none; }

.wr-article td p:first-child { margin-top: 0; }

.wr-article td p:last-child { margin-bottom: 0; }

.wr-article td ul { margin: 0.6em 0; padding-left: 1.3em; }

.wr-cell-check .wr-checkbox { margin-right: 0; }

/* ---------- Hints / callouts ---------- */

.wr-hint {
  display: flex;
  gap: 12px;
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  background: var(--wr-sidebar-bg);
  padding: 13px 16px;
  margin: 1.1em 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.wr-hint + .wr-hint { margin-top: 8px; }

.wr-hint-icon { color: var(--wr-navy); flex: none; padding-top: 2px; display: flex; }

.wr-hint-body { min-width: 0; }

.wr-hint-body p { margin: 0 0 0.6em; }

.wr-hint-body p:last-child { margin-bottom: 0; }

.wr-hint-info {
  background: var(--wr-accent-soft);
  border-color: #d6e4ff;
}

.wr-hint-info .wr-hint-icon { color: var(--wr-accent); }

.wr-hint-warning {
  background: var(--wr-warning-bg);
  border-color: var(--wr-warning-border);
}

.wr-hint-warning .wr-hint-icon { color: #d97706; }

.wr-hint-success {
  background: #f2f7ff;
  border-color: #d6e4ff;
}

.wr-hint-success .wr-hint-icon { color: var(--wr-accent); }

.wr-hint-danger {
  background: #fdf0f0;
  border-color: #f3c8ca;
}

.wr-hint-danger .wr-hint-icon { color: var(--wr-red); }

/* ---------- Mermaid ---------- */

.wr-mermaid { margin: 2rem 0; overflow-x: auto; }

.wr-mermaid pre.mermaid {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}

/* ---------- Prev / next ---------- */

.wr-pagenav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.wr-pagecard {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--wr-border);
  border-radius: 8px;
  padding: 14px 20px;
  text-decoration: none !important;
  transition: border-color 0.15s;
}

.wr-pagecard:hover { border-color: var(--wr-accent); }

.wr-pagecard.wr-next { justify-content: flex-end; text-align: right; }

.wr-pagecard-copy { display: flex; flex-direction: column; min-width: 0; }

.wr-pagecard-label { font-size: 0.78rem; color: var(--wr-muted); }

.wr-pagecard-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--wr-navy);
  line-height: 1.4;
}

.wr-pagecard:hover .wr-pagecard-title { color: var(--wr-accent); }

.wr-pagecard-chevron { font-size: 1.5rem; color: var(--wr-faint); line-height: 1; }

.wr-updated {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--wr-faint);
}

/* ---------- Right rail (TOC) ---------- */

.wr-toc {
  position: sticky;
  top: var(--wr-header-h);
  max-height: calc(100vh - var(--wr-header-h));
  overflow-y: auto;
  padding: 40px 32px 24px 0;
  font-size: 0.845rem;
}

.wr-toc-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wr-muted);
  margin-bottom: 12px;
}

.wr-toc-list { border-left: 2px solid var(--wr-border-soft); }

.wr-toc-list a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--wr-muted);
  text-decoration: none;
  line-height: 1.5;
}

.wr-toc-list a:hover { color: var(--wr-navy); }

.wr-toc-list a.wr-toc-active {
  color: var(--wr-accent);
  font-weight: 600;
  border-left-color: var(--wr-accent);
}

.wr-toc-list a.wr-toc-sub { padding-left: 26px; }

/* ---------- Search modal ---------- */

.wr-search-modal { position: fixed; inset: 0; z-index: 100; }

.wr-search-modal[hidden] { display: none; }

.wr-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 33, 50, 0.45);
}

.wr-search-box {
  position: relative;
  margin: 12vh auto 0;
  width: min(580px, calc(100% - 32px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(10, 25, 40, 0.35);
  overflow: hidden;
}

.wr-search-box input {
  width: 100%;
  padding: 17px 20px;
  font: inherit;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid var(--wr-border-soft);
  outline: none;
}

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

.wr-search-results:empty { padding: 0; }

.wr-hit {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--wr-ink);
}

.wr-hit:hover, .wr-hit.wr-hit-selected { background: #f1f5fa; }

.wr-hit-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wr-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wr-hit-icon { display: inline-flex; flex: none; color: var(--wr-muted); }

.wr-hit-heading { color: var(--wr-muted); font-weight: 500; }

.wr-hit-excerpt {
  font-size: 0.8rem;
  color: var(--wr-muted);
  line-height: 1.5;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wr-hit mark {
  background: rgba(37, 99, 235, 0.16);
  color: inherit;
  border-radius: 2px;
}

.wr-search-empty {
  padding: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--wr-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 1279.98px) {
  .wr-layout { grid-template-columns: 272px minmax(0, 1fr); }
  .wr-toc { display: none; }
  .wr-search-trigger { width: 260px; }
}

@media (max-width: 899.98px) {
  .wr-layout { display: block; }

  .wr-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--wr-navy);
    cursor: pointer;
  }

  .wr-brand-sep, .wr-brand-dev, .wr-product { display: none; }

  .wr-header .wr-apiref { display: none; }

  .wr-search-trigger { width: 40px; justify-content: center; padding: 0; gap: 0; }

  .wr-search-label, .wr-kbd { display: none; }

  .wr-sidebar {
    position: fixed;
    top: var(--wr-header-h);
    left: 0;
    bottom: 0;
    width: 300px;
    height: auto;
    background: #fff;
    box-shadow: 0 16px 48px rgba(10, 25, 40, 0.18);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    z-index: 60;
  }

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

  .wr-apiref-side {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #fff;
  }

  .wr-content { padding: 28px 20px 56px; }

  .wr-pagenav { grid-template-columns: 1fr; }
}

@media (max-width: 639.98px) {
  .wr-article h1 { font-size: 2rem; line-height: 1.25; }

  .wr-breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .wr-breadcrumb::-webkit-scrollbar { display: none; }

  .wr-checklist { padding: 0 14px; }

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

  .wr-copy span { display: none; }

  .wr-code-gutter { display: none; }
}
