/* Tabs (brandbook "Tabs"): Drupal local tasks and in-page sections. The
   active tab (aria-current) sits on the navy surface. The row wraps, so no
   tab is hidden or cut: on a phone each tab is an outlined chip, so the
   wrapped lines still read as separate tabs; from 768px they are plain
   tabs. The row is the containing block of its visually hidden labels so
   they do not widen the page. */
.mm-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 var(--mm-space-2);
  margin: -6px 0 0;
  border-bottom: 1px solid var(--mm-line);
}

.mm-tabs a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-field);
  background: var(--mm-surface);
  color: var(--mm-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .mm-tabs {
    gap: var(--mm-space-1);
    padding: 6px 6px var(--mm-space-2);
    margin: -6px -6px 0;
  }

  .mm-tabs a {
    height: 40px;
    padding: 0 14px;
    border: 0;
    background: none;
    font-size: 15px;
  }
}

.mm-tabs a:hover {
  color: var(--mm-text);
}

.mm-tabs a[aria-current] {
  border-color: var(--mm-primary-surface);
  background: var(--mm-primary-surface);
  color: var(--mm-primary);
}
