.tkdm-team-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 42px 48px;
  border-bottom: 0;
}
.tkdm-team-banner::after {
  position: absolute;
  z-index: -1;
  inset: 0 -75px 0 auto;
  width: min(42vw, 580px);
  transform: skewX(-25deg);
  background: repeating-linear-gradient(90deg, transparent 0 52px, rgba(var(--highlight-rgb), .09) 52px 53px);
  content: "";
}
.tkdm-team-banner .container {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  gap: 25px;
}
.tkdm-team-banner h1 { font-size: clamp(2.65rem, 6.1vw, 6.5rem); }
.tkdm-team-banner h1 span { color: var(--accent-on-dark); }
.tkdm-team-intro:not(:empty) {
  max-width: 490px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgba(var(--highlight-rgb), .5);
  color: var(--light-muted);
  font-size: .85rem;
}
.tkdm-team-intro p { text-align: start !important; }
.tkdm-team-roster { padding-block: 35px 50px; }
.tkdm-team-roster > .wp-content {
  background: transparent;
  border: 0;
  padding: 0;
}
.tkdm-team-roster > .wp-content > p:is(:empty, :has(> style:only-child)) { display: none; }
.tkdm-team-toolbar,
.tkdm-team-heading,
.tkdm-team-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.tkdm-team-toolbar {
  justify-content: space-between;
  gap: 12px 20px;
  margin-block: 0 16px;
}
.tkdm-team-heading { align-items: baseline; gap: 10px; }
.tkdm-team-heading h2 { font-size: clamp(1.8rem, 3vw, 2.15rem); line-height: 1; }
.tkdm-team-heading span { font-size: .79rem; color: var(--muted); }
.tkdm-team-filters { gap: 6px; }
.tkdm-team-filters button {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: .74rem;
  font-weight: 750;
  cursor: pointer;
}
.tkdm-team-filters button:hover { border-color: var(--accent-on-light); }
.tkdm-team-filters button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }

.tkdm-team-page :is(.trainer-grid, .team-grid) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}
.tkdm-team-page :is(.trainer-grid > .trainer-card, .team-grid > .team-card) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  background: #fff;
  box-shadow: 0 3px 8px rgba(var(--dark-rgb), .055);
  text-align: start;
}
.tkdm-team-page .trainer-card:focus-within { border-color: var(--accent-on-light); }
.tkdm-team-page :is(.trainer-card__imgwrap, .team-card__imgwrap) {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.10;
  margin: 0;
  border-radius: 0;
  background: var(--soft);
}
.tkdm-team-page :is(.trainer-card__imgwrap, .team-card__imgwrap) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--portrait-position, 27%);
}
.tkdm-team-page .trainer-card__imgwrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(var(--dark-rgb), .65), transparent);
  pointer-events: none;
  content: "";
}
.tkdm-team-rank {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}
.tkdm-card-summary { flex: 1; padding: 14px; }
.tkdm-team-page :is(.trainer-card h2, .trainer-card h3, .team-card__name) {
  margin: 0;
  color: var(--ink);
  font: 800 clamp(1.51rem, 2.25vw, 2rem)/1.03 var(--display);
  text-align: start;
  text-transform: uppercase;
}
.tkdm-team-page .trainer-card > :is(h2, h3, p, ul) { margin-inline: 14px; }
.tkdm-team-page .team-card__name { padding: 15px 14px; }
.tkdm-team-page .tkdm-card-role {
  min-height: 2.7em;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.35;
}
.tkdm-team-page .tkdm-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}
.tkdm-card-tags li {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 750;
}
.tkdm-profile-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 49px;
  padding: 9px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}
.tkdm-profile-open:hover { background: var(--accent-wash); }
.tkdm-profile-open:focus-visible { outline-offset: -4px; }
.tkdm-profile-open svg {
  box-sizing: content-box;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-wash);
}

.tkdm-team-profile {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 25px 90px #0004;
}
body:has(.tkdm-team-profile[open]) { overflow: hidden; }
.tkdm-team-profile::backdrop { background: rgba(var(--dark-rgb), .78); }
.tkdm-profile-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 23px 55px 23px 23px;
  color: #fff;
  background: var(--dark);
}
.tkdm-profile-photo img { width: 96px; aspect-ratio: 1; object-fit: cover; object-position: center 25%; border-radius: 8px; }
.tkdm-profile-header .eyebrow { color: var(--accent-on-dark); }
.tkdm-profile-header h2 {
  margin-top: 6px;
  font: 800 clamp(1.7rem, 5.5vw, 3.2rem)/.98 var(--display);
  text-transform: uppercase;
}
.tkdm-profile-header button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
}
.tkdm-profile-header button:focus-visible { outline-color: var(--accent-on-dark); }
.tkdm-profile-details { padding: 22px clamp(15px, 5vw, 30px); overflow-wrap: anywhere; }
.tkdm-profile-details p { font-weight: 750; }
.tkdm-profile-details ul { margin: 4px 0 15px; padding-inline-start: 1.3em; }
.tkdm-profile-details a { color: var(--accent-on-light); text-decoration: underline; }

@media (max-width: 1080px) {
  .tkdm-team-page :is(.trainer-grid, .team-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 780px) {
  .tkdm-team-banner { padding-block: 30px; }
  .tkdm-team-banner .container { grid-template-columns: 1fr; gap: 14px; }
  .tkdm-team-page :is(.trainer-grid, .team-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
  .tkdm-team-roster { padding-block: 24px 34px; }
  .tkdm-team-page :is(.trainer-grid, .team-grid) { grid-template-columns: minmax(0, 1fr); }
  .tkdm-team-page :is(.trainer-card__imgwrap, .team-card__imgwrap) { aspect-ratio: 1.28; }
  .tkdm-team-page .tkdm-card-role { min-height: 0; }
  .tkdm-profile-photo img { width: 65px; }
}
