/* CVF People: team page. Uses the CVF Editorial tokens (--cvf-*). */

.cvf-people { display: grid; gap: 1.5rem; margin: 1.5rem 0 0; }
.cvf-people--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.cvf-people--directors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }

.cvf-person {
  display: flex; flex-direction: column;
  background: var(--cvf-white, #fff);
  border: var(--cvf-border, 1px solid #E8E6EB);
  border-radius: var(--cvf-radius-lg, 20px);
  overflow: hidden;
  box-shadow: var(--cvf-shadow-sm);
  transition: transform var(--cvf-dur, 320ms) var(--cvf-ease-bounce), box-shadow var(--cvf-dur, 320ms) ease;
}
.cvf-person:hover { transform: translateY(-4px); box-shadow: var(--cvf-shadow); }

.cvf-person__photo { aspect-ratio: 1 / 1; background: var(--cvf-mauve-soft, #F3E6F4); overflow: hidden; }
.cvf-person__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cvf-person__img--initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cvf-font-serif); font-style: italic; font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.75rem); color: var(--cvf-plum, #4A254A);
  background: radial-gradient(circle at 30% 25%, var(--cvf-mauve-soft) 0, var(--cvf-mauve) 100%);
}

.cvf-person__text { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.cvf-person__role {
  margin: 0; font-size: var(--cvf-text-eyebrow, 0.75rem); font-weight: 700;
  letter-spacing: var(--cvf-tracking-caps, 0.14em); text-transform: uppercase; color: var(--cvf-mauve-ink, #8A4690);
}
.cvf-person__name { margin: 0; font-size: var(--cvf-text-h4); line-height: 1.2; color: var(--cvf-navy, #17304A); }
.cvf-person__name a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--cvf-dur) var(--cvf-ease); }
.cvf-person__name a:hover, .cvf-person__name a:focus-visible { background-size: 100% 2px; }
.cvf-person__exp { margin: 0; font-size: 0.98rem; line-height: 1.45; color: var(--cvf-ink-2, #4B5563); }
.cvf-person__bio { margin: 0.5rem 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--cvf-ink-2, #4B5563); }

/* Directors: large, side by side, photo left of text on wide screens */
.cvf-person--director { flex-direction: row; align-items: stretch; background: var(--cvf-mauve-soft, #F3E6F4); border-color: transparent; }
.cvf-person--director .cvf-person__photo { flex: 0 0 42%; aspect-ratio: 4 / 5; }
.cvf-person--director .cvf-person__text { justify-content: center; padding: clamp(1.25rem, 3vw, 2rem); }
.cvf-person--director .cvf-person__name { font-size: var(--cvf-text-h3); }
.cvf-person--director .cvf-person__img--initials { font-size: clamp(3rem, 7vw, 5rem); }

/* Compact name lists */
.cvf-names {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.6rem 1.5rem;
}
.cvf-names li {
  margin: 0; padding: 0.7rem 0.9rem 0.7rem 1rem;
  border-left: 3px solid var(--cvf-mauve, #E0B9E3);
  background: var(--cvf-white, #fff); border-radius: 0 var(--cvf-radius-sm) var(--cvf-radius-sm) 0;
  font-weight: 600; color: var(--cvf-navy, #17304A);
}
.cvf-names__note { display: block; font-weight: 400; font-size: 0.9rem; color: var(--cvf-ink-2); }
.cvf-names--compact { grid-template-columns: 1fr; gap: 0.4rem; margin-top: 1rem; }
.cvf-names--compact li { background: var(--cvf-grey-tint, #F2F0F4); padding: 0.5rem 0.8rem; font-weight: 500; }

/* National teams: three side by side */
.cvf-nations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.cvf-nation {
  position: relative; background: var(--cvf-white, #fff); border-radius: var(--cvf-radius-lg, 20px);
  padding: 1.75rem 1.5rem 1.5rem; box-shadow: var(--cvf-shadow-sm); overflow: hidden;
  border-top: 6px solid var(--cvf-mauve, #E0B9E3);
}
.cvf-nation__name { margin: 0 0 0.4rem; font-size: var(--cvf-text-h3); color: var(--cvf-navy); }
.cvf-nation__desc { margin: 0 0 1rem; font-size: 0.95rem; color: var(--cvf-ink-2); }
.cvf-nation__lead { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.75rem; }
.cvf-nation__lead .cvf-person__photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; }
.cvf-nation__lead .cvf-person__img--initials { font-size: 1.4rem; }
.cvf-nation__lead-name { margin: 0.15rem 0 0; font-weight: 700; font-size: 1.1rem; color: var(--cvf-navy); }

@media (max-width: 900px) {
  .cvf-nations { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cvf-people--directors { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cvf-person--director { flex-direction: column; }
  .cvf-person--director .cvf-person__photo { flex: none; aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cvf-person, .cvf-person:hover { transition: none; transform: none; }
}


/* ---- Click a name to open a tile ---- */
.cvf-person__toggle {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font: inherit; color: inherit; text-align: left; border-radius: 6px;
}
.cvf-person__toggle:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cvf-person__toggle:focus-visible { outline: 3px solid var(--cvf-mauve-ink, #8A4690); outline-offset: 3px; }
.cvf-person__plus { position: relative; flex: 0 0 auto; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--cvf-mauve-soft, #F3E6F4); border: 1px solid var(--cvf-mauve, #E0B9E3); }
.cvf-person__plus::before, .cvf-person__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: .62rem; height: 2px; margin: -1px 0 0 -.31rem; background: var(--cvf-plum, #4A254A); border-radius: 2px; transition: transform var(--cvf-dur, 320ms) var(--cvf-ease); }
.cvf-person__plus::after { transform: rotate(90deg); }
[aria-expanded="true"] > .cvf-person__plus::after { transform: rotate(0deg); }
.cvf-person--director .cvf-person__plus { background: #fff; }

.cvf-person__more { animation: cvf-person-in var(--cvf-dur, 320ms) var(--cvf-ease); }
.cvf-person__more .cvf-person__bio { margin: .6rem 0 0; color: var(--cvf-ink-2, #4B5563); font-size: .97rem; line-height: 1.6; }
.cvf-person__link { margin: .8rem 0 0; font-weight: 700; }
.cvf-person__link a { color: var(--cvf-mauve-ink, #8A4690); }
@keyframes cvf-person-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* The tile grows: in the grid it takes two columns, photo beside the text. */
.cvf-people--grid .cvf-person.is-open { grid-column: span 2; flex-direction: row; transform: none; box-shadow: var(--cvf-shadow); }
.cvf-people--grid .cvf-person.is-open .cvf-person__photo { flex: 0 0 42%; aspect-ratio: auto; min-height: 100%; }
.cvf-people--grid .cvf-person.is-open .cvf-person__text { padding: 1.5rem 1.6rem 1.6rem; }
.cvf-people--grid .cvf-person.has-more { cursor: default; }

/* Names list: the item opens across the full row with a small photo. */
.cvf-names__item .cvf-person__toggle { font-weight: 600; color: var(--cvf-navy, #17304A); }
.cvf-names__item.is-open { grid-column: 1 / -1; background: var(--cvf-mauve-soft, #F3E6F4); }
.cvf-names__more { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: .75rem; font-weight: 400; }
.cvf-names__photo { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--cvf-mauve, #E0B9E3); }
.cvf-names__photo .cvf-person__img { width: 100%; height: 100%; object-fit: cover; }
.cvf-names__more .cvf-person__bio:first-child { margin-top: 0; }

@media (max-width: 700px) {
  .cvf-people--grid .cvf-person.is-open { grid-column: auto; flex-direction: column; }
  .cvf-people--grid .cvf-person.is-open .cvf-person__photo { flex: none; aspect-ratio: 1 / 1; }
  .cvf-names__more { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cvf-person__more { animation: none; }
  .cvf-person__plus::before, .cvf-person__plus::after { transition: none; }
}

/* Photos always fill their frame (the theme sets img height:auto, which stops the crop). */
.cvf-person__photo { position: relative; }
.cvf-person__photo img.cvf-person__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.cvf-names__photo { position: relative; }
.cvf-names__photo img.cvf-person__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.cvf-person--director .cvf-person__photo { align-self: flex-start; aspect-ratio: 4 / 5; }

/* ---- Directory layout ([cvf_team layout="directory"]): compact cards, one full-width profile at a time ---- */
.cvf-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); grid-auto-flow: row dense; gap: 1rem; align-items: start; margin: 1.75rem 0 0; }
.cvf-dir__card { position: relative; display: block; background: var(--cvf-white, #fff); border: 1px solid var(--cvf-grey, #E8E6EB); border-radius: var(--cvf-radius, 12px); padding: 1rem 1.1rem 1.05rem 1.4rem; overflow: hidden; transition: border-color var(--cvf-dur, 320ms) var(--cvf-ease, ease), box-shadow var(--cvf-dur, 320ms) var(--cvf-ease, ease); }
.cvf-dir__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cvf-mauve, #E0B9E3); transition: background-color var(--cvf-dur, 320ms) var(--cvf-ease, ease); }
.cvf-dir__card.is-open { border-color: var(--cvf-mauve, #E0B9E3); box-shadow: 0 6px 18px rgba(23, 48, 74, .08); }
.cvf-dir__card.is-open::before { background: var(--cvf-mauve-ink, #8A4690); }
.cvf-dir__photo { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--cvf-mauve-soft, #F3E6F4); }
.cvf-dir__photo img, .cvf-dir__profile-photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.cvf-dir__head { display: flex; gap: .85rem; align-items: center; }
.cvf-dir__head > div:last-child { min-width: 0; }
.cvf-dir__card--note { display: flex; }
.entry-content .cvf-dir__name { margin: 0; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; color: var(--cvf-navy, #17304A); }
.cvf-dir__exp { margin: .2rem 0 0 !important; font-size: .88rem; line-height: 1.4; font-weight: 600; color: var(--cvf-mauve-ink, #8A4690); }
.cvf-dir__intro { margin: .45rem 0 0 !important; font-size: .93rem; line-height: 1.5; color: var(--cvf-ink-2, #4B5563); }
.cvf-dir__more { display: inline-flex; align-items: center; gap: .3rem; margin: .6rem 0 0; padding: 0; background: none; border: 0; font: inherit; font-size: .9rem; font-weight: 700; color: var(--cvf-plum, #4A254A); cursor: pointer; text-decoration: underline; text-decoration-color: var(--cvf-mauve, #E0B9E3); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cvf-dir__more:hover { text-decoration-color: currentColor; }
.cvf-dir__arrow { display: inline-block; transition: transform var(--cvf-dur, 320ms) var(--cvf-ease, ease); }
.cvf-dir__more[aria-expanded="true"] .cvf-dir__arrow { transform: rotate(90deg); }
.cvf-dir__more:focus-visible, .cvf-dir__close:focus-visible, .cvf-dir__profile-name:focus-visible { outline: 3px solid var(--cvf-mauve-ink, #8A4690); outline-offset: 3px; border-radius: 4px; }

.cvf-dir__profile { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; background: var(--cvf-mauve-soft, #F3E6F4); border-radius: var(--cvf-radius-lg, 20px); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); animation: cvf-person-in var(--cvf-dur, 320ms) var(--cvf-ease, ease); }
.cvf-dir__profile.has-photo { grid-template-columns: 200px minmax(0, 1fr); }
.cvf-dir__profile[hidden] { display: none; }
.cvf-dir__profile-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--cvf-radius, 12px); overflow: hidden; background: var(--cvf-mauve, #E0B9E3); }
.cvf-dir__profile-text { max-width: 64ch; }
.cvf-dir__profile-name { margin: 0 !important; font-size: var(--cvf-text-h3, 1.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--cvf-navy, #17304A); }
.cvf-dir__profile .cvf-dir__exp { font-size: .95rem; margin-top: .35rem !important; }
.cvf-dir__role { margin: .2rem 0 0 !important; font-size: .95rem; color: var(--cvf-ink-2, #4B5563); }
.cvf-dir__profile .cvf-person__bio { margin: .9rem 0 0; font-size: 1.02rem; line-height: 1.65; color: var(--cvf-ink, #1F2937); }
.cvf-dir__profile .cvf-person__link { margin: 1rem 0 0; font-weight: 700; }
.cvf-dir__profile .cvf-person__link a { color: var(--cvf-plum, #4A254A); text-decoration-color: var(--cvf-mauve-ink, #8A4690); text-underline-offset: 4px; }
.cvf-dir__close { margin: 1.4rem 0 0; padding: .45rem 1.1rem; border-radius: 999px; border: 2px solid var(--cvf-plum, #4A254A); background: transparent; color: var(--cvf-plum, #4A254A); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.cvf-dir__close:hover { background: var(--cvf-plum, #4A254A); color: #fff; }

/* The closing note: part of the team, not an afterthought. */
.cvf-dir__card--note { align-self: stretch; align-items: center; background: transparent; border: 2px dashed var(--cvf-mauve, #E0B9E3); }
.cvf-dir__card--note::before { content: none; }
.cvf-dir__card--note p { margin: 0; font-size: .98rem; line-height: 1.5; font-style: italic; color: var(--cvf-plum, #4A254A); }

@media (max-width: 640px) {
  .cvf-dir__profile.has-photo { grid-template-columns: 1fr; gap: 1.25rem; }
  .cvf-dir__profile-photo { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .cvf-dir__profile { animation: none; }
  .cvf-dir__arrow, .cvf-dir__card, .cvf-dir__card::before { transition: none; }
}

/* =========================================================================
   Team page, editorial version (1.3): the full CVF palette across the page,
   designed initials portraits, a profile drawer, botanical national cards.
   ========================================================================= */

/* Designed initials portraits: four CVF tones in rotation */
.cvf-person__img--initials.cvf-tone-1 { background: var(--cvf-mauve-soft, #F3E6F4); color: var(--cvf-navy, #17304A); }
.cvf-person__img--initials.cvf-tone-2 { background: var(--cvf-mauve, #E0B9E3); color: var(--cvf-navy, #17304A); }
.cvf-person__img--initials.cvf-tone-3 { background: var(--cvf-plum, #4A254A); color: var(--cvf-warm-white, #FAF9F6); }
.cvf-person__img--initials.cvf-tone-4 { background: var(--cvf-navy, #17304A); color: var(--cvf-mauve, #E0B9E3); }

/* Surfaces */
.cvf-surface-white { background: var(--cvf-white, #fff) !important; }

/* Hero collage: real team photography, a plum label and the CVF blob */
.cvf-team-hero { align-items: center !important; gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.cvf-team-collage { position: relative; min-height: clamp(300px, 32vw, 420px); }
.cvf-team-collage::before { content: ""; position: absolute; right: 6%; top: 4%; width: 74%; aspect-ratio: 1; background: var(--cvf-mauve-soft, #F3E6F4); border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; transform: rotate(-8deg); }
.cvf-team-collage > .wp-block-group__inner-container { display: contents; }
.cvf-team-collage figure { position: absolute; margin: 0 !important; }
.cvf-team-collage figure img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.cvf-team-collage .cvf-collage-a { right: 0; top: 6%; width: 74%; aspect-ratio: 4 / 3; z-index: 1; }
.cvf-team-collage .cvf-collage-a img { border-radius: var(--cvf-radius-lg, 20px); box-shadow: 0 18px 40px rgba(23, 48, 74, .18); }
.cvf-team-collage .cvf-collage-b { left: 2%; bottom: 0; width: 36%; aspect-ratio: 1; z-index: 2; }
.cvf-team-collage .cvf-collage-b img { border-radius: 50%; border: 6px solid var(--cvf-warm-white, #FAF9F6); object-position: 50% 30%; }
.cvf-team-collage .cvf-collage-tag { position: absolute; left: 0; top: 0; z-index: 3; margin: 0 !important; max-width: 11rem; padding: .75rem 1rem; border-radius: var(--cvf-radius, 12px); background: var(--cvf-plum, #4A254A); color: var(--cvf-warm-white, #FAF9F6) !important; font-size: .8rem; font-weight: 700; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }

/* Directors: Lara on white with her photograph, Sarah on lavender with a large plum initials block */
.cvf-people--directors > article:nth-of-type(1) { background: var(--cvf-white, #fff); border: 1px solid var(--cvf-grey, #E8E6EB); }
.cvf-people--directors > article:nth-of-type(2) { background: var(--cvf-mauve-soft, #F3E6F4); }
.cvf-person--director .cvf-person__img--initials { font-size: clamp(4rem, 9vw, 7rem); }
.cvf-person__intro { margin: .4rem 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--cvf-ink-2, #4B5563); }

/* "View profile" */
.cvf-profile-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; margin: .7rem 0 0; padding: 0; background: none; border: 0; font: inherit; font-size: .95rem; font-weight: 700; color: var(--cvf-mauve-ink, #8A4690); cursor: pointer; text-decoration: underline; text-decoration-color: var(--cvf-mauve, #E0B9E3); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cvf-profile-btn:hover { color: var(--cvf-plum, #4A254A); text-decoration-color: currentColor; }
.cvf-profile-btn__arrow { display: inline-block; transition: transform var(--cvf-dur, 320ms) var(--cvf-ease, ease); }
.cvf-profile-btn:hover .cvf-profile-btn__arrow { transform: translateX(3px); }
.cvf-profile-btn:focus-visible, .cvf-drawer__close:focus-visible, .cvf-drawer__name:focus-visible { outline: 3px solid var(--cvf-mauve-ink, #8A4690); outline-offset: 3px; border-radius: 4px; }
.cvf-person .cvf-person__link { margin: .6rem 0 0; font-weight: 700; font-size: .95rem; }
.cvf-person .cvf-person__link a { color: var(--cvf-mauve-ink, #8A4690); text-decoration-color: var(--cvf-mauve, #E0B9E3); text-underline-offset: 5px; }

/* Expert team: an editorial mosaic rather than a uniform grid (rows of two wide, then three) */
.cvf-people--grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.cvf-people--grid > article { grid-column: span 2; flex-direction: row; align-items: stretch; box-shadow: none; }
.cvf-people--grid > article:nth-of-type(5n+1), .cvf-people--grid > article:nth-of-type(5n+2) { grid-column: span 3; }
.cvf-people--grid > article:nth-of-type(3n+2) { background: var(--cvf-mauve-soft, #F3E6F4); border-color: transparent; }
.cvf-people--grid > article:nth-of-type(3n) { background: var(--cvf-warm-white, #FAF9F6); border: 1px solid var(--cvf-mauve, #E0B9E3); }
.cvf-people--grid .cvf-person__photo { flex: 0 0 34%; aspect-ratio: auto; min-height: 150px; }
.cvf-people--grid > article:nth-of-type(5n+1) .cvf-person__photo, .cvf-people--grid > article:nth-of-type(5n+2) .cvf-person__photo { flex-basis: 30%; }
.cvf-people--grid .cvf-person__text { justify-content: center; padding: 1.15rem 1.25rem; }
.cvf-people--grid .cvf-person__name { font-size: 1.18rem; }
.cvf-people--grid .cvf-person__exp { font-size: .95rem; }
.cvf-people--grid .cvf-person__img--initials { font-size: clamp(2rem, 3.4vw, 2.75rem); }

/* Insight directory: compact cards, alternating surfaces */
.cvf-dir > article:nth-of-type(4n+2) { background: var(--cvf-mauve-soft, #F3E6F4); border-color: transparent; }
.cvf-dir > article:nth-of-type(4n+2)::before { background: var(--cvf-mauve-ink, #8A4690); }
.cvf-dir > article:nth-of-type(4n+3) { background: var(--cvf-warm-white, #FAF9F6); border-color: var(--cvf-mauve, #E0B9E3); }
.cvf-dir__photo .cvf-person__img--initials { width: 100%; height: 100%; font-size: 1.3rem; }
.cvf-dir__card .cvf-profile-btn { margin-top: .55rem; font-size: .9rem; }
.cvf-dir__card .cvf-person__link { margin: .55rem 0 0; font-size: .9rem; }

/* Profile drawer */
html.cvf-drawer-open { overflow: hidden; }
.cvf-drawer { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: var(--cvf-warm-white, #FAF9F6); color: var(--cvf-navy, #17304A); box-shadow: -24px 0 60px rgba(23, 48, 74, .25); overflow-y: auto; }
.cvf-drawer[open] { animation: cvf-drawer-in 380ms cubic-bezier(.2, .7, .2, 1); }
.cvf-drawer::backdrop { background: rgba(23, 48, 74, .5); }
@keyframes cvf-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.cvf-drawer__inner { padding: clamp(1.25rem, 3vw, 2.5rem); }
.cvf-drawer__close { display: flex; align-items: center; gap: .4rem; margin: 0 0 0 auto; padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--cvf-plum, #4A254A); background: transparent; color: var(--cvf-plum, #4A254A); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.cvf-drawer__close:hover { background: var(--cvf-plum, #4A254A); color: #fff; }
.cvf-drawer__portrait { position: relative; margin: 1.25rem 0 1.5rem; aspect-ratio: 4 / 3; border-radius: var(--cvf-radius-lg, 20px); overflow: hidden; }
.cvf-drawer__portrait img, .cvf-drawer__portrait .cvf-person__img--initials { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.cvf-drawer__portrait .cvf-person__img--initials { display: flex; font-size: clamp(4rem, 12vw, 6.5rem); }
.cvf-drawer__role { margin: 0; font-size: var(--cvf-text-eyebrow, .75rem); font-weight: 700; letter-spacing: var(--cvf-tracking-caps, .14em); text-transform: uppercase; color: var(--cvf-mauve-ink, #8A4690); }
.cvf-drawer__name { margin: .35rem 0 0; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; color: var(--cvf-navy, #17304A); }
.cvf-drawer__name::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .8rem; border-radius: 2px; background: var(--cvf-mauve, #E0B9E3); }
.cvf-drawer__exp { margin: 1rem 0 0; font-weight: 600; color: var(--cvf-mauve-ink, #8A4690); }
.cvf-drawer .cvf-person__bio { margin: 1rem 0 0; font-size: 1.05rem; line-height: 1.7; color: var(--cvf-ink, #1F2937); }
.cvf-drawer .cvf-person__link { margin: 1.25rem 0 0; font-weight: 700; }
.cvf-drawer .cvf-person__link a { color: var(--cvf-mauve-ink, #8A4690); text-underline-offset: 5px; }

/* National teams: three related but different cards, each with its flower */
.cvf-nation { isolation: isolate; border-top: 0; box-shadow: none; padding: 1.75rem 1.5rem 2.5rem; min-height: 210px; }
.cvf-nation--scotland { background: var(--cvf-mauve-soft, #F3E6F4); }
.cvf-nation--northern-ireland { background: var(--cvf-white, #fff); border: 2px solid var(--cvf-mauve, #E0B9E3); }
.cvf-nation--wales { background: #EBD6EE; }
.cvf-nation__motif { position: absolute; right: -16px; bottom: -28px; z-index: -1; width: 150px; height: 180px; background: no-repeat center bottom / contain; opacity: .55; pointer-events: none; }
.cvf-nation--scotland .cvf-nation__motif { background-image: url(thistle.svg); }
.cvf-nation--northern-ireland .cvf-nation__motif { background-image: url(flax.svg); }
.cvf-nation--wales .cvf-nation__motif { background-image: url(daffodil.svg); }
.cvf-nation__lead .cvf-person__img--initials { background: var(--cvf-navy, #17304A); color: var(--cvf-mauve, #E0B9E3); font-style: normal; }

/* A bold pause between the profiles and the national teams */
.cvf-team-statement h2 { max-width: 22ch; margin: 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.12; letter-spacing: -.03em; color: var(--cvf-warm-white, #FAF9F6) !important; }
.cvf-team-statement h2 em { font-style: normal; color: var(--cvf-mauve, #E0B9E3); }

@media (max-width: 900px) {
  .cvf-people--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cvf-people--grid > article, .cvf-people--grid > article:nth-of-type(5n+1), .cvf-people--grid > article:nth-of-type(5n+2) { grid-column: span 1; }
}
@media (max-width: 600px) {
  .cvf-people--grid { grid-template-columns: 1fr; }
  .cvf-people--grid .cvf-person__photo { flex-basis: 30%; min-height: 120px; }
  .cvf-team-collage { min-height: 280px; margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cvf-drawer[open] { animation: none; }
  .cvf-profile-btn__arrow { transition: none; }
}

/* Fine-tuning after review */
.cvf-team-collage .cvf-collage-a img { object-position: 22% 40%; }
.cvf-people--directors .cvf-person--director .cvf-person__photo { position: relative; align-self: stretch; aspect-ratio: auto; min-height: 300px; }
.cvf-people--directors .cvf-person--director .cvf-person__photo .cvf-person__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.cvf-drawer__name:focus { outline: none; }
.cvf-dir__photo { box-shadow: 0 0 0 2px var(--cvf-white, #fff); }
@media (max-width: 520px) { .cvf-people--directors .cvf-person--director .cvf-person__photo { min-height: 0; aspect-ratio: 1 / 1; } }

/* Hero: one group photograph of the team */
.cvf-team-collage .cvf-collage-a { top: 8%; width: 90%; }
.cvf-team-collage .cvf-collage-a img { object-position: 50% 45%; }

/* Opening band: cream easing into lavender and lilac, with a soft plum glow behind the photo */
.cvf-team-hero-band { position: relative; overflow: hidden; isolation: isolate; margin-top: 0 !important; margin-bottom: 0 !important; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 !important; background: linear-gradient(120deg, var(--cvf-warm-white, #FAF9F6) 0%, var(--cvf-mauve-soft, #F3E6F4) 45%, #E9CDEC 75%, #D9B3DE 100%); }
.cvf-team-hero-band::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(138, 70, 144, .28) 0%, rgba(138, 70, 144, 0) 70%); }
.cvf-team-hero-band .cvf-team-hero { margin: 0 !important; }
.cvf-team-hero-band .cvf-team-collage::before { background: var(--cvf-mauve, #E0B9E3); opacity: .7; }
.cvf-team-hero-band .cvf-lead { color: var(--cvf-navy, #17304A); }

/* Opening band, revised: one composition (label, title, rule, statement, photo), shorter, subtler colour */
.cvf-team-page .entry-content > .cvf-team-hero-band:first-child { margin-top: calc(-1 * var(--cvf-team-gap, 0px)) !important; }
.cvf-team-hero-band { overflow: visible; padding: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem) !important; margin-bottom: clamp(2rem, 4vw, 3.5rem) !important; background: linear-gradient(115deg, #F8F3F7 0%, var(--cvf-mauve-soft, #F3E6F4) 55%, #EEDCF0 100%); }
.cvf-team-hero-band::before { top: 0; right: 0; width: 46%; height: 100%; aspect-ratio: auto; border-radius: 0; background: radial-gradient(ellipse at 70% 50%, rgba(224, 185, 227, .55) 0%, rgba(224, 185, 227, 0) 70%); }
.cvf-team-hero-band .cvf-eyebrow { margin: 0 0 .6rem; }
.cvf-team-hero-band .cvf-team-title { margin: 0; font-size: var(--cvf-text-display, clamp(2.75rem, 2rem + 3vw, 4.25rem)); line-height: 1.02; letter-spacing: -.035em; color: var(--cvf-navy, #17304A); }
.cvf-team-hero-band .cvf-team-title::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 1.1rem; border-radius: 3px; background: var(--cvf-mauve, #E0B9E3); }
.cvf-team-hero-band .cvf-team-lead { margin: 1.4rem 0 0; max-width: 30ch; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.85rem); line-height: 1.4; letter-spacing: -.01em; color: var(--cvf-navy, #17304A); }
/* The photograph is the star: larger, rounded, a lilac offset shape behind it, dipping below the band */
.cvf-team-hero-band .cvf-team-collage { min-height: 0; margin-bottom: calc(-1 * clamp(2.5rem, 4vw, 4rem)); }
.cvf-team-hero-band .cvf-team-collage::before { content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; width: auto; aspect-ratio: auto; border-radius: var(--cvf-radius-lg, 20px); background: var(--cvf-mauve, #E0B9E3); opacity: 1; transform: none; }
.cvf-team-hero-band .cvf-team-collage .cvf-collage-a { position: relative; top: auto; right: auto; width: 100%; aspect-ratio: 4 / 3; }
.cvf-team-hero-band .cvf-team-collage .cvf-collage-a img { border-radius: var(--cvf-radius-lg, 20px); box-shadow: 0 22px 50px rgba(23, 48, 74, .2); }
@media (max-width: 781px) {
  .cvf-team-hero-band .cvf-team-collage { margin: 1.5rem 1.1rem calc(-1 * 2.5rem) 0; }
  .cvf-team-hero-band .cvf-team-lead { max-width: none; }
}

.cvf-team-hero-band { margin-bottom: 0 !important; z-index: 2; }
.cvf-team-hero-band + .cvf-surface-white { margin-top: 0 !important; padding-top: clamp(4.5rem, 3rem + 4vw, 6.5rem) !important; }

/* Opening band, v3: photo given more room, a leaf-shaped crop and a handwritten note */
.cvf-team-hero-band .cvf-team-collage { padding: 2.2rem 0 0 2.2rem; }
.cvf-team-hero-band .cvf-team-collage::before { inset: 3.3rem -1rem -1rem 3.3rem; border-radius: 180px 24px 180px 24px; }
.cvf-team-hero-band .cvf-team-collage .cvf-collage-a img { border-radius: 180px 24px 180px 24px; object-position: 50% 40%; }
.cvf-hero-note { position: absolute; z-index: 3; top: -.4rem; left: -.6rem; margin: 0 !important; font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 600; line-height: .95; color: var(--cvf-mauve-ink, #8A4690) !important; transform: rotate(-9deg); text-shadow: 0 0 6px rgba(248, 243, 247, .9), 0 0 2px rgba(248, 243, 247, .9); pointer-events: none; }
.cvf-hero-note::after { content: ""; display: block; width: 48px; height: 46px; margin: .2rem 0 0 4.2rem; background: url(heart.svg) no-repeat center / contain; transform: rotate(8deg); }
@media (max-width: 781px) {
  .cvf-team-hero-band .cvf-team-collage { padding: 2rem 0 0 1.5rem; }
  .cvf-hero-note { left: -.25rem; }
}

/* Tighter opening band: less empty space above and below */
.cvf-team-hero-band { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 clamp(1.25rem, 1rem + 1vw, 1.75rem) !important; }
.cvf-team-hero-band .cvf-team-collage { padding: 0; margin-bottom: calc(-1 * clamp(2.75rem, 4vw, 3.75rem)); }
.cvf-team-hero-band .cvf-team-collage::before { inset: 1rem -1rem -1rem 1rem; }
.cvf-team-hero-band + .cvf-surface-white { padding-top: clamp(3.75rem, 3rem + 2.5vw, 5rem) !important; }
@media (max-width: 781px) { .cvf-team-hero-band .cvf-team-collage { padding: 0; margin: 1.25rem 1rem -2.5rem 0; } }

.cvf-team-hero-band + .cvf-surface-white { padding-top: clamp(2.5rem, 2rem + 1.5vw, 3.25rem) !important; }
.cvf-team-hero-band + .cvf-surface-white > .wp-block-group__inner-container > :first-child, .cvf-team-hero-band + .cvf-surface-white > :first-child { margin-top: 0 !important; }

/* ---- Team page: one consistent rhythm between sections ---- */
.cvf-team-page { --cvf-team-gap: clamp(2.75rem, 2rem + 2vw, 3.75rem); }
.cvf-team-page .entry-content > .wp-block-group { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: var(--cvf-team-gap) !important; padding-bottom: var(--cvf-team-gap) !important; }
.cvf-team-page .entry-content > .wp-block-group > :first-child,
.cvf-team-page .entry-content > .wp-block-group > .wp-block-group__inner-container > :first-child { margin-top: 0 !important; }
.cvf-team-page .entry-content > .wp-block-group > :last-child,
.cvf-team-page .entry-content > .wp-block-group > .wp-block-group__inner-container > :last-child { margin-bottom: 0 !important; }
/* Opening band: the photo and its lilac shape stay inside the band */
.cvf-team-page .entry-content > .cvf-team-hero-band { overflow: hidden; padding-top: calc(var(--cvf-team-gap) * .7) !important; padding-bottom: calc(var(--cvf-team-gap) * .7 + 1rem) !important; }
.cvf-team-hero-band .cvf-team-collage, .cvf-team-hero-band + .cvf-surface-white { margin-bottom: 0 !important; }
.cvf-team-hero-band .cvf-team-collage { margin-right: 1rem; }
@media (max-width: 781px) { .cvf-team-hero-band .cvf-team-collage { margin: 1.25rem 1rem 0 0 !important; } }

.cvf-team-page { --cvf-team-gap: clamp(2.5rem, 2rem + 1.5vw, 3.25rem); }
.cvf-team-page .entry-content > .wp-block-group > .wp-block-group__inner-container { padding-top: 0 !important; padding-bottom: 0 !important; }

.cvf-team-page .entry-content > .cvf-team-hero-band { margin-top: 2.5rem !important; }

.cvf-team-page .entry-content > .cvf-team-hero-band:first-child { margin-top: 2.5rem !important; }

/* "View profile" sits straight under the name and title */
.cvf-dir__head .cvf-profile-btn { margin-top: .3rem; font-size: .88rem; }
.cvf-dir__head .cvf-person__link { margin: .3rem 0 0; font-size: .88rem; }
.cvf-person__text > .cvf-profile-btn + .cvf-person__intro { margin-top: .7rem; }

/* Team hero in the front-page style: the photo fades in from the right, the words sit beside it */
.cvf-team-page .entry-content > .cvf-fade-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(360px, 38vw, 480px); display: flex; align-items: center; margin-top: 2rem !important; margin-bottom: clamp(2rem, 4vw, 3rem) !important; border-radius: var(--cvf-radius-lg, 20px); background: var(--cvf-warm-white, #FAF9F6); }
.cvf-fade-hero .cvf-fade-hero__img { position: absolute; z-index: -1; top: 0; right: 0; width: 60%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; border-radius: 0 var(--cvf-radius-lg, 20px) var(--cvf-radius-lg, 20px) 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 5%, rgba(0,0,0,.85) 11%, #000 16%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 5%, rgba(0,0,0,.85) 11%, #000 16%); }
.cvf-fade-hero::before { content: ""; position: absolute; z-index: 1; left: -6%; bottom: -16%; width: 44%; height: 30%; background: var(--cvf-mauve, #E0B9E3); clip-path: polygon(0 55%, 22% 22%, 100% 0, 92% 70%, 60% 100%, 0 100%); opacity: .95; pointer-events: none; }
.cvf-fade-hero .cvf-fade-hero__text { position: relative; z-index: 2; width: min(38%, 460px); padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.5rem); }
.cvf-fade-hero .cvf-fade-hero__text p { margin: 0; font-size: clamp(1.4rem, 1.05rem + 1.05vw, 1.95rem); line-height: 1.28; font-weight: 600; letter-spacing: -.01em; color: var(--cvf-navy, #17304A); }
@media (max-width: 760px) {
	.cvf-team-page .entry-content > .cvf-fade-hero { display: block; min-height: 0; border-radius: 0; background: none; margin-top: 1.25rem !important; }
	.cvf-fade-hero .cvf-fade-hero__img { position: relative; z-index: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--cvf-radius-lg, 20px); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
	.cvf-fade-hero::before { display: none; }
	.cvf-fade-hero .cvf-fade-hero__text { width: auto; margin-top: -.75rem; padding: 0; }
	.cvf-fade-hero .cvf-fade-hero__text p { font-size: 1.3rem; }
}
