/* ==========================================================================
   22-speakerhub.css — THE TAB STRIP ACROSS THE SPEAKER SCREENS

   Three screens that used to be three rows in the Options menu now sit
   behind one row with this strip across the top of them. It is drawn into
   whichever screen is open, so it has to look the same on all three without
   knowing anything about what is underneath it.

   Deliberately the same shape as the tabs inside Crew Management
   (.cm-tabs / .cm-tab), which are the only other tabs in the app. Two tab
   bars that look like different ideas would be a worse answer than none.
   ========================================================================== */

.xp-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.xp-hub-tab {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 7px 7px 0 0;
  border: 1px solid var(--c-border);
  border-bottom: none;
  background: transparent;
  color: var(--muted);
  transition: color .15s, background .15s, border-color .15s;
  /* A thumb, not a cursor: this strip is reached on a phone too. */
  min-height: 38px;
}

.xp-hub-tab:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* The one you are on. It carries the brand colour and sits on the rule
   below the strip rather than above it, which is what says "this panel". */
.xp-hub-tab.is-on {
  color: var(--navy);
  background: var(--brand);
  border-color: var(--brand);
}

/* On paper and in the PDF export there is nothing to press, and a row of
   tab buttons in a filed document is a row of buttons nobody can use. */
@media print { .xp-hub-tabs { display: none !important; } }
.pdf-exp .xp-hub-tabs { display: none !important; }

/* A phone has no room for three tabs across, so they wrap -- which the flex
   rule above already does -- and each one takes the width it needs rather
   than a third of a line it cannot fill. */
@media screen and (max-width: 640px) {
  .xp-hub-tab { flex: 1 1 auto; font-size: 10px; padding: 8px 10px; }
}
