/* ===========================================================================
   TEAM — page styles
   Route: /team/

   The TE system (assets/css/te-system.css) supplies the chassis, plates,
   modules and technical labelling. Everything here is page-specific and scoped
   under `.te-team` inside `.mfte`. Do NOT add a <style> block to team.html.

   SHAPE LOCK applies: the only radii below are 14px (plates, inherited) and
   6px (the headshot, which is a control-sized object). No third value.
   =========================================================================== */

/* The masthead runs two ledes (hero_lede then intro). .te-lede carries no
   bottom margin in the system, so without this they read as one block. */
/* .te-team sits ON the .mfte element, not inside it - a descendant combinator
   here matches nothing. */
.mfte.te-team .te-lede + .te-lede { margin-top: 18px; }

/* ── ROSTER ────────────────────────────────────────────────────────────────
   One module per person. The photo is a fixed square rather than a circle so
   it shares the 6px control radius with every other small object on the page. */

.mfte .te-team__roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.mfte .te-team__member {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.mfte .te-team__photo {
  width: 132px;
  height: 132px;
  border-radius: var(--te-r-control);
  object-fit: cover;
  display: block;
  background: var(--te-rule);
}

/* Fallback for anyone added without a headshot. Not dead code — it is what
   renders until a photo exists, so keep it in step with .te-team__photo. */
.mfte .te-team__initials {
  width: 132px;
  height: 132px;
  border-radius: var(--te-r-control);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--te-accent);
  color: #ffffff;
  font-family: var(--te-mono);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
}

.mfte .te-team__name {
  margin: 0 0 6px;
  line-height: 1.15;
}

/* Job title and contact link both take the technical-label treatment. Black
   rather than the system's muted grey — a deliberate call, they read as the
   two hard facts on the card. */
.mfte .te-team__role {
  margin: 0 0 16px;
  font-family: var(--te-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #000000;
}

.mfte .te-team__bio p {
  margin: 0 0 14px;
  color: var(--te-fg-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.mfte .te-team__bio p:last-child { margin-bottom: 0; }

.mfte .te-team__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--te-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #000000;
  text-decoration: none;
}

.mfte .te-team__contact:hover {
  color: var(--te-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mfte .te-team__contact-arrow { transition: transform 0.2s ease; }
.mfte .te-team__contact:hover .te-team__contact-arrow { transform: translateX(3px); }

/* General support sits below the roster, so it needs the gap the roster's own
   grid provides between people. */
.mfte .te-team__support { margin-top: 14px; }

/* ── CLOSER ────────────────────────────────────────────────────────────────
   The dark plate reads as a display, per the system metaphor. */

.mfte .te-team__closer { text-align: center; }
.mfte .te-team__closer-title { margin: 0 0 22px; max-width: 30ch; margin-inline: auto; }
.mfte .te-team__closer-body p {
  margin: 0 0 16px;
  color: var(--te-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.mfte .te-team__closer-body p:last-child { margin-bottom: 0; }
.mfte .te-team__closer-body strong { color: #ffffff; }

.mfte .te-team__closer-tag {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--te-ink-rule);
  color: var(--te-accent);
  font-family: var(--te-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

/* ── PHONE ─────────────────────────────────────────────────────────────────
   Stacked, the photo column would squeeze the bio to an unreadable measure. */

@media (max-width: 767px) {
  .mfte .te-team__member {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .mfte .te-team__photo,
  .mfte .te-team__initials { width: 104px; height: 104px; }

  .mfte .te-team__bio p { font-size: 0.9375rem; }
}
