/* ============================================================
   Experts page (experts.html) - the Founding Chairman section.
   Loaded by experts.html only; styles.css carries everything else.

   Layout (2026-09-24, second pass): the page banner re-inked in the
   welcome page's purple gradient (scoped to .page-banner--experts,
   which only this page carries). Then a 300px portrait circle | ONE
   content column (56px gap) holding, top to bottom, the eyebrow, name,
   credentials, biography, the white stat card and the "Read the full
   biography" action - so every block starts at the portrait's right
   edge + 56px and ends at the container's right edge. Below 980px the
   portrait stacks above and everything shares the gutter (the shared
   .chair rule in styles.css stacks at 760; .chair--experts, which only
   this page carries, overrides it between 760 and 979).

   The card reuses the homepage's .fusion__stats / .fusion-stat classes
   (not scoped to .fusion) for the figure typography; here everything
   inside the card is CENTRED: three equal columns from 640px (the card
   is full width to 979px and wide enough beside the portrait from
   980px), one centred column below 640px.

   Measured pairs (flat, token on token):
     on the section's --lavender #F2EEF8: credentials --gold-deep 4.77,
       name --purple 10.78, biography --text 12.12
     on the white card: band label --gold-deep 5.45, figures --purple
       12.33, figure labels --purple-deep 14.49, description --text
       13.86, footnote + source --text-muted 6.98, links --purple 12.33
     the action: --purple on lavender 10.78 (outline), hover white on
       --purple 12.33
   ============================================================ */

/* ---- The page banner: welcome.html's purple gradient (same tokens, same
   118deg direction), the eyebrow in the light brand gold, the headline white.
   The shared .page-banner keeps its 2px gold hairline at the bottom edge and
   its padding, so the band's height is unchanged (209px at 1440). Scoped to
   the --experts modifier, which only experts.html carries. */
.page-banner--experts {
  background: linear-gradient(118deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: var(--white);
}
.page-banner--experts .eyebrow { color: var(--guide-gold-light); }   /* 7.65 on --purple, 8.99 on --purple-deep */
.page-banner--experts h1 { color: var(--white); }                     /* 10.78 / 12.68 */

/* ---- portrait 300px, 240px on phones (to-B 069, 3 Dec 2026: the Chairman stands
   out more than the advisory board), the board cards' circle treatment;
   from 980px it is the left rail with a 56px gap to the content column.
   styles.css puts the shared .chair beside its text from 760px; on this page
   the 300px rail would leave too narrow a column there, so .chair--experts keeps
   the stacked layout (one column, the phone row gap) up to 979px. */
.chair__photo { width: 300px; }
.chair__body .eyebrow { font-size: 22px; }
.chair__name { font-size: 36px; }
@media (max-width: 600px) {
  .chair__photo { width: 240px; }
  .chair__body .eyebrow { font-size: 18px; }
  .chair__name { font-size: 28px; }
}
@media (min-width: 760px) and (max-width: 61.24rem) {
  .chair--experts { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (min-width: 61.25rem) {
  .chair--experts { grid-template-columns: 300px minmax(0, 1fr); column-gap: 3.5rem; }
}

/* credentials beneath the name: small, letter-spaced, deep gold */
.chair__creds {
  margin: 0.2rem 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-deep);           /* 4.77:1 on --lavender */
  max-width: none;                   /* its box ends at the column edge like every other block */
}
/* the biography reaches the column's right edge (the base p { max-width: 72ch }
   is lifted, as on welcome.html) and is set at 18px: in the 784px column
   at 1440 full lines then average 84 / 81 / 88 characters (spaces
   included) over the three paragraphs; 17px runs 88-93, 19px 78-83 */
.chair__bio > p {
  max-width: none;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ---- Global surgical education: the white card beneath both columns ------
   Same treatment as the board cards below it on this page: white, the site
   radius, a 2px --lavender border and their soft shadow (0 2px 10px), so the
   two card families read as one. */
.chair-stats {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 1.5rem;                   /* 24px mobile */
  background: var(--white);
  border: 2px solid var(--lavender);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(46, 33, 80, 0.08);
}
@media (min-width: 48rem) {
  .chair-stats { padding: 2rem; }    /* 32px desktop */
}
.chair-stats__eyebrow {
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--gold-deep);           /* 5.45:1 on white */
  max-width: none;
}
/* the figures: three EQUAL columns across the card from 640px, figure and
   label centred as a unit in each; ONE centred column below 640px. The
   numbers carry the card - 36px from 800px, 28px on phones - and never wrap
   ("1,086,274" is 151px wide at 36px; the narrowest three-column card, 584px
   at 980px beside the portrait, holds three at 157px each). */
.chair-stats .chair-stats__list {
  grid-template-columns: 1fr;
  column-gap: clamp(1rem, 2.5vw, 3rem);
  row-gap: 1.25rem;
  justify-items: center;
}
@media (min-width: 40rem) {
  .chair-stats .chair-stats__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.chair-stats .fusion-stat {
  align-items: center;
  text-align: center;
  padding: 0;
  gap: 0.35rem;
}
.chair-stats .fusion-stat__figure {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);   /* 28px floor at 640, 36px from 800px */
  line-height: 1.05;
  white-space: nowrap;
  color: var(--purple);              /* 12.33:1 on white */
}
.chair-stats .fusion-stat__label {
  font-size: 1rem;                   /* 16px on phones, 18px from 800px with the 36px figures */
  color: var(--purple-deep);         /* 14.49:1 on white */
}
@media (min-width: 50rem) { .chair-stats .fusion-stat__label { font-size: 1.125rem; } }
/* a hairline between the figures and the description - the site's card-border
   tint (the guide cards' rgba(58,42,102,.14)) - so the card has structure */
.chair-stats__desc {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid rgba(58, 42, 102, 0.14);
  margin-inline: auto;
  max-width: 62ch;                   /* a reading measure, not the card's width */
  text-align: center;
  line-height: 1.6;
  color: var(--text);                /* 13.86:1 on white */
}
/* the footnote and source as one quieter block, set apart from the
   description: the block is capped at 80 characters of its own 14px type and
   centred with auto margins; the two paragraphs inside fill it (the base
   p { max-width: 72ch } is lifted - it left them 636px wide at the block's
   left edge, so their centred text sat 40px left of the card's centre) */
.chair-stats__foot {
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(58, 42, 102, 0.08);
  margin-inline: auto;
  max-width: 80ch;
  font-size: 0.875rem;
}
.chair-stats__note,
.chair-stats__source {
  margin: 0;
  max-width: none;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);          /* 6.98:1 on white */
}
.chair-stats__source { margin-top: 0.35rem; }
/* a 44px hit area on the inline source link, pulled back so the line does not move */
.chair-stats__source a {
  display: inline-block;
  padding-block: 0.75rem;
  margin-block: -0.75rem;
  color: var(--purple);              /* 12.33:1 on white */
  font-weight: 600;
  text-underline-offset: 3px;
}
.chair-stats__source a:hover { color: var(--purple-bright); }
.chair-stats__source a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---- The two buttons under the biography (Vicky, 29 Nov 2026) -----------
   "Read the full biography ->" as a filled purple pill, and beside it
   "Global Surgical Education" as an outlined gold pill: the <summary> of a
   <details> that holds the white box above (folded on load, no script).
   The biography button floats at the row's start, so the summary sits beside
   it and the opened box (clear: both) drops right under both buttons, full
   width. Phones (below 640px): both full width, stacked, biography first. */
.chair__actions { margin-top: clamp(1.5rem, 3vw, 2rem); }
.chair__actions::after { content: ""; display: block; clear: both; }
.chair__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chair__btn--bio {
  float: inline-start;               /* the summary's line sits beside it (and mirrors on /fa/) */
  margin: 0 0.75rem 0.75rem 0;
  margin-inline: 0 0.75rem;
  background: var(--purple);         /* #3A2A66 */
  border-color: var(--purple);
  color: var(--white);               /* 12.33:1 */
}
.chair__btn--bio:hover { background: var(--purple-bright); border-color: var(--purple-bright); color: var(--white); }   /* 6.3:1 */
.chair__gse > summary { list-style: none; }
.chair__gse > summary::-webkit-details-marker { display: none; }
.chair__btn--gse {
  margin-bottom: 0.75rem;
  background: transparent;
  border-color: #B0851C;             /* the gold outline Vicky named */
  color: var(--purple);              /* 10.78:1 on --lavender */
}
.chair__btn--gse:hover { background: rgba(176, 133, 28, 0.12); }
.chair__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.chair__caret { display: inline-block; line-height: 1; transition: transform 0.2s ease; }
.chair__gse[open] .chair__caret { transform: rotate(180deg); }   /* the arrow points up while open */
.chair__gse .chair-stats { clear: both; margin-top: 0.25rem; }   /* right under the buttons */
@media (max-width: 39.99rem) {
  .chair__btn--bio { float: none; display: flex; width: 100%; margin-inline: 0; }
  .chair__btn--gse { display: flex; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .chair__btn, .chair__caret { transition: none; }
}

/* ---- The International Medical Advisory Board (to-B 066, 3 Dec 2026; sizes to-B 069; the ornament and the larger title to-B 073) ------------------------
   The heading block and the advisory cards cms-pages.js draws. Everything here waits for data-cms-state="live", as the
   section does. Measured: gold #8A6814 on --cream 4.90 and on white 5.16; the note #766E8C on --cream 4.56 (the mock's
   #7A7290 is 4.30, under AA); titles #5A5175 on white 7.32; name and link #3A2A66 on white 12.33. */
#shervin + .section:has([data-cms="experts"][data-cms-state="live"]) { padding-top: 96px; padding-bottom: 3.5rem; }
[data-cms="experts"][data-cms-state="live"] { max-width: 1080px; }      /* the card row: 1040px inside the gutters */
.iab-head { text-align: center; margin: 0 0 48px; }
.iab-head h2 { margin: 0; color: #3A2A66; font-size: 42px; font-weight: 600; line-height: 1.2; text-wrap: balance; }
/* the ornament, one shape: thin rule - diamond - thin rule, 120px wide */
.iab-head h2::before { content: ""; display: block; width: 120px; height: 11px; margin: 0 auto 26px; background: #B0851C; clip-path: polygon(0 5px, 48px 5px, 48px 5.5px, 54.5px 5.5px, 60px 0, 65.5px 5.5px, 72px 5.5px, 72px 5px, 120px 5px, 120px 6px, 72px 6px, 72px 5.5px, 65.5px 5.5px, 60px 11px, 54.5px 5.5px, 48px 5.5px, 48px 6px, 0 6px); }
/* Chinese: the film box's heading fonts, so the title is as heavy as the English one */
.iab-head h2:lang(zh), .iab-head h2 :lang(zh), .iab-head__sub :lang(zh) { font-family: "Lora", "Noto Serif SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", serif; }
.iab-head p { margin: 0 auto; max-width: 640px; text-wrap: balance; }
.iab-head .iab-head__sub { margin-top: 18px; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.4; color: #8A6814; }
.iab-head .iab-head__note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #766E8C; }

.iab-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }      /* three across; fewer stay centred */
.iab-grid > .iab-card {
  position: relative;
  flex: 0 0 calc((100% - 64px) / 3);
  box-sizing: border-box;
  min-width: 0;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 20px 20px 36px;
  border: 1px solid #ECE6F3;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(58, 42, 102, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.iab-card__photo { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #F2EEF8; box-shadow: 0 10px 24px rgba(58, 42, 102, 0.12); }
.iab-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.iab-card .iab-card__name { margin: 28px 0 0; max-width: none; font-size: 22px; font-weight: 600; line-height: 1.3; color: #3A2A66; text-wrap: balance; }
.iab-card__titles { margin: 12px auto 0; max-width: 300px; }
.iab-card__titles p { margin: 0 0 7px; max-width: none; font-size: 14px; line-height: 1.5; color: #5A5175; text-wrap: balance; overflow-wrap: break-word; }
.iab-card__titles p:last-child { margin-bottom: 0; }
.iab-card__country { margin: 18px 0 0; max-width: none; font-size: 11.5px; font-weight: 600; line-height: 1.5; letter-spacing: 0.2em; text-transform: uppercase; color: #8A6814; }
.iab-card__more { margin: auto 0 0; padding-top: 28px; max-width: none; }                /* the footer: at the card's bottom in every card */
.iab-card__more::before { content: ""; display: block; height: 1px; margin-bottom: 24px; background: #EEE8F4; }
.iab-card .iab-card__link {
  display: inline-block;
  min-height: 0;                                                                          /* the hit area is the whole card */
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #3A2A66;
  text-decoration: underline solid #B0851C 1.5px;
  text-underline-offset: 6px;
}
.iab-card__link::after { content: ""; position: absolute; inset: -1px; border-radius: 22px; }
.iab-card .iab-card__link:focus-visible { outline: none; }
.iab-card__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.iab-grid > .iab-card:has(.iab-card__link):hover { transform: translateY(-3px); border-color: #DCCDA3; box-shadow: 0 18px 40px rgba(58, 42, 102, 0.12); }

/* the closing line, under its thin divider */
#shervin + .section [data-cms="experts"][data-cms-state="live"] > .prose { margin-top: 88px !important; }      /* over the page's own inline margin */

@media (max-width: 959.98px) {                                                            /* tablets: two across, the third centred */
  .iab-grid { gap: 28px; }
  .iab-grid > .iab-card { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 600px) {
  #shervin + .section:has([data-cms="experts"][data-cms-state="live"]) { padding-top: 56px; }
  .iab-head { margin-bottom: 36px; }
  .iab-head h2 { font-size: 30px; }
  .iab-head h2::before { margin-bottom: 20px; }
  .iab-head .iab-head__sub { margin-top: 14px; font-size: 17px; }
  .iab-head .iab-head__note { font-size: 13px; }
  .iab-grid > .iab-card { flex: 0 1 330px; max-width: 330px; padding: 16px 16px 32px; border-radius: 20px; }
  .iab-card__link::after { border-radius: 20px; }
  .iab-card .iab-card__name { margin-top: 24px; font-size: 21px; }
  #shervin + .section [data-cms="experts"][data-cms-state="live"] > .prose { margin-top: 64px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .iab-grid > .iab-card { transition: none; }
  .iab-grid > .iab-card:has(.iab-card__link):hover { transform: none; box-shadow: 0 12px 32px rgba(58, 42, 102, 0.06); border-color: #ECE6F3; }
}
