/* Market bar — see MarketBar.tsx. Scoped under .smb. */
.smb {
  background: #08111f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.smb-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 14px 24px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
}
.smb-row::-webkit-scrollbar {
  display: none;
}
.smb-row li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.smb-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 140px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--smb-accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef3fa;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.smb-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.smb-tab:focus-visible {
  outline: 3px solid var(--smb-accent);
  outline-offset: 3px;
}
.smb-tab--here {
  background: var(--smb-accent);
  border-color: var(--smb-accent);
  color: #fff;
}
/* Spotlight tab + "All markets →" (NAT-06): the row holds up to 8 tabs and a
   link, so tabs size to their names and the row never clips its first tab. */
.smb-row--extended {
  justify-content: safe center;
  gap: 8px;
}
.smb-row--extended .smb-tab {
  min-width: 0;
  padding: 0 14px;
}
.smb-tab--spotlight {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding-top: 3px;
  padding-bottom: 3px;
  /* A market with a second colour fills the tab with it (Tucson: Arizona Blue,
     Arizona Red border and dot); the others keep the tint of their colour. */
  background: var(--smb-spot-bg, color-mix(in srgb, var(--smb-accent) 22%, rgba(255, 255, 255, 0.04)));
  border-color: color-mix(in srgb, var(--smb-accent) 60%, transparent);
}
.smb-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  color: rgba(238, 243, 250, 0.82);
}
.smb-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.smb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--smb-accent);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.smb-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  color: #eef3fa;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(238, 243, 250, 0.4);
  white-space: nowrap;
}
.smb-all:hover {
  text-decoration-color: currentColor;
}
.smb-all:focus-visible {
  outline: 3px solid #eef3fa;
  outline-offset: 3px;
  border-radius: 6px;
}
@media (max-width: 1240px) {
  .smb-row--extended {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  /* Phone: one swipe row, starting at the left edge. */
  .smb-row {
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  .smb-tab {
    min-width: 0;
    font-size: 13px;
    padding: 0 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .smb-tab {
    transition: none;
  }
}
/* A starter market's own page: its Spotlight tab is "you are here", filled
   in the market's own colour like every current tab (Craig, Oct 7 2026). */
.smb-tab--spotlight.smb-tab--here {
  background: var(--smb-accent);
  border-color: var(--smb-accent);
}
.smb-tab--spotlight.smb-tab--here .smb-kicker {
  color: #fff;
}
.smb-tab--spotlight.smb-tab--here .smb-dot {
  background: #fff;
}
