/* =========================================================================
   pages/docs.css — API docs (landing) page.
   Base docs layout (hero, sidebar, snippet column) is in style.css;
   controls, chips, switches, buttons are in common.css.
   ========================================================================= */

/* ---------- Parameters: description | control ---------- */
.params-section, .prm-group { container-type: inline-size; }
.prm-group { margin: 0 0 8px; }
.prm-group-title { display: flex; align-items: center; gap: 8px; margin: 28px 0 4px; padding-bottom: 10px;
                   font-size: 15px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.prm-group-title i { font-size: 13px; color: var(--muted); }

.prm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px 32px;
       padding: 18px 0; border-bottom: 1px solid var(--hairline); margin: 0; }
.prm:last-child { border-bottom: 0; }
.prm-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.prm-name { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ink); background: none; padding: 0; cursor: default; }
.prm-type { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prm-req  { font-size: 11px; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 2px 7px; border-radius: 999px; }
.prm-in   { font-size: 11px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 999px; }
.prm-desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.prm-default { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.prm-default code { font-size: 12px; background: var(--mist); padding: 1px 6px; border-radius: 4px; color: var(--ink); word-break: break-all; }
.prm-ctl { min-width: 0; align-self: start; }
.prm-ctl .switch { margin-top: 12px; }

@container (max-width: 560px) {
  .prm { grid-template-columns: 1fr; }
}

.auth-note, .no-params { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.dep-badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #b45309; color: #fff; margin-left: 6px; }

/* ---------- Sidebar search ---------- */
.side-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.ep-link[hidden], .side-group[hidden] { display: none !important; }

/* ---------- Try panel: API key ---------- */
.token-hint { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.token-hint a { color: var(--brand); font-weight: 600; }
.token-hint[hidden] { display: none; }
.token-hint i { color: var(--success); }
.token-hint .token-switch { font-size: 12px; margin-left: 4px; }
.token-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
                 min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--mist);
                 font-size: 13px; color: var(--brand); font-weight: 600; box-sizing: border-box; }
.token-switch { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--brand); text-decoration: underline; cursor: pointer; }
#api-key-input[hidden] { display: none; }
.token-account + #api-key-input { margin-top: 8px; }

/* ---------- Response panel ---------- */
.resp-tabs { display: flex; align-items: center; }
.resp-copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px;
             border: 1px solid var(--ctl-line); background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--brand); cursor: pointer; }
.resp-copy:hover { background: var(--brand-soft); }
.resp-copy[hidden] { display: none; }
