/* ვერსია: 2 — ცვლილებისას გაზარდე და ექვსივე loyalty-api-docs.html-ში `api-docs.css?v=N` განაახლე.
   API-ის დოკუმენტაციის ღია თემა (გვერდის საკუთარი სტილი მუქია) და თემის ღილაკი.
   კოდის ბლოკები ღია თემაზეც მუქი რჩება — სინტაქსის ფერები მუქ ფონზეა შერჩეული. */

:root { --surface: rgba(14, 25, 41, 0.86); --card: rgba(17, 29, 46, 0.86); --muted: #8593aa; }
.code-block .json-comment { color: #8593aa; }
.docs-topbar .pk-theme-btn { width: 32px; height: 32px; flex-shrink: 0; }
.docs-topbar .pk-theme-btn svg { display: block; width: 16px; height: 16px; }
html[data-theme="dark"] .docs-topbar .pk-theme-btn .pk-i-moon,
html:not([data-theme="dark"]) .docs-topbar .pk-theme-btn .pk-i-sun { display: none; }
@media (max-width: 560px) { .topbar-baseurl { display: none; } .docs-topbar .pk-lang { margin-left: auto; } }

html:not([data-theme="dark"]) {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.84);
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 35, 90, 0.14);
  --accent2: #4338ca;
  --text: #0b1b3f;
  --muted: #55648a;
  --sub: #33415f;
}
html:not([data-theme="dark"]) .docs-topbar { background: rgba(255, 255, 255, 0.78); }
html:not([data-theme="dark"]) .docs-topbar .pk-lang {
  --pk-surface: #ffffff; --pk-border: #d5e0f3; --pk-ink: #0b1b3f; --pk-primary: #2563eb;
  --pk-primary-ink: #1d4ed8; --pk-primary-soft: #e9f0ff; --pk-shadow: 0 24px 48px -24px rgba(18, 48, 120, 0.35);
}
html:not([data-theme="dark"]) .nav-link:hover { background: rgba(37, 99, 235, 0.08); }
html:not([data-theme="dark"]) .endpoint-header { background: rgba(37, 99, 235, 0.06); }
html:not([data-theme="dark"]) .doc-table th { background: rgba(37, 99, 235, 0.06); }
html:not([data-theme="dark"]) .nav-method--get,
html:not([data-theme="dark"]) .method-badge--get,
html:not([data-theme="dark"]) .auth-badge--user { color: #0369a1; }
html:not([data-theme="dark"]) .nav-method--post,
html:not([data-theme="dark"]) .method-badge--post,
html:not([data-theme="dark"]) .status-2xx { color: #15803d; }
html:not([data-theme="dark"]) .nav-method--put,
html:not([data-theme="dark"]) .method-badge--put,
html:not([data-theme="dark"]) .endpoint-note.warn strong { color: #a14a06; }
html:not([data-theme="dark"]) .nav-method--delete,
html:not([data-theme="dark"]) .method-badge--delete,
html:not([data-theme="dark"]) .auth-badge--admin,
html:not([data-theme="dark"]) .param-req,
html:not([data-theme="dark"]) .status-4xx { color: #b91c1c; }
html:not([data-theme="dark"]) .auth-badge--policy,
html:not([data-theme="dark"]) .bit-badge { color: #4338ca; }
html:not([data-theme="dark"]) .auth-badge--public,
html:not([data-theme="dark"]) .role-badge { color: #33415f; }
html:not([data-theme="dark"]) .code-block { background: #0e1929; color: #e2e8f0; --text: #f1f5f9; --sub: #94a3b8; --accent2: #a5b4fc; }
html:not([data-theme="dark"]) .code-block .json-comment { color: #94a3b8; }
