:root{
  --tp-max: 1400px;
  --ink: #101828;
  --muted: #5b6474;
  --accent: #06926D;
  --chip: #D09353;
  --nav-h: 80px;
  --tp-desc-bg: #fff8f0;
  --tp-desc-border: #e7c39d;
  --tp-desc-text: #5f4a33;
}

*{
  box-sizing: border-box;
}

.team-plain{
  background: #fff;
}

.tp-wrap{
  max-width: var(--tp-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 32px);
  color: var(--ink);
}

/* ---------- Headline ---------- */
.tp-head{
  display: grid;
  gap: 18px;
  margin-bottom: clamp(16px, 3vw, 20px);
  text-align: center;
}

.tp-title{
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: .2px;
  font-family: Tahoma, Roboto, Geneva, Verdana, sans-serif;
}

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

/* ---------- Sticky Tabs ---------- */
.tp-tabs{
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
  background: #fff;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4em;

  padding: 10px 6px;
  margin-inline: -6px;
  border-bottom: 1px solid #eef1f4;

  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c2d6db transparent;
}

.tp-tabs::-webkit-scrollbar{
  height: 8px;
}

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

.tp-tab{
  --pad-x: 14px;
  --pad-y: 10px;

  display: inline-block;
  text-decoration: none;
  color: #0b2033;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 5px;
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 15px);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid #D09353;
  font-family: Tahoma, Roboto, Geneva, Verdana, sans-serif;
}

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

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

/* ---------- Dynamic description ---------- */
.tp-desc{
  /* max-width: 980px; */
  max-width: 130ch;
  margin: 6px auto 0;
  padding: 7px 9px;
  background: var(--tp-desc-bg);
  border: 1px solid var(--tp-desc-border);
  border-radius: 10px;
  color: var(--tp-desc-text);
  text-align: left;
  font-family: Tahoma, Roboto, Geneva, Verdana, sans-serif;
  /* font-size: clamp(14px, 1.35vw, 16px); */
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- People grid ---------- */
.tp-grid{
  list-style: none;
  padding: 0;
  margin: clamp(10px, 2vw, 20px) 0 0;
  display: grid;
  gap: clamp(18px, 3.2vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tp-item{
  text-align: center;
}

/* ---------- Circular avatar ---------- */
.tp-avatar{
  --size: clamp(140px, 18vw, 190px);
  width: var(--size);
  height: var(--size);
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
}

.tp-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ---------- Name & role ---------- */
.tp-meta{
  display: grid;
  gap: 4px;
}

.tp-name{
  font-weight: 800;
  letter-spacing: .2px;
  color: #000;
  font-size: clamp(13px, 1.5vw, 16px);
  font-family: Tahoma, Roboto, Geneva, Verdana, sans-serif;
}

.tp-role{
  color: #AF8654;
  letter-spacing: .06em;
  font-size: clamp(11px, 1.4vw, 15px);
  line-height: 1.5;
  font-family: Tahoma, Roboto, Geneva, Verdana, sans-serif;
}

/* ---------- Large screens ---------- */
@media (min-width: 1200px){
  .tp-grid{
    gap: 40px;
  }
}

/* ---------- Tablets ---------- */
@media (max-width: 900px){
  .tp-tabs{
    gap: 1.4rem;
  }

  .tp-desc{
    padding: 12px 14px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 680px){
  .tp-wrap{
    padding: 24px 16px 40px;
  }

  .tp-head{
    gap: 14px;
  }

  .tp-tabs{
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 4px;
  }

  .tp-tab{
    font-size: 13px;
    padding: 9px 12px;
  }

  .tp-desc{
    margin-top: 2px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
  }

  .tp-grid{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 22px;
  }

  .tp-avatar{
    --size: 150px;
  }
}