/* ============================================================
   spooorts Documentation – WebHelp Stylesheet (Backoffice design)
   Color: #294f94  |  Font: Poppins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #294f94;
  --brand-dark:   #1f3f78;
  --brand-tint:   rgba(41, 79, 148, .08);
  --brand-soft:   #eef2fa;

  --text:         #1a1a2e;
  --text-muted:   #5b6478;
  --text-faint:   #8b93a4;

  --bg:           #f7f8fb;
  --surface:      #ffffff;
  --line:         #e5e7eb;
  --line-card:    #e8ebf2;
  --line-soft:    #eef1f6;
  --row-head:     #f5f7fb;
  --row-hover:    #fafbfe;
  --code-bg:      #f0f3f9;
  --subtle-bg:    #f3f5f9;

  --note-note-bg:      #eef2fa;
  --note-note-line:    #294f94;
  --note-note-label:   #294f94;
  --note-tip-bg:       #f2f8f3;
  --note-tip-line:     #4caf50;
  --note-tip-label:    #2e7d32;
  --note-important-bg: #fdf6ec;
  --note-important-line:#f0a500;
  --note-important-label:#a56f00;
  --note-warning-bg:   #fdf1ee;
  --note-warning-line: #d9480f;
  --note-warning-label:#b03a0b;

  --radius:       12px;
  --radius-sm:    10px;
  --radius-xs:    8px;
  --shadow:       0 1px 2px rgba(20,30,60,.04), 0 2px 6px rgba(20,30,60,.03);
  --shadow-hover: 0 4px 14px rgba(20,30,60,.08), 0 10px 24px rgba(20,30,60,.04);

  --sidebar-w:    280px;
  --topbar-h:     56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

/* ── Layout Shell ─────────────────────────────────────────── */
.docs-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Topbar ───────────────────────────────────────────────── */
.docs-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 200;
  border-bottom: 1px solid var(--line);
}

.docs-topbar .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.3px;
  text-decoration: none;
}

.docs-topbar .logo span { color: var(--text-faint); font-weight: 400; }

.docs-topbar .lang-switch {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.docs-topbar .lang-switch a {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all .2s;
  text-decoration: none;
}

.docs-topbar .lang-switch a:hover,
.docs-topbar .lang-switch a.active {
  background: var(--brand-tint);
  color: var(--brand);
  border-color: transparent;
}

.docs-topbar .menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
}

.docs-topbar .menu-toggle svg { display: block; }

/* ── Topbar Navigation Icons (unused by generator; kept) ─── */
.docs-topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
}

.docs-topnav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.docs-topnav a:hover,
.docs-topnav a.active {
  background: var(--brand-tint);
  color: var(--brand);
  text-decoration: none;
}

.docs-topnav .topnav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .docs-topnav { display: none; }
}

/* ── Search bar ──────────────────────────────────────── */
.docs-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 480px;
  margin: 0 8px 0 0;
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  background: var(--subtle-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: background .15s, border-color .15s;
}
.search-input::placeholder { color: var(--text-faint); }
.search-input:focus {
  background: var(--surface);
  border-color: var(--brand);
}
/* Hide browser-native clear button on WebKit */
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Results dropdown */
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  z-index: 9999;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.search-results.open { display: block; }

.search-result-item {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
  transition: background .1s;
  cursor: pointer;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.active {
  background: var(--brand-tint);
}
.sr-title {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--brand-dark);
  margin-bottom: 2px;
}
.sr-excerpt {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item mark {
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: 2px;
  padding: 0 1px;
}
.search-noresult {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.docs-sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}

.docs-sidebar::-webkit-scrollbar { width: 5px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* sidebar header */
.sidebar-header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-header h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.1px;
  color: var(--text);
}

.sidebar-header p {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* nav tree */
.docs-nav {
  padding: 10px 10px 24px;
  flex: 1;
}

.docs-nav ul { list-style: none; }

.docs-nav .nav-section {
  padding: 14px 10px 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
}

.docs-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  font-size: 13.2px;
  font-weight: 400;
  color: #4b5563;
  border-radius: var(--radius-xs);
  transition: all .15s;
  text-decoration: none;
}

.docs-nav li a:hover {
  background: var(--subtle-bg);
  color: var(--brand);
}

.docs-nav li a.active {
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 600;
}

.docs-nav li a .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .55;
  color: var(--text-faint);
}

.docs-nav li a.active .nav-icon { opacity: 1; color: var(--brand); }

.docs-nav li.nav-child a {
  padding-left: 34px;
  font-size: 12.8px;
  font-weight: 400;
}

/* sidebar footer */
.sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-footer a { color: var(--text-faint); }
.sidebar-footer a:hover { color: var(--brand); }

/* ── Main Content Area ────────────────────────────────────── */
.docs-main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  flex: 1;
  min-width: 0;
}

/* breadcrumb */
.docs-breadcrumb {
  background: transparent;
  border-bottom: none;
  padding: 18px 32px 0;
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-breadcrumb a { color: var(--text-faint); }
.docs-breadcrumb a:hover { color: var(--brand); }
.docs-breadcrumb .sep { opacity: .5; }
.docs-breadcrumb .current { color: var(--text-muted); font-weight: 500; }

/* article */
.docs-article {
  margin: 14px 32px 48px;
  background: var(--surface);
  border: 1px solid var(--line-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px 34px;
}

.docs-article h1 {
  font-size: 27px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.4px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.docs-article .shortdesc {
  font-size: 15.5px;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 88ch;
  margin-bottom: 30px;
  line-height: 1.65;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-card);
}

/* sections */
.docs-article section {
  margin-bottom: 34px;
}

.docs-article h2 {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.docs-article h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 15px;
  background: var(--brand);
  border-radius: 2px;
  align-self: center;
  flex: 0 0 3px;
}

.docs-article p { margin-bottom: 12px; max-width: 88ch; }

/* lists */
.docs-article ul, .docs-article ol {
  padding-left: 0;
  margin: 10px 0 16px;
  list-style: none;
}

.docs-article ul li, .docs-article ol li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 15px;
  max-width: 88ch;
}

.docs-article ul li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  opacity: .55;
}

.docs-article ol { counter-reset: ol-counter; }
.docs-article ol li { counter-increment: ol-counter; }
.docs-article ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 5px;
  width: 19px;
  height: 19px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-article li b { color: var(--text); }

/* definition lists (dl/dt/dd – DITA kontakt-kategorien etc.) */
.docs-article dl.docs-dl {
  margin: 16px 0 24px;
  border-top: 1px solid var(--line-card);
}
.docs-article dl.docs-dl dt {
  font-weight: 600;
  color: var(--brand-dark);
  padding: 10px 0 2px;
  border-top: 1px solid var(--line-card);
  margin-top: 8px;
}
.docs-article dl.docs-dl dt:first-of-type { border-top: none; margin-top: 0; }
.docs-article dl.docs-dl dd {
  margin: 0 0 6px 0;
  padding: 0;
  color: var(--text);
  line-height: 1.6;
  max-width: 88ch;
}

/* code */
.docs-article code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12.6px;
  background: var(--code-bg);
  color: var(--brand);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ── Tables ───────────────────────────────────────────────── */
.docs-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--line-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.6px;
}

.docs-table thead tr {
  background: var(--row-head);
  color: #4b5563;
}

.docs-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12.6px;
  letter-spacing: .2px;
  border-bottom: 1px solid var(--line-card);
}

.docs-table thead th:first-child { border-radius: 0; }
.docs-table thead th:last-child  { border-radius: 0; }

.docs-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}

.docs-table tbody tr:hover { background: var(--row-hover); }
.docs-table tbody tr:last-child { border-bottom: none; }

.docs-table tbody td {
  padding: 10px 14px;
  vertical-align: top;
}

.docs-table tbody td:first-child { font-weight: 600; }

/* ── Notes & Tips ─────────────────────────────────────────── */
.docs-note {
  display: flex;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  margin: 20px 0;
  font-size: 13.8px;
  line-height: 1.6;
}

.docs-note .note-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  padding-top: 2px;
  color: var(--brand);
}

.docs-note.note-tip    { background: var(--note-tip-bg); border-left-color: var(--note-tip-line); }
.docs-note.note-note   { background: var(--note-note-bg); border-left-color: var(--note-note-line); }
.docs-note.note-important { background: var(--note-important-bg); border-left-color: var(--note-important-line); }
.docs-note.note-warning   { background: var(--note-warning-bg); border-left-color: var(--note-warning-line); }

.docs-note.note-tip .note-icon    { color: var(--note-tip-line); }
.docs-note.note-note .note-icon   { color: var(--note-note-line); }
.docs-note.note-important .note-icon { color: var(--note-important-line); }
.docs-note.note-warning .note-icon   { color: var(--note-warning-line); }

.docs-note.note-tip .note-label    { color: var(--note-tip-label); font-weight: 600; }
.docs-note.note-note .note-label   { color: var(--note-note-label); font-weight: 600; }
.docs-note.note-important .note-label { color: var(--note-important-label); font-weight: 600; }
.docs-note.note-warning .note-label   { color: var(--note-warning-label); font-weight: 600; }

/* ── Figures & Images ─────────────────────────────────────── */
.docs-figure {
  margin: 24px 0;
  text-align: center;
}
.docs-figure img {
  max-width: 100%;
  border: 1px solid var(--line-card);
  border-radius: var(--radius-sm);
}
.docs-figure figcaption {
  margin-top: 7px;
  font-size: 12.2px;
  color: var(--text-faint);
}

/* ── Prev / Next navigation ───────────────────────────────── */
.docs-pager {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-card);
}

.docs-pager a {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, color .18s;
}

.docs-pager a:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.docs-pager .pager-dir {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.docs-pager .pager-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.docs-pager a.pager-next { text-align: right; }

/* ── Welcome / Index page (optional header) ───────────────── */
.docs-welcome { margin: 14px 32px 8px; }

.docs-welcome h1 {
  font-size: 27px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.4px;
  margin-bottom: 12px;
}

.docs-welcome .lead {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 88ch;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.docs-card {
  background: var(--surface);
  border: 1px solid var(--line-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.docs-card .card-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.docs-card .card-icon svg { color: var(--brand); width: 18px; height: 18px; }

.docs-card h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
}

.docs-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Lang selector page ───────────────────────────────────── */
.lang-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  gap: 32px;
  padding: 40px;
}

.lang-page .brand {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.4px;
  color: var(--brand);
}

.lang-page .brand span { color: var(--text-faint); font-weight: 400; }

.lang-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-card {
  background: var(--surface);
  border: 1px solid var(--line-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 44px;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  min-width: 200px;
}

.lang-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.lang-card .flag { font-size: 28px; margin-bottom: 12px; }

.lang-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
}

.lang-card p { font-size: 13px; color: var(--text-muted); }

/* ── Responsive / Mobile ──────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 280px; }

  .docs-topbar .menu-toggle { display: flex; align-items: center; }

  .docs-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }

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

  .docs-main { margin-left: 0; }

  .docs-article, .docs-welcome { margin: 12px 16px 48px; }
  .docs-article { padding: 22px 20px 26px; }
  .docs-breadcrumb { padding: 14px 16px 0; }

  .docs-pager { flex-direction: column; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 90;
  }

  .sidebar-overlay.show { display: block; }

  /* Search: smaller on tablet */
  .docs-search { max-width: 220px; margin: 0 8px; }
}

@media (max-width: 600px) {
  /* Search: full width below topbar on mobile */
  .docs-topbar { flex-wrap: wrap; row-gap: 0; }
  .docs-search {
    order: 10;
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    padding: 6px 12px 8px;
    background: var(--bg);
  }
  .search-input { background: var(--subtle-bg); }
  .search-results { top: calc(100% + 2px); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
}

@media (max-width: 480px) {
  .docs-article h1 { font-size: 22px; }
  .docs-card-grid { grid-template-columns: 1fr; }
}

/* ── Print / PDF ──────────────────────────────────────────── */
@media print {
  /* Hide navigation chrome */
  .docs-topbar,
  .docs-sidebar,
  .sidebar-overlay,
  .docs-pager,
  .lang-switch { display: none !important; }

  /* Full-width content */
  .docs-layout { display: block; }
  .docs-main   { margin-left: 0 !important; padding: 0 !important; }
  .docs-article { max-width: 100% !important; margin: 0 !important; padding: 20px 0 !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; }

  /* Force all images to fit within the printable area */
  img,
  .docs-figure img { max-width: 100% !important; width: auto !important; height: auto !important; }
  .docs-figure { page-break-inside: avoid; }

  /* Keep code blocks readable */
  pre, code { font-size: 10px; white-space: pre-wrap; word-break: break-all; }

  /* Avoid page breaks inside notes */
  .docs-note { page-break-inside: avoid; }
}

/* ===== langsw — Sprachumschalter (Variante A, JS-frei via <details>) v1 ===== */
.lang-switch{display:flex;align-items:center}
.langsw{position:relative;display:inline-block;font-size:13.5px}
.langsw>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  background:var(--surface,#fff);border:1px solid var(--line,#e5e7eb);color:var(--text,#1a1a2e);
  border-radius:999px;padding:5px 10px 5px 6px;font-weight:600;line-height:1;
  transition:border-color .16s ease,background .16s ease}
.langsw>summary::-webkit-details-marker{display:none}
.langsw>summary::marker{content:""}
.langsw>summary:hover{border-color:var(--brand,#294f94)}
.langsw>summary:focus-visible{outline:2px solid var(--brand,#294f94);outline-offset:2px}
.langsw-flag{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;
  background:var(--subtle-bg,#f0f3f9);font-size:14px;line-height:1;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.langsw-name{white-space:nowrap}
.langsw-chev{width:0;height:0;flex:0 0 auto;margin-left:2px;
  border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;
  opacity:.7;transition:transform .2s ease}
.langsw[open]>summary .langsw-chev{transform:rotate(180deg)}
.langsw-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:202px;background:var(--surface,#fff);
  border:1px solid var(--line,#e5e7eb);border-radius:12px;box-shadow:var(--shadow,0 16px 40px -14px rgba(20,36,80,.30));
  padding:6px;z-index:1000;animation:langswIn .16s ease}
@keyframes langswIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
.langsw-item{display:flex;align-items:center;gap:10px;padding:8px 9px;border-radius:9px;text-decoration:none;
  color:var(--text,#1a1a2e);font-weight:600;transition:background .13s ease}
.langsw-item .langsw-flag{background:var(--subtle-bg,#f0f3f9)}
.langsw-item .langsw-name{margin-right:auto}
.langsw-item:hover{background:var(--brand-tint,#eef2fb)}
.langsw-item[aria-current="true"]{background:var(--brand-tint,#eef2fb);color:var(--brand,#294f94)}
.langsw-check{flex:0 0 auto;color:var(--brand,#294f94);font-weight:800;font-size:14px;line-height:1;opacity:0}
.langsw-item[aria-current="true"] .langsw-check{opacity:1}
@media (prefers-reduced-motion:reduce){.langsw-menu{animation:none}.langsw-chev{transition:none}}

/* langsw readability fix */
.docs-topbar .lang-switch .langsw-item{color:var(--text)}
.docs-topbar .lang-switch .langsw-item[aria-current="true"],.docs-topbar .lang-switch .langsw-item[aria-current="true"] .langsw-name{color:var(--brand)}
