/* The whole page below the header is dark, matching the original —
   set explicitly rather than relying on the site's default scheme. */
.about-page {
  background: var(--color-near-black);
  color: var(--color-white);
}

/* The hero is now the shared template-parts/page-header.php component
   (css/components/page-header.css) — eyebrow, title, and the "Connect
   with us" CTA are all standard features of that partial now, not a
   one-off block here. */

.mato-linktree-logo,
.mato-x-logo,
.mato-letterboxd-logo,
.mato-bluesky-logo,
.mato-social-icon-custom {
  width: 15px;
  height: 15px;
  flex: none;
  fill: currentColor;
  object-fit: contain;
}

/* ==== Tabs: content on the left, numbered nav on the right ==== */
.about-tabs {
  /* This section carries .container itself (see page-about.php) for
     its left/right inset — a 2-value `padding` shorthand here would
     silently zero that back out (shorthand sets every side it doesn't
     name), knocking the tab content ~15px further left than the
     hero title/CTA above it and "Meet the Team" below, which don't
     have this override. Vertical-only properties instead. */
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
}

.tabs-panels {
  flex: 1;
  min-width: 0;
}

.tabs-panel {
  display: none;
}

.tabs-panel.is-active {
  display: block;
}

.tabs-panel__heading {
  font-size: var(--font-size-h2);
  font-weight: bold;
  color: var(--color-accent);
  margin-top: 0;
}

.tabs-panel__body {
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

.tabs-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  flex: 0 0 260px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.tabs-nav__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  background: none;
  border: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  padding: 0 0 0 var(--space-4);
  text-align: left;
  cursor: pointer;
}

.tabs-nav__number {
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  flex: 0 0 auto;
}

.tabs-nav__label {
  font-size: var(--font-size-h3);
  font-weight: bold;
  color: rgba(255, 255, 255, 0.45);
}

.tabs-nav__item.is-active {
  border-left-color: var(--color-accent);
}

.tabs-nav__item.is-active .tabs-nav__label {
  color: var(--color-white);
}

/* ==== Team slider ==== */
.about-team {
  padding: var(--space-8) 0 var(--space-16);
}

.about-team__slider {
  position: relative;
  padding: var(--space-6) 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.25);
}

.about-team__track {
  gap: var(--space-6);
  padding: 0 var(--container-padding);
}

.about-team__item {
  flex: 0 0 200px;
}

.about-team__item .member-card__name {
  color: var(--color-white);
}

.about-team__item .member-card__role {
  color: rgba(255, 255, 255, 0.6);
}

.about-team__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.about-team__nav--prev { left: var(--space-2); }
.about-team__nav--next { right: var(--space-2); }

.about-team__view-all {
  text-align: center;
  margin-top: var(--space-8);
}

@media (max-width: 768px) {
  .about-tabs {
    flex-direction: column-reverse;
    gap: var(--space-6);
  }

  .tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex-basis: auto;
    border-left: none;
    gap: var(--space-4);
  }

  .tabs-nav__item {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0 0 var(--space-2);
  }

  .tabs-nav__item.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--color-accent);
  }
}
