/* Shared MIRRA BELLA shell for every Institute route. */
:root {
  --rose: #e2a755;
  --rose-dark: #95651f;
  --rose-ink: #3c2c1b;
  --rosebg: #fbf2e2;
  --edu-display: 'BV Celine';
}

/* Education has its own warm-gold identity, while keeping the same type system
   and spacing language as the main MIRRA BELLA and Salon sections. */
main h1,
.hub-display,
.edu-hero h1,
.faculty-hero h1,
.founder h2,
.faculty-directory h2,
.faculty-name,
.ph,
.gh,
.rh,
.sec-h,
.q,
.ctah,
.pname,
.tier-name,
.tier-price,
.done h2,
.pnum,
.cdown-num {
  font-family: 'BV Celine', Georgia, serif !important;
}

.mb-nav__cta,
.hub-button:not(.secondary),
.button:not(.secondary),
.edu-primary,
.opt.full,
.pbtn.prose,
.btn.rose {
  border-color: var(--rose) !important;
  background: var(--rose) !important;
  color: var(--rose-ink) !important;
  box-shadow: 0 14px 34px rgba(149, 101, 31, .16) !important;
}

.mb-nav__cta:hover,
.hub-button:not(.secondary):hover,
.button:not(.secondary):hover,
.edu-primary:hover,
.opt.full:hover,
.pbtn.prose:hover,
.btn.rose:hover {
  background: #d39843 !important;
  color: var(--rose-ink) !important;
}

.edu-language-chip {
  border-color: rgba(149, 101, 31, .24) !important;
  color: var(--rose-dark) !important;
}

.edu-language-chip::before {
  background: var(--rose) !important;
  box-shadow: 0 0 0 5px rgba(226, 167, 85, .14) !important;
}

.les summary::after {
  color: var(--rose) !important;
}

.step-n {
  background: var(--rosebg) !important;
  color: var(--rose-dark) !important;
}

.tier.dominant {
  border-top-color: var(--rose) !important;
}

.nobrain {
  background: var(--rosebg) !important;
}

.mb-shell {
  min-height: 78px;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.mb-shell__inner {
  height: 78px;
  max-width: 1440px;
  padding-inline: 28px;
}

.mb-wordmark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  color: var(--ink);
}

.mb-wordmark strong {
  display: flex;
  align-items: center;
  gap: .2em;
  font-family: 'BV Celine', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.mb-wordmark strong span {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.mb-wordmark strong img {
  display: block;
  width: auto;
  height: 1.16em;
  flex: none;
}

/* The Institute keeps the same light visual system as the umbrella site.
   This late-loaded shared sheet intentionally wins over older page templates. */
.hub-button {
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.hub-footer,
.site-footer {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff !important;
  color: var(--muted) !important;
}

.hub-footer strong,
.site-footer .footer-brand {
  color: var(--ink) !important;
}

.hub-footer a,
.hub-footer small,
.site-footer .footer-sub,
.site-footer .footer-copy,
.site-footer .footer-links a {
  color: var(--muted) !important;
}

.hub-footer a:hover,
.hub-footer a:focus-visible,
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: var(--rose-dark) !important;
}

.footer-wordmark {
  display: inline-block !important;
  margin: 0 0 14px !important;
  text-decoration: none;
}

.footer-wordmark img {
  display: block;
  width: clamp(188px, 22vw, 246px);
  height: auto;
}

.edu-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.edu-language-switch button {
  min-width: 38px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 .72rem/1 Avenir, sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
}

.edu-language-switch button[aria-pressed="true"] {
  background: var(--rosebg);
  color: var(--rose-dark);
}

.hub-card__body {
  display: flex;
  flex-direction: column;
}

.hub-card__body > .hub-button {
  align-self: stretch;
  margin-top: auto;
}

.hub-instructors {
  padding: clamp(96px, 10vw, 156px) 0 !important;
  scroll-margin-top: 88px;
  background: #fff;
}

.hub-instructors__head {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .7fr);
  gap: clamp(38px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 68px);
}

.hub-instructors__head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6.8rem);
}

.hub-instructors__head .hub-copy {
  margin: 0;
}

.hub-instructors__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(24px, 3vw, 42px) clamp(14px, 1.8vw, 24px);
}

.hub-instructor {
  min-width: 0;
}

.hub-instructor:nth-child(n + 9) {
  display: none;
}

.hub-instructors__grid.is-expanded .hub-instructor {
  display: block;
}

.hub-instructor img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 15px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--cream);
  filter: saturate(.88);
}

.hub-instructor h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: 'BV Celine', Georgia, serif;
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.hub-instructor p {
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--rose-dark);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .055em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hub-instructors__action {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: clamp(42px, 6vw, 78px);
}

.hub-instructors__action .hub-button {
  min-width: min(100%, 340px);
  border: 1px solid rgba(107, 86, 80, .28);
  font-family: inherit;
  cursor: pointer;
}

.hub-instructors__directory {
  color: var(--rose-dark);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .hub-instructors__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .mb-shell {
    min-height: 64px;
  }

  .mb-shell__inner {
    height: 64px;
    padding-inline: 16px;
  }

  .mb-wordmark strong {
    font-size: 1.18rem;
    letter-spacing: .065em;
  }

  .mb-menu {
    display: block;
  }

  .mb-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: grid;
    gap: 0;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 34px rgba(36, 29, 27, .10);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-130%);
  }

  .edu-language-switch {
    justify-self: center;
    margin: 8px 0 2px;
  }

  .mb-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mb-nav a {
    padding: 14px 8px;
    font-size: 14px;
    text-align: center;
  }

  .mb-nav__cta {
    margin-top: 6px;
    text-align: center;
  }

  .hub-footer,
  .site-footer {
    text-align: center;
  }

  .footer-wordmark {
    justify-content: center;
  }

  .hub-instructors {
    scroll-margin-top: 70px;
  }

  .hub-instructors__head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hub-instructors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .hub-instructors {
    overflow: hidden;
    padding: 76px 0;
  }

  .hub-instructors__head h2 {
    font-size: clamp(3rem, 14vw, 4.15rem);
  }

  .hub-instructors__grid {
    width: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 12px;
    overflow: visible;
  }

  .hub-instructor {
    min-width: 0;
  }

  .hub-instructor img {
    border-radius: 20px;
  }

  .hub-instructor h3 {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .hub-instructors__action {
    margin-top: 34px;
  }
}
