/* Load AFTER campus.css and styles.css. Legacy classes remain as JS hooks. */
#education.emr-roles-section {
  direction: rtl;
  isolation: isolate;
  overflow: visible;
}
#education.emr-roles-section *,
#education.emr-roles-section *::before,
#education.emr-roles-section *::after { box-sizing: border-box; }
#education.emr-roles-section .emr-roles-container {
  width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px;
}
#education.emr-roles-section .emr-roles-heading { margin-bottom: 32px; }
#education.emr-roles-section .emr-roles-story {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  align-items: start; gap: 40px; width: 100%; min-width: 0;
}
#education.emr-roles-section .emr-roles-stage {
  display: block; position: sticky; top: 110px;
  width: 100%; min-width: 0; max-width: none; height: auto;
  align-self: start; margin: 0; padding: 0;
}
#education.emr-roles-section .emr-roles-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto; align-items: start; align-content: start;
  position: static; float: none; width: 100%; max-width: none;
  height: auto; min-height: 0; gap: 8px; margin: 0 0 16px; padding: 0;
}
#education.emr-roles-section .emr-roles-tabs > .emr-roles-tab {
  appearance: none; display: flex; align-items: center; justify-content: center;
  position: static; float: none; flex: none; align-self: start;
  width: 100%; min-width: 0; max-width: none;
  height: auto !important; min-height: 52px; max-height: none;
  margin: 0; padding: 12px 8px;
  border: 1px solid #dfe6f3; border-radius: 14px;
  background: #fff; background-image: none; color: #52617c;
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.7;
  letter-spacing: normal; white-space: normal; word-break: normal;
  writing-mode: horizontal-tb; text-align: center; text-indent: 0;
  box-shadow: none; transform: none; cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
#education.emr-roles-section .emr-roles-tab::before,
#education.emr-roles-section .emr-roles-tab::after { content: none; }
#education.emr-roles-section .emr-roles-tab > span { display: none; }
#education.emr-roles-section .emr-roles-tab:hover { background: #edf3ff; border-color: #b9caf0; }
#education.emr-roles-section .emr-roles-tab[aria-selected="true"] {
  background: #4978e8; color: #fff; border-color: #4978e8;
}
#education.emr-roles-section .emr-roles-tab:focus-visible,
#education.emr-roles-section .emr-roles-panel:focus-visible {
  outline: 3px solid #274b9e; outline-offset: 3px;
}
#education.emr-roles-section .emr-roles-panel {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  position: static; float: none; width: 100%; min-width: 0; max-width: none;
  height: auto; min-height: 0; margin: 0; padding: 28px; gap: 16px;
  background: #f1f5fc; border: 1px solid #e0e8f8; border-radius: 24px;
  color: #243655; text-align: right; overflow: hidden;
}
#education.emr-roles-section .emr-roles-panel > div { width: 100%; min-width: 0; }
#education.emr-roles-section .emr-roles-kicker {
  display: block; color: #4978e8; font-size: 14px; line-height: 1.8;
}
#education.emr-roles-section #role-title {
  margin: 12px 0; font-family: inherit; font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700; line-height: 1.8; color: #243655;
}
#education.emr-roles-section #role-text {
  margin: 0; font-family: inherit; font-size: 16px; line-height: 2; color: #65758e;
}
#education.emr-roles-section .emr-roles-image {
  display: block; position: static; float: none;
  width: 100%; max-width: 100%; height: auto !important; min-height: 0;
  aspect-ratio: auto; object-fit: contain; margin: 0; padding: 0;
  border: 1px solid #e0e8f3; border-radius: 14px; transform: none;
}
#education.emr-roles-section .emr-roles-image[hidden] { display: none !important; }
#education.emr-roles-section .emr-roles-caption {
  display: block; margin: 0; font-size: 13px; line-height: 1.8; color: #66768e;
}
#education.emr-roles-section .emr-roles-image-error {
  padding: 18px; margin: 0; border: 1px dashed #c1cfe7; border-radius: 12px;
  font-size: 14px; line-height: 1.8; color: #52617c;
}
#education.emr-roles-section .emr-roles-image-error[hidden] { display: none; }
#education.emr-roles-section .emr-roles-steps {
  display: block; position: static; width: 100%; min-width: 0; padding: 0; margin: 0;
}
#education.emr-roles-section .emr-roles-step {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 360px; margin: 0; padding: 28px 0;
}
#education.emr-roles-section .emr-roles-step > span {
  display: block; padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 2px solid #6477ed; color: #6477ed; font-size: 24px;
}
#education.emr-roles-section .emr-roles-step h3 {
  margin: 0 0 14px; font-size: 23px; line-height: 1.8; color: #243655;
}
#education.emr-roles-section .emr-roles-step p {
  margin: 0; font-size: 16px; line-height: 2; color: #65758e;
}
@media (max-width: 960px) {
  #education.emr-roles-section .emr-roles-story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #education.emr-roles-section .emr-roles-stage { position: static; top: auto; }
  /* The same four roles are already available as tabs on smaller screens. */
  #education.emr-roles-section .emr-roles-steps { display: none; }
}
@media (max-width: 540px) {
  #education.emr-roles-section .emr-roles-container { padding-inline: 16px; }
  #education.emr-roles-section .emr-roles-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #education.emr-roles-section .emr-roles-tab { font-size: 14px; }
  #education.emr-roles-section .emr-roles-panel { padding: 18px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #education.emr-roles-section .emr-roles-tab { transition: none; }
}
#education.emr-roles-section .emr-roles-caption[hidden] { display: none !important; }
