.mzj-hero, .mzj-services, .mzj-directory {
  --mzj-ink: #173c39;
  --mzj-green: #14584b;
  --mzj-line: #cbd8cf;
  box-sizing: border-box;
  color: var(--mzj-ink);
  font-family: inherit;
}
.mz67-home .mz67-hero-shell:has(.mzj-hero) {
  padding: 0;
  background: transparent;
}
.mz67-home .mzj-hero, .mzj-hero {
  display: grid;
  margin: 0 auto;
  max-width: 1190px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--mzj-line);
  border-radius: 23px;
  background: #eef4ed;
}
.mzj-with-photo { grid-template-columns: minmax(0,1.16fr) minmax(0,.84fr); }
.mzj-hero-copy { align-self: center; padding: clamp(23px,4vw,62px); }
.mzj-hero .mzj-brand {
  margin: 0 0 14px;
  color: #42675b;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .035em;
}
.mzj-hero h1, .mzj-directory h1 {
  margin: 0;
  color: var(--mzj-ink);
  font-size: clamp(2.1rem,3.8vw,3.65rem);
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.mzj-hero .mzj-intro, .mzj-directory > p {
  margin: 14px 0 21px;
  max-width: 42em;
  color: #3f5852;
  line-height: 1.7;
  font-size: 1rem;
}
.mzj-actions, .mzj-directory-tools, .mzj-filter-chips, .mzj-account-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.mzj-actions .mzj-action, .mzj-directory-tools > a, .mzj-filter-chips > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 8px;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid #b4c8bb;
  border-radius: 10px;
  color: #234c44;
  background: #fff;
  font-weight: 650;
  font-size: .94rem;
  line-height: 1.45;
  text-decoration: none;
}
.mzj-actions .mzj-play, .mzj-directory-tools > a:first-child { background: var(--mzj-green); border-color: var(--mzj-green); color: #fff; }
.mzj-actions .mzj-play::before {
  content: "";
  border-block: 5px solid transparent;
  border-inline-start: 8px solid currentColor;
}
.mzj-actions .mzj-tutor { background: #eff0fb; border-color: #c1c4de; color: #3f4478; }
.mzj-actions .mzj-centre { background: #fff8e9; border-color: #d9c7a5; color: #684a1e; }
.mzj-account-links { column-gap: 19px; margin-top: 9px; }
.mzj-account-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #385951;
}
.mzj-hero-photo { position: relative; min-height: 260px; background: #dadfd6; }
.mzj-hero .mzj-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 38%; }
.mz67-home .mzj-services, .mzj-services {
  max-width: 1190px;
  margin: 14px auto 10px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.mzj-services .mzj-service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 15px 13px;
  border: 1px solid #d6dfd7;
  border-radius: 12px;
  color: #233f38;
  background: #fff;
  text-decoration: none;
}
.mzj-service .mzj-service-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #e8eef9; color: #41548b; font-size: 1.22rem; font-weight: 700; }
.mzj-book .mzj-service-icon { color: #7b551e; background: #fcf1df; }
.mzj-match .mzj-service-icon { color: #296456; background: #e5f2e9; }
.mzj-help .mzj-service-icon { color: #784661; background: #f4e9ed; }
.mzj-service strong, .mzj-service small { display: block; line-height: 1.45; }
.mzj-service strong { color: #24483c; font-size: 1rem; }
.mzj-service small { margin-top: 3px; color: #52625d; font-size: .81rem; }
.mzj-service i { color: #74857d; font-size: 1.2rem; font-style: normal; }
.mzj-directory { margin: 0 auto 16px; padding: clamp(20px,3.4vw,42px); border: 1px solid var(--mzj-line); border-radius: 18px; background: #eff4ed; }
.mzj-directory h1 { font-size: clamp(1.85rem,3.1vw,2.8rem); }
.mzj-directory-tools { gap: 8px; }
.mzj-directory-tools > a { padding-block: 7px; min-height: 44px; }
.mzj-filter-chips { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--mzj-line); }
.mzj-filter-chips strong { font-size: .88rem; }
.mzj-filter-chips > a { min-height: 44px; padding: 5px 12px; border-radius: 20px; font-size: .86rem; overflow-wrap: anywhere; }
.mzj-filter-chips > .mzj-clear { background: transparent; border-color: transparent; text-decoration: underline; }
#mzj-filters, #mzj-results, #mzpath-trial { scroll-margin-top: 76px; }
.mzj-hero a:hover, .mzj-services a:hover, .mzj-directory a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mzj-hero a:focus-visible, .mzj-services a:focus-visible, .mzj-directory a:focus-visible { outline: 3px solid #9b461c; outline-offset: 3px; }
@media (max-width: 950px) {
  .mzj-with-photo { grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); }
  .mz67-home .mzj-services, .mzj-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .mzj-with-photo { grid-template-columns: 1fr; }
  .mzj-hero-copy { padding: 23px 20px 12px; }
  .mzj-hero .mzj-intro { margin: 11px 0 15px; }
  .mzj-account-links { margin-top: 3px; }
  .mzj-hero .mzj-brand { margin-bottom: 8px; }
  .mzj-hero-photo { min-height: 0; height: clamp(110px,33vw,175px); }
  .mzj-hero .mzj-hero-photo img { object-position: center 35%; }
  .mzj-actions .mzj-action { padding: 9px 12px; }
  .mzj-services .mzj-service { grid-template-columns: auto 1fr; padding: 11px; gap: 7px; }
  .mzj-service i { display: none; }
  .mzj-service .mzj-service-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 1rem; }
  .mzj-service strong { font-size: .91rem; }
}
@media (max-width: 360px) { .mz67-home .mzj-services, .mzj-services { grid-template-columns: 1fr; } }

.mzj-teacher { max-width: 1120px; margin: 0 auto 28px; }
.mzj-teacher-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.mzj-teacher-card { display: flex; flex-direction: column; padding: clamp(18px,2.2vw,30px); border: 1px solid #d3dcd6; border-top: 4px solid #597b72; border-radius: 14px; background: #fbfcf8; }
.mzj-teacher-card.mzj-book { border-top-color: #a18046; }
.mzj-teacher-card.mzj-match { border-top-color: #7974a0; }
.mzj-teacher-card h2 { margin: 0; font-size: 1.23rem; line-height: 1.4; color: #23483e; }
.mzj-teacher-card p { color: #435952; margin: 10px 0; line-height: 1.65; }
.mzj-teacher-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: #24594b; font-weight: 650; text-underline-offset: 3px; }
.mzj-teacher-card a:focus-visible { outline: 3px solid #9b461c; outline-offset: 2px; }
@media (max-width: 700px) { .mzj-teacher-grid { grid-template-columns: 1fr; } }
