/*
 * Styles for content imported from the old emc3 theme (ported from style.css + inline block styles).
 * Plain CSS, no build step. Everything is scoped to .legacy-content (frontend wrapper)
 * or .editor-styles-wrapper (block editor, loaded only for posts with legacy content).
 */
/* Old theme palette — old content (inline styles in posts) uses these names */
:is(.legacy-content, .editor-styles-wrapper) {
  --white: #FAFAFC;
  --black: #12151A;
  --purple: #5342EA;
  --orange: #FF6D48;
  --green: #3FFF00;
  --dark-grey: #20262F;
  --transition: all .48s cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Layout ---------- */
:is(.legacy-content, .editor-styles-wrapper) section:not(.wp-emc3-block):not(.widget_block),
:is(.legacy-content, .editor-styles-wrapper) .section {
  padding: 5rem 0;
}
@media screen and (max-width: 39.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) section:not(.wp-emc3-block):not(.widget_block),
:is(.legacy-content, .editor-styles-wrapper) .section {
    padding: 3rem 0;
  }
}

/* ---------- Typography ---------- */
:is(.legacy-content, .editor-styles-wrapper) h1,
:is(.legacy-content, .editor-styles-wrapper) .h1,
:is(.legacy-content, .editor-styles-wrapper) h2,
:is(.legacy-content, .editor-styles-wrapper) .h2 { margin: 0 0 3rem; }
:is(.legacy-content, .editor-styles-wrapper) h3,
:is(.legacy-content, .editor-styles-wrapper) .h3,
:is(.legacy-content, .editor-styles-wrapper) h4,
:is(.legacy-content, .editor-styles-wrapper) .h4,
:is(.legacy-content, .editor-styles-wrapper) h6,
:is(.legacy-content, .editor-styles-wrapper) .h6 { margin: 0 0 2rem; }
:is(.legacy-content, .editor-styles-wrapper) h5,
:is(.legacy-content, .editor-styles-wrapper) .h5 { margin: 0 0 1rem; }
@media screen and (max-width: 39.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) h1,
:is(.legacy-content, .editor-styles-wrapper) .h1,
:is(.legacy-content, .editor-styles-wrapper) h2,
:is(.legacy-content, .editor-styles-wrapper) .h2 { margin: 0 0 1.75rem; }
  :is(.legacy-content, .editor-styles-wrapper) h3,
:is(.legacy-content, .editor-styles-wrapper) .h3,
:is(.legacy-content, .editor-styles-wrapper) h4,
:is(.legacy-content, .editor-styles-wrapper) .h4,
:is(.legacy-content, .editor-styles-wrapper) h6,
:is(.legacy-content, .editor-styles-wrapper) .h6 { margin: 0 0 1.5rem; }
}
:is(.legacy-content, .editor-styles-wrapper) mark { padding-right: 7px; padding-left: 7px; }
:is(.legacy-content, .editor-styles-wrapper) img { max-width: 100%; height: auto; }

/* Animated green underline */
:is(.legacy-content, .editor-styles-wrapper) p a,
:is(.legacy-content, .editor-styles-wrapper) li a,
:is(.legacy-content, .editor-styles-wrapper) h2 a,
:is(.legacy-content, .editor-styles-wrapper) a.underline {
  --bg-h: 1px;
  padding-bottom: 4px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(0deg, var(--green), var(--green)) no-repeat right bottom / 100% var(--bg-h);
  transition: background-size 350ms;
}
:is(.legacy-content, .editor-styles-wrapper) p a:where(:hover,
:is(.legacy-content, .editor-styles-wrapper) :focus-visible),
:is(.legacy-content, .editor-styles-wrapper) li a:where(:hover,
:is(.legacy-content, .editor-styles-wrapper) :focus-visible),
:is(.legacy-content, .editor-styles-wrapper) h2 a:where(:hover,
:is(.legacy-content, .editor-styles-wrapper) :focus-visible),
:is(.legacy-content, .editor-styles-wrapper) a.underline:where(:hover,
:is(.legacy-content, .editor-styles-wrapper) :focus-visible) {
  --bg-h: 100%;
  color: inherit;
  background-size: 0% var(--bg-h);
  background-position-x: left;
}

/* ---------- Helper classes used in old content ---------- */
:is(.legacy-content, .editor-styles-wrapper) .text-center { text-align: center; }
:is(.legacy-content, .editor-styles-wrapper) .no-margin { margin-bottom: 0; }
:is(.legacy-content, .editor-styles-wrapper) .less-margin-bottom { margin-bottom: .5rem; }
:is(.legacy-content, .editor-styles-wrapper) .less-spacing { gap: 2rem; }
:is(.legacy-content, .editor-styles-wrapper) .no-padding-top { padding-top: 0 !important; }
:is(.legacy-content, .editor-styles-wrapper) .no-padding-bottom { padding-bottom: 0 !important; }
:is(.legacy-content, .editor-styles-wrapper) .no-min-height { min-height: unset; }
:is(.legacy-content, .editor-styles-wrapper) .limit-paragraph-width { max-width: 900px; margin-right: auto; margin-left: auto; }
:is(.legacy-content, .editor-styles-wrapper) .limit-paragraph-width-left { max-width: 900px; }
:is(.legacy-content, .editor-styles-wrapper) .flex-end { justify-content: flex-end; }
:is(.legacy-content, .editor-styles-wrapper) .justify-center { justify-content: center !important; }
:is(.legacy-content, .editor-styles-wrapper) .font-500 { font-weight: 600 !important; }
:is(.legacy-content, .editor-styles-wrapper) .font-400 { font-weight: 400 !important; }
:is(.legacy-content, .editor-styles-wrapper) .padding-around { padding: .46875rem .9375rem !important; }
@media screen and (min-width: 64em) {
  :is(.legacy-content, .editor-styles-wrapper) .padding-around { padding: 2rem 4rem !important; }
}
@media screen and (max-width: 63.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .direction-reverse-small-medium { flex-direction: column-reverse !important; }
}
:is(.legacy-content, .editor-styles-wrapper) .width-100 figure,
:is(.legacy-content, .editor-styles-wrapper) .width-100 img { width: 100%; }
:is(.legacy-content, .editor-styles-wrapper) .width-25 { width: 25%; }
:is(.legacy-content, .editor-styles-wrapper) .width-height-100 img { width: 100%; height: auto; object-fit: cover; }
@media screen and (min-width: 64em) {
  :is(.legacy-content, .editor-styles-wrapper) .width-height-100 img { height: 100vh; }
}
:is(.legacy-content, .editor-styles-wrapper) .full-width-img img,
:is(.legacy-content, .editor-styles-wrapper) .full-width-img video { width: 100%; object-fit: cover; border-radius: 8px; }
@media screen and (max-width: 39.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .full-width-img img,
:is(.legacy-content, .editor-styles-wrapper) .full-width-img video { height: 216px; }
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .full-width-img img,
:is(.legacy-content, .editor-styles-wrapper) .full-width-img video { height: 350px; }
}
@media screen and (min-width: 64em) {
  :is(.legacy-content, .editor-styles-wrapper) .full-width-img img,
:is(.legacy-content, .editor-styles-wrapper) .full-width-img video { height: 476px; margin-bottom: 3rem; }
}
:is(.legacy-content, .editor-styles-wrapper) .image-full-width img { width: 100%; height: 100%; max-height: 100vh; object-fit: cover; object-position: center; }
:is(.legacy-content, .editor-styles-wrapper) .box-with-border { background: var(--purple); border-radius: 8px; padding: 2rem 2rem 0; }
:is(.legacy-content, .editor-styles-wrapper) .box-with-border.black-bg { background: var(--black); }

/* ---------- Core blocks ---------- */
:is(.legacy-content, .editor-styles-wrapper) .wp-block-image img,
:is(.legacy-content, .editor-styles-wrapper) .wp-block-media-text img { border-radius: 8px; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-image.full-width-img { margin-bottom: 1.5rem; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-media-text > .wp-block-media-text__content { padding-top: 1.5rem; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-media-text > .wp-block-media-text__content .wp-block-button { margin-bottom: 1.5rem; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-columns { margin-bottom: 0; gap: .9375rem; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-columns.gap-1rem { gap: 1rem; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-cover { border-radius: 10px; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-cover,
:is(.legacy-content, .editor-styles-wrapper) .wp-block-cover-image { padding: 2em 1.5em; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-separator.width-25 { margin-right: 0 !important; margin-left: 0 !important; }
:is(.legacy-content, .editor-styles-wrapper) .wp-block-separator.width-25.green-separator { border-color: var(--green); }
@media screen and (min-width: 40em) {
  :is(.legacy-content, .editor-styles-wrapper) .columns-2 .wp-block-group__inner-container { column-count: 2; gap: 4rem; }
}
@media screen and (max-width: 600px) {
  :is(.legacy-content, .editor-styles-wrapper) .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content { padding-right: 0; padding-left: 0; }
  :is(.legacy-content, .editor-styles-wrapper) .wp-block-columns { gap: 0; }
}
@media screen and (min-width: 64em) {
  :is(.legacy-content, .editor-styles-wrapper) .wp-block-columns { gap: 4rem; }
  :is(.legacy-content, .editor-styles-wrapper) .wp-block-cover,
:is(.legacy-content, .editor-styles-wrapper) .wp-block-cover-image { padding: 3em; }
}

/* Buttons: outline pill (resources: filled purple) */
:is(.legacy-content, .editor-styles-wrapper) .wp-block-button__link.wp-element-button,
:is(.legacy-content, .editor-styles-wrapper) .light-button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  line-height: 1.12;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
:is(.legacy-content, .editor-styles-wrapper) .wp-block-button__link.wp-element-button:hover,
:is(.legacy-content, .editor-styles-wrapper) .light-button:hover { color: var(--white); border-color: var(--green); }
:is(.legacy-content, .editor-styles-wrapper).legacy-content--resources .wp-block-button__link.wp-element-button {
  z-index: 0;
  margin-bottom: 1rem;
  border-color: var(--purple);
}
:is(.legacy-content, .editor-styles-wrapper).legacy-content--resources .wp-block-button__link.wp-element-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background-color: var(--purple);
  clip-path: inset(0 0 0 0 round 100px);
  transition: var(--transition);
}
:is(.legacy-content, .editor-styles-wrapper).legacy-content--resources .wp-block-button__link.wp-element-button:hover::after,
:is(.legacy-content, .editor-styles-wrapper).legacy-content--resources .wp-block-button__link.wp-element-button:focus::after {
  clip-path: inset(0 100% 0 0 round 100px);
}
@media screen and (max-width: 39.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .wp-block-button__link.wp-element-button,
:is(.legacy-content, .editor-styles-wrapper) .light-button { padding: 10px 22px; }
}

/* ---------- Article layout (post, news, pulse-updates) ---------- */
:is(.legacy-content, .editor-styles-wrapper) .article-content { max-width: 1050px; }
:is(.legacy-content, .editor-styles-wrapper) .article-content *:not(.wp-block-group__inner-container):not(figure):not(img) {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}
:is(.legacy-content, .editor-styles-wrapper) .article-content ul { padding-left: 2.25rem; margin-bottom: 2rem; }
:is(.legacy-content, .editor-styles-wrapper) .article-content ol li { margin-bottom: 1rem; }
:is(.legacy-content, .editor-styles-wrapper).is-article .wp-block-image { margin-top: 4rem; margin-bottom: 4rem; }
:is(.legacy-content, .editor-styles-wrapper).is-article .wp-block-image img { width: 100%; height: auto; max-height: 100vh; object-fit: cover; }
:is(.legacy-content, .editor-styles-wrapper).is-article .wp-block-heading { margin-top: 4rem; }
:is(.legacy-content, .editor-styles-wrapper).legacy-content--post .has-medium-font-size,
:is(.legacy-content, .editor-styles-wrapper).legacy-content--post .has-medium-font-size a { font-size: 20px; }

/* Post slides */
:is(.legacy-content, .editor-styles-wrapper) .legacy-post-slides__blurb { margin-bottom: 4rem; }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper { position: relative; overflow: hidden; margin-bottom: 2rem; padding-bottom: 4rem; scroll-margin-top: 2rem; touch-action: pan-y; }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-pagination { bottom: 10px; font-size: 25px; }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-pagination-current { color: var(--green); }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-prev,
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-next {
  top: auto;
  bottom: 0;
  width: 3rem;
  height: 3rem;
  margin: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: none;
  color: var(--white);
}
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-prev { left: 0; right: auto; }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-next { right: 0; left: auto; }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-prev svg,
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-next svg { display: none; }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-prev::after,
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-next::after { font-size: 1rem; font-weight: 700; color: var(--white); }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-prev:not(.swiper-button-disabled):hover,
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-next:not(.swiper-button-disabled):hover { border-color: var(--green); }
:is(.legacy-content, .editor-styles-wrapper) .posts-swiper .swiper-button-disabled { opacity: .35; cursor: auto; pointer-events: none; }

/* Share links */
:is(.legacy-content, .editor-styles-wrapper) .share-links { max-width: 800px; margin-right: auto; margin-left: auto; text-align: center; }
:is(.legacy-content, .editor-styles-wrapper) .share-links__title { margin: 4rem 0 0; }
:is(.legacy-content, .editor-styles-wrapper) .share-links a { display: inline-flex; padding: 12px; color: var(--white); background: none; }
:is(.legacy-content, .editor-styles-wrapper) .share-links a:hover { opacity: .8; }
:is(.legacy-content, .editor-styles-wrapper) .share-links svg { width: 24px; height: 24px; fill: currentColor; }

/* Post navigation + back link */
:is(.legacy-content, .editor-styles-wrapper) .legacy-post-nav .nav-links { display: flex; justify-content: flex-end; }
:is(.legacy-content, .editor-styles-wrapper) .legacy-post-nav .nav-previous {
  max-width: 800px;
  font-size: clamp(18px, calc(18px + 7 * ((100vw - 576px) / 1280)), 25px);
  font-weight: 600;
  text-align: right;
}
:is(.legacy-content, .editor-styles-wrapper) .legacy-post-nav .nav-previous a { color: inherit; text-decoration: none; }
:is(.legacy-content, .editor-styles-wrapper) .legacy-post-nav .nav-subtitle { display: block; margin-bottom: 10px; }
:is(.legacy-content, .editor-styles-wrapper) .legacy-post-nav .nav-title { display: block; margin: 0; }
:is(.legacy-content, .editor-styles-wrapper) .back-to { margin-top: 3rem; }
:is(.legacy-content, .editor-styles-wrapper) .back-to__link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }

/* Round arrow button (mask fills on hover) */
:is(.legacy-content, .editor-styles-wrapper) .arrow-button {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}
:is(.legacy-content, .editor-styles-wrapper) .arrow-button--back { transform: rotate(180deg); }
:is(.legacy-content, .editor-styles-wrapper) .arrow-button .button__mask {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 56px;
  height: 56px;
  background-color: var(--white);
  clip-path: inset(0 100% 0 0 round 100px);
  transition: var(--transition);
}
:is(.legacy-content, .editor-styles-wrapper) .arrow-button svg { position: relative; z-index: 1; top: -2px; left: -2px; }
:is(.legacy-content, .editor-styles-wrapper) .arrow-button svg path { transition: var(--transition); }
:is(.legacy-content, .editor-styles-wrapper) a:hover .arrow-button .button__mask,
:is(.legacy-content, .editor-styles-wrapper) a:focus-visible .arrow-button .button__mask { clip-path: inset(0 0 0 0 round 100px); }
:is(.legacy-content, .editor-styles-wrapper) a:hover .arrow-button,
:is(.legacy-content, .editor-styles-wrapper) a:focus-visible .arrow-button { color: var(--black); }

/* Arrow link with sliding arrow */
:is(.legacy-content, .editor-styles-wrapper) .arrow-link { display: flex; align-items: center; background: none; padding-bottom: 0; }
:is(.legacy-content, .editor-styles-wrapper) .arrow-link:hover svg { transform: none; }
:is(.legacy-content, .editor-styles-wrapper) .arrow-link .link__text { display: inline-block; margin-right: 7px; }
:is(.legacy-content, .editor-styles-wrapper) .arrow-link .link__icon { position: relative; top: 1px; display: flex; width: 14.4px; height: 14.4px; margin-left: .4vw; overflow: hidden; color: var(--green); }
:is(.legacy-content, .editor-styles-wrapper) .arrow-link .link__arrow { display: inline-flex; width: 14.4px; height: 14.4px; transition: transform .35s ease; }
:is(.legacy-content, .editor-styles-wrapper) .arrow-link .link__arrow svg { width: 100%; height: 100%; }
:is(.legacy-content, .editor-styles-wrapper) .arrow-link .link__arrow_clone { position: absolute; bottom: -100%; left: -100%; z-index: 2; transform: translate(0); }
:is(.legacy-content, .editor-styles-wrapper) .arrow-link:hover .link__arrow,
:is(.legacy-content, .editor-styles-wrapper) .arrow-link:focus-visible .link__arrow { transform: translate(100%, -100%); }

/* ---------- Block: Accordion ---------- */
:is(.legacy-content, .editor-styles-wrapper) .normal-accordion .ac { margin-top: 10px; }
:is(.legacy-content, .editor-styles-wrapper) .normal-accordion .ac-q {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
:is(.legacy-content, .editor-styles-wrapper) .normal-accordion .ac-q > span {
  display: block;
  padding: 12px 24px 12px 48px;
  border: 1px solid var(--white);
  border-radius: 999px;
}
:is(.legacy-content, .editor-styles-wrapper) .normal-accordion .ac-q::before {
  content: "+";
  position: absolute;
  top: 47%;
  left: 15px;
  width: 15px;
  transform: translate(0, -50%);
  color: var(--green);
  font-size: 25px;
  text-align: center;
}
:is(.legacy-content, .editor-styles-wrapper) .normal-accordion .ac > .ac-a { height: 0; overflow: hidden; transition: height 300ms linear; }
:is(.legacy-content, .editor-styles-wrapper) .normal-accordion .ac-a-container { padding: 20px 10px 4px; }
@media screen and (min-width: 40em) {
  :is(.legacy-content, .editor-styles-wrapper) .normal-accordion .accordion-left-align .ac-q { margin-left: auto; }
}
:is(.legacy-content, .editor-styles-wrapper) .accordion-align-center .normal-accordion .ac-q > span { text-align: center; }

/* Accordion style 2 (className "accordion-style2" on a parent) */
:is(.legacy-content, .editor-styles-wrapper) .accordion-style2 .ac { padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--white); }
:is(.legacy-content, .editor-styles-wrapper) .accordion-style2 .ac-a-container { padding-left: 0; }
:is(.legacy-content, .editor-styles-wrapper) .accordion-style2 .ac-a-container p { margin-bottom: 0; }
:is(.legacy-content, .editor-styles-wrapper) .accordion-style2 .ac .ac-q > span {
  padding-left: 50px;
  border: 0;
  font-size: clamp(18px, calc(18px + 10 * ((100vw - 576px) / 1280)), 28px);
  font-weight: 600;
  line-height: 1.15;
}
:is(.legacy-content, .editor-styles-wrapper) .accordion-style2 .ac .ac-q::before { left: 0; width: 30px; font-size: 50px; }
@media screen and (min-width: 781px) {
  :is(.legacy-content, .editor-styles-wrapper) .accordion-style2 .ac { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  :is(.legacy-content, .editor-styles-wrapper) .accordion-style2 .ac:last-child { border-bottom: 0; }
}
@media screen and (max-width: 781px) {
  :is(.legacy-content, .editor-styles-wrapper) .remove-accordion-style2-gap .wp-block-columns { gap: 0; }
}

/* ---------- Block: Reveal Content on Hover ---------- */
:is(.legacy-content, .editor-styles-wrapper) .reveal-content-on-hover__heading { max-width: 570px; }
:is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide img,
:is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide video { border-radius: 8px; }
@media screen and (max-width: 63.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .reveal-h2-container { display: none; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide-text { margin: 2rem 0 4rem; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide-description p:last-of-type { margin-bottom: 2rem; }
  :is(.legacy-content, .editor-styles-wrapper) section.reveal-content-on-hover { padding-bottom: 0; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide img,
:is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide video { width: 100%; object-fit: cover; }
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide img,
:is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide video { height: 350px; }
}
@media screen and (max-width: 39.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide img,
:is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide video { height: 216px; }
}
@media screen and (min-width: 64em) {
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide-title { display: none; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-on-hover-container { position: relative; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-h2-container { position: absolute; top: 0; left: 0; z-index: 2; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-h2-container h2 { cursor: pointer; transition: var(--transition); }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-h2-container h2.reveal-h2-active { color: var(--purple); }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide-container { position: relative; height: 598px; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: var(--transition); }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide.reveal-active { opacity: 1; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide.reveal-active .reveal-content-slide-text { position: relative; z-index: 1; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide img,
:is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide video { width: 100%; height: 600px; margin-bottom: 3rem; object-fit: cover; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide-text { display: flex; align-items: flex-end; justify-content: space-between; gap: 9vw; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide-text p { max-width: 600px; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide-links a { margin-bottom: .65rem; }
  :is(.legacy-content, .editor-styles-wrapper) .reveal-content-slide-description p:last-of-type { margin-bottom: 0; }
}

/* Pulse content: gradient hero band (old posts styled .page-featured-image-wrapper inline) */
:is(.legacy-content, .editor-styles-wrapper).legacy-content--pulse-updates .page-hero__band {
  background: linear-gradient(90deg, #5342EA 0%, #B74AE5 50%, #FF6D48 100%);
}

/* ---------- Glossary template (page-glossary.php) ---------- */
:is(.legacy-content, .editor-styles-wrapper).legacy-glossary h2 { font-size: clamp(40px, 4.9vw, 70px); }
:is(.legacy-content, .editor-styles-wrapper).legacy-glossary p { margin-bottom: 1rem; }
:is(.legacy-content, .editor-styles-wrapper) .glossary h3,
:is(.legacy-content, .editor-styles-wrapper) .glossary p { max-width: 590px; margin-right: auto; }
:is(.legacy-content, .editor-styles-wrapper) .glossary h2 { font-size: clamp(55px, 6.6vw, 100px); line-height: .95; }
:is(.legacy-content, .editor-styles-wrapper) .glossary h3 { margin-bottom: 0; font-size: clamp(25px, 3.2vw, 45px); line-height: 1.25; }
:is(.legacy-content, .editor-styles-wrapper) .glossary .wp-block-column:nth-of-type(2) .wp-block-group { margin-bottom: 6rem; }
:is(.legacy-content, .editor-styles-wrapper) .glossary .wp-block-columns.section,
:is(.legacy-content, .editor-styles-wrapper) .glossary > .wp-block-group__inner-container > .wp-block-columns { scroll-margin-top: 10rem; }

/* Letter / month navigation */
:is(.legacy-content, .editor-styles-wrapper) .brand-navigation-container { padding-right: 0; padding-left: 0; }
:is(.legacy-content, .editor-styles-wrapper) #brand-navigation {
  z-index: 5;
  width: 100%;
  padding: 1rem .9375rem;
  background: var(--purple);
}
:is(.legacy-content, .editor-styles-wrapper) #brand-navigation.sticky { position: fixed; right: 0; bottom: 0; left: 0; top: auto; }
:is(.legacy-content, .editor-styles-wrapper) #brand-navigation .letters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
:is(.legacy-content, .editor-styles-wrapper) #brand-navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  padding: 5px 14px;
  border-radius: 100px;
  background: none;
  color: var(--white);
  font-size: 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .3s ease;
}
:is(.legacy-content, .editor-styles-wrapper) #brand-navigation a:hover,
:is(.legacy-content, .editor-styles-wrapper) #brand-navigation a.brand-active { background: var(--orange); color: var(--white); }
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) #brand-navigation a { margin-right: 65px; }
  :is(.legacy-content, .editor-styles-wrapper) #brand-navigation a:last-of-type { margin-right: 0; }
}
@media screen and (max-width: 39.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) #brand-navigation { padding: 5px 0; }
  :is(.legacy-content, .editor-styles-wrapper) #brand-navigation a { margin-right: 0; padding-right: 7px; padding-left: 7px; font-size: 16px; }
}

/* ---------- Pulse Content Hub (page-pulsecontent.php) ---------- */
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .grid-container { max-width: 82rem; }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts__label { margin-bottom: 1rem; font-weight: 600; }
:is(.legacy-content, .editor-styles-wrapper) .category-filter { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2rem; }
:is(.legacy-content, .editor-styles-wrapper) .category-filter button {
  display: inline-block;
  min-width: 142px;
  padding: .5rem 1.5rem;
  border: 1px solid var(--white);
  border-radius: 50px;
  background: none;
  color: var(--white);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .3s ease;
}
:is(.legacy-content, .editor-styles-wrapper) .category-filter button:hover,
:is(.legacy-content, .editor-styles-wrapper) .category-filter button:focus-visible,
:is(.legacy-content, .editor-styles-wrapper) .category-filter button.active { border-color: var(--green); }
:is(.legacy-content, .editor-styles-wrapper) #post-wrapper { transition: opacity 150ms linear; }
:is(.legacy-content, .editor-styles-wrapper) #post-wrapper.is-loading { opacity: .3; }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post {
  position: relative;
  margin-bottom: 7rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms cubic-bezier(0, 0, .58, 1), transform 500ms cubic-bezier(0, 0, .58, 1);
}
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post.is-visible { opacity: 1; transform: none; }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post a { display: block; color: inherit; text-decoration: none; background: none; padding: 0; }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post-thumbnail { margin-bottom: 30px; overflow: hidden; border-radius: 8px; }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post-thumbnail img { width: 100%; height: 225px; object-fit: cover; transition: all 500ms cubic-bezier(0, 0, .58, 1); }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post a:hover img { transform: scale(1.1); }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post h3 { margin-bottom: 17px; line-height: 1.34; }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post-excerpt { margin-bottom: 2.5rem; }
:is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post-category {
  position: absolute;
  top: 0;
  right: 0;
  margin: 10px;
  padding: 7px 18px;
  border-radius: 30px;
  background: var(--purple);
  font-size: 90%;
  font-weight: 700;
}
:is(.legacy-content, .editor-styles-wrapper) .horizontal-rule hr { border-color: var(--white); opacity: 1; }

/* ---------- Our Work (page-our-work.php) ---------- */
/* Content hub slider: brand band, card overlaps into the dark page below */
:is(.legacy-content, .editor-styles-wrapper) section.contenthub-slider-section {
  padding-top: 7rem;
  padding-bottom: 0;
  background: var(--brand-primary, var(--purple));
}
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section .grid-container { position: relative; max-width: 82rem; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section__title { margin-bottom: 1.5rem; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section__title :is(h1, h2, p) { text-align: left !important; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section__title h1 { margin-bottom: .5rem !important; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section__title h2 { margin-bottom: 0; }
@media screen and (min-width: 40em) {
  :is(.legacy-content, .editor-styles-wrapper) section.contenthub-slider-section { margin-bottom: 23rem; }
  :is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section .grid-container { margin-bottom: -23rem; }
}
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider { overflow: hidden; touch-action: pan-y; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider .swiper-slide { height: auto; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider .swiper-slide:hover { cursor: grab; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider__card { display: flex; height: 100%; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider__body {
  display: flex;
  flex: 0 0 50%;
  flex-direction: column;
  justify-content: center;
  padding: 6vw;
  border-radius: 8px 0 0 8px;
  background: var(--black);
}
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider__media { flex: 0 0 50%; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 8px 8px 0; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider .post-meta { display: flex; gap: .25rem; margin-bottom: 20px; }
:is(.legacy-content, .editor-styles-wrapper) .content-slider-read-more { display: inline-flex; align-items: center; gap: 1.25rem; color: inherit; font-size: 22px; text-decoration: none; }
@media screen and (max-width: 39.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .contenthub-slider__card { flex-direction: column-reverse; }
  :is(.legacy-content, .editor-styles-wrapper) .contenthub-slider__body { border-radius: 0 0 8px 8px; }
  :is(.legacy-content, .editor-styles-wrapper) .contenthub-slider__media img { height: 230px; border-radius: 8px 8px 0 0; }
}
/* Navigation: long arrows + bullets under the slider */
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section .swiper-navigation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 50px;
}
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section :is(.swiper-button-prev, .swiper-button-next) {
  position: static;
  width: 42px;
  height: 15px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section :is(.swiper-button-prev, .swiper-button-next) svg { display: none; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section :is(.swiper-button-prev, .swiper-button-next)::after {
  content: url("data:image/svg+xml,%3Csvg width='42' height='15' viewBox='0 0 42 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.18949 6.99982C0.668547 6.99982 0.246094 7.42227 0.246094 7.94322C0.246094 8.46416 0.668547 8.88661 1.18949 8.88661V6.99982ZM41.4793 8.61038C41.8476 8.24189 41.8476 7.64454 41.4793 7.27605L35.4755 1.27246C35.107 0.903971 34.5097 0.903971 34.1414 1.27246C33.7729 1.64076 33.7729 2.23812 34.1414 2.60661L39.478 7.94322L34.1414 13.2798C33.7729 13.6483 33.7729 14.2457 34.1414 14.614C34.5097 14.9825 35.107 14.9825 35.4755 14.614L41.4793 8.61038ZM1.18949 8.88661H40.8121V6.99982H1.18949V8.88661Z' fill='%23FAFAFC'/%3E%3C/svg%3E%0A");
  font-size: 0;
  line-height: 1;
}
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section .swiper-button-prev { transform: rotate(180deg); }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section .swiper-pagination { position: relative; inset: auto; width: max-content; transform: none; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section .swiper-pagination-bullet { margin: 0 4px; background: var(--white); opacity: .2; }
:is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section .swiper-pagination-bullet-active { opacity: 1; }
@media screen and (max-width: 39.9375em) {
  :is(.legacy-content, .editor-styles-wrapper) .contenthub-slider-section .swiper-navigation-container { margin-top: 1rem; }
}
:is(.legacy-content, .editor-styles-wrapper) #moment-wrapper { transition: opacity 150ms linear; }
:is(.legacy-content, .editor-styles-wrapper) #moment-wrapper.is-loading { opacity: .3; }
:is(.legacy-content, .editor-styles-wrapper).legacy-our-work .content-hub-posts .post h3 { font-size: 26px; }

/* No JS animation with reduced motion: cards always visible */
html.reduce-motion :is(.legacy-content, .editor-styles-wrapper) .content-hub-posts .post { opacity: 1; transform: none; }
