/* Global cards
   Card grid rule — columns follow what's IN the card, not which page it's on:
   - Image cards (banner/photo: groups, events, news) = this base, 1 / 2 / 3.
   - Compact avatar cards (members) opt into .member-archive-cards, 2 / 3 / 4 / 5.
   - Section cards (Icon Cards, Alternating Cards) keep their own section grids.
   Always minmax(0, 1fr) (a long unbroken email/URL can't widen one column) and
   the --card-gap gap (vars.css). */
.cards {
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--card-gap);
}

.card {
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--br-md);
  transition: box-shadow var(--duration) var(--ease);
  margin: 0;
  display: flex;
  gap: var(--space-sm);
  flex-direction: column;
}

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

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

.card .rich-text {
  width: 100%;
  margin-inline: 0;
}

/* Archive cards — looped, link to a single item, filterable
   (members, groups, events, news). Shared behaviour lives here;
   each family's specific class overrides on top. */
.card.archive {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card.archive > * {
  margin: 0;
}

.card.archive a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

/* Banner cards (group + event tiles): a full-bleed image over a padded body of
   title + icon rows. The image is full-bleed (padding moves to the body);
   .card.archive's overflow: hidden clips it to the card's rounded top corners. */
.group-archive-card,
.event-archive-card {
  padding: 0;
  gap: 0;
}

/* 2:1 at every width (no height cap), so the image keeps its shape from a
   320px phone (140px tall) to the desktop grid (~193px). The meeting-format
   pills sit on its bottom-left corner. */
.archive-card-image {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.archive-card-image .pills {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
}

/* A soft shadow lifts the pill's edge off a same-coloured photo (no overlay —
   the solid pill already carries its own text contrast). */
.archive-card-image .pill {
  box-shadow: var(--button-shadow);
}

.archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
}

/* Optional distance bar along the foot of a group card ("0.6 miles away" —
   the Large CTA postcode check). margin-top: auto keeps it at the bottom when
   cards in a row are stretched to equal height. */
.group-archive-card-distance {
  margin: auto 0 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.archive-card-title {
  margin: 0;
}

/* Group + event card body: name (h3 step) + supporting text. The body fills the
   card so what follows it — the group leader row, the event's pink band — is
   pinned to the foot and lines up across a grid row (grid items stretch to equal
   height) however long the names and descriptions run. */
:is(.group-archive-card, .event-archive-card) .archive-card-body {
  flex: 1 1 auto;
  gap: var(--space-md);
}

.group-archive-card .archive-card-person {
  margin-top: auto;
}

.archive-card-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

:is(.group-archive-card, .event-archive-card) .archive-card-title {
  font-size: var(--h3-fs);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
  transition: color var(--duration-fast) var(--ease);
}

/* Group + event card hover: the shadow (base archive rule) and a pink title —
   nothing else. */
@media (min-width: 48rem) {
  :is(.group-archive-card, .event-archive-card):hover .archive-card-title {
    color: var(--primary-color);
  }
}

.archive-card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-size: var(--font-sm);
  color: var(--grey-70);
}

/* Event card date · time row, under the name: two shared .icon-row items
   (20px pink glyphs, body text) that wrap onto a second line on narrow cards. */
.archive-card-when {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  margin: 0;
}

/* Event card band: pink strip at the foot — visitor price · venue on one
   wrapping row. White bold small text; the glyphs are 1em, follow the text
   colour and sit on the first line when a long venue wraps. */
.archive-card-band {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--primary-color);
  color: var(--white);
  font-size: var(--font-sm);
  font-weight: 700;
}

.archive-card-band__item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35em;
}

.archive-card-band__item svg {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  margin-top: calc((1lh - 1em) / 2);
  fill: currentColor;
}

/* Leader row: small avatar (45px) beside a bold name over the role. */
.archive-card-person {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.archive-card-person :is(.avatar, .initials) {
  flex-shrink: 0;
  width: 2.8125rem;
  height: 2.8125rem;
}

.archive-card-person .initials {
  font-size: var(--font-sm);
}

.archive-card-person__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4; /* a touch under the body's 1.6, so name and role read as one unit */
}

.archive-card-person__name {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-color);
}

.archive-card-person__role {
  font-size: var(--font-xs);
  color: var(--grey-70);
}

.archive-card-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm); /* row-to-row, matching .icon-rows (fact cards) */
}

/* Member archive cards */

/* One per row on phones (each card in the aside layout — see below), then the
   stacked avatar-over-name cards 3 / 4 / 5 across from tablet. */
.member-archive-cards {
  grid-template-columns: minmax(0, 1fr);
}

.member-archive-card {
  align-items: center;
}

.member-archive-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* A wrapping role or business name splits into even lines rather than leaving
   one word on its own ("WIBN & Bright RED Digital / Ltd"). */
.member-archive-card-meta span {
  text-wrap: balance;
}

/* Name nests in the meta; keep a small gap before the role while the role and
   business name stay tight together. (The heading's leading is
   trimmed above via text-box-trim so this gap reads consistently.) */
.member-archive-card-meta .member-archive-card-title {
  margin-bottom: calc(var(--space-sm) + (1em - 1lh));
}


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

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

@media (min-width: 75rem) {
  .member-archive-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.member-archive-card h5 {
  text-align: center;
}

/* Role, then business name (Figma _Base/Member card): the role a small bold
   uppercase purple label, the business small italic in the text colour, 2px
   apart. The same in the stacked and aside layouts. */
.member-archive-card .member-archive-card-meta span {
  font-size: var(--font-xs);
}

.member-archive-card .member-archive-card-meta .member-archive-card-role {
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: var(--label-letter-spacing);
  color: var(--secondary-color);
}

.member-archive-card .member-archive-card-meta .member-archive-card-business {
  font-style: italic;
  line-height: 1.2;
}

.member-archive-card-role + .member-archive-card-business {
  margin-top: 0.125rem;
}

/* Aside layout: avatar on the left, the meta (name + role + business) fills the
   rest of the row and reads left-aligned, so the role sits directly under the
   member's name. Used by .aside cards (the group page's members
   carousel) AND by every member card on phones (below 48rem), where the grid
   is one card per row. The two blocks below are the same rules. */
.member-archive-card.aside {
  flex-direction: row;
  gap: var(--space-md);
}

.member-archive-card.aside :is(.avatar, .initials) {
  flex-shrink: 0;
}

.member-archive-card.aside .member-archive-card-meta {
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

.member-archive-card.aside h5 {
  text-align: left;
  margin-bottom: 0;
}

@media (max-width: 47.99rem) {
  .member-archive-card {
    flex-direction: row;
    gap: var(--space-md);
  }

  .member-archive-card :is(.avatar, .initials) {
    flex-shrink: 0;
  }

  .member-archive-card .member-archive-card-meta {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }

  .member-archive-card h5 {
    text-align: left;
    margin-bottom: 0;
  }
}

/* Profile cards */

/* Everything but the avatar: name + business meta + contact links.
   Mirrors the card's own flex-column + gap so inner spacing is unchanged. */
.profile-card {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

/* The group leader/owner cards keep the larger responsive avatar — 75px on
   phones, 115px from tablet — rather than the fixed 95px card avatar. (The
   member single's title-band avatar has its own sizes: layout.css.) */
.profile-card :is(.avatar, .initials) {
  width: 75px;
  height: 75px;
}

.profile-card .initials {
  font-size: 1.5rem;
}

@media (min-width: 48rem) {
  .profile-card :is(.avatar, .initials) {
    width: 115px;
    height: 115px;
  }

  .profile-card .initials {
    font-size: 2rem;
  }
}

/* A label inside the card (e.g. "Group leader") takes its own full-width row, so
   the avatar + details below still sit side by side like every other profile card. */
.profile-card .card-label {
  flex: 1 1 100%;
}

/* A small starting width (10rem) that can also shrink: the details sit beside the
   avatar and a long name wraps onto extra lines, instead of the whole block
   dropping under the avatar whenever the name's single-line width doesn't fit.
   It only wraps below the avatar when the card is genuinely too narrow. */
.profile-details {
  display: flex;
  flex-direction: column;
  flex: 1 1 10rem;
  min-width: 0;
  gap: var(--space-xs);
}

@media (min-width: 62rem) {
  .profile-details {
    margin-left: 0.35rem;
  }
}


.profile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-sm);
}

.profile-links li {
  margin-top: 0;
}



.profile-card h4 {
  margin-top: 0;
}

/* Linked profile card (group leaders/owners): the name's link stretches over
   the whole card (::after), like the contact cards. Hover = the lifted shadow +
   a pink name; the "View profile" cue under the name is the shared .link-cue
   (arrow in a tint disc). */
.profile-card--link {
  position: relative;
  box-shadow: var(--shadow);
}

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

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

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

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

/* The cue is the shared .link-cue (elements.css), not a link of its own: its
   disc deepens while the card is hovered or its name link focused. */
.profile-card__cue {
  align-self: flex-start;
}

.profile-card--link:is(:hover, :has(.profile-card__link:focus-visible)) .profile-card__cue {
  --link-cue-tint: 30%;
}

/* Contact links come in two styles:
   - .icon-circle (elements.css): a filled brand disc with the glyph as a
     background image (phone/website below).
   - .profile-icon: the bare wibn_icon() glyph, no disc, painted brand colour
     (email uses mail.svg). Swap a link to this to migrate it off the disc. */
.profile-links .profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Brand colour drives the .icon-bkg tint disc (currentColor) as well as the
     mark; without it the 20% tint would read as grey. */
  color: var(--primary-color);
}

.profile-links .profile-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: var(--primary-color);
}

/* Links card: each row is a glyph + its name (unlike the profile-card's compact
   icon-only row), so stack the list and space the glyph from the label. */
.profile-links-card .profile-links {
  flex-direction: column;
  align-items: flex-start;
}

.profile-links-card .profile-icon {
  gap: var(--space-sm);
}

.profile-links-card .profile-icon svg {
  flex-shrink: 0;
}

/* Links + Contact cards (member single): glyph in a 20% tint disc (.icon-bkg).
   `color` drives both the tint and the mark (currentColor); the label sits in
   body text and may break anywhere, so a long email address wraps instead of
   widening the card. */
.profile-links-card .profile-icon {
  color: var(--primary-color);
  min-width: 0;
}

.profile-links-card .profile-icon svg.icon-bkg {
  fill: currentColor;
  transition: background-color var(--duration-fast) var(--ease);
}

/* Hover / keyboard cue: the tint disc deepens 20% → 30%; the label stays put
   (no underline, no colour change). Links only — a plain row doesn't react. */
.profile-links-card a.profile-icon:hover svg.icon-bkg,
.profile-links-card a.profile-icon:focus-visible svg.icon-bkg {
  background-color: color-mix(in srgb, currentColor 30%, transparent);
}

.profile-links-card .profile-icon span {
  color: var(--text-color);
  min-width: 0;
  overflow-wrap: anywhere;
}


/* No resize or underline on hover for the contact/social links (profile card +
   Links card). */
.profile-links li a:hover,
.profile-links li a:focus {
  text-decoration: none;
}



/* Global card heading — small uppercase section label for the profile / group /
   event detail cards. */
.card-label {
  font-size: var(--font-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--label-letter-spacing);
  color: var(--secondary-color);
}

/* Meeting-type pill on the detail card. */
.event-meta-badge {
  align-self: flex-start;
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: var(--label-letter-spacing);
  color: var(--white);
  background-color: var(--primary-color);
  padding: 0.25em 0.75em;
  border-radius: var(--br-md);
}

/* (Event-single layout/detail styles now live in inc/css/event.css. The two
   shared labels above — .card-label / .event-meta-badge — are also used by the
   group and member templates, so they stay here.) */

/* Info cards — compact icon-row summary tiles (name + icon/text rows). Shared
   by the map results (built in map.js) and the group events list. */
.info-card {
  border-radius: var(--br-md);
  background: var(--white);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  /* These sit in flex-column scroll containers (.map-results, .event-scroll);
     keep their natural height so the list scrolls instead of squashing cards
     (which the event variant's overflow:hidden would otherwise clip). */
  flex-shrink: 0;
}

.info-card__name {
  margin: 0;
  font-size: var(--h4-h5-fs);
  line-height: var(--h4-h5-lh);
  color: var(--text-color);
}

/* Whole-card link (group events). */
.info-card--link {
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow var(--duration) var(--ease);
}

@media (min-width: 48rem) {
  .info-card--link:hover {
    box-shadow: var(--shadow-hover);
    text-decoration: none;
  }
}

/* Event/meeting variant: a bold date block on a tinted panel beside the name
   and a small detail row (venue name or "Online"). The group single's Upcoming
   Events list (a whole-card link). */
.info-card--event {
  flex-direction: column;
  gap: 0;
  padding: 0; /* content padding moves to __top, so the date panel can bleed */
  overflow: hidden; /* clip the date panel to the card's rounded corners */
  box-shadow: var(--shadow);
  transition: box-shadow var(--duration) var(--ease);
}

/* Elevate on hover to signal the card is clickable. Pointer widths only. */
@media (min-width: 48rem) {
  .info-card--event:hover {
    box-shadow: var(--shadow-hover);
  }
}

/* Top row: date block + divider + details (carries the padding the base card
   would otherwise provide). */
.info-card__top {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  padding: var(--space-md);
}

/* The date sits on a pale pink panel that bleeds to the card's top, bottom and
   left edges (negative margins cancel .info-card__top's padding; the card's
   overflow: hidden rounds its corners) and runs the full height of the top row. */
.info-card__date {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 6.75rem;
  margin: calc(-1 * var(--space-md)) 0 calc(-1 * var(--space-md)) calc(-1 * var(--space-md));
  padding: var(--space-md);
  background-color: var(--primary-10);
  color: var(--primary-on-tint);
  font-family: var(--heading-font);
  line-height: 1;
}

/* Online meetings take the purple colourway (date panel + detail-row glyph). */
.info-card--online .info-card__date {
  background-color: var(--secondary-20);
  color: var(--secondary-on-tint);
}

/* Detail row under the name: a small (.icon-row--sm) row, glyph closer in. */
.info-card__where {
  gap: var(--space-xs);
}

/* The map card's "(7.8 miles)" never splits — when it doesn't fit after the
   venue name it moves to the next line whole. */
.info-card__where strong {
  white-space: nowrap;
}

.info-card--online .info-card__where svg {
  fill: var(--secondary-color);
}

.info-card__day {
  font-size: var(--date-day-fs);
  font-weight: 700;
}

.info-card__month {
  margin-top: 0.15rem;
  font-size: var(--h4-h5-fs);
  font-weight: 700;
  text-transform: uppercase;
}

.info-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
}

/* Map listing card (built in map.js) — one per group at a venue: the group name
   (the base info card's h4/h5 step) is a link stretched over the card (→ group
   page), then the venue row and "Next meeting" + its date chip (→ that meeting).
   Further dates sit in a pale pink section behind a "N more dates" toggle, as a
   wrapping row of date chips shown four at a time, with a "More dates" button
   while some are still hidden. The chips and the dates section sit above the
   stretched link. */
.info-card--listing {
  position: relative;
  gap: 0;
  padding: 0; /* the body carries it; the dates section is full-bleed */
  overflow: hidden; /* clip the dates section to the rounded corners */
  box-shadow: var(--shadow);
  transition: box-shadow var(--duration) var(--ease);
}

/* Hovering the group link (or the card it stretches over) lifts the card;
   hovering a chip or the dates section doesn't, as they link elsewhere. */
@media (min-width: 48rem) {
  .info-card--listing:has(.info-card__link:hover) {
    box-shadow: var(--shadow-hover);
  }
}

.info-card--listing .info-card__body {
  padding: var(--space-md);
  justify-content: flex-start;
}

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

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

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

/* Body-size venue row with the standard icon gap (the base rule above is the
   small row's). */
.info-card--listing .info-card__where {
  gap: var(--row-gap);
}

/* "Next meeting:" + its date chip, on one line while they fit; phones say
   just "Next:". */
.info-card__next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-sm);
}

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

/* Date chips: a dotted pink pill holding a pink calendar glyph + the date in
   bold; hover fills it --primary-10. */
.info-card__chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border: var(--border-width) dotted var(--primary-color);
  border-radius: var(--br-rounded);
  background: var(--white);
  color: var(--text-color);
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease);
}

.info-card__chip svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--primary-color);
}

.info-card__chip:hover,
.info-card__chip:focus {
  background: var(--primary-10);
  text-decoration: none;
}

.info-card__chip:focus-visible {
  outline-offset: -2px;
}

/* The dates section: --primary-10 under a light rule. Its pink text and glyphs
   use --primary-on-tint (plain pink fails AA on the tint). */
.info-card__dates {
  position: relative;
  z-index: 1;
  border-top: var(--border-width-sm) solid var(--grey-20);
  background: var(--primary-10);
  color: var(--primary-on-tint);
}

.info-card__toggle,
.info-card__more {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--font-sm);
  font-weight: 700;
  cursor: pointer;
}

.info-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
}

/* Inside the card's overflow: hidden, so the focus ring is pulled in. */
.info-card__toggle:focus-visible {
  outline-offset: -2px;
}

.info-card__chevron {
  display: flex;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  transition: transform var(--duration) var(--ease);
}

.info-card__chevron svg,
.info-card__more svg {
  width: 1rem;
  height: 1rem;
}

.info-card__toggle[aria-expanded="true"] .info-card__chevron {
  transform: rotate(180deg);
}

.info-card__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md) var(--space-md);
}

.info-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-card__chips li + li {
  margin-top: 0;
}

.info-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
}

/* display above would override the hidden attribute. */
.info-card__list[hidden],
.info-card__more[hidden] {
  display: none;
}

/* News archive cards */

.news-archive-card {
  padding: 0;
  gap: var(--space-md);
  justify-content: space-between;
}

.news-archive-card-wrapper {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

/* Extends .meta (layout.css) with the card's padding + the pink category band
   (bold white text, like the event card's band). It stays pink on hover. */
.news-archive-card-meta {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  background-color: var(--primary-color);
}

.news-archive-card-meta span {
  color: var(--white);
  font-weight: 700;
}

.news-archive-card-title {
  transition: color var(--duration-fast) var(--ease);
}

.news-archive-card-meta-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: var(--white);
  /* Follow the meta colour (the glyph's own fill attr is currentColor too). */
  fill: currentColor;
}

.news-archive-card-image {
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.news-archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-archive-card-excerpt {
  font-size: var(--font-sm);
}

/* Hover: the shadow (base archive rule) and a pink title — nothing else. */
@media (min-width: 48rem) {
  .news-archive-card:hover .news-archive-card-title {
    color: var(--primary-color);
  }
}
