/* Additions for the AIxVIM pitch site.
   The bundled Tailwind stylesheet from johannesauer.com only contains the
   utilities the original page uses, so the two new building blocks — the
   language switcher and the team block — bring their own rules and reuse the
   design tokens (--color-*, --font-*, --ease-out) defined there. */

/* ---------- language switcher ---------- */

.at-langbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
}

@media (min-width: 640px) {
  .at-langbar {
    top: 1.5rem;
    right: 1.5rem;
  }
}

.at-lang ul {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 3px;
  list-style: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--color-bg) 88%, transparent);
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}

@supports (backdrop-filter: blur(1px)) {
  .at-lang ul {
    backdrop-filter: blur(12px);
  }
}

.at-lang a {
  display: block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-fg-tertiary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.at-lang a:hover {
  color: var(--color-fg);
}

.at-lang a[aria-current] {
  background-color: var(--color-fg);
  color: var(--color-fg-inverse);
}


/* ---------- team block ---------- */

.at-team-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem 4rem;
}

.at-team-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.at-team-photo {
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  /* The crop cuts the painted ring off the source photos, so a neutral hairline
     keeps the portraits defined against the section background. */
  box-shadow: 0 0 0 1px var(--color-border-default);
}

@media (min-width: 640px) {
  .at-team-photo {
    width: 11rem;
    height: 11rem;
  }
}

.at-team-name {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.at-team-role {
  display: block;
  margin-top: 0.15rem;
  font-size: 14px;
  color: var(--color-fg-secondary);
  text-align: center;
}

.at-team-place {
  display: block;
  margin-top: 0.35rem;
  font-size: 13px;
  color: var(--color-fg-tertiary);
  text-align: center;
}

.at-team-langs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.at-flag {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  /* Inset, so the rim sits on the flag and does not add to the circle's size;
     also keeps the white of the Union Jack from dissolving into the section. */
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 18%);
}

/* Holds the flag <symbol> definitions; never painted itself. */
.at-flag-defs {
  display: none;
}

.at-team-lead {
  max-width: 42rem;
  margin: 3rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.at-team-text {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  color: var(--color-fg-secondary);
  text-wrap: pretty;
}
