body:has(.site-header) .mhn-portal-wrap { display: none !important; }

.mhn-portal-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e9e6;
  font-family: Inter, "Noto Sans SC", "Segoe UI", sans-serif;
}

.mhn-portal-wrap * { box-sizing: border-box; }

.mhn-bar {
  width: 100%;
  margin: 0 auto;
  padding: 6px clamp(20px, 2vw, 36px) 0;
}

.mhn-logo { display: flex; align-items: center; text-decoration: none; }
.mhn-logo img { display: block; object-fit: contain; }

.mhn-tools { display: flex; align-items: center; gap: 12px; }
.mhn-nav { min-width: 0; }
.mhn-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mhn-menu > li { position: relative; }
.mhn-menu a,
.mhn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #203b30;
  font: 500 15px/1.2 Inter, "Noto Sans SC", "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.mhn-chev {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.mhn-drop {
  display: none;
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 12px;
  list-style: none;
  background: #fff;
  border: 1px solid #e4e8e5;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(32, 59, 48, 0.1);
}
.mhn-menu > li:hover > .mhn-drop,
.mhn-menu > li:focus-within > .mhn-drop,
.mhn-menu > li.is-open > .mhn-drop { display: grid; gap: 2px; }
.mhn-kicker {
  margin: 0 8px 6px;
  color: #b99a67;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mhn-drop a {
  min-height: 38px;
  border-radius: 10px;
  font-size: 14px;
}
.mhn-drop a:hover { background: rgba(185, 154, 103, 0.14); color: #702f3b; }

.mhn-lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e4e8e5;
  border-radius: 999px;
  background: #f8faf9;
}
.mhn-lang a {
  min-width: 42px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #203b30;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.mhn-lang a[aria-current="true"] { background: #702f3b; color: #fff; }

.mhn-enquire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #4d1f2a;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.mhn-enquire:hover { background: #702f3b; color: #fff; }

.mhn-account { position: relative; }
.mhn-parent-link,
.mhn-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 148px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #702f3b;
  border-radius: 999px;
  background: #fff;
  color: #702f3b;
  font: 600 12px/1 Inter, "Noto Sans SC", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.mhn-account-btn { overflow: hidden; text-overflow: ellipsis; }
.mhn-parent-link:hover,
.mhn-account-btn:hover,
.mhn-account.is-open .mhn-account-btn {
  background: rgba(112, 47, 59, 0.08);
  color: #702f3b;
}
.mhn-account-menu {
  display: none;
  position: absolute;
  z-index: 6;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e4e8e5;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(32, 59, 48, 0.1);
}
.mhn-account.is-open .mhn-account-menu { display: grid; }
.mhn-account-menu a {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: #203b30;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.mhn-account-menu a:hover { background: #f8faf9; color: #702f3b; }

.mhn-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #e4e8e5;
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.mhn-toggle span { width: 16px; height: 1.5px; background: #203b30; }

.mhn-school .mhn-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo . tools" "nav nav nav";
  align-items: center;
  gap: 2px 28px;
}
.mhn-school .mhn-logo { grid-area: logo; }
.mhn-school .mhn-logo img { height: 78px; width: auto; max-width: min(480px, 46vw); }
.mhn-school .mhn-tools { grid-area: tools; justify-content: flex-end; }
.mhn-school .mhn-nav {
  grid-area: nav;
  border-top: 1px solid #e5e9e6;
}
.mhn-school .mhn-menu { width: 100%; justify-content: flex-start; }
.mhn-school .mhn-menu > li:hover > .mhn-label,
.mhn-school .mhn-menu > li > a:hover { color: #702f3b; }

.mhn-han {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(34, 39, 37, 0.08);
}
.mhn-han .mhn-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1440px, calc(100% - 48px));
  min-height: 84px;
  padding: 0;
}
.mhn-han .mhn-logo img { width: 64px; height: 64px; }
.mhn-han .mhn-nav { flex: 1 1 auto; }
.mhn-han .mhn-menu a,
.mhn-han .mhn-label { color: #222725; font-size: 14px; }
.mhn-han .mhn-menu > li > a:hover,
.mhn-han .mhn-menu > li:hover > .mhn-label { color: #612b36; box-shadow: inset 0 -2px 0 #b99a67; }
.mhn-han .mhn-tools { margin-left: auto; }
.mhn-han .mhn-lang { border-color: rgba(183, 154, 103, 0.45); background: rgba(255, 255, 255, 0.7); }
.mhn-han .mhn-lang a { min-width: 36px; min-height: 28px; color: #24211f; font-size: 12px; }
.mhn-han .mhn-lang a[aria-current="true"] { background: #222725; }
.mhn-han .mhn-enquire { background: #612b36; letter-spacing: 0.04em; text-transform: uppercase; }
.mhn-han .mhn-enquire:hover { background: #3a1e26; }
.mhn-han .mhn-drop { background: #f9f5ee; border-color: rgba(183, 154, 103, 0.4); }
.mhn-han .mhn-parent-link,
.mhn-han .mhn-account-btn {
  border-color: #612b36;
  color: #612b36;
}
.mhn-han .mhn-parent-link:hover,
.mhn-han .mhn-account-btn:hover,
.mhn-han .mhn-account.is-open .mhn-account-btn {
  background: rgba(97, 43, 54, 0.08);
  color: #612b36;
}

@media (max-width: 1100px) {
  .mhn-toggle { display: flex; }
  .mhn-school .mhn-bar,
  .mhn-han .mhn-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 8px 16px;
    gap: 8px;
  }
  .mhn-school .mhn-logo img { height: auto; max-height: 56px; }
  .mhn-tools { margin-left: auto; }
  .mhn-enquire { display: none; }
  .mhn-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 100%;
    background: #fff;
    border: 1px solid #e5e9e6;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(32, 59, 48, 0.1);
  }
  .mhn-portal-wrap.is-open .mhn-nav { display: block; }
  .mhn-menu { flex-direction: column; align-items: stretch; }
  .mhn-drop { position: static; box-shadow: none; display: none; }
  .mhn-menu > li.is-open > .mhn-drop { display: grid; }
}
