/* ============================================================
   IEAc — Registry direction
   Institutional, content-first. No page builder.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Sticky footer.
   Short pages — /the-academy/mission/ is one paragraph — left the footer
   floating in the middle of the window with bare page beneath it, which reads
   as a rendering fault rather than the end of the document.

   The column stretches to the viewport and #main absorbs whatever is left over,
   so the footer sits on the bottom edge when content is short and is pushed
   below the fold when it is not. `flex: 1 0 auto` rather than `1 1 auto`: main
   must never be compressed below its content.

   dvh second so browsers without it keep the vh value. On mobile vh is the
   larger viewport, which overshoots by the height of the URL bar. */
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--text-base)/var(--lh-normal) var(--font-body);
  font-size: 1.25rem;     /* 20px at the default root size, matching the
                             reference site, but expressed in rem so it still
                             scales with the reader's own browser setting — a px
                             value here would silently override it. */
  -webkit-font-smoothing: antialiased;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#main { flex: 1 0 auto; }

/* Any node WordPress or a plugin injects into the body — a cookie banner, an
   admin bar — becomes a sibling in this column. Keeping the footer unshrinkable
   means those cannot squash it. */
.site-footer { flex: none; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: var(--shell-narrow); margin-inline: auto; }

/* Prose column.
   The reading measure is the container, not a cap applied inside a wider one.
   Capping .entry__content while its heading spans the full shell strands the
   text on the left and reads as a centring bug — which is exactly how it
   looked before this existed. Heading and body now share the same edges. */
.prose { width: min(var(--measure), 100%); margin-inline: auto; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; inset-block-start: var(--s2); inset-inline-start: var(--s2);
  z-index: 999; background: var(--fg); color: var(--fg-invert);
  padding: var(--s2) var(--s4); clip-path: none; width: auto; height: auto;
}

/* ---------- headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0 0 var(--s4);
}
h1 { font-size: clamp(1.9rem, 4.2vw, var(--text-3xl)); line-height: var(--lh-tight); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

.eyebrow {
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--link); margin: 0 0 var(--s3);
}

/* ============================================================
   Site header — one bar
   ============================================================ */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__in {
  /*
   * `1fr auto 1fr` rather than a flex row. The two flanking controls used to be
   * the same 44px square, which is what centred the navigation between them;
   * the initials beside the mark broke that symmetry and pushed the sections
   * off centre by half the word. Equal fractional tracks centre the middle
   * column whatever sits either side of it, so the mark can grow without the
   * navigation moving.
   */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s8);
  min-height: var(--bar-h);
  /*
   * Deliberately NOT positioned. The panels are absolutely positioned and want
   * the full-width header as their containing block; making this relative — it
   * was, to anchor the login button — capped them at the 1503px shell with a
   * 24px gutter either side, so a "full-width" panel sat in a box.
   */
}

/* The symbol and the initials, at the left. The full lockup's two-line wordmark
   set the bar's height; four letters do not. See header.php. */
.brand {
  grid-column: 1; justify-self: start;
  display: flex; align-items: center; gap: var(--s3);
  text-decoration: none; line-height: 0;
}
.brand img { width: 2.75rem; height: auto; display: block; flex: none; }
.brand__word {
  font: 400 1.35rem/1 var(--font-head);
  letter-spacing: .005em;
  color: var(--fg);
}
.brand:hover .brand__word { color: var(--link); }

/* ---------- landing header ----------
   White from the start, like every other page, and in the flow — so the hero
   begins beneath it rather than behind it.

   It was briefly transparent and fixed, sitting over the photograph. That
   worked while the picture was washed in a deep green the bar could disappear
   into; against a greyscale photograph the same trick reads as a bar that has
   failed to load, and reversing the mark to a white silhouette costs the one
   piece of colour on the screen. What is kept is the shadow: once the page has
   moved, the bar is a surface over it and says so. */
.site-header--landing {
  transition: box-shadow .25s ease;
}
.site-header--landing.is-scrolled { box-shadow: var(--shadow-sm); }

@media (prefers-reduced-motion: reduce) {
  .site-header--landing { transition: none; }
}

/* ---------- nav ----------
   The mark at the left, search at the right, the four sections centred between
   them. The two flanking controls are deliberately the same size, so the
   centring is real rather than approximate — `flex: 1` on the nav with its own
   contents centred puts the middle of the list at the middle of the bar only
   while what sits either side of it weighs the same. */
.site-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
}
.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--s8);
}
.site-nav__section { position: static; display: flex; align-items: center; }

/* ---------- search ----------
   The toggle is the same 2.75rem square as the mark opposite it, which is what
   keeps the navigation centred. The field it opens is positioned rather than
   in flow: growing the bar's contents as it opened would shift the four
   sections sideways, and the point of the control is that they do not move. */
/* Stretched to the full height of the bar, so the field's `100%` offset below
   measures from the bar's edge. Sized to the toggle it would have sat 13px
   *over* the bar, because the wrapper is 44px tall inside an 84px row. */
.site-search {
  grid-column: 3; justify-self: end;
  position: relative;
  display: flex; align-items: center; align-self: stretch;
}
.site-search__toggle {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--fg);
  border-radius: var(--radius-sm);
}
.site-search__toggle:hover { color: var(--link); }
.site-search__toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.site-search__form {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + var(--s2));
  z-index: 1;
  display: flex; align-items: center; gap: var(--s2);
  width: min(26rem, 80vw);
  padding: var(--s2);
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-search.is-open .site-search__form { opacity: 1; visibility: visible; transform: none; }
.site-search__field {
  flex: 1; min-width: 0; border: 0; background: none; padding: var(--s2) var(--s3);
  font: 400 var(--text-base)/1.3 var(--font-ui); color: var(--fg);
}
.site-search__field::placeholder { color: var(--fg-muted); }
.site-search__field:focus { outline: none; }   /* the ring goes on the card */
.site-search.is-open .site-search__form:focus-within { border-color: var(--link); }
.site-search__go {
  flex: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--btn-green); color: var(--btn-ink);
  font: 700 var(--text-xs)/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase;
  padding: .8em 1em;
}
.site-search__go:hover { background: var(--link-hover); }
.site-search__go:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }

.site-nav__top {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding-block: var(--s3);
  background: none; border: 0; cursor: pointer;
  /* The top-bar labels are one step up from the old 12px: --text-lg (18px), so
     they read as the navigation rather than as small print. */
  font: 700 var(--text-lg)/1 var(--font-ui);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.site-nav__top-group { display: inline-flex; align-items: center; }
.site-nav__top-group .site-nav__top--link { padding-inline-end: var(--s1); }
.site-nav__top-group .site-nav__mega-toggle {
  padding-inline: var(--s1);
  border-bottom-width: 3px;
}
.site-nav__top:hover { color: var(--link); }
.site-nav__chev { transition: transform .22s ease; }
.site-nav__top[aria-expanded="true"] {
  color: var(--link);
  border-bottom-color: var(--link);
}
.site-nav__top[aria-expanded="true"] .site-nav__chev { transform: rotate(180deg); }

/* ---------- mega panel ----------
   Full width under the bar. It animates on transform and opacity only: an
   auto-height transition needs the height measured every open, and a panel
   whose contents change height would then open to the wrong size.

   `visibility` is in the transition so the closed panel is genuinely
   unreachable — opacity alone leaves an invisible sheet over the page that
   still takes clicks, and its links still take keyboard focus. */
.mega {
  position: absolute;
  /* Inset rather than edge to edge. A panel that spans the whole window reads
     as a second page arriving; one that stops short of the edges reads as a
     drawer belonging to the bar above it — and the gap either side is what
     lets the blurred page show through and place it in front of something. */
  inset-inline: 0;
  margin-inline: auto;
  width: min(78rem, 100% - 3rem);

  /* 100% is the header's padding box, which stops above its 1px bottom rule —
     the panel would sit on top of the rule rather than under it. */
  inset-block-start: calc(100% + 1px);
  z-index: 60;

  /* Frosted: mostly opaque so the text keeps its measured contrast, with just
     enough transparency for the blur behind it to register as depth. */
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--rule);
  border-block-start: 0;
  border-end-start-radius: var(--radius-md);
  border-end-end-radius: var(--radius-md);
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .8);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .26s cubic-bezier(.2,.7,.3,1), visibility .26s;
}
.mega[hidden] { display: none; }
.mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mega__in {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: var(--s12);
  /* Taller, with a floor. The panel used to be as short as its shortest
     section, so opening "Get involved" after "Who we are" made the whole thing
     jump. A floor means every section opens to the same shape. */
  min-height: 30rem;
  padding: var(--s12);
  width: auto;
  /* `stretch`, not `start`. With the columns hugging their content the panel
     was 481px tall with everything in the top 140px of it — the floor made the
     box tall and left the contents sitting at the top of an empty room. Each
     column now takes the full height and distributes what it has. */
  align-items: stretch;
}

.mega__list { list-style: none; margin: 0; padding: 0; display: grid; }
.mega__list > li + li { border-top: 1px solid var(--rule-soft); }
/* Keep every destination row the same height across panels. Shorter lists now
   leave their unused room at the bottom instead of stretching three links to
   fill the complete panel. */
.mega__list { align-content: start; grid-auto-rows: minmax(4.8rem, auto); }
.mega__link {
  display: flex; align-items: center;
  min-height: 3.4rem;
  padding: var(--s4) var(--s4) var(--s4) var(--s4);
  font: 600 var(--text-base)/1.3 var(--font-ui);
  color: var(--fg); text-decoration: none;
}
.mega__link:hover { color: var(--link); }
/* The highlighted destination, whose description is showing. A filled block
   rather than a tint: this is the one row of the list that is doing something,
   and at 14px a tint is not a strong enough signal to explain why the text
   beside it changed. */
.mega__link.is-on {
  background: var(--btn-green); color: var(--btn-ink);
  padding-inline-start: var(--s4);
}

/* Panes are stacked in the same cell so the panel does not resize as the
   highlighted item changes — the whole point of switching in place. */
.mega__pane {
  grid-column: 2; grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: var(--s8);
  /* Both halves take the full height: the description spreads, the picture
     runs the depth of the panel the way UNDP's does. */
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease;
}
.mega__pane.is-on { opacity: 1; visibility: visible; }
/* No picture, no picture column. The description keeps its own measure rather
   than stretching across the width the image would have used. */
.mega__pane--flat { grid-template-columns: minmax(0, 1fr); }
/* A column, so the actions can sit at the bottom of the panel instead of
   floating directly under a short paragraph. */
.mega__body { display: flex; flex-direction: column; }
.mega__bullet-links {
  margin: 0; padding: 0;
  display: grid; gap: var(--s4);
  list-style: none;
}
.mega__bullet-links a {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--link); text-decoration: none;
  font: 700 var(--text-xs)/1.3 var(--font-ui);
  letter-spacing: .1em; text-transform: uppercase;
}
.mega__bullet-links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.mega__body h2 {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.12;
  margin: 0 0 var(--s4);
}
.mega__body p {
  margin: 0; color: var(--fg-soft);
  font-size: var(--text-lg); line-height: 1.6; max-width: 42ch;
}
.mega__ctas {
  display: flex; flex-wrap: wrap; gap: var(--s6);
  margin: auto 0 0 !important;
  padding-top: var(--s8);
}
.mega__cta {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--link); text-decoration: none;
}
.mega__cta:hover { text-decoration: underline; }
.mega__figure { display: flex; }
.mega__figure img {
  width: 100%; height: 100%;
  /* No aspect ratio: the picture takes whatever height the panel has, which is
     the same for every section, so the images cannot disagree about how tall
     the panel should be. */
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Dims the page rather than blocking it — the panel is a preview, and the rest
   of the page staying legible behind it is part of why it does not feel like a
   detour. */
.mega-veil {
  position: fixed; inset: 0; z-index: 40;
  /* Blurring the page rather than only dimming it. The field behind the header
     is in motion, and a moving background under an open menu is exactly the
     distraction the veil exists to remove — dimming alone left it legible
     enough to keep pulling the eye. */
  background: rgba(4, 20, 16, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .22s ease;
}
.mega-veil[hidden] { display: none; }
.mega-veil.is-open { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mega, .mega__pane, .mega-veil, .site-nav__chev { transition: none; }
}

/* ---------- mobile toggle ---------- */
.nav-toggle {
  display: none; margin-inline-start: auto;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  width: 2.75rem; height: 2.75rem; cursor: pointer;
  place-items: center; color: var(--fg);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 1.15rem; height: 2px; background: currentColor;
  transition: transform .16s ease, opacity .16s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { inset-block-start: -6px; }
.nav-toggle__bars::after  { inset-block-start: 6px; }
[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Where the bar collapses to a hamburger. Measured, not guessed: the two lists
   come to 275px and 343px, the mark 200px, and two 2rem gaps — 946px, or
   59.1rem, with the shell's gutters. 64rem leaves real headroom: at 62rem the
   boundary had only 31px to spare, and the labels come from a filterable array.

   It was 72rem, which was correct when the bar also had to fit a login button
   and an empty box of the same width balancing it. Those are gone, and leaving
   the breakpoint there collapsed a menu that fits comfortably on a 1024px
   laptop. Kept in step with `desktop` in app.js — if the two disagree, panels
   open on hover at a width where the menu is already an accordion. */
@media (max-width: 63.9375rem) {
  /* Back to a row here. The three-column grid exists to centre the navigation,
     and the navigation has gone into the drop-down — leaving it on would place
     the hamburger in the middle column the sections vacated. */
  .site-header__in { display: flex; gap: var(--s4); }
  .brand img { width: 2.4rem; }
  .brand__word { font-size: 1.2rem; }
  /* Search first, then the menu: the hamburger is the outermost control on the
     side the thumb reaches for. */
  .site-search { margin-inline-start: auto; order: 1; }
  .nav-toggle { display: grid; order: 2; }

  .site-nav {
    display: none;
    position: absolute; inset-inline: 0; inset-block-start: 100%;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s4) 0 var(--s6);
    max-height: calc(100dvh - 4.5rem); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; flex: none; }
  .site-nav__section { display: block; border-bottom: 1px solid var(--rule-soft); }
  .site-nav__top {
    width: 100%; justify-content: space-between;
    padding: var(--s4) var(--s6); border-bottom: 0;
    font-size: var(--text-xs); /* the 50% step is for the top bar only */
  }
  .site-nav__top-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav__top-group .site-nav__top--link {
    width: auto; justify-content: flex-start; padding-inline: var(--s6) var(--s2);
  }
  .site-nav__top-group .site-nav__mega-toggle {
    width: 3.5rem; justify-content: center; padding-inline: var(--s4);
  }

  /* No panel down here: the section becomes an accordion and its list is the
     whole of it. The descriptions and images are a desktop affordance — on a
     phone they would push every destination below the fold. */
  .mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: var(--bg-brand);
    transition: none;
  }
  /* The floor that keeps every desktop panel the same shape is meaningless
     here — the accordion is as tall as its list, and 480px of empty space
     under five links is not a design decision. */
  .mega__in { display: block; padding: 0; width: auto; min-height: 0; }
  .mega__pane { display: none; }
  .mega__link { padding: var(--s3) var(--s8); }
  .mega__link.is-on { background: none; color: var(--fg); padding-inline-start: var(--s8); }
  .mega__list > li + li { border-top: 1px solid var(--rule-soft); }
  .mega-veil { display: none; }

  /* The in-nav mark goes down with the nav; the bar copy takes over. */
  .site-nav .brand { display: none; }
  .brand--bar { display: block; order: -1; margin-inline-end: auto; }

  .site-nav__actions { padding: var(--s4) var(--s6) 0; }
  .btn--sm { width: 100%; text-align: center; }
}

/* ============================================================
   Editorial components (from the Journal direction)
   Registry supplies the structure; these supply the voice.
   Used sparingly — one editorial moment per page, not several.
   ============================================================ */

/* ---------- centred opener ----------
   For section and archive introductions. The italic in the headline is the
   whole point: it puts emphasis where a sub-heading would otherwise be needed. */
.opener {
  text-align: center;
  padding-block: var(--s16) var(--s12);
}

/* ============================================================
   The deep opener

   Every page now opens on the dark ground with the field behind it, and the
   body below stays light for reading. The two-surface split is the design:
   the opener is the instrument, the article is the paper.

   The first build put the field on a near-white opener and it read as dust.
   The ground is not a backdrop for this treatment, it is half of it.
   ============================================================ */
/* `.lead.lead--field`, not `.lead--field`.
   The base `.lead` rule sets --bg-sunk and is declared further down this file;
   at equal specificity the later rule wins, so the hero came out light-on-light
   — the deep text colour applied and the deep background did not. Doubling the
   class settles it by weight instead of by source order. */
.opener,
.lead.lead--field {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* One step off white, with a rule under it, so the head of the page reads as
     a distinct surface from the article without being a different design. The
     rules that follow set what these elements inherit anyway — they are what is
     left of the dark opener, and they are harmless. */
  background: var(--bg-opener);
  border-bottom: 1px solid var(--rule);
}

/* Everything inside inherits the deep palette rather than being overridden
   piece by piece — one place to change, and no chance of a stray element
   keeping ink-on-ink. */
.opener .crumb,
.opener .crumb a { color: var(--fg-muted); }
.opener .crumb a:hover { color: var(--link); }
.opener .opener__eyebrow,
.lead--field .eyebrow { color: var(--link); }
.opener h1,
.opener h2,
.lead--field h1 { color: var(--fg); }
.opener .opener__lede { color: var(--fg-soft); }
.opener .opener__meta { color: var(--fg-muted); }

.field {
  opacity: .55;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  /* Nothing here is interactive; the pointer belongs to the text above it. */
  pointer-events: none;
}

/* Contrast over the field.

   The first attempt put a radial scrim behind the text. It read as a dark
   ellipse smeared across the hero — a fix that was more visible than the
   problem. Reducing the whole canvas evenly does the same job without drawing
   attention to itself: the marks stay legible against the deep ground, and no
   node is ever bright enough behind a word to move the text's contrast.

   Measured on #0C1E19: text 14.99:1, muted 8.53:1, accent 9.58:1. At 0.55 the
   brightest node contributes under 5% luminance, so those hold. */
.field { opacity: .55; }

/* ---------- the hero on the deep ground ---------- */
.lead--field { border-bottom: 0; }
.lead--field .glance--row { border-top-color: var(--rule); }
.lead--field .glance dt { color: var(--fg); }
.lead--field .glance dd { color: var(--fg-muted); }
.lead--field .areas h2 { color: var(--fg-muted); }
.lead--field .areas li { border-color: var(--rule); }
.lead--field .areas__title { color: var(--fg-soft); }
.lead--field .areas a:hover .areas__title { color: var(--link); }
.lead--field .areas__stamp { border-color: var(--rule); }
.lead--field .more { color: var(--link); }
/* The logo is a dark lockup; on this ground it needs the reversed one. */

/* Buttons on the deep ground. The filled one keeps the brand green — 4.9:1
   against white text and it is the page's primary action; the outline one
   flips to the light rule so it does not disappear. */
.lead--field .btn--outline,
.opener .btn--outline {
  color: var(--fg);
  border-color: var(--rule);
  background: transparent;
}
.lead--field .btn--outline:hover,
.opener .btn--outline:hover {
  border-color: var(--link);
  color: var(--link);
}
.opener__eyebrow {
  margin: 0 0 var(--s6);
  font: 400 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .2em; text-transform: uppercase; color: var(--link);
}
.opener h1,
.opener h2 {
  margin: 0 auto var(--s6);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  /* 20ch was set when a long title was the exception. The news titles run to
     ninety characters and were coming out seven lines deep and half the width
     of the article under them, which reads as a column that has collapsed
     rather than a heading. `ch` here is the heading's own size, so this stays
     proportional as the display size changes. */
  max-width: 28ch;
  text-wrap: balance;
}
.opener em { font-style: italic; }
.opener__lede {
  margin: 0 auto;
  max-width: 54ch;
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--fg-muted);
}
.opener__meta {
  margin: var(--s4) 0 0;
  font: var(--text-sm)/1 var(--font-mono);
  color: var(--fg-muted);
}
.crumb--centred {
  text-align: center;
  margin-bottom: var(--s4);
}

/* Body copy always starts left-aligned, whatever the page head did. */
.opener + .section .prose,
.opener + .section .entry__content { text-align: start; }

/* ---------- rule heading ----------
   A hairline through the label. Signals a division without the weight of a
   full section header. */
.rule-heading {
  position: relative;
  text-align: center;
  margin-block: var(--s12) var(--s8);
  font: 400 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted);
}
.rule-heading::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%;
  height: 1px; background: var(--rule);
}
.rule-heading > span {
  position: relative; background: var(--bg); padding-inline: var(--s4);
}
.section--sunk .rule-heading > span { background: var(--bg-sunk); }

/* ---------- table of contents ----------
   A denser alternative to cards: metadata column, title, byline, hairline rule.
   Better than cards when titles are long and images are missing. */
.toc { list-style: none; margin: 0; padding: 0; display: grid; }
.toc > li { border-bottom: 1px solid var(--rule); }
.toc > li:first-child { border-top: 1px solid var(--rule); }
.toc a {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--s6);
  padding-block: var(--s6);
  text-decoration: none;
  color: var(--fg);
  align-items: baseline;
}
.toc a:hover .toc__title { color: var(--link); }
.toc__meta {
  font: 400 var(--text-xs)/1.6 var(--font-ui);
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted);
}
.toc__title {
  margin: 0 0 .25rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.toc__by { font-size: var(--text-sm); color: var(--fg-muted); }
.toc__excerpt {
  margin: var(--s2) 0 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 62ch;
}
.toc__ext {
  display: inline-block; margin-top: var(--s2);
  font: 600 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .06em; color: var(--fg-muted);
}
.toc a:hover .toc__ext { color: var(--link); }

/* ---------- year filters ---------- */
.filters { display: flex; gap: var(--s2); flex-wrap: wrap; padding-block: var(--s4) var(--s2); }
.filters .chip {
  font: 500 var(--text-sm)/1 var(--font-ui);
  background: var(--bg); color: var(--fg-muted);
  border: 1px solid var(--rule); border-radius: var(--radius-full);
  padding: var(--s2) var(--s4); text-decoration: none;
}
.filters .chip:hover { border-color: var(--link); color: var(--link); }
.filters .chip.is-on {
  background: var(--btn-green); color: var(--btn-ink);
  border-color: var(--link); font-weight: 600;
}
@media (max-width: 40rem) {
  .toc a { grid-template-columns: 1fr; gap: var(--s2); }
}

/* ---------- article typography ---------- */

/* Serif standfirst under an article title. */
.lede {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.4;
  color: var(--fg);
  margin: 0 0 var(--s8);
}

/* Drop cap on the opening paragraph. Long-form only — it looks absurd on a
   two-line page, so it is opt-in per template rather than global. */
/* Descendant, not child: `.prose` sits between `.has-dropcap` (the article)
   and `.entry__content`. */
.has-dropcap .entry__content > p:first-of-type::first-letter {
  float: inline-start;
  font-family: var(--font-head);
  font-size: 3.4em;
  line-height: .84;
  font-weight: 400;
  padding-inline-end: .08em;
  margin-block-start: .06em;
  color: var(--fg);
}

/* The Academy page puts its own sections inside .entry__content, so the
   dropcap needs a selector that starts from the section rather than the
   article. Same treatment, different ancestry. */
.acad-part.has-dropcap > p:first-of-type::first-letter {
  float: inline-start;
  font-family: var(--font-head);
  font-size: 3.4em;
  line-height: .84;
  font-weight: 400;
  padding-inline-end: .08em;
  margin-block-start: .06em;
  color: var(--fg);
}

/* Colophon — a quiet closing line, borrowed from the Journal footer. */
.colophon {
  border-top: 1px solid var(--fg);
  margin-top: var(--s16);
  padding-block: var(--s6) var(--s4);
  display: flex; gap: var(--s8); justify-content: space-between; flex-wrap: wrap;
  font: 400 var(--text-sm)/1.6 var(--font-ui);
  color: var(--fg-muted);
}
.colophon a { color: var(--link); text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

/* ---------- section furniture ---------- */
.section { padding-block: var(--s12); border-bottom: 1px solid var(--rule); }
.section--sunk { background: var(--bg-sunk); }
.section__hd {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s4); flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); padding-bottom: var(--s2);
  margin-bottom: var(--s6);
}
.section__hd h2 {
  margin: 0; font-family: var(--font-ui);
  font-size: var(--text-sm); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.section__hd a {
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.section__hd a:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--btn-green); color: var(--btn-ink);
  text-decoration: none; padding: var(--s3) var(--s6);
  font: 600 var(--text-sm)/1.3 var(--font-ui); border: 0; cursor: pointer;
  border-radius: var(--radius-sm);
}
.btn:hover { background: var(--btn-green-hover); color: var(--btn-ink); }
.btn--outline { background: transparent; color: var(--fg); border: 1px solid var(--rule); }
.btn--outline:hover { background: var(--bg-sunk); color: var(--link); border-color: var(--link); }

/* ============================================================
   THE HOMEPAGE
   The page opens on the work the Academy does rather than on a
   statement about it. The list of collaborative work areas is
   the hero's content and its one interaction: moving through it
   changes the photograph behind everything, and each row opens
   its own description.
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  /* The full view. `min-height`, not `height`, so the hero still grows when its
     own contents need more than the window — a short laptop in landscape has
     to fit a 50px title, five rows and the strip, and clipping any of that to
     hold a round number would be the wrong trade.

     `dvh` after `vh`: on a phone `100vh` is the window with the browser's own
     chrome *excluded from the measurement but not from the screen*, so the
     ticker sits under the address bar until you scroll. `dvh` is the height
     actually available. The `vh` line stays as the fallback for anything that
     does not know `dvh`.

     Less the bar, which sits above the hero in the flow rather than over it —
     without that subtraction "full view" would be one bar's worth taller than
     the view, and the strip along the foot would start off-screen. */
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100dvh - var(--bar-h));
  display: grid; align-items: center;
  background: var(--wash);
}

/* Stacked frames, cross-faded. The scale is a slow drift, not a zoom —
   it only has to keep the picture from feeling like a still. */
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  filter: grayscale(1);
  transition: opacity .7s ease, transform 8s linear;
}
.hero__media img.is-on { opacity: 1; transform: scale(1); }

/* The ground for a work area with no photograph — drawn, not borrowed. */
.hero__drawn {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
  /* The soft glow only. The dots that used to sit on it read as stray bullets
     beside the list and the label, so they are gone. */
  background: radial-gradient(ellipse at 62% 48%, rgba(23, 115, 80, .55), transparent 62%);
}
.hero.is-drawn .hero__drawn { opacity: 1; }

/* Neutral, since the photographs are already greyscale — a coloured scrim over
   a desaturated picture is just the tint again, arriving from the other side.

   Two layers still: one that deepens towards the type, so legibility never
   depends on what happens to be in the picture, and one at the foot. The foot
   is deliberately light — the ticker sits there and is meant to be
   see-through, which it cannot be over a picture already blacked out. */
.hero__wash {
  position: absolute; inset: 0;
  background:
    /* Heavy enough that white text keeps its contrast on every area's photograph,
       including the bright ones; the columns of copy sit on the darker side. */
    linear-gradient(to right, rgba(20, 24, 27, .9) 0%, rgba(20, 24, 27, .82) 50%, rgba(20, 24, 27, .78) 100%),
    linear-gradient(to top, rgba(12, 15, 17, .35), transparent 40%);
}

/* The foot of the hero has to clear the ticker, which is not a fixed height —
   its headlines wrap to two or three lines as the column narrows. The real
   height is measured and published as `--ticker-h`; 5.5rem is what it comes to
   on a wide screen, and stands in until then. */
/* The 7.5rem is what the ticker measures on a wide screen and stands in until
   the real height is published as --ticker-h; it is not a guess to be left
   alone, because with no scripting at all this is the only value there is. */
.hero__in {
  position: relative;
  padding-block: var(--s4) calc(var(--s6) + var(--ticker-h, 7.5rem));
}
.hero__grid {
  --hero-logo-track: 4rem;
  --hero-identity-gap: var(--s4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 1fr);
  /* column-gap: clamp(var(--s6), 4vw, var(--s12)); */
  column-gap: clamp(3rem, 5vw, 6rem);
  row-gap: var(--s3);
  align-items: start;
}
.hero__intro { display: contents; }
.hero__identity {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: var(--hero-logo-track) minmax(0, 1fr);
  gap: var(--hero-identity-gap);
  align-items: start;
}
.hero__logo { width: var(--hero-logo-track); height: var(--hero-logo-track); object-fit: contain; }
.hero__copy {
  grid-column: 1;
  grid-row: 2;
  margin-inline-start: calc(var(--hero-logo-track) + var(--hero-identity-gap));
}
.hero__copy p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  color: rgba(255, 255, 255, .84);
  font: 400 1rem/1.42 var(--font-ui);
  margin-top: var(--s4);
}
.hero__copy > p:first-child { margin-top: 0; }
.hero__areas { grid-column: 2; grid-row: 2; }

/* The one thing on the page that is meant to be seen first. Large enough to
   hold the screen on its own, and held to about 20 characters a line so the
   name breaks where it reads — International Evaluation / Academy — rather
   than wherever the column happens to end. */
.hero__title {
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.03;
  letter-spacing: -.015em;
  max-width: 20ch;
}
.hero__sub {
  color: rgba(255, 255, 255, .84);
  font: 400 1rem/1.42 var(--font-ui);
  margin-top: var(--s4);
}
.hero__copy-title {
  margin: var(--s3) 0 0;
  color: #fff;
  font: 600 1rem/1.3 var(--font-ui);
  letter-spacing: .02em;
}
.hero__copy-title + .hero__sub { margin-top: var(--s1); }
.hero__copy-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.hero__copy-link:hover .hero__copy-title { color: var(--link-brand); }
.hero__copy-link:focus-visible {
  outline: 2px solid var(--link-brand);
  outline-offset: 4px;
}
.hero__bubble {
  position: absolute;
  z-index: 5;
  inset-inline-start: calc(100% + var(--s4));
  top: 50%;
  width: min(22rem, 42vw);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(8px, -50%) scale(.97);
  transform-origin: left center;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.hero__bubble-clip { display: block; }
.hero__bubble-in {
  position: relative;
  display: block;
  padding: var(--s3) var(--s4);
  border: 1px solid rgba(119, 228, 187, .42);
  border-radius: var(--radius-sm);
  background: rgba(10, 51, 36, .98);
  color: #fff;
  font: 400 var(--text-sm)/1.5 var(--font-ui);
  box-shadow: 0 14px 36px rgba(4, 20, 16, .38);
}
.hero__bubble-in::before {
  content: "";
  position: absolute;
  inset-inline-start: -.42rem;
  top: 50%;
  width: .75rem;
  height: .75rem;
  background: rgba(10, 51, 36, .98);
  border-inline-start: 1px solid rgba(119, 228, 187, .42);
  border-bottom: 1px solid rgba(119, 228, 187, .42);
  transform: translateY(-50%) rotate(45deg);
}
.hero__copy-link:hover .hero__bubble,
.hero__copy-link:focus-visible .hero__bubble {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%) scale(1);
  transition-delay: 0s;
}
/* The label belongs to the list under it, not to the title above, so it sits
   nearer the list than the space that separates the two. */
.hero__label { margin-top: 0 !important; }
.hero .eyebrow { color: #fff; margin-bottom: var(--s4); }

/* ---------- the work areas ---------- */
.picker { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: area; }
.picker li { border-top: 1px solid rgba(255, 255, 255, .22); counter-increment: area; }
.picker li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.picker a {
  display: grid; grid-template-columns: minmax(0, 1fr) 1.6rem; align-items: center;
  padding: var(--s4) var(--s1) var(--s4) 0;
  text-decoration: none; color: rgba(255, 255, 255, .8);
  font-family: var(--font-head); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.25;
  transition: color .25s ease, padding-inline-start .25s ease;
}
/* Every cell placed by hand. Leaving four items — number, label, description,
   chevron — to auto-placement works right up until one of them changes. */
.picker__t { grid-column: 1; grid-row: 1; }
/* No numbers before the areas: the list is read by its titles. */
.picker a::before {
  content: none;
  grid-column: 1; grid-row: 1 / 3; align-self: center;
  font: 600 var(--text-xs)/1 var(--font-ui); letter-spacing: .1em;
  color: var(--link-brand); opacity: .65; transition: opacity .25s ease;
}
.picker a::after {
  content: "\203a"; grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end;
  font-size: 1.4rem; opacity: 0; transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
/* The description belongs to the row rather than to a panel across the page:
   the row that is already lit carries its own explanation. */
.picker__d {
  grid-column: 1; grid-row: 2;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  font: 400 var(--text-sm)/1.55 var(--font-ui); color: rgba(255, 255, 255, .78);
  transition: grid-template-rows .35s cubic-bezier(.2, .7, .3, 1), opacity .3s ease, margin-top .35s ease;
}
.picker__d > span { overflow: hidden; }
.picker a:hover, .picker a:focus-visible, .picker a[data-on="true"] { color: #fff; }
/* The indent is for the item a reader is pointing at, not the one the photographs
   have reached, so the text does not step sideways as the photographs turn. */
.picker a:hover, .picker a:focus-visible { padding-inline-start: var(--s3); }
.picker a:hover::before, .picker a:focus-visible::before, .picker a[data-on="true"]::before { opacity: 1; }
.picker a:hover::after, .picker a:focus-visible::after, .picker a[data-on="true"]::after { opacity: 1; transform: none; }
.picker a:hover .picker__d,
.picker a:focus-visible .picker__d,
.picker a[data-on="true"] .picker__d { grid-template-rows: 1fr; opacity: 1; margin-top: var(--s2); }
.picker a:focus-visible { outline: 2px solid var(--link-brand); outline-offset: 3px; }

@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .hero__identity, .hero__copy, .hero__areas { grid-column: 1; }
  .hero__identity { grid-row: 1; }
  .hero__copy { grid-row: 2; }
  .hero__areas { grid-row: 3; }
  .hero__bubble {
    inset-inline-start: 0;
    top: auto;
    bottom: calc(100% + var(--s2));
    width: min(22rem, 100%);
    transform: translateY(8px) scale(.97);
    transform-origin: left bottom;
  }
  .hero__bubble-in::before {
    inset-inline-start: var(--s6);
    top: auto;
    bottom: -.42rem;
    transform: rotate(-45deg);
  }
  .hero__copy-link:hover .hero__bubble,
  .hero__copy-link:focus-visible .hero__bubble { transform: translateY(0) scale(1); }
}
@media (max-width: 34rem) {
  .hero__grid { --hero-logo-track: 3.5rem; }
}

/* ---------- the ticker, along the foot of the picture ----------
   Glass, not a bar: the photograph carries on underneath and is frosted. The
   blur is what makes it legible — a thin flat tint over an unblurred picture
   would put headlines on top of whatever detail happened to be there. */
.ticker {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2; overflow: hidden;
  /* The brand green, and the only place it touches the hero's photography now
     that the pictures are grey. Held a little heavier than the neutral scrim it
     replaces: a tint has to be dense enough to read as a colour rather than as
     a photograph that failed to desaturate. */
  background: #487C32;  /* midway between the original dark green and the live site's green */
  border-top: 1px solid rgba(119, 228, 187, .3);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .ticker { background: #487C32; }
}
.ticker__track { display: flex; width: max-content; animation: ticker 72s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick {
  flex: none; width: min(22rem, 72vw);
  display: grid; gap: var(--s2); align-content: start;
  padding: var(--s3) var(--s6); text-decoration: none;
  border-inline-end: 1px solid rgba(255, 255, 255, .14);
}
.tick__k {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 700 var(--text-xs)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
}
.tick__k::before { content: none; }
/* One colour for every banner header: white, as the body text is. */
.tick__k { color: #fff; }
/* The ground is thin, so the type carries its own shadow rather than depending
   on what is in the picture underneath. */
.tick__k, .tick__t { text-shadow: 0 1px 3px rgba(4, 20, 16, .6); }
.tick__t { color: #fff; font-size: var(--text-sm); line-height: 1.35; }
.tick__m { color: #fff; }
.tick:hover .tick__t, .tick:focus-visible .tick__t { text-decoration: underline; text-underline-offset: 3px; }
.tick:focus-visible { outline: 2px solid var(--link-brand); outline-offset: -3px; }

/* ---------- who we are ----------
   Five small boxes, no pictures. The work areas above are already carrying the
   photography, and five stamps at this size would be decoration. */
.who { padding-block: var(--s12); }
.who__hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); }
.who h2 {
  font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--fg-muted); margin: 0;
}
.who__grid { display: grid; gap: var(--s3); grid-template-columns: repeat(5, 1fr); }
.box {
  position: relative; display: grid; align-content: start; gap: var(--s1);
  padding: var(--s4) var(--s4) var(--s12);
  text-decoration: none; color: var(--fg);
  background: var(--bg-opener); border: 1px solid var(--rule-soft); border-radius: var(--radius-sm);
  overflow: hidden; isolation: isolate;
  transition: border-color .25s ease, transform .25s ease;
}
/* The fill arrives from the foot rather than the whole box changing at once. */
.box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wash);
  transform: translateY(101%); transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.box:hover, .box:focus-visible { border-color: var(--wash); transform: translateY(-2px); }
.box:hover::before, .box:focus-visible::before { transform: none; }
.box:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.box__n { font: 600 .58rem/1 var(--font-ui); letter-spacing: .14em; color: var(--link); transition: color .25s ease; }
.box__t { font-size: var(--text-base); line-height: 1.25; transition: color .25s ease; }
.box__d { font: 400 .76rem/1.45 var(--font-ui); color: var(--fg-muted); transition: color .25s ease; }
.box__go {
  position: absolute; left: var(--s4); bottom: var(--s3);
  font-size: 1.2rem; line-height: 1; color: var(--link);
  transition: color .25s ease, transform .25s ease;
}
.box:hover .box__n, .box:focus-visible .box__n { color: var(--link-brand); }
.box:hover .box__t, .box:focus-visible .box__t { color: #fff; }
.box:hover .box__d, .box:focus-visible .box__d { color: rgba(255, 255, 255, .78); }
.box:hover .box__go, .box:focus-visible .box__go { color: var(--link-brand); transform: translateX(4px); }

/* The three lists that carried these colours on the page have gone; the ticker
   is the only place the key appears now, and it carries its own. The --kind-*
   ink values stay in tokens.css — the listing pages are where they belong
   next. */

/* ---------- at a glance ----------
   Two figures and a row of numbers. The chrome is deliberately quiet: hairline
   rules one shade off the surface, no gridlines, thin marks. What carries the
   colour is the data, and nothing else on this band does. */
.glance { padding-block: var(--s12) var(--s16); border-top: 1px solid var(--rule-soft); }
.glance__hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s8); }
.glance h2 {
  font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--fg-muted); margin: 0;
}
.glance__since { font: 400 var(--text-sm)/1 var(--font-ui); color: var(--fg-muted); margin: 0; }

/* Headline figures. Proportional digits, not tabular — equal-width digits make
   a number this size read loose. */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); margin: 0 0 var(--s12); }
.kpi { border-top: 2px solid var(--fg); padding-top: var(--s3); }
.kpi dt { font: 500 var(--text-xs)/1.4 var(--font-ui); color: var(--fg-muted); order: 2; }
.kpi dd { margin: 0 0 var(--s2); }
.kpi { display: flex; flex-direction: column; }
.kpi__n {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600; line-height: 1; color: var(--fg); font-variant-numeric: proportional-nums;
}

/* The ring takes the wider column — it is carrying its own labels now, so it
   needs the room the legend used to take underneath it. */
.glance__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s16); align-items: start; }
.glance__side { display: grid; align-content: start; gap: var(--s12); }
.chart { margin: 0; }
.chart figcaption { margin-bottom: var(--s6); }
.chart h3 { font-size: var(--text-xl); line-height: 1.25; margin: 0 0 var(--s2); }
.chart figcaption p { font: 400 var(--text-sm)/1.55 var(--font-ui); color: var(--fg-muted); margin: 0; max-width: 46ch; }

/* ---- the ring, with its labels on it ---- */
.donut { display: block; width: 100%; height: auto; max-width: 41rem; margin-inline: auto; }
.donut__track { fill: none; stroke: var(--rule-soft); stroke-width: 30; }
.donut__seg {
  fill: none; stroke-width: 30; stroke-linecap: butt;
  /* Drawn from twelve o'clock, and closed until the figure is in view. */
  transform: rotate(-90deg); transform-origin: 300px 165px;
  stroke-dasharray: 0 999;
  stroke-dashoffset: var(--off);
  transition: stroke-dasharray .9s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--delay);
}
.chart.is-in .donut__seg { stroke-dasharray: var(--len) 999; }

.donut__total { font: 600 2.1rem/1 var(--font-head); fill: var(--fg); }
.donut__totlab { font: 500 .62rem/1 var(--font-ui); letter-spacing: .16em; fill: var(--fg-muted); }

/* The names sit on the chart rather than in a list under it. Four categories is
   where a legend stops being worth the lookup, and the two close ones — 24 and
   23 — could only ever be told apart by their numbers anyway. */
.callout { opacity: 0; transition: opacity .5s ease; transition-delay: var(--delay); }
.chart.is-in .callout { opacity: 1; }
.callout__lead { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
/* Text wears text tokens; the leader running back to the arc carries identity. */
.callout__name { font: 600 .82rem/1 var(--font-ui); fill: var(--fg); }
.callout__val { font: 400 .8rem/1 var(--font-ui); fill: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* ---- the bars ---- */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.bars li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 4.5rem; align-items: center; gap: var(--s4); }
.bars__label { font-size: var(--text-sm); color: var(--fg); }
.bars__track { height: .85rem; background: var(--rule-soft); border-radius: 2px; overflow: hidden; }
.bars__fill {
  display: block; height: 100%; width: 0; border-radius: 2px;
  background: var(--link);
  transition: width .9s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--delay);
}
.chart.is-in .bars__fill { width: var(--w); }
.bars__val { font: 600 var(--text-base)/1 var(--font-ui); color: var(--fg); text-align: end; font-variant-numeric: tabular-nums; }

/* ---- the table twin, and the notes ----
   In a dialog rather than a disclosure: opened in place the table pushed the
   column below it down and left a tall gap beside it, and four numeric columns
   want more width than half the section anyway. */
.glance__open {
  justify-self: start;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 var(--text-xs)/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
  color: var(--link);
}
.glance__open:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
.glance__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.tabledlg {
  border: 0; border-radius: var(--radius-md); padding: var(--s8);
  width: min(46rem, 100% - 2rem); max-height: min(80vh, 44rem);
  background: var(--bg-card); color: var(--fg);
  box-shadow: 0 24px 60px rgba(16, 31, 46, .22);
}
.tabledlg::backdrop { background: rgba(16, 31, 46, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tabledlg__hd { display: flex; align-items: start; justify-content: space-between; gap: var(--s6); margin-bottom: var(--s6); }
.tabledlg__hd h3 { font-size: var(--text-xl); line-height: 1.25; margin: 0; }
.tabledlg__x {
  flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  font-size: 1.5rem; line-height: 1; color: var(--fg-muted); cursor: pointer;
}
.tabledlg__x:hover { border-color: var(--link); color: var(--link); }
.tabledlg__x:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tabledlg table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tabledlg caption { text-align: start; font: 500 var(--text-xs)/1.4 var(--font-ui); color: var(--fg-muted); padding-bottom: var(--s3); }
.tabledlg th, .tabledlg td { text-align: end; padding: var(--s3); border-bottom: 1px solid var(--rule-soft); font-variant-numeric: tabular-nums; }
.tabledlg thead th, .tabledlg tbody th { text-align: start; font-weight: 600; }
.tabledlg thead th { border-bottom-color: var(--fg); }
.glance__note { margin-top: var(--s6); font: 400 var(--text-sm)/1.6 var(--font-ui); color: var(--fg-muted); max-width: 76ch; }

/* The list is the ring's labels at the width where the ring cannot carry them;
   one or the other is shown, never both. */
.legend { display: none; }

@media (max-width: 62rem) {
  .glance__grid { grid-template-columns: 1fr; gap: var(--s12); }
  .kpis { grid-template-columns: repeat(2, 1fr); }

  /*
   * Text inside an SVG scales with the viewBox, so at a phone's width the
   * callouts land at under 8px — legible to nobody. Below this width they go,
   * the ring is scaled up and its now-empty label margins are cropped away by
   * the figure, and the list underneath carries the names and figures.
   */
  .chart { overflow: hidden; }
  .callout { display: none; }
  .donut { width: 168%; max-width: none; margin-inline-start: -34%; }

  .legend { display: grid; margin: var(--s6) 0 0; padding: 0; list-style: none; gap: 0; }
  .legend li {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
    padding-block: var(--s3); border-bottom: 1px solid var(--rule-soft);
  }
  .legend li:first-child { border-top: 1px solid var(--rule-soft); }
  .legend__dot { width: .7rem; height: .7rem; border-radius: 2px; }
  .legend__label { font-size: var(--text-sm); color: var(--fg); }
  /* Values wear text tokens; the swatch beside them carries the identity. */
  .legend__val { font: 600 var(--text-sm)/1 var(--font-ui); color: var(--fg); font-variant-numeric: tabular-nums; }
  .legend__val i { font-style: normal; font-weight: 400; color: var(--fg-muted); margin-inline-start: var(--s2); }
}
@media (max-width: 34rem) {
  .kpis { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .bars li { grid-template-columns: 5rem minmax(0, 1fr) 3.8rem; gap: var(--s3); }
}

/* The global reduced-motion rule already stops the transitions; these two make
   sure what is left is the finished chart rather than an empty one. */
@media (prefers-reduced-motion: reduce) {
  .donut__seg { stroke-dasharray: var(--len) 999; }
  .bars__fill { width: var(--w); }
}

/* ---------- the Academy page ----------
   Three treatments on one page, because it holds three kinds of writing. The
   old site separated them with bordered boxes and clip-art icons; the
   separation was right, the means were not. */

/* Page actions, inside the opener with the title they act on. No negative
   margin: the previous version was pulled up out of its own flow and ended up
   painted behind the opener, which also made it unclickable. */
.opener__actions {
  display: flex;
  justify-content: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin: var(--s6) 0 0;
}

/* The narrative: one reading measure, sections divided by space and a hairline
   rather than by a container. */
/* The quiet expression of the field: a divider that is a node-and-edge rule
   rather than a hairline. Drawn in gradients, not canvas — these sit between
   paragraphs on the pages people spend the longest on, and running an
   animation there would be the exact mistake the field is kept out of prose to
   avoid. Three nodes, uneven, so it reads as drawn rather than as a border. */
.acad-narrative .acad-part {
  margin-block-end: 0;
}
.acad-narrative .acad-part + .acad-part {
  margin-top: 0;
  padding-top: var(--s6);
  border-top: 0;
  position: relative;
}
.acad-narrative .acad-part + .acad-part::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 7px;
  /* Wiped in from the left when the section is reached. `clip-path` rather
     than width, so the three nodes stay where they are and are uncovered in
     place instead of sliding along the rule. */
  clip-path: inset(0 100% 0 0);
  transition: clip-path .85s cubic-bezier(.22,.75,.25,1);
  background:
    radial-gradient(circle at 22% 50%, var(--link) 0 2.5px, transparent 2.6px),
    radial-gradient(circle at 53% 50%, var(--link) 0 3.5px, transparent 3.6px),
    radial-gradient(circle at 79% 50%, var(--link) 0 2px, transparent 2.1px),
    linear-gradient(
      to right,
      transparent 0%,
      var(--rule) 12%,
      var(--rule) 88%,
      transparent 100%
    ) center / 100% 1px no-repeat;
  background-repeat: no-repeat;
}
.acad-narrative .acad-part > h2 {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em;
  text-transform: none;
  margin: 0 0 var(--s4);
}

/* Match the main What We Do sections to the Academy page hierarchy while
   leaving its h5 supporting sections visibly subordinate. */
.workareas-content > h4 {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.workareas-content > h5 {
  font-family: var(--font-head);
  font-size: var(--text-xl); font-weight: 700; line-height: var(--lh-snug);
  letter-spacing: -.015em;
  margin-block: var(--s8) var(--s2);
}

/* The roles: three abreast, since they are read by comparison — which of these
   am I, and what is the next one up. Stacked in a single column that
   comparison is invisible. */
.acad-roles, .acad-more { margin-top: var(--s16); }
.acad-roles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s8);
  align-items: start;
}
.acad-role {
  border-top: 3px solid var(--link);
  padding-top: var(--s4);
}
.acad-role h3 {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 400; line-height: 1.25;
  margin: 0 0 var(--s3);
}
.acad-role p {
  margin: 0 0 var(--s3);
  font-size: var(--text-sm); line-height: 1.62; color: var(--fg-soft);
}

/* The pointers: a contents block. These sections are one line of summary and a
   link, so they are listed as links rather than dressed up as articles. */
.acad-more__list { list-style: none; margin: 0; padding: 0; display: grid; }
.acad-more__list > li { border-bottom: 1px solid var(--rule); }
.acad-more__list > li:first-child { border-top: 1px solid var(--rule); }
/* The scale is s1–s4, s6, s8, s12, s16, s24, s32 — there is no s5, s7 or s10.
   An undefined custom property makes the whole declaration invalid, so
   `padding-block: var(--s5)` did not fall back to something smaller, it fell
   back to zero and the rows sat directly on their rules. */
.acad-more__list a {
  display: grid; grid-template-columns: 3rem 1fr; gap: var(--s6);
  padding-block: var(--s6);
  text-decoration: none; color: var(--fg);
  align-items: baseline;
}
.acad-more__num {
  font: 400 var(--text-sm)/1.4 var(--font-mono);
  color: var(--fg-muted); letter-spacing: .06em;
}
.acad-more__title {
  display: block;
  /* These are <h3> so their IDs survive — the menu links to #governance and
     #mission — which brings the global heading margin with them. */
  margin: 0;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 400;
  line-height: 1.25; letter-spacing: -.01em;
}
.acad-more__list a:hover .acad-more__title { color: var(--link); }
.acad-more__note {
  display: block; margin-top: var(--s2);
  font-size: var(--text-sm); line-height: 1.6; color: var(--fg-soft);
  max-width: 68ch;
}

@media (max-width: 60rem) {
  .acad-roles__grid { grid-template-columns: 1fr; gap: var(--s8); }
}

/* ---------- wide band ---------- */
.band { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.band img { width: 100%; max-height: 320px; object-fit: cover; }
/* A band with no caption over it — used where the image is the page's opening
   image rather than a captioned figure. */
.band--plain { margin: 0; border-block: 1px solid var(--rule); }
.band__cap {
  position: absolute; inset-inline: 0; inset-block-end: 0; color: #fff;
  padding-block: var(--s4);
  background: linear-gradient(transparent, rgba(4, 20, 16, .88));
}
.band__cap .shell { font-size: var(--text-sm); line-height: 1.5; }
.band__cap b { display: block; font-size: var(--text-base); margin-bottom: .1rem; }

/* ---------- card grid ---------- */
.grid { display: grid; gap: var(--s6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Cards take their content's height rather than stretching to the tallest in
   the row. This alone fixes the padded-out look; the masonry upgrade below
   then closes the vertical gaps it leaves. */
.grid--cards { align-items: start; }

/* Masonry.
   Applied by JS (`is-masonry`) because the row spans have to be measured. Rows
   are 1px and the row gap is folded into each item's margin, so a span is just
   the item's pixel height — no fractional-row rounding.

   Reading order stays left-to-right, which CSS multi-column would not preserve:
   `columns: 3` fills the first column top to bottom, so a date-ordered news
   list would read down instead of across. */
.grid--cards.is-masonry {
  grid-auto-rows: 1px;
  row-gap: 0;
}
.grid--cards.is-masonry > * {
  margin-bottom: var(--s6);
  align-self: start;
}

@media (max-width: 45rem) {
  /* Single column — masonry is meaningless and the spans would fight the flow. */
  .grid--cards.is-masonry { grid-auto-rows: auto; row-gap: var(--s6); }
  .grid--cards.is-masonry > * { margin-bottom: 0; grid-row-end: auto !important; }
}

.card {
  border: 1px solid var(--rule); background: var(--bg-card);
  display: grid; grid-template-rows: auto 1fr;
  text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--link); }
.card:hover .card__title { color: var(--link); }
.card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-sunk); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty {
  display: grid; place-items: center; border-bottom: 1px solid var(--rule); text-align: center;
}
.card__media--empty span {
  font: 600 var(--text-xs)/1.5 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); padding: var(--s4);
}
.card__body { padding: var(--s4) var(--s4) var(--s6); display: grid; gap: var(--s2); align-content: start; }
.card__num { font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .12em; color: var(--link); }
.card__stamp { float: right; width: 4rem; height: 4rem; object-fit: cover; margin: 0 0 var(--s2) var(--s3); }
.card__title { margin: 0; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.card__meta { font-size: var(--text-sm); color: var(--fg-muted); }
.card__excerpt { margin: 0; font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.55; }
.badge {
  font: 700 var(--text-xs)/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--warn) 16%, var(--bg-card)); color: var(--warn); padding: .24rem .5rem; justify-self: start;
}

/* ---------- link lists ---------- */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--rule-soft); }
.linklist a { display: grid; gap: .2rem; padding: var(--s3) 0; text-decoration: none; color: var(--fg); }
.linklist a:hover .t { color: var(--link); }
.linklist .d { font: var(--text-xs)/1 var(--font-mono); color: var(--fg-muted); letter-spacing: .05em; text-transform: uppercase; }
.linklist .t { font-size: .95rem; line-height: 1.38; font-weight: 600; }
.more {
  display: inline-block; margin-top: var(--s3);
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
}
.more:hover { text-decoration: underline; }

/* ---------- publications ----------
   A journal contents page. Wider than .toc because each entry carries a cover
   plate and a standfirst, and numbered because that is what a contents page
   does — it also gives the eye a fixed left edge to run down when the titles
   are long, which these are.

   The previous treatment was four closed accordions, so the page showed four
   grey bars and no publications. Nothing here is collapsible. */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; }
/* Number, text, then cover. The cover sits on the trailing edge so that an
   entry without one is simply a shorter row — no hole in front of the title,
   and every title starts on the same left edge whether or not an image exists.
   The column is declared for all rows so the covers that do exist line up. */
.pubs__item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 7.5rem;
  gap: var(--s6);
  align-items: start;
  padding-block: var(--s8);
  border-bottom: 1px solid var(--rule);
}
.pubs__cover { grid-column: 3; }
.pubs__item:first-child { border-top: 1px solid var(--rule); }

.pubs__num {
  font: 400 var(--text-sm)/1.4 var(--font-mono);
  color: var(--fg-muted);
  letter-spacing: .06em;
  padding-top: .3rem;
}

.pubs__cover img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  /* Covers are portrait; a fixed ratio keeps the rows even whatever arrives. */
  aspect-ratio: 3 / 4;
  object-fit: cover;
}


.pubs__line {
  display: block;
  font: 400 var(--text-xs)/1.6 var(--font-ui);
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted);
}
.pubs__title {
  margin: .3rem 0 0;
  font-family: var(--font-head); font-weight: 400;
  font-size: 1.45rem; line-height: 1.24; letter-spacing: -.01em;
  text-wrap: balance;
}
.pubs__title a { color: var(--fg); text-decoration: none; }
.pubs__title a:hover { color: var(--link); }
.pubs__stand {
  margin: var(--s3) 0 0;
  font-size: var(--text-sm); line-height: 1.65; color: var(--fg-soft);
  max-width: 64ch;
}
.pubs__links { display: flex; gap: var(--s6); flex-wrap: wrap; }

/* Not a chip: chips are interactive filters. This is a state label, so it is
   flat and non-clickable, and sits inline with the title it qualifies. */
.tag {
  display: inline-block; vertical-align: middle;
  margin-inline-start: var(--s3);
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35em .6em; border-radius: var(--radius-sm);
}
.tag--soon { background: var(--bg-sunk); color: var(--fg-muted); border: 1px solid var(--rule); }

/* ---------- one publication ---------- */
.pub-head {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--s6) var(--s8);
  align-items: start;
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s8);
}
.pub-head__cover img {
  width: 100%; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4; object-fit: cover;
}
.pub-head--flush { grid-template-columns: 1fr; }
.pub-head--flush .pub-head__cta { grid-column: 1; }

/* Bibliographic facts as a two-column definition list — label left, value
   right — so they can be scanned without reading. */
.pub-head__facts {
  margin: 0;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .55rem var(--s4);
  font-size: var(--text-sm);
}
.pub-head__facts dt {
  font: 400 var(--text-xs)/1.5 var(--font-ui);
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted);
  padding-top: .12rem;
}
.pub-head__facts dd { margin: 0; color: var(--fg); }
.pub-head__cta { grid-column: 2; margin: var(--s2) 0 0; }

/* The abstracts carry chapter headings and author lines, restructured out of
   the single paragraph they arrived in. */
.entry__content .pub__by {
  margin-top: -.4rem;
  font-size: var(--text-sm); color: var(--fg-muted);
}

@media (max-width: 46rem) {
  /* One column on narrow screens: a 7.5rem cover beside a title leaves the text
     too little room. The cover follows the entry instead, which is also its
     order in the markup. */
  .pubs__item { grid-template-columns: 1fr; gap: var(--s4); }
  .pubs__num { display: none; }
  .pubs__cover { grid-column: 1; width: 7.5rem; }
  .pubs__title { font-size: 1.2rem; }
  .pub-head { grid-template-columns: 1fr; }
  .pub-head__cover { width: 8.5rem; }
  .pub-head__facts { grid-template-columns: 7rem 1fr; }
  .pub-head__cta { grid-column: 1; }
}

/* ---------- contents rail ----------
   Body text stays at --measure whatever the screen, because a 1536px line is
   about 150 characters and unreadable. The width a large monitor offers goes to
   the rail instead: where you are in this page, and what else is in this part
   of the site.

   Three tracks, not two, and the third is empty on purpose. Centring the text
   in the space left over after the rail is not the same as centring it on the
   page: it put the article 144px — half the rail plus its gap — to the right of
   the title and lede above it, which are centred in the shell. Two centre lines
   on one page reads as a column that has slipped, and it is the kind of thing
   that looks wrong long before anyone works out why.

   An empty matching track on the right makes the middle one page-centred, so
   the opener and the article share an axis. The rail keeps its place in the
   flow, which a positioned rail would give up along with its sticky travel. */
.entry--railed {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail);
  gap: var(--s12);
  align-items: start;
}

/* The empty track costs a rail and a gap — 288px — and below about 1250px that
   comes straight out of the reading column: at 1044px it left 420 characters'
   worth of nothing either side of a column too narrow to read comfortably.
   Page-centred text, a rail beside it, and a full measure cannot all be had on
   a small desktop, so under this width the balancing track is dropped and the
   text goes back to being centred in what is left. Wide and slightly off-axis
   beats centred and cramped. */
@media (max-width: 78rem) {
  .entry--railed { grid-template-columns: var(--rail) minmax(0, 1fr); }
}

/* Wider here than the site default. With a rail beside it there is width to
   spare, and 80 characters is still inside the readable range — the point of
   the cap is to stop lines running to 150 characters, not to keep them short. */
.entry--railed .prose {
  width: min(80ch, 100%);
  margin-inline: auto;
}

/* Anything that is not the rail or the prose column belongs to the article
   side, not to a cell of its own. A page with several sections — the Academy
   page has three — otherwise deals them alternately into the two columns, which
   put its role cards in the 240px rail track at one word per line. */
.entry--railed > :not(.rail):not(.prose) { grid-column: 2; }
.railed__body > .prose { margin-inline: auto; }

/* `align-items: start` above shrink-wraps every track to its content, which
   left the rail 301px tall beside 4,681px of article — and a sticky element
   can only travel inside its own containing block, so it had nowhere to go and
   simply scrolled away. Stretching the track to the row's full height is what
   gives it the distance to stick over. */
.rail { align-self: stretch; }

/* Clears the sticky header, plus a little air. */
.rail__in { position: sticky; top: calc(5.25rem + var(--s6)); }
.rail__block + .rail__block { margin-top: var(--s8); }
.rail__hd {
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .13em; text-transform: uppercase; color: var(--fg-muted);
  margin: 0 0 var(--s3);
}
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; }
.rail__item { border-top: 1px solid var(--rule-soft); }
.rail__item:last-child { border-bottom: 1px solid var(--rule-soft); }
.rail__item a {
  display: block; padding-block: var(--s2);
  font-size: var(--text-sm); line-height: 1.4;
  color: var(--fg-soft); text-decoration: none;
}
.rail__item a:hover { color: var(--link); }
/* Level 3 and 4 both indent. The imported content uses <h4> for top-level
   sections and <h3> inside them, so neither level can be assumed to be the
   subordinate one — what matters is that a nested heading reads as nested. */
.rail__item--l3 a,
.rail__item--l4 a { color: var(--fg-muted); }
.rail__item--l3 a { padding-inline-start: var(--s4); }
/* `page` marks the page you are on in a list of pages; `location` marks the
   section you are reading in a list of sections. Same treatment — a rule in the
   margin and the link in the link colour — because they mean the same thing to
   a reader: you are here. */
.rail__item a[aria-current] {
  color: var(--link); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--link);
  padding-inline-start: var(--s3);
  transition: color .15s ease;
}
.rail__item--l3 a[aria-current] { padding-inline-start: calc(var(--s4) + var(--s3)); }

.rail__cover img {
  width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4; object-fit: cover;
  margin-bottom: var(--s4);
}
.rail .btn { margin-top: var(--s4); width: 100%; text-align: center; }

/* Facts handed to the rail by a template — the bibliographic block on a
   publication, which used to sit above the abstract and push it down. */
.rail dl { margin: 0; display: grid; gap: var(--s3); font-size: var(--text-sm); }
.rail dt {
  font: 400 var(--text-xs)/1.5 var(--font-ui);
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted);
}
.rail dd { margin: .1rem 0 0; color: var(--fg); }

@media (max-width: 64rem) {
  /* Not enough width for two tracks. The rail becomes a block above the
     content; nothing sticks, because a sticky element in normal flow on a
     phone eats the screen. */
  .entry--railed { grid-template-columns: 1fr; gap: var(--s8); }
  /* There is no column 2 down here. Left in place it would create an implicit
     one and push the article off the side of the screen. */
  .entry--railed > :not(.rail):not(.prose) { grid-column: 1; }
  .rail__in { position: static; }
  .rail { border-bottom: 1px solid var(--rule); padding-bottom: var(--s6); }
}
@media (min-width: 64.0625rem) {
  /* The bottom-of-page copy of the section list is only there for the narrow
     layout, where the rail has scrolled away and cannot be returned to. */
  .entry--railed .entry__also { display: none; }
}

/* ---------- article ---------- */
.entry { padding-block: var(--s8) var(--s16); }
.crumb {
  font: var(--text-xs)/1 var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--s6);
}
.crumb a { color: var(--fg-muted); text-decoration: none; }
.crumb a:hover { color: var(--link); }
.entry__meta {
  display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center;
  font: var(--text-sm)/1 var(--font-mono); color: var(--fg-muted);
  padding-bottom: var(--s6); border-bottom: 1px solid var(--rule); margin-bottom: var(--s8);
}
/* No max-width here — the .prose container carries the measure, so the heading
   above it and the body share identical edges. */
/* 20px, and 1.6 rather than 1.72: leading is a ratio, so the same number that
   was right at 17px opens the lines too far at 20. */
.entry__content { font-size: 1.25rem; line-height: 1.6; }
.entry__content > * { margin-block: 0 var(--s6); }
.entry__content p { color: var(--fg-soft); }
/* The subheads move up with the body. At the old sizes an h2 was 22px against
   20px body — a heading two pixels larger than the text under it is not a
   hierarchy, it is a rounding error. */
.entry__content h2 { margin-block: var(--s12) var(--s3); font-size: var(--text-2xl); }
.entry__content h3 { margin-block: var(--s8) var(--s2); font-size: var(--text-xl); }
/* Primary headings in page content use one consistent editorial treatment.
   Lower-level h3 and h5 headings retain title case as subheadings. */
.entry__content > h2,
.entry__content > h4 {
  font-size: 26px;
  text-transform: uppercase;
}
.entry__content ul, .entry__content ol { padding-inline-start: var(--s6); display: grid; gap: var(--s2); color: var(--fg-soft); }
.entry__content a { text-underline-offset: .15em; }
.entry__content blockquote {
  margin-inline: 0; padding-inline-start: var(--s6);
  border-inline-start: 3px solid var(--link);
  font-family: var(--font-head); font-size: var(--text-lg); line-height: 1.45; color: var(--fg);
}
.entry-figure { margin: 0 0 var(--s8); }
.entry-figure figcaption {
  font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.55;
  padding-top: var(--s2); border-top: 1px solid var(--rule); margin-top: var(--s2);
}
/* Anchor targets must clear the sticky header, or a jump lands with the
   heading hidden behind it — which reads as the link doing nothing. */
:target,
.entry__content :is(h2, h3, h4, h5, h6),
.anchor-alias { scroll-margin-block-start: 7rem; }
.anchor-alias { display: block; height: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.entry-prose > *:first-child { margin-top: 0; }
.entry-rule { border: 0; border-top: 1px solid var(--rule); margin-block: var(--s8); }

/* Legacy content guard.
   Pasted content carries stray <br> immediately inside list-item links, which
   pushes the label onto its own line and orphans the bullet. Neutralise leading
   and trailing breaks rather than relying on every editor to clean the markup. */
.entry__content li a > br:first-child,
.entry__content li a > br:last-child,
.entry__content li > br:first-child { display: none; }

.entry__content li { margin-block: 0; }
.entry__content li a { display: inline; }

/* ---------- publications accordion ---------- */
.pub { border-bottom: 1px solid var(--rule); }
.pub > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 1fr auto; gap: var(--s6);
  align-items: center; padding-block: var(--s6);
}
.pub > summary::-webkit-details-marker { display: none; }
.pub > summary:hover .pub__title { color: var(--link); }
.pub__meta { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin-bottom: var(--s2); }
.pub__year { font: 600 var(--text-sm)/1 var(--font-mono); color: var(--fg-muted); }
.pub__type {
  font: 700 var(--text-xs)/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .55rem; background: var(--forest-50); color: var(--forest-800);
}
.pub__title { margin: 0; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.3; font-weight: 700; max-width: 46ch; }
.pub__icon {
  width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 50%;
  display: grid; place-items: center; color: var(--link); flex: none;
}
.pub__icon::after { content: "+"; }
.pub[open] .pub__icon { background: var(--btn-green); color: var(--btn-ink); border-color: var(--link); }
.pub[open] .pub__icon::after { content: "−"; }
.pub__body { display: grid; grid-template-columns: 200px 1fr; gap: var(--s8); padding-block: var(--s1) var(--s8); }
.pub__cover { border: 1px solid var(--rule); }
.pub__cover--empty {
  aspect-ratio: 3/4; display: grid; place-items: center; background: var(--bg-sunk); text-align: center; padding: var(--s4);
}
.pub__cover--empty span {
  font: 600 var(--text-xs)/1.5 var(--font-mono); letter-spacing: .09em;
  text-transform: uppercase; color: var(--fg-muted);
}
.pub__body p { margin: 0 0 var(--s6); color: var(--fg-soft); line-height: 1.72; max-width: 60ch; }
.pub__actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ============================================================
   Forms (Gravity Forms)
   The plugin ships legacy <ul>/<li> markup. Everything here is
   token-driven so forms match the rest of the site rather than
   falling back to browser defaults.
   ============================================================ */

.gform_wrapper {
  max-width: 40rem;
  margin-block: var(--s8);
}

/* `ul.gform_fields` — the element selector is needed to outrank Gravity Forms'
   own `.gform_wrapper ul.gform_fields`, which sets display:block. */
.gform_legacy_markup_wrapper ul.gform_fields,
.gform_wrapper ul.gform_fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s6);
}
.gform_legacy_markup_wrapper ul.gform_fields > li.gfield,
.gform_wrapper ul.gform_fields > li.gfield {
  margin: 0 !important;
  padding: 0 !important;
}

.gform_legacy_markup_wrapper .gfield_label,
.gform_legacy_markup_wrapper .gform_footer { margin: 0; }

/* ---- labels ---- */
.gform_wrapper .gfield_label {
  display: block;
  font: 600 var(--text-sm)/1.4 var(--font-ui);
  letter-spacing: .01em;
  color: var(--fg);
  margin-bottom: var(--s2);
}
.gform_wrapper .gfield_required {
  color: var(--danger);
  margin-inline-start: .25em;
  font-weight: 600;
}
.gform_wrapper .gfield_description {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-top: var(--s2);
  line-height: 1.5;
}

/* ---- controls ----
   Gravity Forms' legacy stylesheet declares widths, padding and margins with
   `!important` under `.gform_legacy_markup_wrapper`. Specificity cannot beat
   that, so the few properties it overrides are reclaimed the same way. This is
   deliberately limited to layout and typography — nothing structural. */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper select,
.gform_wrapper textarea,
.gform_legacy_markup_wrapper input[type="text"],
.gform_legacy_markup_wrapper input[type="email"],
.gform_legacy_markup_wrapper input[type="url"],
.gform_legacy_markup_wrapper input[type="tel"],
.gform_legacy_markup_wrapper input[type="number"],
.gform_legacy_markup_wrapper input[type="password"],
.gform_legacy_markup_wrapper select,
.gform_legacy_markup_wrapper textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--rule) !important;
  border-radius: var(--radius-sm);
  padding: var(--s3) !important;
  margin-bottom: 0 !important;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.gform_wrapper textarea,
.gform_legacy_markup_wrapper textarea { min-height: 9rem; resize: vertical; }
.gform_wrapper select,
.gform_legacy_markup_wrapper select { appearance: auto; height: auto !important; }

.gform_wrapper :is(input, select, textarea):hover { border-color: var(--rule); }
.gform_wrapper :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent);
}
.gform_wrapper ::placeholder { color: var(--fg-muted); opacity: 1; }

/* ---- complex fields (the 5-part name) ----
   Prefix and Suffix are short; the three name parts take the remaining room.
   Gravity Forms sizes these with its own grid columns, so the container is
   re-declared rather than adjusted. */
.gform_wrapper .ginput_complex.ginput_container,
.gform_legacy_markup_wrapper .ginput_complex.ginput_container {
  display: grid !important;
  grid-template-columns: 6.5rem repeat(3, minmax(0, 1fr)) 5.5rem;
  gap: var(--s3);
  align-items: start;
}
.gform_wrapper .ginput_complex.ginput_container > span,
.gform_legacy_markup_wrapper .ginput_complex.ginput_container > span {
  display: block !important;
  min-width: 0;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Sub-labels under each part, when the form enables them. */
.gform_wrapper .ginput_complex label {
  display: block;
  font: 400 var(--text-xs)/1.4 var(--font-ui);
  color: var(--fg-muted);
  margin-top: var(--s1);
}

/* ---- validation ---- */
.gform_wrapper .gfield_error .gfield_label { color: var(--danger); }
.gform_wrapper .gfield_error :is(input, select, textarea) {
  border-color: var(--danger);
}
.gform_wrapper .validation_message {
  font-size: var(--text-sm);
  color: var(--danger);
  margin-top: var(--s2);
}
.gform_wrapper .gform_validation_errors {
  border: 1px solid var(--danger);
  border-inline-start-width: 3px;
  background: color-mix(in srgb, var(--danger) 14%, var(--bg-card));
  padding: var(--s4);
  margin-bottom: var(--s6);
  border-radius: var(--radius-sm);
}
.gform_wrapper .gform_validation_errors h2 {
  font-size: var(--text-base);
  margin: 0 0 var(--s2);
  color: var(--danger);
}

/* ---- CAPTCHA ----
   reCAPTCHA reports "Localhost is not in the list of supported domains" in
   development. That is correct and expected: the site key is domain-restricted
   to ieac.global. It is not a fault in the theme and needs no local workaround. */
.gform_wrapper .ginput_recaptcha { margin-top: var(--s2); }
.gform_wrapper .ginput_recaptcha > div { max-width: 100%; }

/* Google's hidden response field is not a form control. */
.gform_wrapper textarea#g-recaptcha-response,
.gform_legacy_markup_wrapper textarea#g-recaptcha-response {
  display: none !important;
}

/* ---- submit ---- */
.gform_wrapper .gform_footer {
  margin-top: var(--s8);
  padding: 0;
  display: flex;
  gap: var(--s3);
  align-items: center;
}
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.gform_legacy_markup_wrapper .gform_button,
.gform_legacy_markup_wrapper input[type="submit"] {
  background: var(--btn-green);
  color: var(--btn-ink);
  border: 0 !important;
  border-radius: var(--radius-sm);
  padding: var(--s3) var(--s8) !important;
  font: 600 var(--text-base)/1.3 var(--font-ui);
  cursor: pointer;
  width: auto !important;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover,
.gform_legacy_markup_wrapper .gform_button:hover,
.gform_legacy_markup_wrapper input[type="submit"]:hover { background: var(--link-hover); }
.gform_wrapper .gform_ajax_spinner { margin-inline-start: var(--s3); }

/* ---- confirmation ---- */
.gform_confirmation_wrapper {
  border-inline-start: 3px solid var(--ok);
  background: var(--bg-sunk);
  padding: var(--s6);
  max-width: 40rem;
  margin-block: var(--s8);
}

/* Honeypot and screen-reader-only fields must never show. */
.gform_wrapper .gform_validation_container,
.gform_wrapper .gfield_visibility_hidden { display: none !important; }

@media (max-width: 45rem) {
  .gform_wrapper .ginput_complex.ginput_container { grid-template-columns: 1fr; }
  .gform_wrapper .gform_button,
  .gform_wrapper input[type="submit"] { width: 100%; }
}

/* ---------- pagination ---------- */
.pagination { display: flex; gap: var(--s2); flex-wrap: wrap; padding-block: var(--s8); }
.pagination .page-numbers {
  padding: var(--s2) var(--s3); border: 1px solid var(--rule);
  text-decoration: none; font-size: var(--text-sm);
}
.pagination .current { background: var(--btn-green); color: var(--btn-ink); border-color: var(--link); }

/* ---------- footer ----------
   Contact and follow links grouped around the centre, followed by one centred
   legal line. */
.site-footer { background: var(--bg-sunk); border-top: 1px solid var(--rule); color: var(--fg); }
.site-footer__in {
  padding-block: var(--s8);
  display: grid;
  grid-template-columns: minmax(22rem, 32rem) minmax(10rem, 14rem) minmax(10rem, 14rem);
  justify-content: center;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.site-footer h2 { font: 700 var(--text-sm)/1 var(--font-ui); color: var(--fg); margin: 0 0 var(--s4); }
.site-footer p { font: 400 var(--text-sm)/1.6 var(--font-ui); color: var(--fg-soft); margin: 0; }
.site-footer a { color: var(--link); text-decoration: none; }
.site-footer a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__org { font-weight: 400 !important; color: var(--fg) !important; margin-bottom: var(--s1) !important; }
.site-footer__addr { font-style: normal; }
.site-footer__addr p + p { margin-top: var(--s1) !important; }
.site-footer__links {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2);
  margin-bottom: var(--s3); font: 400 var(--text-xs)/1.4 var(--font-ui);
}
.site-footer__links a { color: var(--fg-muted); font-weight: 700; }
.site-footer p.site-footer__internal { font: 400 var(--text-xs)/1.4 var(--font-ui); color: var(--fg-muted); }
.site-footer__internal a { color: var(--fg-muted); font-weight: 700; }

.social { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; gap: var(--s3); }
.social a {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--rule); color: var(--fg);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social a:hover { background: var(--btn-green); border-color: var(--link); color: var(--btn-ink); }
.social a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; display: block; }
/* Brand colours: the LinkedIn "in" is blue and the YouTube box is red. The
   YouTube play arrow is a cut-out, so it shows the button's light background. */
.social a[aria-label="The Academy on LinkedIn"] svg { fill: #0A66C2; }
.social a[aria-label="The Academy on YouTube"] svg { fill: #FF0000; }

.site-footer__legal {
  border-top: 1px solid var(--rule); padding-block: var(--s4);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6);
  font: 400 var(--text-xs)/1 var(--font-ui); color: var(--fg-muted);
}
.site-footer__legal a { color: var(--fg-muted); }
.site-footer__legal a:hover { color: var(--link); }

/* ---------- responsive ---------- */
@media (max-width: 72rem) {
  .who__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 62rem) {
  .site-footer__in { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s8); }
}
@media (max-width: 60rem) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 45rem) {
  /* A step down on a phone, not back to 16px: 20px was chosen for reading, and
     a narrow screen is where that matters most. */
  body { font-size: 1.125rem; }
  .entry__content { font-size: 1.125rem; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: repeat(2, 1fr); }
  .pub__body { grid-template-columns: 1fr; gap: var(--s4); }
  .pub__cover { max-width: 190px; }
  .site-footer__in { grid-template-columns: 1fr; }
  .nav-primary ul { gap: var(--s4); }
}
@media (max-width: 28rem) {
  .who__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* A strip of headlines sliding past is exactly what this setting is for. With
     the animation stopped it becomes a strip to scroll by hand, and the copy
     that only existed to make the loop seamless is removed. */
  .ticker { overflow-x: auto; }
  .tick[aria-hidden="true"] { display: none; }
}

/* ---------- consent banner ----------
   Complianz ships its own light palette and is the only surface on the site
   that is not ours. It is also the first thing a first-time visitor sees, so a
   white card over a dark page is not a detail. Themed through its own custom
   properties where it exposes them, and by selector where it does not. */
.cmplz-cookiebanner {
  --cmplz_background_color: var(--bg-card);
  --cmplz_text_color: var(--fg);
  --cmplz_border_color: var(--rule);
  --cmplz_link_color: var(--link);
  background: var(--bg-card) !important;
  color: var(--fg) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: var(--shadow-md) !important;
}
.cmplz-cookiebanner :is(h1, h2, h3, .cmplz-title, .cmplz-body, p, li, label, span) {
  color: var(--fg) !important;
}
.cmplz-cookiebanner .cmplz-category,
.cmplz-cookiebanner .cmplz-description {
  background: var(--bg-brand) !important;
  color: var(--fg-soft) !important;
  border-color: var(--rule) !important;
}
.cmplz-cookiebanner .cmplz-btn {
  background: transparent !important;
  color: var(--fg) !important;
  border: 1px solid var(--rule) !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  background: var(--btn-green) !important;
  color: var(--btn-ink) !important;
  border-color: var(--link) !important;
}
.cmplz-cookiebanner a { color: var(--link) !important; }


/* ---------- arrival ----------
   Blocks settle into place as they are reached, once. `will-rise` is added by
   JavaScript and the transition runs to the settled state, so a reader without
   JavaScript — or with reduced motion asked for — sees the finished page and
   never the starting position.

   Only structural blocks move. Animating every paragraph is what makes a page
   feel generated rather than designed. */
.will-rise {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.75,.25,1);
}
.will-rise.is-risen {
  opacity: 1;
  transform: none;
}
.acad-part.is-risen::before { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .will-rise,
  .will-rise.is-risen {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .acad-narrative .acad-part + .acad-part::before {
    clip-path: none;
    transition: none;
  }
}


/* Section headers: half the previous height, in the IEAc logo green (#50A34C).
   The title is dark rather than white, because white on this green is too faint. */
.opener.opener--field { background: #50A34C; padding-block: 18px 14px; }
.opener.opener--field h1 { margin-bottom: 8px; }
.opener.opener--field h1,
.opener.opener--field h2,
.opener.opener--field .crumb,
.opener.opener--field .crumb a { color: #0F1F2D; }

/* Our Contributions menu picture at 60% of its former size, centred in its panel. */
#mega-our-contributions .mega__figure img { width: 230px; height: 325px; object-fit: cover; align-self: center; margin: auto; }
/* Get Involved menu picture takes the same rectangular size as Our Contributions. */
#mega-get-involved .mega__figure img { width: 230px; height: 325px; object-fit: cover; align-self: center; margin: auto; }

/* Events & Conferences: the list shows its text only, without the card pictures. */
body.page-id-934 .grid--cards .card__media { display: none; }

/* Videos on the Events & Conferences page: four across, thumbnails at 80% width,
   text in the same face and size as the event card text. */
.videos-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.videos-grid li { margin: 0; }
.videos-grid img { width: 80%; height: auto; display: block; }
.videos-grid .vid-date { font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--s2); }
.videos-grid .vid-title { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; font-weight: 700; margin-top: var(--s2); }

/* More space between the rows of videos. */
.videos-grid { row-gap: 56px; }
/* The last video's thumbnail carries the Academy logo at a large size; it is drawn at 70% inside the same frame as the others. */
.videos-grid a[href*="NtXPJ3igYR0"] img { transform: scale(0.7); transform-origin: center; background: #fff; }

/* Two more lines of space between the rows of videos (about 64px on top of the earlier 56px),
   and video titles in regular weight. */
.videos-grid { row-gap: 120px; }
.videos-grid .vid-title { font-weight: 400; }

/* Rows of videos: double the previous gap (120px to 240px). */
.videos-grid { row-gap: 240px; }

/* The page-content list rule sets its own gap; this selector is as specific, so the row gap applies. */
.entry__content .videos-grid { row-gap: 240px; }

/* Rows of videos: one eighth of the 240px gap, so 30px. */
.entry__content .videos-grid { row-gap: 30px; }

/* The five collaborative work areas sit in one row, in place of the bullet list. */
.workareas-content .workareas-cards { grid-template-columns: repeat(5, 1fr); gap: 16px; margin: var(--s6) 0; }
.workareas-content .workareas-cards .card__title { font-size: .95rem; }
.workareas-content .workareas-cards .card { grid-row-end: auto !important; height: 100%; }
.workareas-content .workareas-cards .card__title { font-weight: 400; }
.workareas-content .workareas-cards { grid-auto-rows: auto !important; }

/* Collaborative work areas: a compact row of boxes. Smaller gap, smaller type,
   shorter boxes, less space above, and no rule above "How We Do It". */
.workareas-content > p:empty { display: none; }
.workareas-content section.section { padding: 0; border: 0; margin: 0 0 8px; }
.workareas-content .workareas-cards { gap: 8px; margin: 0; }
.workareas-content .workareas-cards .card { height: auto; border-radius: 4px; }
.workareas-content .workareas-cards .card__body { padding: 10px 10px 12px; gap: 4px; }
.workareas-content .workareas-cards .card__stamp { width: 2.25rem; height: 2.25rem; margin: 0 0 4px 8px; }
.workareas-content .workareas-cards .card__num { font-size: .65rem; }
.workareas-content .workareas-cards .card__title { font-size: .78rem; line-height: 1.25; font-family: var(--font-ui); }

/* Work-area boxes: flush with the text edge, and all five the same height. */
.workareas-content section.section > .shell { padding-inline: 0; }
.workareas-content .workareas-cards { align-items: stretch; }
.workareas-content .workareas-cards .card { height: 100%; }
.workareas-content section.section > .shell { margin-inline: 0; }

/* Work-area boxes: larger title text, with the box size held at 250px. */
.workareas-content .workareas-cards .card { height: 250px; overflow: hidden; }
.workareas-content .workareas-cards .card__title { font-size: .92rem; line-height: 1.25; }
.workareas-content .workareas-cards .card__title { font-size: .86rem; }
.workareas-content .workareas-cards .card__title { line-height: 1.2; }
.workareas-content .workareas-cards .card__body { gap: 2px; }

/* This page only: a wider title line and a smaller title, so the band is shorter. */
body.page-id-4741 .opener .shell { max-width: 1100px; }
body.page-id-4741 .opener h1 { font-size: 2rem; line-height: 1.2; }
body.page-id-4741 .opener h1 { max-width: 1000px; }

/* The five Collaborative Work Area pages: a shorter green header band. Title on
   two or three lines, and the band's padding cut by about 30%. */
body.page-id-4735 .opener .shell,
body.page-id-4737 .opener .shell,
body.page-id-4482 .opener .shell,
body.page-id-4739 .opener .shell,
body.page-id-4741 .opener .shell { max-width: 1100px; }
body.page-id-4735 .opener h1,
body.page-id-4737 .opener h1,
body.page-id-4482 .opener h1,
body.page-id-4739 .opener h1,
body.page-id-4741 .opener h1 { font-size: 2rem; line-height: 1.2; max-width: 1000px; margin-bottom: 4px; }
body.page-id-4735 .opener.opener--field,
body.page-id-4737 .opener.opener--field,
body.page-id-4482 .opener.opener--field,
body.page-id-4739 .opener.opener--field,
body.page-id-4741 .opener.opener--field { padding-block: 13px 10px; }

/* Relevant Contributions page: headings match the Collaborative Work Areas page (serif, 22px, bold, sentence case). */
body.page-id-4875 .entry__content h2,
body.page-id-4875 .entry__content h4,
body.parent-pageid-4875 .entry__content h2,
body.parent-pageid-4875 .entry__content h4 { font-family: inherit; font-size: 22px; line-height: 29.04px; font-weight: 700; text-transform: none; letter-spacing: normal; margin: 32px 0 8px; }

/* Links in the relevant-contributions page and the five CWA pages: green, no underline. */
body.page-id-4875 .entry__content a,
body.parent-pageid-4875 .entry__content a,
body.parent-pageid-4875 .entry__content a:hover,
body.page-id-4875 .entry__content a:hover,
body.page-id-4735 .entry__content a,
body.page-id-4735 .entry__content a:hover,
body.page-id-4737 .entry__content a,
body.page-id-4737 .entry__content a:hover,
body.page-id-4739 .entry__content a,
body.page-id-4739 .entry__content a:hover,
body.page-id-4741 .entry__content a,
body.page-id-4741 .entry__content a:hover,
body.page-id-4482 .entry__content a,
body.page-id-4482 .entry__content a:hover { color: var(--link); text-decoration: none; }

/* All contributions table: full list of the contributions with their work-area mapping. */
body.page-id-4899 .ct-wrap { overflow-x: auto; margin-top: 16px; }
body.page-id-4899 .ct-table { width: 1100px; border-collapse: collapse; font-size: 14px; line-height: 1.45; color: var(--fg-soft); }
body.page-id-4899 .ct-table th { background: #3E8640; color: #fff; font-weight: 700; padding: 8px; text-align: center; vertical-align: middle; border: 1px solid #3E8640; }
body.page-id-4899 .ct-table td { padding: 8px; border: 1px solid #d9dfe3; vertical-align: top; }
body.page-id-4899 .ct-table td.ct-year, body.page-id-4899 .ct-table td.ct-mark { text-align: center; }
body.page-id-4899 .ct-table td.ct-why { width: 380px; }

/* All contributions page: wider text area so all six CWA columns and the rationale read on one page. */
body.page-id-4899 .entry--railed { grid-template-columns: 220px minmax(0, 1fr); }
body.page-id-4899 .prose, body.page-id-4899 .entry__content { max-width: none; }
body.page-id-4899 .ct-wrap { overflow-x: visible; }
body.page-id-4899 .ct-table { width: 100%; table-layout: fixed; font-size: 13px; }
body.page-id-4899 .ct-table th { font-size: 13px; padding: 8px 6px; }
body.page-id-4899 .ct-table td { padding: 6px; }
body.page-id-4899 .ct-table th:nth-child(1), body.page-id-4899 .ct-table td:nth-child(1) { width: 26%; }
body.page-id-4899 .ct-table th:nth-child(2), body.page-id-4899 .ct-table td:nth-child(2) { width: 5%; }
body.page-id-4899 .ct-table th:nth-child(3), body.page-id-4899 .ct-table th:nth-child(4), body.page-id-4899 .ct-table th:nth-child(5), body.page-id-4899 .ct-table th:nth-child(6), body.page-id-4899 .ct-table th:nth-child(7) { width: 7%; }
body.page-id-4899 .ct-table th:nth-child(8), body.page-id-4899 .ct-table td:nth-child(8) { width: 30%; }
body.page-id-4899 .ct-key { margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
body.page-id-4899 .ct-key ul { margin: 6px 0 0; padding-left: 20px; }
body.page-id-4899 .ct-key li { margin-bottom: 4px; }

/* ---------- landing page type scale ----------
   Uses the roles in tokens.css. Headings, titles and running text are the serif;
   Inter is kept for labels, tags and chart text. Nothing on the landing page
   below 16px except uppercase labels and chart figures. */
.hero p { font: 400 var(--size-text)/1.5 var(--font-body); color: rgba(255, 255, 255, .9); }
.hero .eyebrow { font: 700 var(--size-label)/1 var(--font-ui); letter-spacing: .12em; }
.picker__t { font: 400 var(--size-text)/1.25 var(--font-head); }
.picker__d { font: 400 var(--size-desc)/1.5 var(--font-body); }
/* The banner boxes use one face and one size: the smaller of the two. */
.tick__k, .tick__t, .tick__m { font: 400 var(--size-meta)/1.35 var(--font-body); }
.tick__k { font-weight: 700; letter-spacing: .08em; }
.who h2 { font: 700 var(--size-label)/1 var(--font-ui); }
.box__n { font: 600 var(--size-label)/1 var(--font-ui); }
.box__t { font: 400 var(--size-text)/1.25 var(--font-head); }
.box__d { font: 400 var(--size-desc)/1.45 var(--font-body); }
.glance__since { font: 400 var(--size-desc)/1.4 var(--font-body); }
.glance__note { font: 400 var(--size-desc)/1.6 var(--font-body); }
.kpi dt { font: 500 var(--size-label)/1.4 var(--font-ui); }
.bars__label, .legend__label { font: 400 var(--size-desc)/1.4 var(--font-body); }
.callout__name { font: 600 var(--size-meta)/1 var(--font-ui); }
.callout__val { font: 400 var(--size-meta)/1 var(--font-ui); }
.donut__totlab { font: 500 var(--size-label)/1 var(--font-ui); }


/* Landing page, side by side: the copy under the title starts level with the
   first area title ("Lead and take forward..."), not with the label above the list. */
@media (min-width: 64rem) {
  .hero__copy { margin-top: 3.04rem; }
}

/* ---------- landing header in the banner's green ----------
   The top bar takes the same green as the banner beneath it, so its type and
   icons switch to white. The two labels that now read "About Us" and "Our Work"
   keep their own capitals rather than the uppercase of the other two. */
.site-header--landing { background: #487C32; border-bottom-color: transparent; }
.site-header--landing .brand__word,
.site-header--landing .site-nav__top,
.site-header--landing .site-search__toggle,
.site-header--landing .nav-toggle { color: #fff; }
.site-header--landing .brand:hover .brand__word,
.site-header--landing .site-nav__top:hover,
.site-header--landing .site-search__toggle:hover { color: #fff; }
.site-header--landing .site-nav__top:hover { border-bottom-color: #fff; }
.site-header--landing .nav-toggle { border-color: rgba(255, 255, 255, .6); }
.site-header--landing .nav-toggle__bars,
.site-header--landing .nav-toggle__bars::before,
.site-header--landing .nav-toggle__bars::after { background-color: #fff; }
.site-header--landing .site-nav__top { text-transform: none; letter-spacing: .02em; }

/* The top-bar labels are 18px; the AREAS OF WORK label matches them. */
.hero .hero__label { font-size: var(--text-lg); }

/* Shown as "Areas of Work", in title case, like the header labels. */
.hero .hero__label { text-transform: none; letter-spacing: .02em; }

/* The home page's section label is shown as "About Us", in title case. */
.who h2 { text-transform: none; letter-spacing: .02em; }

/* The Who We Are boxes carry no numbers. */
.box__n { display: none; }

/* At a glance is a section header now, set like the other section headers. */
.glance h2 {
  font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 700;
  letter-spacing: -.015em; text-transform: none; color: var(--fg); line-height: var(--lh-snug);
}
.glance__since { display: none; }

/* At a Glance, on the landing page's scale: serif for running text and figures,
   Inter only for labels. The counters were 42px and the ring figure 34px, which
   outweighed the headings above them. */
.glance .kpi__n { font-size: 2rem; }
.donut__total { font-size: 1.5rem; }
.donut__totlab { font-size: var(--size-label); letter-spacing: .08em; }
.glance__note,
.chart figcaption p { font: 400 var(--size-desc)/1.5 var(--font-body); }
.glance__open { font: 600 var(--size-label)/1 var(--font-ui); letter-spacing: .06em; }
.legend__val { font-size: var(--size-desc); }

/* At a Glance, round two. The figures come down another step. The ring label is
   the same caption as the counters' labels, so it takes the same spacing. The
   footer takes the top panel's green, with white type. */
.glance .kpi__n { font-size: var(--text-2xl); }
.donut__total { font-size: 1.25rem; }
.donut__totlab { letter-spacing: normal; font-weight: 500; }
.glance .donut__total { font-family: var(--font-head); font-weight: 600; }
.glance .legend__label, .glance .legend__val { font-family: var(--font-body); }

.site-footer { background: #487C32; border-top-color: transparent; color: #fff; }
.site-footer h2, .site-footer p, .site-footer a, .site-footer__links a,
.site-footer p.site-footer__internal, .site-footer__internal a,
.site-footer__org, .site-footer__org { color: #fff !important; }
.site-footer a:hover { color: #fff; }

/* The bottom panel of the footer sizes itself to its text, and its text is white
   on the green, like the rest of the footer. */
.site-footer__legal {
  height: auto; min-height: 0;
  padding-block: var(--s4);
  font: 400 var(--text-xs)/1.5 var(--font-ui); color: #fff;
  border-top-color: rgba(255, 255, 255, .25);
}
.site-footer__legal a { color: #fff; }
.site-footer__legal a:hover { color: #fff; text-decoration: underline; }

/* The footer's main panel: its height follows its text. The body's 20px, 33px-leading
   text style was being inherited into the footer, so the panel took the body's
   spacing; the footer sets its own, tighter values. */
.site-footer__in { padding-block: var(--s4); line-height: 1.5; font-size: var(--text-sm); }
.site-footer__follow, .site-footer__social { row-gap: var(--s2); }

.site-footer .social a { color: var(--fg) !important; background: var(--bg-card); border-color: transparent; }
.site-footer .social a:hover { color: var(--btn-ink) !important; background: var(--btn-green); }
.site-footer .social svg { fill: currentColor; }
.site-footer .social a[aria-label="The Academy on LinkedIn"] svg { fill: #0A66C2; }
.site-footer .social a[aria-label="The Academy on YouTube"] svg { fill: #FF0000; }

/* More air between the social icons and the Contact the Academy heading. */
.site-footer__social > h2:has(> a) { margin-top: var(--s8); }

/* "Follow Us Here" sits level with the first footer link, FAQ. */
.site-footer__social > h2:not(:has(> a)) { margin-top: .18rem; }

/* At a Glance, round three. The section follows the landing page's type:
   the heading is the hero title's size; the figures are subheading size; every
   caption, description and chart label is the body serif at body size, regular
   weight. Inter stays only on the small uppercase button. */
.glance h2 { font-size: clamp(2.25rem, 4vw, 3rem); letter-spacing: -.015em; }
.glance .kpi__n { font: 600 var(--size-text)/1.2 var(--font-body); }
.glance .kpi dt { font: 400 var(--size-text)/1.4 var(--font-body); color: var(--fg-muted); }
.glance figcaption p,
.glance__note { font: 400 var(--size-text)/1.5 var(--font-body); }
.glance text,
.glance tspan { font-family: var(--font-body); font-weight: 400; font-size: 15.4px; }
.glance .donut__total { font-family: var(--font-body); font-weight: 400; font-size: 15.4px; /* 18px on the page, like the body text */ }
.glance .donut__totlab { font-family: var(--font-body); font-weight: 400; font-size: 15.4px; letter-spacing: normal; }
.glance .legend__label, .glance .legend__val { font: 400 var(--size-text)/1.4 var(--font-body); }
.glance .bars__label, .glance .bars__val { font: 400 var(--size-text)/1 var(--font-body); }

/* The followers bars take the top panel's green. */
.bars__fill { background: #487C32; }

/* Logo and title centred vertically in the space above the copy, left-aligned.
   The title moves down by the same amount the copy's top margin is reduced, so the
   copy, the Areas of Work list and everything below stay where they were. */
@media (min-width: 64rem) {
  .hero__identity { align-items: center; transform: translateY(29px); }
}

/* Header: the brand word at body size; About Us and Our Work at subheading size. */
.site-header--landing .brand__word { font-size: var(--text-lg); }
.site-header--landing .site-nav__top { font-size: var(--text-xl); }

/* The brand word sets in the header's own type, like the labels beside it. */
.site-header--landing .brand__word { font-family: var(--font-ui); font-weight: 600; font-size: var(--text-lg); letter-spacing: .02em; }

/* Top panel type is regular weight: the labels and the Homepage word read quieter. */
.site-header--landing .site-nav__top { font-weight: 400; }
.site-header--landing .brand__word { font-weight: 400; }

/* Homepage is the same size as the top panel labels. */
.site-header--landing .brand__word { font-size: var(--text-xl); }

/* The footer's last row sits close to the bottom edge, with no extra padding under it. */
.site-footer__in { padding-bottom: 0; }

/* The Get Involved, Our Work and About Us menus: the left list takes the page
   rail's look. Compact rows, hairline dividers, the body serif at 14px, and the
   current item marked the way the rail marks it. Desktop only. */
@media (min-width: 64rem) {
  .mega__list { grid-auto-rows: auto; align-content: start; }
  .mega__list > li:last-child { border-bottom: 1px solid var(--rule-soft); }
  .mega__link {
    min-height: 0; padding: var(--s2) 0;
    font: 400 var(--text-sm)/1.4 var(--font-body);
    color: var(--fg-soft);
  }
  .mega__link:hover { color: var(--link); }
  .mega__link.is-on {
    background: none; color: var(--link); font-weight: 600;
    box-shadow: inset 3px 0 0 var(--link);
    padding-inline-start: var(--s3);
  }
}

/* The Get Involved panel repeats the page: the rail heading and list on the left,
   the page's text and picture laid out as on the page. */
.mega__hd {
  font: 700 var(--text-xs)/1 var(--font-ui);
  letter-spacing: .13em; text-transform: uppercase; color: var(--fg-muted);
  margin: 0 0 var(--s3);
}
.mega__pane--page { display: flex; align-items: center; }
.mega__pane--page .entry__content { width: 100%; max-width: none; }

/* Placement for the Get Involved panel: the heading and list in one left column,
   the page text and picture across the right. */
.mega__side { grid-column: 1; grid-row: 1; }
.mega__pane--page { grid-column: 2; grid-row: 1; }

/* The Get Involved panel shows the page as it is: no item is marked. */
.mega__in:has(.mega__hd) .mega__link.is-on { box-shadow: none; color: var(--fg-soft); font-weight: 400; padding-inline-start: 0; }

/* Get Involved: the text and the picture start level with the first sub-page in
   the list beside them, not centred on the picture. */
body.page-id-4710 .entry__content > div[style*="flex"] { align-items: flex-start !important; margin-top: 13px; }
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child { margin: 0; }
body.page-id-4710 .rail__block { margin-top: 18.8px; }

/* The top panel is the home page's on every page: the label box carries no green
   when its drop-down is open, only the text colour changes. */
.site-header--landing .site-nav__top[aria-expanded="true"] { border-bottom-color: transparent; color: #fff; }
/* Get Involved: the picture sits on the same top line as the text and the heading. */
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child { position: relative; top: 2px; }

/* Get Involved: the page title starts where the text beside the rail starts
   (the rail's width plus the column gap), not centred in the band. */
@media (min-width: 64rem) {
  body.page-id-4710 .opener .shell { text-align: left; padding-left: calc(var(--rail) + var(--s12)); }
}
@media (min-width: 64rem) {
  body.page-id-4710 .opener h1 { margin-left: 0; margin-right: 0; max-width: none; }
}

/* Get Involved: the title band is white, like the rest of the page. */
body.page-id-4710 .opener.opener--field { background: #fff; }
body.page-id-4710 .opener canvas.field { display: none; }

/* The Get Involved panel opens with the page's title, as the page does. Its title,
   rail and text are set on one grid so the three tops line up. */
.mega__in:has(.mega__title) { align-items: start; }
.mega__title { grid-column: 1 / -1; grid-row: 1; padding-inline-start: 200px; margin-bottom: var(--s6); }
.mega__title h1 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.15; color: var(--fg); }
.mega__side { grid-column: 1; grid-row: 2; }
.mega__pane--page { grid-column: 2; grid-row: 2; align-items: flex-start; }
.mega__pane--page .entry__content > div > p:last-child { margin: 0; }
.mega__pane--page .entry__content > div[style*="flex"] { align-items: flex-start !important; margin-top: 0; }
.mega__in:has(.mega__title) .mega__hd { margin-top: 6px; }
.mega__pane--page .entry__content > div[style*="flex"] > p:last-child { position: relative; top: 2px; }
.mega__in:has(.mega__title) .mega__link.is-on { background: none; }
.mega__title h1 a { color: inherit; text-decoration: none; }
.mega__title h1 a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }

/* Partners & Sponsors: the page title starts where the body text starts, as on Get Involved. */
@media (min-width: 64rem) {
  body.page-id-930 .opener .shell { text-align: left; padding-left: calc(var(--rail) + var(--s12)); }
  body.page-id-930 .opener h1 { margin-left: 0; margin-right: 0; max-width: none; }
}

/* Partners & Sponsors: the title band is white, as on Get Involved. */
body.page-id-930 .opener.opener--field { background: #fff; }
body.page-id-930 .opener canvas.field { display: none; }

/* Every page except the home page: the title band is white, and on pages with the
   side rail the title starts where the body text starts. */
body:not(.page-id-5) .opener.opener--field { background: #fff; }
body:not(.page-id-5) .opener canvas.field { display: none; }
@media (min-width: 64rem) {
  body:not(.page-id-5) main:has(> article.entry--railed) > .opener .shell { text-align: left; padding-left: calc(var(--rail) + var(--s12)); }
  body:not(.page-id-5) main:has(> article.entry--railed) > .opener h1 { margin-left: 0; margin-right: 0; max-width: none; }
}

/* Get Involved, as on Partners & Sponsors: the picture runs under the title across
   the body column, 147px high, its top level with the In this section heading. The
   text follows it. */
body.page-id-4710 .entry__content > div[style*="flex"] { display: flex !important; flex-direction: column; align-items: stretch !important; gap: var(--s6); margin-top: 0 !important; }
body.page-id-4710 .entry__content > div[style*="flex"] > p:first-child { flex: none !important; margin: 0 !important; position: static !important; top: auto; }
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child { order: -1; flex: none !important; margin: 0 !important; position: static !important; top: auto; }
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child img { width: 100% !important; height: 147px !important; flex: none !important; margin: 0 !important; object-fit: cover; }
body.page-id-4710 .rail__block { margin-top: 0; }

/* The left-side section heading is a link: green, not underlined. */
.rail__hd a { color: var(--link); text-decoration: none; }
.rail__hd a:hover, .rail__hd a:focus { color: var(--link-hover); text-decoration: none; }

/* How to Sponsor: the five name boxes share one type (Inter 16px, regular, the same
   ink). Prefix, Middle and Suffix are narrower; First and Last are wide enough for
   their full labels. */
#gform_5 .ginput_container--name select,
#gform_5 .ginput_container--name input[type="text"] { font-family: var(--font-ui); font-size: var(--text-base); font-weight: 400; color: var(--fg); box-sizing: border-box; }
#gform_5 #input_5_1_2 { width: 112px !important; }
#gform_5 #input_5_1_3,
#gform_5 #input_5_1_6 { width: 200px !important; }
#gform_5 #input_5_1_4 { width: 110px !important; }
#gform_5 #input_5_1_8 { width: 100% !important; }
#gform_5 .ginput_container--name > span { width: auto; flex: 0 0 auto; }
#gform_5 .ginput_container--name { grid-template-columns: repeat(5, max-content); justify-content: start; gap: var(--s2); }

/* Publications and Blogs: the page title starts where the list's text starts, not
   at its numbering. */
@media (min-width: 64rem) {
  body.page-id-4539 .opener .shell { text-align: left; padding-left: 72px; }
  body.page-id-684 .opener .shell { text-align: left; padding-left: 152px; }
  body.page-id-4539 .opener h1, body.page-id-684 .opener h1 { margin-left: 0; margin-right: 0; max-width: none; }
}

/* Our Contributions: the text, the picture and the In this section heading start on
   one line, side by side, as on Get Involved. */
body.page-id-4708 .entry__content > div[style*="flex"] { align-items: flex-start !important; margin-top: 13px; }
body.page-id-4708 .entry__content > div[style*="flex"] > p:last-child { margin: 0; }
body.page-id-4708 .rail__block { margin-top: 18.8px; }

/* Publications: no numbering; the journal titles at body size (18px); a narrower
   left-side menu. */
body.page-id-4539 .pubs__item { grid-template-columns: minmax(0, 1fr) 7.5rem; }
body.page-id-4539 .pubs__title { font-size: 1.125rem; line-height: 1.35; }
@media (min-width: 64rem) {
  body.page-id-4539 .entry--railed { grid-template-columns: 11rem minmax(0, 1fr) var(--rail); }
}
@media (min-width: 64rem) {
  body.page-id-4539 .opener .shell { padding-left: calc(11rem + var(--s12)); }
}
@media (min-width: 64rem) {
  body.page-id-4539 .entry--railed .prose { margin-inline: 0; }
}
@media (min-width: 64rem) {
  body.page-id-4539 .opener .shell { padding-left: calc(11rem + var(--s12) + 24px); }
}

/* Blogs: the side menu, the title level with the year filters, the body at the
   column edge. */
@media (min-width: 64rem) {
  body.page-id-684 .entry--railed { grid-template-columns: 11rem minmax(0, 1fr) var(--rail); }
  body.page-id-684 .entry--railed .prose { margin-inline: 0; }
  body.page-id-684 .opener .shell { text-align: left; padding-left: calc(11rem + var(--s12) + 24px); }
  body.page-id-684 .opener h1 { margin-left: 0; margin-right: 0; max-width: none; }
}

/* Blogs: each entry is one column now that the source and year sit in its author
   line; the entry takes the full width of the list. */
body.page-id-684 .toc a { display: block; }
body.page-id-684 .toc a > span:first-child { display: block; }

/* Blogs: the year chips start level with the top of the side menu heading. */
body.page-id-684 .filters { margin-top: -16px; }

/* Blogs: the entry titles at body size, as on Publications. */
body.page-id-684 .toc__title { font-size: 1.125rem; line-height: 1.35; }

/* Events & Conferences: the side menu, the title and the list aligned as on Blogs. */
@media (min-width: 64rem) {
  body.page-id-934 .entry--railed { grid-template-columns: 11rem minmax(0, 1fr) var(--rail); }
  body.page-id-934 .entry--railed .prose { margin-inline: 0; }
  body.page-id-934 .opener .shell { text-align: left; padding-left: calc(11rem + var(--s12) + 24px); }
  body.page-id-934 .opener h1 { margin-left: 0; margin-right: 0; max-width: none; }
}
@media (min-width: 64rem) {
  body.page-id-934 .entry--railed .rule-heading { text-align: left; justify-content: flex-start; }
}
@media (min-width: 64rem) {
  body.page-id-934 .entry--railed .rule-heading > span { padding-inline-start: 0; }
}

/* Side menu and body text: a tighter gap on the list pages, with the title moved to
   match. */
@media (min-width: 64rem) {
  body.page-id-934 .entry--railed,
  body.page-id-684 .entry--railed,
  body.page-id-4539 .entry--railed { gap: var(--s6); }
  body.page-id-934 .opener .shell,
  body.page-id-684 .opener .shell,
  body.page-id-4539 .opener .shell { padding-left: calc(11rem + var(--s6) + 24px); }
}

/* Every page with a side menu: the gap between the menu and the body text is the same. */
@media (min-width: 64rem) {
  .entry--railed { gap: var(--s6); }
  body:not(.page-id-5) main:has(> article.entry--railed) > .opener .shell { padding-left: calc(var(--rail) + var(--s6)); }
}

/* Every side menu is the narrower width: the menu column takes 11rem, not 15rem. */
@media (min-width: 64rem) {
  .entry--railed { grid-template-columns: 11rem minmax(0, 1fr) var(--rail); }
  body:not(.page-id-5) main:has(> article.entry--railed) > .opener .shell { padding-left: calc(11rem + var(--s6)); }
}

/* Side-menu pages: the body text starts level with the side menu's heading. The
   opening paragraph is lifted by the difference between the two line boxes. */
@media (min-width: 64rem) {
  .entry--railed .entry__content > p:first-child { margin-top: -5.8px; }
}
@media (min-width: 64rem) {
  body.page-id-934 .entry--railed .prose > .grid:first-child { margin-top: -3.6px; }
}
@media (min-width: 64rem) {
  body.page-id-934 main > section.section:last-of-type > .shell { padding-left: calc(11rem + var(--s6) + 24px); }
}
@media (min-width: 64rem) {
  body.page-id-934 .videos-grid { padding-left: 0; margin-left: 0; }
}
@media (min-width: 64rem) {
  body.page-id-934 main > section.section:last-of-type > .shell { padding-right: calc(var(--rail) + var(--s12)); }
}

/* Who We Are pages: the band photograph runs from the body text's left edge to its
   right edge, and the side menu is lifted so its heading sits level with the top of
   the photograph. */
@media (min-width: 64rem) {
  body.page-id-928 figure.band,
  body.page-id-4791 figure.band,
  body.page-id-4793 figure.band,
  body.page-id-4795 figure.band,
  body.page-id-942 figure.band {
    padding-inline: calc(24px + 11rem + var(--s6)) calc(24px + var(--rail) + var(--s6));
  }
  body.page-id-928 figure.band img,
  body.page-id-4791 figure.band img,
  body.page-id-4793 figure.band img,
  body.page-id-4795 figure.band img,
  body.page-id-942 figure.band img { width: 100%; }
  body.page-id-928 .entry--railed .rail,
  body.page-id-4791 .entry--railed .rail,
  body.page-id-4793 .entry--railed .rail,
  body.page-id-4795 .entry--railed .rail,
  body.page-id-942 .entry--railed .rail { margin-top: -274px; }
}

/* About Us menu across the top of the Who We Are pages, above the band photograph.
   Its ends sit on the body text's edges on wide screens. */
.about-tabs ul { list-style: none; margin: 0; padding: var(--s6) var(--s4) 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s8); }
.about-tabs a {
  display: inline-block; padding-block: var(--s2);
  font: 400 var(--text-base)/1.3 var(--font-body);
  color: var(--fg-soft); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.about-tabs a:hover { color: var(--link); }
.about-tabs a[aria-current="page"] { color: var(--link); font-weight: 600; border-bottom-color: var(--link); }
@media (min-width: 64rem) {
  .about-tabs ul { padding-inline: calc(24px + 11rem + var(--s6)) calc(24px + var(--rail) + var(--s6)); flex-wrap: nowrap; }
}

/* Friends of the Academy: the friends in a grid of three or four across the body
   column, each with a photograph, role and (Bio) links. A bio opens below its
   friend when its link is followed. */
.friends-grid { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s8) var(--s6); }
.friend { margin: 0; }
.friend__name { margin: 0 0 var(--s2); font-size: var(--text-base); }
.friend__photo img { width: 100%; height: auto; display: block; }
.friend__more { margin: var(--s2) 0 0; font-size: var(--text-sm); }
.friend__more a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.friend__role { margin: var(--s3) 0 0; font-size: var(--text-sm); line-height: 1.4; }
.friend__bio { display: none; margin-top: var(--s4); }
.friend__bio:target { display: block; }
.friend:has(.friend__bio:target) { grid-column: 1 / -1; }
.friend__photo img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Friends of the Academy: the title and the grid of friends start at the same left
   edge, the page's left margin. */
@media (min-width: 64rem) {
  body.page-id-1350 .opener .shell { text-align: left; }
  body.page-id-1350 .opener h1 { margin-left: 0; margin-right: 0; max-width: none; }
  body.page-id-1350 .prose { width: 100%; margin-inline: 0; }
}
body.page-id-1350 .friends-grid { padding-left: 0; }

/* Hover panels on narrower screens: the picture narrows so the description keeps a
   readable column beside it. */
@media (min-width: 64rem) and (max-width: 80rem) {
  .mega__pane { grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); }
}

/* Our Work cover page and hover panel: the text on the left, the photo on the right.
   The side menu, the text and the photo all start on the same line. */
#mega-our-work .mega__in:has(.mega__title) .mega__hd { margin-top: 0; }
#mega-our-work .mega__pane--page .entry__content { display: flex; gap: var(--s6); align-items: flex-start; }
#mega-our-work .mega__pane--page .entry__content > p:first-child { flex: 1 1 0; min-width: 0; margin: -8px 0 0; }
#mega-our-work .mega__pane--page .entry__content > figure { flex: 0 0 44%; margin: 0; border-bottom: 0; }
#mega-our-work .mega__pane--page .entry__content > figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; }

body.page-id-4907 .entry--railed .entry__content { display: flex; gap: var(--s6); align-items: flex-start; }
body.page-id-4907 .entry--railed .entry__content > p:first-child { flex: 1 1 0; min-width: 0; margin: -8px 0 0; }
body.page-id-4907 .entry--railed .entry__content > figure.band { flex: 0 0 44%; width: auto; max-width: none; margin: 0; padding: 0; border-bottom: 0; }
body.page-id-4907 .entry--railed .entry__content > figure.band img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Our Work sub-pages: the same band and side menu as the Who We Are pages. The band
   runs from the body text's left edge to its right edge, and the side menu heading
   sits level with the top of the photograph. */
@media (min-width: 64rem) {
  body.page-id-932 figure.band,
  body.page-id-4826 figure.band,
  body.page-id-4828 figure.band,
  body.page-id-4830 figure.band {
    padding-inline: calc(24px + 11rem + var(--s6)) calc(24px + var(--rail) + var(--s6));
  }
  body.page-id-932 figure.band img,
  body.page-id-4826 figure.band img,
  body.page-id-4828 figure.band img,
  body.page-id-4830 figure.band img { width: 100%; }
  body.page-id-932 .entry--railed .rail,
  body.page-id-4826 .entry--railed .rail,
  body.page-id-4828 .entry--railed .rail,
  body.page-id-4830 .entry--railed .rail { margin-top: -265px; }
}
/* Collaborative Work Areas has its own template, whose side menu sits 15px lower. */
@media (min-width: 64rem) {
  body.page-id-4826 .entry--railed .rail { margin-top: -280px; }
}
/* Narrow screens: the text and photo stack, as the side-by-side layout would be too narrow. */
@media (max-width: 63.99rem) {
  #mega-our-work .mega__pane--page .entry__content,
  body.page-id-4907 .entry--railed .entry__content { flex-direction: column; }
  #mega-our-work .mega__pane--page .entry__content > figure,
  body.page-id-4907 .entry--railed .entry__content > figure.band { flex: none; width: 100%; }
}

/* Our Contributions cover page and hover panel: as the Our Work pages, the body text
   and the photo start level with the top of the side menu heading. */
body.page-id-4708 .entry--railed .rail { margin-top: -6px; }
body.page-id-4708 .entry__content > div[style*="flex"] { align-items: flex-start !important; }
body.page-id-4708 .entry__content > div[style*="flex"] > p:first-child { margin-top: -8px !important; }
#mega-our-contributions .mega__in:has(.mega__title) .mega__hd { margin-top: 8px; }
#mega-our-contributions .mega__pane--page .entry__content > div[style*="flex"] > p:first-child { margin-top: -8px !important; }

/* Get Involved cover page and hover panel: the same alignment as Our Contributions. */
body.page-id-4710 .entry--railed .rail { margin-top: 0; }
body.page-id-4710 .entry__content > div[style*="flex"] { align-items: flex-start !important; }
body.page-id-4710 .entry__content > div[style*="flex"] > p:first-child { margin-top: -8px !important; }
#mega-get-involved .mega__in:has(.mega__title) .mega__hd { margin-top: 0; }
#mega-get-involved .mega__pane--page .entry__content > div[style*="flex"] > p:first-child { margin-top: -8px !important; }
/* Get Involved cover: the text on the left and the photo on the right, overriding the
   earlier stacked layout. */
body.page-id-4710 .entry__content > div[style*="flex"] { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: var(--s6); margin-top: 0 !important; }
body.page-id-4710 .entry__content > div[style*="flex"] > p:first-child { flex: 1 1 0 !important; min-width: 0; margin: -8px 0 0 !important; position: static !important; order: 0; }
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child { order: 0; flex: 0 0 44% !important; margin: 0 !important; position: static !important; top: auto; }
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; flex: none !important; margin: 0 !important; object-fit: cover; }
@media (max-width: 63.99rem) {
  body.page-id-4710 .entry__content > div[style*="flex"] { flex-direction: column !important; }
  body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child { flex: none !important; width: 100%; }
}

/* About Us cover page and hover panel: the same layout as Our Work. The text is on the
   left and the photo on the right; the side menu heading, the text and the photo start
   level. */
body.page-id-4909 .entry--railed .entry__content,
#mega-about-us .mega__pane--page .entry__content { display: flex; gap: var(--s6); align-items: flex-start; }
body.page-id-4909 .entry--railed .entry__content > p:first-child,
#mega-about-us .mega__pane--page .entry__content > p:first-child { flex: 1 1 0; min-width: 0; margin: -8px 0 0; }
body.page-id-4909 .entry--railed .entry__content > figure.band,
#mega-about-us .mega__pane--page .entry__content > figure { flex: 0 0 44%; width: auto; max-width: none; margin: 0; padding: 0; border-bottom: 0; }
body.page-id-4909 .entry--railed .entry__content > figure.band img,
#mega-about-us .mega__pane--page .entry__content > figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 63.99rem) {
  body.page-id-4909 .entry--railed .entry__content,
  #mega-about-us .mega__pane--page .entry__content { flex-direction: column; }
  body.page-id-4909 .entry--railed .entry__content > figure.band,
  #mega-about-us .mega__pane--page .entry__content > figure { flex: none; width: 100%; }
}
#mega-about-us .mega__in:has(.mega__title) .mega__hd { margin-top: 0; }

/* Section headings in page content (h2): one style, the editorial treatment Our Story
   already uses. Subheadings (h3, h4, h5) keep their title-case style. The home page
   keeps its larger display headings. */
.entry__content h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

/* Cookie Policy: the Complianz statement sets its own sizes. Align its headings and
   running text with the other pages: section headings in capitals (h2), body text 20px. */
.entry__content #cmplz-document h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}
.entry__content #cmplz-document p,
.entry__content #cmplz-document li {
  font-size: 20px;
  line-height: 1.6;
}

/* Our Story: the in-page "Our Story" heading is hidden from view. It stays in the page
   so the template can still divide the text into sections, and screen readers still
   announce it. */
body.page-id-928 .acad-part > h2#our-story {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Running text, one size: 20px on desktop and 18px on phones, as the article text.
   The home intro and the Publications descriptions were 18px and 14px. */
.hero__copy p { font-size: 1.125rem; }
.pubs__stand { font-size: 1.125rem; }
@media (min-width: 64rem) {
  .hero__copy p { font-size: 1.25rem; }
  .pubs__stand { font-size: 1.25rem; }
}

/* Footnotes on the FAQ page: smaller than the body text, so they read as notes. */
.entry__content p.footnote { font-size: 1rem; line-height: 1.5; }

/* Publications: the list has two columns (text, cover). A cover placed in a third
   column gave the text column no width, so the descriptions wrapped one word a line. */
body.page-id-4539 .pubs__cover { grid-column: 2; }

/* Item titles: friend names at 18px serif, as the Publications titles. Work-area card titles stay small: at 18px they overflow the 150px-wide cards. */
.friend__name { font-size: 1.125rem; line-height: 1.35; }

/* Work-area cards: three to a row, so the titles can be the item-title size (18px serif)
   without overflowing. The card grows to fit its title. Phones: one card to a row. */
.workareas-content .workareas-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.workareas-content .workareas-cards .card { height: auto; overflow: visible; }
.workareas-content .workareas-cards .card__body { padding: 16px; gap: 6px; }
.workareas-content .workareas-cards .card__title { font-family: var(--font-head); font-size: 1.125rem; font-weight: 400; line-height: 1.3; }
@media (max-width: 45rem) {
  .workareas-content .workareas-cards { grid-template-columns: 1fr; }
}

/* Work-area cards: all the same width, the cards in a row share one height, and a short
   last row is centred. Three to a row on desktop, one to a row on phones. */
.workareas-content .workareas-cards { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; grid-template-columns: none; gap: 16px; }
.workareas-content .workareas-cards .card { flex: 0 0 calc((100% - 32px) / 3); width: auto; box-sizing: border-box; height: auto; align-self: stretch; }
@media (max-width: 45rem) {
  .workareas-content .workareas-cards .card { flex-basis: 100%; }
}

/* Forms: typed entries (text boxes, name boxes and the message box) are in the body serif
   at the body size, as the text the reader writes. Labels stay in Inter. The name boxes on
   the Contact form were Inter at 16px; they now match the other boxes. */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea {
  font-family: var(--font-body);
  font-size: 1.25rem;
}
#gform_5 .ginput_container--name input[type="text"] {
  font-family: var(--font-body);
  font-size: 1.25rem;
}
.gform_wrapper select,
.bbp-login-form input[type="text"] {
  font-family: var(--font-body);
  font-size: 1.25rem;
}
/* Drop-downs on the forms: the Gravity Forms stylesheet sets them in Inter at 16px. */
.gform_wrapper select {
  font-family: var(--font-body) !important;
  font-size: 1.25rem !important;
}


/* Name row on the sponsor and contact forms: the row fills the width of the Email box, so
   the right edge of the Suffix box lines up with the Email box. The First and Last boxes
   share the space left after the Prefix, Middle and Suffix boxes. */
#gform_5 .ginput_container--name { width: 100%; grid-template-columns: auto minmax(0, 1fr) 110px minmax(0, 1fr) 7rem; }
@media (max-width: 45rem) {
  #gform_5 .ginput_container--name { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact form: First Name and Last Name share the width of the Email box, so the right
   edge of the Last Name box lines up with it. */
#gform_2 .ginput_container--name { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Overview pages (Our Work, About Us, Our Contributions, Get Involved) and their top-menu
   hover panels: the photo sits above the text, at body width, as on the detail pages.
   The side menu starts level with the photo. */
body.page-id-4907 .entry--railed .entry__content,
body.page-id-4909 .entry--railed .entry__content,
#mega-our-work .mega__pane--page .entry__content,
#mega-about-us .mega__pane--page .entry__content {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s6);
}
body.page-id-4907 .entry--railed .entry__content > p,
body.page-id-4909 .entry--railed .entry__content > p,
#mega-our-work .mega__pane--page .entry__content > p,
#mega-about-us .mega__pane--page .entry__content > p {
  order: 1; flex: none; margin: 0 !important;
}
body.page-id-4907 .entry--railed .entry__content > figure.band,
body.page-id-4909 .entry--railed .entry__content > figure.band,
#mega-our-work .mega__pane--page .entry__content > figure,
#mega-about-us .mega__pane--page .entry__content > figure {
  order: 0; flex: none; width: 100%; margin: 0; padding: 0; border-bottom: 0;
}
body.page-id-4907 .entry--railed .entry__content > figure.band img,
body.page-id-4909 .entry--railed .entry__content > figure.band img,
#mega-our-work .mega__pane--page .entry__content > figure img,
#mega-about-us .mega__pane--page .entry__content > figure img {
  width: 100%; height: auto; max-height: 320px; aspect-ratio: auto; object-fit: cover;
}
body.page-id-4907 .entry--railed > .rail,
body.page-id-4909 .entry--railed > .rail { margin-top: 0; }

/* Get Involved and Our Contributions: the same, but their pages hold the photo in an
   inline-styled wrapper. */
body.page-id-4708 .entry__content > div[style*="flex"],
body.page-id-4710 .entry__content > div[style*="flex"],
#mega-our-contributions .mega__pane--page .entry__content > div[style*="flex"],
#mega-get-involved .mega__pane--page .entry__content > div[style*="flex"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: var(--s6) !important;
  margin-top: 0 !important;
}
body.page-id-4708 .entry__content > div[style*="flex"] > p:first-child,
body.page-id-4710 .entry__content > div[style*="flex"] > p:first-child,
#mega-our-contributions .mega__pane--page .entry__content > div[style*="flex"] > p:first-child,
#mega-get-involved .mega__pane--page .entry__content > div[style*="flex"] > p:first-child {
  order: 1 !important; flex: none !important; margin: 0 !important; position: static !important;
}
body.page-id-4708 .entry__content > div[style*="flex"] > p:last-child,
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child,
#mega-our-contributions .mega__pane--page .entry__content > div[style*="flex"] > p:last-child,
#mega-get-involved .mega__pane--page .entry__content > div[style*="flex"] > p:last-child {
  order: 0 !important; flex: none !important; width: 100% !important; margin: 0 !important; position: static !important; top: auto !important;
}
body.page-id-4708 .entry__content > div[style*="flex"] > p:last-child img,
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child img,
#mega-our-contributions .mega__pane--page .entry__content > div[style*="flex"] > p:last-child img,
#mega-get-involved .mega__pane--page .entry__content > div[style*="flex"] > p:last-child img {
  width: 100% !important; height: auto !important; max-height: 320px !important; flex: none !important; object-fit: cover; display: block !important;
}
body.page-id-4708 .entry--railed > .rail,
body.page-id-4710 .entry--railed > .rail { margin-top: 0 !important; }
body.page-id-4708 .rail__block,
body.page-id-4907 .rail__block,
body.page-id-4909 .rail__block { margin-top: 0; }
#mega-our-contributions .mega__in:has(.mega__title) .mega__hd { margin-top: 0; }

/* Keep the scrollbar's space on every page, so the text width is the same whether or not
   a page is long enough to scroll. Without it, short pages were 16px wider. */
html { scrollbar-gutter: stable; }


/* Top-menu hover panels: the intro paragraph of each of the four sections is justified.
   The rest of the site's body text stays left-aligned. */
#mega-our-work .mega__pane--page .entry__content > p:first-child,
#mega-about-us .mega__pane--page .entry__content > p:first-child,
#mega-our-contributions .mega__pane--page .entry__content > div[style*="flex"] > p:first-child,
#mega-get-involved .mega__pane--page .entry__content > div[style*="flex"] > p:first-child {
  text-align: justify;
  text-justify: inter-word;
}

/* Cover pages of the same four sections: the intro paragraph is justified too. */
body.page-id-4907 .entry--railed .entry__content > p:first-child,
body.page-id-4909 .entry--railed .entry__content > p:first-child,
body.page-id-4708 .entry__content > div[style*="flex"] > p:first-child,
body.page-id-4710 .entry__content > div[style*="flex"] > p:first-child {
  text-align: justify;
  text-justify: inter-word;
}

/* Cover and hover photos of the four sections: one size, 240px tall at the width of the
   column, and the same 24px gap from the side menu. */
body.page-id-4907 .entry--railed .entry__content > figure.band img,
body.page-id-4909 .entry--railed .entry__content > figure.band img,
body.page-id-4708 .entry__content > div[style*="flex"] > p:last-child img,
body.page-id-4710 .entry__content > div[style*="flex"] > p:last-child img,
#mega-our-work .mega__pane--page .entry__content > figure img,
#mega-about-us .mega__pane--page .entry__content > figure img,
#mega-our-contributions .mega__pane--page .entry__content > div[style*="flex"] > p:last-child img,
#mega-get-involved .mega__pane--page .entry__content > div[style*="flex"] > p:last-child img {
  width: 100% !important;
  height: 240px !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover;
}
#mega-our-work .mega__pane--page,
#mega-about-us .mega__pane--page,
#mega-our-contributions .mega__pane--page,
#mega-get-involved .mega__pane--page {
  margin-left: -24px;
}
#mega-our-work .mega__pane--page .entry__content img,
#mega-about-us .mega__pane--page .entry__content img,
#mega-our-contributions .mega__pane--page .entry__content img,
#mega-get-involved .mega__pane--page .entry__content img {
  max-width: 829px !important;
}
/* The picture starts at the body text's left edge, not centred in its paragraph. */
#mega-our-contributions .mega__pane--page .entry__content p:has(> img),
#mega-get-involved .mega__pane--page .entry__content p:has(> img) {
  text-align: left;
}
#mega-our-contributions .mega__pane--page .entry__content p > img,
#mega-get-involved .mega__pane--page .entry__content p > img {
  margin-left: 0 !important;
}
/* Hover panels: the photo sits closer to the side menu text, as on the cover pages. */
#mega-our-work .mega__pane--page,
#mega-about-us .mega__pane--page,
#mega-our-contributions .mega__pane--page,
#mega-get-involved .mega__pane--page {
  margin-left: -136px;
}

/* Constitution and By-laws: the indents and alignments that were inline styles. */
.ieac-indent-1 { padding-left: 40px; }
.ieac-indent-2 { padding-left: 80px; }
.ieac-indent-3 { padding-left: 120px; }
.ieac-indent-4 { padding-left: 160px; }
.ieac-indent-5 { padding-left: 200px; }
.ieac-align-right { text-align: right; }
.ieac-table-height { height: 547px; }

/* Board Members and Executive Committee: the spacing and photo size that were inline styles. */
.ieac-member-spacing { margin: 1.5em 0 .5em; }
.ieac-member-photo { width: 151px; height: 212px; object-fit: contain; background: #f2f2f2; }

/* Board of Directors: the page title starts at the left edge of the body text. */
body.page-id-4929 .opener h1 { max-width: 829px; margin-left: auto; margin-right: auto; padding-left: 0; box-sizing: border-box; text-align: left; }
body.page-id-4826 .opener h1 { max-width: 829px; margin-left: 200px;margin-right: auto; padding-left: 0; box-sizing: border-box; text-align: left; }

/* Board of Directors and Executive Committee: photos in rows of four (two on phones), the
   name under each photo, and the description opened from its (Bio) link, as on Friends. */
body.page-id-4929 .board-grid,
body.page-id-4931 .board-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-left: 0;
}
@media (max-width: 40rem) {
  body.page-id-4929 .board-grid,
  body.page-id-4931 .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Board photos with a white background (S. Nanthikesan, Oumoul Ba Tall): a soft blue-grey
   backing shows in place of the white, so they match the other photos. */
#s-nanthikesan .friend__photo,
#oumoul-ba-tall .friend__photo { background: #d9e2e8; }
#s-nanthikesan .friend__photo img,
#oumoul-ba-tall .friend__photo img { mix-blend-mode: multiply; }

/* Executive Committee: the page title starts at the left edge of the first photo. */
body.page-id-4931 .opener h1 { max-width: 829px; margin-left: auto; margin-right: auto; padding-left: 0; box-sizing: border-box; text-align: left; }
body.page-id-4931 .entry--railed > .rail { margin-top: 24px; }
/* Nanthikesan's photo on the Executive Committee page: the same blue-grey backing. */
#nanthikesan .friend__photo { background: #d9e2e8; }
#nanthikesan .friend__photo img { mix-blend-mode: multiply; }

/* Board of Directors: the side menu heading starts level with the first row of photos. */
body.page-id-4929 .entry--railed > .rail { margin-top: 24px; }

/* Person pages (from a (Bio) link): the photo beside the full description. */
.person-photo { float: left; width: 260px; margin: 0 var(--s6) var(--s6) 0; }
.person-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 40rem) {
  .person-photo { float: none; width: 100%; max-width: 260px; }
}

/* Nanthikesan and Oumoul Ba Tall: the same blue-grey backing on their person pages. */
body.page-id-4949 .person-photo,
body.page-id-4951 .person-photo,
body.page-id-4956 .person-photo { background: #d9e2e8; }
body.page-id-4949 .person-photo img,
body.page-id-4951 .person-photo img,
body.page-id-4956 .person-photo img { mix-blend-mode: multiply; }

/* Person pages: the first line of the description starts level with the top of the photo. */
.person-photo + p { margin-top: -20px; }
/* Person pages: the side menu heading starts level with the photo. */
.entry--railed:has(.person-photo) > .rail { margin-top: -8px; }
/* Person pages: the photo's top edge sits level with the side menu heading and the text. */
.person-photo { margin-top: 12px; }

/* Board and Executive Committee cards: (Bio) follows the name on the same line. */
.board-grid .friend__name .friend__more { margin: 0; font-size: inherit; }

/* Person pages: a Back button below the description, left aligned with the text. */
.person-back { clear: both; margin: var(--s8) 0 0; }
.person-back a {
  display: inline-block; padding: .6rem 1.25rem; border-radius: 4px;
  background: var(--btn-green); color: var(--fg-invert); text-decoration: none;
  font: 600 1rem/1.3 var(--font-ui);
}
.person-back a:hover, .person-back a:focus-visible { background: var(--btn-green-hover); color: var(--fg-invert); }

/* Founding Friends: the same layout as the Board pages. Photos in rows of four (two on
   phones), the name under each photo with (Bio) after it, and each description on its own
   page. */
body.page-id-1350 .friends-people {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-left: 0;
}
@media (max-width: 40rem) {
  body.page-id-1350 .friends-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.friends-people .friend__name .friend__more { margin: 0; font-size: inherit; }
