/* Section titles — ONE recipe for the homepage section headings (h2 elements that
   share --section-title-*, defined in vars.css). Don't set a font-size on an
   individual section heading; add it to this list. Deliberate exceptions:
   .key-numbers__heading is a SECONDARY heading (plain h2 step, --h2-fs, from
   typography.css) and .large-cta__heading takes the h1 step (its own rule
   below the jumbo one). */
.hero-block__heading,
.video-text__heading,
.comparison__heading,
.icon-cards__heading,
.alternating-cards__heading,
.figure-cards__heading,
.faqs__heading,
.testimonials__heading,
.team__heading,
.text-columns__heading,
.contact__heading,
.meetings-groups__heading,
.meetings-list__heading {
  font-size: var(--section-title-fs);
  line-height: var(--section-title-lh);
  letter-spacing: var(--section-title-ls);
}

/* A section heading that IS the page's <h1> (a Media and Text opener set to
   H1) takes the page-title step (--page-title-*, vars.css), matching the
   title band on every other page, with or without its disc. The `h1`
   qualifier out-ranks the class-only rule above. */
h1.video-text__heading {
  font-size: var(--page-title-fs);
  line-height: var(--page-title-lh);
  letter-spacing: var(--page-title-ls);
}

/* …and one set to H3 (a section under another heading) steps down to h3. */
h3.video-text__heading {
  font-size: var(--h3-fs);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
}

/* Hero section */

/* Jumbo heading — full-width row above the grid */

.hero-jumbo {
  display: flex;
  flex-direction: column;
  gap: var(--heading-gap); /* heading → its copy (stacked); the column gap from 62rem */
  margin-bottom: var(--space-lg);
}

/* Display size (--display-*): the hero-jumbo only. */
.hero-jumbo__heading {
  font-size: var(--display-fs);
  font-weight: 700; /* display stays bold; plain h2 is semibold */
  line-height: var(--display-lh);
  letter-spacing: var(--display-ls);
}

/* The Large CTA heading is an h2 at the h1 step (and h1's bold) — a clear
   step above the section titles, below the jumbo. */
.large-cta__heading {
  font-size: var(--h1-fs);
  font-weight: 700;
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-ls);
}

.hero-jumbo__aside {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--space-md);
}

.hero-jumbo__arrow {
  align-self: flex-start;
  min-width: 45px;
  width: 45px;
  color: var(--primary-color);
  align-self: flex-end;
}

.hero-jumbo__arrow svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-jumbo__excerpt {
  margin-top: 0;
}

.hero-grid {
  display: grid;
  gap: var(--card-gap);
}

@media (min-width: 62rem) {

  .hero-jumbo__aside {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-jumbo {
    display: grid;
    gap: var(--space-md-lg-d);
    grid-template-columns: var(--grid-wide) var(--grid-narrow);
    align-items: last baseline; /* line heading + excerpt up by their last text baseline */
  }

}

/* Solid-colour content panel — shared by the hero blocks and the map aside. */
.hero-block,
.color-block {
  display: flex;
  flex-direction: column;
  color: var(--white);

  gap: var(--space-md-lg-d);
  padding: var(--space-md-lg-d);
  border-radius: var(--br-md);
}

.hero-block__heading {
  color: var(--white);
}

.hero-block__excerpt {
  margin-top: var(--heading-gap); /* heading → its copy */
}

.hero-block--small {
  justify-content: space-between;
}

.hero-block--primary,
.color-block--primary {
  background: var(--primary-color);
}

.hero-block--secondary,
.color-block--secondary {
  background: var(--secondary-color);
}

.hero-block--large {
  position: relative;
  order: -1;
  justify-content: flex-end;
  min-height: 26rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(51, 51, 51, 1) 0%,
    rgba(51, 51, 51, 0) 85%
  );
}

.hero-block__content {
  position: relative;
  display: flex;
  flex-direction: column;

  gap: var(--space-md);
  padding: 0;
}



@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: var(--grid-narrow) var(--grid-wide);
    grid-template-rows: 1fr 1fr;
  }

  .hero-block--large {
    order: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .hero-block,
  .color-block {
    border-radius: var(--br-lg);
  }
  
  .hero-block__content {
    padding: 0;
  }
  
}


@media (min-width: 48rem) {
  .hero-block__content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .hero-block--large .cta-button {
    align-self: flex-end;
  }
}


/* Testimonials carousel */

.testimonials.section {
  /* The inner .container already supplies the page gutter, so cancel the base
     .section padding-inline. Otherwise this container is double-inset at
     sub-cap widths (section space-sm + container space-md) and the cards sit a
     space-sm short of where every other .container on the site aligns. */
  padding-inline: 0;

  /* The visible inner width of the .container — cards are sized against this
     so a fixed number fit "in the container" regardless of how far the track
     bleeds past it. 100vw (not 100%) because the track is full-bleed: a
     percentage resolves against the bled track, landing the cards a space-md
     short of the container's right edge. */
  --container-inner: min(100vw - var(--space-md) * 2, var(--container-width));
}

.testimonials__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.testimonials__heading {
  margin: 0;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding: var(--space-md-lg-d);
  background-color: var(--white);
  border-radius: var(--br-md);
}

/* Photo / avatar wrapper (a link when the name is). align-self keeps a linked
   wrapper the size of the picture rather than the card's full width. */
.testimonial-card__media {
  align-self: flex-start;
}

/* No underline on the initials (out-ranks typography.css's global a:hover). */
a.testimonial-card__media:hover {
  text-decoration: none;
}

.testimonial-card__photo {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: var(--br-rounded);
  object-fit: cover;
}

/* A Hive member with no uploaded photo: the member-identity avatar/initials,
   sized to the 4.25rem (68px) photo (overrides the 95px card size). */
.testimonial-card__media .avatar,
.testimonial-card__media .initials {
  width: 4.25rem;
  height: 4.25rem;
}

.testimonial-card__media .initials {
  font-size: 1.25rem;
}

.testimonial-card__person {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.testimonial-card__name {
  margin: 0;
  font-size: var(--h3-fs);
}

/* Hive member's business: the small-uppercase purple label the group name used. */
.testimonial-card__business {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 700;
  letter-spacing: var(--label-letter-spacing);
  text-transform: uppercase;
  color: var(--secondary-color);
}

/* Profile link: the cue is the pink colour only (out-ranks typography.css's
   global a:hover underline), like the contact card titles. */
.testimonial-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

/* Hovering the linked picture lights up the name too. */
.testimonial-card__name a:is(:hover, :focus-visible),
.testimonial-card:has(a.testimonial-card__media:hover) .testimonial-card__name a {
  color: var(--primary-color);
  text-decoration: none;
}

.testimonial-card__quote {
  margin: 0;
}


/* Team ("Meet the team") — section-team.php. A heading + optional intro over
   a grid of team cards: the Testimonials section's .testimonial-card (above —
   picture, h3 name, the role as its small-uppercase label) with a bio where the
   quote sits, in the shared .cards grid (1 / 2 / 3, --card-gap; cards.css) —
   more people wrap onto new rows (four across made the cards too narrow).
   The intro shares Media and Text's copy rules (below). */

.team__body {
  display: flex;
  flex-direction: column;
  gap: var(--heading-gap); /* heading → intro */
}

/* Joined to a grey band above (layout.css gives a joined grey section only
   --space-md on top): a headed Team / Associates section after another one's
   cards needs a clear break, bigger than its own heading → cards gap, or the
   heading reads as part of the cards above. Still one band. */
.section--grey + .team.section--grey:has(> .container > .team__body) {
  padding-top: var(--space-xl);
}

/* Heading / intro → the cards. On the grid, so a section with no cards yet
   doesn't keep the gap. */
.team__body + .team__grid {
  margin-top: var(--space-lg);
}

.team__heading {
  margin: 0;
}

/* A larger picture than a testimonial's 68px: back to the standard 95px avatar
   (elements.css) and its initials size. An uploaded photo matches it. */
.team-card .testimonial-card__photo,
.team-card .testimonial-card__media :is(.avatar, .initials) {
  width: var(--avatar-size);
  height: var(--avatar-size);
}

.team-card .testimonial-card__media .initials {
  font-size: var(--section-title-fs);
}

/* Bio: small text (14px), paragraphs (wpautop'd textarea) at the prose gap. */
.team-card__bio {
  font-size: var(--font-sm);
}

.team-card__bio > p {
  margin: 0;
}

.team-card__bio > p + p {
  margin-top: var(--space-md);
}

/* "View profile" (linked cards): the shared .link-cue (elements.css — 14px
   pink, arrow-cta in a 20% tint disc), pinned to the card foot so the links
   line up across a row. The disc also deepens while the name link is hovered
   or focused; hovering this link turns the name pink. */
.team-card__link {
  margin: auto 0 0;
  /* A touch more than the card's --space-sm gap above it. Padding, as the
     margin is `auto` (pins the link to the card foot). */
  padding-top: var(--space-xs);
}

/* The link itself is the shared .link-cue (elements.css); its disc also
   deepens while the name link is hovered or focused. */
.team-card:has(.testimonial-card__name a:is(:hover, :focus-visible)) .team-card__link .link-cue {
  --link-cue-tint: 30%;
}

.team-card:has(.team-card__link a:hover) .testimonial-card__name a {
  color: var(--primary-color);
}


/* Key Numbers */

.key-numbers {
  /* The cap key-numbers.js scales the stat font size up to. */
  --kn-max-size: 4rem;
}

.key-numbers__grid {
  display: grid;
  gap: var(--space-lg); /* intro → cards stacked (heading / intro → content); the two-column gap from 62rem */
  align-items: center;
}

.key-numbers__intro {
  display: flex;
  flex-direction: column;
  gap: var(--heading-gap); /* heading → its copy */
}

.key-numbers__heading {
  margin: 0;
}

.key-numbers__paragraph {
  margin: 0;
}

.key-numbers__cards {
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.number-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  text-align: center;
  background-color: var(--white);
  border-radius: var(--br-lg);
  margin-top: var(--card-gap);
}

.number-card:first-of-type {
  margin-top: 0; 
}

.number-card__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
  width: 100%;
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1;
  /* Starting size; key-numbers.js overrides it to a shared, fitted size. */
  font-size: var(--kn-max-size);
  white-space: nowrap;
  color: var(--text-color);
}

.number-card__special {
  font-size: 0.8em;
  color: var(--primary-color);
}

.number-card__label {
  margin: 0;
}

@media (min-width: 62rem) {
  .key-numbers__grid {
    grid-template-columns: var(--grid-narrow) var(--grid-wide);
  }

  /* Vertical divider between the intro and the cards */
  .key-numbers__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .number-card {
    margin-top: 0;
    aspect-ratio: 1;
    gap: var(--space-sm);
  }
}


/* Media and Text (the `video_and_text` layout — video OR image + rich text) */

.video-text__grid {
  display: grid;
  /* Bigger than the standard --space-md-lg-d when stacked (it's the same
     --space-lg from 62rem): the heading has to read as part of the text below
     it, not the media above. */
  gap: var(--space-lg);
  align-items: center;
}

.video-text__media {
  overflow: hidden;
  border-radius: var(--br-lg);
  box-shadow: var(--shadow);
}

/* Video: fixed 16:9 box the oEmbed iframe fills. */
.video-text--video .video-text__media {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-text__media iframe,
.video-text__media object,
.video-text__media embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* On the purple band, prose links follow the band's white. */
.section--purple .video-text__copy a:not(.button):not(.cta-button) {
  color: inherit;
}

/* Summary card: the Comparison card (.comparison__card) brings its own radius
   and clipping, so drop the wrapper's photo frame. */
.video-text--card .video-text__media {
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

/* Image: keeps its own proportions (unless it's a .media-fill crop). */
.video-text__media:not(.media-fill) img {
  display: block;
  width: 100%;
  height: auto;
}

.video-text__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.video-text__heading {
  margin: 0;
}

/* Heading + copy: the heading → copy step, --heading-gap (the body's gap spaces
   the button below). An H1 takes the same gap. With the .page-title disc the
   disc's bottom is a hard edge with no space under it, so it needs
   --space-lg to read as part of its copy. */
.video-text__intro {
  display: flex;
  flex-direction: column;
  gap: var(--heading-gap);
}

.video-text__intro:has(> .page-title) {
  gap: var(--space-lg);
}

/* .rich-text brings the prose rules; drop its centred-column sizing here.
   Shared with the Icon Cards and Team intros and the Text Columns columns
   (same copy, same tick list). */
:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col).rich-text {
  width: auto;
  margin-inline: 0;
}

:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) > :first-child {
  margin-top: 0;
}

:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) > :last-child {
  margin-bottom: 0;
}

:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) :is(h3, h4, h5, h6) {
  color: var(--text-color);
}

/* A sub-heading in this short copy is a lead-in, not a new section, so it gets
   the smaller --space-md gap rather than the global prose `* + h4` break
   (--space-lg on desktop, typography.css). Two classes to out-rank both that
   and the .rich-text heading rules. */
:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col).rich-text * + :is(h3, h4, h5, h6) {
  margin-top: var(--space-md);
}

/* Tick list: top-level bullets become a check glyph in a 20% pink tint disc
   (same look as wibn_icon('check', 'icon-bkg'), drawn in CSS because the list
   comes from the editor). ::before = disc, ::after = masked glyph. */
:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) > ul {
  --tick-size: 1.5em;
  padding-left: 0;
  list-style: none;
}

:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) > ul > li {
  position: relative;
  padding-left: calc(var(--tick-size) + var(--space-sm));
}

:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) > ul > li::before,
:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) > ul > li::after {
  content: "";
  position: absolute;
  left: 0;
  /* Centre the disc on the first line of a wrapping item. */
  top: calc((1lh - var(--tick-size)) / 2);
  width: var(--tick-size);
  height: var(--tick-size);
  border-radius: 50%;
}

:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) > ul > li::before {
  background-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
}

:is(.video-text__copy, .icon-cards__intro, .team__intro, .text-columns__col) > ul > li::after {
  background-color: var(--primary-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 16 640 640'%3E%3Cpath d='M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z'/%3E%3C/svg%3E") no-repeat center / 66%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 16 640 640'%3E%3Cpath d='M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z'/%3E%3C/svg%3E") no-repeat center / 66%;
}

/* Mobile order (below desktop, where the grid is one column): the editor picks
   which stacks first, independent of the desktop media position / DOM order. */
.video-text--mobile-media-first .video-text__media {
  order: -1;
}

.video-text--mobile-text-first .video-text__media {
  order: 1;
}

/* Hide image on mobile and tablet (hide_media_mobile): below desktop the text
   stands alone. */
@media (max-width: 61.99rem) {
  .video-text--hide-media-mobile .video-text__media {
    display: none;
  }
}

/* Media width: each option sets the media's and the text's share as two fr
   values (default 2/3 = the standard --grid-wide / --grid-narrow split). */
.video-text {
  --media-fr: var(--grid-wide);
  --text-fr: var(--grid-narrow);
}

.video-text--media-three-fifths { --media-fr: 3fr; --text-fr: 2fr; }
.video-text--media-half         { --media-fr: 1fr; --text-fr: 1fr; }
.video-text--media-two-fifths   { --media-fr: 2fr; --text-fr: 3fr; }
.video-text--media-narrow       { --media-fr: var(--grid-narrow); --text-fr: var(--grid-wide); }

@media (min-width: 62rem) {
  /* The DOM follows the media position (left = media first), so the two
     shares are simply listed in that order. */
  .video-text__grid {
    grid-template-columns: var(--media-fr) var(--text-fr);
  }

  .video-text--media-right .video-text__grid {
    grid-template-columns: var(--text-fr) var(--media-fr);
  }

  /* Desktop follows DOM order — the media position decides the side. Two
     classes so it matches (and, coming later, beats) the mobile-order rules. */
  .video-text .video-text__media {
    order: 0;
  }

  /* Image at half width or less (.media-fill, layout.css — set in the
     partial): stands a fixed --space-lg taller than the text at each end. The
     text column is padded by that amount and the image stretches to the row
     height; the fill img never sets the height, so the text alone does. */
  .video-text--media-fill .video-text__body {
    padding-block: var(--space-lg);
  }

  .video-text .media-fill {
    aspect-ratio: auto;
    align-self: stretch;
  }
}


/* Text Columns — section-text-columns.php. The heading on its own line over two
   columns of copy (Media and Text's copy rules, above), both starting at the
   top, from desktop. Below 62rem the right text follows the left at the
   paragraph gap (--space-md, typography.css's `* + p`), so it reads as one run
   of copy. One filled column = one full-width column. */

.text-columns__heading {
  margin: 0 0 var(--heading-gap); /* heading → its copy */
}

.text-columns__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-md);
}

@media (min-width: 62rem) {
  .text-columns__grid:has(> :nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-md-lg-d);
  }
}


/* Highlights strip — full-width brand band of icon + text highlights */

.highlights {
  padding-block: var(--space-md-lg-d);
  color: var(--white);
}

.highlights--primary {
  background: var(--primary-color);
}

.highlights--secondary {
  background: var(--secondary-color);
}

/* Always one equal column per item, divided by a thin translucent rule.
   Mobile: icon centred over centred text; from tablet: icon beside text. */
.highlights__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cancel the global `li + li` list rhythm — the grid spaces the items. */
.highlights__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.highlights__item + .highlights__item {
  border-left: 1px solid color-mix(in srgb, var(--white) 35%, transparent);
}

/* .icon-rev, recoloured: a white disc with the glyph in the band colour
   (rather than knocked out to the page background). Two classes so the size
   and inset beat .icon-rev's own defaults (elements.css loads later). */
.highlights .highlights__icon {
  --icon-size: 2.75rem;
  --icon-glyph: 0.58;
  flex-shrink: 0;
  color: var(--white);
}

.highlights--primary .highlights__icon {
  fill: var(--primary-color);
}

.highlights--secondary .highlights__icon {
  fill: var(--secondary-color);
}

/* Balanced so each label breaks evenly and the items read as a matching set. */
.highlights__text {
  max-width: 11em;
  text-wrap: balance;
}

@media (min-width: 48rem) {
  .highlights__item {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-sm-md-t);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--h4-h5-fs);
    line-height: var(--h4-h5-lh);
    text-align: left;
  }

  .highlights .highlights__icon {
    --icon-size: 3.5rem;
  }
}


/* Comparison table ("what you do / what we do") — section-comparison.php.
   Desktop: a real table whose two compared columns read as cards (coloured
   header, white rows, coloured summary footer), separated by border-spacing.
   Below tablet: the table is swapped for two column cards (see below). */

.comparison__heading {
  margin: 0 0 var(--space-lg);
}

/* Heading → its copy. */
.comparison__heading:has(+ .comparison__intro) {
  margin-bottom: var(--heading-gap);
}

/* Full container width. */
.comparison__intro {
  margin-bottom: var(--space-lg);
}

.comparison__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison__table :is(th, td) {
  text-align: left;
  vertical-align: top;
}

.comparison__intro p {
  margin: 0;
}

.comparison__intro p + p {
  margin-top: var(--space-sm);
}

.comparison__label {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--text-color);
}

.comparison__cell {
  color: var(--text-color);
}

/* Column labels: the coloured "card header" is the inner span, so it sits at
   the foot of the header row however tall the intro beside it is. */
.comparison__col-label {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--br-md) var(--br-md) 0 0;
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--white);
}

.comparison__col--a .comparison__col-label,
tfoot .comparison__cell--a {
  background: var(--primary-color);
}

.comparison__col--b .comparison__col-label,
tfoot .comparison__cell--b {
  background: var(--secondary-color);
}

tfoot .comparison__cell {
  font-weight: 700;
  color: var(--white);
}

/* Mobile: the table is swapped for two column cards (the second rendering in
   section-comparison.php) — coloured title, row label + text pairs, and the
   summary as a coloured footer. From tablet up it's the reverse. */
.comparison__cards {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.comparison__card {
  overflow: hidden;
  border-radius: var(--br-md);
  background: var(--white);
}

.comparison__card-title,
.comparison__card-footer {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--white);
}

.comparison__card-title {
  font-size: var(--h4-h5-fs);
  line-height: var(--h4-h5-lh);
}

.comparison__card--a :is(.comparison__card-title, .comparison__card-footer) {
  background: var(--primary-color);
}

.comparison__card--b :is(.comparison__card-title, .comparison__card-footer) {
  background: var(--secondary-color);
}

.comparison__card-list {
  margin: 0;
  padding: 0 var(--space-md);
}

.comparison__card-row {
  padding-block: var(--space-sm);
}

.comparison__card-row + .comparison__card-row {
  border-top: 1px solid var(--grey-10);
}

/* Row labels in the text colour, not the column colour — the purple is too
   faint for small text on white; the card's title + footer carry the colour. */
.comparison__card-list dt {
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: var(--label-letter-spacing);
  text-transform: uppercase;
  color: var(--text-color);
}

.comparison__card-list dd {
  margin: var(--space-xs) 0 0;
  color: var(--text-color);
}

@media (max-width: 47.99rem) {
  .comparison__table {
    display: none;
  }
}

@media (min-width: 48rem) {
  .comparison__cards {
    display: none;
  }
}

/* Tablet up: the table proper. Horizontal border-spacing gaps the columns
   into separate cards; the negative margin cancels the outer spacing so the
   table lines up with the container edges. */
@media (min-width: 48rem) {
  .comparison__table {
    width: calc(100% + var(--card-gap) * 2);
    margin-inline: calc(var(--card-gap) * -1);
    border-spacing: var(--card-gap) 0;
  }

  /* Label column narrow (short labels); the two compared columns equal. */
  .comparison__corner {
    width: 22%;
  }

  .comparison__col {
    width: 39%;
    padding: 0;
  }

  .comparison__label,
  .comparison__cell {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--grey-20);
  }

  .comparison__label {
    padding-left: 0;
  }

  tbody .comparison__cell {
    background: var(--white);
    border-bottom-color: var(--grey-10);
  }

  tfoot :is(.comparison__label, .comparison__cell) {
    border-bottom: 0;
  }

  tfoot .comparison__cell {
    border-radius: 0 0 var(--br-md) var(--br-md);
  }
}


/* Icon Cards ("what you get out of it") — section-icon-cards.php.
   Built on the shared .card (padding, radius) but unfilled, with a dotted
   border and a large tinted icon disc (.icon-bkg), both in the card's tone,
   sits beside the title + text. Optional intro (copy + tick list shared with
   Media and Text, above); `--beside` puts heading + intro in the left half
   with the cards stacked on the right; `--cols-2` = two masonry columns. */

.icon-cards__body {
  display: flex;
  flex-direction: column;
  gap: var(--heading-gap); /* heading → intro */
}

.icon-cards__heading {
  margin: 0;
}

.icon-cards--grid .icon-cards__body {
  margin-bottom: var(--space-lg);
}

.icon-cards__grid {
  display: grid;
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Two classes: cards.css loads after this file, so a lone .icon-card would
   lose to .card's column direction and white fill. */
.card.icon-card {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: none;
  border: var(--border-width-lg) dotted currentColor; /* the card's tone, below */
}

.icon-card--primary {
  color: var(--primary-color);
}

.icon-card--secondary {
  color: var(--secondary-color);
}

/* Larger, paler disc than the .icon-bkg default (per the design). */
.icon-card .icon-card__icon {
  --icon-size: 3.5rem; /* phones: smaller disc so the text keeps its width */
  --icon-glyph: 0.5;
  flex-shrink: 0;
  background-color: color-mix(in srgb, currentColor 12%, transparent);
}

@media (min-width: 48rem) {
  .icon-card .icon-card__icon {
    --icon-size: 5rem;
  }
}

.icon-card__title {
  margin: 0;
  font-size: var(--h3-fs);
  line-height: var(--h3-lh);
  color: var(--text-color);
}

.icon-card__text {
  margin: var(--space-sm) 0 0;
  font-size: var(--font-sm);
  color: var(--text-color);
}

.icon-card__text > * {
  margin: 0;
}

.icon-card__text > * + * {
  margin-top: var(--space-sm);
}

/* Filled dots in the card's tone (pink or purple). Set explicitly: the card is
   itself an <li> in the grid's <ul>, so the browser would otherwise give this
   list nested-list circles. */
.icon-card__text ul {
  list-style-type: disc;
}

.icon-card--primary .icon-card__text li::marker {
  color: var(--primary-color);
}

.icon-card--secondary .icon-card__text li::marker {
  color: var(--secondary-color);
}

/* Bullets sit closer than the global `li + li` rhythm (space-sm). */
.icon-card__text li + li {
  margin-top: var(--space-xs);
}

@media (min-width: 48rem) {
  .icon-cards--grid .icon-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Two masonry columns: the cards keep their own heights (CSS columns, so
     the reading order runs down the left column, then the right). The cards'
     bottom margin replaces the grid gap; the list's negative margin cancels
     the last one in each column. */
  .icon-cards--cols-2 .icon-cards__grid {
    display: block;
    columns: 2;
    column-gap: var(--card-gap);
    margin-bottom: calc(-1 * var(--card-gap));
  }

  /* inline-flex, not just break-inside: avoid — Firefox still fragments a
     block-level card at a column break (gap opening up inside the card);
     inline-level boxes are never split. vertical-align drops the baseline
     gap an inline box leaves below it. */
  .icon-cards--cols-2 .card.icon-card {
    display: inline-flex;
    width: 100%;
    vertical-align: top;
    margin-bottom: var(--card-gap);
    break-inside: avoid;
  }
}

@media (min-width: 62rem) {
  .icon-cards--grid:not(.icon-cards--cols-2) .icon-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Beside: heading + intro left half, cards stacked on the right (DOM order
     = text first, which is also the mobile order). */
  .icon-cards--beside .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md-lg-d); /* the standard two-column gap */
    align-items: center;
  }
}

/* Beside, below desktop: the stacked text needs the same gap to the cards. */
@media (max-width: 61.99rem) {
  .icon-cards--beside .icon-cards__body {
    margin-bottom: var(--space-lg);
  }
}


/* Alternating Cards ("room to grow") — section-alternating-cards.php.
   White .card with the text block and a full-bleed 2:1 image; on desktop every
   even card flips its image to the top for the zig-zag (mobile: text first). Equal-height cards: the text
   block grows, so the image always meets the card edge. */

.alternating-cards__heading,
.figure-cards__heading {
  margin: 0 0 var(--space-lg);
}

/* Heading straight into an intro: the heading → copy gap (as in Comparison
   and the Icon Cards intro); the intro then spaces the cards. */
.alternating-cards__heading:has(+ .alternating-cards__intro),
.figure-cards__heading:has(+ .figure-cards__intro) {
  margin-bottom: var(--heading-gap);
}

.alternating-cards__grid {
  display: grid;
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Two classes: cards.css loads after this file and sets .card's padding/gap. */
.card.alternating-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.alternating-card__body {
  flex: 1;
  padding: var(--space-md-lg-d);
}


.alternating-card__image {
  aspect-ratio: 2 / 1;
}

.alternating-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alternating-card__title {
  margin: 0;
  font-size: var(--h3-fs);
  line-height: var(--h3-lh);
}

.alternating-card__text {
  margin: var(--space-sm) 0 0;
  color: var(--text-color);
}

.alternating-cards__intro,
.figure-cards__intro {
  margin-bottom: var(--space-lg);
}

.alternating-cards__footnote,
.figure-cards__footnote {
  margin-top: var(--space-md);
}

:is(.alternating-cards__intro, .alternating-cards__footnote, .figure-cards__intro, .figure-cards__footnote) p {
  margin: 0;
}

:is(.alternating-cards__intro, .alternating-cards__footnote, .figure-cards__intro, .figure-cards__footnote) p + p {
  margin-top: var(--space-sm);
}

@media (min-width: 62rem) {
  .alternating-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* The zig-zag is desktop-only; stacked cards all read text first. */
  .alternating-card:nth-child(even) .alternating-card__image {
    order: -1;
  }
}


/* Figure Cards ("what you can earn") — section-figure-cards.php.
   Each card is the Comparison column card (.comparison__card --a pink / --b
   purple, above): a centred coloured head (title + subtitle) over a ruled row
   of labelled figures, divided like the Story Card's stats. Heading, intro and
   footnote share the Alternating Cards rules. */

.figure-cards__grid {
  display: grid;
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cancel the global `li + li` list rhythm — the grid spaces the cards. */
.figure-card {
  margin: 0;
}

.figure-card__head {
  text-align: center;
}

.figure-card__title {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.figure-card__subtitle {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--font-sm);
  font-weight: 400;
}

.figure-card__figures {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  padding-block: var(--space-sm);
}

.figure-card__figure {
  padding: var(--space-sm);
  text-align: center;
}

.figure-card__figure + .figure-card__figure {
  border-left: 1px solid var(--grey-20);
}

/* Label: the Comparison card's row-label recipe. */
.figure-card__figure dt {
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: var(--label-letter-spacing);
  text-transform: uppercase;
  color: var(--text-color);
}

.figure-card__figure dd {
  margin: var(--space-xs) 0 0;
  font-family: var(--heading-font);
  font-size: var(--h3-fs);
  font-weight: 600;
  line-height: var(--h3-lh);
  color: var(--text-color);
}

@media (min-width: 48rem) {
  .figure-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Story Card ("Group Leader story") — section-story-card.php.
   One white .card: a .media-fill photo (layout.css) beside the label pill,
   headline, text and a ruled stats row. Photo on top below desktop (3:2),
   left half from desktop, stretched to the content's height. */

/* Two classes: cards.css loads after this file and sets .card's padding/gap. */
.card.story-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.story-card__body {
  padding: var(--space-md-lg-d);
}

/* Video: a 16:9 box the oEmbed iframe fills (on top below desktop). From
   desktop it stretches to the row like the photo — the player letterboxes
   itself if the text runs taller than 16:9. */
.story-card__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--grey-90);
}

.story-card__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Label pill: pink text on a pale pink fill with a pink outline. */
.story-card__label {
  display: inline-block;
  margin: 0;
  padding: 0.35em 1em;
  border: var(--border-width) solid var(--primary-color);
  border-radius: var(--br-rounded);
  background: var(--primary-10);
  color: var(--primary-on-tint);
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--label-letter-spacing);
  text-transform: uppercase;
}

/* A quote-length headline, so a smaller step than the plain h2. */
.story-card__headline {
  margin: var(--space-md) 0 0;
  font-size: var(--h4-h5-fs);
  line-height: var(--h4-h5-lh);
}

.story-card__text {
  margin-top: var(--space-sm);
  color: var(--text-color);
}

.story-card__text p {
  margin: 0;
}

.story-card__text p + p {
  margin-top: var(--space-sm);
}

/* Stats: equal columns, ruled top and bottom, divided between. */
.story-card__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: var(--space-md-lg-d) 0 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--grey-20);
}

.story-stat {
  margin: 0;
  padding: var(--space-sm);
  text-align: center;
}

.story-stat + .story-stat {
  border-left: 1px solid var(--grey-20);
}

.story-stat__value {
  margin: 0;
  font-family: var(--heading-font);
  font-size: var(--h2-fs);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-color);
}

.story-stat__label {
  margin: var(--space-xs) 0 0;
  font-size: var(--font-sm);
  color: var(--text-color);
}

@media (min-width: 62rem) {
  .card.story-card {
    grid-template-columns: 1fr 1fr;
  }

  .story-card--no-image.card {
    grid-template-columns: 1fr;
  }

  .story-card .media-fill {
    aspect-ratio: auto;
  }

  /* Keeps its 16:9 ratio as the row's minimum height, and stretches when the
     text runs taller (an aspect-ratio grid item would otherwise align to the
     top instead of stretching). */
  .story-card__video {
    align-self: stretch;
  }

  .story-card__body {
    align-self: center;
    padding: var(--space-lg);
  }
}


/* FAQs */

.faqs__grid {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.faqs__intro {
  display: flex;
  flex-direction: column;
  gap: var(--heading-gap); /* heading → intro */
}

.faqs__heading {
  margin: 0;
}

/* .rich-text brings the prose rules (incl. underlined links); drop its
   centred-column sizing here. */
.faqs__copy.rich-text {
  width: auto;
  margin-inline: 0;
  color: var(--text-color);
}

.faqs__copy > :first-child {
  margin-top: 0;
}

.faqs__copy > :last-child {
  margin-bottom: 0;
}

.faqs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faqs__item {
  border-bottom: 1px solid var(--grey-20);
}

.faqs__question {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.faqs__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: 0 0 var(--space-sm-md-d) 0; /* question → its rule / answer */
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--grey-100);
  font-family: inherit;
}

.faqs__trigger-text {
  font-weight: inherit; /* follow the question's h3 weight (500 isn't a loaded weight) */
  font-size: 1.2rem;
}

.faqs__icon {
  flex: 0 0 auto;
  display: flex;
  color: var(--grey-40);
  transition: transform var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}

.faqs__icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.faqs__trigger[aria-expanded="true"] .faqs__icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faqs__answer {
  padding-bottom: var(--space-md);
}

/* .rich-text prose rules without its centred-column sizing. */
.faqs__answer-copy.rich-text {
  width: auto;
  margin-inline: 0;
}

.faqs__answer-copy > :first-child {
  margin-top: 0;
}

.faqs__answer-copy > :last-child {
  margin-bottom: 0;
}

@media (min-width: 62rem) {
  .faqs__grid {
    grid-template-columns: var(--grid-narrow) var(--grid-wide);
    gap: var(--space-xl);
  }

  /* Drop the accordion so the first (open) answer starts level with the intro
     copy beside it: (heading line + heading → copy gap) − (question line +
     question → answer gap). Assumes a one-line heading; the question line is
     .faqs__trigger-text's 1.2rem at the body line-height (1.6). */
  .faqs__list {
    margin-top: calc(var(--section-title-fs) * var(--section-title-lh) + var(--heading-gap) - 1.2rem * 1.6 - var(--space-sm-md-d));
  }
}

/* Rich Text section — the text is the centred 62rem .rich-text column (the
   blog post column). A Page Title band straight above it narrows to the same
   column, so the disc, h1 and text share one left edge, as on a blog post. */
.page-title-section:has(+ .rich-text-section) .container {
  width: min(100% - calc(var(--space-md) * 2), 62rem);
}

/* Large CTA section */

.large-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  border: 2px solid var(--primary-color);
  border-radius: var(--br-lg);
  background-color: var(--primary-10);
}

.large-cta__heading {
  color: var(--primary-color);
  margin: 0;
}

/* Heading + copy: the heading → copy step (the panel's gap spaces the
   button / form below). */
.large-cta__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--heading-gap);
}

.large-cta__copy {
  max-width: 60ch;
  color: var(--text-color);
}

.large-cta__copy p {
  margin: 0;
}

/* Enquiry form action: the intro runs as wide as the form under it. */
.large-cta--form .large-cta__copy {
  max-width: var(--form-width);
}

/* Postcode field: white on the pink panel (inputs are transparent by default).
   The extra classes out-rank the base input rule's :not() chain (forms.css). */
.large-cta .search-form .search-field input[type="search"] {
  background-color: var(--white);
}

/* Postcode check answer: group-card.php cards, .cta-button and .grid as they
   are. It spans the (centred, flex-column) panel; from desktop it uses the
   groups list's three columns and sits in the middle one, so the answer is
   exactly one group-card wide. Text stays centred like the rest of the panel;
   the cards keep their own left alignment. */
.large-cta__result {
  align-self: stretch;
}

.large-cta__result-heading,
.large-cta__result-note {
  margin: 0;
}

/* Text links on the panel's pink tint ("searching again"): plain pink fails
   AA there (4.36:1), so they're --primary-on-tint (6.26:1). */
.large-cta__inner a:not(.cta-button) {
  color: var(--primary-on-tint);
}

/* The answer's lead line: the h2 step in the heading font, regular weight
   with the place name in bold. */
.large-cta__result-heading {
  font-family: var(--heading-font);
  font-size: var(--h2-fs);
  line-height: var(--h2-lh);
}

/* Cards keep their own left alignment. A single card sits in one column; several
   use the base .cards grid (cards.css) — .group-archive-cards is only the
   "several cards" marker here, it no longer carries a grid of its own. */
.large-cta__result .cards {
  text-align: left;
}

.large-cta__result .cards:not(.group-archive-cards) {
  grid-template-columns: 1fr;
}

.large-cta__result .cta-button {
  justify-self: center;
}

@media (min-width: 62rem) {
  .large-cta__result {
    grid-template-columns: repeat(3, 1fr);
  }

  .large-cta__result > * {
    grid-column: 2;
  }

  /* Heading, notes, the enquiry form and a row of several cards run the full
     width; a single card and the button stay in the middle. */
  .large-cta__result > :is(.large-cta__result-heading, .large-cta__result-note, .large-cta__enquiry, .group-archive-cards) {
    grid-column: 1 / -1;
  }
}

/* Enquiry form ("area open" state): the shared .form-grid / .form-field
   layout (forms.css). Fields are white on the pink panel (inputs are
   transparent by default — the extra classes out-rank the base :not() chain),
   and the grid gets a row gap since the labels are visually hidden. */
/* Centred at the site's standard form width (forms.css: form { max-width }). */
.large-cta__enquiry {
  justify-self: center;
  width: 100%;
  text-align: left;
}

.large-cta__enquiry .form-field input:not([type="checkbox"]),
.large-cta__enquiry select,
.large-cta__enquiry textarea {
  background-color: var(--white);
}

.large-cta__enquiry .form-grid {
  row-gap: var(--space-sm);
}

/* Consent + newsletter on the left, Send enquiry on the right; wraps on
   narrow screens. */
.large-cta__enquiry-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

/* Shrinks (labels wrap) so Send enquiry stays beside the checkboxes. */
.large-cta__enquiry-options {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--font-sm);
}

.large-cta__inner .large-cta__enquiry-foot .cta-button {
  margin-top: 0;
}

/* Phones: the checkboxes take the full width and the button drops below them
   (side by side, the labels squeezed into a narrow column). The button keeps
   its context's alignment — left in the contact form, centred in the Large
   CTA panel (.large-cta__inner .cta-button). */
@media (max-width: 47.99rem) {
  .large-cta__enquiry-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .large-cta__enquiry-options {
    flex: none;
    width: 100%;
  }
}

.large-cta__inner .cta-button {
  align-self: center;
  margin-top: var(--space-sm);
}

.large-cta__inner .cta-button:hover {
  background-color: var(--white-60);
}

@media (min-width: 48rem) {
  .large-cta__inner {
    padding: var(--space-xl) var(--space-lg);
  }
}


/* Contact — section-contact.php. The page-title band, a row of "what can we
   help with?" cards, then the message form (wide, in the Large CTA's pink
   panel look) beside the sidebar (person card + "Other ways" fact card,
   narrow). The form is the shared enquiry form, so its field styling comes
   from the .large-cta__enquiry rules above. */

/* Contact opts out of `page-section` (its top keeps the internal pages'
   header → title gap), but the section after it gets the page-section gap:
   --space-xl below desktop, then the normal --section-space. Plain only: a
   banded Contact spends its space as padding (and must still join a grey
   neighbour). */
.contact.section:not(.section--grey, .section--purple) {
  margin-bottom: max(var(--section-space), var(--space-xl));
}

.contact__options {
  margin-bottom: var(--space-md-lg-d);
}

.contact__heading {
  margin: 0 0 var(--space-lg);
}

/* Cards: deliberately ONE row on desktop however many there are (the PHP sets
   --contact-cards to the count) — they're small (icon, title, one line), so
   they fit; 2-up below that (stacked, they pushed the form far down the page),
   except the narrowest phones (below 22.5rem / 360px), where a half-width card
   would break a title like "Membership" mid-word. Two classes: cards.css loads
   after this file, so a lone .contact__cards loses to .cards' 1-up / 3-up. */
.cards.contact__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 22.49rem) {
  .cards.contact__cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 62rem) {
  .cards.contact__cards {
    grid-template-columns: repeat(var(--contact-cards, 4), minmax(0, 1fr));
  }
}

/* The title link stretches over the whole card (::after); the second link
   sits above it so it stays clickable on its own. */
.card.contact-card {
  position: relative;
  box-shadow: var(--shadow);
}

@media (min-width: 48rem) {
  .card.contact-card:hover {
    box-shadow: var(--shadow-hover);
  }
}

/* Icon + title: stacked on phones (every phone width, for consistency), side by
   side from tablet. */
.contact-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

@media (min-width: 48rem) {
  .contact-card__head {
    flex-direction: row;
    align-items: center;
    gap: var(--row-gap);
  }
}

.contact-card__icon {
  flex-shrink: 0;
  color: var(--primary-color);
}

.contact-card__title {
  margin: 0;
  font-size: var(--h4-h5-fs);
  line-height: var(--h4-h5-lh);
}

.contact-card__link {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

.contact-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* The pink title is the hover cue — no underline (out-ranks typography.css's a:hover). */
.contact-card:hover .contact-card__link,
.contact-card__link:focus-visible {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-card__text {
  margin: 0;
  font-size: var(--font-sm);
  color: var(--text-color);
}

/* Pinned to the card's bottom so second links + arrows line up along the row:
   second link left, the button arrow right. */
.contact-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
}

.contact-card__second {
  position: relative;
  z-index: 1;
  font-size: var(--font-sm);
}

.contact-card__arrow {
  margin-left: auto;
}

/* Form (wide) beside the sidebar (narrow) from desktop; stacked below. */
.contact__layout {
  display: grid;
  gap: var(--space-md-lg-d);
  align-items: start;
}

@media (min-width: 62rem) {
  .contact__layout {
    grid-template-columns: var(--grid-wide) var(--grid-narrow);
  }
}

.contact__form-heading {
  margin: 0;
}

/* The Large CTA panel look (pink tint, pink border) so the site's enquiry
   forms all match; two classes to out-rank cards.css's white .card. */
.card.contact__form {
  gap: var(--space-md);
  border: 2px solid var(--primary-color);
  border-radius: var(--br-lg);
  background-color: var(--primary-10);
}

/* Roomier than a plain .card from tablet up (the Large CTA panel pads more too). */
@media (min-width: 48rem) {
  .card.contact__form {
    padding: var(--space-lg);
  }
}

.contact__form-heading {
  color: var(--primary-on-tint);
}

.contact__form .cta-button:hover {
  background-color: var(--white-60);
}

/* The form fills its card rather than stopping at --form-width. */
.contact__form form {
  max-width: none;
}

.contact__form p {
  margin: 0;
}

/* Thank-you state: heading + lines in one wrapper (outside the card's gap). */
.contact__form [role="status"] > * + * {
  margin-top: var(--space-sm);
}

.contact__aside {
  width: auto; /* undo layout.css's global aside { width: 33% } — the grid column sizes it */
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.contact-person__who {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-person__who p {
  margin: 0;
}

.contact-person .avatar {
  flex-shrink: 0;
}

/* Name at the profile-card name step (h4/h5, heading font). */
.contact-person__name {
  display: block;
  font-family: var(--heading-font);
  font-size: var(--h4-h5-fs);
  line-height: var(--h4-h5-lh);
  font-weight: 600;
}

.contact-person__role {
  display: block;
  font-size: var(--font-sm);
}

/* /meetings/online (template-meetings.php): the online-only groups section
   and the meetings list under it, each with a section-title h2. Heading →
   content is --space-lg, as for any section heading over cards. */
.meetings-groups__heading,
.meetings-list__heading {
  margin: 0 0 var(--space-lg);
}
