/* Page and section titles share a responsive type scale across the site. */
.hero h1,
h2.sec-title,
h2.section-title,
.cta-section h2,
.emde-callout h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}
.hero h1 { font-size: clamp(30px, calc(18px + 2.8vw), 54px); }
h2.sec-title,
h2.section-title,
.cta-section h2,
.emde-callout h2 { font-size: clamp(26px, calc(17px + 2.1vw), 44px); }

/* Shared navigation, footer and partnership components. */
.emde-header, .emde-footer {
  --shell-navy: #0c1d3c;
  --shell-gold: #d6b45d;
  background: var(--shell-navy);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
}
.emde-header {
  position: sticky;
  top: 0;
  z-index: 210;
  border-bottom: 1px solid rgba(226,192,106,.25);
}
.emde-header .emde-menu {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1320px);
  height: var(--emde-header-height);
  margin: auto;
  padding: 0 24px;
  background: none;
  box-shadow: none;
  border: 0;
}
.emde-brand { flex: none; }
.emde-brand img { display: block; height: 50px; width: auto; max-width: 150px; object-fit: contain; }
.emde-header .emde-brand { max-width: 100%; }
.emde-header .emde-brand img { width: 360px; height: auto; max-width: 100%; }
.emde-menu ul, .emde-footer ul { margin: 0; padding: 0; list-style: none; }
.emde-menu ul { display: flex; gap: 12px; align-items: center; }
.emde-menu a, .emde-footer a { color: #eef0f5; text-decoration: none; }
.emde-menu li a { display: block; padding: 10px 12px; font-size: 1rem; font-weight: 600; white-space: nowrap; border-radius: 5px; }
.emde-menu li a:hover, .emde-menu li a[aria-current="page"] {
  background: rgba(255,255,255,.09);
  color: var(--shell-gold);
}
.emde-header :focus-visible, .emde-footer :focus-visible { outline: 2px solid var(--shell-gold); outline-offset: 3px; }
.emde-menu li .emde-menu-cta, .emde-menu-toggle {
  background: var(--shell-gold);
  color: var(--shell-navy);
  border-radius: 6px;
  padding: 10px 20px;
  font: 700 1rem/1.5 'DM Sans', sans-serif;
}
.emde-menu li .emde-menu-cta:hover,
.emde-menu li .emde-menu-cta[aria-current="page"] {
  background: #e5c779;
  color: var(--shell-navy);
}
.emde-menu-toggle { display: none; border: 0; cursor: pointer; }
.emde-footer { margin: 0; padding: 24px; }
.emde-footer-main, .emde-footer-note {
  max-width: 1248px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.emde-footer ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.emde-footer p, .emde-footer li { margin: 0; color: #d2d8e3; font-size: .88rem; line-height: 1.6; }
.emde-footer a:hover { color: var(--shell-gold); text-decoration: underline; }
.emde-footer-note { border-top: 1px solid #35445f; margin-top: 14px; padding-top: 12px; }
.emde-callout { background: #f7f4ee; padding: clamp(32px, 5vw, 64px) 24px; }
.emde-callout-inner { max-width: 1140px; margin: auto; }
.emde-callout h2 { color: #0b1c3d; margin: 0 0 12px; }
.emde-callout p { max-width: 68ch; margin: 0 0 18px; }
.emde-cta { display: inline-block; padding: 11px 18px; border-radius: 7px; background: #c9a84c; color: #0b1c3d; font-weight: 700; text-decoration: none; }
.emde-cta:hover { background: #e2c06a; }
.emde-page .hero-inner { display: block; }
.emde-page .hero-sub { max-width: 65ch; color: #e2e7f1; margin: 0 0 24px; }
.emde-page .hero .sec-eyebrow { color: #e2c06a; }
.emde-page .card-grid > article { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 24px; }
.emde-page .card-grid h3 { color: #0b1c3d; font-size: 1.55rem; line-height: 1.15; margin: 0 0 8px; }
.emde-page .emde-tint { background: #f7f4ee; }
.emde-page .emde-prose { max-width: 74ch; }
html { --emde-header-height: 106px; scroll-padding-top: calc(var(--emde-header-height) + 12px); }
.emde-footer a { overflow-wrap: anywhere; }

/* Dedicated RCM staffing page. */
.emde-staffing .hero {
  padding: clamp(48px, 5vw, 72px) 24px;
  background: linear-gradient(160deg, #0d1e3d, #142b50);
}
.emde-staffing .hero::before, .emde-staffing .hero::after { display: none; }
.emde-staffing .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  max-width: 1248px;
}
.emde-staffing .hero h1 span { display: block; color: #e2c06a; }
.emde-staffing .hero-sub { font-size: clamp(1rem, 1.4vw, 1.18rem); }
.emde-staffing-fee {
  padding: clamp(20px, 2.2vw, 32px);
  color: #e2e7f1;
  background: #203759;
  border: 1px solid #526687;
  border-radius: 14px;
}
.emde-staffing-fee h2 {
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}
.emde-staffing-fee p:last-child { border-top: 1px solid #526687; margin-top: 16px; padding-top: 14px; }
.emde-staffing-work, .emde-staffing-pilot { padding: clamp(32px, 4vw, 52px) 24px; }
.emde-staffing-work .inner, .emde-staffing-pilot .inner { max-width: 1248px; }
.emde-staffing-work .card-grid, .emde-staffing-pilot .card-grid { margin-top: 22px; }
.emde-staffing-number { color: #80601e; font-size: .875rem; font-weight: 700; margin-bottom: 10px; }
.emde-staffing-pilot ol { padding: 0; list-style: none; margin-bottom: 24px; }
.emde-staffing-pilot li { padding-top: 14px; border-top: 2px solid #d8bd79; }
.emde-staffing-pilot li h3 { font-family: 'DM Sans', sans-serif; font-size: 1.08rem; font-weight: 700; }

@media (max-width: 880px) {
  html { --emde-header-height: 86px; }
  .emde-header .emde-brand { max-width: min(65%, 300px); }
  .emde-header .emde-brand img { width: 300px; }
  .emde-menu-toggle { display: block; }
  .emde-menu ul {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: var(--shell-navy);
    padding: 10px 24px 20px;
    max-height: calc(100dvh - var(--emde-header-height) - 1px);
    overflow-y: auto;
  }
  .emde-menu-toggle[aria-expanded="true"] + ul { display: block; }
  .emde-menu li a { padding: 9px 12px; }
  .emde-menu li .emde-menu-cta { display: inline-block; margin-top: 4px; }
  .emde-staffing .hero-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .emde-header .emde-menu { padding-inline: 16px; gap: 10px; }
  .emde-menu-toggle { padding-inline: 14px; }
}
