/* Minimal site styles — extend per block as pages are migrated. */

/* Work Sans, SIL Open Font License (static/fonts/OFL.txt).
   Google serves one latin variable file for weights 400, 600, and 700. */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/work-sans-latin.97b33529e13b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --colour-purple: #2b2869;
  --colour-purple-bright: #9661ff;
  --colour-purple-electric: #bd9cff;
  --colour-purple-lite: #f8f5ff;
  /* Brand orange (#ea5927) — used for explicit hero/plain CTAs, not legacy .bg-orange */
  --colour-orange-brand: #ea5927;
  --colour-grey: #f9f9f9;
  --colour-smoke: #f2f2f2;
  --colour-white: #fff;
  --colour-text: var(--colour-purple);
  --container-max: 1152px;
  --plain-content-max: 768px;
  --hero-height: min(50vh, 520px);
  --section-padding: 3rem 0;
  --font-sans: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --header-bg: rgba(19, 19, 26, 0.86);
  --header-height: 101px;
  --header-height-collapsed: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  color: var(--colour-text);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--colour-purple-bright);
  text-decoration: none;
}

a:hover {
  color: var(--colour-orange-brand);
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  font-size: 30px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Legacy class shims from migrated HTML */
.colour-purple,
.bg-purple-lite .colour-purple {
  color: var(--colour-purple) !important;
}

/* Legacy theme token "orange" → purple-electric (see bg-orange CTA mapping) */
.colour-orange {
  color: var(--colour-purple-electric) !important;
}

.bg-purple-lite {
  background-color: var(--colour-purple-lite);
}

.bg-white {
  background-color: var(--colour-white);
}

/* Legacy theme: .bg-white a uses purple-electric (content blocks override to bright) */
.bg-white a {
  color: var(--colour-purple-electric);
}

.bg-grey {
  background-color: var(--colour-grey);
}

.bg-purple {
  background-color: var(--colour-purple);
}

.colour-white {
  color: var(--colour-white) !important;
}

/* CTA button colours (legacy is-primary → bg-purple, legacy bg-orange → bg-purple-electric).
   Label is legacy #fffc (white at 80%) until hover, when it becomes solid white. */
.button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.button.bg-purple,
.button.is-primary,
.button.bg-purple-electric,
.button.bg-black,
a.button.bg-black {
  color: rgba(255, 255, 255, 0.8);
}

.button.bg-purple,
.button.is-primary {
  background: var(--colour-purple);
}

.button.bg-purple-electric {
  background: var(--colour-purple-electric);
}

.button.bg-black,
a.button.bg-black {
  background: #13131a;
}

.button.bg-purple:hover,
.button.bg-purple:focus-visible,
.button.is-primary:hover,
.button.is-primary:focus-visible,
.button.bg-purple-electric:hover,
.button.bg-purple-electric:focus-visible,
.button.bg-black:hover,
.button.bg-black:focus-visible,
a.button.bg-black:hover,
a.button.bg-black:focus-visible {
  color: #fff;
}

/* Inline content links. Legacy .content a uses #9661ff; no underline. */
.block-plain-content a:not(.button),
.block-image-content a:not(.button),
.block-grid a:not(.button),
.block-advanced-image a:not(.button),
.block-side-by-side a:not(.button),
.block-title-content-cta-image a:not(.button),
.block-repeatable-image a:not(.button),
.block-content-carousel-cta a:not(.button),
.block-client-overview a:not(.button),
.block-bulletpoints a:not(.button) {
  color: var(--colour-purple-bright);
  text-decoration: none;
}

.block-team-profile a:not(.button) {
  text-decoration: none;
}

/* Legacy .content strong (#2b2869) wins over .content a (#9661ff) inside linked bold text. */
.block-plain-content a:not(.button) strong,
.block-image-content a:not(.button) strong,
.block-grid a:not(.button) strong,
.block-advanced-image a:not(.button) strong,
.block-side-by-side a:not(.button) strong,
.block-title-content-cta-image a:not(.button) strong,
.block-repeatable-image a:not(.button) strong,
.block-content-carousel-cta a:not(.button) strong,
.block-client-overview a:not(.button) strong,
.block-bulletpoints a:not(.button) strong,
.block-team-profile a:not(.button) strong {
  color: var(--colour-purple);
}


.has-text-weight-semibold {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Home page sections */
.home-page section {
  padding: var(--section-padding);
}

.home-page section.block-hero-carousel {
  padding: 0;
}

.content-page section.block-hero-carousel {
  padding: 0;
}

.content-page section.block-page-hero,
.home-page section.block-page-hero {
  padding: 0;
}

.home-page h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
}

/* Homepage views-block titles match legacy: 54px, left. */
.home-page .block-event-listing__title.block-blog-listing__title--event,
.home-page .block-advanced-image__title.block-blog-listing__title--event {
  font-size: 54px;
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: normal;
  margin: 0 0 24px;
  text-align: left;
  color: var(--colour-purple);
}

/* Homepage client, team, and resources titles match the other 54px section headings. */
.home-page .block-content-carousel-cta__title,
.home-page .block-side-by-side__title,
.home-page .block-advanced-image__title {
  font-size: 54px;
  font-weight: 400;
  line-height: 1.125;
}

/* Hero carousel */
.block-hero-carousel {
  width: 100%;
}

.hero-carousel {
  position: relative;
  width: 100%;
  background: var(--colour-purple);
}

.hero-carousel__viewport {
  overflow: hidden;
  width: 100%;
  height: var(--hero-height);
}

/* Page-hero carousels use the same title band as a single hero, not the 50vh crop. */
.block-hero-carousel--band .hero-carousel__viewport,
.block-hero-carousel--large-band .hero-carousel__viewport,
.block-hero-carousel--auto-title .hero-carousel__viewport,
.block-hero-carousel--band .hero-slide,
.block-hero-carousel--large-band .hero-slide,
.block-hero-carousel--auto-title .hero-slide {
  height: auto;
  min-height: 0;
}

.block-hero-carousel--band .hero-slide__overlay,
.block-hero-carousel--large-band .hero-slide__overlay,
.block-hero-carousel--auto-title .hero-slide__overlay {
  position: relative;
}

.block-hero-carousel--band .hero-slide__overlay {
  padding: 9rem 4.5rem;
}

.block-hero-carousel--large-band .hero-slide__overlay {
  padding: 18rem 4.5rem;
}

.block-hero-carousel--auto-title .hero-slide__overlay {
  padding: 3rem 1.5rem;
}

@media (max-width: 768px) {
  .block-hero-carousel--band .hero-slide__overlay,
  .block-hero-carousel--large-band .hero-slide__overlay {
    padding: 3rem 1.5rem;
  }
}

/* Carousel attachment=fixed is a no-op: .hero-carousel__track uses transform /
   will-change, which make position:fixed act like absolute relative to the
   track — viewport parallax cannot work. Slides stay absolute cover imgs. */

.hero-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: var(--hero-height);
  overflow: hidden;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3.5rem;
  text-align: center;
  color: var(--colour-white);
}

/* Full-slide tint (not just the text box). Auto-title/band overlays are
   content-sized + relative; flex stretch can make the slide taller than the
   overlay, which left an untinted image band under quote attributions. */
.hero-slide--tint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero-slide__text h2 {
  color: var(--colour-white);
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.hero-slide__text p {
  margin: 0 0 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.25;
}

/* Quote slides (subtitle + attribution). Legacy hero subtitle is 36px from 1024px. */
.hero-slide__text:has(.hero-slide__footer) .hero-slide__subtitle {
  font-size: 32px;
  line-height: 1.2;
}

.hero-slide__text p.hero-slide__footer {
  font-size: 22px;
  opacity: 0.95;
}

.hero-slide__cta {
  margin-top: 1.5rem;
}

.hero-carousel__dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 0 1.5rem;
  pointer-events: none;
}

.hero-carousel__dot {
  pointer-events: auto;
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 2px solid var(--colour-white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-carousel__dot:hover,
.hero-carousel__dot:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}

.hero-carousel__dot.is-active {
  background: var(--colour-white);
}

@media (max-width: 768px) {
  :root {
    --hero-height: min(42vh, 380px);
  }

  .hero-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-width: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track {
    transition: none;
  }
}

/* Services grid — 3 columns on desktop (legacy Bulma is-4) */
.block-grid .block-grid__title {
  font-size: clamp(2rem, 4vw, 3.375rem);
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}

.block-grid .grid-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem 1.5rem;
  margin-top: 2rem;
}

/* GridBlock with title in first cell (title_fullwidth=false, no block content). */
.block-grid .grid-cards.grid-cards--title-cell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem 1.5rem;
  margin-top: 0;
}

.block-grid .grid-cards.grid-cards--title-cell > .grid-card,
.block-grid .grid-cards.grid-cards--title-cell > .grid-cards__title-cell {
  flex: unset;
  min-width: 0;
}

.block-grid .grid-cards__title-cell .block-grid__title {
  margin: 0;
}

.block-grid .grid-card {
  /* flex-grow 0 keeps partial last rows at 1/3 width (empty slot on the right) */
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  min-width: 0;
  text-align: left;
}

.block-grid .grid-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.block-grid .grid-card__icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-grid .grid-card__icon-image {
  display: block;
  width: 64px;
  height: 64px;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.block-grid .grid-card__preset-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--colour-purple);
}

/* Legacy Font Awesome presets. These two glyphs are the findings-card icons. */
.block-grid .grid-card__preset-icon .fas {
  display: block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--preset-icon) center / contain no-repeat;
  mask: var(--preset-icon) center / contain no-repeat;
}

.block-grid .grid-card__preset-icon .fa-file {
  --preset-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128z'/%3E%3C/svg%3E");
}

.block-grid .grid-card__preset-icon .fa-calendar-alt {
  /* Font Awesome 5.0.10 calendar-alt: month grid, not the single-day calendar. */
  --preset-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath transform='translate(0 448) scale(1 -1)' d='M128 448Q142 448 151 439Q160 430 160 416V384H288V416Q288 430 297 439Q306 448 320 448Q334 448 343 439Q352 430 352 416V384H400Q420 383 434 370Q447 356 448 336V288H0V336Q1 356 14 370Q28 383 48 384H96V416Q96 430 105 439Q114 448 128 448ZM0 256H448H0H448V-16Q447 -36 434 -50Q420 -63 400 -64H48Q28 -63 14 -50Q1 -36 0 -16V256ZM64 176V144V176V144Q65 129 80 128H112Q127 129 128 144V176Q127 191 112 192H80Q65 191 64 176ZM192 176V144V176V144Q193 129 208 128H240Q255 129 256 144V176Q255 191 240 192H208Q193 191 192 176ZM336 192Q321 191 320 176V144Q321 129 336 128H368Q383 129 384 144V176Q383 191 368 192H336ZM64 48V16V48V16Q65 1 80 0H112Q127 1 128 16V48Q127 63 112 64H80Q65 63 64 48ZM208 64Q193 63 192 48V16Q193 1 208 0H240Q255 1 256 16V48Q255 63 240 64H208ZM320 48V16V48V16Q321 1 336 0H368Q383 1 384 16V48Q383 63 368 64H336Q321 63 320 48Z'/%3E%3C/svg%3E");
}

/* Legacy grid icon is font-size 4rem. The glyph box is 64px tall;
   the file is 48px wide and the calendar is 56px wide. */
.block-grid .grid-card--preset .grid-card__icon,
.block-grid .grid-card--preset .grid-card__preset-icon {
  flex: 0 0 auto;
  width: auto;
  height: 64px;
}

.block-grid .grid-card--preset .grid-card__preset-icon {
  font-size: 4rem;
}

.block-grid .grid-card__preset-icon .fa-file {
  width: 48px;
  height: 64px;
}

.block-grid .grid-card__preset-icon .fa-calendar-alt {
  width: 56px;
  height: 64px;
}

.block-grid .grid-card--preset .grid-card__title,
.block-grid .grid-card--preset .grid-card__title a {
  color: var(--colour-purple-bright);
}

.block-grid .grid-card__title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 31px;
  margin: 0;
  color: var(--colour-purple);
}

/* ESG reporting services — legacy h3 weight on the six service titles. */
.block-grid.block-grid--reporting-services .grid-card__title {
  font-weight: 500;
}

/* Benefits title — legacy title column leaves 60px under the heading. */
.block-grid.block-grid--benefits .block-grid__title--fullwidth {
  margin-bottom: 60px;
}

/* ESG reporting and strategy benefits keep the wider gap already matched there. */
.block-grid.block-grid--benefit-space .block-grid__title--fullwidth {
  margin-bottom: 72px;
}

.block-grid .grid-card__content {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  color: var(--colour-purple);
}

.block-grid .grid-card__content p {
  margin: 0 0 0.75rem;
  text-align: left;
}

.block-grid .grid-card__content p:last-child {
  margin-bottom: 0;
}

.block-grid .grid-card__content a:not(.button) {
  display: inline;
  text-align: left;
  color: var(--colour-purple-bright);
  text-decoration: none;
}

.block-grid .grid-card__content a.button {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  text-transform: none;
  letter-spacing: normal;
}

.block-grid .grid-card__content a.button:hover,
.block-grid .grid-card__content a.button:focus-visible {
  color: #fff;
}

.block-grid .grid-card__content a.button strong {
  font-weight: inherit;
}

.block-grid .grid-card__link {
  margin: 0.75rem 0 0;
  text-align: left;
}

@media (max-width: 959px) {
  .block-grid .grid-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }

  .block-grid .grid-cards.grid-cards--title-cell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .block-grid .grid-cards {
    gap: 2rem 1rem;
  }

  .block-grid .grid-card {
    flex: 0 0 100%;
  }

  .block-grid .grid-cards.grid-cards--title-cell {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Benefits grid — single 3-col grid: intro spans 2 cols, cards fill remaining cells */
.block-grid.block-grid--benefits .grid-cards.grid-cards--benefits,
.block-grid .grid-cards.grid-cards--intro-cell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem 1.5rem;
  margin-top: 0;
}

.block-grid.block-grid--benefits .grid-cards.grid-cards--benefits > .grid-card,
.block-grid .grid-cards.grid-cards--intro-cell > .grid-card {
  flex: unset;
  width: auto;
  max-width: none;
}

.block-grid.block-grid--benefits .block-grid__benefits-intro,
.block-grid .block-grid__grid-intro {
  grid-column: span 2;
  font-size: 20px;
  color: var(--colour-purple);
}

.block-grid.block-grid--benefits .block-grid__benefits-intro p,
.block-grid .block-grid__grid-intro p {
  margin: 0 0 1rem;
}

.block-grid.block-grid--benefits .block-grid__benefits-intro p:last-child,
.block-grid .block-grid__grid-intro p:last-child {
  margin-bottom: 0;
}

.block-grid.block-grid--benefits .block-grid__benefits-intro a,
.block-grid .block-grid__grid-intro a {
  color: var(--colour-purple-bright);
  text-decoration: none;
}

.block-grid .block-grid__grid-intro h5 {
  font-size: inherit;
  font-weight: 700;
  margin: 0;
  color: var(--colour-purple);
}

@media (max-width: 768px) {
  .block-grid.block-grid--benefits .grid-cards.grid-cards--benefits,
  .block-grid .grid-cards.grid-cards--intro-cell {
    grid-template-columns: 1fr;
  }

  .block-grid.block-grid--benefits .block-grid__benefits-intro,
  .block-grid .block-grid__grid-intro {
    grid-column: span 1;
  }
}

/* Plain content — legacy .plain-content-block .content (max-width 768px, centred) */
.block-plain-content__content,
.block-typed-table__content {
  max-width: var(--plain-content-max);
  width: 100%;
  margin-inline: auto;
  font-size: 20px;
}

/* Section titles inside plain content rich text (legacy h2 at 54px) */
.block-plain-content__content h2 {
  font-size: clamp(2rem, 4vw, 3.375rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 2rem;
  color: var(--colour-purple);
}

/* Subsection labels (legacy h5 → h3 on import) */
.block-plain-content__content h3:not(.text-center) {
  font-weight: 500;
  line-height: 1.125;
  margin: 2rem 0 1rem;
  text-align: left;
}

/* Centred intro lines (legacy h5.text-center → p.plain-content-lead on import) */
.block-plain-content__content p.plain-content-lead {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: var(--colour-purple);
}

/* Draftail ul-arrows feature — opt-in arrow bullets (stock ul keeps discs). */
.list-arrows {
  list-style: none;
  padding-left: 0;
}

.list-arrows > li {
  position: relative;
  padding-left: 1.5em;
}

.list-arrows > li::before {
  content: "→";
  position: absolute;
  left: 0;
}

/* Equals-caret lists (legacy NTK “Business results” columns). CSS-only — no Draftail feature. */
.list-equals {
  list-style: none;
  padding-left: 0;
}

.list-equals > li {
  position: relative;
  padding-left: 1.5em;
}

.list-equals > li::before {
  content: "=";
  position: absolute;
  left: 0;
}

/*
 * Typed tables sit between plain-content sections; collapse the extra section
 * padding so the table stays in the same text column rhythm as legacy.
 */
.content-page section.block-typed-table,
.home-page section.block-typed-table {
  padding-top: 0;
  padding-bottom: 0;
}

.content-page section.block-plain-content:has(+ section.block-typed-table),
.home-page section.block-plain-content:has(+ section.block-typed-table) {
  padding-bottom: 0;
}

.content-page section.block-typed-table + section.block-plain-content,
.home-page section.block-typed-table + section.block-plain-content {
  padding-top: 0;
}

/* Legacy Bulma .content table */
.block-plain-content__content table,
.block-typed-table__content table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
}

.block-plain-content__content table td,
.block-plain-content__content table th,
.block-typed-table__content table td,
.block-typed-table__content table th {
  border: 1px solid rgba(43, 40, 105, 0.2);
  border-width: 0 0 1px;
  padding: 0.5em 0.75em;
  vertical-align: top;
  text-align: left;
  font-size: 20px;
  line-height: 1.5;
}

.block-plain-content__content table th,
.block-typed-table__content table th {
  font-weight: 700;
}

/* Legacy .content table thead th { border-width: 0 0 2px } */
.block-plain-content__content table thead td,
.block-plain-content__content table thead th,
.block-typed-table__content table thead td,
.block-typed-table__content table thead th {
  border-bottom-width: 2px;
}

/* Legacy minireset zeroes p margins, so cell copy starts at the top with the bare text. */
.block-plain-content__content table td p,
.block-typed-table__content table td p {
  margin-top: 0;
}

.block-plain-content__content table td p:last-of-type,
.block-typed-table__content table td p:last-of-type {
  margin-bottom: 0;
}

.block-plain-content__content table tbody tr:last-child td,
.block-plain-content__content table tbody tr:last-child th,
.block-typed-table__content table tbody tr:last-child td,
.block-typed-table__content table tbody tr:last-child th {
  /* Legacy .content table tbody tr:last-child td { border-bottom-width: 0 } */
  border-bottom-width: 0;
}

/* Plain content intro (legacy uses h3.text-center for the tagline block) */
.block-plain-content h3.text-center {
  font-weight: 500;
  line-height: 1.125;
  margin: 0 0 1.5rem;
}

/* Partnership block — title centred above logo strip (legacy block 14) */
.block-plain-content p.text-left:has(.has-text-weight-semibold) {
  text-align: center;
}

.block-plain-content img.center,
.block-plain-content .richtext-image.center {
  display: block;
  margin-inline: auto;
  width: auto;
  height: auto;
  max-width: min(676px, 100%);
  object-fit: contain;
}

/* Legacy captionImage.center is a fixed-width figure centred in the text column. */
.block-plain-content .captionImage.center {
  margin-inline: auto;
  clear: both;
}

/* Diagrams authored at the text-column width. The 676px cap above is for smaller centred photos. */
.block-plain-content .richtext-image.center-column {
  max-width: 100%;
}

.block-plain-content__content p:has(.richtext-image.center) {
  text-align: center;
}

/* Carbon reduction intro icon — legacy ResizedImage 63×67, centred under the lead. */
.block-plain-content .richtext-image.icon67 {
  display: block;
  margin: 1.25rem auto 0;
  width: 63px;
  height: 67px;
  max-width: 63px;
}

.block-plain-content .richtext-image.icon68 {
  display: block;
  margin: 1.25rem auto 0;
  width: 68px;
  height: 68px;
  max-width: 68px;
}

/* Legacy plain-content right-floated diagrams (editor class `right` → richtext-image right). */
.block-plain-content .richtext-image.right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: min(453px, 48%);
  width: auto;
  height: auto;
}

.block-plain-content__content::after {
  content: "";
  display: table;
  clear: both;
}

/* Advanced image content (e.g. MCI Pro, speaker profiles) */
.block-advanced-image.bg-purple-lite + .block-advanced-image.bg-purple-lite {
  padding-top: 0;
}

.block-advanced-image__title {
  font-size: clamp(2rem, 4vw, 3.375rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 2rem;
  color: var(--colour-purple);
}

.block-advanced-image__columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}

.block-advanced-image__media {
  flex: 0 0 calc(33.333% - 1.35rem);
  max-width: calc(33.333% - 1.35rem);
}

.block-advanced-image__body {
  flex: 1 1 0;
  min-width: min(100%, 280px);
  text-align: left;
}

.block-advanced-image__image {
  display: block;
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.block-advanced-image__content {
  color: var(--colour-purple);
  font-size: 20px;
  text-align: left;
}

.block-advanced-image__content h3 {
  font-weight: 500;
  line-height: 1.125;
  margin: 0 0 1rem;
  text-align: left;
}

.block-advanced-image__content p,
.block-advanced-image__content li {
  font-size: 20px;
  text-align: left;
}

/* The copy sits beside the photo. The first line lines up with the top of the image. */
.block-advanced-image__columns .block-advanced-image__content--top > :first-child {
  margin-top: 0;
}

.block-advanced-image__content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.block-advanced-image__content li:not(:last-child) {
  margin-bottom: 0.75rem;
}

.block-advanced-image__content a {
  text-decoration: none;
}

.block-advanced-image__cta {
  margin: 2rem 0 0;
  text-align: left;
}

.block-advanced-image--title-side .block-advanced-image__title {
  margin-bottom: 0;
}

.block-advanced-image--with-media .block-advanced-image__title--top {
  width: 100%;
  margin-bottom: 2rem;
}

.block-advanced-image__content .richtext-image.left,
.block-advanced-image__content img.leftAlone {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 0 1rem;
}

.block-advanced-image--title-side .block-advanced-image__content--bottom .richtext-image,
.block-advanced-image--title-side .block-advanced-image__content--bottom img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 1rem;
}

.block-advanced-image--title-side .block-advanced-image__cta {
  text-align: left;
}

/* EFNZ — spend-based comparison table */
.block-advanced-image--spend-based-table .block-advanced-image__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.block-advanced-image--spend-based-table .block-advanced-image__content table td {
  border-bottom: 1px solid rgba(43, 40, 105, 0.2);
  padding: 0.75rem 0.5rem 0.75rem 0;
  vertical-align: top;
}

.block-advanced-image--spend-based-table .block-advanced-image__content table thead td {
  border-bottom: 1px solid rgba(43, 40, 105, 0.2);
}

.block-advanced-image--spend-based-table .block-advanced-image__content table h5 {
  margin: 0 0 0.5rem;
  font-size: inherit;
  font-weight: 500;
}

.content-page .block-advanced-image--spend-based-table .block-advanced-image__content table img,
.content-page .block-advanced-image--spend-based-table .block-advanced-image__content table .richtext-image {
  float: none;
  display: block;
  margin: 0 0 1rem;
  width: auto;
  max-width: 112px;
  height: 112px;
  object-fit: contain;
}

/* EFNZ — additional data icon row */
.block-advanced-image--additional-data .block-advanced-image__content table:first-of-type {
  width: 100%;
  table-layout: fixed;
  margin: 0 0 2rem;
  border-collapse: collapse;
}

.block-advanced-image--additional-data .block-advanced-image__content table:first-of-type tr:first-child td {
  width: 33.333%;
  text-align: left;
  vertical-align: bottom;
  border-bottom: none;
  padding: 0 1.5rem 0 0;
}

.content-page .block-advanced-image--additional-data .block-advanced-image__content table:first-of-type tr:first-child td:nth-child(1) img,
.content-page .block-advanced-image--additional-data .block-advanced-image__content table:first-of-type tr:first-child td:nth-child(1) .richtext-image {
  height: 91px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

.content-page .block-advanced-image--additional-data .block-advanced-image__content table:first-of-type tr:first-child td:nth-child(2) img,
.content-page .block-advanced-image--additional-data .block-advanced-image__content table:first-of-type tr:first-child td:nth-child(2) .richtext-image {
  height: 91px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

.content-page .block-advanced-image--additional-data .block-advanced-image__content table:first-of-type tr:first-child td:nth-child(3) img,
.content-page .block-advanced-image--additional-data .block-advanced-image__content table:first-of-type tr:first-child td:nth-child(3) .richtext-image {
  height: 94px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

/* Science Based Targets — three 80px icons spaced across the content column. */
.block-advanced-image--icon-row .block-advanced-image__content table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.25rem 0 0;
}

.block-advanced-image--icon-row .block-advanced-image__content table td {
  width: 33.333%;
  border: none;
  padding: 0;
  vertical-align: middle;
}

.block-advanced-image--icon-row .block-advanced-image__content table img,
.block-advanced-image--icon-row .block-advanced-image__content table .richtext-image {
  display: block;
  float: none;
  width: 80px;
  height: 80px;
  max-width: 80px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .block-advanced-image__media,
  .block-advanced-image__body {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* CTA buttons in content blocks */
.block-plain-content__cta {
  text-align: center;
  margin-top: 1.5rem;
}

.block-plain-content__cta a.button {
  text-decoration: none;
}

/* Inline links in plain content (legacy: purple, no underline — body + tables) */
.block-plain-content__content a {
  text-decoration: none;
}

/* Glossary A–Z jump links (legacy: lavender purple) */
.block-plain-content__content a[href^="#Glossary"] {
  color: var(--colour-purple-bright);
}

.block-content-carousel-cta__title {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--colour-purple);
}

.block-content-carousel-cta__content {
  max-width: var(--plain-content-max);
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 20px;
  color: var(--colour-purple);
}

.block-content-carousel-cta .membership-carousel {
  position: relative;
  margin: 0 0 2rem;
}

.membership-carousel .team-carousel__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Legacy content-carousel-cta: grey square nav at row edges (not team carousel circles). */
.membership-carousel .team-carousel__nav {
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  background: #6d6e71;
  font-size: 1.25rem;
}

.membership-carousel .team-carousel__nav--prev {
  left: 0;
}

.membership-carousel .team-carousel__nav--next {
  right: 0;
}

.block-content-carousel-cta__logo {
  flex: 0 0 auto;
  text-align: center;
}

.block-content-carousel-cta__image {
  display: block;
  max-height: 72px;
  width: auto;
  margin: 0 auto;
}

.block-content-carousel-cta__cta {
  text-align: center;
  margin: 0;
}

.block-content-carousel-cta__cta .button {
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
}

.block-content-carousel-cta__cta a.button:hover,
.block-content-carousel-cta__cta a.button:focus-visible,
.block-advanced-image__cta .button:hover,
.block-advanced-image__cta .button:focus-visible {
  color: #fff;
}

.block-side-by-side-carousel__content .richtext-image.center,
.block-side-by-side-carousel__content img.center {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}

.block-side-by-side-carousel .team-carousel {
  position: relative;
  margin-top: 0;
}

.block-side-by-side-carousel .team-carousel--below-columns {
  margin-top: 2rem;
}

/* Legacy title-content-side-by-side-carousel: agile row beside title, 16:9 thumbs, grey square nav. */
.block-side-by-side-carousel .team-carousel__photo {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.block-side-by-side-carousel .team-carousel__nav {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.6);
  font-size: 1rem;
}

.block-side-by-side-carousel .team-carousel__nav--prev {
  left: 0;
}

.block-side-by-side-carousel .team-carousel__nav--next {
  right: 0;
}

.team-carousel__viewport {
  overflow: hidden;
}

.team-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.team-carousel__slide {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.team-carousel__slide--nav {
  flex: 0 0 0;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
}

.team-carousel__link {
  display: block;
  overflow: hidden;
}

.team-carousel__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--colour-purple);
  color: var(--colour-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.team-carousel__nav:hover {
  opacity: 0.9;
}

.team-carousel__nav--prev {
  left: -0.25rem;
}

.team-carousel__nav--next {
  right: -0.25rem;
}

.team-carousel--static .team-carousel__nav,
.team-carousel__nav[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  .team-carousel__slide {
    flex-basis: 33.333%;
    max-width: 33.333%;
  }
}

@media (min-width: 1024px) {
  .team-carousel__slide {
    flex-basis: 20%;
    max-width: 20%;
  }

  /* Legacy NumItemsDesktop=5: full-width carousel row below title/content columns. */
  .block-side-by-side-carousel .team-carousel--below-columns .team-carousel__slide {
    flex-basis: 20%;
    max-width: 20%;
  }

  .team-carousel__nav--prev {
    left: -1rem;
  }

  .team-carousel__nav--next {
    right: -1rem;
  }

  .block-side-by-side-carousel .team-carousel__nav--prev {
    left: 0;
  }

  .block-side-by-side-carousel .team-carousel__nav--next {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-carousel__track {
    transition: none;
  }
}

.content-page .block-grid__header-content div.embed:has(iframe) {
  /* Legacy grid columns do not grow with tall embeds; iframe overflows into the next section. */
  height: 0;
  min-height: 0;
  overflow: visible;
}

.content-page .block-grid__header-content iframe,
.content-page .block-grid__header-content div.embed iframe,
.content-page .block-grid__header-content .embed-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 600px;
  min-height: 600px;
  aspect-ratio: auto;
  border: 0;
  margin: 0;
}

.content-page #Signuphere {
  overflow: visible;
  padding-top: 100px;
  padding-bottom: 72px;
}

.content-page #Signuphere .block-grid__header {
  overflow: visible;
  margin-bottom: 0;
  min-height: 580px;
  align-items: flex-start;
}

.content-page #Signuphere .block-grid__header-content iframe,
.content-page #Signuphere .block-grid__header-content div.embed iframe,
.content-page #Signuphere .block-grid__header-content .embed-iframe {
  /* Push Typeform down so block-3663 overlap shows the email tail only (legacy capture). */
  margin-top: 7rem;
}

.content-page #Signuphere + section.block-grid.bg-purple-lite {
  /* Empty legacy spacer (block-3663) — Typeform iframe tail overlaps this band */
  padding-top: 36px;
  padding-bottom: 36px;
  min-height: 0;
}

/* Purple-lite grids — legacy half-padding (was an oversized related-content band). */
.content-page section.block-grid.bg-purple-lite:not(#Signuphere):not(#Signuphere + section) {
  padding-top: 50px;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .content-page section.block-grid.bg-purple-lite:not(#Signuphere):not(#Signuphere + section) {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* A findings grid directly under the article uses the normal legacy band, not the tall related-content one. */
.content-page section.block-article-content.bg-white + section.block-grid.bg-purple-lite:not(#Signuphere):not(#Signuphere + section) {
  padding-bottom: 80px;
}

.block-resources-placeholder em {
  color: #666;
  font-size: 0.95rem;
}

/* Centered listing titles. Insights and the events index use the larger left-aligned style. */
.block-event-listing__title,
.block-blog-listing__title {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 2rem;
  color: var(--colour-purple);
}

.block-event-listing__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Legacy ResourcesBlock + ListHasColumns (embedded LatestEvent on articles, etc.) */
.block-event-listing__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 1.5rem;
}

.block-event-listing__grid--three .blog-card {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
}

/* Legacy Bulma is-3 — four ResourceItem cards per row */
.block-event-listing__grid--four .blog-card {
  flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
}

.block-event-listing--columns .blog-card__thumb {
  position: relative;
}

/* Beat .content-page p / h3 so these cards stay the legacy resource-item size. */
.block-event-listing--columns .blog-card__title {
  margin: 0 0 0.75rem;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.block-event-listing--columns .blog-card__summary {
  margin: 0 0 1rem;
  font-size: 16px;
  line-height: 1.4;
}

.block-event-listing--columns .blog-card__thumb-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 959px) {
  .block-event-listing__grid--three .blog-card,
  .block-event-listing__grid--four .blog-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 640px) {
  .block-event-listing__grid--three .blog-card,
  .block-event-listing__grid--four .blog-card {
    flex: 0 0 100%;
  }
}

.block-event-listing__cta {
  margin: 2rem 0 0;
  text-align: center;
}

.block-event-listing__load-more[hidden] {
  display: none !important;
}

.block-event-listing__empty {
  text-align: center;
  color: var(--colour-purple);
}

.block-event-listing--videos {
  padding: 3rem 0;
}

.block-event-listing__all-loaded {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--colour-purple);
}

/* Webinar views-block (vertical list, thumb left — legacy ListHasColumns=false) */
.block-event-listing__list--webinars {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.webinar-list-card {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.webinar-list-card__thumb {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.webinar-list-card__thumb a {
  display: block;
}

.webinar-list-card__image {
  display: block;
  width: 16rem;
  max-width: 100%;
  height: auto;
}

.webinar-list-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.webinar-list-card__title {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.webinar-list-card__title a {
  color: var(--colour-purple);
  text-decoration: none;
}

.webinar-list-card__title a:hover {
  color: var(--colour-purple-electric);
}

.webinar-list-card__summary {
  margin: 0 0 1rem;
  font-size: 16px;
  line-height: 1.5;
  color: var(--colour-purple);
}

.webinar-list-card__link {
  margin: 0;
}

@media (max-width: 768px) {
  .webinar-list-card {
    grid-template-columns: 1fr;
  }

  .webinar-list-card__image {
    width: 100%;
  }
}

/* Homepage Our impact listing */
.block-impact-listing__title {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 2rem;
  color: var(--colour-purple);
}

.block-impact-listing__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.impact-card {
  flex: 0 0 calc((100% - 4 * 1.5rem) / 5);
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--colour-white);
  border: 1px solid rgba(43, 40, 105, 0.12);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(43, 40, 105, 0.08);
  overflow: hidden;
}

.impact-card.is-hidden {
  display: none;
}

.impact-card__thumb {
  margin: 0;
  line-height: 0;
}

.impact-card__thumb a {
  display: block;
}

.impact-card__image {
  display: block;
  width: 100%;
  height: auto;
}

.impact-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem;
}

.impact-card__title {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.impact-card__title a {
  color: var(--colour-purple);
  text-decoration: none;
}

.impact-card__title a:hover {
  color: var(--colour-purple-bright);
}

.impact-card__summary {
  margin: 0 0 0.75rem;
  font-size: 14px;
  line-height: 1.45;
  color: var(--colour-purple);
  flex: 1 1 auto;
}

.impact-card__link {
  margin: 0;
  text-align: center;
}

/* a. prefix beats .bg-white a (same specificity, later in file). */
a.impact-card__read-more {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--colour-purple);
  color: var(--colour-white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

a.impact-card__read-more:hover {
  background: var(--colour-purple-bright);
  color: var(--colour-white);
}

.block-impact-listing__actions {
  margin: 2rem 0 0;
  text-align: center;
}

.block-impact-listing__empty {
  text-align: center;
  color: var(--colour-purple);
}

@media (max-width: 1215px) {
  .impact-card {
    flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  }
}

@media (max-width: 959px) {
  .impact-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 767px) {
  .impact-card {
    flex: 0 0 100%;
  }
}

.richtext-image.full-width {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}

/* Site footer (legacy Footer.vue + blocks/footer/_all.scss) */
.site-footer {
  padding: 6rem 1.5rem 12rem;
  color: var(--colour-white);
}

.site-footer a {
  display: inline-block;
  text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--colour-white);
  text-decoration: none;
}

.site-footer a[href="mailto:meet@thinkstep-anz.com"],
.site-footer a[href="mailto:meet@thinkstep-anz.com"]:hover,
.site-footer a[href="mailto:meet@thinkstep-anz.com"]:focus {
  text-decoration: none;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
}

.site-footer__brand {
  align-items: flex-start;
}

.site-footer__logo {
  flex: 0 0 50%;
  max-width: 50%;
}

.site-footer__logo-image {
  display: block;
  width: 60%;
  max-width: 240px;
  height: auto;
}

.site-footer__social {
  flex: 0 0 50%;
  max-width: 50%;
  text-align: right;
}

.site-footer__social a {
  padding: 0 10px;
  line-height: 0;
  margin: 14px 0 4rem;
}

.site-footer__social img {
  display: block;
}

.site-footer__columns {
  margin-bottom: 60px;
}

.site-footer__column {
  flex: 0 0 100%;
  max-width: 100%;
}

.site-footer__content p {
  color: var(--colour-white);
  margin: 0 0 0.75rem;
}

.site-footer__content p:last-child {
  margin-bottom: 0;
}

.site-footer__info {
  margin-bottom: 20px;
  font-size: 20px;
  align-items: flex-start;
}

.site-footer__slogan {
  flex: 0 0 50%;
  max-width: 50%;
}

.site-footer__slogan p {
  color: var(--colour-white);
  margin: 0;
}

.site-footer__badges {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-footer__badge {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-footer__badge--padded {
  padding: 8px 0;
}

.site-footer__legal {
  border-top: 1px solid var(--colour-purple-electric);
  padding-top: 1rem;
}

.site-footer__links {
  flex: 0 0 50%;
  max-width: 50%;
}

.site-footer__links p {
  color: var(--colour-purple-electric);
  margin: 0;
}

.site-footer__links a {
  color: var(--colour-purple-electric);
}

.site-footer__copyright {
  flex: 0 0 50%;
  max-width: 50%;
  color: var(--colour-purple-electric);
  text-align: right;
}

@media (min-width: 769px) {
  .site-footer__column {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .site-footer__column--mid .site-footer__content {
    display: flex;
    justify-content: center;
  }

  .site-footer__column--right .site-footer__content {
    display: flex;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .site-footer__logo,
  .site-footer__social,
  .site-footer__slogan,
  .site-footer__badges,
  .site-footer__links,
  .site-footer__copyright {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .site-footer__social {
    text-align: left;
  }

  .site-footer__social a {
    margin-bottom: 2rem;
  }

  .site-footer__copyright {
    text-align: left;
    margin-top: 1rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Site header / main navigation (legacy Header.vue + header/_navigation.scss) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
}

.site-header.is-collapsed .site-nav__logo img {
  max-height: 48px;
  padding: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-width: 0;
}

.site-nav__logo {
  display: block;
  line-height: 0;
  margin-left: 0;
  padding-left: 0;
}

.site-nav__logo img {
  display: block;
  max-height: var(--header-height);
  height: 100px;
  width: auto;
  padding: 0.75rem 0;
  padding-left: 0;
  transition: max-height 0.2s ease, padding 0.2s ease;
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.site-nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--colour-purple-lite);
}

.site-nav__menu {
  flex: 1 1 auto;
}

.site-nav__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-right: 1rem;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: block;
  padding: 1rem 1.75rem;
  color: var(--colour-purple-lite);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: none;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__link.is-active {
  color: var(--colour-purple-bright);
}

.site-nav__dropdown {
  display: none;
}

.site-nav__submenu-panel {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 100%;
  width: max-content;
  max-width: 24rem;
  margin: 0;
  padding: 0.75rem 0 1rem;
  background: var(--header-bg);
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2;
}

.site-nav__item--has-dropdown:hover .site-nav__submenu-panel,
.site-nav__item--has-dropdown:focus-within .site-nav__submenu-panel,
.site-nav__item--has-dropdown.is-submenu-open .site-nav__submenu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav__submenu-list,
.site-nav__submenu-nested {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__submenu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.site-nav__submenu-item {
  width: 100%;
}

.site-nav__submenu-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding-inline: 1.75rem;
}

.site-nav__submenu-link,
.site-nav__submenu-nested-link {
  flex: 0 1 auto;
  display: inline;
  padding: 0.65rem 0;
  color: var(--colour-purple-lite);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
}

.site-nav__submenu-link:hover,
.site-nav__submenu-link:focus,
.site-nav__submenu-nested-link:hover,
.site-nav__submenu-nested-link:focus {
  color: var(--colour-purple-electric);
}

.site-nav__submenu-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--colour-purple-lite);
  cursor: pointer;
  vertical-align: middle;
}

.site-nav__submenu-toggle:hover,
.site-nav__submenu-toggle:focus {
  color: var(--colour-purple-bright);
}

.site-nav__submenu-toggle-icon {
  display: block;
  transition: transform 0.2s ease;
}

.site-nav__submenu-item.is-open > .site-nav__submenu-row .site-nav__submenu-toggle-icon {
  transform: rotate(90deg);
}

.site-nav__submenu-nested {
  display: none;
  width: 100%;
  padding: 0 0 0.25rem 2.5rem;
}

.site-nav__submenu-item.is-open > .site-nav__submenu-nested {
  display: block;
}

.site-nav__submenu-nested .site-nav__submenu-row {
  padding-inline: 1rem 1.75rem;
}

.site-nav__submenu-nested .site-nav__submenu-link,
.site-nav__submenu-nested .site-nav__submenu-nested-link {
  font-size: 0.9375rem;
  padding-block: 0.45rem;
}

.site-nav__submenu-nested .site-nav__submenu-nested {
  padding-left: 1.75rem;
}

.site-nav__search-icon {
  display: block;
}

.site-nav__search-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--colour-purple-lite);
  padding: 0.5rem 0.25rem;
  margin-right: 0.25rem;
  text-decoration: none;
}

.site-nav__search-mobile:hover,
.site-nav__search-mobile:focus {
  color: var(--colour-purple-bright);
}

.site-nav__item--search {
  position: static;
}

.site-nav__search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.25rem;
}

.site-nav__search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--header-bg);
  padding: 2rem 1.5rem 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1;
}

.site-nav__item--search:hover .site-nav__search-panel,
.site-nav__item--search:focus-within .site-nav__search-panel,
.site-nav__item--search.is-search-open .site-nav__search-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav__search-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--colour-purple);
}

.site-nav__search-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 720px;
}

.site-nav__search-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 0;
  border-radius: 0;
  font: inherit;
  font-size: 1.125rem;
  color: var(--colour-purple);
  background: var(--colour-white);
}

.site-nav__search-input::placeholder {
  color: rgba(43, 40, 105, 0.55);
}

.site-nav__search-submit {
  flex: 0 0 auto;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--colour-white);
  background: var(--colour-purple);
  cursor: pointer;
}

.site-nav__search-submit:hover,
.site-nav__search-submit:focus {
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .site-nav {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav__brand {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .site-nav__menu {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 1023px) {
  .site-nav__brand {
    flex: 1 1 100%;
    padding-right: 1rem;
    position: relative;
  }

  .site-nav__search-mobile {
    display: flex;
    position: absolute;
    right: calc(44px + 1rem + 8px);
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    margin-right: 0;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
  }

  .site-nav__item--search {
    display: none;
  }

  .site-nav__menu {
    flex: 1 1 100%;
  }

  .site-nav__items {
    padding-right: 0;
  }
  .site-nav__toggle {
    display: flex;
  }

  .site-nav__menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
  }

  .site-nav__menu.is-open {
    max-height: calc(100vh - var(--header-height-collapsed));
    opacity: 1;
    overflow-y: auto;
  }

  .site-nav__items {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__link {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 3.5rem;
    padding-block: 0;
  }

  .site-nav__dropdown {
    display: none;
  }

  .site-nav__submenu-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0;
    box-shadow: none;
  }

  .site-nav__item--has-dropdown.is-open .site-nav__submenu-panel {
    display: block;
  }

  .site-nav__submenu-row {
    padding-inline: 0;
  }

  .site-nav__submenu-list {
    max-width: none;
  }

  .site-nav__submenu-link,
  .site-nav__submenu-nested-link {
    padding-left: 2rem;
    font-size: 0.875rem;
    line-height: 1.6;
    padding-block: 0.5rem;
  }

  .site-nav__submenu-nested {
    padding-left: 4rem;
  }

  .site-nav__submenu-nested .site-nav__submenu-row {
    padding-inline: 0;
  }

  .site-nav__submenu-nested .site-nav__submenu-link,
  .site-nav__submenu-nested .site-nav__submenu-nested-link {
    padding-left: 0;
    font-size: 0.8125rem;
  }

  .site-nav__submenu-nested .site-nav__submenu-nested {
    padding-left: 1.75rem;
  }

  .site-nav__logo img {
    max-height: 32px;
    padding: 0;
  }
}

/* Page hero — cover <img> in .block-page-hero__media (legacy PageHeroImageMode) */
.block-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--colour-white);
  overflow: hidden;
}

.block-page-hero--medium {
  /* Legacy is-medium ≈514px at 1440×900 capture; 50vh carousel height is too short. */
  min-height: min(57vh, 520px);
}

/* Legacy PageHero is-medium with a fixed header over the image. The visible
   band below the nav is the hero-body: 9rem + title + 9rem, not the 57vh minimum. */
.block-page-hero--band {
  min-height: 0;
  height: auto;
  display: block;
}

.block-page-hero--band .block-page-hero__body {
  padding: 9rem 4.5rem;
}

/* Legacy .hero.is-large .hero-body: 18rem above and below the title from 769px. */
.block-page-hero--large-band {
  min-height: 0;
  height: auto;
  display: block;
}

.block-page-hero--large-band .block-page-hero__body {
  padding: 18rem 4.5rem;
}

/* Legacy .hero.is-auto: default hero-body padding, image covers that band. */
.block-page-hero--auto-title {
  min-height: 0;
  height: auto;
  display: block;
}

.block-page-hero--auto-title .block-page-hero__body {
  padding: 3rem 1.5rem;
}

@media (max-width: 768px) {
  .block-page-hero--band .block-page-hero__body,
  .block-page-hero--large-band .block-page-hero__body {
    padding: 3rem 1.5rem;
  }
}

/* Tint stays in flow on a padding-sized band so the band does not collapse. */
.block-page-hero--band.block-page-hero--tint .block-page-hero__body,
.block-page-hero--large-band.block-page-hero--tint .block-page-hero__body,
.block-page-hero--auto-title.block-page-hero--tint .block-page-hero__body {
  position: relative;
  inset: auto;
  background: rgba(0, 0, 0, 0.45);
}

.block-page-hero--plain {
  background-color: #b0b5bc;
}

/* Title-band / file / fixed heroes: cover img fills the section box. */
.block-page-hero--band .block-page-hero__media,
.block-page-hero--large-band .block-page-hero__media,
.block-page-hero--auto-title .block-page-hero__media,
.block-page-hero--file .block-page-hero__media,
.block-page-hero--fullheight .block-page-hero__media,
.block-page-hero--medium .block-page-hero__media,
.block-page-hero--small .block-page-hero__media,
.block-page-hero--large .block-page-hero__media,
.block-page-hero--fixed .block-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.block-page-hero--band .block-page-hero__body,
.block-page-hero--large-band .block-page-hero__body,
.block-page-hero--auto-title .block-page-hero__body,
.block-page-hero--file .block-page-hero__body,
.block-page-hero--fullheight .block-page-hero__body,
.block-page-hero--medium .block-page-hero__body,
.block-page-hero--small .block-page-hero__body,
.block-page-hero--large .block-page-hero__body,
.block-page-hero--fixed .block-page-hero__body {
  position: relative;
  z-index: 1;
}

/* Desktop fixed: viewport-fixed cover img clipped to the media box (legacy
   attachment:fixed). clip-path clips fixed descendants; overflow:hidden does not.
   Do not add transform/filter/contain/will-change on this media layer — those
   would make position:fixed act like absolute and kill the stay-put effect.
   Full-viewport cover (top:0) so collapsing the sticky nav does not expose a
   gap; object-position biases down by half the expanded header so framing in
   the band below the nav stays close to centering that band alone. */
@media (min-width: 1025px) {
  .block-page-hero--fixed > .block-page-hero__media {
    clip-path: inset(0);
  }

  .block-page-hero--fixed > .block-page-hero__media > .block-page-hero__image {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center calc(50% + var(--header-height) / 2);
    pointer-events: none;
  }
}

/* Legacy PageHeroBlock Height=auto (is-auto): banner height follows image aspect ratio. */
.block-page-hero--auto {
  display: block;
}

.block-page-hero--auto .block-page-hero__media {
  position: static;
}

.block-page-hero--auto .block-page-hero__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
}

.block-page-hero--auto .block-page-hero__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Easter blog: legacy is-auto height is the title band (3rem + title + 3rem), not the image ratio. */
.blog-page .block-page-hero--title-fit .block-page-hero__media {
  position: absolute;
  inset: 0;
}

.blog-page .block-page-hero--title-fit .block-page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.blog-page .block-page-hero--title-fit .block-page-hero__body {
  position: relative;
  padding: 3rem;
}

/* Legacy auto heroes with ultra-wide strip backgrounds (e.g. divider-line-midnight):
   background-size cover on a ~405px band, not natural 12px img height. */
.block-page-hero--auto.block-page-hero--auto-cover {
  min-height: min(45vh, 405px);
}

.block-page-hero--auto-cover .block-page-hero__media {
  position: absolute;
  inset: 0;
}

.block-page-hero--auto-cover .block-page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Title-only page heroes (legacy NewsPage when PageHeroID unset). */
.block-page-hero:not(:has(.block-page-hero__media)) {
  background-color: #b0b5bc;
}

.block-page-hero--band:not(:has(.block-page-hero__media)),
.block-page-hero--fixed:not(:has(.block-page-hero__media)),
.block-page-hero--file:not(:has(.block-page-hero__media)) {
  background-color: transparent;
}

/* Same file the legacy banner paints, without its tall hero box. */
.block-page-hero--file {
  display: block;
}

/* Need to Know: legacy covers Header-NTK at the file's own ratio (up to 566px).
   A 1920×520 fill crops into the lighter centre oval. */
.content-page .block-page-hero--ntk {
  min-height: 0;
  height: clamp(256px, 39.3vw, 566px);
}

.block-page-hero--large {
  min-height: min(75vh, 560px);
}

.block-page-hero--small {
  min-height: min(40vh, 320px);
}

/* Legacy NewsPage Height=fullheight (ClassicPageHeroBlock). */
.block-page-hero--fullheight {
  min-height: calc(100vh - 117px);
}

@media (max-width: 768px) {
  .block-page-hero--fullheight {
    min-height: 0;
  }
}

.block-page-hero__media {
  position: absolute;
  inset: 0;
}

.block-page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Article heroes use legacy ScaleWidth + top crop — keeps logo/strapline art in frame. */
.blog-page .block-page-hero__image,
.resource-article-page .block-page-hero__image {
  object-position: center top;
}

/* Full-height article heroes — legacy background-position:center. */
.blog-page .block-page-hero--fullheight .block-page-hero__image,
.resource-article-page .block-page-hero--fullheight .block-page-hero__image {
  object-position: center center;
}

/* Portrait PageHero photos — legacy background-position:center shows the subject row. */
.blog-page .block-page-hero__image--portrait,
.resource-article-page .block-page-hero__image--portrait,
/* Square ScaleWidth banners — legacy background-position:center (not top). */
.blog-page .block-page-hero__image--square,
.resource-article-page .block-page-hero__image--square {
  object-position: center center;
}

/* Landscape photo heroes that legacy centers (background-position:center). */
.blog-page .block-page-hero__image--center {
  object-position: center center;
}

/* Isabella: center crop sits about 1/6 of the banner too high. */
.blog-page .block-page-hero__image--isabella {
  object-position: center calc(50% + min(9.5vh, 86.67px));
}

/* Emily: legacy medium hero is shorter than min(57vh, 520px). */
.blog-page .block-page-hero--compact {
  min-height: 400px;
  height: 400px;
}

.block-page-hero__body {
  position: relative;
  width: 100%;
  padding: 4rem 1rem;
}

.block-page-hero--tint .block-page-hero__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.block-page-hero__title {
  margin: 0;
  color: var(--colour-white);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 1.1;
}

.block-page-hero__subtitle {
  margin: 0.5rem 0 0;
  color: var(--colour-white);
  font-size: clamp(1.25rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  font-weight: 400;
}

/* Inner pages — typography from legacy #main rules */
.content-page section,
.home-page section {
  padding: var(--section-padding);
}

.content-page section.block-hero-carousel,
.content-page section.block-page-hero,
.home-page section.block-hero-carousel,
.home-page section.block-page-hero {
  padding: 0;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4,
.content-page h5,
.content-page p,
.content-page li {
  font-weight: 400;
}

.content-page h3,
.content-page h4 {
  font-weight: 500;
}

.content-page h3 {
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--colour-purple);
}

.content-page h5.text-center,
.content-page h5 .title.is-3 {
  font-size: 26px;
  color: var(--colour-purple);
}

.content-page p {
  font-size: 20px;
}

.content-page .text-center {
  text-align: center;
}

/* Service/icon images only — not YouTube/media embed wrappers (legacy leftAlone). */
.content-page .leftAlone:not(iframe):not(.embed):not(.captionImage):not(.caption),
.content-page img.leftAlone,
.content-page .block-plain-content .richtext-image.left,
.content-page .block-plain-content h3 img,
.content-page .block-plain-content h3 .richtext-image.left {
  float: none;
  display: block;
  margin: 0;
  height: 60px;
  width: auto;
  max-width: 91px;
}

/* Spend-based heading icon: legacy ResizedImage 80×80, not the 125px checklist size. */
.content-page .block-plain-content p:has(> img.richtext-image.icon[src*="carbon-v2"]) > img.richtext-image.icon {
  display: block;
  width: 80px;
  height: 80px;
  max-width: 80px;
  margin: 0 0 0.75rem;
  object-fit: contain;
}

.content-page div.embed,
.content-page div.ss-htmleditorfield-file.embed,
.content-page .block-article-content__body div.embed {
  float: none;
  display: block;
  width: 100%;
  max-width: min(900px, 100%);
  height: auto;
  margin: 1.5rem 0;
  clear: both;
}

.content-page iframe.embed,
.content-page iframe.embed-iframe,
.content-page iframe.leftAlone,
.content-page div.embed iframe,
.content-page .block-article-content__body iframe {
  float: none;
  display: block;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  margin: 0;
}

.content-page .youtube-embed {
  position: relative;
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 1.5rem 0;
  padding: 0;
}

.content-page .youtube-embed__poster {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  overflow: hidden;
}

.content-page .youtube-embed__poster-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.content-page .youtube-embed__poster::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 0, 0, 0.9);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.content-page .youtube-embed__poster::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-42%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  pointer-events: none;
}

.content-page .vimeo-embed__poster::before {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  background: rgba(26, 189, 246, 0.95);
}

.content-page .youtube-embed iframe {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  border: 0;
  pointer-events: none;
}

.content-page .youtube-embed.is-active iframe {
  position: static;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  pointer-events: auto;
}

.content-page .youtube-embed.is-active .youtube-embed__poster {
  display: none;
}

/* Webinar replay: legacy WebinarPage Video → fullscreen-video block */
.content-page .fullscreen-video {
  width: 100%;
  overflow: hidden;
}

.content-page .fullscreen-video .youtube-embed.ss-htmleditorfield-file.embed,
.content-page .fullscreen-video div.ss-htmleditorfield-file.embed {
  position: relative;
  float: none;
  clear: both;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  padding-top: 56.25%;
}

.content-page .fullscreen-video .youtube-embed__poster {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background-size: cover;
  background-position: center;
}

.content-page .fullscreen-video .youtube-embed iframe,
.content-page .fullscreen-video .youtube-embed.is-active iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
}

@media screen and (min-width: 960px) {
  .content-page .fullscreen-video .youtube-embed.ss-htmleditorfield-file.embed,
  .content-page .fullscreen-video div.ss-htmleditorfield-file.embed {
    padding-top: 0;
    height: calc(100vh - 117px);
  }
}

/* Capture: poster thumbnail is reliable in headless screenshots; iframes often paint blank. */
html.wmigration-capture .content-page .youtube-embed .youtube-embed__poster {
  display: block !important;
  position: relative;
}

html.wmigration-capture .content-page .youtube-embed iframe {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}


/* Wide diagrams in plain content (not service listing icons) */
.content-page .block-plain-content img.leftAlone[width]:not(.center),
.content-page .block-plain-content .richtext-image.full-width,
.content-page .block-plain-content .richtext-image.fullwidth {
  max-width: min(var(--plain-content-max), 100%);
  width: 100%;
  height: auto;
}

/* Mid-size leftAlone photos (photo200–photo800). Not the 60×91 icon or 100% diagram rules. */
.content-page .richtext-image.photo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-left: 0;
  margin-right: auto;
}

/* Services listing — icon directly above title, no gap */
.content-page .block-plain-content p:has(.richtext-image.left),
.content-page .block-plain-content p:has(img.leftAlone) {
  margin: 0;
  line-height: 0;
}

.content-page .block-plain-content p:has(.richtext-image.left) + h3,
.content-page .block-plain-content p:has(img.leftAlone) + h3 {
  margin-top: 0;
}

.content-page .block-plain-content h3:has(img),
.content-page .block-plain-content h3:has(.richtext-image) {
  margin-top: 0;
  line-height: 1.2;
}

.content-page .block-plain-content .button,
.content-page .block-plain-content a .button {
  margin-top: 0.5rem;
}

/* Title + content side by side (legacy title-content-side-by-side) */
.block-side-by-side,
.block-bulletpoints {
  padding: 3rem 0;
}

/* Glossary A–Z in-page anchors (clear fixed header) */
.block-bulletpoints[id^="Glossary"] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (min-width: 1024px) {
  .block-side-by-side,
  .block-bulletpoints {
    padding: 6.25rem 0 5rem;
  }
}

.block-side-by-side__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.block-side-by-side__title-col {
  flex: 0 0 100%;
  max-width: 100%;
}

.block-side-by-side__content-col {
  flex: 1 1 0;
  min-width: min(100%, 280px);
}

@media (min-width: 769px) {
  .block-side-by-side__title-col {
    flex: 0 0 calc(33.333% - 1.35rem);
    max-width: calc(33.333% - 1.35rem);
  }

  .block-side-by-side__content-col {
    flex: 0 0 calc(66.666% - 1.35rem);
    max-width: calc(66.666% - 1.35rem);
  }
}

.block-side-by-side__title {
  font-size: clamp(1.75rem, 4vw, 3.375rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--colour-purple);
}

.block-side-by-side__content {
  color: var(--colour-purple);
  font-size: 20px;
}

.block-side-by-side__content p,
.block-side-by-side__content li {
  font-size: 20px;
}

/* Title + content + image + CTA (legacy title-content-cta-image-block) */
.block-title-content-cta-image {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .block-title-content-cta-image {
    padding: 6.25rem 0 5rem;
  }
}

.block-title-content-cta-image__image {
  margin-top: 2rem;
  text-align: center;
}

.block-title-content-cta-image__image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.block-title-content-cta-image__image--bordered img {
  border: 1px solid var(--colour-grey-mid, #ccc);
}

.block-title-content-cta-image__cta {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Guard: legacy import must not use compact image_content flex layout */
.block-image-content.title-content-cta-image-block .block-image-content__inner {
  display: block;
}

.block-image-content.title-content-cta-image-block .block-image-content__image {
  flex: none;
  max-width: 100%;
  margin-top: 2rem;
  text-align: center;
}

.block-image-content.title-content-cta-image-block .block-image-content__image img {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* FAQ / bulletpoints — collapsible accordion */
.block-bulletpoints__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.block-bulletpoints__trigger {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.block-bulletpoints__item:not(:last-child) {
  margin-bottom: 20px;
}

.block-bulletpoints__trigger:hover .block-bulletpoints__question,
.block-bulletpoints__trigger:focus-visible .block-bulletpoints__question {
  text-decoration: underline;
}

.block-bulletpoints__trigger:focus-visible {
  outline: 2px solid var(--colour-purple);
  outline-offset: 2px;
}

.block-bulletpoints__toggle {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: calc((24px * 1.3 - 1.25rem) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--colour-purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.block-bulletpoints__toggle::before {
  content: "+";
}

.block-bulletpoints__item.is-open .block-bulletpoints__toggle::before {
  content: "\2212";
}

.block-bulletpoints__question {
  flex: 1 1 0;
  min-width: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: var(--colour-purple);
}

.block-bulletpoints__answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  padding-left: calc(1.25rem + 0.75rem);
  transition: grid-template-rows 0.35s ease;
}

.block-bulletpoints__item.is-open .block-bulletpoints__answer-wrapper {
  grid-template-rows: 1fr;
}

.block-bulletpoints__answer-inner {
  overflow: hidden;
}

.block-bulletpoints__answer {
  color: var(--colour-purple);
  font-size: 20px;
  padding-bottom: 1rem;
}

.block-bulletpoints__answer p {
  margin: 0 0 0.75rem;
}

.block-bulletpoints__answer p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .block-bulletpoints__answer-wrapper {
    transition: none;
  }
}

/* Grid variants — thumbnail (case studies) and profile (experts) */
.block-grid .block-grid__title--fullwidth {
  width: 100%;
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.block-grid__header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.block-grid__header-title {
  flex: 0 0 100%;
  max-width: 100%;
}

.block-grid__header-content {
  flex: 1 1 0;
  min-width: min(100%, 280px);
  font-size: 20px;
  color: var(--colour-purple);
  text-align: left;
}

.block-grid__header-content a {
  text-decoration: none;
}

@media (min-width: 769px) {
  .block-grid__header-title {
    flex: 0 0 calc(33.333% - 1.35rem);
    max-width: calc(33.333% - 1.35rem);
  }

  .block-grid__header-title .block-grid__title {
    margin-bottom: 0;
  }

  .block-grid__header-content {
    flex: 0 0 calc(66.666% - 1.35rem);
    max-width: calc(66.666% - 1.35rem);
  }
}

.block-grid__cta {
  margin: 2.5rem 0 0;
  text-align: center;
}

.block-grid__cta .button {
  display: inline-block;
}

.grid-card--thumbnail,
.grid-card--thumbnail-stacked,
.grid-card--profile {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  min-width: 0;
}

.grid-card__thumb {
  margin-bottom: 1.5rem;
}

.grid-card__thumb-image {
  display: block;
  width: 100%;
  height: auto;
}

.grid-card--thumbnail .grid-card__title {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
}

.grid-card--thumbnail .grid-card__title a {
  color: var(--colour-purple-electric);
  text-decoration: none;
}

/* Legacy has-thumbnail cards: thumb link + inner body link wrapping h3 + content */
.grid-card--thumbnail-stacked .grid-card__body-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.block-grid .grid-card--thumbnail-stacked .grid-card__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 31px;
  margin: 0;
  color: var(--colour-purple);
}

.block-grid .grid-card--thumbnail-stacked .grid-card__body-link .grid-card__title {
  color: var(--colour-purple-electric);
}

.grid-card--thumbnail-stacked .grid-card__body-link .grid-card__content {
  color: var(--colour-purple);
}

.grid-card--thumbnail-stacked .grid-card__title a,
.grid-card--thumbnail-stacked .grid-card__body-link .grid-card__title a {
  color: var(--colour-purple-electric);
  font-weight: 500;
  text-decoration: none;
}

.grid-card--profile .grid-card__content {
  font-size: 20px;
}

/* GridItem HTML embeds (no IconType): legacy captionImage uses fixed 600px width. */
.block-grid .grid-card__content .captionImage {
  max-width: 100%;
  width: auto !important;
  margin: 0;
}

.block-grid .grid-card__content .captionImage.leftAlone {
  float: none;
  clear: none;
  margin-right: 0;
}

.block-grid .grid-card__content .captionImage img,
.block-grid .grid-card__content .captionImage .richtext-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0;
}

.block-grid .grid-card__content .captionImage .caption {
  max-width: 100%;
  width: auto;
  margin: 0.5rem 0 0;
  font-style: italic;
  color: var(--colour-purple);
  line-height: 1.4;
}

.block-grid .grid-card__content .captionImage .caption.leftAlone {
  float: none;
}

@media (max-width: 959px) {
  .grid-card--thumbnail,
  .grid-card--thumbnail-stacked,
  .grid-card--profile {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 767px) {
  .grid-card--thumbnail,
  .grid-card--thumbnail-stacked,
  .grid-card--profile {
    flex: 0 0 100%;
  }
}

/* Photo grids ("You may find these helpful", photo-and-title cards, and a mixed
   row in the same block). Legacy uses a 1088px container and Bulma
   columns.is-variable.is-6, so each column is 331px with 48px between them.
   Sections that should match without a photo card are marked block-grid--narrow-columns. */
@media (min-width: 960px) {
  .block-grid:has(.grid-card--thumbnail, .grid-card--thumbnail-stacked) > .container,
  .block-grid.block-grid--narrow-columns > .container {
    max-width: 1088px;
    padding-inline: 0;
  }

  .block-grid:has(.grid-card--thumbnail, .grid-card--thumbnail-stacked) .grid-cards,
  .block-grid.block-grid--narrow-columns .grid-cards {
    column-gap: 3rem;
  }

  .block-grid:has(.grid-card--thumbnail, .grid-card--thumbnail-stacked) .grid-cards > .grid-card,
  .block-grid.block-grid--narrow-columns .grid-cards > .grid-card {
    flex-basis: calc((100% - 6rem) / 3);
  }

  .block-grid:has(.grid-card--thumbnail, .grid-card--thumbnail-stacked) .block-grid__header,
  .block-grid.block-grid--narrow-columns .block-grid__header {
    column-gap: 3rem;
  }

  .block-grid:has(.grid-card--thumbnail, .grid-card--thumbnail-stacked) .block-grid__header-title,
  .block-grid.block-grid--narrow-columns .block-grid__header-title {
    flex-basis: calc((100% - 6rem) / 3);
    max-width: calc((100% - 6rem) / 3);
  }

  .block-grid:has(.grid-card--thumbnail, .grid-card--thumbnail-stacked) .block-grid__header-content,
  .block-grid.block-grid--narrow-columns .block-grid__header-content {
    flex-basis: calc((100% - 6rem) * 2 / 3 + 3rem);
    max-width: calc((100% - 6rem) * 2 / 3 + 3rem);
  }

  /* Benefits and intro-span grids use their own columns, so the flex rule above does not size them. */
  .block-grid.block-grid--benefits.block-grid--narrow-columns .grid-cards.grid-cards--benefits,
  .block-grid.block-grid--narrow-columns .grid-cards.grid-cards--intro-cell {
    column-gap: 3rem;
  }
}

/* Content-only grids (empty title column) keep the body in the right column.
   768–959px is is-6 / is-6; from 960px it is is-4 / is-8. */
.block-grid__content h2 {
  font-size: 54px;
  font-weight: 400;
  line-height: 1.125;
  margin: 0 0 0.5714em;
}

@media (min-width: 769px) and (max-width: 959px) {
  .block-grid.block-grid--narrow-columns:not(:has(.grid-cards)) > .container > .block-grid__content {
    margin-left: calc((100% + 1.5rem) / 2);
    width: calc((100% + 1.5rem) / 2 - 1.5rem);
  }
}

@media (min-width: 960px) and (max-width: 1024px) {
  .block-grid.block-grid--narrow-columns:not(:has(.grid-cards)) > .container > .block-grid__content {
    margin-left: calc((100% + 1.5rem) / 3);
    width: calc((100% + 1.5rem) * 2 / 3 - 1.5rem);
  }
}

@media (min-width: 1025px) {
  .block-grid.block-grid--narrow-columns:not(:has(.grid-cards)) > .container > .block-grid__content {
    margin-left: calc((100% + 3rem) / 3);
    width: calc((100% + 3rem) * 2 / 3 - 3rem);
  }
}

@media (max-width: 1023px) {
  .block-grid.block-grid--narrow-columns:not(:has(.grid-cards)) > .container {
    max-width: none;
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .block-grid.block-grid--narrow-columns:not(:has(.grid-cards)) > .container {
    max-width: 960px;
    padding-inline: 0;
  }
}

@media (min-width: 1152px) {
  .block-grid.block-grid--narrow-columns:not(:has(.grid-cards)) > .container {
    max-width: 1088px;
    padding-inline: 0;
  }
}

/* Blog index listing */
.block-blog-listing {
  padding: 3rem 0;
}

.content-page section.block-blog-listing--events,
.home-page section.block-blog-listing--events {
  padding: 50px 0 40px;
}

/* Legacy views-block title: 54px, left. Insights listings use this too. */
.block-blog-listing__title--event {
  font-size: 54px;
  font-weight: 400;
  line-height: 1.125;
  margin: 0 0 28px;
  text-align: left;
  color: var(--colour-purple);
}

@media (max-width: 768px) {
  .content-page section.block-blog-listing--events,
  .home-page section.block-blog-listing--events {
    padding: 24px 0;
  }
}

.block-blog-listing__cta,
.block-blog-listing__actions {
  margin: 2.5rem 0 0;
  text-align: center;
}

.block-blog-listing__load-more[hidden] {
  display: none !important;
}

/* Legacy webinar intro is a half-padded band with only the events button. */
.resource-index-page--webinar .block-plain-content {
  padding: 50px 0 40px;
}

.resource-index-page--webinar .block-plain-content__cta {
  margin-top: 0;
}

.block-blog-search {
  margin-bottom: 2.5rem;
}

/* Team directory search. Legacy search-filter uses a centered 6/12 column (~412px). */
.block-blog-search--joined,
.block-blog-search[data-team-filter] {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.block-blog-search--joined .block-blog-search__controls,
.block-blog-search[data-team-filter] .block-blog-search__controls {
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
}

.block-blog-search--joined .block-blog-search__input,
.block-blog-search[data-team-filter] .block-blog-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 5px 0 0 5px;
}

.block-blog-search--joined .block-blog-search__button,
.block-blog-search[data-team-filter] .block-blog-search__button {
  min-width: 3rem;
  margin-left: -1px;
  padding: 0 1rem;
  border-radius: 0 5px 5px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.block-blog-search--joined .block-blog-search__icon,
.block-blog-search[data-team-filter] .block-blog-search__icon {
  display: block;
}

.block-blog-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.block-blog-search__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.block-blog-search__input {
  flex: 1 1 16rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(43, 40, 105, 0.25);
  border-radius: 4px;
  font: inherit;
  color: var(--colour-purple);
}

.block-blog-search__button {
  min-width: 8rem;
}

.search-block__section {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--colour-purple);
}

.search-block__result h4 {
  margin-top: 0;
}

.team-listing-filter__clear {
  width: 100%;
  max-width: 500px;
  margin: -1.5rem auto 2.5rem;
}

.team-listing-filter__clear a {
  color: var(--colour-purple);
}

.team-listing-filter__empty {
  width: 100%;
  max-width: 500px;
  margin: -1.5rem auto 2.5rem;
}

.team-listing-filter__clear[hidden],
.team-listing-filter__empty[hidden] {
  display: none;
}

.block-blog-listing__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 1.5rem;
}

.blog-card {
  flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--colour-white);
  border: 1px solid rgba(43, 40, 105, 0.12);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(43, 40, 105, 0.08);
  overflow: hidden;
}

.blog-card.is-hidden {
  display: none;
}

.case-study-card.is-hidden {
  display: none;
}

/* Events / webinar-replay listings: 3 wider cards */
.block-blog-listing__grid--three .blog-card {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
}

.blog-card__thumb {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.blog-card__thumb a {
  display: block;
}

.blog-card__thumb-image {
  display: block;
  width: 100%;
  height: auto;
}

.blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.25rem;
}

.blog-card__title {
  /* Legacy resource-item title. */
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.blog-card__title a {
  color: var(--colour-purple-electric);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--colour-purple-bright);
}

.blog-card__summary {
  margin: 0 0 1.25rem;
  font-size: 16px;
  line-height: 1.5;
  color: var(--colour-purple);
  flex: 1 1 auto;
}

/* .content-page p is 20px. Card summaries stay at the legacy resource-item size. */
.content-page .blog-card__summary {
  font-size: 16px;
}

.blog-index-page .blog-card__summary {
  font-size: 16px;
}

.blog-card__link {
  margin: auto 0 0;
  padding-top: 0.5rem;
  text-align: center;
}

/* a. prefix beats .bg-white a (Our impact and other white sections). */
a.blog-card__read-more {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--colour-purple);
  color: var(--colour-white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

a.blog-card__read-more:hover {
  background: var(--colour-purple-bright);
  color: var(--colour-white);
}

@media (max-width: 1215px) {
  .blog-card {
    flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  }
}

@media (max-width: 959px) {
  .blog-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }

  .block-blog-listing__grid--three .blog-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 767px) {
  .blog-card {
    flex: 0 0 100%;
  }

  .block-blog-listing__grid--three .blog-card {
    flex: 0 0 100%;
  }
}

/* Blog / resource article body (legacy news-content) */
.content-page section.block-article-content {
  padding: 3rem 0 6.25rem; /* legacy default padding-bottom: 100px */
}

@media (min-width: 1024px) {
  .content-page section.block-article-content {
    padding-top: 100px;
  }
}

/* Legacy news-content:not(:last-child) + .section { margin-top: -50px } */

.content-page section.block-article-content.bg-white + .block-grid.bg-purple-lite {
  margin-top: -50px;
  position: relative;
  z-index: 1;
}

.block-article-content__column > h1.title.is-2 {
  max-width: var(--plain-content-max);
  margin: 0 auto;
  padding: 12px 24px 0;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.125;
  color: #363636;
}

.block-article-content__body .article-byline {
  font-style: italic;
}

/* Event articles: byline at top of first post-hero plain_content (not a
   full block-article-content section — that padding looked like a gap). */
.block-plain-content__content > .article-byline {
  font-style: italic;
  margin: 0 0 1.5rem;
}

.block-event-byline {
  padding: 2rem 0 0;
}

.block-event-byline__inner {
  max-width: var(--plain-content-max);
  margin-inline: auto;
  padding: 0 24px;
}

.block-event-byline .article-byline {
  font-style: italic;
  margin: 0;
}

.block-article-content__body {
  max-width: var(--plain-content-max);
  margin-inline: auto;
  font-size: 20px;
  /* Legacy news-content .article-content.column { padding: 12px 24px } */
  padding: 12px 24px;
}

/* No-quote blogs/reports/case studies: centered reading column via
   .block-article-content__body (max-width: --plain-content-max). Former
   empty-track offset-4 mimic removed so text is not pushed right. */

/* Retired: .block-article-content--legacy-wide (1088px) from hide_excerpt.
@media (min-width: 1024px) {
  .blog-page .block-article-content--legacy-wide .block-article-content__body,
  .resource-article-page .block-article-content--legacy-wide .block-article-content__body {
    max-width: 1088px;
    padding-inline: 0;
  }
}
*/

/* Retired: Gorilla Word-pasted quotes used oversized h2/h4.MsoNormal.text-center.
   Convert those blocks to Content quote / Quote credit in Draftail instead. */

/* Embodied-carbon timeline slices should meet with no gap. */
.page-embodied-carbon-timeline .block-plain-content__content p:has(.richtext-image.full-width),
.page-embodied-carbon-timeline .block-plain-content__content p:has(.richtext-image.fullwidth) {
  margin: 0;
  line-height: 0;
}

.page-embodied-carbon-timeline .block-plain-content__content p:has(.richtext-image.full-width) br,
.page-embodied-carbon-timeline .block-plain-content__content p:has(.richtext-image.fullwidth) br {
  display: none;
}

.page-embodied-carbon-timeline .block-plain-content a:has(> .richtext-image.full-width),
.page-embodied-carbon-timeline .block-plain-content a:has(> .richtext-image.fullwidth) {
  display: block;
  line-height: 0;
  font-size: 0;
}

.page-embodied-carbon-timeline .richtext-image.full-width,
.page-embodied-carbon-timeline .richtext-image.fullwidth {
  display: block;
  margin: 0;
  width: 100%;
}

.block-article-content__body h2,
.block-article-content__body h3,
.block-article-content__body h4 {
  /* Legacy news-content .column h3: margin 3rem 0 1.5rem (48px / 24px at 16px root). */
  margin: 3rem 0 1.5rem;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.125;
  color: var(--colour-purple);
}

/* Legacy news-content h5 callout lines (h5 → h3.article-subheading on import).
   h2 and h4 too: a skipped callout is lowered, and the class still carries 26px / 600. */
.block-article-content__body h2.article-subheading,
.block-article-content__body h3.article-subheading,
.block-article-content__body h4.article-subheading {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.125;
  margin: 0 0 1.45rem;
}

/* Legacy news-content h5 link-only promos (h5 → p.article-promo-link on import). */
.block-article-content__body p.article-promo-link {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin: 1.5rem 0 1rem;
}

/* Legacy news-content h6 footer lines with inline links (h6 → p on import). */
.block-article-content__body p.article-footer-link {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.block-article-content__body p.article-footer-link a:not(.button) {
  color: var(--colour-purple-electric);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

/* Legacy news-content h4 continuation links (single anchor — not 36px heading scale). */
.block-article-content__body p.article-continuation-link {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin: 1.5rem 0 1rem;
}

.block-article-content__body p.article-continuation-link a:not(.button) {
  color: var(--colour-purple-electric);
  text-decoration: none;
}

/* Legacy news-content tip callouts (h3.text-center with em Tip one/two/three). */
.block-article-content__body h3.article-tip-heading {
  text-decoration: none;
}

.block-article-content__body p.article-table-heading {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--colour-purple);
}

/* In-article content quotes (Draftail Content quote / Quote credit).
   Also covers legacy p.article-inline-quote from h6>em import. Not left-rail pull quotes. */
.block-article-content__body p.article-content-quote,
.block-article-content__body p.article-inline-quote {
  text-align: center;
  margin: 2.5rem 0 0.5rem;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.5px;
  line-height: 1.45;
  color: #9aa2ac;
}

.block-article-content__body p.article-content-quote-credit {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.35;
  color: #9aa2ac;
}

.block-article-content__body p.article-content-quote + p.article-content-quote {
  margin-top: 0.75rem;
}

.block-article-content__body p,
.block-article-content__body ul,
.block-article-content__body ol {
  margin: 0 0 1.25rem;
  /* Legacy news-content .article-content .content — body matches heading purple, not #666. */
  color: var(--colour-purple);
}

.block-article-content__cta {
  margin: 3rem 0 0;
  text-align: center;
}

.block-article-content__cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 13px 29px;
  line-height: 1.2;
  white-space: normal;
  max-width: 100%;
  text-decoration: none;
  border: none;
}

.block-article-content__cta .button.bg-purple-electric {
  background-color: var(--colour-purple-electric) !important;
  color: rgba(255, 255, 255, 0.8);
}

.block-article-content__cta .button.bg-purple {
  background-color: var(--colour-purple) !important;
  color: rgba(255, 255, 255, 0.8);
}

.block-article-content__cta .button.bg-purple:hover,
.block-article-content__cta .button.bg-purple:focus-visible,
.block-article-content__cta .button.bg-purple-electric:hover,
.block-article-content__cta .button.bg-purple-electric:focus-visible {
  color: #fff;
}

.block-article-content__cta button.button {
  font-family: inherit;
  cursor: pointer;
}

.block-article-content__body img,
.block-article-content__body .richtext-image,
.block-article-content__body table,
.block-article-content__body iframe,
.block-article-content__body video,
.block-article-content__body .embed,
.block-article-content__body .ss-htmleditorfield-file.embed {
  max-width: 100%;
  height: auto;
}

.block-article-content__body table {
  width: 100%;
}

/* Legacy news-content: p img.center (intrinsic/editor width, centered — not full column). */
.block-article-content__body .richtext-image.center {
  display: block;
  float: none;
  clear: both;
  margin-inline: auto;
  width: auto;
  max-width: min(676px, 100%);
  height: auto;
}

/* Legacy leftAlone block logos/diagrams — block-level, left-aligned (not full column). */
.block-article-content__body p:not(.text-center) > .richtext-image.center {
  margin-inline: 0;
}

.block-article-content__body p:has(> .richtext-image.center) {
  text-align: center;
}

/* Standalone article diagrams (p>img.center only) — legacy news-content block, centered. */
.block-article-content__body p:has(> .richtext-image.center:only-child) > .richtext-image.center {
  margin-inline: auto;
}

/* Green Gorilla numbers graphic: legacy leftAlone 800×506, flush with the text column. */
.resource-article-page .block-article-content--gorilla .block-article-content__body h3.MsoNormal > img.richtext-image.center,
.resource-article-page .block-article-content--gorilla .block-article-content__body h4.MsoNormal > img.richtext-image.center {
  display: block;
  width: 800px;
  max-width: 100%;
  height: auto;
  margin: 0;
  float: none;
}

/* Isabella spotlight photos: legacy leftAlone 800×343, flush with the text column. */
.blog-page .block-article-content--isabella-photos .block-article-content__body p:has(> .richtext-image.center:only-child) {
  text-align: left;
}

.blog-page .block-article-content--isabella-photos .block-article-content__body p:has(> .richtext-image.center:only-child) > .richtext-image.center {
  width: 800px;
  max-width: 100%;
  height: auto;
  margin-inline: 0;
}

/* Infrastructure Australia news: legacy leftAlone photos sit on the left of the column.
   Linked thumbs keep the editor width (307px), not the 500px center rendition. */
.blog-page .block-article-content--ia-report .block-article-content__body p:has(.richtext-image) {
  text-align: left;
}

.blog-page .block-article-content--ia-report .block-article-content__body .richtext-image.center,
.blog-page .block-article-content--ia-report .block-article-content__body p:has(> .richtext-image.center:only-child) > .richtext-image.center {
  margin-left: 0;
  margin-right: auto;
}

.blog-page .block-article-content--ia-report .block-article-content__body a:has(> .richtext-image) {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.blog-page .block-article-content--ia-report .block-article-content__body a > .richtext-image.center {
  width: 307px;
  max-width: 100%;
  height: auto;
}

/* Webinar replay promos: thumbnail JPEG includes a top-right badge; reinforce in DOM so
   section capture downscaling keeps “Webinar” legible (legacy news-content → /resrc/webinars/). */
.block-article-content__body a[href*="/resrc/webinars/"]:has(.richtext-image),
.block-article-content__body a[href*="/resrc/webinars/"]:has(img) {
  display: inline-block;
  position: relative;
  line-height: 0;
  vertical-align: top;
}

.block-article-content__body a[href*="/resrc/webinars/"]:has(.richtext-image)::after,
.block-article-content__body a[href*="/resrc/webinars/"]:has(img)::after {
  content: "Webinar";
  position: absolute;
  /* Baked-in badge sits on the photo half (~480–576×15–39 in 600×274 editor thumbs). */
  top: 5.5%;
  right: 4%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16.2%;
  height: 9.1%;
  background: rgb(67, 77, 78);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 767px) {
  .block-article-content__body a[href*="/resrc/webinars/"]:has(.richtext-image)::after,
  .block-article-content__body a[href*="/resrc/webinars/"]:has(img)::after {
    font-size: clamp(8px, 2.8vw, 11px);
  }
}

/* Legacy news-content interview images (ss-htmleditorfield class="left|right"). */
.block-article-content__body .richtext-image.left {
  float: left;
  margin: 0 1.5rem 1rem 0;
  /* Legacy news-content serves editor-width logos/diagrams at intrinsic px — not 48% column cap. */
  max-width: min(453px, 100%);
  width: auto;
  height: auto;
}

/* Legacy h5 image-only blocks (import → p > img.left) — block below preceding text, not float-up. */
.block-article-content__body p:has(> .richtext-image.left:only-child) {
  clear: both;
}

.block-article-content__body p:has(> .richtext-image.left:only-child) > .richtext-image.left {
  float: none;
  display: block;
  margin: 0 0 1rem;
}

/*
 * Mid-article award / badge rows: wider than the reading column, image + copy
 * side by side, tight vertical rhythm (legacy floated .left badges).
 */
.block-article-content__body :is(h2, h3, h4):has(+ .article-award-breakout) {
  margin-bottom: 0.75rem;
}

.block-article-content__body .article-award-breakout {
  --award-breakout-width: min(1088px, calc(100vw - 3rem));
  width: var(--award-breakout-width);
  max-width: none;
  margin: 0.25rem 0 1.25rem;
  margin-inline: calc(50% - (var(--award-breakout-width) / 2));
}

.block-article-content__body .article-award-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
  margin: 0 0 1.25rem;
}

.block-article-content__body .article-award-row:last-child {
  margin-bottom: 0;
}

.block-article-content__body .article-award-row__media {
  flex: 0 0 auto;
  margin: 0;
  clear: none;
}

.block-article-content__body .article-award-row__media > .richtext-image.left,
.block-article-content__body p.article-award-row__media:has(> .richtext-image.left:only-child) > .richtext-image.left {
  float: none;
  display: block;
  width: 300px;
  max-width: min(300px, 100%);
  height: auto;
  margin: 0;
}

.block-article-content__body .article-award-row__text {
  flex: 1 1 280px;
  min-width: 0;
}

.block-article-content__body .article-award-row__text h3 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

.block-article-content__body .article-award-row__text p {
  margin: 0 0 0.5rem;
}

.block-article-content__body .article-award-row__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .block-article-content__body .article-award-breakout {
    --award-breakout-width: 100%;
    margin-inline: 0;
  }

  .block-article-content__body .article-award-row__media > .richtext-image.left,
  .block-article-content__body p.article-award-row__media:has(> .richtext-image.left:only-child) > .richtext-image.left {
    width: min(300px, 100%);
  }
}

/* NanoLayr case study: SDG 17 mark is a 150×150 leftAlone icon, not the 500px left rendition. */
.resource-article-page .block-article-content--nanolayr .block-article-content__body p:has(> .richtext-image.left:only-child) > .richtext-image.left {
  width: 150px;
  max-width: 100%;
  height: auto;
}

/* Legacy article section icons (~60×60) sit above titles — never float beside them.
   Beats .richtext-image.left float via the extra .article-section-icon / .icon class. */
.block-article-content__body .richtext-image.left.article-section-icon,
.block-article-content__body .richtext-image.icon {
  float: none;
  display: block;
  clear: both;
  width: 60px;
  height: 60px;
  max-width: 60px;
  margin: 3rem 0 0.75rem;
  object-fit: contain;
}

/* Icon-only wrapper (p/h*) immediately before a title heading. */
.block-article-content__body :is(p, h1, h2, h3, h4, h5, h6):has(
    > :is(.article-section-icon, .richtext-image.icon):only-child
  ):has(+ :is(h1, h2, h3, h4, h5, h6)),
.block-article-content__body :is(p, h1, h2, h3, h4, h5, h6):has(
    > :is(span, strong):only-child > :is(.article-section-icon, .richtext-image.icon)
  ):has(+ :is(h1, h2, h3, h4, h5, h6)) {
  margin: 3rem 0 0;
  line-height: 0;
}

.block-article-content__body :is(p, h1, h2, h3, h4, h5, h6):has(
    > :is(.article-section-icon, .richtext-image.icon):only-child
  ):has(+ :is(h1, h2, h3, h4, h5, h6))
  > :is(.article-section-icon, .richtext-image.icon),
.block-article-content__body :is(p, h1, h2, h3, h4, h5, h6):has(
    > :is(span, strong):only-child > :is(.article-section-icon, .richtext-image.icon)
  ):has(+ :is(h1, h2, h3, h4, h5, h6))
  :is(.article-section-icon, .richtext-image.icon) {
  margin: 0 0 0.75rem;
}

.block-article-content__body :is(p, h1, h2, h3, h4, h5, h6):has(
    :is(.article-section-icon, .richtext-image.icon)
  )
  + :is(h1, h2, h3, h4, h5, h6) {
  clear: both;
  margin-top: 0;
}

.block-article-content__body .richtext-image.right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: min(453px, 48%);
  width: auto;
  height: auto;
}

.block-article-content__body::after {
  content: "";
  display: table;
  clear: both;
}

/* Article body links — legacy news-content .bg-white a (purple-electric); no underline. */
.block-article-content__body a:not(.button) {
  color: var(--colour-purple-electric);
  text-decoration: none;
}

.block-article-content__body
  p:not(.article-footer-link):not(.article-post-table-link)
  a:not(.button) {
  text-decoration: none;
}

/* Legacy news-content post-table footnote links (import: p.article-post-table-link). */
.block-article-content__body p.article-post-table-link > a:not(.button) {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

/* Legacy .content strong wins over .content a inside linked bold text. */
.block-article-content__body a:not(.button) strong {
  color: var(--colour-purple);
}

/* Article tables (legacy .content table { table-layout: fixed }). */
.block-article-content__body table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.block-article-content__body table td,
.block-article-content__body table th {
  border: 1px solid rgba(43, 40, 105, 0.2);
  border-width: 0 0 1px;
  padding: 0.5em 0.75em;
  vertical-align: top;
  text-align: left;
}

.block-article-content__body table th {
  font-weight: 700;
}

.block-article-content__body table thead td,
.block-article-content__body table thead th {
  border-bottom-width: 2px;
  padding-top: 0;
}

.block-article-content__body table tbody tr:last-child td,
.block-article-content__body table tbody tr:last-child th {
  /* Legacy .content table tbody tr:last-child td { border-bottom-width: 0 } */
  border-bottom-width: 0;
}

/* Images inside article tables stay inside the cell (legacy max-width: 100%). */
.block-article-content__body table td :is(
  .richtext-image.left,
  .richtext-image.center,
  .richtext-image.full-width,
  .richtext-image.fullwidth,
  .richtext-image.icon,
  img
) {
  float: none;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 0 0.75rem;
}

/* Checklist columns (table.left): equal cells, matching 125px icons and labels. */
.block-article-content__body table.left td :is(
  .richtext-image.left,
  .richtext-image.icon,
  .richtext-image,
  img
) {
  width: 125px;
  height: 125px;
  max-width: 125px;
  object-fit: contain;
}

.block-article-content__body table.left p,
.block-article-content__body table.left li {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.block-article-content__body table.left p.article-table-heading,
.block-article-content__body table.left h3,
.block-article-content__body table.left h6 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  text-decoration: none;
  color: var(--colour-purple);
}

.block-article-content__body table h3:has(> img),
.block-article-content__body table h3:has(> .richtext-image),
.block-article-content__body table h3:has(> embed) {
  margin: 0 0 0.5rem;
}

/* Keep full-width diagrams inside the 768px reading column (no container breakout). */
.block-article-content__body p:has(> .richtext-image.full-width:only-child),
.block-article-content__body p:has(> .richtext-image.fullwidth:only-child),
.block-article-content__body p.fullwidth-in-column:has(> .richtext-image.full-width:only-child),
.block-article-content__body p.fullwidth-in-column:has(> .richtext-image.fullwidth:only-child) {
  width: auto;
  max-width: 100%;
  margin-inline: 0;
}

.block-article-content__body .richtext-image.fullwidth,
.block-article-content__body .richtext-image.full-width {
  display: block;
  float: none;
  clear: both;
  margin-inline: auto;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* Legacy news-content: diagram in p then heading (import unwraps h3>img+title). */
.block-article-content__body p:has(> .richtext-image.full-width),
.block-article-content__body p:has(> .richtext-image.fullwidth) {
  margin-bottom: 0;
}

.block-article-content__body p:has(> .richtext-image.full-width) + :is(h2, h3, h4),
.block-article-content__body p:has(> .richtext-image.fullwidth) + :is(h2, h3, h4),
.block-article-content__body p:has(> .richtext-image.full-width) + p + :is(h2, h3, h4),
.block-article-content__body p:has(> .richtext-image.fullwidth) + p + :is(h2, h3, h4) {
  margin-top: 0.5rem;
}

.block-article-content__body p:has(> .richtext-image.full-width) + p:has(+ :is(h2, h3, h4)),
.block-article-content__body p:has(> .richtext-image.fullwidth) + p:has(+ :is(h2, h3, h4)),
.block-article-content__body p:has(> .richtext-image.center:only-child) + p:has(+ :is(h2, h3, h4)) {
  display: none;
}

.block-article-content__body p:has(> .richtext-image.center:only-child) {
  margin-bottom: 0;
}

.block-article-content__body p:has(> .richtext-image.center:only-child) + :is(h2, h3, h4),
.block-article-content__body p:has(> .richtext-image.center:only-child) + p + :is(h2, h3, h4) {
  margin-top: 0.5rem;
}

/* Legacy captionImage blocks (image + figcaption paragraph). */
.block-article-content__body .captionImage {
  margin: 0;
  max-width: min(676px, 100%);
}

.block-article-content__body .captionImage.leftAlone {
  float: left;
  margin-right: 100%;
}

.block-article-content__body .captionImage.leftAlone + * {
  clear: left;
}

.block-article-content__body .captionImage.rightAlone {
  float: right;
  margin-left: 100%;
}

.block-article-content__body .captionImage.left {
  float: left;
  margin-right: 1.5rem;
}

.block-article-content__body .captionImage.right {
  float: right;
  margin-left: 1.5rem;
}

.block-article-content__body .captionImage.center {
  margin-inline: auto;
  clear: both;
}

.block-article-content__body .captionImage > a {
  display: block;
  line-height: 0;
}

.block-article-content__body .captionImage img,
.block-article-content__body .captionImage .richtext-image {
  display: block;
  float: none;
  clear: none;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0;
}

.block-article-content__body .captionImage .caption {
  height: auto;
  max-width: none;
  width: auto;
  margin: 0.5rem 0 1.25rem;
  font-size: 1em;
  font-style: italic;
  color: var(--colour-purple);
  line-height: 1.4;
}

.block-article-content__body .captionImage .caption-enlarge-hint {
  color: #666;
  white-space: nowrap;
}

.block-article-content__body .captionImage .caption.right {
  text-align: right;
}

.block-article-content__body .captionImage .caption.center {
  text-align: center;
}

/* Case study / resource article with sidebar pull quote */
.block-article-content__layout--with-quote {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
  max-width: var(--container-max);
}

.block-article-content__layout--with-quote .block-article-content__quote {
  grid-column: 1;
}

.block-article-content__layout--with-quote .block-article-content__column {
  grid-column: 2;
  max-width: none;
  margin-inline: 0;
  min-width: 0;
  overflow: visible;
}

.block-article-content__layout--with-quote .block-article-content__body {
  /* Legacy Bulma .column.is-8 outer width (757px) → 709px text after 12px 24px padding. */
  max-width: 757px;
}

.block-article-content__quote {
  /* Static — capture hides sticky nodes (legacy aside__inner is exempt); keeps quote visible. */
  position: static;
  text-align: center;
  color: #9aa2ac;
}

/* Legacy SidebarPos is-sticky: the column is as tall as the article, and .aside__inner
   holds under the header until that section scrolls away. Sticky sits on the inner
   node so capture (which skips sticky elements) still sees the quote. */
.block-article-content__layout--quote-sticky {
  align-items: stretch;
}

.block-article-content__layout--quote-sticky .block-article-content__quote {
  align-self: stretch;
}

.block-article-content__layout--quote-sticky .block-article-content__quote .aside__inner {
  position: sticky;
  top: calc(var(--header-height-collapsed) + 20px);
}

.pull-quote {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
  color: #9aa2ac;
}

.pull-quote__text {
  margin: 0 0 1.25rem;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 2px;
  line-height: 1.6;
  color: #9aa2ac;
}

.pull-quote__text:not(:last-child) {
  margin-bottom: 50px;
}

.pull-quote__credit {
  /* Inline like legacy .creditor-info: "Credit, Title" on one line (wraps only if needed). */
  display: block;
  font-style: normal;
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1.6;
  color: #9aa2ac;
}

.pull-quote__name {
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  color: #9aa2ac;
}

.pull-quote__title {
  font-size: 18px;
  color: #9aa2ac;
}

/* Stack quote above body below desktop; reset grid-column so col 2 does not
   create an implicit second track beside the quote. */
@media (max-width: 1023px) {
  .block-article-content__layout--with-quote {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .block-article-content__layout--with-quote .block-article-content__quote,
  .block-article-content__layout--with-quote .block-article-content__column {
    grid-column: auto;
  }

  .block-article-content__quote,
  .block-article-content__layout--quote-sticky .block-article-content__quote .aside__inner {
    position: static;
  }
}

/* Team profile sticky off on phone only (do not share article 1023 stack). */
@media (max-width: 767px) {
  .block-team-profile__inner--sticky .aside__inner {
    position: static;
  }
}

/* Newsletter promo (single image content block) */
.block-image-content {
  padding: 3rem 0;
}

.block-image-content__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.block-image-content__image {
  flex: 0 0 240px;
}

/* Legacy single-image-content-block: Bulma is-4 image / is-8 body (~⅓ / ⅔). */
.block-image-content__image--medium {
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

.block-image-content__image--medium img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.block-image-content__text {
  flex: 1 1 280px;
  font-size: 20px;
  color: var(--colour-purple);
}

.block-image-content__text a {
  text-decoration: none;
}

.block-image-content__text table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.block-image-content__text table td {
  border-bottom: 1px solid rgba(43, 40, 105, 0.2);
  padding: 0.75rem 0.5rem 0.75rem 0;
  vertical-align: top;
}

.block-image-content__text table tr:first-child td {
  padding-top: 0;
}

.block-image-content__text table tbody tr:last-child td,
.block-image-content__text table tbody tr:last-child th {
  border-bottom-width: 0;
}

/* Legacy #main h2: 54px / 400, with Bulma .title line-height 1.125 and 1.5rem bottom margin. */
.block-image-content__title {
  font-size: 54px;
  font-weight: 400;
  line-height: 1.125;
  margin: 0 0 1.5rem;
  color: var(--colour-purple);
}

/* Legacy #main h4 inside .content: 22px / 500, line-height 1.125, margin-bottom 0.8em.
   The strong inside stays 700, which is how the emissions subheads render. */
.block-image-content__text h4 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.125;
  margin: 0 0 0.8em;
  color: var(--colour-purple);
}

.block-image-content__text h4 strong {
  font-weight: 700;
}

/* Who we are section headings match legacy h2.title at 54px. */
.block-image-content--section-title .block-image-content__title,
.block-content-carousel-cta--section-title .block-content-carousel-cta__title {
  font-size: 54px;
  font-weight: 400;
  line-height: 1.125;
}

/* Imageless single-image-content still reserves Bulma is-4 and puts the body in is-8.
   Gap is 0.75rem through 1024px and 1.5rem above that (live #app override). */
@media (max-width: 1023px) {
  .block-image-content:not(:has(.block-image-content__image)) > .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .block-image-content:not(:has(.block-image-content__image)) > .container {
    max-width: 960px;
    padding-inline: 0;
  }
}

@media (min-width: 1152px) {
  .block-image-content:not(:has(.block-image-content__image)) > .container {
    max-width: 1088px;
  }
}

.block-image-content__inner:not(:has(.block-image-content__image)) {
  display: block;
}

.block-image-content__inner:not(:has(.block-image-content__image)) .block-image-content__text {
  flex: none;
  width: auto;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .block-image-content__inner:not(:has(.block-image-content__image)) .block-image-content__text {
    margin-left: calc((100% + 1.5rem) / 3);
    width: calc((100% + 1.5rem) * 2 / 3 - 1.5rem);
  }
}

@media (min-width: 1025px) {
  .block-image-content__inner:not(:has(.block-image-content__image)) .block-image-content__text {
    margin-left: calc((100% + 3rem) / 3);
    width: calc((100% + 3rem) * 2 / 3 - 3rem);
  }
}

.block-image-content__cta {
  margin: 1.5rem 0 0;
}

.block-image-content__cta .button {
  text-transform: none;
  letter-spacing: normal;
}

/* Case study listing cards — horizontal: date | image | body */
.block-blog-listing__grid--case-study {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.case-study-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto;
  align-items: start;
  column-gap: 1.5rem;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.case-study-card__date {
  grid-column: 1;
  grid-row: 1;
  box-sizing: border-box;
  width: 5.5rem;
  min-width: 5.5rem;
  min-height: 5.5rem;
  margin: 0;
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background-color: #2b2869;
  color: #ffffff;
  text-align: center;
  line-height: 1.1;
}

.case-study-card__date-day,
.case-study-card__date-month,
.case-study-card__date-year {
  display: block;
  color: #ffffff;
}

.case-study-card__date-day {
  font-size: 1.75rem;
  font-weight: 700;
}

.case-study-card__date-month {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
}

.case-study-card__date-year {
  font-size: 0.85rem;
}

.case-study-card__thumb {
  grid-column: 2;
  grid-row: 1;
  width: 16rem;
  min-width: 12rem;
  margin: 0;
  padding: 0;
  line-height: 0;
  align-self: stretch;
}

.case-study-card__thumb a {
  display: block;
  height: 100%;
}

.case-study-card__image {
  display: block;
  width: 16rem;
  max-width: 100%;
  height: 100%;
  min-height: 10rem;
  object-fit: cover;
}

.case-study-card__body {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0;
  align-self: stretch;
}

.case-study-card__title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.case-study-card__title a {
  color: var(--colour-purple);
  text-decoration: none;
}

.case-study-card__title a:hover {
  color: var(--colour-purple-bright);
}

.case-study-card__summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--colour-purple);
  flex: 1 1 auto;
}

.case-study-card__link {
  display: block;
  margin: 1rem 0 0 auto;
  text-align: right;
  width: 100%;
}

.case-study-card__read-more {
  display: inline-block;
  color: var(--colour-purple);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.case-study-card__read-more:hover {
  color: var(--colour-purple-bright);
}

/* Case study index: every thumbnail is the legacy 960×600 frame at 320×200. */
.block-blog-listing__grid--case-study .case-study-card--fixed .case-study-card__thumb {
  width: 320px;
  min-width: 320px;
  height: 200px;
  align-self: start;
}

.block-blog-listing__grid--case-study .case-study-card--fixed .case-study-card__thumb a {
  display: block;
  height: 200px;
}

.block-blog-listing__grid--case-study .case-study-card--fixed .case-study-card__image {
  width: 320px;
  height: 200px;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.case-study-card--fixed .case-study-card__title {
  font-size: 36px;
  font-weight: 500;
}

.case-study-card--fixed .case-study-card__title a,
.case-study-card--fixed .case-study-card__title a:hover,
.case-study-card--fixed .case-study-card__read-more,
.case-study-card--fixed .case-study-card__read-more:hover {
  color: var(--colour-purple-electric);
}

.case-study-card--fixed .case-study-card__read-more {
  font-weight: 400;
}

/* Homepage "Attend an event": full photo, no side crop, legacy link colour. */
.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__thumb {
  width: 320px;
  min-width: 320px;
  align-self: start;
}

.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__thumb a {
  height: auto;
}

.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__image {
  width: 320px;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__title {
  font-size: 36px;
  font-weight: 500;
}

.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__title a,
.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__title a:hover,
.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__read-more,
.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__read-more:hover {
  color: var(--colour-purple-electric);
}

.home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__read-more {
  font-weight: 400;
}

@media (max-width: 767px) {
  .home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__thumb,
  .home-page .block-event-listing:not(.block-event-listing--columns) .case-study-card__image {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .case-study-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .case-study-card__date {
    grid-column: 1;
    grid-row: 1;
  }

  .case-study-card__thumb {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
  }

  .case-study-card__image {
    width: 100%;
  }

  .block-blog-listing__grid--case-study .case-study-card--fixed .case-study-card__thumb,
  .block-blog-listing__grid--case-study .case-study-card--fixed .case-study-card__thumb a {
    width: auto;
    min-width: 0;
    height: auto;
  }

  .block-blog-listing__grid--case-study .case-study-card--fixed .case-study-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
  }

  .case-study-card__body {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Team listing cards — full-bleed photo on top, 3 columns */
.block-blog-listing__grid--team.block-blog-listing__grid--three .blog-card--team,
.block-blog-listing__grid--team .blog-card--team {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.blog-card--team .blog-card__thumb {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.blog-card--team .blog-card__thumb a {
  display: block;
}

.blog-card--team .blog-card__thumb-image {
  border-radius: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-card--team .blog-card__body {
  padding: 1.25rem;
  text-align: center;
}

.blog-card--team .blog-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 550;
  line-height: 1.25;
}

.blog-card--team .blog-card__title a,
.blog-card--team .blog-card__title a:hover {
  color: #2b2869;
  font-weight: 550;
  text-decoration: none;
}

.blog-card--team .blog-card__role {
  margin: 0.25rem 0 0.75rem;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: #2b2869;
}

.blog-card--team .blog-card__summary {
  flex: 0 0 auto;
  margin-bottom: 0.75rem;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: #4a4a4a;
}

.blog-card--team .blog-card__link {
  margin: 0;
  padding-top: 0;
  text-align: center;
}

.blog-card--team a.blog-card__read-more {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--colour-purple-electric);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.blog-card--team a.blog-card__read-more:hover {
  background: none;
  color: var(--colour-purple-bright);
}

@media (max-width: 959px) {
  .block-blog-listing__grid--team .blog-card--team {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 767px) {
  .block-blog-listing__grid--team .blog-card--team {
    flex: 0 0 100%;
  }
}

/* Team member profile — left: photo, name, role, LinkedIn, quote; right: bio + CTA */
.block-team-profile {
  padding: 3rem 0;
}

.block-team-profile__inner {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.block-team-profile__aside {
  min-width: 0;
  text-align: center;
}

/* Same SidebarPos is-sticky behaviour: photo, name, and quote hold inside the profile section. */
.block-team-profile__inner--sticky {
  align-items: stretch;
}

.block-team-profile__inner--sticky .block-team-profile__aside {
  align-self: stretch;
}

.block-team-profile__inner--sticky .aside__inner {
  position: sticky;
  top: calc(var(--header-height-collapsed) + 20px);
}

.block-team-profile__photo {
  margin: 0 0 1.25rem;
  line-height: 0;
}

.block-team-profile__image {
  border-radius: 0;
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.block-team-profile__name {
  margin: 0 0 0.35rem;
  font-size: 22px;
  line-height: 1.2;
  color: var(--colour-purple);
}

.block-team-profile__role {
  font-size: 18px;
  color: var(--colour-purple);
  margin: 0 0 0.75rem;
}

.block-team-profile__linkedin {
  margin: 0 0 1.25rem;
}

.block-team-profile__linkedin a {
  /* Legacy .linkedin-url links use purple-electric like other .bg-white links, not .content bright purple. */
  color: var(--colour-purple-electric);
  text-decoration: none;
}

.block-team-profile__linkedin a:hover,
.block-team-profile__linkedin a:focus {
  color: var(--colour-purple-electric);
  text-decoration: none;
}

/* Legacy news-content aside: .is-circle + .fas.fa-quote-left above excerpt */
.quote-icon-circle {
  border: 1px solid #e2e7ed;
  background-color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  line-height: 1;
  color: #9aa2ac;
}

.quote-icon-circle::before {
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.block-team-profile__quote-icon {
  margin: 0 0 25px;
}

.block-team-profile__quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  color: #9aa2ac;
}

.block-team-profile__details {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.block-team-profile__bio {
  font-size: 18px;
  color: var(--colour-purple);
  flex: 1 1 auto;
}

.block-team-profile__bio p,
.block-team-profile__bio ul {
  margin: 0 0 1rem;
}

/* Legacy news-content aside h6 blog links (h6 → h3 on import) */
.block-team-profile__bio h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.block-team-profile__cta {
  margin: 2rem 0 0;
}

/* Content CTAs always use button--rounded; same radius as base .button (legacy 5px). */
.button.button--rounded {
  border-radius: 5px;
}

@media (max-width: 767px) {
  .block-team-profile__inner {
    grid-template-columns: 1fr;
  }
}

/* Client overview — intro, industry filters, logo grid (5 columns) */
.block-client-overview {
  padding: 3rem 0;
}

.block-client-overview .has-text-centered {
  text-align: center;
}

.block-client-overview__intro {
  max-width: var(--plain-content-max);
  margin: 0 auto 1.5rem;
  font-size: 20px;
  color: var(--colour-purple);
  text-align: center;
}

/* Legacy client intro: h5 at 26px and h6 at 20px, both semibold. */
.block-client-overview__intro p.text-center,
.block-client-overview__intro p.text-center strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.block-client-overview__intro p.plain-content-lead,
.block-client-overview__intro p.plain-content-lead strong {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.block-client-overview__filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
}

.block-client-overview__filter {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.block-client-overview__filter.is-outlined {
  background: transparent;
  color: var(--colour-purple);
  box-shadow: inset 0 0 0 2px var(--colour-purple);
}

.block-client-overview__filter.is-outlined:hover {
  background: var(--colour-purple-lite);
  color: var(--colour-purple);
}

.block-client-overview__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1rem;
  justify-content: flex-start;
  align-items: center;
}

.client-logo-card {
  flex: 0 0 calc((100% - 4 * 1rem) / 5);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 0.75rem;
}

.client-logo-card.is-hidden {
  display: none;
}

.client-logo-card__logo {
  line-height: 0;
}

.client-logo-card__logo a {
  display: block;
}

.client-logo-card__image,
.client-logo-card__logo img {
  display: block;
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.client-logo-card__fallback {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--colour-purple);
}

@media (max-width: 959px) {
  .client-logo-card {
    flex: 0 0 calc((100% - 2 * 1rem) / 3);
  }
}

@media (max-width: 767px) {
  .client-logo-card {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

/* Repeatable image content */
.block-repeatable-image {
  padding: 3rem 0;
}

.block-repeatable-image__title {
  text-align: left;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.125;
  margin: 0 0 1.5rem;
  color: var(--colour-purple);
}

.block-repeatable-image__item {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.block-repeatable-image__media {
  flex: 0 0 280px;
}

.block-repeatable-image__content {
  flex: 1 1 280px;
  font-size: 20px;
  color: var(--colour-purple);
}

.block-repeatable-image__content a:not(.button) {
  color: var(--colour-purple-bright);
  text-decoration: none;
}

.block-repeatable-image__content a:not(.button):hover {
  color: var(--colour-purple-bright);
  text-decoration: none;
}

.content-page .block-repeatable-image__item-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.125;
  margin: 0 0 1.5rem;
  color: var(--colour-purple);
}

/* Legacy repeatable-image: title is offset into the is-8 column; each row is is-4 + is-6. */
@media (max-width: 1023px) {
  .block-repeatable-image > .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .block-repeatable-image > .container {
    max-width: 960px;
    padding-inline: 0;
  }
}

@media (min-width: 1152px) {
  .block-repeatable-image > .container {
    max-width: 1088px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .block-repeatable-image__title {
    margin-left: calc((100% + 1.5rem) / 3);
    width: calc((100% + 1.5rem) * 2 / 3 - 1.5rem);
  }

  .block-repeatable-image__item {
    flex-wrap: nowrap;
    gap: 0;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }

  .block-repeatable-image__media {
    flex: none;
    width: 33.33333%;
    padding: 0 0.75rem;
  }

  .block-repeatable-image__content {
    flex: none;
    width: 50%;
    padding: 0 0.75rem;
  }
}

@media (min-width: 1025px) {
  .block-repeatable-image__title {
    margin-left: calc((100% + 3rem) / 3);
    width: calc((100% + 3rem) * 2 / 3 - 3rem);
  }

  .block-repeatable-image__item {
    flex-wrap: nowrap;
    gap: 0;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .block-repeatable-image__media {
    flex: none;
    width: 33.33333%;
    padding: 0 1.5rem;
  }

  .block-repeatable-image__content {
    flex: none;
    width: 50%;
    padding: 0 1.5rem;
  }
}

.block-repeatable-image__cta {
  text-align: center;
  margin-top: 2rem;
}

.block-repeatable-image__cta .button {
  text-transform: none;
  letter-spacing: normal;
}

/* Repeatable content — legacy Bulma row: heading is one third, body is half. */
.repeatable-content-block .columns.is-variable.is-6 {
  --columnGap: 1.5rem;
}

@media screen and (min-width: 769px) {
  .repeatable-content-block .columns.is-variable {
    display: flex;
    margin-left: calc(-1 * var(--columnGap));
    margin-right: calc(-1 * var(--columnGap));
  }

  .repeatable-content-block .columns.is-variable > .column {
    padding-left: var(--columnGap);
    padding-right: var(--columnGap);
  }

  .repeatable-content-block .column.is-4 {
    flex: none;
    width: 33.33333337%;
  }

  .repeatable-content-block .column.is-6 {
    flex: none;
    width: 50%;
  }
}

.content-page .repeatable-content-block h3.title {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.125;
}

.content-page .repeatable-content-block .content {
  padding-top: 12px;
}

.content-page .repeatable-content-block .content p {
  margin: 0 0 20px;
}

/* Contact block — form matches legacy ContactBlock.vue / styles.css */
.content-page .contact-block .title {
  color: var(--colour-purple);
  font-size: 40px;
}

.content-page .contact-block .title.is-hidden {
  display: none !important;
}

.content-page .contact-block .content {
  margin-bottom: 3rem;
}

.content-page .contact-block__form fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  background: transparent;
}

.content-page .contact-block > .container > .columns > .column.is-8 {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.content-page .contact-block__form .field {
  margin-bottom: 0.75rem;
}

.content-page .contact-block__form .field p {
  font-size: 20px;
  line-height: 2rem;
}

.content-page .contact-block__form .field .control {
  display: block;
}

.content-page .contact-block__form .field .input,
.content-page .contact-block__form .field .textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(21, 41, 68, 0.79);
  color: rgba(249, 249, 249, 0.7);
  font-size: 13px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.content-page .contact-block__form .field .input::placeholder,
.content-page .contact-block__form .field .textarea::placeholder {
  color: rgba(249, 249, 249, 0.7);
  opacity: 1;
}

.content-page .contact-block__form .field .input {
  height: 60px;
}

.content-page .contact-block__form .field .textarea {
  height: 150px;
  resize: vertical;
}

.content-page .contact-block__form .field .checkbox {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--colour-purple);
  position: relative;
  padding-left: 1.5em;
}

.content-page .contact-block__form .field .checkbox input {
  position: absolute;
  top: 0.35em;
  font-size: 20px;
  left: 0;
}

.content-page .contact-block__form .field.actions {
  margin-top: 20px;
  margin-bottom: 0;
}

.content-page .contact-block__form .field.actions .button {
  padding: 13px 29px;
  height: auto;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
}

@media screen and (min-width: 1024px) {
  .content-page .contact-block {
    padding-top: 100px;
    padding-bottom: 80px;
  }
}

.site-messages {
  padding: 1rem 0 0;
}

.site-messages__item {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  background: #e8f6ee;
}

.site-messages__item--error {
  background: #fde8e8;
}

/* Resource gate modal — shared by every download/signup CTA. Field look
   matches the contact form; dialog chrome follows the legacy whitepaper modal. */
.resource-gate[hidden] {
  display: none;
}

.resource-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.resource-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 40, 0.45);
}

.resource-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: #fff;
  padding: 2.5rem 1.5rem 3rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.34);
}

.resource-gate__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: #13131a;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.resource-gate__title {
  margin: 0 2rem 1rem 0;
  color: var(--colour-purple);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.resource-gate__intro {
  margin-bottom: 1.5rem;
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
}

.resource-gate__intro a {
  color: #9661ff;
}

.resource-gate__form .field {
  margin-bottom: 0.75rem;
}

.resource-gate__form .field .control {
  display: block;
}

.resource-gate__form .field .input,
.resource-gate__form .field .textarea,
.resource-gate__form .field select.input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(21, 41, 68, 0.79);
  color: rgba(249, 249, 249, 0.7);
  font-size: 13px;
  font-weight: 400;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.resource-gate__form .field .input::placeholder,
.resource-gate__form .field .textarea::placeholder {
  color: rgba(249, 249, 249, 0.7);
  opacity: 1;
}

.resource-gate__form .field .input,
.resource-gate__form .field select.input {
  height: 60px;
}

.resource-gate__form .field .textarea {
  height: 150px;
  resize: vertical;
}

.resource-gate__form .field select.input {
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.resource-gate__form .field .checkbox,
.resource-gate__form .field .radio {
  display: inline-block;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--colour-purple);
  position: relative;
  padding-left: 1.5em;
  margin-right: 1.25rem;
}

.resource-gate__form .field .checkbox input,
.resource-gate__form .field .radio input {
  position: absolute;
  top: 0.35em;
  left: 0;
  font-size: 20px;
}

.resource-gate__form .field.actions {
  margin-top: 20px;
  margin-bottom: 0;
}

.resource-gate__form .field.actions .button {
  padding: 13px 29px;
  height: auto;
  min-width: 136px;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
}

.resource-gate__ack {
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
}

.resource-gate__ack a {
  color: #9661ff;
}

body.resource-gate-open {
  overflow: hidden;
}
