/*
 * EAM Activities, Grants & Awards: shared page styles.
 * Rendered by [eam_activities], [eam_awards] and [eam_grants]; everything is
 * scoped under .eam-act. EAM brand (indigo #5a64ad, ink #1d1d1d, white),
 * Royal-Society-style editorial cards. No sage green, no icon squares.
 */

.eam-act {
  --eam-act-brand: var(--global-palette1, #5a64ad);
  --eam-act-brand-dark: #4a548f;
  --eam-act-brand-tint: #eceef6;
  --eam-act-ink: var(--global-palette3, #1d1d1d);
  --eam-act-muted: #54585f;
  --eam-act-line: #e6e8ee;
  font-family: var(--global-body-font-family, "Roboto", sans-serif);
  color: var(--eam-act-ink);
  line-height: 1.55;
}
.eam-act *,
.eam-act *::before,
.eam-act *::after { box-sizing: border-box; }
/* Kadence capitalises h2/h3 and pads lists inside .entry-content; keep the
 * board's own wording and our list layout. */
.eam-act h1, .eam-act h2, .eam-act h3, .eam-act h4 { text-transform: none; }

/* full-bleed bands */
.eam-act-hero,
.eam-act-intro,
.eam-act-band,
.eam-act-section,
.eam-act-cta {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Kadence gives #primary.content-area a 32px top margin that shows as a white
 * band above these full-bleed heroes (worst on phones, where the white logo
 * sits against it). Zero it on the activities (314) and awards (371) pages so
 * the hero sits flush under the transparent header. */
.page-id-314 #primary.content-area,
.page-id-371 #primary.content-area { margin-top: 0; }

/* Same content box as the Kadence rows and the footer (1320px minus the edge
 * padding, x=84 at 1440), so the left edge no longer jumps 72px between the
 * Activities hub, Awards, Grants and their block-built sub-pages. */
.eam-act-wrap { max-width: var(--global-content-width, 1320px); margin: 0 auto; padding: 0 var(--global-content-edge-padding, 1.5rem); }

/* Jump targets clear the fixed header when reached by hash. */
.eam-act-section,
.eam-act .eam-act-subhead,
.eam-act-card--grant { scroll-margin-top: 110px; }
.eam-act-section { position: relative; }
.eam-act-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; scroll-margin-top: 110px; }

.eam-act-eyebrow {
  display: inline-block;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.eam-act-eyebrow--brand { color: var(--eam-act-brand); }

/* paragraphs produced from board-editable texts */
.eam-act .eam-act-hero__lede p,
.eam-act .eam-act-section__lede p,
.eam-act .eam-act-intro__lede p,
.eam-act .eam-act-cta__text p,
.eam-act .eam-act-note p { margin: 0 0 .7em; }
.eam-act .eam-act-hero__lede p:last-child,
.eam-act .eam-act-section__lede p:last-child,
.eam-act .eam-act-intro__lede p:last-child,
.eam-act .eam-act-cta__text p:last-child,
.eam-act .eam-act-note p:last-child { margin-bottom: 0; }
.eam-act .eam-act-section__lede a,
.eam-act .eam-act-intro__lede a,
.eam-act .eam-act-note a { color: var(--eam-act-brand); font-weight: 600; }
.eam-act .eam-act-hero__lede a,
.eam-act .eam-act-cta__text a { color: #fff; font-weight: 600; }

/* ---------- buttons ---------- */
.eam-act-btn {
  /* Same size as the Kadence buttons on the Activities sub-pages
   * (eam-site-polish.css): 16px, 48px tall, 6px corners. */
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font: 600 1rem/1.25 var(--global-body-font-family, "Roboto", sans-serif);
  padding: .75rem 1.5rem; border-radius: 6px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.eam-act-btn:focus-visible,
.eam-act-call:focus-visible,
.eam-act-materials a:focus-visible,
.eam-act .eam-act-jump a:focus-visible { outline: 3px solid #a9b0e0; outline-offset: 2px; }
.eam-act-btn--solid { background: #fff; color: #303a8c; }
.eam-act-btn--solid:hover { background: #e6e9f5; color: #303a8c; }
.eam-act-btn--solidp { background: var(--eam-act-brand); color: #fff; }
.eam-act-btn--solidp:hover { background: var(--eam-act-brand-dark); color: #fff; }
.eam-act-btn--outline { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.eam-act-btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.eam-act-btn--ghost { border: 1px solid #d2d6e2; color: var(--eam-act-brand); background: #fff; }
.eam-act-btn--ghost:hover { border-color: var(--eam-act-brand); background: var(--eam-act-brand-tint); }

/* ---------- hero ---------- */
.eam-act-hero {
  /* Clear the fixed 88px transparent royal header (matches .eam-conf-hero and
   * the playbook clearance in eam-royal-header.css). */
  display: flex; align-items: flex-end; min-height: 420px; padding: 172px 0 2.6rem; color: #fff;
  background:
    linear-gradient(180deg, rgba(20,22,38,.74) 0%, rgba(26,30,48,.32) 52%, rgba(20,22,38,.82) 100%),
    var(--eam-act-hero-img, none) center / cover no-repeat, #1a202c;
}
@media (max-width: 1080px) { .eam-act-hero { padding-top: 116px; } }
.eam-act-hero__inner { width: 100%; display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.5rem; align-items: end; }
@media (max-width: 880px) { .eam-act-hero__inner { grid-template-columns: 1fr; gap: 1.6rem; } }
.eam-act-hero .eam-act-eyebrow { background: rgba(255,255,255,.16); padding: .45rem .85rem; border-radius: 999px; margin-bottom: .9rem; }
.eam-act .eam-act-hero__title {
  margin: 0 0 .6rem; color: #fff; font-weight: 700; letter-spacing: -.015em;
  font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif);
  font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1.03;
}
.eam-act .eam-act-hero__lede { margin: 0; max-width: 52ch; font-size: 1.05rem; opacity: .94; }

.eam-act-hero__card { background: var(--global-palette9, #fff); color: var(--eam-act-ink); border-radius: 16px; padding: 1.5rem 1.5rem 1.3rem; box-shadow: 0 20px 50px rgba(10,15,40,.35); }
.eam-act-hero__card-kicker { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--eam-act-brand); }

.eam-act .eam-act-honorees, .eam-act .eam-act-jump { list-style: none; margin: .9rem 0 0; padding: 0; }
.eam-act .eam-act-honorees li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem 0; border-top: 1px solid #eef0f3; font-size: .92rem; }
.eam-act .eam-act-honorees li:first-child { border-top: 0; }
.eam-act-honorees__name { font-weight: 600; }
.eam-act-honorees__year { flex: none; font-size: .72rem; font-weight: 700; color: var(--eam-act-brand); background: var(--eam-act-brand-tint); padding: .2rem .5rem; border-radius: 999px; }
.eam-act .eam-act-jump li { padding: .5rem 0; border-top: 1px solid #eef0f3; }
.eam-act .eam-act-jump li:first-child { border-top: 0; }
.eam-act .eam-act-jump a { color: var(--eam-act-ink); text-decoration: none; font-weight: 600; font-size: .94rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.eam-act .eam-act-jump a::after { content: "\2193"; color: var(--eam-act-brand); font-weight: 700; }
.eam-act .eam-act-jump a:hover { color: var(--eam-act-brand); }
.eam-act .eam-act-hero__more { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid #eef0f3; font-size: .88rem; line-height: 1.5; }
.eam-act .eam-act-hero__more + .eam-act-hero__more { margin-top: .5rem; padding-top: .5rem; }
.eam-act-hero__more-label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #6b7079; margin-bottom: .15rem; }
.eam-act .eam-act-hero__more a { color: var(--eam-act-brand); font-weight: 600; text-decoration: none; }
.eam-act .eam-act-hero__more a:hover { text-decoration: underline; }
.eam-act-hero__cardlink { display: inline-block; margin-top: .8rem; font-size: .88rem; font-weight: 600; color: var(--eam-act-brand); text-decoration: none; }
.eam-act-hero__cardlink::after { content: " \2193"; }
.eam-act-hero__cardlink:hover { text-decoration: underline; }

/* ---------- intro ---------- */
.eam-act-intro { background: var(--global-palette9, #fff); padding: 3.2rem 0 1rem; }
.eam-act .eam-act-intro__title {
  margin: .6rem 0 .7rem; font-weight: 700; letter-spacing: -.01em;
  font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.14; max-width: 22ch;
}
.eam-act .eam-act-intro__lede { margin: 0; max-width: 70ch; font-size: 1.02rem; color: #4a4f4e; }

/* ---------- sections ---------- */
.eam-act-band { background: var(--global-palette9, #fff); padding: 2.2rem 0 3.4rem; }
.eam-act-section { background: var(--global-palette9, #fff); padding: 3.6rem 0; }
.eam-act-section--alt { background: #f4f5f8; }
.eam-act .eam-act-section__title {
  margin: .5rem 0 .6rem; font-weight: 700; letter-spacing: -.01em;
  font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.14;
}
.eam-act .eam-act-section__lede { margin: 0 0 1.8rem; max-width: 72ch; font-size: 1.02rem; color: #4a4f4e; }

.eam-act-linkrow { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1rem; }

.eam-act .eam-act-subhead { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; margin: 2.2rem 0 1.2rem; border-bottom: 2px solid var(--eam-act-ink); padding-bottom: .7rem; }
.eam-act-subhead--gap { margin-top: 3rem; }
.eam-act .eam-act-subhead h3 { margin: 0; font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.2; }
.eam-act .eam-act-note { margin: -.2rem 0 1.4rem; color: #5b6160; font-size: .95rem; max-width: 70ch; }

/* ---------- call documents ---------- */
.eam-act-calls { display: flex; flex-wrap: wrap; gap: .5rem; }
.eam-act-calls--card { margin: .2rem 0 .4rem; }
.eam-act-call {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  font-size: .82rem; font-weight: 600; line-height: 1; color: var(--eam-act-brand); text-decoration: none;
  background: var(--eam-act-brand-tint); padding: .5rem .85rem; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.eam-act-call svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.eam-act-call:hover { background: var(--eam-act-brand); color: #fff; }

/* ---------- grids ---------- */
.eam-act-grid { display: grid; gap: 1.6rem; align-items: stretch; }
.eam-act-grid--2 { grid-template-columns: repeat(2, 1fr); }
.eam-act-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .eam-act-grid--2, .eam-act-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eam-act-grid--2, .eam-act-grid--3 { grid-template-columns: 1fr; gap: 1.1rem; } }

/* ---------- cards ---------- */
.eam-act-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--eam-act-line);
  border-radius: 16px; padding: 1.6rem 1.6rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.eam-act-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(20,24,50,.12); }
.eam-act-card--num { position: relative; padding-top: 2.6rem; }
.eam-act-card__num {
  position: absolute; top: 1.4rem; right: 1.5rem;
  font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif);
  font-size: 1.5rem; font-weight: 700; color: #d7dbe8;
}
.eam-act-card__eyebrow { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--eam-act-brand); }
.eam-act .eam-act-card__title {
  margin: .4rem 0 .6rem; font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif);
  font-size: 1.2rem; line-height: 1.22; font-weight: 700;
}
.eam-act .eam-act-card__desc { margin: 0 0 1rem; font-size: .94rem; color: var(--eam-act-muted); }
.eam-act .eam-act-card__desc:last-child { margin-bottom: 0; }
.eam-act .eam-act-card__desc a { color: var(--eam-act-brand); font-weight: 600; }
.eam-act-card .eam-act-btn { align-self: flex-start; margin-top: auto; }
.eam-act .eam-act-card__sublabel { margin: 1.1rem 0 .55rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #6b7079; }
.eam-act-card--grant { padding-top: 1.4rem; }
.eam-act-card--grant .eam-act-card__title { margin-top: 0; }
.eam-act-card--grant:hover { transform: none; box-shadow: none; }

/* clean check lists */
.eam-act .eam-act-checks { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.eam-act .eam-act-checks li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: #3a3f47; }
.eam-act .eam-act-checks svg { flex: none; width: 18px; height: 18px; margin-top: .05rem; padding: 3px; border-radius: 50%; background: var(--eam-act-brand); fill: #fff; }

/* name chips (grant recipients), optional mini photo */
.eam-act .eam-act-namechips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.eam-act .eam-act-namechips li { display: inline-flex; align-items: center; gap: .45rem; background: var(--eam-act-brand-tint); color: #34384a; border-radius: 999px; padding: .4rem .85rem; font-size: .86rem; font-weight: 500; line-height: 1.25; }
.eam-act .eam-act-namechips li.has-photo { padding-left: .3rem; }
.eam-act .eam-act-namechips img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.eam-act .eam-act-namechips small { display: block; font-size: .72rem; color: #6b7079; font-weight: 400; }

/* ---------- people / recipients: photo next to the name ---------- */
.eam-act-person { display: flex; flex-direction: column; gap: .8rem; background: #fff; border: 1px solid var(--eam-act-line); border-radius: 16px; padding: 1.3rem 1.3rem 1.4rem; transition: transform .2s ease, box-shadow .2s ease; }
.eam-act-person:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(20,24,50,.12); }
.eam-act-person__head { display: flex; align-items: center; gap: .95rem; }
.eam-act-person__id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.eam-act-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eam-act-brand); color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: .02em;
}
.eam-act-avatar--photo { object-fit: cover; background: #e9ebf3; filter: grayscale(1); transition: filter .25s ease; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--eam-act-line); }
.eam-act-person:hover .eam-act-avatar--photo { filter: none; }
.eam-act-person__year { font-size: .7rem; font-weight: 700; color: var(--eam-act-brand); background: var(--eam-act-brand-tint); padding: .2rem .55rem; border-radius: 999px; }
.eam-act .eam-act-person__name { margin: 0; font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif); font-size: 1.12rem; font-weight: 700; line-height: 1.2; }
.eam-act .eam-act-person__affil { margin: 0; font-size: .82rem; font-weight: 600; color: var(--eam-act-brand); line-height: 1.35; }
.eam-act .eam-act-person__desc { margin: 0; font-size: .9rem; color: var(--eam-act-muted); }
.eam-act-person--bare .eam-act-person__head { padding-bottom: .8rem; border-bottom: 1px solid var(--eam-act-line); }
.eam-act-person--bare .eam-act-person__name { font-size: 1.2rem; }

/* ---------- courses timeline ---------- */
.eam-act-timeline { display: flex; flex-direction: column; gap: 1.4rem; }
.eam-act-timeline__row { display: grid; grid-template-columns: 90px 1fr; gap: 1.4rem; align-items: start; padding-bottom: 1.4rem; border-bottom: 1px solid var(--eam-act-line); }
.eam-act-timeline__row:last-child { border-bottom: 0; padding-bottom: 0; }
.eam-act-timeline__year { font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif); font-size: 1.5rem; font-weight: 700; color: var(--eam-act-brand); line-height: 1.2; }
.eam-act .eam-act-timeline__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.eam-act .eam-act-timeline__items > li { display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid var(--eam-act-line); border-radius: 14px; padding: 1rem 1.2rem; }
.eam-act-timeline__name { font-weight: 700; font-size: 1.02rem; color: var(--eam-act-ink); }
.eam-act-timeline__meta { font-size: .9rem; color: #6b7079; }
.eam-act .eam-act-timeline__desc { margin: .35rem 0 0; font-size: .92rem; color: var(--eam-act-muted); }
.eam-act-timeline__links { margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.eam-act-timeline__links a { font-size: .86rem; font-weight: 600; color: var(--eam-act-brand); text-decoration: none; }
.eam-act-timeline__links a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .eam-act-timeline__row { grid-template-columns: 1fr; gap: .5rem; }
  .eam-act .eam-act-timeline__items > li { padding: .9rem 1rem; }
}

/* ---------- members-only course materials ---------- */
.eam-act-materials { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed #d8dbe6; }
.eam-act-materials__label { display: flex; align-items: center; gap: .5rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #6b7079; margin-bottom: .45rem; }
.eam-act-materials__tag { letter-spacing: .06em; background: var(--eam-act-brand); color: #fff; border-radius: 4px; padding: .12rem .4rem; font-size: .62rem; }
.eam-act .eam-act-materials__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.eam-act .eam-act-materials__list li { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .7rem; }
.eam-act .eam-act-materials__list a { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--eam-act-brand); text-decoration: none; }
.eam-act .eam-act-materials__list a:hover .eam-act-materials__name { text-decoration: underline; }
.eam-act .eam-act-materials__list svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.eam-act-materials__meta { font-size: .78rem; color: #6b7079; }
.eam-act-materials--locked { display: flex; align-items: flex-start; gap: .55rem; }
.eam-act-materials--locked svg { width: 16px; height: 16px; flex: none; margin-top: .18rem; fill: #6b7079; }
.eam-act .eam-act-materials--locked p { margin: 0; font-size: .88rem; color: var(--eam-act-muted); }
.eam-act-materials--locked strong { color: var(--eam-act-ink); }
.eam-act-materials--locked a { color: var(--eam-act-brand); font-weight: 600; }

/* ---------- [eam_grants] inside the Grants block page ---------- */
.eam-act--grants .eam-act-section--embedded { padding: 3rem 0 3.2rem; }
/* Line up with the Kadence rows around it (content width + edge padding). */
.eam-act--grants .eam-act-wrap { max-width: var(--global-content-width, 1320px); padding: 0 var(--global-content-edge-padding, 1.5rem); }
.eam-act--grants .eam-act-section__title { margin-bottom: .4rem; }

/* ---------- CTA ---------- */
.eam-act-cta { background: var(--global-palette9, #fff); padding: 3.2rem 0; }
/* The panel is also the .eam-act-wrap, so below 1320px it ran edge to edge
 * with its rounded corners against the screen. Keep it on the content box,
 * with the side gutter, at every width. */
.eam-act-cta__inner {
  width: calc(100% - 2 * var(--global-content-edge-padding, 1.5rem));
  max-width: calc(var(--global-content-width, 1320px) - 2 * var(--global-content-edge-padding, 1.5rem));
  background: var(--eam-act-brand); color: #fff; border-radius: 22px; text-align: center; padding: 2.8rem 1.5rem;
}
.eam-act .eam-act-cta h2 { margin: 0 0 .5rem; font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.14; font-weight: 500; color: #fff; }
.eam-act .eam-act-cta__text { max-width: 54ch; margin: 0 auto 1.4rem; opacity: .94; }
.eam-act-cta__btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .eam-act-card, .eam-act-person, .eam-act-avatar--photo { transition: none; }
  .eam-act-card:hover, .eam-act-person:hover { transform: none; }
}
