/* ==========================================================================
   Wicker — documentation layout
   Only what is new to the docs page. Tokens live in base.css; nav, footer,
   code blocks, badges, buttons and cursor live in site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page frame
   -------------------------------------------------------------------------- */

.docs {
  background: var(--navy);
  color: var(--on-navy);
  padding-top: var(--nav-h);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.docs-hero {
  border-bottom: 1px solid var(--line-dark-soft);
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: clip;
}

.docs-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(1100px, 120%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 50%, rgba(217, 124, 80, 0.07), transparent 70%);
  pointer-events: none;
}

.docs-hero__inner {
  position: relative;
  max-width: 960px;
}

.docs-hero__title {
  margin-top: 1.25rem;
}

.docs-hero .lead {
  margin-top: 1.25rem;
  max-width: 60ch;
}

.docs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

/* Quick-link cards */
.qlinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  position: relative;
}

.qlink {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.45s var(--ease-out),
              background-color 0.45s var(--ease-out),
              transform 0.5s var(--ease-out-expo);
}

.qlink:hover {
  border-color: rgba(217, 124, 80, 0.45);
  background: rgba(217, 124, 80, 0.04);
  transform: translateY(-3px);
}

.qlink__k {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.qlink__t {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.qlink:hover .qlink__t { color: var(--c-accent); }

.qlink__d {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   Three-column shell
   -------------------------------------------------------------------------- */

.docs-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 200px;
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
  align-items: start;
}

/* The mobile toggle. Only exists below the sidebar breakpoint. */
.docs-sidebtn {
  display: none;
  align-items: center;
  gap: 0.55rem;
  height: 40px;
  padding-inline: 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-300);
  background: rgba(10, 21, 42, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.docs-sidebtn:hover { color: var(--c-accent); border-color: rgba(217, 124, 80, 0.4); }
.docs-sidebtn svg { width: 13px; height: 13px; flex: none; }

/* Sticks below the COMPACT nav — the nav shrinks on scroll, so offsetting by
   the full height left a gap. Opaque and full-bleed, because a translucent
   bar let the prose scroll visibly underneath the Contents button. */
.docs-toolbar {
  display: none;
  position: sticky;
  top: var(--nav-h-compact);
  z-index: 40;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.7rem var(--gutter);
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark-soft);
}

/* --------------------------------------------------------------------------
   Left sidebar
   -------------------------------------------------------------------------- */

.docs-side {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.75rem 1rem 4rem 0;
  border-right: 1px solid var(--line-dark-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--gray-700) transparent;
}

.docs-side::-webkit-scrollbar { width: 6px; }
.docs-side::-webkit-scrollbar-track { background: transparent; }
.docs-side::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 4px;
}
.docs-side::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* Search / filter */
.docs-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.docs-search svg {
  position: absolute;
  left: 0.7rem;
  width: 13px;
  height: 13px;
  color: var(--gray-500);
  pointer-events: none;
}

.docs-search input {
  width: 100%;
  height: 38px;
  padding: 0 0.7rem 0 2rem;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--on-navy);
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.docs-search input::placeholder { color: var(--gray-500); }

.docs-search input:focus {
  outline: none;
  border-color: rgba(217, 124, 80, 0.55);
  background: rgba(217, 124, 80, 0.03);
}

.docs-search input:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Nav groups */
.docs-nav__group + .docs-nav__group { margin-top: 1.6rem; }

.docs-nav__title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding-left: 0.85rem;
  margin-bottom: 0.6rem;
}

.docs-nav__list { display: flex; flex-direction: column; }

.docs-nav__list a {
  position: relative;
  display: block;
  padding: 0.38rem 0.6rem 0.38rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--gray-400);
  border-radius: 3px;
  transition: color 0.28s var(--ease-out), background-color 0.28s var(--ease-out);
}

/* The lime bar. Always in the DOM so the active state is a scale, not a jump. */
.docs-nav__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 15px;
  margin-top: -7.5px;
  background: var(--copper);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out-expo);
}

.docs-nav__list a:hover {
  color: var(--gray-300);
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav__list a.is-active,
.docs-nav__list a[aria-current="true"] {
  color: var(--on-navy);
  background: rgba(255, 255, 255, 0.04);
}

.docs-nav__list a.is-active::before,
.docs-nav__list a[aria-current="true"]::before { transform: scaleY(1); }

/* docs.js hides filtered-out rows and empty groups. */
/* The filter in docs.js hides the <li>; the group hides when all of its
   items are gone. Both are spelled out so no flex/grid display wins. */
.docs-nav__list li[hidden],
.docs-nav__list a[hidden],
.docs-nav__group[hidden] { display: none; }

.docs-nav__empty {
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.docs-nav__empty[hidden] { display: none; }

/* Off-canvas backdrop (below the sidebar breakpoint only) */
.docs-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 870;
  background: rgba(10, 21, 42, 0.66);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}

.docs-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Main column
   -------------------------------------------------------------------------- */

.docs-main {
  min-width: 0;
  max-width: 800px;
  padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(5rem, 12vw, 9rem);
}

.docs-section + .docs-section { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

.docs-section__rule {
  height: 1px;
  background: var(--line-dark-soft);
  border: 0;
  margin-block: clamp(2.25rem, 4vw, 3rem);
}

/* --------------------------------------------------------------------------
   Right rail — "on this page"
   -------------------------------------------------------------------------- */

.docs-rail {
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
  max-height: calc(100svh - var(--nav-h) - 4rem);
  overflow-y: auto;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-700) transparent;
}

.docs-rail::-webkit-scrollbar { width: 6px; }
.docs-rail::-webkit-scrollbar-track { background: transparent; }
.docs-rail::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 4px; }

.docs-rail__title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-dark-soft);
  margin-bottom: 0.75rem;
}

.docs-rail__list { display: flex; flex-direction: column; gap: 0.1rem; }

.docs-rail__list a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--gray-500);
  transition: color 0.28s var(--ease-out);
}

.docs-rail__list a:hover { color: var(--gray-300); }
.docs-rail__list a.is-active { color: var(--c-accent); }
.docs-rail__list li.is-sub a { padding-left: 0.75rem; }

@media (max-width: 1399px) {
  .docs-rail { display: none; }
  .docs-layout { grid-template-columns: 264px minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Sidebar → off-canvas
   -------------------------------------------------------------------------- */

@media (max-width: 1099px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-toolbar { display: block; }
  .docs-sidebtn { display: inline-flex; }
  .docs-backdrop { display: block; }

  .docs-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 880;
    width: min(320px, 86vw);
    height: 100svh;
    padding: calc(var(--nav-h) + 0.5rem) 1.1rem 3rem 1.25rem;
    background: var(--navy-light);
    border-right: 1px solid var(--line-dark);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 0.55s var(--ease-out-expo), visibility 0s linear 0.55s;
  }

  .docs-side.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.55s var(--ease-out-expo), visibility 0s linear 0s;
  }

  .docs-main { padding-top: 1.5rem; max-width: none; }
}

/* --------------------------------------------------------------------------
   Content styles
   -------------------------------------------------------------------------- */

/* The main column owns the outer width; prose keeps its own reading measure
   so tables and code blocks can still use the full 800px. */
.docs-body { max-width: 100%; }

.docs-body h2 {
  position: relative;
  scroll-margin-top: calc(var(--nav-h) + 2rem);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.docs-body h3 {
  position: relative;
  scroll-margin-top: calc(var(--nav-h) + 2rem);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
}

.docs-body h4 {
  scroll-margin-top: calc(var(--nav-h) + 2rem);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

.docs-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gray-300);
  margin-bottom: 1.05rem;
  max-width: 72ch;
}

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

.docs-body strong { color: var(--on-navy); font-weight: 500; }

.docs-body em { font-style: italic; }

/* Lists with hand-drawn lime markers, since base.css strips list-style. */
.docs-body ul,
.docs-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: docs-ol;
}

.docs-body li {
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-300);
}

.docs-body ul > li::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.85;
}

.docs-body ol > li { counter-increment: docs-ol; }

.docs-body ol > li::before {
  content: counter(docs-ol) ".";
  position: absolute;
  left: -1.6rem;
  top: 0;
  width: 1.4rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--c-accent);
}

.docs-body ol { padding-left: 1.9rem; }

.docs-body li > ul,
.docs-body li > ol { margin: 0.5rem 0 0; }

/* Links */
.docs-body a {
  color: var(--on-navy);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.28s var(--ease-out), text-decoration-color 0.28s var(--ease-out);
}

.docs-body a:hover {
  color: var(--c-accent);
  text-decoration-color: var(--c-accent);
}

/* Inline code */
.docs-body code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  background: var(--gray-800);
  border-radius: 3px;
  padding: 0.12em 0.36em;
  color: var(--warm-gray);
  word-break: break-word;
}

.docs-body a code { color: inherit; }
.docs-body h2 code,
.docs-body h3 code { font-size: 0.8em; }

/* The .code component brings its own <pre>; keep our inline rule off it. */
.docs-body .code code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  word-break: normal;
}

.docs-body .code { margin-bottom: 1.5rem; }

.docs-body hr {
  height: 1px;
  border: 0;
  background: var(--line-dark-soft);
  margin-block: 2.25rem;
}

/* Anchor link revealed on heading hover */
.anchor {
  position: absolute;
  left: -1.35rem;
  top: 0;
  width: 1.35rem;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--c-accent);
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.28s var(--ease-out);
}

.docs-body h2:hover .anchor,
.docs-body h3:hover .anchor,
.anchor:focus-visible { opacity: 1; }

.docs-body a.anchor:hover { text-decoration: none; color: var(--c-accent); }

@media (max-width: 640px) {
  .anchor { display: none; }
}

/* --------------------------------------------------------------------------
   Callouts
   -------------------------------------------------------------------------- */

.note {
  --note-accent: var(--c-accent);
  --note-tint: rgba(217, 124, 80, 0.06);
  border-left: 2px solid var(--note-accent);
  background: var(--note-tint);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.15rem;
  margin-block: 1.5rem;
}

.note__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--note-accent);
  margin-bottom: 0.5rem;
}

.docs-body .note__label { color: var(--note-accent); }

.docs-body .note p { color: var(--gray-300); margin-bottom: 0.7rem; }
.docs-body .note p:last-child { margin-bottom: 0; }
.docs-body .note ul,
.docs-body .note ol { margin-bottom: 0; }

.note--warn {
  --note-accent: var(--warn);
  --note-tint: rgba(240, 195, 109, 0.07);
}

.note--danger {
  --note-accent: var(--bad);
  --note-tint: rgba(255, 107, 94, 0.07);
}

.note--ok {
  --note-accent: var(--ok);
  --note-tint: rgba(126, 224, 129, 0.07);
}

/* --------------------------------------------------------------------------
   Endpoint header
   -------------------------------------------------------------------------- */

.endpoint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 0.65rem 0.6rem 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.018);
  margin-block: 1.25rem;
}

.endpoint .badge { flex: none; }

.endpoint__path {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--on-navy);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.endpoint__path::-webkit-scrollbar { display: none; }

.docs-body .endpoint__path {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.8125rem;
}

.endpoint__copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--gray-500);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.endpoint__copy:hover { color: var(--c-accent); border-color: rgba(217, 124, 80, 0.4); }
.endpoint__copy.is-done { color: var(--c-accent); border-color: var(--c-accent); }
.endpoint__copy svg { width: 13px; height: 13px; }

/* Used in place of an h3 heading. */
.docs-body h3.endpoint--lg,
.endpoint--lg {
  scroll-margin-top: calc(var(--nav-h) + 2rem);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0.75rem 0.8rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.03);
}

.endpoint--lg .endpoint__path { font-size: 0.9375rem; }
.docs-body h3.endpoint--lg .endpoint__path { font-size: 0.9375rem; }

@media (max-width: 480px) {
  .endpoint__path { font-size: 0.75rem; }
  .docs-body h3.endpoint--lg .endpoint__path { font-size: 0.8125rem; }
}

/* --------------------------------------------------------------------------
   Parameter tables
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-block: 1.25rem 1.75rem;
  border: 1px solid var(--line-dark-soft);
  border-radius: 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-700) transparent;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 4px; }

.ptable {
  width: 100%;
  min-width: 560px;
  font-size: 0.8125rem;
  text-align: left;
}

.ptable caption {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid var(--line-dark-soft);
}

.ptable thead th {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-dark);
  white-space: nowrap;
  vertical-align: bottom;
}

.ptable tbody th,
.ptable tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line-dark-soft);
  vertical-align: top;
  line-height: 1.65;
}

.ptable tbody tr:last-child th,
.ptable tbody tr:last-child td { border-bottom: 0; }

.ptable tbody th {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--on-navy);
  white-space: nowrap;
}

.docs-body .ptable tbody th code,
.docs-body .ptable .ptable__type code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.ptable__type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-400);
  white-space: nowrap;
}

.ptable__flag { white-space: nowrap; }

.ptable__desc {
  color: var(--gray-300);
  min-width: 260px;
  overflow-wrap: anywhere;
}

.docs-body .ptable__desc code { font-size: 0.75rem; }

.ptable tbody tr:hover th,
.ptable tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Required / optional chips */
.req,
.opt {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding-inline: 0.45rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.req {
  background: rgba(255, 107, 94, 0.15);
  color: var(--bad);
}

.opt {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gray-400);
}

/* --------------------------------------------------------------------------
   Status-code list
   -------------------------------------------------------------------------- */

.codes {
  margin-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line-dark-soft);
}

.codes__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-dark-soft);
}

.codes dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}

.codes dd {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gray-300);
  min-width: 0;
}

.docs-body .codes dd code { font-size: 0.75rem; }

@media (max-width: 480px) {
  .codes__row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* --------------------------------------------------------------------------
   Small shared bits
   -------------------------------------------------------------------------- */

.docs-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line-dark-soft);
  border: 1px solid var(--line-dark-soft);
  border-radius: 5px;
  overflow: hidden;
  margin-block: 1.25rem 1.75rem;
}

.docs-kv__cell {
  background: var(--navy);
  padding: 0.95rem 1.1rem;
  min-width: 0;
}

.docs-kv__k {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.docs-kv__v {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--on-navy);
  overflow-wrap: anywhere;
}

.docs-body .docs-kv__k,
.docs-body .docs-kv__v { margin-bottom: 0; }

.docs-body .docs-kv__k { margin-bottom: 0.35rem; }

/* Chip row used for enums (device models, currencies, intervals). */
.enum-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block: 1rem 1.5rem;
  padding-left: 0;
}

.docs-body .enum-chips { padding-left: 0; }

.enum-chips li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warm-gray);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 0.28rem 0.55rem;
  line-height: 1.4;
}

.docs-body .enum-chips li::before { content: none; }

.docs-note-inline {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

@media (max-width: 400px) {
  .docs-hero__meta .pill { font-size: 0.625rem; }
}
