/* Staging overrides: restore page title spacing so hero/title is visible below transparent header */
:root {
  --sm-header-offset: 140px;
  --sm-page-cream: #f7f3eb;
  --sm-surface-cream: #fffcf6;
  --sm-section-cream: #efe8da;
}

/* Subtle two-tone cream matching SimpleMed+: the page frame carries the slightly
   deeper page cream, the content/reading surfaces carry the lighter near-white
   surface cream so the site reads light and subtle, not a flat heavy beige. */
html,
body,
html body.site,
.body-innerwrapper,
#sp-main-body,
#sp-page-builder > .page-content,
#sp-component {
  background-color: var(--sm-surface-cream) !important;
}

/* Unify every off-cream near-white patch to the one site cream (#fffcf6) so the
   whole Joomla site reads as a single, near-invisible subtle cream with no
   lighter/darker patches (app band, promo band, and SPPB sections that shipped
   with #f9fafc cool-white or #f7f3eb warm-cream inline backgrounds). Coloured
   SPPB sections (teal/green cards) are untouched. */
#smp-app-band,
.sppb-section[style*="f9fafc" i],
.sppb-section[style*="F9FAFC"],
.sppb-section[style*="f7f3eb" i],
.sppb-section[style*="F7F3EB"],
[style*="background-color: #f9fafc" i],
[style*="background-color:#f9fafc" i] {
  background-color: var(--sm-surface-cream) !important;
}

.sp-dropdown-inner,
.article-details-wrap,
.article-info-wrap,
div.pagination ul.pagination,
.pagination-wrapper ul.pagination,
input.form-control,
textarea.form-control,
select.form-control {
  background-color: var(--sm-surface-cream);
}

/*
 * Bootstrap .panel defaults to #fff. On article pages the "Contents"/"Abstract"
 * accordion (div.accordion-group.panel) rendered as a pure-white box on the cream
 * page. Bring it onto the cream surface so no white islands remain.
 */
.panel,
.accordion-group.panel,
.panel-default,
.panel > .panel-heading {
  background-color: var(--sm-surface-cream);
}

html body.sticky-header #sp-header.menu-fixed {
  background: var(--sm-surface-cream) !important;
}

/*
 * The generated critical CSS pins the sticky/fixed header to #fff !important via
 * class selectors (body.sticky-header .header / .sp-header, plus a stale
 * body.header-sticky variant), which the id-only override above does not beat on
 * the subjects (SPPB) pages. Match the same class/id selectors with cream so no
 * white header band shows over the cream page in any header state.
 */
html body.sticky-header #sp-header,
html body.sticky-header #sp-header.menu-fixed,
html body.sticky-header .sp-header,
html body.sticky-header .header,
html body.header-sticky #sp-header,
html body.header-sticky .sp-header,
html body.header-sticky .header {
  background: var(--sm-surface-cream) !important;
}

/*
 * Defensive: Some staging Helix "Custom CSS" snippets mistakenly use
 * `body.sticky-header #sp-header { background:#fff; position:fixed; }`.
 * Since `sticky-header` is a persistent body class (feature-flag), that
 * forces a white/fixed header even at the top of the page.
 *
 * Keep the default (transparent/absolute) header until the template applies
 * its scroll-state class (`#sp-header.menu-fixed`).
 */
body.sticky-header:not(.no-page-title):not(.solid-header) #sp-header:not(.menu-fixed) {
  position: absolute !important;
  background: transparent !important;
  box-shadow: none !important;
}

html,
body {
  scroll-padding-top: var(--sm-header-offset);
}

:target {
  scroll-margin-top: var(--sm-header-offset);
}

/* Shared page-title typography. Article routes use this same visual as their
 * sole visible h1; non-article routes retain h2 semantics. */
.sp-page-title .sm-page-title-heading {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 190px;
  font-weight: 700;
  letter-spacing: -9.5px;
  line-height: 1;
  text-shadow: 0 11px 10px rgba(0,0,0,.19);
}
.sp-page-title .sm-page-title-heading::before {
  content: '';
  position: absolute;
  bottom: -335px;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: -1;
  pointer-events: none;
}

body .sp-page-title {
  padding-top: 120px !important;
  padding-bottom: 160px !important;
  min-height: 520px !important;
}

body .sp-page-title .sm-page-title-heading {
  letter-spacing: -2px !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative;
  margin-bottom: 32px !important;
}

.view-article .sp-page-title .sm-page-title-heading {
  font-size: calc(14px + 4vw) !important;
  line-height: 1.05 !important;
}

/* Non-article titles (About, Subjects, Search...) keep 190px on desktop but
 * shrink with the viewport instead of clipping at phone widths. */
body:not(.view-article) .sp-page-title .sm-page-title-heading {
  font-size: clamp(44px, 13.2vw, 190px);
}

body.view-article .article-details-wrap {
  margin-top: 100px !important;
}

/* Adjust Contents slider anchor offset for sticky header */
.article-details-wrap .article-content h3[id],
.article-details-wrap .article-content h2[id],
.article-details-wrap .article-content h4[id] {
  scroll-margin-top: var(--sm-header-offset);
}

/* Semantic section spacing for migrated article content */
.article-details-wrap [itemprop="articleBody"] .sm-article-section-heading,
.article-details-wrap [itemprop="articleBody"] .sm-article-subheading {
	clear: both;
	color: inherit;
	font-family: inherit;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.5;
	scroll-margin-top: var(--sm-header-offset);
}

.article-details-wrap [itemprop="articleBody"] .sm-article-section-heading {
	margin: 2.5rem 0 1rem;
	text-decoration: underline;
}

.article-details-wrap [itemprop="articleBody"] .sm-article-subheading {
	margin: 1.75rem 0 0.75rem;
}

.article-details-wrap [itemprop="articleBody"] a.sm-article-lightbox {
  cursor: zoom-in;
  display: inline-block;
  max-width: 100%;
}

.article-details-wrap [itemprop="articleBody"] a.sm-article-lightbox:focus {
  outline: 3px solid rgba(0, 167, 167, 0.45);
  outline-offset: 4px;
}

.article-details-wrap [itemprop="articleBody"] a.sm-article-lightbox img {
  display: block;
}

.mfp-figure::after {
  background: #111827;
}

.mfp-title {
  line-height: 1.5;
  padding-right: 48px;
}

.sm-subject-article-icon {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 200px;
  width: 100%;
}

.sm-contributor-card {
  min-height: 330px;
}

.sm-contributor-photo,
.sm-contributor-bio-photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.sm-contributor-photo {
  height: 200px;
  width: 200px;
}

.sm-contributor-bio-photo {
  height: min(450px, 80vw);
  max-width: 450px;
  width: min(450px, 80vw);
}

/* Allow mobile off-canvas to scroll while locking the page behind it */
.offcanvas-menu-init.offcanvas {
  overflow: hidden;
}

.offcanvas-menu-init.offcanvas .offcanvas-menu {
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.offcanvas-menu-init.offcanvas .offcanvas-inner {
  padding-bottom: 40px;
}

/* Off-canvas (hamburger) search: remove excess spacing under the search box */
.offcanvas-menu .offcanvas-inner .sp-module.sm-offcanvas-search-module {
  margin-bottom: 20px !important;
  padding-bottom: 0 !important;
}

.offcanvas-menu .offcanvas-inner .sp-module.sm-offcanvas-search-module .search {
  margin-top: 0 !important;
}

.offcanvas-menu .offcanvas-inner .sp-module.sm-offcanvas-search-module form,
.offcanvas-menu .offcanvas-inner .sp-module.sm-offcanvas-search-module input {
  margin-bottom: 0 !important;
}

/* Four-level subject menus use non-link group headings. Give those headings
 * the same row geometry as links, reserve space for their expand control, and
 * visually de-emphasise the article links one level below. */
#sm-offcanvas-menu #collapse-menu-537 > li.deeper.parent > .nav-header {
  box-sizing: border-box;
  display: block;
  min-height: 48px;
  padding: 10px 54px 10px 40px;
  color: #d3dbd8;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
  text-transform: uppercase;
}

#sm-offcanvas-menu #collapse-menu-537 > li.deeper.parent > .offcanvas-menu-toggler {
  top: 0;
  right: 0;
  width: 52px;
  height: 48px;
  padding: 0;
  line-height: 48px;
  text-align: center;
}

#sm-offcanvas-menu #collapse-menu-537 > li.deeper.parent > ul.collapse > li > a {
  min-height: 44px;
  padding: 11px 20px 11px 48px;
  color: #c4ceca;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  text-transform: none;
}

/* Cross-site switch button (SimpleMed → SimpleMed+) */
.smplus-side-switch {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10010;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: #087b75; /* was #00a7a7 — white text needs 4.5:1 (WCAG 1.4.3) */
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
body.itemid-437 .smplus-side-switch { display: none; }

.smplus-side-switch:hover,
.smplus-side-switch:focus {
  background: #065f5b; /* was #008c8c — WCAG 1.4.3 */
  color: #fff;
  text-decoration: none;
}

.smplus-side-switch:focus {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 1px;
}

/* Phones have no side margin: a fixed button always lands on text, the footer
   disclaimer or the contact consent box. The menu's SimpleMed+ link covers it. */
@media (max-width: 767px) {
  .smplus-side-switch { display: none; }
}

/* Article Quiz CTA (SimpleMed+ embed) */
.article-details-wrap iframe.smp-cta-iframe,
.article-details-wrap iframe[data-src*="plus.simplemed.co.uk/embed/cta"],
.article-details-wrap iframe[src*="plus.simplemed.co.uk/embed/cta"] {
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  display: block;
  margin: 0 !important;
  height: 220px;
  min-height: 160px;
  max-height: none;
  overflow: hidden;
}

.article-details-wrap .smp-cta-wrap {
  position: relative;
  margin: 14px 0 24px;
}

.article-details-wrap .smp-cta-fallback {
  margin: 10px 0 0;
  text-align: center;
  line-height: 1.4;
}

.article-details-wrap .smp-cta-fallback-link {
  display: inline-block;
  color: #087b75; /* was #00a7a7 (3.0:1 on white) — WCAG 1.4.3 */
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

.article-details-wrap .smp-cta-fallback-link:hover,
.article-details-wrap .smp-cta-fallback-link:focus {
  color: #065f5b; /* was #008c8c (4.0:1) — WCAG 1.4.3 */
  text-decoration: underline;
}

.article-details-wrap .smp-cta-fallback-link:focus {
  outline: 2px solid rgba(0, 140, 140, 0.3);
  outline-offset: 2px;
}

.article-details-wrap .smp-cta-ready .smp-cta-fallback {
  display: none;
}

/* "Practise this topic" (plg_content_smpluscta), below the article body: a soft teal panel of
   link cards (name, note, arrow), then the SimpleMed+ Encyclopaedia as one warm card of its own */
.article-details-wrap .smp-practise {
  margin: 32px 0 24px;
  padding: 22px 20px 20px;
  background: #f1f8f7;
  border: 1px solid #d3ebe8;
  border-radius: 16px;
}
.article-details-wrap .smp-practise__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f3d2e;
}
.article-details-wrap .smp-practise__lead {
  margin: 4px 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #4b5d57;
}
.article-details-wrap .smp-practise__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-details-wrap .smp-practise__list li { margin: 0; }
.article-details-wrap .smp-practise__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
  height: 100%;
  padding: 14px 40px 14px 16px;
  background: #fff;
  border: 1px solid #d3ebe8;
  border-radius: 12px;
  color: #0f3d2e;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.article-details-wrap .smp-practise__name {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #0f3d2e;
}
.article-details-wrap .smp-practise__note {
  font-size: 13px;
  line-height: 1.45;
  color: #4b5d57;
}
.article-details-wrap .smp-practise__arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-weight: 700;
  color: #087b75;
  transition: transform 140ms ease;
}
.article-details-wrap .smp-practise__link:hover,
.article-details-wrap .smp-practise__link:focus-visible {
  border-color: #087b75;
  box-shadow: 0 2px 10px rgba(8, 123, 117, 0.12);
  text-decoration: none;
}
.article-details-wrap .smp-practise__link:hover .smp-practise__arrow { transform: translate(3px, -50%); }
.article-details-wrap .smp-practise__link:focus-visible {
  outline: 2px solid #087b75;
  outline-offset: 2px;
}
.article-details-wrap .smp-practise__enc { margin: 10px 0 0; }
.article-details-wrap .smp-practise__enc .smp-practise__link {
  background: #fbf7ef;
  border-color: #eadfca;
}
.article-details-wrap .smp-practise__enc .smp-practise__link:hover,
.article-details-wrap .smp-practise__enc .smp-practise__link:focus-visible { border-color: #087b75; }
@media (min-width: 768px) {
  .article-details-wrap .smp-practise { padding: 26px 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-details-wrap .smp-practise__link,
  .article-details-wrap .smp-practise__arrow { transition: none; }
}

/* Homepage Metrics (SimpleMed+ embed) */
.smp-home-metrics {
  width: 100%;
}

.smp-metrics-frame {
  width: 100%;
  display: block;
  border: 0;
  height: 220px;
  overflow: hidden;
}

@media (max-width: 639px) {
  .smp-metrics-frame {
    height: 664px;
  }
}

/* Reach band above the homepage metrics: deep teal with a dotted world map
 * (images/world-dots.svg, Natural Earth 110m land). px: the template root is 10px. */
.sm-reach {
  position: relative;
  overflow: hidden;
  background: #012325;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  padding: 92px 24px;
}
.sm-reach .sm-reach__map {
  position: absolute;
  top: 50%;
  right: -4%;
  width: min(940px, 78%);
  max-width: none;
  height: auto;
  opacity: .2;
  transform: translateY(-50%);
  pointer-events: none;
}
.sm-reach__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: 48px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.sm-reach h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.sm-reach__intro p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
}
.sm-reach__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.sm-reach__figures > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 4px 16px 4px 22px;
  border-left: 1px solid rgba(3, 204, 189, .3);
}
.sm-reach__figures dd {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}
.sm-reach__figures dt {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .sm-reach__inner { grid-template-columns: 1fr; gap: 36px; }
  .sm-reach__intro { max-width: 600px; }
}
@media (max-width: 767px) {
  /* the 100px spacer section above the band is hidden-xs, so the band needs its own gap below the subject tiles */
  .sm-reach { padding: 64px 20px; margin-top: 40px; }
  .sm-reach .sm-reach__map { top: 24px; right: -30%; width: 150%; opacity: .14; transform: none; }
  .sm-reach__inner { grid-template-columns: 1fr; gap: 32px; }
  .sm-reach__figures { grid-template-columns: 1fr; }
  .sm-reach__figures > div { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(3, 204, 189, .3); }
}
/* template.css pulls the statistics section up 70px (!important); after the
 * reach band that overlap ate the band's bottom padding and sat it off-centre. */
body.itemid-437 #sp-page-builder .sm-reach + #section-id-1502348035280 {
  margin-top: 0 !important;
}

/* SimpleMed+ showcase at the foot of the homepage: a full-width band in the
 * SimpleMed+ palette (deep green on warm section cream) with a static preview
 * of a real free question drawn like the Plus question card.
 * px, not rem: the template root is 10px. */
.sm-plus-home-promo {
  --smp-deep: #0f3d2e;
  --smp-mid: #1b6048;
  --smp-success: #176245;
  --smp-page: #f7f3eb;
  --smp-surface: #fffcf6;
  --smp-section: #efe8da;
  --smp-border: #ddd4c5;
  --smp-text: #24332d;
  --smp-muted: #3d4b45;
  background: var(--smp-section);
  color: var(--smp-text);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  padding: 88px 24px 96px;
}
.sm-plus-home-promo__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.sm-plus-home-promo__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--smp-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.sm-plus-home-promo__logo { width: 34px; height: auto; }
.sm-plus-home-promo h2 {
  margin: 0 0 16px;
  color: var(--smp-deep);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.sm-plus-home-promo__text {
  margin: 0 0 22px;
  color: var(--smp-muted);
  font-size: 16px;
  line-height: 1.65;
}
.sm-plus-home-promo__points {
  display: grid;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  color: var(--smp-text);
  font-size: 15px;
  line-height: 1.45;
}
.sm-plus-home-promo__points li {
  position: relative;
  padding-left: 30px;
}
.sm-plus-home-promo__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--smp-deep);
}
.sm-plus-home-promo__points li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sm-plus-home-promo__cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--smp-deep);
  box-shadow: 0 10px 22px -14px rgba(15, 61, 46, .9);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
  transition: background-color 160ms ease;
}
.sm-plus-home-promo__cta:hover,
.sm-plus-home-promo__cta:focus {
  background: var(--smp-mid);
}
.sm-plus-home-promo__cta:focus-visible {
  outline: 3px solid var(--smp-deep);
  outline-offset: 3px;
}

/* The question card: Plus header strip, cream surface, A-E option rows. */
.sm-plus-home-promo__question {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--smp-border);
  border-radius: 18px;
  background: var(--smp-surface);
  box-shadow: 0 24px 48px -28px rgba(15, 61, 46, .45);
}
.sm-plus-home-promo__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  white-space: nowrap;
  padding: 13px 22px;
  background: var(--smp-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.sm-plus-home-promo__bar span:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #e0b453;
  vertical-align: 1px;
}
.sm-plus-home-promo__body {
  padding: 22px 22px 20px;
}
.sm-plus-home-promo__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--smp-muted);
  font-size: 13px;
  line-height: 1;
}
.sm-plus-home-promo__pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: #e3efe9;
  color: var(--smp-success);
  font-weight: 700;
}
.sm-plus-home-promo__stem {
  margin: 0 0 18px;
  color: var(--smp-text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
}
.sm-plus-home-promo__options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sm-plus-home-promo__options li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--smp-border);
  border-radius: 12px;
  background: var(--smp-surface);
  color: var(--smp-text);
  font-size: 14px;
  line-height: 1.4;
}
.sm-plus-home-promo__key {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--smp-section);
  color: var(--smp-deep);
  font-size: 13px;
  font-weight: 700;
}
.sm-plus-home-promo__options li.is-correct {
  border-color: var(--smp-success);
  background: #f1f8f3;
  box-shadow: 0 0 0 1px var(--smp-success);
}
.sm-plus-home-promo__options li.is-correct .sm-plus-home-promo__key {
  background: var(--smp-success);
  color: #fff;
}
.sm-plus-home-promo__question figcaption {
  padding: 14px 22px 16px;
  border-top: 1px solid var(--smp-border);
  background: var(--smp-page);
  color: var(--smp-muted);
  font-size: 14px;
  line-height: 1.5;
}
.sm-plus-home-promo__question figcaption strong {
  color: var(--smp-success);
}

@media (max-width: 991.98px) {
  .sm-plus-home-promo { padding: 64px 20px 72px; }
  .sm-plus-home-promo__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 600px; }
}
@media (max-width: 575.98px) {
  .sm-plus-home-promo { padding: 52px 16px 60px; }
  .sm-plus-home-promo h2 { font-size: 26px; }
  .sm-plus-home-promo__cta { width: 100%; justify-content: center; padding-inline: 18px; font-size: 15px; text-align: center; }
  .sm-plus-home-promo__bar { font-size: 12px; }
  .sm-plus-home-promo__bar,
  .sm-plus-home-promo__body,
  .sm-plus-home-promo__question figcaption { padding-inline: 16px; }
  .sm-plus-home-promo__stem { font-size: 17px; }
}

/* The showcase is inserted by script at the end of the page content; hold
 * its measured height until then so nothing below it moves. */
/* Re-measured for the longer answer caption (2026-10): the tallest card in each band. */
body.itemid-437 { --smp-showcase-h: 724px; }
@media (max-width: 1199.98px) { body.itemid-437 { --smp-showcase-h: 736px; } }
@media (max-width: 991.98px) { body.itemid-437 { --smp-showcase-h: 1052px; } }
@media (max-width: 575.98px) { body.itemid-437 { --smp-showcase-h: 1151px; } }
body.itemid-437 #sp-page-builder .page-content:not(:has(.sm-plus-home-promo))::after {
  content: "";
  display: block;
  height: var(--smp-showcase-h);
}
@media (min-width: 576px) {
  body.itemid-437 .sm-plus-home-promo { min-height: var(--smp-showcase-h); }
}

/* Contact Us (SP Page Builder Ajax Contact): improve typed text contrast */
.sppb-addon-ajax-contact .sppb-ajaxt-contact-form .sppb-form-group input:not(.sppb-form-check-input),
.sppb-addon-ajax-contact .sppb-ajaxt-contact-form .sppb-form-group textarea {
  color: #111827 !important;
}

.sppb-addon-ajax-contact .sppb-ajaxt-contact-form .sppb-form-group input:not(.sppb-form-check-input)::placeholder,
.sppb-addon-ajax-contact .sppb-ajaxt-contact-form .sppb-form-group textarea::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

.sppb-addon-ajax-contact .sppb-ajaxt-contact-form .sppb-form-group input:not(.sppb-form-check-input):focus,
.sppb-addon-ajax-contact .sppb-ajaxt-contact-form .sppb-form-group textarea:focus {
  outline: 2px solid rgba(0, 167, 167, 0.35);
  outline-offset: 1px;
}
/* SEO: visually-hidden but crawlable */ .sm-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* CWV: expose the page-title/LCP image as an early, dimensioned HTML resource.
   The former inline CSS background was discovered late and could not carry a
   fetch-priority hint. */
.sp-page-title.smp-page-title-has-media {
  position: relative;
  background-image: none !important;
}
.sp-page-title .smp-page-title-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-page-title.smp-page-title-has-media > .container {
  position: relative;
  z-index: 1;
}

/* Modern decorative title overlay, with the original PNG as fallback. */
.preset4 .sp-page-title .sm-page-title-heading::before {
  background-image: url("../png/preset4-title-half-img.png");
  background-image: image-set(
    url("../avif/preset4-title-half-img.avif") type("image/avif"),
    url("../webp/preset4-title-half-img.webp") type("image/webp"),
    url("../png/preset4-title-half-img.png") type("image/png")
  );
}

/* Server-side Core preview: the public body is fully visible. */
.smp-core-body .accordion-heading { font-size: 16px; line-height: inherit; margin: 0; }
.smp-core-body .accordion-heading, .smp-core-body .accordion-body, .smp-core-body .accordion-inner { background-color: #fff; }
.smp-core-body .accordion-toggle { display: flex; align-items: center; min-height: 44px; color: inherit; }
.smp-core-body .accordion-toggle:focus-visible { outline: 3px solid #087b75; outline-offset: 2px; }
.smp-core-body .smp-article-accordion > .accordion-body[hidden] { display: none !important; }
/* Signed-in readers get the rest of the article inside div.smp-core-private
 * (corepreview.php cutFrom), so the Quiz section is no longer a direct
 * sibling of the Core section; space the wrapper instead. */
.smp-core-body [data-smp-section] + [data-smp-section],
.smp-core-body [data-smp-section] + .smp-core-private,
.smp-core-body .smp-core-account + [data-smp-section] { margin-top: 18px; }
/* Any collapsed section right before the card (Core, an OSCE station, an
   Abstract-only note) has no text to fade, so the card stops overlapping it. */
.smp-core-closed .smp-core-account,
.smp-core-body .smp-article-accordion:has(> .accordion-body[hidden]) + .smp-core-account { margin-top: 18px; padding-top: 0; background: none; }
.smp-core-body [id] { scroll-margin-top: var(--sm-header-offset, 90px); }
@media print {
  .smp-core-body .smp-article-accordion > .accordion-body[hidden] { display: block !important; }
}
.smp-core-body .collapse,
.smp-core-body .rl_sliders-body,
.smp-core-body .accordion-body {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
}
/* Registration wall, restored from the pre-2026-09-29 design. The card sits in
   normal flow after the public half of the Core, pulled up so a soft gradient
   fades the last visible lines (newspaper-style). Gated text is never in the HTML. */
.smp-core-account {
  position: relative;
  margin-top: -110px;
  padding: 110px 16px 28px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #fff 100px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.smp-core-loaded .smp-core-account { display: none; }
.smp-gate-card {
  pointer-events: auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 30px 34px;
  background: var(--sm-surface-cream);
  border: 1px solid #dbe7e3;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 39, 32, 0.12);
  text-align: center;
  font-family: inherit;
}
.smp-gate-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #087b75;
}
.smp-gate-title {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.smp-gate-text {
  margin: 0 auto 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
}
.smp-gate-plus {
  margin: 0 auto 18px;
  max-width: 340px;
  padding: 14px 18px;
  text-align: left;
  background: #f5faf8;
  border: 1px solid #dbeae5;
  border-radius: 12px;
}
.smp-gate-plus-lead {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #374151;
}
.smp-gate-plus-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.smp-gate-plus-list li {
  position: relative;
  margin: 0 0 5px;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.4;
  color: #374151;
}
.smp-gate-plus-list li:last-child { margin-bottom: 0; }
.smp-gate-plus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00cdbd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.smp-gate-trust {
  margin: 16px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.smp-gate-status { margin: 12px 0 0; font-size: 14px; color: #374151; }
.smp-gate-status:empty { display: none; }
.smp-gate-status:empty + .smp-gate-retry { display: none; }
.smp-gate-retry { margin-top: 10px; min-height: 44px; color: #065f5b; background: transparent; border: 1px solid #087b75; border-radius: 10px; padding: 8px 14px; }
.smp-gate-retry:focus-visible { outline: 3px solid #087b75; outline-offset: 3px; }
.smp-core-account .smp-gate-btn { white-space: normal; text-align: center; min-height: 44px; }
.smp-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.smp-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 13px 26px;
  background: #087b75; /* was #00a7a7 — white 16px text needs 4.5:1 (WCAG 1.4.3) */
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: none;
  transition: background-color 160ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.smp-gate-btn:hover,
.smp-gate-btn:focus-visible {
  background: #065f5b; /* was #008c8c — WCAG 1.4.3 */
  transform: translateY(-1px);
  box-shadow: none;
  text-decoration: none;
}
.smp-gate-btn:focus-visible {
  outline: 3px solid rgba(0, 167, 167, 0.4);
  outline-offset: 2px;
}
.smp-gate-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: #087b75; /* was #00a7a7 (3.0:1 on white) — WCAG 1.4.3 */
  text-decoration: none;
}
.smp-gate-login:hover,
.smp-gate-login:focus-visible { color: #065f5b; text-decoration: underline; } /* was #008c8c — WCAG 1.4.3 */
@media (max-width: 767.98px) {
  .smp-gate-card { padding: 24px 18px 26px; }
}
@media (max-width: 600px) {
  .smp-gate-title { font-size: 23px; }
  .smp-core-account .smp-gate-btn { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .smp-core-account .smp-gate-btn { transition: none; }
}

/* ===========================================================================
   End-of-article premium CTA (NUDGE #7). Shown to everyone, rendered from the
   article template, independent of the {smplus_quiz_cta} embed token. Matches
   the homepage promo / gate-card aesthetic (teal #00cdbd brand). */
.sm-plus-article-cta {
  /* Shown only to logged-in SimpleMed+ users; body.smp-authed is set by the auth probe. */
  display: none;
  width: 100%;
  margin: 28px 0 24px;
}
body.smp-authed .sm-plus-article-cta {
  display: block;
}
.sm-plus-article-cta__inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  box-sizing: border-box;
  padding: 26px 32px;
  background: linear-gradient(135deg, #e9f9f8 0%, #f6fdfc 100%);
  border: 1px solid #d7f0ef;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 34px rgba(0, 167, 167, 0.1);
}
.sm-plus-article-cta__inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #00cdbd, #00a7a7);
}
.sm-plus-article-cta__logo {
  flex: 0 0 auto;
  height: 54px;
  width: auto;
  display: block;
}
.sm-plus-article-cta__content {
  flex: 1 1 auto;
  min-width: 0;
}
.sm-plus-article-cta__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #087b75; /* was #00a7a7 (3.0:1 on white) — WCAG 1.4.3 */
}
.sm-plus-article-cta__title {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.sm-plus-article-cta__text {
  margin: 0 0 18px;
  max-width: none;
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
}
.sm-plus-article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.sm-plus-article-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: #087b75; /* was #00a7a7 — white 16px text needs 4.5:1 (WCAG 1.4.3) */
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 167, 167, 0.22);
  transition: background-color 160ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.sm-plus-article-cta__btn:hover,
.sm-plus-article-cta__btn:focus-visible {
  background: #065f5b; /* was #008c8c — WCAG 1.4.3 */
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 167, 167, 0.26);
  text-decoration: none;
}
.sm-plus-article-cta__btn:focus-visible {
  outline: 3px solid rgba(0, 167, 167, 0.4);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .sm-plus-article-cta__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 20px; }
  .sm-plus-article-cta__logo { height: 44px; }
  .sm-plus-article-cta__title { font-size: 20px; }
  .sm-plus-article-cta__btn { width: 100%; }
  .sm-plus-article-cta__actions { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-plus-article-cta__btn { transition: none; }
  .sm-plus-article-cta__btn:hover,
  .sm-plus-article-cta__btn:focus-visible { transform: none; }
}

/* ===========================================================================
   Hamburger menu: large branded "Premium" (SimpleMed Plus) button + Account.
   Both pinned to the top; Account injected only when logged in.
   =========================================================================== */
.offcanvas-inner ul.nav.menu li.smp-premium-item {
  list-style: none;
  margin: 2px 0 12px;
  border: 0 !important;
}
.offcanvas-inner ul.nav.menu li.smp-premium-item > a.smp-premium-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 0;
  background: linear-gradient(135deg, #087b75 0%, #076f6a 58%, #065f5b 100%); /* was #00c2b8→#008c8c — white 16px text needs 4.5:1 (WCAG 1.4.3) */
  box-shadow: 0 10px 24px rgba(0, 140, 140, 0.32);
  color: #ffffff !important;
  text-decoration: none !important;
  transition: filter 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}
.offcanvas-inner ul.nav.menu li.smp-premium-item > a.smp-premium-btn:hover,
.offcanvas-inner ul.nav.menu li.smp-premium-item > a.smp-premium-btn:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 140, 140, 0.4);
  color: #ffffff !important;
}
.smp-premium-logo { height: 30px; width: auto; flex-shrink: 0; display: block; }
.smp-premium-copy { display: flex; flex-direction: column; line-height: 1.12; flex: 1 1 auto; min-width: 0; }
.smp-premium-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffe08a;
}
.smp-premium-title { font-size: 17px; font-weight: 800; color: #ffffff; }
.smp-premium-arrow { font-size: 20px; line-height: 1; color: rgba(255, 255, 255, 0.85); flex-shrink: 0; }

/* Account menu item (shown only when logged in) */
.offcanvas-inner ul.nav.menu li.smp-account-item > a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.smp-account-item > a .fa { width: 18px; text-align: center; color: #087b75; } /* was #00a7a7 — WCAG 1.4.11 */

/* ===========================================================================
   Homepage static hero: scale to exactly the viewport (full width + height),
   clean on mobile and desktop. Scoped to the home page (itemid-437).
   =========================================================================== */
body.itemid-437 .sppb-slider-fullwidth-wrapper,
body.itemid-437 .sppb-slider-fullwidth-wrapper .sppb-slider-item-wrapper,
body.itemid-437 .sppb-slider-fullwidth-wrapper .sm-home-static-hero__artwork,
body.itemid-437 .sppb-slider-fullwidth-wrapper .sppb-slideshow-fullwidth-item,
body.itemid-437 .sppb-slider-fullwidth-wrapper .sppb-slideshow-fullwidth-item-bg {
  height: 100vh !important;
  min-height: 100vh !important;   /* override the template's 865px floor so the slide == viewport */
}
body.itemid-437 .sppb-slider-fullwidth-wrapper .sppb-slideshow-fullwidth-item-bg {
  background-size: cover !important;
  background-position: center center !important;
  padding-top: 0 !important;        /* template's 260px pushed the title downward */
  display: flex !important;
  align-items: center;              /* vertical centre */
  justify-content: center;          /* horizontal centre */
  width: 100%;
}
/* Legacy slide titles are omitted server-side on the homepage. The single
   semantic hero lives above one static artwork composition. */
body.itemid-437 .sppb-slideshow-fullwidth-item .bottom-slider-img { z-index: 2; }

/* Homepage conversion layer: keep the image-led full-viewport hero, but give
 * every visitor an immediate value proposition and two concrete next steps. */
.sm-home-hero-cta {
  position: relative;
  z-index: 7;
  height: auto;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 42px;
  pointer-events: none;
  text-align: center;
}
/* Soft scrim behind the copy: keeps white text legible over the pale sky
 * without the heavy halo a large text-shadow paints around every glyph. */
.sm-home-hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 54% 38% at 50% 50%, rgba(0, 36, 40, .52) 0%, rgba(0, 36, 40, .32) 50%, rgba(0, 36, 40, 0) 100%);
  pointer-events: none;
}
.sm-home-hero-cta__panel {
  width: min(760px, 100%);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 36, 40, .45);
  animation: sm-home-hero-enter .65s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sm-home-hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.sm-home-hero-cta__eyebrow {
  margin: 0 0 16px !important;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sm-home-hero-cta h1 {
  margin: 0 !important;
  color: #fff;
  font-size: clamp(64px, 9vw, 136px) !important;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.sm-home-hero-cta__copy {
  max-width: 600px;
  margin: 24px auto 0 !important;
  color: #fff;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: balance;
}
.sm-home-hero-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  pointer-events: auto;
}
.sm-home-hero-cta__actions a {
  min-width: 168px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.sm-home-hero-cta__primary {
  background: var(--sm-surface-cream);
  box-shadow: 0 10px 24px -12px rgba(0, 20, 24, .6);
  color: #065f5b;
  text-shadow: none;
}
.sm-home-hero-cta__secondary {
  background: rgba(0, 42, 48, .32);
  color: #fff;
  backdrop-filter: blur(4px);
}
.sm-home-hero-cta__actions a:hover,
.sm-home-hero-cta__actions a:focus {
  transform: translateY(-1px);
  text-decoration: none;
}
.sm-home-hero-cta__primary:hover,
.sm-home-hero-cta__primary:focus { background: #e7fffc; color: #044d49; }
.sm-home-hero-cta__secondary:hover,
.sm-home-hero-cta__secondary:focus { background: rgba(0, 42, 48, .72); color: #fff; }
.sm-home-hero-cta__actions a:focus-visible {
  outline: 3px solid #f4d35e;
  outline-offset: 4px;
}
.sm-home-hero-cta__read-more {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 42, 48, .16);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  pointer-events: auto;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.sm-home-hero-cta__read-more span {
  font-size: 18px;
  line-height: 1;
}
.sm-home-hero-cta__read-more:hover,
.sm-home-hero-cta__read-more:focus {
  color: #fff;
  background: rgba(0, 42, 48, .62);
  text-decoration: none;
  transform: translateY(2px);
}
.sm-home-hero-cta__read-more:focus-visible {
  outline: 3px solid #f4d35e;
  outline-offset: 4px;
}
body.itemid-437 #section-id-1502194292492 {
  scroll-margin-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html:has(body.itemid-437) { scroll-behavior: smooth; }
}

@supports (height: 100dvh) {
  .sm-home-hero-cta { min-height: 100dvh; }
}

@media (max-width: 767.98px) {
  .sm-home-hero-cta { padding: 76px 20px 34px; }
  .sm-home-hero-cta h1 { font-size: clamp(46px, 14vw, 66px) !important; }
  .sm-home-hero-cta::before { background: radial-gradient(ellipse 80% 42% at 50% 42%, rgba(0, 36, 40, .5) 0%, rgba(0, 36, 40, .3) 55%, rgba(0, 36, 40, 0) 100%); }
  .sm-home-hero-cta__eyebrow { font-size: 11.5px; letter-spacing: .12em; margin-bottom: 12px !important; text-wrap: balance; }
  .sm-home-hero-cta__copy { margin-top: 18px !important; line-height: 1.45; }
  .sm-home-hero-cta__actions { margin-top: 24px; flex-direction: column; width: min(100%, 320px); margin-inline: auto; }
  .sm-home-hero-cta__actions a { min-width: 148px; padding-inline: 18px; }
  .sm-home-hero-cta__read-more { margin-top: 14px; }
}
@media (max-height: 600px) {
  .sm-home-hero-cta { padding: 76px 24px 24px; }
  .sm-home-hero-cta h1 { font-size: clamp(32px, 8vh, 48px) !important; }
  .sm-home-hero-cta__eyebrow { font-size: 12px; margin-bottom: 8px !important; }
  .sm-home-hero-cta__copy { font-size: 16px; line-height: 1.35; margin-top: 16px !important; }
  .sm-home-hero-cta__actions { margin-top: 16px; }
  .sm-home-hero-cta__actions a { min-height: 44px; padding-block: 10px; }
  .sm-home-hero-cta__read-more { min-height: 44px; margin-top: 10px; padding-block: 6px; }
}
/* dvh = cleaner on mobile (excludes the dynamic browser chrome) */
@supports (height: 100dvh) {
  body.itemid-437 .sppb-slider-fullwidth-wrapper,
  body.itemid-437 .sppb-slider-fullwidth-wrapper .sppb-slider-item-wrapper,
  body.itemid-437 .sppb-slider-fullwidth-wrapper .sm-home-static-hero__artwork,
  body.itemid-437 .sppb-slider-fullwidth-wrapper .sppb-slideshow-fullwidth-item,
  body.itemid-437 .sppb-slider-fullwidth-wrapper .sppb-slideshow-fullwidth-item-bg {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
}

/* Let the copy plus padding size the static hero; artwork fills that frame. */
body.itemid-437 .sm-home-static-hero {
  position: relative;
  height: auto !important;
}
body.itemid-437 .sm-home-static-hero .sppb-slider-item-wrapper {
  position: absolute;
  inset: 0;
}
body.itemid-437 .sm-home-static-hero .sppb-slider-item-wrapper,
body.itemid-437 .sm-home-static-hero .sm-home-static-hero__artwork,
body.itemid-437 .sm-home-static-hero .sppb-slideshow-fullwidth-item,
body.itemid-437 .sm-home-static-hero .sppb-slideshow-fullwidth-item-bg {
  height: 100% !important;
  min-height: 0 !important;
}

/* Homepage sections: one restrained heading scale and softer surfaces in place
 * of the Page Builder defaults (48px black titles, flat square slabs). Feature
 * panel and subject tile colours stay on their preset map. */
body.itemid-437 #sp-page-builder .sppb-section-title .sppb-title-heading,
body.itemid-437 #sp-page-builder .sppb-addon-text-block h2 {
  color: #17332c !important;
  font-size: clamp(30px, 2.6vw, 40px) !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}
/* "What is SimpleMed?" (owner, 2026-10): one step up from the shared scale above
 * (30 -> 34px on phones and tablets, about 37 -> 43px at 1440). */
body.itemid-437 #section-id-1502194292492 .sppb-section-title .sppb-title-heading {
  /* Below ~370px the floor shrinks with the column (viewport - 30px gutter) so the
   * heading stays on one line instead of wrapping "What is / SimpleMed?". */
  font-size: clamp(min(34px, calc((100vw - 30px) / 10)), 3vw, 46px) !important;
}
/* "written by UK doctors" -> About, "Who Are We?" (hero, intro, SimpleMed+ band,
 * showcase): the section's own teal link, same tone as the intro's other links. */
.sm-doctor-link {
  color: #087b75 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.sm-doctor-link:hover {
  color: #065f5b !important;
  text-decoration-thickness: 2px;
}
.sm-doctor-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}
.sm-home-hero-cta .sm-doctor-link {
  color: #fff !important;
  text-decoration-color: rgba(255, 255, 255, 0.75);
  pointer-events: auto;
}
.sm-home-hero-cta .sm-doctor-link:hover {
  color: #fff !important;
  text-decoration-color: #fff;
}
body.itemid-437 #section-id-1502194292492 .sppb-title-subheading {
  max-width: 760px;
  margin-inline: auto;
  color: #44554f;
  line-height: 1.7;
}
body.itemid-437 #sp-page-builder .sppb-addon-text-block .sppb-addon-content {
  color: #44554f;
  line-height: 1.7;
}
/* The column under the hero is set in the HOME COLUMN block before TYPE SCALE. */
body.itemid-437 #section-id-1612095032570 .sppb-row {
  margin-inline: -12px;
}
body.itemid-437 #section-id-1612095032570 .sppb-row > [class*="sppb-col-"] {
  padding-inline: 12px;
}
/* Labels carry inline sizes (calc(8pt + 0.3vw)) and side margins (1px to
 * 10px) that outgrow the fixed-width tiles; hold them at 14px with an even
 * 8px inset so every label wraps inside its tile. */
body.itemid-437 #section-id-1612095032570 a.sppb-btn-block > div {
  margin-inline: 8px !important;
}
body.itemid-437 #section-id-1612095032570 a.sppb-btn-block > div > span {
  font-size: 14px !important;
}
/* Close the gap between Subjects and the app card: drop the desktop spacer
 * section (two empty columns, 100px of padding) and trim the statistics
 * section's padding to match the rest of the page. */
body.itemid-437 #sp-page-builder #section-id-1770202764277 {
  display: none;
}
body.itemid-437 #sp-page-builder #section-id-1612095032570 {
  padding-bottom: 48px;
}
body.itemid-437 #sp-page-builder #section-id-1502348035280 {
  padding-top: 40px;
  padding-bottom: 24px;
}
body.itemid-437 #section-id-1502194292492 .sppb-row {
  align-items: stretch !important; /* beats .sppb-align-center: equal-height panels */
  row-gap: 16px;
}
body.itemid-437 #section-id-1502194292492 .sppb-column,
body.itemid-437 #section-id-1502194292492 .sppb-column-addons,
body.itemid-437 #section-id-1502194292492 .sppb-addon-wrapper,
body.itemid-437 #section-id-1502194292492 .sppb-addon-wrapper > .clearfix,
body.itemid-437 #section-id-1502194292492 .sppb-addon-feature {
  height: 100%;
}
body.itemid-437 #section-id-1502194292492 .sppb-addon-feature {
  padding: 36px 24px 32px !important;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 42, 40, .06), 0 18px 36px -24px rgba(8, 80, 76, .55);
}
body.itemid-437 #section-id-1502194292492 .sppb-feature-box-title {
  margin: 18px 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}
body.itemid-437 #section-id-1502194292492 .sppb-addon-feature .sppb-addon-text { line-height: 1.6; text-wrap: pretty; }
/* Feature cards: white surfaces with a thin teal rule and teal icon and
 * heading, instead of three solid teal slabs. The icons are a font, so
 * colour alone recolours them. #087b75 is 5.1:1 on white, #44554f 7.9:1. */
body.itemid-437 #section-id-1502194292492 .sppb-addon-feature {
  background: #fff;
  border: 1px solid #b9dbd8;
  color: #44554f;
  box-shadow: 0 1px 2px rgba(15, 42, 40, .04), 0 14px 28px -22px rgba(8, 80, 76, .35);
}
body.itemid-437 #section-id-1502194292492 .sppb-addon-feature .sppb-icon i {
  color: #087b75;
  font-size: 56px;
}
body.itemid-437 #section-id-1502194292492 .sppb-addon-feature .sppb-feature-box-title {
  color: #087b75;
}
body.itemid-437 #section-id-1502194292492 .sppb-addon-feature .sppb-addon-text,
body.itemid-437 #section-id-1502194292492 .sppb-addon-feature .sppb-addon-text * {
  color: #44554f;
}
/* Copy sits level with its illustration instead of hanging from the top. */
body.itemid-437 #section-id-1555854444866 .sppb-row,
body.itemid-437 #section-id-1575409616830 .sppb-row,
body.itemid-437 #section-id-1575410237265 .sppb-row {
  align-items: center;
}
body.itemid-437 #section-id-1612095032570 a.sppb-btn-block,
body.itemid-437 #section-id-1575394022587 a.sppb-btn-block {
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
body.itemid-437 #section-id-1612095032570 a.sppb-btn-block:hover,
body.itemid-437 #section-id-1612095032570 a.sppb-btn-block:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(8, 80, 76, .7);
}

/* --- Article image lightbox (modern, dependency-free; SEO-safe progressive enhancement) --- */
[itemprop="articleBody"] img.smp-zoomable,[itemprop="articleBody"] svg.smp-zoomable{cursor:zoom-in}
.smp-lb{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;gap:8px;padding:4vmin 4vmin 96px;background:rgba(6,10,14,.9);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease}
.smp-lb.is-open{opacity:1;visibility:visible}
.smp-lb-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;max-width:92vw;max-height:80vh;transform:scale(.96);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.smp-lb.is-open .smp-lb-fig{transform:scale(1)}
.smp-lb-fig img{max-width:90vw;max-height:68vh;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 30px 90px rgba(0,0,0,.55);background:var(--sm-surface-cream);transform-origin:center center;transition:transform .15s ease;will-change:transform;touch-action:none}
.smp-lb-fig img.is-interacting{transition:none}
.smp-lb-cap{margin:0;color:#e8eef4;font-size:14px;line-height:1.45;text-align:center;max-width:760px;opacity:.92}
.smp-lb-x,.smp-lb-nav{border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;border-radius:50%;width:46px;height:46px;display:flex;align-items:center;justify-content:center;line-height:1;transition:background .2s;flex:0 0 auto}
.smp-lb-x:hover,.smp-lb-nav:hover{background:rgba(255,255,255,.26)}
.smp-lb-x{position:absolute;top:14px;right:18px;font-size:26px;z-index:3}
.smp-lb-nav{font-size:40px;z-index:3}
.smp-lb-zoom{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:5px;background:rgba(18,22,26,.74);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:999px;padding:5px;z-index:3}
.smp-lb-zoom button{border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;border-radius:999px;height:32px;min-width:32px;padding:0 10px;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background .2s}
.smp-lb-zoom button:hover{background:rgba(255,255,255,.28)}
.smp-lb-zr{font-size:12px!important;letter-spacing:.02em}
.smp-lb-pct{min-width:46px;text-align:center;color:#e8eef4;font-size:12px;font-variant-numeric:tabular-nums}
@media (max-width:640px){.smp-lb-nav{width:40px;height:40px;font-size:30px}.smp-lb-fig img{max-height:62vh}.smp-lb-zoom button{height:30px;min-width:30px;font-size:15px}}
@media (prefers-reduced-motion:reduce){.smp-lb,.smp-lb-fig,.smp-lb-fig img{transition:none}}

/* Site logo: horizontal lockup (icon + wordmark, no tagline); height-capped for the
   header bar so it stays legible on desktop and mobile. !important beats the inline
   template-params mobile rule. */
#sp-header .logo img{max-height:44px !important;max-width:min(55vw,244px) !important;width:auto !important;height:auto !important;object-fit:contain}
@media (max-width:991.98px){ #sp-header .logo img{max-height:34px !important} }

/* Mobile/tablet header (<=991.98px): the Helix "custom code" block in the template
   params makes #sp-header .row a flexbox with gap:12px while its three children stay
   Bootstrap col-4 (33.33% each): 3*33.33% + gap > 100%, so the social/search column
   (#sp-top1) wraps onto extra rows and the top bar looks broken on phones. This file
   loads after that inline CSS, so these !important rules win: force one nowrap row,
   size each column to its content (override col-4 33% and template.css @479 18%/47%),
   push the logo to the left, and keep the social icons + search inline. */
@media (max-width:991.98px){
  #sp-header .row{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
  }
  #sp-header .row > [class*="col-"]{
    flex:0 0 auto !important;
    width:auto !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  #sp-logo{margin-right:auto !important;}
  #sp-top1 .sp-column{display:flex !important;align-items:center;gap:10px;flex-wrap:nowrap !important;}
  #sp-top1 ul.social-icons{display:flex !important;flex-wrap:nowrap !important;margin:0 !important;align-items:center;}
  #sp-top1 .rhino-top-search{margin:0 !important;}
}

/* F6-mobile-hide-social: on phones the header is tight (logo + hamburger + 3 social + search),
   so hide the social icons there; the hamburger menu + search stay. */
@media (max-width:767.98px){
  #sp-header #sp-top1 ul.social-icons{ display:none !important; }
}


/* About grids (collapsed to one column each; flex so cards fill uniform rows, last row centred) */
#section-id-1502875933729 .sppb-column-addons,
#section-id-1612027457394 .sppb-column-addons{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;align-items:flex-start}
#section-id-1502875933729 .sppb-column-addons > .sppb-addon-wrapper{flex:0 0 calc(33.333% - 16px);max-width:calc(33.333% - 16px)}
@media (min-width:992px){
  #section-id-1612027457394 .sppb-column-addons{gap:20px}
  #section-id-1612027457394 .sppb-column-addons > .sppb-addon-wrapper{flex:0 0 calc(20% - 17px);max-width:calc(20% - 17px)}
  #section-id-1612027457394 .sm-contributor-photo{height:150px!important;width:150px!important}
}
@media (min-width:601px) and (max-width:991px){
  #section-id-1612027457394 .sppb-column-addons > .sppb-addon-wrapper{flex:0 0 calc(33.333% - 16px);max-width:calc(33.333% - 16px)}
}
@media (max-width:600px){
  #section-id-1502875933729 .sppb-column-addons > .sppb-addon-wrapper,
  #section-id-1612027457394 .sppb-column-addons > .sppb-addon-wrapper{flex:0 0 calc(50% - 12px);max-width:calc(50% - 12px)}
}

/* Desktop header (>=992px): the template-params custom CSS turns #sp-header .row into a
   flexbox with a gap, but the three columns are still col-lg 2 + 7 + 3 = 100%; adding the
   gap pushes past 100% so the social/search column (#sp-top1) wraps onto a second line and
   drops down into the hero (the logo stays up top, the nav floats below). The mobile fix
   above only covers <=991.98px. Mirror it on desktop: one nowrap row, columns sized to
   content, logo pushed left, hamburger + social + search kept inline top-right. */
/* F5-desktop-header-lockup */
@media (min-width:992px){
  #sp-header .row{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
  }
  #sp-header .row > [class*="col-"]{
    flex:0 0 auto !important;
    width:auto !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  #sp-logo{margin-right:auto !important;}
  #sp-menu .sp-column{display:flex !important;align-items:center;}
  #sp-top1 .sp-column{display:flex !important;align-items:center;gap:16px;flex-wrap:nowrap !important;justify-content:flex-end;}
  #sp-top1 ul.social-icons{display:flex !important;flex-wrap:nowrap !important;margin:0 !important;align-items:center;}
  #sp-top1 .rhino-top-search{margin:0 !important;}
}

/* F7-mobile-search-gutter: the mobile one-row header fix zeroes header column padding, so the
   rightmost column (#sp-top1 / search) hugs the screen edge — restore a small right gutter. */
@media (max-width:991.98px){
  #sp-header #sp-top1 { padding-right: 12px !important; }
}

/* ===========================================================================
   Search overlay polish (cosmetic only — no markup/behaviour change).
   Stock Rhino full-screen search rendered a 100px LEFT-pinned input, a
   right-aligned hint, and a contact block squeezed into a 184px column (one
   word per line) that overflowed the clipped lower half. This centres the
   field + hint and lays the contact block out as one readable centred column.
   NOTE: `.search-upper-part` IS the `.search-wrap` element (single div with
   both classes), so the field is centred by making the <form> a flex row.
   The overlay still opens/closes and submits exactly as before.
   ========================================================================== */
/* -- upper half: centred field + hint -- */
.top-search-input-wrap .search-upper-part {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.top-search-input-wrap .search-upper-part form {
  display: flex;
  justify-content: center;   /* guarantees the field centres regardless of width quirks */
}
.top-search-input-wrap .search.rhino-top-search {
  float: none !important;
  width: min(90%, 760px);
  max-width: none;
  margin: 0;
}
.top-search-input-wrap .search.rhino-top-search input {
  font-size: clamp(30px, 6.5vw, 68px);
  text-align: center;
  border-width: 0 0 3px;
  padding-bottom: 10px;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.top-search-input-wrap .search.rhino-top-search input::-webkit-input-placeholder { opacity: 0.85; font-weight: 300; }
.top-search-input-wrap .search.rhino-top-search input::-moz-placeholder { opacity: 0.85; font-weight: 300; }
.top-search-input-wrap .search.rhino-top-search input:-ms-input-placeholder { opacity: 0.85; font-weight: 300; }
.top-search-input-wrap .search-info-text {
  text-align: center;
  margin-top: 18px;
  opacity: 0.8;
  font-weight: 500;
}

/* -- lower half: centred, readable contact block (was clipped/narrow) -- */
.top-search-input-wrap .search-bottom-part {
  padding: 0 24px;
  overflow-y: auto;                 /* never clip if content is tall */
}
.top-search-input-wrap .search-bottom-part .container {
  max-width: 640px;
  margin: 0 auto;
}
.top-search-input-wrap .search-bottom-part .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
/* let each populated column breathe instead of collapsing to ~184px */
.top-search-input-wrap .search-bottom-part [class*="col-"] {
  float: none;
  width: auto;
  max-width: 100%;
  text-align: center;
}
/* the empty search-bottom-1 position adds a 0-width column + gap — hide it */
.top-search-input-wrap .search-bottom-part [class*="col-"]:empty { display: none; }
.top-search-input-wrap .search-bottom-part .feedback-contact-form .sppb-addon-feature .sppb-media {
  display: inline-flex;
  align-items: center;
  text-align: left;
  gap: 12px;
}
.top-search-input-wrap .search-bottom-part .feedback-contact-form .sppb-addon-feature .sppb-media .sppb-media-body {
  white-space: normal;
  min-width: 220px;                 /* stops the one-word-per-line wrap */
}

@media (max-width: 767.98px){
  .top-search-input-wrap .search.rhino-top-search { width: 88%; }
  .top-search-input-wrap .search-info-text { font-size: 11px; margin-top: 14px; }
  .top-search-input-wrap .search-bottom-part .feedback-contact-form .sppb-addon-feature .sppb-media .sppb-media-body { min-width: 0; }
}

/* Native app (html.smp-native-app, set pre-paint in index.php from the
   SimpleMedPlusNative UA): native navigation replaces cross-site/web chrome,
   and app mode never presents web cookie controls or the end-of-article
   "Access more on SimpleMed+" pill. The visible dark footer (logo + site
   links) is section#sp-bottom; #sp-footer is only the copyright strip. */
html.smp-native-app #sp-bottom,
html.smp-native-app #sp-footer,
html.smp-native-app .smplus-side-switch,
html.smp-native-app .sm-plus-article-cta,
html.smp-native-app #sm-consent-banner,
html.smp-native-app #sm-consent-settings {
  display: none !important;
}

/* ===========================================================================
   Google Play app promo (injected by index.php, web only — never in the
   native app): hamburger-menu entry on every page + homepage card above
   the SimpleMed+ cross-sell. Card styling mirrors the SimpleMed+ landing
   promo (soft rounded border on off-white).
   =========================================================================== */
.offcanvas-inner ul.nav.menu li.smp-app-item { list-style: none; margin: 14px 16px 10px; border: 0 !important; }
.offcanvas-inner ul.nav.menu li.smp-app-item > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none !important;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.offcanvas-inner ul.nav.menu li.smp-app-item > a:hover,
.offcanvas-inner ul.nav.menu li.smp-app-item > a:focus-visible {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.06);
}
.smp-app-item-icon { flex-shrink: 0; display: block; width: 26px; height: 26px; }
.smp-app-item-icon svg { width: 100%; height: 100%; display: block; }
.smp-app-item-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.smp-app-item-title { font-size: 14.5px; font-weight: 700; color: #ffffff; }
.smp-app-item-sub { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: normal; color: #9fb0ac; }

#smp-app-band { background: var(--sm-page-cream); padding: 8px 24px 40px; }
#smp-app-band .smp-app-band-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 32px 40px;
  background: var(--sm-surface-cream);
  border: 1px solid #dfe7ed;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 20px 40px -28px rgba(15, 23, 42, .28);
}
#smp-app-band .smp-app-band-copy { flex: 1 1 auto; }
#smp-app-band .smp-app-band-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #087b75; /* was #00a7a7 (3.0:1 on white) — WCAG 1.4.3 */
}
#smp-app-band h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: #17332c;
  text-wrap: balance;
}
#smp-app-band .smp-app-band-copy > p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #44554f;
}
#smp-app-band .smp-app-band-badges {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#smp-app-band .smp-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #17332c;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(23, 51, 44, 0.28);
  transition: filter 150ms ease, transform 120ms ease;
}
#smp-app-band .smp-play-badge:hover,
#smp-app-band .smp-play-badge:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
#smp-app-band .smp-play-badge svg { width: 30px; height: 30px; display: block; }
#smp-app-band .smp-play-badge-copy { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
#smp-app-band .smp-play-badge-kicker {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
#smp-app-band .smp-play-badge-title { font-size: 19px; font-weight: 800; }
#smp-app-band .smp-ios-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid #cfdbd6;
  border-radius: 10px;
  background: var(--sm-section-cream);
  font-size: 13.5px;
  color: #6b7a74;
}
#smp-app-band .smp-ios-soon .fa { font-size: 17px; }
@media (max-width: 767.98px) {
  #smp-app-band { padding: 8px 16px 32px; }
  #smp-app-band .smp-app-band-inner { flex-direction: column; text-align: center; gap: 28px; padding: 28px 22px; }
  #smp-app-band h2 { font-size: 22px; }
}

/* Band typography: match the site's Poppins (the helix custom-font rules cover
   template/SPPB selectors but not injected markup, so the band fell back to the
   default body font and looked out of place). */
#smp-app-band h2,
#smp-app-band p,
#smp-app-band .smp-play-badge,
#smp-app-band .smp-ios-soon {
  font-family: Poppins, sans-serif;
}

/* 2026-07 GSC/CWV recovery: restrained article layout, accessible controls,
   consent-first analytics, and exact-size logo delivery. */
picture.smp-logo-picture { display: inline-block; line-height: 0; }
picture.smp-logo-picture > img { display: block; height: auto; }

.offcanvas-menu-toggler,
.close-offcanvas,
.scrollup {
  border: 0;
  font: inherit;
}
.offcanvas-menu-toggler { background: transparent; padding: 0; }
.close-offcanvas { background: transparent; }
.scrollup { padding: 0; }

.com-content.view-article .article-details-wrap [itemprop="articleBody"] {
  color: #273630;
  font-size: 14px;
  line-height: 1.68;
}
.com-content.view-article .article-details-wrap [itemprop="articleBody"] a {
  color: #087b75;
}

.sm-consent {
  position: fixed;
  z-index: 10050;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 16px;
  color: #eef7f4;
  background: #17332c;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15,23,42,.24);
  font-size: 13px;
  line-height: 1.4;
}
.sm-consent[hidden], .sm-consent-settings[hidden] { display: none !important; }
.sm-consent__copy { display: flex; flex-direction: column; gap: 2px; }
.sm-consent__copy strong { color: #fff; font-size: 14px; }
.sm-consent__copy a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.sm-consent__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.sm-consent__actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-weight: 700;
}
#sm-consent-accept { color: #17332c; background: var(--sm-surface-cream); border-color: var(--sm-surface-cream); }
.sm-consent__actions button:focus-visible,
.sm-consent-settings:focus-visible { outline: 3px solid #f4d35e; outline-offset: 2px; }
.sm-consent-settings {
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sm-consent-settings:hover,
.sm-consent-settings:focus {
  color: inherit;
  background: rgba(255,255,255,.1);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  body.com-content.view-article .sp-page-title {
    min-height: 450px !important;
    padding: 104px 20px 48px !important;
    background-position: center !important;
  }
  .com-content.view-article .sp-page-title .sm-page-title-heading {
    max-width: 680px;
    margin: 0 auto !important;
    font-size: clamp(28px, 9vw, 42px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.2px !important;
    text-shadow: 0 3px 12px rgba(0,0,0,.22);
  }
  .com-content.view-article .sp-page-title .sm-page-title-heading::before { display: none !important; }
  .com-content.view-article #sp-main-body { padding-top: 32px; }
  .com-content.view-article .article-details-wrap [itemprop="articleBody"] {
    font-size: 14px;
    line-height: 1.65;
  }
  .sm-consent {
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.25;
  }
  .sm-consent__copy strong { font-size: 13px; }
  .sm-consent__actions { gap: 6px; }
  .sm-consent__actions button { min-width: 86px; padding: 7px 9px; }
}

@media (max-width: 430px) {
  .sm-consent { flex-direction: column; align-items: stretch; }
  .sm-consent__copy { flex: 1 1 auto; min-width: 0; }
  .sm-consent__actions { flex-direction: row; width: 100%; }
  .sm-consent__actions button { flex: 1 1 0; min-width: 0; min-height: 44px; }
}

@media (max-width: 767.98px) and (max-height: 700px) {
  body.com-content.view-article .sp-page-title {
    min-height: 450px !important;
    padding: 82px 16px 32px !important;
  }
  .com-content.view-article .sp-page-title .sm-page-title-heading {
    font-size: clamp(26px, 8.5vw, 36px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .com-content.view-article #sp-main-body,
  .scrollup { transition: none !important; }
  .sm-home-hero-cta__panel { animation: none !important; }
}
/* Keep Font Awesome icons non-blocking. SP Page Builder ships these faces with
 * font-display:block; identical later declarations replace that descriptor
 * without changing glyph files or icon metrics. woff2 first (lossless
 * conversions of the SPPB TTFs, committed next to the woffs) so any page that
 * still resolves an FA5 family pays ~25-30% fewer bytes; after the FA4
 * force-back block below, no current page resolves them at all. */
@font-face {
  font-family: "Font Awesome 5 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../woff2/fa-brands-400.woff2") format("woff2"),
       url("../woff/fa-brands-400.woff") format("woff");
}

@font-face {
  font-family: "FontAwesome";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("../woff2/fontawesome-webfont3e6e.woff2") format("woff2"),
       url("../woff/fontawesome-webfont3e6e.woff") format("woff");
}

/* WCAG AA: legacy preset teal (#03ccbd) is too light on white at body size. */
.article-details-wrap .smp-gate-content a,
.article-details-wrap a.smoothscroll {
  color: #087b75;
}
.article-details-wrap .smp-gate-content a:hover,
.article-details-wrap .smp-gate-content a:focus,
.article-details-wrap a.smoothscroll:hover,
.article-details-wrap a.smoothscroll:focus {
  color: #065f5b;
}
/* WCAG 2.5.8: Contents links were 19 px tall and stacked with no gap; give each a 24 px target. */
.article-details-wrap [data-smp-section="Contents"] a.smoothscroll {
  display: inline-block;
  min-width: 24px;
  min-height: 24px;
}
.article-details-wrap .article-info,
.article-details-wrap .article-info .hits {
  color: #5f6965;
}
.smplus-side-switch {
  background-color: #087b75;
  text-shadow: none;
}
.smplus-side-switch:hover,
.smplus-side-switch:focus {
  background-color: #065f5b;
}

/* Keep CTA/supporting-copy contrast fixes separate from the legacy subject
 * cards and feature panels. Those retain their original preset colour map. */
body.itemid-437 .sppb-section-title .sppb-title-subheading a,
body.itemid-437 .smp-app-band-kicker {
  color: #087b75 !important;
}
body.itemid-437 .sppb-section-title .sppb-title-subheading a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
/* Subject tiles are the only .sppb-btn-block links; every other homepage CTA
 * (including the two that point at /subjects) shares one teal pill. */
body.itemid-437 .sppb-text-left > a.sppb-btn-custom:not(.sppb-btn-block),
body.itemid-437 .sppb-text-center > a.sppb-btn-custom:not(.sppb-btn-block) {
  background: #087b75 !important;
  border-color: #087b75 !important;
  color: #fff !important;
}
body.itemid-437 .sppb-text-left > a.sppb-btn-custom:not(.sppb-btn-block),
body.itemid-437 .sppb-text-center > a.sppb-btn-custom:not(.sppb-btn-block) {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .005em;
}
body.itemid-437 .sppb-text-left > a.sppb-btn-custom:not(.sppb-btn-block):hover,
body.itemid-437 .sppb-text-left > a.sppb-btn-custom:not(.sppb-btn-block):focus,
body.itemid-437 .sppb-text-center > a.sppb-btn-custom:not(.sppb-btn-block):hover,
body.itemid-437 .sppb-text-center > a.sppb-btn-custom:not(.sppb-btn-block):focus {
  background: #065f5b !important;
  border-color: #065f5b !important;
}

/* The static hero owns a stable full-height artwork frame. Do not let the
 * legacy slider height matcher move it after first paint. */
body.itemid-437 .sm-home-static-hero .bottom-slider-img,
body.itemid-437 .sm-home-static-hero .bottom-slider-img img {
  height: 100% !important;
}
body.itemid-437 .sm-home-static-hero .bottom-slider-img img {
  width: 100% !important;
  object-fit: cover;
  object-position: center bottom;
}

/* Real controls, retaining the theme's visual placement and adding keyboard
 * focus without browser button chrome. */
.sppb-slider-fullwidth-wrapper .customNavigation button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255,255,255,.92);
  background: rgba(0,42,48,.42);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  cursor: pointer;
  font: inherit;
  font-size: 30px;
}
.sppb-slider-fullwidth-wrapper .customNavigation button.sppbSlidePrev {
  float: left;
  margin-left: 80px;
}
.sppb-slider-fullwidth-wrapper .customNavigation button.sppbSlideNext {
  float: right;
  margin-right: 80px;
}
.sppb-slider-fullwidth-wrapper .customNavigation button:hover { color: #fff; background: rgba(0,42,48,.72); }
.sppb-slider-fullwidth-wrapper .customNavigation button:focus-visible {
  color: #fff;
  outline: 3px solid #f4d35e;
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .sppb-slider-fullwidth-wrapper .customNavigation button { font-size: 28px; }
  .sppb-slider-fullwidth-wrapper .customNavigation button.sppbSlidePrev { margin-left: 40px; }
  .sppb-slider-fullwidth-wrapper .customNavigation button.sppbSlideNext { margin-right: 40px; }
}

@media (max-width: 767.98px) {
  .sppb-slider-fullwidth-wrapper .customNavigation button { font-size: 26px; }
  .sppb-slider-fullwidth-wrapper .customNavigation button.sppbSlidePrev { margin-left: 20px; }
  .sppb-slider-fullwidth-wrapper .customNavigation button.sppbSlideNext { margin-right: 20px; }
}

@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../woff2/fa-regular-400.woff2") format("woff2"),
       url("../woff/fa-regular-400.woff") format("woff");
}

@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../woff2/fa-solid-900.woff2") format("woff2"),
       url("../woff/fa-solid-900.woff") format("woff");
}

/* ===========================================================================
   One icon system (page-weight): pin every icon name used on the live surface
   to the FA4.7 webfont. Audit 2026-07-22 (386-page sitemap crawl, guest view):
   36 distinct icon names, ALL written as FA4 ".fa fa-*" - zero genuine
   fas/far/fab markup anywhere. SPPB's font-awesome-v4-shims.css nonetheless
   hijacks the names below into "Font Awesome 5 Brands"/"Font Awesome 5 Free"
   (its .fa.fa-* selectors out-rank FA4's single-class rules), which forced
   fa-brands-400.woff (92KB, footer social icons - every page) and
   fa-regular-400.woff (16KB, offcanvas menu) downloads just to draw glyphs
   FA4.7 already contains - and remapped fa-tachometer/fa-cutlery :before to
   FA5-only codepoints that render BLANK in the FA4 font (the old scoped
   fa-cutlery fix that lived here is generalised by this block).
   Each rule pins family AND the FA4 codepoint. Genuine fab/fas/far markup
   (none exists today) would still use the FA5 faces declared above/below. */
.fa.fa-address-book-o:before { content: "\f2ba" !important; }
.fa.fa-compass:before { content: "\f14e" !important; }
.fa.fa-cutlery:before { content: "\f0f5" !important; }
.fa.fa-facebook:before { content: "\f09a" !important; }
.fa.fa-hand-lizard-o:before { content: "\f258" !important; }
.fa.fa-instagram:before { content: "\f16d" !important; }
.fa.fa-tachometer:before,
.fa.fa-dashboard:before { content: "\f0e4" !important; }
.fa.fa-yc:before,
.fa.fa-ycombinator:before { content: "\f23b" !important; }
.fa.fa-youtube-play:before { content: "\f16a" !important; }
.fa.fa-address-book-o,
.fa.fa-compass,
.fa.fa-cutlery,
.fa.fa-facebook,
.fa.fa-hand-lizard-o,
.fa.fa-instagram,
.fa.fa-tachometer,
.fa.fa-dashboard,
.fa.fa-yc,
.fa.fa-ycombinator,
.fa.fa-youtube-play {
  font-family: FontAwesome !important;
  font-weight: normal !important;
}


/* OSCE transparent icons — never paint a white plate behind index icons */
img[src*="/images/osce/icons/"],
img[data-src*="/images/osce/icons/"],
.sppb-addon-text-block img[src*="osce/icons"],
.sppb-addon-text-block img[data-src*="osce/icons"] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* =========================================================================
 * 2026-07-20 preprod interactivity: offcanvas-overlay was z-index 10026
 * (template params custom_css) above #sp-header (10020). Closed overlay
 * still hit-tested (opacity 0 alone is not enough) and stole hamburger
 * + page clicks. Force pointer-events none unless menu open.
 * ========================================================================= */
.offcanvas-overlay {
  pointer-events: none !important;
}
body.offcanvas .offcanvas-overlay,
body.new-look-off-canvas .offcanvas-overlay,
body.slide-top-menu .offcanvas-overlay,
body.full-screen-off-canvas .offcanvas-overlay,
body.full-screen-off-canvas-ftop .offcanvas-overlay {
  pointer-events: auto !important;
}

/* Keep header + hamburger above hero layers; icon never captures alone. */
#sp-header,
#sp-header.menu-fixed,
body.sticky-header #sp-header,
body.header-sticky #sp-header {
  z-index: 10020 !important;
  pointer-events: auto !important;
}
#offcanvas-toggler,
.offcanvas-toggler {
  position: relative;
  z-index: 10028 !important;
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* The toggler is a <button> (features/menu.php): strip the native button chrome. */
#offcanvas-toggler {
  padding: 0;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
#offcanvas-toggler > i,
#offcanvas-toggler > *,
.offcanvas-toggler > i,
.offcanvas-toggler > * {
  pointer-events: none !important;
}

/* Hero decorative layers must not intercept header/nav clicks. */
.sppb-row-overlay,
.sppb-addon-overlay,
.sppb-slide-item-bg,
.sppb-slideshow-fullwidth-item-bg,
.bottom-slider-img {
  pointer-events: none !important;
}
.sppb-slideshow-fullwidth-item-text a,
.sppb-slideshow-fullwidth-item-text button,
.sm-home-hero-cta a,
.sm-home-hero-cta button {
  pointer-events: auto !important;
}

/* =====================================================================
   WCAG 2.1 AA audit fixes — 2026-07-22 (template scope only, un-deployed)
   Audit evidence: axe-core + keyboard probes against live prod at
   1440x900 and 390x844. Token: accessible teal #087b75 = 5.0:1 on the
   cream #fffcf6 chrome (and 5.1:1 on white); hover/active #065f5b = 7.3:1.
   ===================================================================== */

/* SC 1.4.3: preset4.css sets the global link colour to #03ccbd, which is
   only 1.97:1 on the cream body (#fffcf6). custom.css loads after the
   preset, so redefine the default link token here, then restore the light
   teal only inside the dark footer bottom bar where it passes (8.2:1 on
   #012325). Selectors with higher specificity (menus, buttons, footer
   modules, inline SPPB styles) are unaffected. */
a {
  color: #087b75;
}
a:hover,
a:focus {
  color: #065f5b;
}
#sp-bottom a,
#sp-bottom a:hover,
#sp-bottom a:focus {
  color: #03ccbd;
}

/* SC 1.4.1: with an AA-compliant link teal, link colour is no longer
   distinguishable from the #696969 body copy by contrast alone (1.07:1),
   so links that sit inside running text must carry a non-colour cue. */
.article-details-wrap [itemprop="articleBody"] p a:not(.sppb-btn):not(.btn),
.sppb-form-check-label a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

/* SC 2.4.1: skip link rendered as the first focusable element in
   index.php; visually hidden until it receives keyboard focus. */
.smp-skip-link {
  background: #012325;
  border-radius: 0 0 8px 0;
  color: #ffffff;
  font-size: 16px;
  left: -9999px;
  padding: 12px 20px;
  position: absolute;
  top: 0;
  z-index: 100000;
}
.smp-skip-link:focus {
  color: #ffffff;
  left: 0;
  outline: 3px solid #065f5b;
  outline-offset: 2px;
}

/* SC 2.4.7: clear focus indication for the controls made keyboard
   operable in this pass (search toggles, off-canvas toggler/close) and
   for embedded iframes (the S+ metrics embed is tabbable). */
.search-open-icon:focus-visible,
.search-close-icon:focus-visible,
#offcanvas-toggler:focus-visible {
  outline: 3px solid #065f5b;
  outline-offset: 2px;
}
.offcanvas-menu .close-offcanvas:focus-visible {
  outline: 3px solid #03ccbd;
  outline-offset: 2px;
}
iframe:focus,
iframe:focus-visible {
  outline: 3px solid #065f5b;
  outline-offset: 2px;
}

/* Target size (best practice; WCAG 2.2 SC 2.5.8 forward-compat): the
   header/footer social icon links measure ~13x17px. Give them a >=32px
   hit area without moving the icon glyphs. */
ul.social-icons > li a,
.sppb-addon-social-media .social-media-text-wrap a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
}


/* ===========================================================================
   About page (/about-simplemed: menu itemid-539, SP Page Builder page 19).
   Page-scoped restyle, CSS only: every selector starts with body.itemid-539.
   "Our Team" and "Past Contributors" each appear twice in the markup, but as
   SPPB responsive copies, not duplicates: the desktop copies
   (#section-id-1502875933729, #section-id-1612027457394) carry
   .sppb-hidden-xs (display:none at <=767px) and the phone copies
   (#section-id-1545311985380, #section-id-1612027457480) carry
   .sppb-hidden-sm/-md/-lg (display:none at >=768px). Exactly one copy renders
   at any width, so none is hidden here; each copy gets the layout for the
   widths it renders at (cards on desktop, portrait-left rows on phones).
   =========================================================================== */
body.itemid-539 {
  --ab-ink: #0f3d2e;
  --ab-text: #3e4b45;
  --ab-muted: #5f6965;
  --ab-teal: #087b75;
  --ab-line: rgba(15, 61, 46, 0.12);
}

/* One even rhythm between sections (was 1-60px paddings plus 30px addon
   margins, leaving 200px+ holes). */
body.itemid-539 #sp-page-builder #section-id-1575465719088 {
  padding-bottom: 0 !important;
}
body.itemid-539 #sp-page-builder :is(#section-id-1502875933729, #section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480, #section-id-1561108351012) {
  padding: 96px 0 0 !important;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 {
  padding: 32px 0 112px !important;
}
/* These columns are also .sppb-col-sm-6 (half width at 768-991px). */
body.itemid-539 #sp-page-builder :is(#section-id-1575465719072, #section-id-1502875933729, #section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480) [class*="sppb-col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

/* One heading style for every section (was black 600, grey 400 and -3.07px
   tracking depending on the section). */
body.itemid-539 #sp-page-builder .page-content :is(.sppb-title-heading, .sppb-addon-title) {
  color: var(--ab-ink) !important;
  font-size: 36px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
  text-wrap: balance;
}
body.itemid-539 #sp-page-builder .sppb-section-title {
  margin: 0 auto 40px;
  max-width: 640px;
}
body.itemid-539 #sp-page-builder :is(.sppb-section-title p, #section-id-1561108351012 .sppb-addon-content) {
  color: var(--ab-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 640px;
}
body.itemid-539 #sp-page-builder :is(.sppb-section-title b, #section-id-1561108351012 .sppb-addon-content span) {
  font-size: inherit !important;
  font-weight: inherit;
}

/* Intro: keep the template's overlap with the title art, as one narrower
   sheet with a readable measure. */
body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-column {
  background: #f9fafb;
  border-radius: 24px 24px 0 0;
  margin: 0 auto;
  max-width: 880px;
}
body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-wrapper {
  margin: 0;
}
body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-text-block {
  padding: 56px 48px 0;
}
body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-content {
  color: var(--ab-text);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 640px;
  text-align: left;
  text-wrap: pretty;
}
/* The copy is three sentences split by <br>; the template hides every <br>
   below 992px, which ran them together ("education.Our aim"). Keep the
   breaks at every width, minus the stray leading one. */
body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-content > br {
  display: inline;
}
body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-content > br:first-child {
  display: none;
}
/* "Who Are We?" matches the rest of the page: a white sheet (the template
   paints it cream) on the page's #f9fafb band (its inline near-white is
   otherwise unified to cream site-wide). The template's curves are grey PNGs
   that read as pale bands: keep the top curve's shape in the band colour;
   drop the bottom one. */
body.itemid-539 #sp-page-builder #section-id-1575465719088 {
  background-color: #f9fafb !important;
}
body.itemid-539 #sp-page-builder #section-id-1575465719088::before {
  background: #f9fafb;
  -webkit-mask: url("../png/up-grey.png") center / cover no-repeat;
  mask: url("../png/up-grey.png") center / cover no-repeat;
}
body.itemid-539 #sp-page-builder #section-id-1575465719088::after {
  content: none;
}

/* People cards (all 42 share one markup: photo link, name link, role).
   The name link is stretched over its card so the whole card opens the bio. */
body.itemid-539 #sp-page-builder .sm-contributor-card {
  min-height: 0;
  text-align: center;
}
body.itemid-539 #sp-page-builder .sm-contributor-card p {
  margin: 0;
  text-align: inherit !important;
}
body.itemid-539 #sp-page-builder .sm-contributor-card span {
  font-size: inherit !important;
}
body.itemid-539 #sp-page-builder .sm-contributor-card p:nth-child(2) {
  color: var(--ab-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 16px;
}
body.itemid-539 #sp-page-builder .sm-contributor-card p:nth-child(3) {
  color: var(--ab-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
}
body.itemid-539 #sp-page-builder .sm-contributor-card strong {
  font-weight: inherit;
}
body.itemid-539 #sp-page-builder :is(.sm-contributor-card, #section-id-1561108768475) strong a {
  color: inherit;
  text-decoration: none;
}
body.itemid-539 #sp-page-builder :is(.sm-contributor-card, #section-id-1561108768475) strong a::after {
  content: "";
  inset: 0;
  position: absolute;
}
body.itemid-539 #sp-page-builder :is(.sppb-addon-wrapper, #section-id-1561108768475 .sppb-column):hover strong a {
  color: var(--ab-teal);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body.itemid-539 #sp-page-builder .sm-contributor-card p:first-child a {
  border-radius: 50%;
  display: inline-block;
  vertical-align: top;
}
body.itemid-539 #sp-page-builder .page-content a:focus-visible {
  outline: 3px solid var(--ab-teal);
  outline-offset: 3px;
}
body.itemid-539 #sp-page-builder .sm-contributor-photo {
  background: #e7eee9;
  height: 120px;
  width: 120px;
}
body.itemid-539 #sp-page-builder :is(#section-id-1502875933729, #section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480) .sppb-addon-wrapper {
  margin: 0;
  max-width: none;
  position: relative;
}

/* Card surface shared by Our Team (both copies) and the partner tiles. */
body.itemid-539 #sp-page-builder :is(#section-id-1502875933729 .sppb-addon-wrapper, #section-id-1545311985380 .sppb-addon-wrapper, #section-id-1561108768475 .sppb-column) {
  background: #fff;
  border: 1px solid var(--ab-line);
  border-radius: 16px;
  transition: border-color 0.15s;
}
body.itemid-539 #sp-page-builder :is(#section-id-1502875933729 .sppb-addon-wrapper, #section-id-1545311985380 .sppb-addon-wrapper, #section-id-1561108768475 .sppb-column):is(:hover, :focus-within) {
  border-color: rgba(8, 123, 117, 0.5);
}

/* Our Team (desktop copy): five equal portrait cards, 3 + 2 below 1200px. */
body.itemid-539 #sp-page-builder #section-id-1502875933729 .sppb-column-addons {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
body.itemid-539 #sp-page-builder #section-id-1502875933729 .sppb-addon-wrapper {
  flex: 0 1 208px;
  padding: 28px 16px 24px;
}
@media (min-width: 992px) and (max-width: 1199px) {
  body.itemid-539 #sp-page-builder #section-id-1502875933729 .sppb-addon-wrapper {
    flex-basis: 260px;
  }
}

/* Phone copy of Our Team and both Past Contributors copies: portrait-left
   rows. Past Contributors is a lighter, hairline-ruled directory. */
body.itemid-539 #sp-page-builder :is(#section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480) .sppb-column-addons {
  display: grid;
  gap: 0 32px;
  grid-template-columns: minmax(0, 1fr);
}
body.itemid-539 #sp-page-builder #section-id-1545311985380 .sppb-column-addons {
  gap: 12px;
}
body.itemid-539 #sp-page-builder #section-id-1545311985380 .sppb-addon-wrapper {
  padding: 16px;
}
body.itemid-539 #sp-page-builder :is(#section-id-1612027457394, #section-id-1612027457480) .sppb-addon-wrapper {
  border-top: 1px solid var(--ab-line);
  padding: 16px 0;
}
body.itemid-539 #sp-page-builder :is(#section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480) .sm-contributor-card {
  text-align: left;
}
body.itemid-539 #sp-page-builder :is(#section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480, #section-id-1561108768475) .sppb-addon-content {
  align-items: center;
  column-gap: 16px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
}
body.itemid-539 #sp-page-builder #section-id-1545311985380 .sppb-addon-content {
  grid-template-columns: 72px minmax(0, 1fr);
}
body.itemid-539 #sp-page-builder :is(#section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480, #section-id-1561108768475) .sppb-addon-content > p:first-child {
  grid-row: span 2;
}
body.itemid-539 #sp-page-builder :is(#section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480, #section-id-1561108768475) .sppb-addon-content > p:nth-child(2) {
  align-self: end;
  margin-top: 0;
}
body.itemid-539 #sp-page-builder :is(#section-id-1545311985380, #section-id-1612027457394, #section-id-1612027457480, #section-id-1561108768475) .sppb-addon-content > p:nth-child(3) {
  align-self: start;
}
body.itemid-539 #sp-page-builder :is(#section-id-1612027457394, #section-id-1612027457480) .sm-contributor-card p:nth-child(2) {
  font-size: 15px;
}
body.itemid-539 #sp-page-builder :is(#section-id-1612027457394, #section-id-1612027457480) .sm-contributor-card p:nth-child(3) {
  font-size: 13px;
}
body.itemid-539 #sp-page-builder :is(#section-id-1612027457394, #section-id-1612027457480) .sm-contributor-photo {
  height: 56px !important;
  width: 56px !important;
}
body.itemid-539 #sp-page-builder #section-id-1545311985380 .sm-contributor-photo {
  height: 72px;
  width: 72px;
}
@media (min-width: 576px) {
  body.itemid-539 #sp-page-builder :is(#section-id-1612027457394, #section-id-1612027457480) .sppb-column-addons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  body.itemid-539 #sp-page-builder #section-id-1612027457394 .sppb-column-addons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Our Partners: three equal tiles; logos and portrait share one box size. */
body.itemid-539 #sp-page-builder #section-id-1561108768475 .sppb-row {
  row-gap: 12px;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 .sppb-column {
  padding: 16px;
  position: relative;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 .sppb-column-addons {
  position: static;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 .sppb-addon-wrapper {
  margin: 0;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 p {
  margin: 0;
  text-align: inherit !important;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 span {
  font-size: inherit !important;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 p:nth-child(2) {
  color: var(--ab-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 strong {
  font-weight: inherit;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 p:nth-child(3) {
  color: var(--ab-muted);
  font-size: 14px;
  line-height: 1.5;
}
body.itemid-539 #sp-page-builder #section-id-1561108768475 img {
  height: 56px;
  object-fit: contain;
  width: 56px;
}
@media (min-width: 768px) {
  body.itemid-539 #sp-page-builder #section-id-1561108768475 [class*="sppb-col-"] {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
  body.itemid-539 #sp-page-builder #section-id-1561108768475 .sppb-column {
    padding: 32px 24px 28px;
    text-align: center;
  }
  body.itemid-539 #sp-page-builder #section-id-1561108768475 .sppb-addon-content {
    display: block;
  }
  body.itemid-539 #sp-page-builder #section-id-1561108768475 img {
    height: 120px;
    width: 120px;
  }
  body.itemid-539 #sp-page-builder #section-id-1561108768475 p:nth-child(2) {
    margin-top: 20px;
  }
  body.itemid-539 #sp-page-builder #section-id-1561108768475 p:nth-child(3) {
    margin-top: 6px;
  }
}

/* Phones: smaller type scale and tighter rhythm. */
@media (max-width: 767px) {
  body.itemid-539 #sp-page-builder :is(#section-id-1545311985380, #section-id-1612027457480, #section-id-1561108351012) {
    padding-top: 64px !important;
  }
  body.itemid-539 #sp-page-builder #section-id-1561108768475 {
    padding: 24px 0 72px !important;
  }
  body.itemid-539 #sp-page-builder .page-content :is(.sppb-title-heading, .sppb-addon-title) {
    font-size: 28px !important;
  }
  body.itemid-539 #sp-page-builder .sppb-section-title {
    margin-bottom: 28px;
  }
  body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-column {
    border-radius: 20px 20px 0 0;
  }
  body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-text-block {
    padding: 36px 20px 0;
  }
  body.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-content {
    font-size: 16px;
    line-height: 1.7;
  }
  body.itemid-539 #sp-page-builder #section-id-1561108768475 .sppb-column {
    text-align: left;
  }
}

/* Error pages (error.php): brand green instead of the stock demo background
   image, brand-coloured action, secondary link to the subject index. */
.error-page .error-page-inner {
  min-height: 100vh;
  background: #17332c;
}
.error-page .error-page-inner .error-logo-wrap img { width: 240px; max-width: 70%; height: auto; }
.error-page .error-page-inner .error-content,
.error-page .error-page-inner .error-code { color: var(--sm-surface-cream); }
.error-page .error-page-inner .error-message { font-size: clamp(28px, 6vw, 48px); margin-bottom: 36px; }
.error-page .btn.btn-primary {
  color: #17332c;
  background: var(--sm-surface-cream);
  border-color: var(--sm-surface-cream);
}
.error-page .error-subjects-link {
  display: inline-block;
  margin-left: 20px;
  padding: 13px 0;
  color: var(--sm-surface-cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.error-page .error-subjects-link:hover,
.error-page .error-subjects-link:focus { color: #fff; }

/* Visual QA leftovers (2026-10) ------------------------------------------- */

/* Subject tiles (home + /subjects): the icons are a mix of black and white-filled
 * line art that vanish on the teal tiles, so render them as white silhouettes; fixed icon box and label line
 * so tile contents line up. Tile colours are left to the SPPB addon CSS.
 * Scoped to the pages that carry the tiles (home, /subjects, and the legacy
 * Quizzes SPPB page 269, which has no menu item); :where() adds no specificity,
 * so the per-icon "filter: none" glyph rules below still win exactly as before. */
:where(body.itemid-437, body.itemid-804, .page-269) a.sppb-btn-custom.sppb-btn-block > div > img { filter: brightness(0) invert(1); }

/* Clean white tile glyphs (built from the originals, interior detail kept as knock-outs): the img keeps its
 * box/alt, the original is pushed out of view and the glyph painted as a background; matches lazy-loaded sources. */
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/CVS_Icon.png"], [data-src*="/Icons/CVS_Icon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/cvs_icon-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Cell_Icon.png"], [data-src*="/Icons/Cell_Icon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/cell_icon-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Endocrinology_icon.png"], [data-src*="/Icons/Endocrinology_icon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/endocrinology_icon-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/GI_Icon_SimpleMed.png"], [data-src*="/Icons/GI_Icon_SimpleMed.png"]) { filter: none; object-position: -99999px 0; background: url(../png/gi_icon_simplemed-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Genetics_Icon_V2.png"], [data-src*="/Icons/Genetics_Icon_V2.png"]) { filter: none; object-position: -99999px 0; background: url(../png/genetics_icon_v2-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/HEP_Icon_V2.png"], [data-src*="/Icons/HEP_Icon_V2.png"]) { filter: none; object-position: -99999px 0; background: url(../png/hep_icon_v2-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Haematology_Icon.png"], [data-src*="/Icons/Haematology_Icon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/haematology_icon-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Head_and_Neck_icon_SimpleMed.png"], [data-src*="/Icons/Head_and_Neck_icon_SimpleMed.png"]) { filter: none; object-position: -99999px 0; background: url(../png/head_and_neck_icon_simplemed-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Immunology_Icon_SimpleMed.png"], [data-src*="/Icons/Immunology_Icon_SimpleMed.png"]) { filter: none; object-position: -99999px 0; background: url(../png/immunology_icon_simplemed-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Infection_Icon.png"], [data-src*="/Icons/Infection_Icon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/infection_icon-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/MSK_Icon.png"], [data-src*="/Icons/MSK_Icon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/msk_icon-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Neuroanatomy_Icon_SimpleMed.png"], [data-src*="/Icons/Neuroanatomy_Icon_SimpleMed.png"]) { filter: none; object-position: -99999px 0; background: url(../png/neuroanatomy_icon_simplemed-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/OSCE_Icon_V2.png"], [data-src*="/Icons/OSCE_Icon_V2.png"]) { filter: none; object-position: -99999px 0; background: url(../png/osce_icon_v2-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Pathology_Icon.png"], [data-src*="/Icons/Pathology_Icon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/pathology_icon-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Population_Science_Icon.png"], [data-src*="/Icons/Population_Science_Icon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/population_science_icon-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Reproductive_Icon_V2_SimpleMed.png"], [data-src*="/Icons/Reproductive_Icon_V2_SimpleMed.png"]) { filter: none; object-position: -99999px 0; background: url(../png/reproductive_icon_v2_simplemed-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Respiratory_Icon_SimpleMed.png"], [data-src*="/Icons/Respiratory_Icon_SimpleMed.png"]) { filter: none; object-position: -99999px 0; background: url(../png/respiratory_icon_simplemed-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Urinary_icon_V2.png"], [data-src*="/Icons/Urinary_icon_V2.png"]) { filter: none; object-position: -99999px 0; background: url(../png/urinary_icon_v2-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/Videos_Icon_SimpleMed.png"], [data-src*="/Icons/Videos_Icon_SimpleMed.png"]) { filter: none; object-position: -99999px 0; background: url(../png/videos_icon_simplemed-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/Icons/metabolism-ConvertImage.png"], [data-src*="/Icons/metabolism-ConvertImage.png"]) { filter: none; object-position: -99999px 0; background: url(../png/metabolism-convertimage-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/images/subject-icons/embryology.png"], [data-src*="/images/subject-icons/embryology.png"]) { filter: none; object-position: -99999px 0; background: url(../png/embryology-2.png) center / contain no-repeat; }
a.sppb-btn-custom.sppb-btn-block > div > img:is([src*="/images/PharmacologyIcon.png"], [data-src*="/images/PharmacologyIcon.png"]) { filter: none; object-position: -99999px 0; background: url(../png/pharmacologyicon-2.png) center / contain no-repeat; }

@media (min-width: 768px) {
  a.sppb-btn-custom.sppb-btn-block > div { margin-top: 40px !important; margin-bottom: 40px !important; }
  a.sppb-btn-custom.sppb-btn-block > div > img { width: 96px; height: 96px; object-fit: contain; }
  a.sppb-btn-custom.sppb-btn-block > div > span { display: block; line-height: 1.3; min-height: 2.6em; }
  a.sppb-btn-custom.sppb-btn-block > div > span br { display: none; }
}

/* Embedded article videos: 16:9 at any width (fixed 860x460 attributes crop on phones
   and letterbox on desktop). Shorts are portrait, so they keep their authored box.
   [data-smp-yt] is the click-to-play YouTube facade (smcssdefer), which has no src. */
.article-details-wrap iframe:is([src*="youtube"], [src*="youtu.be"], [src*="vimeo"], [data-smp-yt]):not([src*="/shorts/"]) {
  width: 100%;
  max-width: 860px; /* the authored embed width; phones get the full column */
  height: auto;
  aspect-ratio: 16 / 9;
}
/* Wide tables (e.g. the leukaemia table) scroll inside the column on phones instead
   of painting past a viewport that cannot scroll to them. */
@media (max-width: 767px) {
  .article-details-wrap table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Search results: "Heart Failure (Cardiovascular System)", not "Failure(Cardio...". */
.com-search.view-search .search-results-wrap .result-category { margin-left: 0.35em; }

/* Subject listing "Quiz" buttons: white on brand teal (5.1:1) instead of white on cyan (~2:1). */
a.sppb-btn-custom.sppb-btn-rounded[href*="/free/entry"] { background-color: #087b75 !important; }
a.sppb-btn-custom.sppb-btn-rounded[href*="/free/entry"]:hover,
a.sppb-btn-custom.sppb-btn-rounded[href*="/free/entry"]:focus { background-color: #065f5a !important; }

/* Footer disclaimer (DB module, inline 9px): readable size and line length. */
#sp-bottom2 .custom p { font-size: 13px !important; line-height: 1.6 !important; max-width: 760px; margin-left: auto; margin-right: auto; }

/* Hidden H1s are clipped to 1px already; keep their (inherited 190px) type size
 * out of any fallback where the clip does not apply. */
h1.sm-visually-hidden { font-size: 16px !important; line-height: 1 !important; letter-spacing: normal !important; }

/* Article titles (owner, 2026-10): larger heading and a shorter band beneath it
 * on tablet/desktop so the article card sits closer. Phone rules above keep
 * their own sizes. */
@media (min-width: 768px) {
  body.com-content.view-article .sp-page-title {
    min-height: 440px !important;
    /* The article card overlaps this band by 160px (template.css pulls
     * article.item-page up 260px; the card has a 100px top margin), so the
     * bottom padding is that overlap plus a 56px gap: long two-line titles
     * then push the card down instead of running under it. */
    padding-bottom: 216px !important;
    /* Full-width band: 100cqw inside it is the viewport minus any scrollbar. */
    container-type: inline-size;
  }
  .com-content.view-article .sp-page-title .sm-page-title-heading {
    font-size: clamp(52px, calc(20px + 4.6vw), 124px) !important;
    margin-bottom: 0 !important;
    /* Keep the glyphs >= 40px from the screen edges: the h1 box is full-bleed
     * at some widths (1280: one line ran from x=5 to x=1275). Pads only by what
     * the parent's own side space, (band width - 100%) / 2, does not already
     * give. 100cqw excludes a classic scrollbar (100vw would not); the vw pair
     * is the fallback for browsers without container units. */
    padding-left: max(0px, calc(40px - (100vw - 100%) / 2)) !important;
    padding-right: max(0px, calc(40px - (100vw - 100%) / 2)) !important;
    padding-left: max(0px, calc(40px - (100cqw - 100%) / 2)) !important;
    padding-right: max(0px, calc(40px - (100cqw - 100%) / 2)) !important;
  }
}

/* Hero heading (owner, 2026-10): much larger on tablet/desktop, kept to two
 * lines ("Learn Medicine / for Free") by widening the panel; the copy keeps
 * its own measure. */
@media (min-width: 992px) {
  .sm-home-hero-cta__panel { width: min(1680px, 94vw); }
  /* One line, as large as the width allows, capped by height so short
   * laptop windows (which the max-height rule above shrank to <=48px) keep
   * a big heading. Declared last so it wins over that rule. */
  .sm-home-hero-cta h1 { font-size: clamp(56px, min(6.3vw, 15vh), 132px) !important; }
}

/* Article pages only (owner, 2026-10): white page and reading card instead of
 * the site cream. */
html:has(> body.view-article),
html body.site.view-article,
body.view-article .body-innerwrapper,
body.view-article #sp-main-body,
body.view-article .article-details-wrap,
body.view-article .article-info-wrap {
  background-color: #fff !important;
}
/* #sp-component starts at the card's top edge inside the title band; below
 * 1200px it is also 15px wider than the card, so any fill there (site cream or
 * white) squares off the card's rounded corners. Transparent at every width
 * (no visible change at 1200px+); #sp-main-body is white underneath. */
body.view-article #sp-component {
  background-color: transparent !important;
}

/* Article card (owner, 2026-10): rounded top corners where it overlaps the
 * title art, matching the About page sheet. */
body.view-article .article-details-wrap { border-radius: 24px 24px 0 0; }
@media (max-width: 767.98px) {
  body.view-article .article-details-wrap { border-radius: 16px 16px 0 0; }
}

/* Homepage (owner, 2026-10): one cream background for every band below the
 * hero (SPPB sections shipped white or cool grey inline; the app band and the
 * SimpleMed+ showcase had their own creams). Cards on it stay white. */
body.itemid-437 #sp-page-builder .sppb-section,
body.itemid-437 #smp-app-band,
body.itemid-437 .sm-plus-home-promo {
  background-color: var(--sm-surface-cream) !important;
}
body.itemid-437 #smp-app-band .smp-app-band-inner,
body.itemid-437 .sm-plus-home-promo__question {
  background-color: #fff !important;
}

/* ==========================================================================
 * HOME COLUMN (owner 2026-10-03: "wider blank side columns" under the hero).
 * Every section below the hero, the app card, the SimpleMed+ showcase and the
 * footer share one centred 920px content column (was 1040px, footer 1110px),
 * which leaves 260px of blank cream a side at 1440 and 500px at 1920.
 * Background bands stay full width; the hero and header are untouched.
 * Tablets keep at least 48px a side; phones (<768px) keep their own padding.
 * SPPB and template containers carry 15px padding, hence the column + 30px.
 * ========================================================================== */
@media (min-width: 768px) {
  body.itemid-437 #sp-page-builder .page-content > .sppb-section:not(#section-id-1503903742072) > .sppb-row-container,
  body.itemid-437 #sp-bottom > .container,
  body.itemid-437 #sp-footer > .container {
    max-width: min(950px, 100% - 66px);
    margin-inline: auto;
  }
  body.itemid-437 #smp-app-band .smp-app-band-inner {
    max-width: min(920px, 100% - 48px); /* the band adds 24px a side */
  }
  /* The narrower footer column is 128px wide from 992px: keep its three social
   * icons on one line there (they needed 132px with their 12px margins). */
  body.itemid-437 #sp-bottom3 .social-media-text-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  body.itemid-437 #sp-bottom3 .social-media-text-wrap > a {
    margin-left: 0;
  }
}
@media (min-width: 992px) {
  /* Below 992px the showcase stacks in its own 600px column. */
  body.itemid-437 .sm-plus-home-promo__inner {
    max-width: min(920px, 100% - 48px);
  }
}
/* ================================================== end HOME COLUMN === */

/* ==========================================================================
 * HOME MOBILE SCALE (owner 2026-10-04: the homepage must scale on tablets
 * and phones).
 * 1. Subject tiles below 992px sit in a compact grid instead of one tall
 *    full-width tile per row. From 768 to 991px SPPB shows the desktop
 *    section, whose six columns hold three or four tiles each: the columns
 *    are flattened into a four-column grid and `order` restores the desktop
 *    row order (the nth tile of every column forms row n). Below 768px SPPB
 *    shows a separate phone section (one column, already in that order),
 *    which gets three columns from 600px and two below.
 * 2. template.css hides every <br> below 992px, which ran the question-bank
 *    sentences together ("public health.Choose ..."). Text blocks on the
 *    homepage keep their line breaks at every width.
 * ========================================================================== */
body.itemid-437 #sp-page-builder .sppb-addon-text-block br {
  display: inline;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-inline: 0;
  }
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-row::before,
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-row::after {
    display: none;
  }
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-row > [class*="sppb-col-"],
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-column,
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-column-addons {
    display: contents;
  }
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-addon-wrapper:nth-child(2) { order: 2; }
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-addon-wrapper:nth-child(3) { order: 3; }
  body.itemid-437 #sp-page-builder #section-id-1612095032570 .sppb-addon-wrapper:nth-child(4) { order: 4; }
}
@media (max-width: 767.98px) {
  body.itemid-437 #sp-page-builder #section-id-1575394022587 .sppb-column-addons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (min-width: 600px) and (max-width: 767.98px) {
  body.itemid-437 #sp-page-builder #section-id-1575394022587 .sppb-column-addons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  body.itemid-437 #sp-page-builder :is(#section-id-1612095032570, #section-id-1575394022587) .sppb-addon-wrapper {
    margin: 0 !important;
  }
  body.itemid-437 #sp-page-builder :is(#section-id-1612095032570, #section-id-1575394022587) a.sppb-btn-block {
    height: 100%;
  }
  body.itemid-437 #sp-page-builder :is(#section-id-1612095032570, #section-id-1575394022587) :is(.clearfix, .sppb-text-center) {
    height: 100%;
    padding: 0 !important; /* the OSCE tile's 100px spacer, see below */
  }
  /* The statistics section is pulled up 70px over the tiles (template.css
   * .rhino-fun-facts-section, !important); the OSCE spacer absorbed that. */
  body.itemid-437 #sp-page-builder #section-id-1502348035280 {
    margin-top: 0 !important;
  }
  body.itemid-437 #sp-page-builder :is(#section-id-1612095032570, #section-id-1575394022587) a.sppb-btn-block > div {
    margin: 18px 8px !important;
  }
  body.itemid-437 #sp-page-builder :is(#section-id-1612095032570, #section-id-1575394022587) a.sppb-btn-block > div > img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px !important;
  }
  body.itemid-437 #sp-page-builder :is(#section-id-1612095032570, #section-id-1575394022587) a.sppb-btn-block > div > span {
    display: block;
    font-size: 13px !important;
    line-height: 1.3;
    min-height: 2.6em; /* two lines, so every row of tiles is the same height */
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
 * TYPE SCALE (owner 2026-10-03: "lower the font size in general").
 * Kept as one block at the end of the file so it merges cleanly and can be
 * reverted in one cut. Each rule re-states a size set earlier in this file,
 * in template.css or in the Helix/SPPB inline CSS, scaled down; the body.site
 * (or html) prefix makes it win without moving the originals. Text sized by
 * inline styles inside SPPB or article content keeps its authored size,
 * except the subject tiles below.
 * ========================================================================== */

/* --- Site-wide: about 1px off reading text (14 -> 13px), about 7% off
 * headings, the side menu, cards, the gate card, buttons and the footer.
 * Small print floors at 11px. --- */
body.site { font-size: max(10.5px, calc(9.4px + .23vw)); } /* Helix base calc(10px + .25vw) */
html h2 { font-size: 44.5px; }
html h3 { font-size: 22px; }
html h4 { font-size: 17px; }
html h5 { font-size: 15px; }
html h6 { font-size: 13px; }

/* Page titles */
body.site .sp-page-title h2 { font-size: calc(15px + 4.75vw) !important; }
body.site .search .page-title { font-size: 56px; }

/* Articles */
body.site.com-content.view-article .article-details-wrap [itemprop="articleBody"] { font-size: 13px; }
body.site .smp-core-body .accordion-heading { font-size: 15px; }
body.site .article-details-wrap .article-info > dd,
body.site .article-details-wrap .smp-cta-fallback,
body.site .article-details-wrap .smp-cta-fallback-link { font-size: 11px; }
body.site .smp-lb-cap { font-size: 13px; }

/* Signed-out gate card and the end-of-article SimpleMed+ card */
body.site .smp-gate-eyebrow,
body.site .smp-gate-trust,
body.site .sm-plus-article-cta__eyebrow { font-size: 11px; }
body.site .smp-gate-title { font-size: 25px; }
body.site .smp-gate-text,
body.site .sm-plus-article-cta__text { font-size: 14px; }
body.site .smp-gate-plus-lead,
body.site .smp-gate-plus-list li { font-size: 12px; }
body.site .smp-gate-status,
body.site .smp-gate-login { font-size: 13px; }
body.site .smp-gate-btn,
body.site .sm-plus-article-cta__btn { font-size: 15px; }
body.site .sm-plus-article-cta__title { font-size: 21.5px; }
@media (max-width: 600px) {
  body.site .smp-gate-title { font-size: 21.5px; }
  body.site .sm-plus-article-cta__title { font-size: 18.5px; }
}

/* Side (off-canvas) menu, including the numbered lesson lists */
body.site .offcanvas-menu .offcanvas-inner .sp-module ul > li a { font-size: 12px; }
body.site #sm-offcanvas-menu #collapse-menu-537 > li.deeper.parent > .nav-header { font-size: 12px; }
body.site #sm-offcanvas-menu #collapse-menu-537 > li.deeper.parent > ul.collapse > li > a { font-size: 11.5px; }

/* Cards and buttons. Subject tile labels carry inline sizes from SPPB. */
body.site a.sppb-btn-block > div > span[style*="font-size: 20px"] { font-size: 18.5px !important; }
body.site a.sppb-btn-block > div > span[style*="font-size: calc(8pt + 0.3vw)"] { font-size: calc(7.5pt + .28vw) !important; }
body.site .sppb-btn.sppb-btn-custom { font-size: 15px !important; } /* SPPB per-button 16px */
body.site .smplus-side-switch { font-size: 15px; }
/* Page Builder copy typed at 12pt / 14pt in the editor (OSCE cards and others) */
body.site #sp-page-builder [style*="font-size: 12pt"] { font-size: 15px !important; }
body.site #sp-page-builder [style*="font-size: 14pt"] { font-size: 13pt !important; }
@media only screen and (max-width: 479px) {
  body.site .sppb-section-title .sppb-title-heading { font-size: 28px !important; }
  body.site:not(.view-article) #sp-page-builder .sppb-addon-text-block .sppb-addon-title { font-size: 20.5px; }
}

/* Search results page */
body.site.com-search.view-search .search-filter-wrap .btn-toolbar button,
body.site div.pagination ul.pagination li a,
body.site .pagination-wrapper ul.pagination li a { font-size: 13px; }
body.site.com-search.view-search .search-filter-wrap .form-limit-wrap .counter { font-size: 12px; }

/* About page */
body.site.itemid-539 #sp-page-builder .page-content :is(.sppb-title-heading, .sppb-addon-title) { font-size: 33.5px !important; }
body.site.itemid-539 #sp-page-builder :is(.sppb-section-title p, #section-id-1561108351012 .sppb-addon-content) { font-size: 15px; }
body.site.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-content { font-size: 17px; }
body.site.itemid-539 #sp-page-builder .sm-contributor-card p:nth-child(2) { font-size: 16px; }
body.site.itemid-539 #sp-page-builder .sm-contributor-card p:nth-child(3) { font-size: 13px; }
body.site.itemid-539 #sp-page-builder :is(#section-id-1612027457394, #section-id-1612027457480) .sm-contributor-card p:nth-child(2) { font-size: 14px; }
body.site.itemid-539 #sp-page-builder :is(#section-id-1612027457394, #section-id-1612027457480) .sm-contributor-card p:nth-child(3) { font-size: 12px; }
body.site.itemid-539 #sp-page-builder #section-id-1561108768475 p:nth-child(2) { font-size: 15px; }
body.site.itemid-539 #sp-page-builder #section-id-1561108768475 p:nth-child(3) { font-size: 13px; }
@media (max-width: 767px) {
  body.site.itemid-539 #sp-page-builder .page-content :is(.sppb-title-heading, .sppb-addon-title) { font-size: 26px !important; }
  body.site.itemid-539 #sp-page-builder #section-id-1575465719072 .sppb-addon-content { font-size: 15px; }
}

/* Footer and cookie banner */
body.site #sp-bottom .sp-module .sp-module-title { font-size: 22px; }
body.site #sp-bottom .nav.menu li a,
body.site #sp-footer .sp-copyright { font-size: 13px; }
body.site #sp-bottom2 .custom p { font-size: 12px !important; }
body.site .sm-consent { font-size: 12px; }
body.site .sm-consent__copy strong { font-size: 13px; }
body.site .sm-consent-settings { font-size: 11px; }
@media (max-width: 767.98px) {
  body.site .sm-consent { font-size: 11.5px; }
  body.site .sm-consent__copy strong { font-size: 12px; }
}

/* Article page titles (h1), mirroring the original breakpoints */
@media (max-width: 767.98px) {
  body.site.com-content.view-article .sp-page-title .sm-page-title-heading { font-size: clamp(26px, 8.4vw, 39px) !important; }
}
@media (max-width: 767.98px) and (max-height: 700px) {
  body.site.com-content.view-article .sp-page-title .sm-page-title-heading { font-size: clamp(24px, 7.9vw, 33.5px) !important; }
}
@media (min-width: 768px) {
  body.site.com-content.view-article .sp-page-title .sm-page-title-heading { font-size: clamp(48px, calc(18.5px + 4.28vw), 115px) !important; }
}

/* --- Homepage (itemid-437): about 10% under the original sizes in total.
 * These are absolute values, so they replace the site-wide step above rather
 * than stacking on it. "What is SimpleMed?" stays one step above the other
 * section headings. --- */
body.itemid-437 .sm-home-hero-cta__eyebrow { font-size: 12px; }
body.itemid-437 .sm-home-hero-cta h1 { font-size: clamp(58px, 8.1vw, 122px) !important; }
body.itemid-437 .sm-home-hero-cta__copy { font-size: clamp(14.5px, 1.22vw, 17px); }
body.itemid-437 .sm-home-hero-cta__actions a { font-size: 14.5px; }
body.itemid-437 .sm-home-hero-cta__read-more { font-size: 12.5px; }
body.itemid-437 .sm-home-hero-cta__read-more span { font-size: 16px; }
@media (max-width: 767.98px) {
  body.itemid-437 .sm-home-hero-cta h1 { font-size: clamp(41px, 12.6vw, 59px) !important; }
  body.itemid-437 .sm-home-hero-cta__eyebrow { font-size: 11px; }
}
@media (max-height: 600px) {
  body.itemid-437 .sm-home-hero-cta h1 { font-size: clamp(29px, 7.2vh, 43px) !important; }
  body.itemid-437 .sm-home-hero-cta__eyebrow { font-size: 11px; }
  body.itemid-437 .sm-home-hero-cta__copy { font-size: 14.5px; }
}
@media (min-width: 992px) {
  body.itemid-437 .sm-home-hero-cta h1 { font-size: clamp(50px, min(5.67vw, 13.5vh), 119px) !important; }
}

body.itemid-437 #sp-page-builder .sppb-section-title .sppb-title-heading,
body.itemid-437 #sp-page-builder .sppb-addon-text-block h2 { font-size: clamp(27px, 2.34vw, 36px) !important; }
body.itemid-437 #sp-page-builder .sppb-addon-text-block h2 > span[style*="font-size"] {
  font-size: calc(19.8pt + .19vw) !important;     /* inline calc(22pt + .21vw) */
  line-height: calc(25.2pt + .225vw) !important;  /* inline calc(28pt + .25vw) */
}
body.itemid-437 #section-id-1502194292492 .sppb-section-title .sppb-title-heading {
  font-size: clamp(min(30.5px, calc((100vw - 30px) / 11)), 2.7vw, 41.5px) !important;
}
body.itemid-437 #sp-page-builder #section-id-1502194292492 .sppb-section-title .sppb-title-subheading { font-size: 14.5px; }
body.itemid-437 #section-id-1502194292492 .sppb-feature-box-title { font-size: 17px; }
body.itemid-437 #sp-page-builder [style*="font-size: 12pt"] { font-size: 14.5px !important; } /* card and section copy */
body.itemid-437 #sp-page-builder .sppb-btn.sppb-btn-custom { font-size: 14.5px !important; }
body.itemid-437 #section-id-1612095032570 a.sppb-btn-block > div > span { font-size: 12.5px !important; }
body.itemid-437 #sp-page-builder a.sppb-btn-block > div > span[style*="font-size: 20px"] { font-size: 18px !important; }

/* SimpleMed+ showcase at the foot of the page */
body.itemid-437 .sm-plus-home-promo { font-size: 14.5px; }
body.itemid-437 .sm-plus-home-promo__eyebrow,
body.itemid-437 .sm-plus-home-promo__points { font-size: 13.5px; }
body.itemid-437 .sm-plus-home-promo h2 { font-size: clamp(25px, 2.34vw, 32.5px); }
body.itemid-437 .sm-plus-home-promo__text,
body.itemid-437 .sm-plus-home-promo__cta { font-size: 14.5px; }
body.itemid-437 .sm-plus-home-promo__bar,
body.itemid-437 .sm-plus-home-promo__meta,
body.itemid-437 .sm-plus-home-promo__key { font-size: 12px; }
body.itemid-437 .sm-plus-home-promo__stem { font-size: 16px; }
body.itemid-437 .sm-plus-home-promo__options li,
body.itemid-437 .sm-plus-home-promo__question figcaption { font-size: 12.5px; }
@media (max-width: 575.98px) {
  body.itemid-437 .sm-plus-home-promo h2 { font-size: 23.5px; }
  body.itemid-437 .sm-plus-home-promo__cta { font-size: 13.5px; }
  body.itemid-437 .sm-plus-home-promo__bar { font-size: 11px; }
  body.itemid-437 .sm-plus-home-promo__stem { font-size: 15.5px; }
}

/* App band */
body.itemid-437 #smp-app-band .smp-app-band-kicker { font-size: 11px; }
body.itemid-437 #smp-app-band h2 { font-size: clamp(20px, 1.8vw, 25px); }
body.itemid-437 #smp-app-band .smp-app-band-copy > p:last-child { font-size: 14.5px; }
body.itemid-437 #smp-app-band .smp-play-badge-kicker { font-size: 10px; }
body.itemid-437 #smp-app-band .smp-play-badge-title { font-size: 17px; }
body.itemid-437 #smp-app-band .smp-ios-soon { font-size: 12px; }
body.itemid-437 #smp-app-band .smp-ios-soon .fa { font-size: 15.5px; }
@media (max-width: 767.98px) {
  body.itemid-437 #smp-app-band h2 { font-size: 20px; }
}
/* ==================================================== end TYPE SCALE === */

/* Homepage phone leading (owner 2026-10-04: "tighter line spacing" on the
 * mobile homepage). Body copy only; headings were already 1.02-1.3. The hero
 * copy is in the phone hero block above, so the short-screen 1.35 still wins. */
@media (max-width: 767.98px) {
  body.itemid-437 #section-id-1502194292492 .sppb-title-subheading,
  body.itemid-437 #sp-page-builder .sppb-addon-text-block .sppb-addon-content,
  body.itemid-437 .sm-plus-home-promo__text { line-height: 1.5; } /* 1.7, 1.7, 1.65 */
  body.itemid-437 #section-id-1502194292492 .sppb-addon-feature .sppb-addon-text,
  body.itemid-437 #smp-app-band .smp-app-band-copy > p:last-child { line-height: 1.45; } /* 1.6 */
}
