html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-fluid-sm);
  overscroll-behavior: none;
}

body {
  overflow: hidden;
}

.team-shell {
  min-height: 100vh;
  padding: var(--space-4);
  display: grid;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  gap: var(--space-4);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 217, 90, 0.38), transparent 32%),
    linear-gradient(135deg, #eef0f0 0%, #f6f4ec 55%, #fff2ba 100%);
}

.team-topbar {
  min-height: var(--topbar-height);
  padding: var(--space-2) var(--space-3);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
}

.team-brand,
.team-nav,
.team-topbar__actions,
.team-pill,
.team-icon-button {
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  backdrop-filter: blur(14px);
}

.team-brand {
  min-height: clamp(2.6rem, 3.4vw, 3.2rem);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  border-radius: 999px;
}

.team-brand span,
.team-brand strong {
  font-size: var(--text-fluid-md);
  line-height: 1;
}

.team-brand span {
  color: var(--color-muted);
  font-weight: 500;
}

.team-brand strong {
  color: var(--color-text);
  font-weight: 600;
}

.team-nav {
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  min-height: clamp(2.6rem, 3.4vw, 3.2rem);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: 999px;
  overflow-x: auto;
}

.team-nav a,
.team-pill {
  min-height: clamp(2.2rem, 2.8vw, 2.65rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
  border-radius: 999px;
  color: var(--color-text);
  font-size: var(--text-fluid-sm);
  font-weight: 500;
  white-space: nowrap;
}

.team-nav a:hover,
.team-pill:hover {
  background: var(--color-panel-solid);
}

.team-nav a.is-active,
.team-pill.is-active {
  background: var(--color-primary);
  color: #ffffff;
}

.team-topbar__actions {
  min-height: clamp(2.6rem, 3.4vw, 3.2rem);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: 999px;
}

.team-icon-button {
  width: clamp(2.2rem, 2.8vw, 2.65rem);
  height: clamp(2.2rem, 2.8vw, 2.65rem);
  border-radius: 999px;
  color: var(--color-text);
  cursor: pointer;
}

.team-main {
  min-height: 0;
  overflow: auto;
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px);
}

.page-shell {
  display: grid;
  gap: var(--space-5);
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.page-hero h1 {
  margin: 0;
  font-size: var(--text-fluid-xl);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: var(--space-2) 0 0;
  color: var(--color-muted);
  font-size: var(--text-fluid-md);
}

.team-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: var(--space-5);
}

.team-muted {
  margin: 0;
  color: var(--color-muted);
}

.team-button {
  min-height: clamp(2.45rem, 3vw, 2.9rem);
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0 var(--space-4);
  cursor: pointer;
  font-size: var(--text-fluid-sm);
  font-weight: 500;
}

.team-button--ghost {
  background: transparent;
  color: var(--color-primary);
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .team-shell {
    min-height: 100vh;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .team-topbar {
    grid-template-columns: 1fr;
  }

  .team-nav {
    justify-self: stretch;
    width: 100%;
  }

  .team-topbar__actions {
    width: fit-content;
  }

  .team-main {
    min-height: calc(100vh - var(--topbar-height) - (var(--space-4) * 3));
    padding: var(--space-4);
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}
