/* Approved v17 Mini role pages. Scoped to mr-* so the shared site remains unchanged. */
.mr-page {
  --mr-red: #b51f2d;
  --mr-red-dark: #951926;
  --mr-ink: #151a24;
  --mr-muted: #69727d;
  --mr-border: #e9e5e1;
  --mr-section-space: 56px;
  color: var(--mr-ink);
  font-family: var(--sans, sans-serif);
  font-size: var(--type-body, 15px);
  line-height: 1.7;
  background: #fff;
}
.mr-page *, .mr-page *::before, .mr-page *::after { box-sizing: border-box; }
.mr-container {
  width: calc(100% - 2 * var(--page-gutter, 32px));
  max-width: 1240px;
  min-width: 0;
  margin-inline: auto;
}
.mr-page h1, .mr-page h2, .mr-page h3, .mr-page p, .mr-page figure { margin: 0; }
.mr-page a { text-underline-offset: 4px; }
.mr-page a:focus-visible, .mr-phone-screen:focus-visible {
  outline: 2px solid var(--mr-red);
  outline-offset: 4px;
}
.mr-context { background: #f8f9fa; }
.mr-context > .mr-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 20px;
}
.mr-breadcrumb { min-width: 0; }
.mr-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.mr-breadcrumb li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mr-breadcrumb li + li::before { content: '›'; color: #8a9098; }
.mr-breadcrumb a, .mr-breadcrumb span {
  font-size: var(--type-small, 14px);
  line-height: 1.6;
  color: var(--mr-muted);
  overflow-wrap: anywhere;
}
.mr-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.mr-breadcrumb a:hover { color: var(--mr-red); }
.mr-role-nav { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.mr-role-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #636c77;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.mr-role-nav a:hover { color: var(--mr-red); background: #fff; }
.mr-role-nav a[aria-current='page'] { color: var(--mr-red); background: #fff; border-color: #ead4d5; }
.mr-hero { background: #f8f9fa; }
.mr-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 48px;
  min-height: 460px;
  padding-block: 20px 0;
}
.mr-hero-copy { min-width: 0; padding-bottom: 48px; }
.mr-page .mr-eyebrow { color: #636d78; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.mr-page .mr-title {
  font-family: var(--serif, serif);
  font-size: var(--type-page, 36px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.mr-page .mr-headline {
  margin-top: 16px;
  color: var(--mr-ink);
  font-family: var(--serif, serif);
  font-size: var(--type-section, 28px);
  font-weight: 600;
  line-height: 1.5;
}
.mr-page .mr-intro { max-width: 580px; margin-top: 16px; color: var(--mr-muted); font-size: 15px; line-height: 1.8; }
.mr-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.mr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--mr-red);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mr-button--primary { background: var(--mr-red); color: #fff; }
.mr-button--primary:hover { background: var(--mr-red-dark); border-color: var(--mr-red-dark); color: #fff; }
.mr-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 10px; color: var(--mr-red); font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.mr-link:hover { text-decoration: underline; }
.mr-hero-media { position: relative; display: flex; align-items: flex-end; justify-content: center; align-self: end; min-width: 0; padding-inline: 16px; }
.mr-phone { position: relative; z-index: 1; min-width: 0; width: 100%; margin: 0; }
.mr-phone-frame {
  min-width: 0;
  overflow: hidden;
  padding: 4px;
  border: 2px solid #4e5053;
  border-radius: 30px;
  background: #141517;
  box-shadow: 0 2px 5px rgb(20 21 23 / 10%);
}
.mr-phone-screen {
  min-width: 0;
  border-radius: 22px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9bdc1 #f5f5f5;
  -webkit-overflow-scrolling: touch;
}
.mr-phone-screen::-webkit-scrollbar { width: 4px; }
.mr-phone-screen::-webkit-scrollbar-thumb { background: #b9bdc1; border-radius: 4px; }
.mr-phone-screen::-webkit-scrollbar-track { background: #f5f5f5; }
.mr-page .mr-screen { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border: 0; }
.mr-phone--hero { max-width: 286px; }
.mr-phone--hero .mr-phone-screen { height: 432px; }
.mr-phone-label { width: fit-content; margin: 0 auto 12px; padding: 6px 20px; border-radius: 16px; background: #f9dddd; color: var(--mr-red); font-size: 14px; line-height: 1.5; font-weight: 600; text-align: center; }
.mr-page--employee .mr-hero-media::before { content: ''; position: absolute; width: min(100%, 420px); aspect-ratio: 1; right: 0; bottom: -40px; border-radius: 50%; background: #fae9eb; }
.mr-benefits { position: relative; z-index: 2; background: #fff; }
.mr-benefit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 32px 0; margin: 0; list-style: none; }
.mr-benefit { display: flex; align-items: flex-start; gap: 20px; min-width: 0; padding-inline: 28px; }
.mr-benefit:first-child { padding-left: 0; }
.mr-benefit:last-child { padding-right: 0; }
.mr-benefit + .mr-benefit { border-left: 1px solid var(--mr-border); }
.mr-benefit-icon { flex: 0 0 42px; width: 42px; height: 42px; color: var(--mr-red); }
.mr-benefit-copy { min-width: 0; }
.mr-benefit-copy h2 { font-family: var(--sans, sans-serif); font-size: var(--type-card, 18px); font-weight: 600; line-height: 1.5; }
.mr-benefit-copy p { margin-top: 8px; color: var(--mr-muted); font-size: 14px; line-height: 1.8; }
.mr-scenes[id] { scroll-margin-top: 88px; }
.mr-scenes { padding-block: var(--mr-section-space); background: #f7f8f8; }
.mr-section-heading { margin-bottom: 28px; }
.mr-section-heading h2 { color: var(--mr-ink); font-family: var(--serif, serif); font-size: var(--type-section, 28px); font-weight: 700; line-height: 1.45; }
.mr-section-heading h2, .mr-cta-copy h2 { text-wrap: balance; }
.mr-section-heading p { margin-top: 12px; color: var(--mr-muted); font-size: 15px; line-height: 1.8; }
.mr-page--student .mr-section-heading { text-align: center; }
.mr-scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mr-scene-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 28px 24px 0;
  border: 1px solid #ece9e6;
  border-radius: 10px;
  background: #fff;
}
.mr-scene-copy { min-width: 0; }
.mr-scene-copy h3 { color: var(--mr-ink); font-family: var(--sans, sans-serif); font-size: var(--type-card, 18px); font-weight: 600; line-height: 1.5; }
.mr-scene-copy p { margin-top: 12px; color: var(--mr-muted); font-size: 14px; line-height: 1.8; }
.mr-phone--scene { justify-self: end; align-self: end; max-width: 258px; }
.mr-phone--scene .mr-phone-screen { height: 360px; }
.mr-page--employee .mr-scene-card { border-color: transparent; }
.mr-page--employee .mr-scene-card--1 { background: #fcf3f4; }
.mr-page--employee .mr-scene-card--2 { background: #f2f7fb; }
.mr-page--employee .mr-scene-card--3 { background: #fdf7ee; }
.mr-page--employee .mr-scene-card--4 { background: #f2f8f3; }
.mr-page--headteacher .mr-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; padding-bottom: 32px; }
.mr-hero-media--pair { display: flex; align-items: flex-start; justify-content: flex-end; gap: 20px; padding-inline: 0; }
.mr-hero-media--pair .mr-phone { flex: 1 1 0; width: 0; max-width: 238px; }
.mr-page--headteacher .mr-phone-screen { height: auto; overflow: hidden; }
.mr-page--headteacher .mr-screen { border-radius: inherit; }
.mr-page--headteacher .mr-benefits { background: #fcf6f5; }
.mr-page--headteacher .mr-benefit-icon { flex-basis: 64px; width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: #fbdfe0; }
.mr-scenes--columns { background: #fff; }
.mr-scenes--columns .mr-scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.mr-scenes--columns .mr-scene-card { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.mr-scenes--columns .mr-phone--scene { flex: 0 0 auto; align-self: center; width: 100%; max-width: 286px; }
.mr-scenes--columns .mr-scene-copy { width: 100%; max-width: 320px; text-align: center; }
.mr-cta { padding-block: 32px; background: #fcf3f3; }
.mr-cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 32px; }
.mr-cta-copy { flex: 1 1 480px; min-width: 0; }
.mr-cta-copy h2 { color: var(--mr-red); font-family: var(--serif, serif); font-size: var(--type-subsection, 22px); font-weight: 700; line-height: 1.5; }
.mr-cta-copy p { margin-top: 8px; color: var(--mr-muted); font-size: 14px; line-height: 1.8; }
.mr-cta-inner > .mr-button { flex: 0 1 auto; }
.mr-page--headteacher .mr-cta { padding-top: 0; background: #fff; }
.mr-page--headteacher .mr-cta-inner { padding: 28px 32px; border-radius: 8px; background: #f6f7f8; }
.mr-page--headteacher .mr-cta-copy h2 { color: var(--mr-ink); }
.mr-page--headteacher .mr-title, .mr-page--headteacher .mr-headline,
.mr-page--headteacher .mr-section-heading h2, .mr-page--headteacher .mr-cta-copy h2,
.mr-page--employee .mr-title, .mr-page--employee .mr-headline,
.mr-page--employee .mr-section-heading h2, .mr-page--employee .mr-cta-copy h2 {
  font-family: var(--sans, sans-serif);
}
.mr-page--employee .mr-scenes { background: #fff; }
.mr-page--employee .mr-cta-inner { flex-direction: column; text-align: center; gap: 20px; }
.mr-page--employee .mr-cta-copy { flex: 0 1 auto; }
.mr-page--employee .mr-cta-copy h2 { color: var(--mr-ink); }

/* Existing Mini overview: native topic links in the existing three-role layout. */
.mobile-services-hero .mini-overview-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mobile-services-hero .mini-overview-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid #e6dad8; border-radius: 4px; background: #fff; color: #a61d2b; font-size: 14px; line-height: 1.5; text-decoration: none; white-space: normal; }
.mobile-services-hero .mini-overview-links a:hover { border-color: #b51f2d; }
.mobile-services-hero .mini-overview-links a:focus-visible { outline: 2px solid #b51f2d; outline-offset: 3px; }
.mobile-role-cards .mobile-roles article > a:last-child, .mobile-role-cards .mobile-roles article .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding-block: 10px; }

@media (min-width: 701px) and (max-width: 991px) {
  .mr-page { --mr-section-space: 44px; }
  .mr-context > .mr-container { align-items: flex-start; gap: 8px 16px; padding-block: 16px; }
  .mr-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; min-height: 420px; }
  .mr-hero-copy { padding-bottom: 36px; }
  .mr-page .mr-headline { font-size: 24px; }
  .mr-hero-media { padding-inline: 0; }
  .mr-phone--hero { max-width: 250px; }
  .mr-phone--hero .mr-phone-screen { height: 390px; }
  .mr-benefit { gap: 12px; padding-inline: 18px; }
  .mr-benefit-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .mr-benefit-copy h2 { font-size: var(--type-card, 18px); }
  .mr-benefit-copy p { font-size: 14px; }
  .mr-scene-card { gap: 12px; padding: 24px 16px 0; }
  .mr-scenes--cards .mr-scene-grid { grid-template-columns: minmax(0, 1fr); }
  .mr-scenes--cards .mr-scene-card { grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr); }
  .mr-phone--scene .mr-phone-screen { height: 320px; }
  .mr-page--headteacher .mr-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mr-page--headteacher .mr-hero-copy { padding-bottom: 0; }
  .mr-page--headteacher .mr-hero-media--pair { justify-content: center; width: 100%; max-width: 520px; margin-inline: auto; }
  .mr-hero-media--pair { gap: 12px; }
  .mr-phone-label { padding-inline: 12px; }
  .mr-page--headteacher .mr-phone-frame { padding: 3px; border-radius: 24px; }
  .mr-page--headteacher .mr-phone-screen { height: auto; border-radius: 17px; }
  .mr-page--headteacher .mr-benefit-icon { flex-basis: 48px; width: 48px; height: 48px; padding: 10px; }
  .mr-scenes--columns .mr-scene-grid { gap: 24px; }
}
@media (max-width: 700px) {
  .mr-page { --mr-section-space: 36px; }
  .mr-container { width: calc(100% - 32px); }
  .mr-context > .mr-container { display: block; padding-block: 12px; }
  .mr-breadcrumb ol { gap: 2px 8px; }
  .mr-breadcrumb li { gap: 8px; }
  .mr-role-nav { margin-top: 8px; gap: 4px; }
  .mr-role-nav a { flex: 1 1 auto; min-width: 0; padding-inline: 10px; }
  .mr-hero-inner, .mr-page--headteacher .mr-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; padding-block: 24px 0; }
  .mr-hero-copy { padding-bottom: 0; }
  .mr-page .mr-eyebrow { margin-bottom: 12px; }
  .mr-page .mr-headline { margin-top: 12px; font-size: 20px; line-height: 1.6; }
  .mr-page .mr-intro { margin-top: 12px; font-size: 15px; }
  .mr-actions { gap: 8px 20px; margin-top: 20px; }
  .mr-button { min-height: 48px; padding: 12px 20px; }
  .mr-hero-media { justify-content: center; padding-inline: 12px; }
  .mr-phone--hero { max-width: 300px; }
  .mr-phone--hero .mr-phone-screen { height: 400px; }
  .mr-page--employee .mr-hero-media::before { width: 100%; max-width: 360px; right: 0; bottom: -24px; }
  .mr-benefit-list { grid-template-columns: minmax(0, 1fr); padding-block: 24px; }
  .mr-benefit, .mr-benefit:first-child, .mr-benefit:last-child { padding: 20px 0; gap: 16px; }
  .mr-benefit:first-child { padding-top: 0; }
  .mr-benefit:last-child { padding-bottom: 0; }
  .mr-benefit + .mr-benefit { border-left: 0; border-top: 1px solid var(--mr-border); }
  .mr-benefit-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .mr-benefit-copy h2 { font-size: var(--type-card, 18px); }
  .mr-benefit-copy p { margin-top: 6px; font-size: 14px; }
  .mr-scenes[id] { scroll-margin-top: 80px; }
  .mr-section-heading { margin-bottom: 24px; }
  .mr-section-heading p { margin-top: 12px; font-size: 15px; }
  .mr-page--student .mr-section-heading { text-align: left; }
  .mr-scene-grid, .mr-scenes--columns .mr-scene-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mr-scene-card { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 20px 0; }
  .mr-scene-copy h3 { font-size: var(--type-card, 18px); }
  .mr-scene-copy p { margin-top: 8px; font-size: 14px; }
  .mr-phone--scene { align-self: center; width: 100%; max-width: 306px; }
  .mr-phone--scene .mr-phone-screen { height: 360px; }
  .mr-page--headteacher .mr-hero-inner { padding-bottom: 28px; }
  .mr-hero-media--pair { align-items: flex-start; gap: 12px; padding-inline: 0; }
  .mr-page--headteacher .mr-hero-media--pair .mr-phone { flex: 0 1 300px; width: 100%; max-width: 300px; }
  .mr-page--headteacher .mr-hero-media--pair .mr-phone + .mr-phone { display: none; }
  .mr-page--headteacher .mr-hero-media--pair .mr-phone-frame { padding: 4px; border-radius: 30px; }
  .mr-page--headteacher .mr-phone-screen { height: auto; border-radius: 16px; }
  .mr-phone-label { padding: 6px 10px; font-size: 14px; }
  .mr-page--headteacher .mr-benefit-icon { flex-basis: 52px; width: 52px; height: 52px; padding: 12px; }
  .mr-scenes--columns .mr-scene-card { gap: 16px; padding-bottom: 16px; }
  .mr-scenes--columns .mr-phone--scene { max-width: 300px; }
  .mr-scenes--columns .mr-scene-copy { max-width: 320px; }
  .mr-cta { padding-block: 28px; }
  .mr-cta-inner { align-items: stretch; gap: 20px; }
  .mr-cta-copy { flex: 1 1 100%; }
  .mr-cta-copy h2 { font-size: 20px; }
  .mr-cta-inner > .mr-button { flex: 0 1 auto; }
  .mr-page--headteacher .mr-cta-inner { padding: 24px 20px; }
  .mobile-services-hero .mini-overview-links { gap: 8px; margin-top: 20px; }
  .mobile-services-hero .mini-overview-links a { flex: 1 1 auto; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mr-page { scroll-behavior: auto; }
}
