/* ═══════════════════════════════════════════════════════════
   LonexDocs — API reference (v1.14)
   Two-column endpoint pages: prose + parameters left, request
   samples and response examples pinned right.
   ═══════════════════════════════════════════════════════════ */

.page-api {
  /* Code panels stay dark whatever the site background is, so the
     syntax colours below keep their contrast on light themes too. */
  --ar-code-bg:     #0e1014;
  --ar-code-head:   #14171c;
  --ar-code-border: rgba(255,255,255,0.08);
  --ar-code-text:   #e4e4e7;
  --ar-code-dim:    #8b8b95;

  --ar-get:    #34d399;
  --ar-post:   #60a5fa;
  --ar-put:    #fbbf24;
  --ar-patch:  #a78bfa;
  --ar-delete: #f87171;

  --ar-sidebar-w: 264px;
  --ar-gap: 48px;
}

/* ── Shell ─────────────────────────────────────────────────── */
.ar-shell {
  display: grid;
  grid-template-columns: var(--ar-sidebar-w) minmax(0, 1fr);
  min-height: calc(100vh - var(--nav-h));
  align-items: start;
}
.ar-main { min-width: 0; padding: 0 48px 96px; }

/* ── Sidebar ───────────────────────────────────────────────── */
.ar-sidebar {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.ar-sidebar-top { padding: 20px 16px 12px; border-bottom: 1px solid var(--border); }
.ar-sidebar-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text-faint);
  text-decoration: none; margin-bottom: 14px; transition: color .15s;
}
.ar-sidebar-back:hover { color: var(--accent); }
.ar-filter {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px; height: 34px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-faint);
  transition: border-color .15s, box-shadow .15s;
}
.ar-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.ar-filter input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  font: inherit; font-size: 13px; color: var(--text);
}
.ar-filter input::placeholder { color: var(--text-faint); }

.ar-nav { flex: 1; overflow-y: auto; padding: 12px 10px 32px; }
.ar-nav-group { margin-bottom: 6px; }
.ar-nav-group-name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  list-style: none; cursor: pointer; user-select: none;
  padding: 8px 8px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); transition: color .15s;
}
.ar-nav-group-name::-webkit-details-marker { display: none; }
.ar-nav-group-name:hover, .ar-nav-group[open] > .ar-nav-group-name { color: var(--text); }
.ar-nav-chevron { flex-shrink: 0; transition: transform .2s; }
.ar-nav-group[open] .ar-nav-chevron { transform: rotate(90deg); }
.ar-nav-empty { font-size: 12px; color: var(--text-faint); padding: 4px 10px 8px; }

.ar-nav-ep {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; margin: 1px 0; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-dim); text-decoration: none;
  transition: background .15s, color .15s;
}
.ar-nav-ep:hover { background: var(--bg-card); color: var(--text); }
.ar-nav-ep.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.ar-nav-ep-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-nav-ep .ar-m { width: 40px; flex-shrink: 0; justify-content: center; font-size: 9.5px; padding: 2px 0; }

.ar-nav-anchors { margin: 2px 0 8px 22px; border-left: 1px solid var(--border); }
.ar-nav-anchor {
  display: block; padding: 4px 10px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 12px; color: var(--text-faint); text-decoration: none;
  transition: color .15s, border-color .15s;
}
.ar-nav-anchor:hover { color: var(--text); }
.ar-nav-anchor.active { color: var(--accent); border-left-color: var(--accent); }
.ar-nav-nomatch { font-size: 12px; color: var(--text-faint); padding: 8px; }

.ar-mobile-nav { display: none; }

/* ── Method pill ───────────────────────────────────────────── */
.ar-m {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 5px; line-height: 1.3;
  --c: var(--text-dim);
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.ar-m-get    { --c: var(--ar-get); }
.ar-m-post   { --c: var(--ar-post); }
.ar-m-put    { --c: var(--ar-put); }
.ar-m-patch  { --c: var(--ar-patch); }
.ar-m-delete { --c: var(--ar-delete); }

/* ── Rows ──────────────────────────────────────────────────── */
.ar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ar-gap);
  max-width: 1280px;
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.ar-row:last-of-type { border-bottom: 0; }
.ar-row-full { grid-template-columns: minmax(0, 1fr); }
.ar-row-full .ar-text { max-width: 860px; }
.ar-text { min-width: 0; }
.ar-code-col { min-width: 0; }
.ar-sticky {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: flex; flex-direction: column; gap: 16px;
}

.ar-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-faint); margin-bottom: 10px; }
.ar-crumbs a { color: var(--text-faint); text-decoration: none; }
.ar-crumbs a:hover { color: var(--accent); }
.ar-title { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--text); margin-bottom: 18px; overflow-wrap: anywhere; }
.ar-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.ar-subtitle { font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--text); margin-bottom: 10px; overflow-wrap: anywhere; }
.ar-action-desc { font-size: 15px; line-height: 1.7; color: var(--text-dim); margin-bottom: 8px; }
.ar-desc { font-size: 15px; line-height: 1.7; color: var(--text-dim); margin-top: 18px; }
.ar-desc > :first-child { margin-top: 0; }

/* Fenced code blocks inside Markdown descriptions (helpers.php markdown()) */
.ar-desc .code-block {
  margin: 16px 0; overflow: hidden;
  background: var(--ar-code-bg); border: 1px solid var(--ar-code-border); border-radius: var(--radius);
}
.ar-desc .cb-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px 8px 14px; background: var(--ar-code-head); border-bottom: 1px solid var(--ar-code-border);
}
.ar-desc .cb-lang { font-family: var(--font-mono); font-size: 11.5px; color: var(--ar-code-dim); text-transform: lowercase; }
.ar-desc .cb-copy {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  font-size: 12px; color: var(--ar-code-dim); cursor: pointer; transition: color .15s;
}
.ar-desc .cb-copy:hover { color: var(--ar-code-text); }
.ar-desc .code-block pre {
  margin: 0; padding: 14px 16px; overflow-x: auto; background: none; border: 0; border-radius: 0;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--ar-code-text);
}

/* URL bar */
.ar-url {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ar-url-path {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.ar-url-path::-webkit-scrollbar { display: none; }
.ar-url-param { color: var(--accent); }
.ar-url-copy, .ar-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--text-faint); cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.ar-url-copy:hover { color: var(--text); background: var(--bg-card-hover); border-color: var(--border); }
.ar-check-icon { display: none; }
.is-copied .ar-copy-icon { display: none; }
.is-copied .ar-check-icon { display: block; color: var(--accent); }

.ar-auth {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 10px; font-size: 12.5px; color: var(--text-faint);
}
.ar-auth code { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; overflow-wrap: anywhere; }

/* ── Parameter blocks ──────────────────────────────────────── */
.ar-block { margin-top: 32px; }
.ar-block-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.ar-params { list-style: none; margin: 0; padding: 0; }
.ar-param { padding: 14px 0; border-bottom: 1px solid var(--border); }
.ar-param-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ar-param-name { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ar-param-type { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.ar-param-req { font-size: 11px; font-weight: 600; color: #f59e0b; }
.ar-param-opt { font-size: 11px; color: var(--text-faint); }
.ar-param-desc { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin-top: 6px; }
.ar-param-example { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }
.ar-param-example code { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; overflow-wrap: anywhere; }

.ar-statuses { list-style: none; margin: 0; padding: 0; }
.ar-statuses li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-dim); }

.ar-status {
  display: inline-block; min-width: 42px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px;
  --c: var(--text-dim);
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
}
.ar-status-2xx { --c: var(--ar-get); }
.ar-status-3xx { --c: var(--ar-post); }
.ar-status-4xx { --c: var(--ar-put); }
.ar-status-5xx { --c: var(--ar-delete); }

/* ── Code panels ───────────────────────────────────────────── */
.ar-panel {
  background: var(--ar-code-bg);
  border: 1px solid var(--ar-code-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.25);
}
.ar-panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 0 6px 0 14px; min-height: 42px;
  background: var(--ar-code-head);
  border-bottom: 1px solid var(--ar-code-border);
}
.ar-panel-title { font-size: 12px; font-weight: 600; color: var(--ar-code-dim); flex-shrink: 0; }
.ar-tabs {
  flex: 1; min-width: 0; display: flex; gap: 2px; align-self: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.ar-tabs::-webkit-scrollbar { display: none; }
.ar-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 10px; background: none; border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: inherit; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  color: var(--ar-code-dim); cursor: pointer; transition: color .15s, border-color .15s;
}
.ar-tab:hover { color: var(--ar-code-text); }
.ar-tab[aria-selected="true"] { color: var(--ar-code-text); border-bottom-color: var(--accent); }
.ar-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.ar-copy { color: var(--ar-code-dim); }
.ar-copy:hover { color: var(--ar-code-text); background: rgba(255,255,255,.06); }

.ar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ar-code-dim)); }
.ar-dot-2xx { --c: var(--ar-get); }
.ar-dot-3xx { --c: var(--ar-post); }
.ar-dot-4xx { --c: var(--ar-put); }
.ar-dot-5xx { --c: var(--ar-delete); }

.ar-pane-caption { padding: 10px 16px 0; font-size: 12px; color: var(--ar-code-dim); }
.ar-pane-empty { padding: 18px 16px; font-size: 13px; color: var(--ar-code-dim); font-style: italic; }
.ar-code {
  margin: 0; padding: 14px 16px 16px;
  max-height: min(460px, 60vh); overflow: auto;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  color: var(--ar-code-text); tab-size: 2;
  background: transparent; border: 0; border-radius: 0;
}
.ar-code code { font: inherit; color: inherit; background: none; padding: 0; white-space: pre; }
.ar-code::-webkit-scrollbar { width: 8px; height: 8px; }
.ar-code::-webkit-scrollbar-track { background: transparent; }
.ar-code::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }

/* Syntax tokens (assets/js/api.js) */
.tk-key  { color: #7dd3fc; }
.tk-str  { color: #86efac; }
.tk-num  { color: #fdba74; }
.tk-lit  { color: #c4b5fd; }
.tk-kw   { color: #f9a8d4; }
.tk-com  { color: #6b7280; font-style: italic; }
.tk-flag { color: #7dd3fc; }
.tk-var  { color: #fca5a5; }

/* ── Errors ────────────────────────────────────────────────── */
.ar-errors { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.ar-errors-head, .ar-error {
  display: grid; grid-template-columns: 76px minmax(120px, 200px) minmax(0, 1fr);
  gap: 16px; padding: 12px 16px; align-items: start;
}
.ar-errors-head {
  background: var(--bg-card); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint);
}
.ar-error { border-top: 1px solid var(--border); font-size: 14px; }
.ar-error-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; padding-top: 2px; }
.ar-error-msg { color: var(--text); font-weight: 500; }
.ar-error-desc { color: var(--text-dim); font-size: 13.5px; margin-top: 3px; line-height: 1.6; }

/* ── Pager ─────────────────────────────────────────────────── */
.ar-pager { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; max-width: 1280px; padding-top: 32px; }
.ar-pager-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, background .15s;
}
.ar-pager-link:hover { border-color: var(--accent); background: var(--bg-card); }
.ar-pager-next { text-align: right; }
.ar-pager-dir { font-size: 12px; color: var(--text-faint); }
.ar-pager-title { font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

/* ── Badges & deprecation ──────────────────────────────────── */
.ar-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.ar-badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; line-height: 1.4;
  padding: 2px 8px; border-radius: 99px;
  color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border);
}
.ar-badge-deprecated { color: var(--ar-delete); background: color-mix(in srgb, var(--ar-delete) 10%, transparent); border-color: color-mix(in srgb, var(--ar-delete) 30%, transparent); }
.ar-deprecated {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 16px; padding: 12px 14px;
  font-size: 14px; line-height: 1.6; color: var(--text);
  background: color-mix(in srgb, var(--ar-put) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ar-put) 30%, transparent);
  border-radius: var(--radius);
}
.ar-deprecated svg { flex-shrink: 0; margin-top: 3px; color: var(--ar-put); }
.ar-nav-ep.is-deprecated .ar-nav-ep-title { text-decoration: line-through; text-decoration-color: var(--text-faint); color: var(--text-faint); }
.ar-nav-overview { padding-left: 8px; }
.ar-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Markdown in short descriptions ────────────────────────── */
.ar-md code { font-family: var(--font-mono); font-size: .88em; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.ar-md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.ar-md strong { color: var(--text); font-weight: 600; }
.ar-md p { margin: 0 0 8px; }
.ar-md p:last-child { margin-bottom: 0; }
.ar-md ul, .ar-md ol { margin: 6px 0; padding-left: 20px; }
div.ar-action-desc { margin-bottom: 8px; }

/* ── Nested (child) parameters ─────────────────────────────── */
.ar-children { margin-top: 10px; }
.ar-children > summary {
  display: inline-flex; align-items: center; gap: 6px;
  list-style: none; cursor: pointer; user-select: none;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px;
  font-size: 12px; font-weight: 500; color: var(--text-dim);
  transition: color .15s, border-color .15s;
}
.ar-children > summary::-webkit-details-marker { display: none; }
.ar-children > summary:hover { color: var(--text); border-color: var(--border-light); }
.ar-children > summary svg { transition: transform .2s; }
.ar-children[open] > summary svg { transform: rotate(45deg); }
.ar-children-hide, .ar-children[open] .ar-children-show { display: none; }
.ar-children[open] .ar-children-hide { display: inline; }
.ar-children[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.ar-params-child {
  border: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 0 14px;
}
.ar-params-child > .ar-param:last-child { border-bottom: 0; }

/* ── Group overview ────────────────────────────────────────── */
.ar-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 24px 0 0; }
.ar-fact { padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.ar-fact dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.ar-fact dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.ar-fact code { font-family: var(--font-mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; flex: 1; min-width: 0; }
.ar-muted { font-size: 14px; color: var(--text-faint); padding: 14px 0; }
.ar-ep-list { list-style: none; margin: 0; padding: 0; }
.ar-ep-list li { border-bottom: 1px solid var(--border); }
.ar-ep-link {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 10px; margin: 0 -10px; border-radius: var(--radius-sm);
  text-decoration: none; transition: background .15s;
}
.ar-ep-link:hover { background: var(--bg-card); }
.ar-ep-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ar-ep-title { font-size: 15px; font-weight: 600; color: var(--text); }
.ar-ep-link:hover .ar-ep-title { color: var(--accent); }
.ar-ep-link.is-deprecated .ar-ep-title { text-decoration: line-through; text-decoration-color: var(--text-faint); color: var(--text-dim); }
.ar-ep-path { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); overflow-wrap: anywhere; }
.ar-ep-summary { font-size: 13.5px; color: var(--text-faint); line-height: 1.55; }

.ar-changelog { list-style: none; margin: 16px 0 0; padding: 0; border-left: 2px solid var(--border); }
.ar-change { position: relative; padding: 0 0 28px 22px; }
.ar-change::before {
  content: ''; position: absolute; left: -6px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.ar-change:last-child { padding-bottom: 0; }
.ar-change-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ar-change-version { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); }
.ar-change-head time { font-size: 12.5px; color: var(--text-faint); }
.ar-change .ar-desc { margin-top: 8px; font-size: 14px; }

/* ── Admin preview bar ─────────────────────────────────────── */
.ar-preview-bar {
  position: relative; z-index: 35;
  padding: 9px 16px; text-align: center;
  font-size: 13px; color: #1a1300; background: #fbbf24;
}
.ar-preview-bar strong { font-weight: 700; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .ar-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ar-row-full .ar-text, .ar-text { max-width: 860px; }
  .ar-code-col { max-width: 860px; }
  .ar-sticky { position: static; }
  .ar-main { padding: 0 36px 80px; }
}

@media (max-width: 860px) {
  .ar-shell { grid-template-columns: minmax(0, 1fr); }
  .ar-main { padding: 0 16px 64px; }
  .ar-row { padding: 28px 0 36px; }

  .ar-mobile-nav {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: var(--nav-h); z-index: 30;
    width: 100%; padding: 12px 16px;
    background: var(--bg); border: 0; border-bottom: 1px solid var(--border);
    font: inherit; font-size: 13px; font-weight: 500; color: var(--text-dim);
    text-align: left; cursor: pointer;
  }
  .ar-mobile-nav span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .ar-sidebar {
    position: fixed; z-index: 40; left: 0; top: var(--nav-h);
    width: min(320px, 86vw); height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0);
  }
  .ar-shell.nav-open .ar-sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }

  .ar-errors-head { display: none; }
  .ar-error { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
  .ar-error > div { grid-column: 1 / -1; }

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

@media (prefers-reduced-motion: reduce) {
  .ar-sidebar, .ar-nav-chevron { transition: none; }
}
