/* ================================================================
   LEADERSHIP PAGE
   ================================================================ */

:root {
  --tp-max: 1400px;

  --ink: #101828;
  --muted: #5b6474;
  --accent: #06926d;
  --chip: #d09353;

  /*
   * Set this to the actual height of the shared navbar.
   */
  --nav-h: 80px;

  --tp-desc-bg: #fff8f0;
  --tp-desc-border: #e7c39d;
  --tp-desc-text: #5f4a33;
}


/* ================================================================
   PAGE RESET
   ================================================================ */

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;

  overflow-x: hidden;

  background: #ffffff;
}

/*
 * This stylesheet is loaded only by leadership.html, so these
 * rules remove width and spacing restrictions inherited from
 * the shared base template.
 */
main {
  width: 100%;
  max-width: none;
  min-width: 0;

  margin: 0;
  padding: 0;
}

.team-plain,
.team-plain *,
.team-plain *::before,
.team-plain *::after {
  box-sizing: border-box;
}


/* ================================================================
   FULL-VIEWPORT LEADERSHIP SECTION
   ================================================================ */

.team-plain {
  display: flex;
  align-items: stretch;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  /*
   * Fill the viewport space remaining below the navigation.
   * The 100vh declaration is a fallback for older browsers.
   */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));

  margin: 0;
  padding: 0;

  overflow-x: hidden;

  color: var(--ink);
  background: #ffffff;
}


/* ================================================================
   CONTENT WRAPPER
   ================================================================ */

.tp-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;

  width: 100%;
  max-width: var(--tp-max);
  min-width: 0;

  margin-inline: auto;

  padding:
    clamp(1.5rem, 4vw, 3.5rem)
    clamp(1rem, 3vw, 2rem)
    clamp(2.5rem, 5vw, 4.5rem);

  color: var(--ink);
}


/* ================================================================
   HEADLINE
   ================================================================ */

.tp-head {
  display: grid;
  gap: 1.125rem;

  width: 100%;

  margin:
    0
    0
    clamp(3rem, 7vh, 5rem);

  text-align: center;
}

.tp-title {
  margin: 0;

  color: var(--ink);

  font-family:
    Tahoma,
    Roboto,
    Geneva,
    Verdana,
    sans-serif;

  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.0125rem;
}

.tp-title span {
  color: var(--accent);
}


/* ================================================================
   STICKY TABS
   ================================================================ */

.tp-tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);

  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0.625rem 0.375rem;

  overflow-x: auto;
  overflow-y: hidden;

  background: #ffffff;
  border-bottom: 1px solid #eef1f4;

  scrollbar-width: thin;
  scrollbar-color: #c2d6db transparent;

  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.tp-tabs::-webkit-scrollbar {
  height: 0.5rem;
}

.tp-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.tp-tabs::-webkit-scrollbar-thumb {
  background: #c2d6db;
  border-radius: 0.5rem;
}


/* ================================================================
   TAB BUTTONS
   ================================================================ */

.tp-tab {
  --pad-x: 0.875rem;
  --pad-y: 0.625rem;

  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  min-height: 2.5rem;

  padding:
    var(--pad-y)
    var(--pad-x);

  color: #0b2033;
  background: #ffffff;

  border: 1px solid var(--chip);
  border-radius: 0.3125rem;

  font-family:
    Tahoma,
    Roboto,
    Geneva,
    Verdana,
    sans-serif;

  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.tp-tab:hover {
  color: #000000;
  background: var(--chip);
  border-color: #000000;

  transform: translateY(-1px);
}

.tp-tab.is-active {
  color: #000000;
  background: var(--chip);
  border-color: #000000;
}

.tp-tab:focus-visible {
  outline: 3px solid rgba(6, 146, 109, 0.28);
  outline-offset: 3px;
}


/* ================================================================
   DYNAMIC DESCRIPTION
   ================================================================ */

.tp-desc {
  width: 100%;
  max-width: 130ch;

  margin:
    0.375rem
    auto
    0;

  padding:
    0.75rem
    0.875rem;

  color: var(--tp-desc-text);
  background: var(--tp-desc-bg);

  border: 1px solid var(--tp-desc-border);
  border-radius: 0.625rem;

  font-family:
    Tahoma,
    Roboto,
    Geneva,
    Verdana,
    sans-serif;

  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}


/* ================================================================
   PEOPLE GRID
   ================================================================ */

.tp-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        min(11.25rem, 100%),
        1fr
      )
    );

  gap:
    clamp(1.375rem, 3.2vw, 2.5rem);

  width: 100%;
  min-width: 0;

  margin:
    clamp(1.25rem, 3vw, 2.25rem)
    0
    0;

  padding: 0;

  list-style: none;
}

.tp-item {
  width: 100%;
  min-width: 0;

  text-align: center;
}


/* ================================================================
   CIRCULAR AVATAR
   ================================================================ */

.tp-avatar {
  --size: clamp(8.75rem, 18vw, 11.875rem);

  width: var(--size);
  height: var(--size);
  margin: 0 auto 0.75rem;
  overflow: hidden;
  background: transparent;
  border-radius: 50%;
}

.tp-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: solid 1px black;
}


/* ================================================================
   NAME AND ROLE
   ================================================================ */

.tp-meta {
  display: grid;
  gap: 0.25rem;

  width: 100%;
}

.tp-name {
  color: #000000;

  font-family:
    Tahoma,
    Roboto,
    Geneva,
    Verdana,
    sans-serif;

  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.0125rem;
}

.tp-role {
  color: #af8654;

  font-family:
    Tahoma,
    Roboto,
    Geneva,
    Verdana,
    sans-serif;

  font-size: clamp(0.6875rem, 1.4vw, 0.9375rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
}


/* ================================================================
   LARGE SCREENS
   ================================================================ */

@media (min-width: 1200px) {
  .tp-grid {
    gap:
      2.5rem
      clamp(2rem, 3vw, 3rem);
  }
}


/* ================================================================
   EXTRA-LARGE SCREENS
   ================================================================ */

@media (min-width: 1600px) {
  :root {
    --tp-max: 1600px;
  }

  .tp-wrap {
    padding-inline:
      clamp(2.5rem, 5vw, 5rem);
  }

  .tp-grid {
    gap:
      3rem
      clamp(2.5rem, 3.5vw, 4rem);
  }
}


/* ================================================================
   TABLETS
   ================================================================ */

@media (max-width: 900px) {
  .tp-wrap {
    padding-inline:
      clamp(1rem, 4vw, 2rem);
  }

  .tp-head {
    margin-bottom: 3.5rem;
  }

  .tp-tabs {
    justify-content: flex-start;
    gap: 1.4rem;
  }

  .tp-desc {
    padding:
      0.75rem
      0.875rem;
  }
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 680px) {
  :root {
    --nav-h: 70px;
  }

  .team-plain {
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
  }

  .tp-wrap {
    padding:
      1.5rem
      1rem
      2.5rem;
  }

  .tp-head {
    gap: 0.875rem;

    margin-bottom: 2.5rem;
  }

  .tp-title {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .tp-tabs {
    justify-content: flex-start;
    gap: 0.75rem;

    padding:
      0.625rem
      0.25rem;
  }

  .tp-tab {
    padding:
      0.5625rem
      0.75rem;

    font-size: 0.8125rem;
  }

  .tp-desc {
    margin-top: 0.125rem;

    padding:
      0.75rem
      0.875rem;

    font-size: 0.875rem;
    line-height: 1.65;
    text-align: center;
  }

  .tp-grid {
    grid-template-columns:
      repeat(
        auto-fit,
        minmax(
          min(9.375rem, 100%),
          1fr
        )
      );

    gap:
      1.75rem
      1.25rem;

    margin-top: 1.75rem;
  }

  .tp-avatar {
    --size: 9.375rem;
  }
}


/* ================================================================
   SMALL PHONES
   ================================================================ */

@media (max-width: 380px) {
  .tp-wrap {
    padding-inline: 0.75rem;
  }

  .tp-grid {
    grid-template-columns: 1fr;
  }

  .tp-avatar {
    --size: 9.75rem;
  }
}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  .tp-tab {
    transition: none;
  }

  .tp-tabs {
    scroll-behavior: auto;
  }
}