/* Tab bar shared by /quality/, /rdcf/ and /promises/: tickers on the left,
   the three views of a company on the right. The rules live here, in one
   copy, so the three pages cannot drift apart; the tabs themselves are drawn
   by company-tabs.js. A tab with no page behind it is greyed (.off), not
   removed, so nothing moves when you switch ticker or view.
   Colors and fonts come from each page's :root variables. */

.ticker-bar { border-bottom: 1px solid var(--rule-soft); padding: 8px 24px; background: var(--bg); }
.ticker-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
}

.ticker-nav {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0;
}
.ticker-nav a { color: var(--ink-3); text-decoration: none; padding: 4px 10px; border-radius: 2px; }
.ticker-nav a:hover { color: var(--ink); }
.ticker-nav a.on { color: var(--bg); background: var(--navy); }
.ticker-nav .sep { color: var(--rule); padding: 0 2px; }

.view-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.view-toggle a {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  padding: 4px 10px; color: var(--ink-3); text-decoration: none;
}
.view-toggle a.on { background: var(--navy); color: var(--bg); }
.view-toggle a:not(.on):hover { color: var(--ink); }

.ticker-nav a.off, .ticker-nav a.off:hover,
.view-toggle a.off, .view-toggle a.off:hover { color: var(--ink-3); opacity: 0.4; cursor: default; }

@media (max-width: 720px) {
  .ticker-bar { padding-left: 16px; padding-right: 16px; }
  .ticker-nav { letter-spacing: 0.06em; }
  .ticker-nav a { padding: 4px 5px; }
  .ticker-nav .sep { padding: 0 1px; }
}
@media (max-width: 420px) {
  .ticker-nav a { padding: 4px 4px; }   /* keeps all seven tickers on one line at 390px */
}
