/* ── Quick Start Language Sidebar (Enterprise) ── */
.ts-codeTabs {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-top: 16px;
}
.ts-codeTabs__tablist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 24px;
  align-self: start;
}
.ts-codeTabs__tablist-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  padding-left: 16px;
  font-weight: 600;
}
.ts-codeTabs__tablist-note {
  display: block;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ts-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  user-select: none;
}
.ts-tab[aria-selected="true"] {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  font-weight: 600;
}
.ts-tab:hover:not([aria-selected="true"]) {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.ts-tab:focus-visible {
  outline: 2px solid rgba(56,214,255,0.75);
  outline-offset: 2px;
}
.ts-panel[hidden] { display: none !important; }

/* ── Install Bar ── */
.ts-install {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.ts-install__label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}
.ts-install__cmd {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.8rem;
  color: #93c5fd;
  white-space: pre;
  overflow-x: auto;
  flex: 1;
}
.ts-install__github {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  text-decoration: none;
}
.ts-install__github:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.ts-install__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #34d399;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.25);
}
.ts-link--subtle {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}
.ts-link--subtle:hover { color: #93c5fd; }
.ts-code {
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}
.ts-code code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  color: #d4d4d4;
  white-space: pre;
}

/* ── Syntax Highlighting (VS Code Dark+ palette) ── */
.ts-code .keyword  { color: #c586c0; }               /* purple — import, from, const, await, func, package */
.ts-code .string   { color: #ce9178; }               /* warm orange — string literals */
.ts-code .comment  { color: #6a9955; font-style: italic; } /* green — comments */
.ts-code .function { color: #dcdcaa; }               /* yellow — function/method calls */
.ts-code .number   { color: #b5cea8; }               /* light green — numeric literals */
.ts-code .operator { color: #d4d4d4; }               /* default — operators */
.ts-code .type     { color: #4ec9b0; }               /* teal — types, classes */
.ts-code .param    { color: #9cdcfe; }               /* light blue — parameters, variables */
.ts-code .property { color: #9cdcfe; }               /* light blue — object properties */
.ts-code .builtin  { color: #4fc1ff; }               /* bright blue — built-in globals */

/* ── Mobile: collapse to horizontal pills ── */
@media (max-width: 768px) {
  .ts-codeTabs {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ts-codeTabs__tablist {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    position: static;
  }
  .ts-codeTabs__tablist-label { display: none; }
  .ts-codeTabs__tablist-note { display: none; }
  .ts-tab {
    width: auto;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    font-size: 0.8rem;
  }
  .ts-tab[aria-selected="true"] {
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 0 10px rgba(59,130,246,0.12);
  }
  .ts-code { padding: 14px 16px; font-size: 0.75rem; border-radius: 12px; }
}
