.iema-section {
  width: 100%;
  box-sizing: border-box;
}
.iema-section .iema-section__inner {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px 80px;
  box-sizing: border-box;
}
.iema-section__eyebrow {
  font-family: Helvetica;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #c1d82a;
	display: block;
	margin: 0 0 16px;
}
.iema-section__title,
.iema-section__heading {
  color: var(--Secondary-Dark-Blue---500, #002147);
  font-family: Helvetica;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%; /* 44px */
  margin: 0 0 16px;
}
.iema-section__deck {
  font-family: Helvetica;
	margin: 0 0 16px 0;
	color: #767676;
	font-weight: 700;
	font-style: italic;
	font-size: 16px;
	line-height: 140%;
}
.iema-section__intro {
  color: var(--Neutral-Gray---Body, #767676);
  font-family: Helvetica;
	font-weight: 400;
	font-size: 16px;
	line-height: 22.4px;
  margin: 0;
}
.iema-section__entry p {
  color: var(--Neutral-Gray---Body, #767676);
  font-family: Helvetica;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
  margin: 0 0 8px;
}
.iema-section__entry p:last-child {
  margin: 0;
}
.entry-404 {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  min-height: 400px;
  justify-content: center;
}
.entry-404 form {
  margin-top: 24px;
}
.entry-404 form input[type="search"] {
  border-radius: 8px;
  border: 1px solid var(--Secondary-Dark-Blue---500, #002147);
  background: var(--Neutral-White, #FFF);
  display: inline-flex;
  padding: 16px;
  align-items: center;
  gap: 16px;
  flex: 1 0 0;
  color: var(--Secondary-Dark-Blue---500, #002147);
  font-family: Helvetica;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.entry-404 form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 24px;
	border: 1px solid transparent;
	border-radius: 1000px;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: normal;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;

	background-color: #002147;
	color: #ffffff;
	border-color: #002147;

  margin-left: 16px;
}
.entry-404 form input[type="submit"]:hover,
.entry-404 form input[type="submit"]:active,
.entry-404 form input[type="submit"]:focus-visible {
	background-color: #00152D;
	border-color: #C1D82A;
	color: #FFFFFF;
	box-shadow: 0 5px 25px 0 rgba(0, 0, 0, 0.15);
}
@media (max-width: 780px) {
  .iema-section .iema-section__inner {
    padding: 40px 24px;
  }
  .iema-section__title,
  .iema-section__heading {
    font-size: 32px;
  }
  .iema-section__entry p {
    font-size: 16px;
  }
}




/* ------------------------------------------------------------------ */
/* Partner single page — hero breadcrumb + darker overlay.            */
/* Scoped to .iema-partner-hero so it never affects other banners.    */
/* ------------------------------------------------------------------ */
.iema-page-banner.iema-partner-hero .iema-page-banner__overlay {
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.72) 0%,
		rgba(0, 0, 0, 0.55) 45%,
		rgba(0, 0, 0, 0.45) 100%
	);
}

.iema-partner-hero__current {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ------------------- Modal ------------------- */
.iema-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: none;
}

.iema-modal__dialog {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  padding: 120px 24px 24px;
  background: rgba(0, 0, 0, 0.40);
  overflow-y: auto;
  box-sizing: border-box;
}

.iema-modal__content {
  min-height: 0;
  max-width: 1000px;
  width: 100%;
  border-radius: 16px;
  background: var(--Neutral-White, #FFF);
  box-shadow: 0 6px 30px 0 rgba(140, 140, 140, 0.40);
  position: relative;
  height: fit-content;
}

.iema-modal__close {
  position: absolute;
  top: 0;
  right: calc(-36px + -16px);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.iema-modal__close svg {
  width: 100%;
  height: 100%;
}

.iema-modal__close svg path {
  fill: #fff;
}

.iema-form-callout__panel .gform_wrapper .gform_footer input[type="submit"], .iema-form-callout__panel .gform_wrapper .gform_button {
  margin: 0;
}

.gform_wrapper.gravity-theme .gform_fields {
  grid-column-gap: 8px;
  grid-row-gap: 24px;
}

.iema-contactus .gform_wrapper.gravity-theme .gfield.gfield--width-full {
  margin-top: 0;
}

.iema-form-callout .gform_wrapper.gravity-theme input:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not([type="file"]),
.iema-contactus .gform_wrapper.gravity-theme input:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not([type="file"]) {
  line-height: normal;
  font-size: 16px;
}

/* --------------- Post Breadcrumbs --------------- */
.iema-post-hero__crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: normal;
	color: #ffffff;
}

.iema-post-hero__crumbs svg {
	margin-top: -6px;
}

.iema-post-hero__crumbs a {
	color: #ffffff;
	text-decoration: none;
	opacity: 0.9;
	padding-bottom: 4px;
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease;
}

.iema-post-hero__crumbs a:hover,
.iema-post-hero__crumbs a:focus-visible {
	border-color: #ffffff;
}

/* --------------- Chips --------------- */

.iema-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.iema-chip {
	font-family: Helvetica;
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #757575;
	border-radius: 4px;
	color: #757575;
	font-size: 12px;
	line-height: 1.4;
}

/* --------------- Post Meta --------------- */
.entry-meta { display: none; }

@media (width < 780px) {
  .iema-modal__close {
    top: calc(-36px + -16px);
    right: 0;
  }

  .iema-contactus .gform_wrapper.gravity-theme .ginput_complex span {
    margin-bottom: 0;
  }

  .iema-form-callout .gform_wrapper.gravity-theme input:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not([type="file"]) {
    width: 100%;
  }
	
  .iema-section__deck {
    margin-bottom: 16px;
  }
}
/* ------------------------------------------------------------------ */
/* Partner hero — long titles.                                        */
/* The H1 here is the partner's full positioning line, e.g. "IMERCS:   */
/* Less Administration, Faster Reporting, Audit Ready." — far longer   */
/* than an ordinary page title. The shared banner caps content at      */
/* 740px, which broke these over three tight lines, and the compact    */
/* variant nudges content 24px down, so the space above and below read */
/* as uneven once the title wrapped.                                   */
/* ------------------------------------------------------------------ */
.iema-page-banner.iema-partner-hero .iema-page-banner__content {
  /* Room to run: 1440px inner minus its 80px side padding leaves 1280px. */
  max-width: 1200px;
  /* Drop the downward nudge so the flex centring is honest. */
  transform: none;
  gap: 16px;
}

.iema-page-banner.iema-partner-hero {
  /* Equal breathing room top and bottom. With min-height:400px and
     align-items:center, short titles stay centred in 400px and long ones
     grow the hero symmetrically instead of crowding the edges. */
  padding-block: 56px;
}

.iema-page-banner.iema-partner-hero .iema-page-banner__title {
  /* Scales down on narrower viewports instead of overflowing. */
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: 1.14;
  /* Spread wrapped lines evenly rather than leaving a short orphan. */
  text-wrap: balance;
}

@media (max-width: 1024px) {
  .iema-page-banner.iema-partner-hero {
    padding-block: 40px;
  }
}
