/* =========================================================================
 * EAM redesign: About (page 272), rulebook P-02.
 *
 * Loaded by includes/redesign.php on /about/ only, after the shared layer.
 * Page layout only, by the page's own Kadence uniqueIDs. Isabel marked the
 * content "Ready" (D-40): nothing here hides or reorders board text.
 * Heading levels (D-19) are fixed in content by
 * scripts/redesign/pages/00272-about.mjs (pillars H4 -> H3, EC names
 * H5 -> H4); this file sets the size each of them shows at.
 *
 * Rows, top to bottom:
 *   272_hero01-aa      hero (light tint band: components.css)
 *   272_aboutnav-01    section links (.eam-about-section-nav)  -> sticky bar
 *   272_1322c9-c3      Who We Are        (+ divider 272_a82549-94)
 *   272_842948-a5      History           (+ divider 272_41d071-5a)
 *   272_de004c-fb      Mission: photo + 4 pillars (row 272_e809aa-76)
 *   272_da9ccd-75      Scope of Activities
 *   272_4275d4-28      Governance: intro, Executive Committee grid
 *                      (272_cedd33-42), Advisory Board (col 272_721595-bf),
 *                      Honorary Members (col 272_7f116e-e3)
 *   272_d4abd4-32      Participate and Collaborate (indigo CTA band)
 *
 * Old rules met here (they keep loading; beaten by specificity):
 * eam-site-polish.css:330-345 (History order), :411-490 (EC cards, shared
 * with page 308), :493-512 (section links), :519-555 (Mission photo and
 * pillars), :557-601 (rhythm, Honorary list), :603-622 (CTA band).
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * 1. Section links: one sticky bar (RS StickyFilter, --rd-z-sticky).
 *    forms.css styles the buttons and components.css lines the group up;
 *    this only places the row.
 *
 *    DESIGN-SYSTEM.md section 7: the bar parks under the visible header
 *    (top: var(--rd-header-offset)) and moves up to 0 while the header is
 *    hidden. header.js adds this bar's height to Kadence's anchor offset
 *    (kadenceConfig.scrollOffset), so every jump lands below both bars.
 * ------------------------------------------------------------------------- */
body.eam-redesign.page-id-272 .kb-row-layout-wrap.kb-row-layout-id272_aboutnav-01 {
  position: sticky;
  top: var(--rd-header-offset, 0px);
  transition: top var(--rd-dur-base) var(--rd-ease-out-quad);
  z-index: var(--rd-z-sticky);
  border-bottom: var(--rd-border-width) solid var(--rd-border-light);
  background-color: var(--rd-color-bg);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_aboutnav-01 > .kt-row-column-wrap {
  padding-top: var(--rd-space-xs);
  padding-bottom: var(--rd-space-xs);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_aboutnav-01 .eam-about-section-nav.wp-block-buttons {
  margin: 0;
}

/* Jump targets. Kadence's anchor scroller handles these links and stops
 * each target kadenceConfig.scrollOffset below the top (header bar + this
 * bar + 16px, set by header.js); it ignores scroll-margin. The row
 * targets have 48px of padding above their H2, so the H2 clears the header
 * plus this bar. The two span targets sit right on their H2: move each
 * span up by the same 48px so those headings land the same way. The
 * scroll-margin below only serves a jump Kadence does not handle. */
body.eam-redesign.page-id-272 :is(#advisory-board, #honorary-members) {
  display: block;
  position: relative;
  top: calc(-1 * var(--rd-space-section));
  height: 0;
}

body.eam-redesign.page-id-272 :is(#who-we-are, #history, #mission, #scope, #governance, #advisory-board, #honorary-members, #participate) {
  scroll-margin-top: 124px;
}

/* Below desktop the links stay on one sideways-scrolling row (the phone
 * pattern of eam-site-polish.css:503-514), so the sticky bar is one button
 * high instead of two rows at tablet width. */
@media (max-width: 1080px) {
  body.eam-redesign.page-id-272 .kb-row-layout-id272_aboutnav-01 .eam-about-section-nav.wp-block-buttons {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: var(--rd-space-2xs) 2px;
    scrollbar-width: thin;
  }

  body.eam-redesign.page-id-272 .kb-row-layout-id272_aboutnav-01 .eam-about-section-nav .wp-block-button {
    flex: 0 0 auto;
  }
}

/* -------------------------------------------------------------------------
 * 2. Section rhythm. Every content row here has an explicit white
 *    background, so base.css keeps 48 + 48px between neighbours (96px).
 *    One 48px gap (24 <= 820) between sections; the two editor dividers
 *    sit in the middle of theirs.
 * ------------------------------------------------------------------------- */
body.eam-redesign.page-id-272 :is(.kb-row-layout-id272_1322c9-c3, .kb-row-layout-id272_842948-a5, .kb-row-layout-id272_de004c-fb, .kb-row-layout-id272_da9ccd-75, .kb-row-layout-id272_4275d4-28) > .kt-row-column-wrap {
  padding-top: var(--rd-space-section);
  padding-bottom: var(--rd-space-section);
}

/* Mission -> Scope -> Governance have no divider: share one gap. */
body.eam-redesign.page-id-272 :is(.kb-row-layout-id272_de004c-fb, .kb-row-layout-id272_da9ccd-75) > .kt-row-column-wrap {
  padding-bottom: 0;
}

/* Last row before the CTA band. */
body.eam-redesign.page-id-272 .kb-row-layout-id272_4275d4-28 > .kt-row-column-wrap {
  padding-bottom: var(--rd-space-xl);
}

/* Editor dividers (Kadence spacer, 1280px pointed line in the old sage
 * palette7): a hairline on the content width, like the footer rule. */
body.eam-redesign.page-id-272 .wp-block-kadence-spacer:is(.kt-block-spacer-272_a82549-94, .kt-block-spacer-272_41d071-5a) {
  max-width: var(--rd-container);
  margin-inline: auto;
  padding-inline: var(--rd-gutter);
}

body.eam-redesign.page-id-272 :is(.kt-block-spacer-272_a82549-94, .kt-block-spacer-272_41d071-5a) .kt-block-spacer {
  height: auto;
}

body.eam-redesign.page-id-272 :is(.kt-block-spacer-272_a82549-94, .kt-block-spacer-272_41d071-5a) .kt-block-spacer .kt-divider {
  width: 100%;
  margin: 0;
  border-top: var(--rd-border-width) solid var(--rd-border-light);
}

/* -------------------------------------------------------------------------
 * 3. Who We Are and History: text on the RS measure.
 * ------------------------------------------------------------------------- */
body.eam-redesign.page-id-272 .kb-row-layout-id272_1322c9-c3 > .kt-row-column-wrap {
  row-gap: var(--rd-space-base);
}

/* History: heading column first (eam-site-polish.css:339), photo below the
 * italic intro, both columns start on one line. */
body.eam-redesign.page-id-272 .kb-row-layout-id272_842948-a5 > .kt-row-column-wrap {
  align-items: start;
}

body.eam-redesign.page-id-272 .kb-image272_3e32f9-d4 {
  margin-top: var(--rd-space-base);
  margin-bottom: 0;
}

/* Isabel (20 Oct 2026): the right-hand text starts level with the intro
 * paragraph under the History heading, not with the heading itself (her empty
 * spacer paragraphs only take room in the editor). Two columns only. */
@media (min-width: 821px) {
  body.eam-redesign.page-id-272 .kadence-column272_e9424d-c8 > .kt-inside-inner-col {
    padding-top: var(--eam-history-offset, 68px);
  }
}

/* -------------------------------------------------------------------------
 * 4. Mission: photo banner, then the four pillars as text cards (S-06,
 *    text-only variant; the shared .rd-card look by uniqueID).
 * ------------------------------------------------------------------------- */
body.eam-redesign.page-id-272 .kb-image272_8d3805-1a {
  margin-top: var(--rd-space-base);
  margin-bottom: 0;
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 > .kt-row-column-wrap {
  padding-top: var(--rd-space-m);
  column-gap: var(--rd-space-base);
  row-gap: var(--rd-space-base);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col,
body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 .wp-block-kadence-infobox {
  height: 100%;
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 .wp-block-kadence-infobox .kt-blocks-info-box-link-wrap {
  height: 100%;
  margin: 0;
  padding: var(--rd-space-base);
  border: var(--rd-border-width) solid var(--rd-border-light);
  background: var(--rd-color-surface);
  box-shadow: var(--rd-shadow-card);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 .wp-block-kadence-infobox .kt-blocks-info-box-link-wrap:hover {
  box-shadow: var(--rd-shadow-card-hover);
}

/* Pillar titles are H3 now (patch); RS card title size (h4 24 / 18). */
body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 .wp-block-kadence-infobox .kt-blocks-info-box-title {
  margin: 0 0 var(--rd-space-xs);
  padding: 0;
  font-size: var(--rd-fs-h4);
  line-height: var(--rd-lh-h4);
  color: var(--rd-color-text);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 .wp-block-kadence-infobox .kt-blocks-info-box-text {
  margin: 0;
  font-size: var(--rd-fs-body);
  line-height: var(--rd-lh-body);
  color: var(--rd-color-text);
}

/* Two cards per row down to phones, like the other two-card rows (Activities
 * ECPS/MAST, Awards programmes); undoes the one-column rule at <= 1024 in
 * eam-site-polish.css and Kadence's 767 collapse (design-a#13). */
body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 > .kt-row-column-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 480px) {
  body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 > .kt-row-column-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Kadence infobox reserves room for its (hidden, D-34) icon; drop it. */
body.eam-redesign.page-id-272 .kb-row-layout-id272_e809aa-76 .wp-block-kadence-infobox .kt-infobox-textcontent {
  padding: 0;
}

/* -------------------------------------------------------------------------
 * 5. Scope of Activities: list text on the measure, arrows on the first
 *    line of each item (they centred on wrapped items).
 * ------------------------------------------------------------------------- */
body.eam-redesign.page-id-272 .kadence-column272_241f9c-94 > .kt-inside-inner-col {
  max-width: var(--rd-measure);
}

/* The row's second column is empty today; it only added a 32px row gap
 * under the list. It comes back as soon as an editor puts a block in it. */
body.eam-redesign.page-id-272 .kb-row-layout-id272_da9ccd-75 .wp-block-kadence-column.kadence-column272_4ddcda-cc:has(> .kt-inside-inner-col:empty) {
  display: none;
}

body.eam-redesign.page-id-272 .kt-svg-icon-list-items272_c59582-87 .kt-svg-icon-list-item-wrap {
  align-items: flex-start;
}

/* The icon box is one line high (24px), so top-aligned it centres on the
 * first line. */
body.eam-redesign.page-id-272 .kt-svg-icon-list-items272_c59582-87 .kt-svg-icon-list-item-wrap > .kt-svg-icon-list-single {
  margin-top: 0;
}

/* -------------------------------------------------------------------------
 * 6. Governance: intro, then the Executive Committee as person cards
 *    (S-06 person variant, R-12: one portrait box per card so faces are
 *    never cut and rows line up), then Advisory Board and Honorary Members
 *    side by side as text lists (D-39).
 * ------------------------------------------------------------------------- */
body.eam-redesign.page-id-272 .kb-row-layout-id272_4275d4-28 > .kt-row-column-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--rd-space-l);
  row-gap: var(--rd-space-xl);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_4275d4-28 > .kt-row-column-wrap > .kadence-column272_4f263b-5a {
  grid-column: 1 / -1;
}

body.eam-redesign.page-id-272 .kt-adv-heading272_745728-ed[data-kb-block] {
  max-width: var(--rd-measure);
  margin-bottom: var(--rd-space-l);
}

body.eam-redesign.page-id-272 .kt-adv-heading272_execcommittee-01[data-kb-block] {
  margin-bottom: var(--rd-space-base);
}

/* 6a. Executive Committee grid: the shared person card (components.css,
 *     --rd-person-* values), applied here by uniqueID; same rules as
 *     pages/executive-committee.css section 3. */
body.eam-redesign.page-id-272 .kb-row-layout-wrap.kb-row-layout-id272_cedd33-42 > .kt-row-column-wrap {
  display: grid;
  grid-template-columns: repeat(var(--rd-person-columns), minmax(0, 1fr));
  gap: var(--rd-person-gap);
  padding: 0;
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 > .kt-row-column-wrap > .wp-block-kadence-column {
  min-width: 0;
}

/* The card (undoes the old divider line and fixed heights, eam-site-polish.css:420-488). */
body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col,
body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 > .kt-row-column-wrap > .wp-block-kadence-column:hover > .kt-inside-inner-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: var(--rd-border-width) solid var(--rd-border-light);
  border-radius: var(--rd-radius);
  background: var(--rd-color-surface);
  box-shadow: var(--rd-shadow-card);
  transition: transform var(--rd-dur-slow) var(--rd-ease-out-cubic), box-shadow var(--rd-dur-slow) var(--rd-ease-out-cubic);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 > .kt-row-column-wrap > .wp-block-kadence-column:hover > .kt-inside-inner-col {
  box-shadow: var(--rd-shadow-card-hover);
  transform: var(--rd-lift);
}

/* The nested row inside each card: portrait on top, text below. */
body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap {
  flex: 1 1 auto;
  height: auto;
  margin: 0;
  border: 0;
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0;
  height: 100%;
  padding: 0;
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap > .wp-block-kadence-column {
  width: 100%;
  min-width: 0;
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap > .wp-block-kadence-column:first-child {
  overflow: hidden;
  background-color: var(--rd-color-surface-muted);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap > .wp-block-kadence-column:first-child > .kt-inside-inner-col {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--rd-person-portrait-ratio);
  border-radius: var(--rd-radius);
  background-size: cover;
  background-position: var(--rd-person-portrait-position);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap > .wp-block-kadence-column:last-child {
  display: flex;
  flex-direction: column;
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  padding: var(--rd-person-text-padding);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap .wp-block-kadence-advancedheading:is(h3, h4, h5)[data-kb-block] {
  margin: 0 0 calc(var(--rd-space-2xs) * 2);
  font-family: var(--rd-font);
  font-size: var(--rd-person-name-size);
  font-weight: var(--rd-fw-semibold);
  line-height: var(--rd-person-name-lh);
  letter-spacing: var(--rd-ls-heading);
  color: var(--rd-color-text);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap p.wp-block-kadence-advancedheading[data-kb-block] {
  margin: 0 0 var(--rd-space-base);
  font-size: var(--rd-person-role-size);
  line-height: var(--rd-lh-body);
  letter-spacing: var(--rd-ls-body);
  color: var(--rd-color-text-70);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap .wp-block-kadence-advancedbtn {
  margin-top: auto;
}

/* Phone: one compact card per row, portrait left at least 140px tall, text right. */
@media (max-width: 480px) {
  body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap {
    grid-template-columns: var(--rd-person-phone-portrait) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap > .wp-block-kadence-column:first-child > .kt-inside-inner-col {
    height: 100%;
    min-height: 140px;
    aspect-ratio: auto;
  }

  body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col {
    padding: var(--rd-person-phone-text-padding);
  }

  body.eam-redesign.page-id-272 .kb-row-layout-id272_cedd33-42 .kb-row-layout-wrap p.wp-block-kadence-advancedheading[data-kb-block] {
    margin-bottom: var(--rd-space-xs);
  }
}

/* 6b. Advisory Board and Honorary Members: two text lists side by side,
 *     names starting on one line (the intros had a 64px Kadence "xl"
 *     bottom margin on one side only). */
body.eam-redesign.page-id-272 :is(.kadence-column272_721595-bf, .kadence-column272_7f116e-e3) > .kt-inside-inner-col {
  padding-top: var(--rd-space-base);
  border-top: var(--rd-border-width) solid var(--rd-border-light);
}

body.eam-redesign.page-id-272 :is(.kt-adv-heading272_817005-68, .kt-adv-heading272_88ceda-ae)[data-kb-block] {
  margin-bottom: var(--rd-space-base);
}

body.eam-redesign.page-id-272 .kadence-column272_7f116e-e3 ul.wp-block-list {
  margin-top: 0;
  margin-bottom: 0;
}

body.eam-redesign.page-id-272 .kadence-column272_7f116e-e3 ul.wp-block-list > li + li {
  margin-top: var(--rd-space-2xs);
}

@media (max-width: 820px) {
  body.eam-redesign.page-id-272 .kb-row-layout-id272_4275d4-28 > .kt-row-column-wrap {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--rd-space-l);
  }
}

/* -------------------------------------------------------------------------
 * 7. Participate and Collaborate: the closing CTA band, left-aligned like
 *    every other CTA band (components.css section 12 / _cta01- rows); this
 *    row predates the _cta01- naming, so it is matched by uniqueID.
 *    Indigo stays (eam-site-polish.css:603 turns palette2 into palette1).
 * ------------------------------------------------------------------------- */
body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32 > .kt-row-column-wrap {
  row-gap: 0;
  padding-top: 0;
  padding-bottom: var(--rd-space-xl);
}

/* The shared CTA band is an indigo panel inset to the content (components.css
 * section 12: 40/32px padding, H2 at the h3 size, 16px button gap), not a
 * full-bleed band: the row goes white and its one column is the panel. */
body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32.has-theme-palette2-background-color {
  background-color: var(--rd-color-bg) !important;   /* undo eam-site-polish.css:614-616 */
}

/* Two stacked columns (text, then the button) read as one panel. */
body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32 :is(.kadence-column272_c7f6af-a5, .kadence-column272_2f0b1d-5a) > .kt-inside-inner-col {
  align-items: flex-start;
  border-radius: var(--rd-radius);
  background: var(--rd-color-primary);
  color: var(--rd-color-on-primary);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32 .kadence-column272_c7f6af-a5 > .kt-inside-inner-col {
  padding: var(--rd-space-l) var(--rd-space-m) var(--rd-space-base);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32 .kadence-column272_2f0b1d-5a > .kt-inside-inner-col {
  padding: 0 var(--rd-space-m) var(--rd-space-l);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32 .wp-block-kadence-advancedheading[data-kb-block] {
  text-align: left;
}

body.eam-redesign.page-id-272 .kt-adv-heading272_c0b6fa-2a[data-kb-block] {
  margin: 0 0 var(--rd-space-xs);
  font-size: var(--rd-fs-h3);
  line-height: var(--rd-lh-h3);
}

body.eam-redesign.page-id-272 .kt-adv-heading272_f85a9a-28[data-kb-block] {
  max-width: var(--rd-measure);
  margin: 0;
  font-size: var(--rd-fs-large);
  line-height: var(--rd-lh-body);
}

body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32 .wp-block-kadence-advancedbtn {
  justify-content: flex-start;
}

@media (max-width: 820px) {
  body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32 > .kt-row-column-wrap {
    padding-top: 0;
    padding-bottom: var(--rd-space-l);
  }
}

@media (max-width: 480px) {
  body.eam-redesign.page-id-272 .kb-row-layout-id272_d4abd4-32 .wp-block-kadence-advancedbtn > .kb-button {
    width: 100%;
  }
}

/* CTA band button: white with an ink label, like every other CTA band's
 * first button (forms.css, <page>_cta06-* rule). */
body.eam-redesign.page-id-272 main .wp-block-kadence-advancedbtn .kb-button.kt-button.kb-btn272_7686b5-03,
body.eam-redesign.page-id-272 main .wp-block-kadence-advancedbtn .kb-button.kt-button.kb-btn272_7686b5-03:is(:hover, :focus) {
  border: var(--rd-btn-border) solid var(--rd-white);
  background: var(--rd-white);
  color: var(--rd-ink);
}
