/* ==========================================================================
   Team band
   --------------------------------------------------------------------------
   Copy, photograph, dark teal panel. One column on a phone, three across from
   62rem, matching the mock-up's proportions (copy narrowest, photo widest).
   ========================================================================== */

.team-band__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 62rem) {
  .team-band__grid {
    /* Copy, photograph, panel. The copy column was .85fr and the heading was
       wrapping to three lines in roughly 300px; at 1fr it has ~355px and
       takes two, which sits better against the panel beside it. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--sp-4);
  }

  /* No photograph yet: two columns, not three with a hole in it. Declared
     inside the same media query so it overrides the rule above rather than
     relying on where it happens to sit in the file. */
  .team-band--no-image .team-band__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* The copy column spans the full height of the row and spreads its contents
   over it, so the heading's first line starts level with the top of the
   photograph and the button sits level with its bottom. Centred, the text
   floated in the middle of the row with uneven gaps above and below it, and
   the three columns read as three different shapes. */
.team-band__copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-1);
}

.team-band__heading {
  color: var(--color-heading);
  font-size: var(--fs-h3);
  margin: 0;
  text-wrap: balance;
}

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

.team-band__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-block-size: 15rem;
}

.team-band__image {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

/* --- The dark teal panel -------------------------------------------------- */

.team-band__panel {
  background: var(--color-surface-invert);
  color: var(--color-text-invert);
  border-radius: var(--radius-lg);
  padding: clamp(var(--sp-4), 2.2vw, var(--sp-5));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  justify-content: center;
}

/* The icon stands as tall as the two lines of the heading beside it, rather
   than as tall as one line of type. Sized from the heading's own scale, so it
   tracks --fs-h4 and --lh-snug if either is ever changed instead of needing to
   be re-measured. The inline size attributes on the SVG are overridden here.

   Centred against the block, since it now spans both lines. */
.team-band__panel-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.team-band__panel-icon {
  color: var(--color-accent-gold);
  flex: none;
}

.team-band__panel-icon svg {
  display: block;
  stroke-width: 1.2;                 /* lighter, so a large icon stays quiet */
  /* --lh-tight, not --lh-snug: headings inherit the tight leading from
     base.css, so using snug here made the icon 68px against a 60px heading
     block — close enough to look intended and wrong enough to sit proud of
     the second line. */
  inline-size: calc(2 * var(--lh-tight) * var(--fs-h4));
  block-size:  calc(2 * var(--lh-tight) * var(--fs-h4));
}

.team-band__panel-heading {
  color: var(--color-heading-invert);
  font-size: var(--fs-h4);
  margin: 0;
  text-wrap: balance;
}

.team-band__panel-text {
  color: var(--color-text-invert);
  font-size: var(--fs-sm);
  margin: 0;
}

.team-band__panel .btn { margin-block-start: var(--sp-2); }

.team-band__panel-phone {
  font-size: var(--fs-sm);
  color: var(--color-text-invert);
  margin: 0;
}

/* On the dark panel a gold link would drop to roughly 2:1. White, underlined,
   is the only pairing here that carries a link's meaning and passes. */
.team-band__panel-phone a {
  color: var(--color-heading-invert);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 30rem) {
  .team-band .btn { width: 100%; }
}

/* Phones and tablets, stacked: the photo runs the full width of the screen,
   edge to edge, with square corners (Liam, 22 Oct 2026). The negative margin
   cancels the container's side padding. */
@media (max-width: 61.99rem) {
  .team-band__media {
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0;
    box-shadow: none;
  }
}
