/* Resources tab bar — shared across the Archetype tool pages.
 *
 * Scoped under .rt-bar and re-declares only the palette tokens it needs, so the
 * partial stays portable to pages that don't define the density-selector :root.
 * Visual language matches /density-selector/ (dark ground, gold accent, Proxima).
 */

.rt-bar {
  --ds-bg: #0a0a0c;
  --ds-bord: #25252a;
  --ds-text: #e8e8ea;
  --ds-mute: #9b9ba2;
  --ds-gold: #c8a96a;

  background: var(--ds-bg);
  border-bottom: 1px solid var(--ds-bord);
}

.rt-tabs {
  display: flex;
  align-items: center;
  justify-content: center;   /* center the tab row on screen */
  gap: 26px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: "proxima-nova", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* "Resources" kicker label that anchors the bar. */
.rt-kicker {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ds-gold);
  padding: 18px 0;
}

.rt-tablist {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;            /* scroll rather than break on narrow screens */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rt-tablist::-webkit-scrollbar { display: none; }

.rt-tab-item { display: flex; }

.rt-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 18px 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ds-mute);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

a.rt-tab:hover {
  color: var(--ds-text);
  border-bottom-color: var(--ds-bord);
}

.rt-tab.is-active {
  color: var(--ds-gold);
  border-bottom-color: var(--ds-gold);
  font-weight: 600;
}

/* Not-yet-approved tools: present but inert. */
.rt-tab.is-disabled {
  color: #5a5a61;
  cursor: default;
}

.rt-soon {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #5a5a61;
  border: 1px solid #34343a;
  border-radius: 3px;
  padding: 2px 5px;
  line-height: 1;
}

@media (max-width: 640px) {
  .rt-tabs { gap: 16px; padding: 0 16px; }
  .rt-kicker { display: none; }   /* reclaim room for the tabs themselves */
}

@media (prefers-reduced-motion: reduce) {
  .rt-tab { transition: none; }
}
