/* --- Base (from Step 6) + Brand polish (Step 9) merged --- */

/* Tablist layout */
.cbt-tablist {
  display: flex;
  gap: .75rem;                 /* was .5rem */
  border-bottom: 1px solid #e5e7eb; /* refined border color */
  margin: 0 0 1rem 0;
  padding: .25rem 0;           /* adjusted padding */
}

/* Tab buttons */
.cbt-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: .6rem 1rem;         /* slightly larger target */
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border-radius: .5rem .5rem 0 0;
  color: #0f172a;              /* adjust to brand text color */
  transition: background .2s, border-color .2s, color .2s;
}
.cbt-tab:hover { background: #f8fafc; }

/* Active tab */
.cbt-tab[aria-selected="true"] {
  border-color: var(--brand-accent, currentColor);
  color: var(--brand-accent, #334155);
  background: #ffffff;
}

/* Keyboard focus */
.cbt-tab:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Panels */
.cbt-panel { padding-top: .5rem; }
/* Keep hidden panels hidden (defensive; many browsers do this by default) */
.cbt-panel[hidden] { display: none; }
