/* --- mednext-consent.css --- */
/* MedNext cookie consent banner. Brand tokens, no dependencies.
   Bottom sheet on desktop, full-width card on mobile. Never a cookie wall:
   the page stays readable and scrollable behind it. */
.mnk {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  font-family: var(--mnc-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}
.mnk-box {
  pointer-events: auto;
  width: 100%;
  max-width: 46rem;
  max-height: min(80vh, 40rem);
  overflow-y: auto;
  background: #fff;
  color: #2d1b4e;
  border: 1px solid #e8e2d0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(20, 12, 40, 0.28);
  padding: 1.35rem 1.5rem 1.4rem;
}
.mnk-title {
  font-family: var(--mnc-serif, Georgia, serif);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #2d1b4e;
}
.mnk-body {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.6rem;
  color: #4a4560;
}
.mnk-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 650;
  color: #2d1b4e;
  text-decoration: underline;
  margin-bottom: 0.3rem;
}
.mnk-link:hover { color: #b6801c; }

/* category toggles */
.mnk-cats {
  margin: 0.9rem 0 0.2rem;
  border-top: 1px solid #e8e2d0;
}
.mnk-cat { padding: 0.8rem 0 0.2rem; border-bottom: 1px solid #f0ece0; }
.mnk-cat:last-child { border-bottom: 0; }
.mnk-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}
.mnk-cat-head input { width: 1.05rem; height: 1.05rem; accent-color: #2d1b4e; cursor: pointer; }
.mnk-cat-head input:disabled { cursor: default; opacity: 0.65; }
.mnk-cat-name { color: #2d1b4e; }
.mnk-cat-desc {
  margin: 0.35rem 0 0.5rem 1.65rem;
  font-size: 0.87rem;
  line-height: 1.55;
  color: #5b5570;
}

/* actions: Reject and Accept carry identical weight (regulatory symmetry) */
.mnk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.mnk-btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: opacity 0.15s, background 0.15s;
  flex: 1 1 auto;
  min-width: 9rem;
}
.mnk-btn:hover { opacity: 0.88; }
.mnk-btn:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }
.mnk-btn-primary { background: #2d1b4e; color: #fff; }
.mnk-btn-ghost { background: transparent; color: #2d1b4e; border-color: #d8d2c0; }

@media (max-width: 560px) {
  .mnk { padding: 0.6rem; }
  .mnk-box { padding: 1.1rem 1.15rem 1.2rem; border-radius: 14px; }
  .mnk-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mnk-btn { transition: none; }
}

/* dark mode */
html.mn-dark .mnk-box { background: #241738; color: #f4f1ea; border-color: #3a2c55; }
html.mn-dark .mnk-title, html.mn-dark .mnk-cat-name { color: #f4f1ea; }
html.mn-dark .mnk-body, html.mn-dark .mnk-cat-desc { color: rgba(255,255,255,0.75); }
html.mn-dark .mnk-link { color: #F5A623; }
html.mn-dark .mnk-btn-primary { background: #F5A623; color: #2d1b4e; }
html.mn-dark .mnk-btn-ghost { color: #f4f1ea; border-color: #4a3a68; }
html.mn-dark .mnk-cats { border-color: #3a2c55; }
html.mn-dark .mnk-cat { border-color: #33254d; }

/* --- mednext-chrome.css --- */
/* MedNext chrome (header + footer) injected over the mednext-mednext static
   export. Lives OUTSIDE #__nuxt so Vue hydration never touches it.
   Look ported from mednext-public/components/MedNextNav.jsx + MedNextFooter.jsx,
   using the template's font stacks (Louize serif / InterDisplay sans). */

/* ---- kill the template's own chrome ---- */
header.app-header { display: none !important; }
.app-footer { display: none !important; }

:root {
  --mnc-cream: #f7f5e8;
  --mnc-line: #e8e2d0;
  --mnc-deep: #2d1b4e;
  --mnc-purple: #7B5EA7;
  --mnc-saffron: #F5A623;
  --mnc-ink: #1A1A2E;
  --mnc-serif: Louize, Georgia, serif;
  --mnc-sans: InterDisplay, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =============================== HEADER =============================== */
.mnc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 4000;
  font-family: var(--mnc-sans);
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
/* Over light imagery the glass header was washing out, give it a scrim so
   it is never invisible at the top of a hero. */
.mnc-header.is-glass {
  background: rgba(26, 26, 46, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.mnc-header.is-solid {
  background: rgba(247, 245, 232, 0.88);
  box-shadow: 0 1px 0 rgba(26, 26, 46, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html.mn-dark .mnc-header.is-solid { background: rgba(15, 17, 23, 0.92); }

.mnc-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  box-sizing: border-box;
}

.mnc-logo { flex-shrink: 0; line-height: 0; text-decoration: none; }
.mnc-logo img {
  height: 38px; width: auto;
  transition: filter 0.25s ease;
}
/* Keep the logo its original colourful self. Over dark heroes it sits on a
   light chip so it stays legible without inverting to flat white. */
html.mn-dark .mnc-logo img { filter: brightness(0) invert(1); }
.mnc-header.is-glass .mnc-logo {
  background: rgba(255, 253, 244, 0.92);
  border-radius: 12px;
  padding: 5px 12px;
}

/* ---- center pill ---- */
.mnc-pill {
  list-style: none;
  margin: 0;
  display: none;
  align-items: center;
  gap: 0.3rem;
  background: var(--mnc-cream);
  border: 1px solid var(--mnc-line);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.mnc-header.is-glass .mnc-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html.mn-dark .mnc-pill {
  background: rgba(15, 17, 23, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}
.mnc-pill > li { margin: 0; padding: 0; }

.mnc-link {
  color: var(--mnc-ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  display: block;
  white-space: nowrap;
  transition: color 0.16s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: normal;
}
.mnc-header.is-glass .mnc-link { color: rgba(255, 255, 255, 0.9); }
html.mn-dark .mnc-link { color: rgba(255, 255, 255, 0.82); }
.mnc-link:hover { color: var(--mnc-purple) !important; }

.mnc-dd-toggle { display: flex; align-items: center; }
.mnc-dd-toggle svg { margin-left: 0.25rem; }

/* ---- Platform dropdown ---- */
.mnc-dd { position: relative; }
.mnc-dd-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--mnc-cream);
  border: 1px solid var(--mnc-line);
  border-radius: 18px;
  box-shadow: 0 20px 50px -24px rgba(26, 26, 46, 0.4);
  padding: 1.1rem 1rem;
  width: 440px;
  z-index: 4001;
}
.mnc-dd.is-open .mnc-dd-panel { display: block; }
/* invisible bridge over the toggle->panel gap so hover never drops */
.mnc-dd-panel::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.mnc-dd-panel.is-narrow { width: 240px; }
.mnc-dd-panel.is-narrow .mnc-dd-grid { grid-template-columns: 1fr; }
.mnc-dd-title {
  font-family: var(--mnc-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mnc-purple);
  padding: 0 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--mnc-line);
}
.mnc-dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 1rem;
}
.mnc-dd-link {
  display: block;
  color: #3f4658;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  transition: color 0.16s ease, background 0.16s ease;
}
.mnc-dd-link:hover { color: var(--mnc-purple); background: rgba(123, 94, 167, 0.06); }

/* ---- right cluster ---- */
.mnc-right { display: none; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.mnc-login {
  color: var(--mnc-ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.mnc-header.is-glass .mnc-login { color: #fff; }
html.mn-dark .mnc-login { color: rgba(255, 255, 255, 0.85); }
.mnc-login:hover { color: var(--mnc-purple); }

.mnc-startfree {
  background: var(--mnc-saffron);
  color: var(--mnc-ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}
.mnc-startfree:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 166, 35, 0.4); }

.mnc-utils { display: none; gap: 0.4rem; align-items: center; flex-shrink: 0; position: relative; }
.mnc-iconbtn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--mnc-line);
  background: transparent;
  color: #5b5b67;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.mnc-header.is-glass .mnc-iconbtn {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}
html.mn-dark .mnc-iconbtn { color: rgba(255, 255, 255, 0.8); }
.mnc-iconbtn.is-active {
  border-color: var(--mnc-purple);
  background: rgba(123, 94, 167, 0.12);
  color: var(--mnc-purple);
}

/* ---- accessibility panel ---- */
.mnc-a11y {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: var(--mnc-cream);
  border: 1px solid var(--mnc-line);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(20, 20, 26, 0.14);
  padding: 1.25rem;
  z-index: 4001;
  color: var(--mnc-ink);
  font-family: var(--mnc-sans);
}
.mnc-a11y.is-open { display: block; }
html.mn-dark .mnc-a11y { background: #1a1a2e; border-color: rgba(255, 255, 255, 0.1); color: #fff; }
.mnc-a11y-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 1rem; }
.mnc-a11y-label { font-size: 0.75rem; font-weight: 600; color: #5b5b67; margin-bottom: 0.4rem; }
html.mn-dark .mnc-a11y-label { color: rgba(255, 255, 255, 0.7); }
.mnc-a11y-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.mnc-a11y-btn {
  flex: 1;
  padding: 0.4rem;
  border: 1px solid var(--mnc-line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  color: inherit;
  font-family: inherit;
}
html.mn-dark .mnc-a11y-btn { border-color: rgba(255, 255, 255, 0.1); }
.mnc-a11y-btn.is-active {
  border: 1.5px solid var(--mnc-purple);
  background: rgba(123, 94, 167, 0.12);
}

/* ---- burger + mobile drawer ---- */
.mnc-burger {
  display: flex;
  align-items: center;
  background: none;
  border-radius: 999px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  border: 1px solid var(--mnc-line);
  color: var(--mnc-ink);
}
.mnc-header.is-glass .mnc-burger { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
html.mn-dark .mnc-burger { color: #fff; }

.mnc-drawer {
  display: none;
  background: var(--mnc-cream);
  border-top: 1px solid var(--mnc-line);
  padding: 1.25rem 24px 1.5rem;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
html.mn-dark .mnc-drawer { background: #0f1117; border-top-color: rgba(255, 255, 255, 0.08); }
.mnc-header.menu-open .mnc-drawer { display: block; }
.mnc-header.menu-open { background: var(--mnc-cream); }
html.mn-dark .mnc-header.menu-open { background: #0f1117; }
.mnc-mlink {
  display: block;
  color: #3f4658;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--mnc-line);
}
html.mn-dark .mnc-mlink { color: rgba(255, 255, 255, 0.82); border-bottom-color: rgba(255, 255, 255, 0.08); }
.mnc-mlink.is-small { font-weight: 500; font-size: 0.9rem; padding: 0.55rem 0; border-bottom: none; }
.mnc-mrow { display: flex; gap: 0.75rem; margin-top: 1.3rem; align-items: center; }

@media (min-width: 1024px) {
  .mnc-pill { display: flex; }
  .mnc-right { display: flex; }
  .mnc-utils { display: flex; }
  .mnc-burger { display: none; }
  .mnc-drawer { display: none !important; }
}

/* =============================== FOOTER =============================== */
.mnc-footer {
  background: var(--mnc-cream);
  border-top: 1px solid var(--mnc-line);
  color: #4b5563;
  font-family: var(--mnc-sans);
  padding: 4.5rem 0 2rem;
  font-size: 16px;
  line-height: 1.5;
}
html.mn-dark .mnc-footer { background: #0f1117; border-top-color: rgba(255, 255, 255, 0.1); }
.mnc-foot-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.mnc-foot-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--mnc-line);
}
.mnc-foot-brand .brand-copy { max-width: 460px; }
.mnc-foot-brand img { height: clamp(48px, 8vw, 64px); width: auto; }
html.mn-dark .mnc-foot-brand img { filter: brightness(0) invert(1); }
.mnc-foot-brand p { font-size: 0.95rem; color: #5b5b67; line-height: 1.7; margin: 1rem 0 0; }
html.mn-dark .mnc-foot-brand p { color: rgba(255, 255, 255, 0.65); }
.mnc-foot-trial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mnc-saffron);
  color: var(--mnc-ink);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}
.mnc-foot-trial:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 166, 35, 0.4); }

.mnc-foot-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
@media (max-width: 900px) { .mnc-foot-cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 520px) { .mnc-foot-cols { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }

.mnc-foot-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mnc-ink);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 0.9rem;
}
html.mn-dark .mnc-foot-col-title { color: rgba(255, 255, 255, 0.9); }
.mnc-foot-cols ul { list-style: none; padding: 0; margin: 0; }
.mnc-foot-cols li { margin-bottom: 0.5rem; }
.mnc-foot-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
html.mn-dark .mnc-foot-link { color: rgba(255, 255, 255, 0.6); }
.mnc-foot-link:hover { color: var(--mnc-purple) !important; }

.mnc-foot-strip { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--mnc-line); }
.mnc-foot-social-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.mnc-foot-social {
  color: #6b7280;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
html.mn-dark .mnc-foot-social { color: rgba(255, 255, 255, 0.55); }
.mnc-foot-social:hover { color: var(--mnc-purple) !important; }
.mnc-foot-exams-label {
  font-size: 0.68rem;
  color: #8a8f9c;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.mnc-foot-exams { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mnc-foot-exam {
  background: rgba(45, 27, 78, 0.06);
  color: #5b5b67;
  font-size: 0.68rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--mnc-line);
}
html.mn-dark .mnc-foot-exam { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.1); }

.mnc-foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mnc-line);
}
.mnc-foot-bottom p { font-size: 0.75rem; color: #8a8f9c; margin: 0; }
.mnc-foot-bottom a { color: #6b7280; text-decoration: none; font-size: 0.75rem; }
.mnc-foot-bottom a:hover { color: var(--mnc-purple); }

/* ---- intro loader ---- */
/* Header contents stay invisible (layout intact) until the intro lands. */
.mnc-header.mnc-preintro .mnc-pill,
.mnc-header.mnc-preintro .mnc-right,
.mnc-header.mnc-preintro .mnc-utils,
.mnc-header.mnc-preintro .mnc-burger,
.mnc-header.mnc-preintro .mnc-logo img {
  opacity: 0;
}
.mnc-header .mnc-pill,
.mnc-header .mnc-right,
.mnc-header .mnc-utils,
.mnc-header .mnc-burger,
.mnc-header .mnc-logo img {
  transition: opacity 0.45s ease;
}

.mnc-intro {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--mnc-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.mnc-intro-logo {
  height: clamp(64px, 10vw, 110px);
  width: auto;
  filter: brightness(0) invert(1);
  transform-origin: center center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease;
}
.mnc-intro.is-landing {
  background: transparent;
  pointer-events: none;
  transition: background 0.55s ease, opacity 0.55s ease, visibility 0.55s ease;
}
.mnc-intro-logo.is-ink { filter: none; }
.mnc-intro.is-done { opacity: 0; visibility: hidden; }

/* ---- floating immersive / light experience toggle ---- */
.mnc-mode {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 3900;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-direction: row-reverse;
}
.mnc-mode-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fffdf4;
  border: 2px solid var(--mnc-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 10px 28px -10px rgba(45, 27, 78, 0.55);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.mnc-mode-toggle:hover { transform: translateY(-3px) scale(1.04); }
.mnc-mode-toggle:focus-visible { outline: 2px solid var(--mnc-purple); outline-offset: 3px; }
.mnc-mode-toggle.is-light { border-color: var(--mnc-saffron); }
.mnc-mode-logo { width: 34px; height: 34px; object-fit: contain; display: block; }
html.mn-dark .mnc-mode-toggle { background: #1a1d29; }

/* hover tooltip + click toast, to the LEFT of the button (no text baked on the button) */
.mnc-mode-tip {
  font-family: var(--mnc-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--mnc-deep);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 18px -8px rgba(45, 27, 78, 0.6);
}
.mnc-mode:hover .mnc-mode-tip,
.mnc-mode.is-toast .mnc-mode-tip { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .mnc-mode-toggle, .mnc-mode-tip { transition: none; }
}

/* ---- minimal dark mode + high contrast ---- */
html.mn-high-contrast body { filter: contrast(1.15); }

/* --- mednext-home.css --- */
/* MedNext injected homepage sections (see mednext-home.js). Uses the chrome
   design tokens from mednext-chrome.css and the template's Louize/InterDisplay
   stacks so the sections read as part of the page. */

.mnh {
  font-family: var(--mnc-sans);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  /* stack above the stat-section's falling-textbook decoration, which
     overhangs its own section */
  position: relative;
  z-index: 10;
}
.mnh-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mnc-saffron);
  margin: 0 0 1rem;
}
.mnh-title {
  font-family: var(--mnc-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 18em;
}
.mnh-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  max-width: 42em;
  margin: 0 0 2.5rem;
  opacity: 0.8;
}

/* ---- By the Numbers: set in the template's own .home-numbers language
   (cream ground, giant Louize numerals with asymmetric offsets, white
   ui-pill labels, hairline grid for the rest) ---- */
.mnh-numbers {
  background: #f7f5e8;
  color: var(--mnc-deep);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.mnh-numbers .mnh-sub { margin-bottom: 1.5rem; }
.mnh-num-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.mnh-num-big { margin: 0.5rem 0 0; }
.mnh-num-big.is-offset { margin-top: 2.2rem; }
.mnh-num-big-value {
  display: block;
  font-family: var(--mnc-serif);
  font-size: clamp(3.5rem, 7.5vw, 6.5rem);
  line-height: 1.05;
  color: var(--mnc-deep);
  font-variant-numeric: tabular-nums;
}
.mnh-pill {
  display: inline-block;
  background: #fff;
  border-radius: 1.2em;
  padding: 0.45em 1.1em;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--mnc-deep);
  box-shadow: 0 10px 30px -18px rgba(45, 27, 78, 0.45);
}
.mnh-num-big .mnh-num-support {
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0.6rem 0 0;
  opacity: 0.85;
  max-width: 30em;
}
.mnh-num-rest {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem 1.5rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
.mnh-num-cell { border-top: 1px solid var(--mnc-line); padding-top: 1rem; }
.mnh-num-value {
  display: block;
  font-family: var(--mnc-serif);
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  line-height: 1.1;
  color: var(--mnc-deep);
  font-variant-numeric: tabular-nums;
}
.mnh-num-label { font-size: 1.15rem; line-height: 1.45; opacity: 0.92; display: block; margin-top: 0.35rem; }
@media (max-width: 1000px) {
  .mnh-num-features { grid-template-columns: 1fr; gap: 1.5rem; }
  .mnh-num-big.is-offset { margin-top: 0; }
  .mnh-num-rest { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Exam ribbon (moving marquee under the hero blurb) ---- */
.mnh-ribbon {
  background: var(--mnc-deep);
  color: rgba(247, 245, 232, 0.92);
  overflow: hidden;
  position: relative;
  z-index: 10;
  padding: 0.7rem 0;
  font-family: var(--mnc-sans);
}
.mnh-ribbon-track {
  display: flex;
  width: max-content;
  animation: mnh-ribbon-scroll 32s linear infinite;
}
.mnh-ribbon-seq { display: flex; align-items: center; }
.mnh-ribbon-item {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.mnh-ribbon-dot { padding: 0 1.1rem; color: var(--mnc-saffron); opacity: 0.9; }
@keyframes mnh-ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mnh-ribbon-track { animation: none; }
}

/* ---- Why Clinicians Choose MedNext ---- */
.mnh-why { background: #f7f5e8; color: var(--mnc-ink); }
.mnh-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: -0.75rem 0 2.75rem; align-items: center; }
.mnh-cta-primary {
  background: var(--mnc-saffron);
  color: var(--mnc-ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}
.mnh-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 166, 35, 0.4); }
.mnh-cta-ghost { color: var(--mnc-purple); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.mnh-cta-ghost:hover { text-decoration: underline; }
.mnh-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mnh-why-card {
  background: #fffdf4;
  border: 1px solid var(--mnc-line);
  border-radius: 20px;
  padding: clamp(1.4rem, 2.2vw, 2rem);
}
.mnh-why-index {
  font-family: var(--mnc-serif);
  font-size: 1.05rem;
  color: var(--mnc-saffron);
  display: block;
  margin-bottom: 0.9rem;
}
.mnh-why-title {
  font-family: var(--mnc-sans);
  font-size: 1.08rem;
  font-weight: 650;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.mnh-why-text { font-size: 0.92rem; line-height: 1.6; margin: 0; color: #4b5563; }
@media (max-width: 1000px) { .mnh-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mnh-why-grid { grid-template-columns: 1fr; } }

/* ---- shared card rows (Ward / Coffee) ---- */
.mnh-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mnh-card {
  border: 1px solid var(--mnc-line);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  background: #f7f5e8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mnh-card-icon { font-size: 2rem; line-height: 1; margin-bottom: 1.1rem; }
.mnh-card-title {
  font-family: var(--mnc-sans);
  font-size: 1.12rem;
  font-weight: 650;
  margin: 0 0 0.6rem;
}
.mnh-card-text { font-size: 0.95rem; line-height: 1.65; margin: 0; color: #4b5563; }
@media (max-width: 900px) { .mnh-card-row { grid-template-columns: 1fr; } }

/* ---- Built for the Ward ---- */
.mnh-ward { background: #fffdf4; color: var(--mnc-ink); }

/* ---- Coffee Break Cases ---- */
.mnh-coffee { background: #f8dfa8; color: var(--mnc-ink); }
.mnh-coffee .mnh-kicker { color: var(--mnc-deep); }
.mnh-coffee-card { background: #fffdf4; }
.mnh-coffee-exam {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mnc-purple);
  margin-bottom: 0.6rem;
}
.mnh-coffee-solve {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--mnc-ink);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.mnh-coffee-solve:hover { color: var(--mnc-purple); }
.mnh-coffee-card .mnh-card-text { margin-bottom: 0.4rem; }

/* Case of the Day */
.mnh-case-card {
  background: #fffdf4;
  border: 1px solid rgba(45, 27, 78, 0.12);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 18px 48px -30px rgba(26, 26, 46, 0.5);
}
.mnh-case-specialty {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mnc-purple);
  background: rgba(123, 94, 167, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.mnh-case-stem { font-size: 1.12rem; line-height: 1.6; color: var(--mnc-ink); margin: 0 0 1rem; }
.mnh-case-q { font-size: 1.02rem; line-height: 1.55; color: #2d2d3d; margin: 0 0 1.4rem; }
.mnh-case-reveal {
  background: var(--mnc-deep);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, background 0.18s ease;
}
.mnh-case-reveal:hover { transform: translateY(-2px); background: #3d2764; }
.mnh-case-answer { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(45, 27, 78, 0.12); }
.mnh-case-answer p { font-size: 1rem; line-height: 1.6; color: var(--mnc-ink); margin: 0 0 0.8rem; }
.mnh-case-pearl { color: #4b3f63; }
.mnh-case-loading { color: #8a8f9c; font-size: 0.95rem; margin: 0; }
.mnh-case-actions { text-align: center; margin-top: 1.5rem; }
.mnh-case-actions .mnh-coffee-solve { padding-top: 0; }
html.mn-dark .mnh-case-card { background: #161925; border-color: rgba(255, 255, 255, 0.1); }
html.mn-dark .mnh-case-stem, html.mn-dark .mnh-case-answer p { color: #e8e6f0; }
html.mn-dark .mnh-case-q { color: rgba(255, 255, 255, 0.72); }
html.mn-dark .mnh-case-pearl { color: rgba(255, 255, 255, 0.6); }

/* ---- MedNext in Your Pocket ---- */
.mnh-pocket { background: var(--mnc-deep); color: #f7f5e8; }
.mnh-pocket-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.mnh-pocket .mnh-sub { opacity: 0.85; margin-bottom: 2rem; }
.mnh-store-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mnh-store {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}
.mnh-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.mnh-check {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 1rem;
  line-height: 1.5;
}
.mnh-check span { color: var(--mnc-saffron); font-weight: 700; }
@media (max-width: 900px) { .mnh-pocket-inner { grid-template-columns: 1fr; } }

/* ---- dark mode ---- */
html.mn-dark .mnh-numbers { background: #0f1117; color: #e8e6f0; }
html.mn-dark .mnh-num-big-value,
html.mn-dark .mnh-num-value { color: var(--mnc-saffron); }
html.mn-dark .mnh-pill { background: #1a1a2e; color: #e8e6f0; box-shadow: none; }
html.mn-dark .mnh-num-cell { border-top-color: rgba(255, 255, 255, 0.12); }
html.mn-dark .mnh-why { background: #0f1117; color: #e8e6f0; }
html.mn-dark .mnh-why-card { background: #161925; border-color: rgba(255, 255, 255, 0.1); }
html.mn-dark .mnh-why-text { color: rgba(255, 255, 255, 0.65); }
html.mn-dark .mnh-ward { background: #12141d; color: #e8e6f0; }
html.mn-dark .mnh-card { background: #161925; border-color: rgba(255, 255, 255, 0.1); }
html.mn-dark .mnh-card-text { color: rgba(255, 255, 255, 0.65); }
html.mn-dark .mnh-coffee { background: #1c1a10; color: #e8e6f0; }
html.mn-dark .mnh-coffee .mnh-kicker { color: var(--mnc-saffron); }
html.mn-dark .mnh-coffee-card { background: #161925; }
html.mn-dark .mnh-coffee-solve { color: #e8e6f0; }

/* --- mednext-content.css --- */
/* MedNext rich page-content body, injected by mednext-content.js.
   Native mednext vocabulary: Louize serif, deep purple #2d1b4e, saffron
   #f5a623, cream #f7f5e8. Full-width alternating bands (white / cream) give
   the airy section rhythm of the mednext homepage; the CTA closes on deep
   purple. Tokens come from mednext-chrome.css (--mnc-*). */

.mnc { position: relative; z-index: 10; }

/* full-width band; each section carries its own ground + measured vertical air */
.mnc-section {
  padding: clamp(4rem, 7vw, 7rem) 1.5rem;
  background: #ffffff;
}
.mnc-section:nth-of-type(2n) { background: var(--mnc-cream, #f7f5e8); }

/* centered reading column inside every band */
.mnc-wrap { max-width: 1140px; margin: 0 auto; }

.mnc-h2 {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--mnc-deep, #2d1b4e);
  margin: 0 0 1.5rem;
}
.mnc-lead {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.55;
  color: var(--mnc-deep, #2d1b4e);
  max-width: 50ch;
  margin: 0 0 1.8rem;
}
.mnc-p {
  font-family: var(--mnc-sans, system-ui, sans-serif);
  font-size: 1.08rem;
  line-height: 1.82;
  color: #4a4560;
  max-width: 68ch;
  margin: 0 0 1.15rem;
}
.mnc-p:last-child { margin-bottom: 0; }
.mnc-p strong, .mnc-col-list strong { color: var(--mnc-deep, #2d1b4e); font-weight: 600; }
.mnc-p a, .mnc-callout a { color: #8a6bb8; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(138,107,184,.35); }

/* asymmetric split: prose one side, photo / data-figure the other */
.mnc-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.mnc-split.mnc-flip { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.mnc-split-text { align-self: center; }
.mnc-split.mnc-flip .mnc-split-text { order: 2; }
.mnc-split.mnc-flip .mnc-split-media,
.mnc-split.mnc-flip .mnc-figure { order: 1; }
.mnc-split-text .mnc-lead { max-width: none; }
.mnc-split-text .mnc-p { max-width: none; }

.mnc-split-media { position: relative; align-self: center; width: 100%; }
.mnc-photo {
  width: 100%; height: clamp(360px, 38vw, 520px); object-fit: cover;
  border-radius: 22px; display: block;
  box-shadow: 0 24px 60px rgba(45,27,78,.16);
}
.mnc-photo-cap {
  font-family: var(--mnc-sans, sans-serif); font-size: 0.82rem;
  color: #7a7290; margin-top: 0.7rem; text-align: right;
}

/* competition funnel: two tapered tiers, big Louize numerals */
.mnc-figure-funnel {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1rem;
}
.mnc-funnel-tier {
  width: 100%; text-align: center; color: #fff;
  padding: 1.6rem 1rem;
  background: var(--mnc-deep, #2d1b4e);
}
.mnc-funnel-top {
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  border-radius: 18px 18px 0 0;
}
.mnc-funnel-bottom {
  width: 72%;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
  background: var(--mnc-saffron, #f5a623); color: var(--mnc-deep, #2d1b4e);
  border-radius: 0 0 14px 14px;
}
.mnc-funnel-v {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1;
}
.mnc-funnel-l {
  font-family: var(--mnc-sans, sans-serif); font-size: 0.82rem;
  letter-spacing: 0.03em; margin-top: 0.35rem; opacity: 0.9;
}
.mnc-funnel-mid {
  font-family: var(--mnc-sans, sans-serif); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: #b6801c;
}
.mnc-funnel-foot {
  font-family: var(--mnc-sans, sans-serif); font-size: 0.86rem;
  color: #7a7290; margin-top: 0.6rem; text-align: center; max-width: 30ch;
}

/* horizontal bar chart from real data */
.mnc-chart { display: grid; gap: 1.6rem; margin-top: 0.5rem; }
.mnc-bar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.6rem;
}
.mnc-bar-label {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: 1.15rem; color: var(--mnc-deep, #2d1b4e);
}
.mnc-bar-val {
  font-family: var(--mnc-sans, sans-serif); font-weight: 700;
  font-size: 0.95rem; color: #b6801c;
}
.mnc-bar-track {
  height: 14px; border-radius: 999px; background: rgba(45,27,78,.08); overflow: hidden;
}
.mnc-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--mnc-purple, #7B5EA7), var(--mnc-deep, #2d1b4e));
  transform-origin: left; animation: mnc-bar-grow 0.9s cubic-bezier(.16,1,.3,1) both;
}
.mnc-bar-accent { background: linear-gradient(90deg, #ffcf6b, var(--mnc-saffron, #f5a623)); }
.mnc-bar-note {
  font-family: var(--mnc-sans, sans-serif); font-size: 0.88rem;
  color: #6a647e; margin-top: 0.55rem;
}
@keyframes mnc-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .mnc-bar-fill { animation: none; } }

/* background image behind a band (text stays crisp above it) */
.mnc-has-bg { position: relative; overflow: hidden; }
.mnc-has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--mnc-bg);
  background-size: cover; background-position: center;
  opacity: 0.14;
}
.mnc-has-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(247,245,232,.4), rgba(247,245,232,.75));
}
.mnc-has-bg .mnc-wrap { position: relative; z-index: 1; }

/* bold dark image band: photo clearly visible, white numerals over a deep scrim */
.mnc-bg-dark::before { opacity: 1; }
.mnc-bg-dark::after {
  background: linear-gradient(180deg, rgba(26,17,43,.82), rgba(26,17,43,.68));
}
.mnc-bg-dark .mnc-h2 { color: #ffffff; }
.mnc-bg-dark .mnc-lead { color: rgba(247,245,232,.9); }
.mnc-bg-dark .mnc-stat { border-top-color: rgba(245,166,35,.55); }
.mnc-bg-dark .mnc-stat-value { color: #ffffff; }
.mnc-bg-dark .mnc-stat-label { color: rgba(245,166,35,.95); }

/* stat band: giant Louize numerals, spread out with generous air, hairline rule */
.mnc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 3rem);
  margin-top: 0.5rem;
}
.mnc-stat {
  border-top: 2px solid var(--mnc-line, #e8e2d0);
  padding: 1.4rem 0.25rem 0;
}
.mnc-stat-value {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--mnc-deep, #2d1b4e);
}
.mnc-stat-label {
  font-family: var(--mnc-sans, system-ui, sans-serif);
  font-size: 0.86rem;
  color: #7a7290;
  margin-top: 0.7rem;
  letter-spacing: 0.03em;
}
@media (max-width: 800px) {
  .mnc-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* cards: warm cream tiles, hairline border, homepage why-card idiom */
.mnc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.mnc-card {
  background: #fffdf4;
  border: 1px solid var(--mnc-line, #e8e2d0);
  border-radius: 20px;
  padding: clamp(1.4rem, 2vw, 1.9rem);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.mnc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(45,27,78,.09); }
.mnc-card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--mnc-deep, #2d1b4e); color: var(--mnc-saffron, #f5a623);
}
.mnc-card-icon svg { width: 24px; height: 24px; }
.mnc-card-title {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: 1.2rem; color: var(--mnc-deep, #2d1b4e); margin: 0 0 0.55rem;
}
.mnc-card-desc { font-size: 0.94rem; line-height: 1.65; color: #4a4560; margin: 0; }

/* two-column plans */
.mnc-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.mnc-col {
  background: #fffdf4;
  border: 1px solid var(--mnc-line, #e8e2d0);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  position: relative;
}
/* featured = a subtle "Recommended" LABEL, not an active/selected state:
   same ground + border weight as siblings so nothing looks pre-clicked, with a
   small badge + hairline top accent as the only distinction. */
.mnc-col-featured {
  box-shadow: inset 0 3px 0 0 var(--mnc-saffron, #f5a623);
}
.mnc-col-featured::before {
  content: "Recommended";
  position: absolute; top: -0.62rem; left: clamp(1.5rem, 2.2vw, 2rem);
  background: var(--mnc-saffron, #f5a623); color: var(--mnc-deep, #2d1b4e);
  font-family: var(--mnc-sans, sans-serif); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.28rem 0.72rem; border-radius: 999px;
}
.mnc-col-title {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: 1.25rem; color: var(--mnc-deep, #2d1b4e); margin: 0 0 1rem;
}
.mnc-col-list { margin: 0; padding-left: 1.2rem; }
.mnc-col-list li { font-size: 0.96rem; line-height: 1.9; color: #4a4560; }

/* stepped timeline variant: numbered nodes on a connecting rail */
.mnc-col-steps {
  list-style: none; padding-left: 0; margin: 0;
  counter-reset: mnc-step;
}
.mnc-col-steps li {
  position: relative; padding: 0 0 1.3rem 2.5rem; counter-increment: mnc-step;
}
.mnc-col-steps li::before {
  content: counter(mnc-step);
  position: absolute; left: 0; top: 0.1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mnc-deep, #2d1b4e); color: #fff;
  font-family: var(--mnc-sans, sans-serif); font-size: 0.82rem; font-weight: 700;
}
.mnc-col-steps li::after {
  content: ""; position: absolute; left: 0.8rem; top: 1.9rem; bottom: -0.1rem;
  width: 2px; background: var(--mnc-line, #e8e2d0);
}
.mnc-col-steps li:last-child { padding-bottom: 0; }
.mnc-col-steps li:last-child::after { display: none; }
.mnc-col-featured .mnc-col-steps li::before { background: var(--mnc-saffron, #f5a623); color: var(--mnc-deep, #2d1b4e); }

/* full-bleed image banner with overlay copy */
.mnc-section.mnc-banner {
  background-size: cover; background-position: center;
  padding: clamp(6rem, 11vw, 10rem) 1.5rem;
}
.mnc-section.mnc-banner:nth-of-type(2n) { background-color: transparent; }
.mnc-banner-inner { max-width: 720px; margin: 0; }
.mnc-banner-kicker { color: var(--mnc-saffron, #f5a623); }
.mnc-banner-h { color: #fff; margin-bottom: 1rem; }
.mnc-banner-text {
  font-family: var(--mnc-sans, sans-serif); font-size: 1.1rem; line-height: 1.7;
  color: rgba(247,245,232,.9); margin: 0 0 1.8rem; max-width: 52ch;
}

/* callout: inset panel with saffron rule */
.mnc-callout {
  background: #fffdf4;
  border-left: 3px solid var(--mnc-deep, #2d1b4e);
  border-radius: 0 14px 14px 0;
  padding: 1.75rem 2rem;
}
.mnc-callout-warm { background: #fffbeb; border-left-color: var(--mnc-saffron, #f5a623); }
.mnc-callout p { font-size: 1.02rem; line-height: 1.8; color: #4a4560; margin: 0 0 1rem; }
.mnc-callout p:last-child { margin-bottom: 0; }
.mnc-callout strong { color: var(--mnc-deep, #2d1b4e); }

/* faq accordion: two columns to use the width and cut vertical length */
.mnc-faq .mnc-h2 { margin-bottom: 1.5rem; }
.mnc-faq-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.mnc-faq-item {
  border-bottom: 1px solid var(--mnc-line, #e8e2d0);
  padding: 1.1rem 0;
}
.mnc-faq-q {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: 1.18rem; color: var(--mnc-deep, #2d1b4e);
  cursor: pointer; list-style: none; position: relative; padding-right: 2rem;
}
.mnc-faq-q::-webkit-details-marker { display: none; }
.mnc-faq-q::after {
  content: "+"; position: absolute; right: 0; top: -0.1rem;
  color: var(--mnc-saffron, #f5a623); font-size: 1.5rem; line-height: 1;
  font-family: var(--mnc-sans, sans-serif);
}
.mnc-faq-item[open] .mnc-faq-q::after { content: "-"; }
.mnc-faq-a { font-size: 1rem; line-height: 1.8; color: #4a4560; margin: 1rem 0 0; max-width: 70ch; }

/* CTA: deep-purple closing band, saffron pill */
.mnc-cta { background: var(--mnc-deep, #2d1b4e); text-align: center; }
.mnc-section.mnc-cta:nth-of-type(2n) { background: var(--mnc-deep, #2d1b4e); }
.mnc-cta .mnc-wrap { max-width: 640px; }
.mnc-cta .mnc-h2 { color: #ffffff; }
.mnc-cta-text { font-size: 1.1rem; line-height: 1.7; color: rgba(247,245,232,.86); margin: 0 auto 1.9rem; }
.mnc-cta-actions {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 1rem 1.4rem;
}
.mnc-cta-btn {
  display: inline-block;
  background: var(--mnc-saffron, #f5a623);
  color: var(--mnc-deep, #2d1b4e);
  font-family: var(--mnc-sans, sans-serif);
  font-weight: 700; font-size: 1.02rem;
  padding: 0.95rem 2.4rem; border-radius: 999px; text-decoration: none;
  transition: transform .2s, background .2s;
}
.mnc-cta-btn:hover { background: #ffb838; transform: translateY(-2px); }
.mnc-cta-btn:active { transform: translateY(0); }
.mnc-cta-secondary {
  color: rgba(255,255,255,.88); font-family: var(--mnc-sans, sans-serif);
  font-size: .98rem; font-weight: 600; text-underline-offset: .28rem;
}
.mnc-cta-secondary:hover { color: #fff; }

/* Collapse the mednext hero to a compact branded header (its .bottom band is a
   hard-coded 900px grid, fully redundant with the injected content). */
.mnc-host .program-hero { min-height: 0 !important; padding-bottom: clamp(3rem, 5vw, 4.5rem) !important; }
.mnc-host .program-hero .bottom { display: none !important; }
.mnc-host .program-hero .top { min-height: 0 !important; }

/* asymmetric split hero: title/subtitle/cta left, exam-essentials card right */
.mnc-host .program-hero.mnc-hero-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.mnc-hero-kicker {
  font-family: var(--mnc-sans, sans-serif);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; font-weight: 600;
  color: #b6801c; margin-bottom: 1.1rem;
}
.mnc-hero-sub {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55;
  color: var(--mnc-deep, #2d1b4e); opacity: 0.82;
  max-width: 46ch; margin: 1.6rem 0 2rem;
}
.mnc-hero-cta {
  display: inline-block; background: var(--mnc-deep, #2d1b4e); color: #fff;
  font-family: var(--mnc-sans, sans-serif); font-weight: 700; font-size: 1rem;
  padding: 0.9rem 2.3rem; border-radius: 999px; text-decoration: none;
  transition: transform .2s, background .2s;
}
.mnc-hero-cta:hover { background: #3d2a63; transform: translateY(-2px); }
.mnc-hero-aside {
  background: rgba(255,255,255,.55); border: 1px solid rgba(45,27,78,.12);
  border-radius: 22px; padding: 1.25rem 1.9rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mnc-hero-fact {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0; border-bottom: 1px solid rgba(45,27,78,.1);
}
.mnc-hero-fact:last-child { border-bottom: 0; }
.mnc-hero-fact-v {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: 1.7rem; line-height: 1.1; color: var(--mnc-deep, #2d1b4e);
  flex-shrink: 0;
}
.mnc-hero-fact-l {
  font-family: var(--mnc-sans, sans-serif); font-size: 0.9rem; line-height: 1.45;
  color: #7a7290; text-align: right;
}

/* standalone hero band for journal / legal templates (no mednext program hero) */
.mnc-pagehero {
  background: var(--mnc-cream, #f7f5e8);
  padding: clamp(3.5rem, 7vw, 6rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
}
.mnc-pagehero .mnc-wrap { max-width: 960px; }
.mnc-pagehero-title {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--mnc-deep, #2d1b4e); margin: 0.5rem 0 0;
}
.mnc-pagehero-sub {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55;
  color: var(--mnc-deep, #2d1b4e); opacity: 0.8; max-width: 60ch; margin: 1.3rem 0 0;
}
.mnc-pagehero + .mnc-section { background: #ffffff; }

/* ============================================================= *
 *  EDITORIAL ARTICLE FLOW (blog)                                *
 * ============================================================= */
.mnc-article { background: #ffffff; padding-bottom: 1rem; }
.mnc-art-head { padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem 1.75rem; }
.mnc-art-col { max-width: 760px; margin: 0 auto; }
.mnc-art-cat {
  display: inline-block; font-family: var(--mnc-sans, sans-serif);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: #b6801c; margin-bottom: 1.1rem;
}
.mnc-art-title {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--mnc-deep, #2d1b4e); margin: 0;
}
.mnc-art-standfirst {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.5;
  color: var(--mnc-deep, #2d1b4e); opacity: 0.82; margin: 1.3rem 0 0; max-width: 62ch;
}
.mnc-art-meta {
  font-family: var(--mnc-sans, sans-serif); font-size: 0.9rem; color: #7a7290;
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--mnc-line, #e8e2d0);
}
.mnc-art-figure { margin: 0 auto 2.5rem; max-width: 1080px; padding: 0 1.5rem; }
.mnc-art-img {
  width: 100%; height: clamp(240px, 42vw, 520px); object-fit: contain;
  background: #fff; padding: 1rem; box-sizing: border-box;
  border-radius: 22px; display: block; box-shadow: 0 24px 60px rgba(45,27,78,.16);
}
.mnc-art-figcap { font-family: var(--mnc-sans, sans-serif); font-size: 0.82rem; color: #7a7290; margin-top: 0.7rem; text-align: center; }
.mnc-art-body { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.mnc-art-body > * { margin: 0 0 1.35rem; }
.mnc-art-p {
  font-family: var(--mnc-sans, system-ui, sans-serif);
  font-size: 1.14rem; line-height: 1.8; color: #33303f;
}
.mnc-art-h2 {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--mnc-deep, #2d1b4e); margin: 2.6rem 0 1.1rem;
}
.mnc-art-h3 {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--mnc-deep, #2d1b4e);
  margin: 2rem 0 0.8rem;
}
.mnc-art-ul { padding-left: 1.3rem; }
.mnc-art-ul li { font-family: var(--mnc-sans, sans-serif); font-size: 1.1rem; line-height: 1.75; color: #33303f; margin-bottom: 0.6rem; }
.mnc-art-quote {
  border-left: 3px solid var(--mnc-saffron, #f5a623); margin: 2.2rem 0; padding: 0.4rem 0 0.4rem 1.6rem;
  font-family: var(--mnc-serif, Louize, Georgia, serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.4; color: var(--mnc-deep, #2d1b4e); font-style: italic;
}
.mnc-art-p strong, .mnc-art-ul strong { color: var(--mnc-deep, #2d1b4e); font-weight: 700; }
.mnc-art-p a { color: #8a6bb8; border-bottom: 1px solid rgba(138,107,184,.35); text-decoration: none; }
.mnc-art-faq { margin-top: 2.6rem; padding-top: 0.5rem; }
.mnc-art-faq .mnc-faq-item { border-bottom: 1px solid var(--mnc-line, #e8e2d0); padding: 1.1rem 0; }

/* related tiles (magazine grid) */
.mnc-art-related { max-width: 1080px; margin: 3.5rem auto 0; padding: clamp(2.5rem,4vw,3.5rem) 1.5rem; border-top: 1px solid var(--mnc-line, #e8e2d0); }
.mnc-tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.mnc-tile {
  display: block; text-decoration: none; background: #fffdf4;
  border: 1px solid var(--mnc-line, #e8e2d0); border-radius: 18px; padding: 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.mnc-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(45,27,78,.1); }
.mnc-tile-cat { font-family: var(--mnc-sans, sans-serif); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #b6801c; font-weight: 700; }
.mnc-tile-title { font-family: var(--mnc-serif, Louize, Georgia, serif); font-size: 1.2rem; color: var(--mnc-deep, #2d1b4e); margin: 0.5rem 0 0.4rem; line-height: 1.2; }
.mnc-tile-ex { font-family: var(--mnc-sans, sans-serif); font-size: 0.92rem; line-height: 1.6; color: #4a4560; margin: 0; }
.mnc-tile-more { display: inline-block; margin-top: 0.85rem; font-family: var(--mnc-sans, sans-serif); font-size: 0.85rem; font-weight: 700; color: var(--mnc-deep, #2d1b4e); }
.mnc-tile:hover .mnc-tile-more { color: #b6801c; }
html.mn-dark .mnc-tile-more { color: rgba(255,255,255,0.9); }

/* photo tiles (blog index): image cap + body */
.mnc-tile-photo { padding: 0; overflow: hidden; }
.mnc-tile-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.mnc-tile-photo .mnc-tile-body { padding: 1.25rem 1.4rem 1.5rem; }
.mnc-feed-sec.mnc-tiles .mnc-tile-ex {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================= *
 *  FEED FLOW (social / podcast)                                 *
 * ============================================================= */
.mnc-feed-head {
  background: var(--mnc-deep, #2d1b4e);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(2.5rem, 4vw, 3.5rem);
}
.mnc-feed-head .mnc-wrap { max-width: 900px; }
.mnc-feed-head .mnc-hero-kicker { color: var(--mnc-saffron, #f5a623); }
.mnc-feed-title { font-family: var(--mnc-serif, Louize, Georgia, serif); font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; color: #fff; margin: 0.4rem 0 0; }
.mnc-feed-sub { font-family: var(--mnc-serif, Louize, Georgia, serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: rgba(247,245,232,.85); margin: 1.1rem 0 1.6rem; max-width: 60ch; }
.mnc-feed-head .mnc-hero-cta { background: var(--mnc-saffron, #f5a623); color: var(--mnc-deep, #2d1b4e); }
.mnc-feed-head .mnc-hero-cta:hover { background: #ffb838; }
.mnc-feed-sec .mnc-wrap { max-width: 900px; }

.mnc-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mnc-chip {
  font-family: var(--mnc-sans, sans-serif); font-size: 0.9rem; font-weight: 600;
  color: var(--mnc-deep, #2d1b4e); background: #fffdf4; border: 1px solid var(--mnc-line, #e8e2d0);
  padding: 0.55rem 1.1rem; border-radius: 999px;
}
.mnc-item-list { display: grid; gap: 1rem; }
.mnc-item {
  display: flex; gap: 1.25rem; align-items: flex-start; text-decoration: none;
  background: #fffdf4; border: 1px solid var(--mnc-line, #e8e2d0); border-radius: 16px;
  padding: 1.4rem 1.6rem; transition: transform .2s, box-shadow .2s;
}
a.mnc-item:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(45,27,78,.09); }
.mnc-item .mnc-card-icon { flex: 0 0 auto; margin: 0; }
.mnc-item-title { font-family: var(--mnc-serif, Louize, Georgia, serif); font-size: 1.2rem; color: var(--mnc-deep, #2d1b4e); margin: 0 0 0.35rem; }
.mnc-item-desc { font-family: var(--mnc-sans, sans-serif); font-size: 0.98rem; line-height: 1.6; color: #4a4560; margin: 0; }
.mnc-item-meta { font-family: var(--mnc-sans, sans-serif); font-size: 0.82rem; color: #8a83a0; margin-top: 0.6rem; letter-spacing: 0.02em; }
.mnc-platform-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mnc-platform {
  font-family: var(--mnc-sans, sans-serif); font-weight: 600; font-size: 0.95rem;
  color: var(--mnc-deep, #2d1b4e); background: #fff; border: 1.5px solid var(--mnc-deep, #2d1b4e);
  padding: 0.7rem 1.5rem; border-radius: 999px; text-decoration: none; transition: background .2s, color .2s;
}
.mnc-platform:hover { background: var(--mnc-deep, #2d1b4e); color: #fff; }

@media (max-width: 640px) {
  .mnc-tile-grid { grid-template-columns: 1fr; }
  .mnc-item { flex-direction: column; gap: 0.9rem; }
}

/* hide mednext's global Quick-Load Mode toggle (stray circular float) */
.app-modeToggle { display: none !important; }

@media (max-width: 800px) {
  .mnc-host .program-hero.mnc-hero-split { grid-template-columns: 1fr; }
  .mnc-split, .mnc-split.mnc-flip { grid-template-columns: 1fr; gap: 2.25rem; }
  .mnc-split.mnc-flip .mnc-split-text { order: 2; }
  .mnc-split.mnc-flip .mnc-split-media,
  .mnc-split.mnc-flip .mnc-figure { order: 1; }
  .mnc-photo { height: clamp(260px, 72vw, 360px); }
  .mnc-faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mnc-section { padding: 3.5rem 1.2rem; }
}

/* ============================ DARK MODE ============================
   The content injector hides template filler, so on inner pages the
   visible surfaces are: the collapsed hero, the .mnc content layer,
   header and footer. Header/footer/home carry their own dark rules;
   this block darkens the canvas + the whole .mnc content layer. */
html.mn-dark { background: #0f1117; }
html.mn-dark body { background: #0f1117; }
html.mn-dark .page,
html.mn-dark #__nuxt { background: #0f1117; }

/* collapse-hero band (still template-rendered above .mnc) */
html.mn-dark .mnc-host .program-hero,
html.mn-dark .mnc-host .news-single__head,
html.mn-dark .mnc-pagehero { background: #0f1117 !important; }
html.mn-dark .mnc-host .program-hero * { color: #e8e6f0; }
html.mn-dark .mnc-hero-kicker { color: var(--mnc-saffron, #f5a623); }

/* base sections */
html.mn-dark .mnc-section { background: #12141d; }
html.mn-dark .mnc-section:nth-of-type(2n) { background: #0f1117; }
html.mn-dark .mnc-h2,
html.mn-dark .mnc-h3,
html.mn-dark .mnc-pagehero-title,
html.mn-dark .mnc-stat-value,
html.mn-dark .mnc-card-title,
html.mn-dark .mnc-col-title,
html.mn-dark .mnc-figure-title { color: #f3f1fb; }
html.mn-dark .mnc-p,
html.mn-dark .mnc-lead,
html.mn-dark .mnc-col-list li,
html.mn-dark .mnc-card-desc,
html.mn-dark .mnc-callout p,
html.mn-dark .mnc-faq-a,
html.mn-dark .mnc-pagehero-sub,
html.mn-dark .mnc-tile-ex { color: rgba(255,255,255,0.72); }
html.mn-dark .mnc-p strong,
html.mn-dark .mnc-col-list strong,
html.mn-dark .mnc-callout strong { color: #f3f1fb; }
html.mn-dark .mnc-p a,
html.mn-dark .mnc-callout a { color: #c2a6ec; border-bottom-color: rgba(194,166,236,.35); }

/* cards / columns / callout / faq surfaces */
html.mn-dark .mnc-card,
html.mn-dark .mnc-col,
html.mn-dark .mnc-tile { background: #1a1d29; border-color: rgba(255,255,255,0.1); }
html.mn-dark .mnc-col-featured { border-color: rgba(245,166,35,.5); }
html.mn-dark .mnc-callout { background: #171a24; }
html.mn-dark .mnc-callout-warm { background: #221d10; }
html.mn-dark .mnc-faq-item { border-bottom-color: rgba(255,255,255,0.1); }
html.mn-dark .mnc-faq-q { color: #f3f1fb; }
html.mn-dark .mnc-art-faq .mnc-faq-item { border-bottom-color: rgba(255,255,255,0.1); }

/* article + feed */
html.mn-dark .mnc-article,
html.mn-dark .mnc-pagehero + .mnc-section { background: #0f1117; }
html.mn-dark .mnc-art-body,
html.mn-dark .mnc-art-body p,
html.mn-dark .mnc-art-body li { color: rgba(255,255,255,0.78); }
html.mn-dark .mnc-art-body h2,
html.mn-dark .mnc-art-body h3 { color: #f3f1fb; }
html.mn-dark .mnc-tile-cat { color: var(--mnc-saffron, #f5a623); }
html.mn-dark .mnc-tile-title { color: #f3f1fb; }

/* progress bars / meters */
html.mn-dark .mnc-bar { background: rgba(255,255,255,0.1); }

/* keep intentionally-dark bands (cta / dark stat bands) as-is */
html.mn-dark .mnc-section.mnc-cta,
html.mn-dark .mnc-section.mnc-cta:nth-of-type(2n) { background: #1c1430; }

/* linked cards (Learn more) - used for programme/fellowship boxes */
.mnc-card-linked { display: flex; flex-direction: column; }
.mnc-card-more {
  margin-top: auto; padding-top: 0.9rem;
  font-family: var(--mnc-sans, sans-serif); font-weight: 700; font-size: 0.9rem;
  color: var(--mnc-purple, #7B5EA7); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.mnc-card-more::after { content: "->"; transition: transform .18s ease; }
.mnc-card-linked:hover .mnc-card-more::after { transform: translateX(4px); }
.mnc-card-linked:hover { border-color: var(--mnc-purple, #7B5EA7); }
html.mn-dark .mnc-card-more { color: #c2a6ec; }

/* text-value stat grid (exam pattern facts etc.) - roomier than big-number grid */
.mnc-stat-grid-text { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2.5rem; }
.mnc-stat-grid-text .mnc-stat-value {
  font-family: var(--mnc-sans, system-ui, sans-serif);
  font-size: 1.08rem; line-height: 1.45; font-weight: 600;
}
.mnc-stat-grid-text .mnc-stat-label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.5rem;
}
@media (max-width: 800px) { .mnc-stat-grid-text { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .mnc-stat-grid-text { grid-template-columns: 1fr; } }

/* Hero heading arrives fast on content pages: the template reveals it char by
   char over ~1s (too slow). Force the chars visible and apply a single quick
   fade to the whole title instead. Scoped to .mnc-host so the homepage hero
   (finalized) is untouched. */
.mnc-host .program-hero .chars,
.mnc-host .program-hero .word { opacity: 1 !important; transform: none !important; }
.mnc-host .program-hero .t-h1,
.mnc-host .program-hero h1,
.mnc-host .mnc-pagehero-title { animation: mnc-head-in 0.32s cubic-bezier(.16,1,.3,1) both; }
@keyframes mnc-head-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mnc-host .program-hero .t-h1,
  .mnc-host .program-hero h1,
  .mnc-host .mnc-pagehero-title { animation: none; }
}

/* ===================== cheat-sheet sample viewer ===================== */
.mnsheet-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.mnsheet-card {
  text-align: left; background: #fffdf4; border: 1px solid var(--mnc-line, #e8e2d0);
  border-radius: 16px; padding: 0; cursor: pointer; font-family: var(--mnc-sans, sans-serif);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease, border-color .18s ease;
}
.mnsheet-card:hover { transform: translateY(-4px); border-color: var(--mnc-purple, #7B5EA7); box-shadow: 0 18px 44px -22px rgba(45,27,78,.55); }
.mnsheet-thumb { display: block; height: 168px; overflow: hidden; background: #eee9dc; border-bottom: 1px solid var(--mnc-line, #e8e2d0); }
.mnsheet-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mnsheet-card-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.3rem 1.3rem; flex: 1; }
.mnsheet-card-subject { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--mnc-purple, #7B5EA7); }
.mnsheet-card-title { font-family: var(--mnc-serif, Louize, Georgia, serif); font-size: 1.15rem; color: var(--mnc-deep, #2d1b4e); }
.mnsheet-card-sum { font-size: 0.88rem; line-height: 1.5; color: #6a647e; }
.mnsheet-card-open { margin-top: auto; padding-top: 0.5rem; font-weight: 700; font-size: 0.85rem; color: var(--mnc-purple, #7B5EA7); }
.mnsheet-card-open::after { content: " >>"; }
html.mn-dark .mnsheet-card { background: #1a1d29; border-color: rgba(255,255,255,.1); }
html.mn-dark .mnsheet-card-title { color: #f3f1fb; }

.mnsheet-modal {
  position: fixed; inset: 0; z-index: 6000; display: none;
  align-items: center; justify-content: center; padding: 5vh 1.25rem;
  background: rgba(26,17,43,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mnsheet-modal.is-open { display: flex; }
.mnsheet-dialog {
  position: relative; background: #fffdf4; border-radius: 20px;
  width: min(1080px, 100%); max-height: 92vh; overflow-y: auto;
  padding: 1.8rem 2rem 1.4rem; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
html.mn-dark .mnsheet-dialog { background: #161925; }
.mnsheet-close {
  position: absolute; top: 0.9rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(45,27,78,.08); color: var(--mnc-deep, #2d1b4e);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.mnsheet-close:hover { background: rgba(45,27,78,.16); }
html.mn-dark .mnsheet-close { background: rgba(255,255,255,.12); color: #fff; }
.mnsheet-subject { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--mnc-purple, #7B5EA7); font-family: var(--mnc-sans, sans-serif); }
.mnsheet-title { font-family: var(--mnc-serif, Louize, Georgia, serif); font-size: 1.7rem; color: var(--mnc-deep, #2d1b4e); margin: 0.35rem 0 1.1rem; }
html.mn-dark .mnsheet-title { color: #f3f1fb; }
.mnsheet-imgwrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--mnc-line, #e8e2d0); background: #fff; }
.mnsheet-img { width: 100%; height: auto; display: block; }
.mnsheet-foot { margin-top: 0.9rem; padding-top: 1rem; border-top: 1px solid var(--mnc-line, #e8e2d0); font-family: var(--mnc-sans, sans-serif); font-size: 0.82rem; color: #8a8f9c; }
html.mn-dark .mnsheet-foot { border-top-color: rgba(255,255,255,.1); }

/* --- mednext-calculators.css --- */
/* Free interactive calculators (mednext-calculators.js) */
.mncalc-section { max-width: 1180px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.mncalc-single { padding-top: 2rem; }
.mncalc-h2 {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--mnc-deep, #2d1b4e);
  margin: 0 0 0.6rem; text-align: center;
}
.mncalc-intro {
  font-family: var(--mnc-sans, sans-serif); color: #6a647e;
  text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; font-size: 1rem;
}
.mncalc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.mncalc {
  background: #fffdf4; border: 1px solid var(--mnc-line, #e8e2d0);
  border-radius: 18px; padding: 1.6rem 1.7rem;
  display: flex; flex-direction: column;
}
.mncalc-single .mncalc { max-width: 560px; margin: 0 auto; }
.mncalc-name {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: 1.2rem; color: var(--mnc-deep, #2d1b4e); margin: 0 0 0.35rem;
}
.mncalc-desc { font-family: var(--mnc-sans, sans-serif); font-size: 0.86rem; color: #7a7290; margin: 0 0 1.2rem; line-height: 1.5; }
.mncalc-form { display: flex; flex-direction: column; gap: 0.85rem; }
.mncalc-label {
  display: block; font-family: var(--mnc-sans, sans-serif);
  font-size: 0.82rem; font-weight: 600; color: #4a4560; margin-bottom: 0.35rem;
}
.mncalc-input {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 0.95rem;
  padding: 0.6rem 0.75rem; border: 1px solid var(--mnc-line, #e8e2d0);
  border-radius: 10px; background: #fff; color: var(--mnc-ink, #1a1a2e);
}
.mncalc-input:focus { outline: none; border-color: var(--mnc-purple, #7B5EA7); }
.mncalc-field-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; }
.mncalc-field-checkbox input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--mnc-purple, #7B5EA7); flex-shrink: 0; }
.mncalc-field-checkbox label { font-family: var(--mnc-sans, sans-serif); font-size: 0.9rem; color: #4a4560; line-height: 1.4; }
.mncalc-result {
  margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--mnc-line, #e8e2d0);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
}
.mncalc-score {
  font-family: var(--mnc-serif, Louize, Georgia, serif);
  font-size: 2.6rem; line-height: 1; color: var(--mnc-deep, #2d1b4e);
}
.mncalc-band { font-family: var(--mnc-sans, sans-serif); font-weight: 700; font-size: 0.95rem; }

/* dark mode */
html.mn-dark .mncalc-h2 { color: #f3f1fb; }
html.mn-dark .mncalc { background: #1a1d29; border-color: rgba(255,255,255,0.1); }
html.mn-dark .mncalc-name, html.mn-dark .mncalc-score { color: #f3f1fb; }
html.mn-dark .mncalc-input { background: #12141d; border-color: rgba(255,255,255,0.15); color: #e8e6f0; }
html.mn-dark .mncalc-label, html.mn-dark .mncalc-field-checkbox label { color: rgba(255,255,255,0.8); }
html.mn-dark .mncalc-result { border-top-color: rgba(255,255,255,0.1); }

@media (max-width: 560px) { .mncalc-grid { grid-template-columns: 1fr; } }
