.mhn-parent {
  --ink: #1c2430;
  --navy: #1b2a3a;
  --burgundy: #4d1f2a;
  --burgundy-deep: #3b1720;
  --burgundy-soft: #702f3b;
  --gold: #8a6840;
  --gold-line: #c4a36a;
  --ivory: #f3efe6;
  --paper: #fffcf8;
  --line: #e3d9cc;
  --muted: #5c656e;
  --ok: #1d5c40;
  --ok-bg: #e7f3ec;
  --bad: #8d2f32;
  --bad-bg: #f8ecec;
  --serif: "Playfair Display", "Noto Sans SC", Georgia, "Times New Roman", serif;
  --sans: Inter, "Noto Sans SC", "Segoe UI", sans-serif;
  --space: 24px;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
.mhn-parent.is-han { --burgundy: #612b36; --burgundy-deep: #3f1c24; --burgundy-soft: #7a3946; }
.mhn-parent :focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; }
.mhn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
body:has(.mhn-parent) #wrapwrap > header { display: none; }
body:has(.mhn-parent),
body:has(.mhn-parent) #wrapwrap,
body:has(.mhn-parent) #wrap {
  background: #f3efe6;
}
body:has(.mhn-parent) #wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

.mhn-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  align-items: stretch;
}
.mhn-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 18px 20px;
  background: var(--burgundy-deep);
  color: #f7f1ea;
}
.mhn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: #fff;
  text-decoration: none;
}
.mhn-brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 8px; }
.mhn-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}
.mhn-brand span { display: block; color: #e7d3c4; font-size: 13px; line-height: 1.35; }
.mhn-nav { display: grid; gap: 4px; }
.mhn-navlink {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: #f3e8e2;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.mhn-navlink:hover,
.mhn-navlink.is-current { background: rgba(255, 252, 248, 0.12); color: #fff; }
.mhn-navlink-child { padding-left: 22px; color: #eadfd6; }
.mhn-side-label {
  margin: 22px 12px 8px;
  color: var(--gold-line);
  font-size: 13px;
  font-weight: 600;
}
.mhn-side-foot { display: grid; gap: 12px; margin-top: auto; padding-top: 20px; }
.mhn-sidelang { display: flex; gap: 6px; }
.mhn-sidelang a,
.mhn-auth-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 252, 248, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.mhn-sidelang a[aria-current="true"],
.mhn-auth-lang a[aria-current="true"] { background: #fff; color: var(--burgundy-deep); }
.mhn-logout {
  color: #f7f1ea;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.mhn-nav-toggle {
  display: none;
  position: fixed;
  z-index: 6;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}
.mhn-nav-toggle i {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--burgundy);
}

.mhn-main { min-width: 0; padding: 32px 0 0; }
.mhn-stage,
.mhn-parent-foot {
  width: min(1180px, calc(100% - 56px));
  margin-right: auto;
  margin-left: auto;
}
.mhn-parent h1,
.mhn-parent h2,
.mhn-pupil h2,
.mhn-sheet strong,
.mhn-auth-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.mhn-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 228px;
  padding: 32px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--burgundy-deep) center/cover no-repeat;
  color: #fff;
}
.mhn-parent.is-school .mhn-hero,
.mhn-parent.is-han .mhn-hero,
.mhn-parent.is-school .mhn-auth-visual,
.mhn-parent.is-han .mhn-auth-visual {
  background-image: linear-gradient(90deg, rgba(36, 14, 20, 0.78), rgba(36, 14, 20, 0.28)), url("/mahan_public_websites/static/src/parent_campus.jpg");
  background-position: center center;
  background-size: cover;
}
.mhn-hero-copy { position: relative; max-width: 38rem; }
.mhn-greet { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; }
.mhn-hero h1 { font-size: clamp(36px, 4vw, 52px); font-style: italic; }
.mhn-hero-lead { max-width: 34rem; margin: 10px 0 0; font-size: 16px; line-height: 1.5; }

.mhn-statgrid,
.mhn-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 20px;
}
.mhn-summary { grid-template-columns: 1fr 1fr; }
.mhn-stat-rate { grid-column: 1 / -1; }
.mhn-stat {
  min-height: 118px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.mhn-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mhn-stat p,
.mhn-metrics dt { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
.mhn-stat strong,
.mhn-metrics strong,
.mhn-fee {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}
.mhn-stat strong.is-pass,
.mhn-metrics strong.is-pass { color: var(--ok); }
.mhn-stat strong.is-fail,
.mhn-metrics strong.is-fail { color: var(--bad); }
.mhn-ico {
  width: 22px;
  height: 22px;
  color: var(--burgundy);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mhn-track {
  display: flex;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe7dc;
}
.mhn-track > span,
.mhn-bar > span { display: block; height: 100%; background: var(--burgundy); }
.mhn-mix { display: flex; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #efe7dc; }
.mhn-mix span { display: block; height: 100%; min-width: 0; }
.mhn-mix .is-present,
.mhn-legend .is-present,
.mhn-cal-day i.is-present { background: var(--ok); }
.mhn-mix .is-late,
.mhn-legend .is-late,
.mhn-cal-day i.is-late { background: var(--gold-line); }
.mhn-mix .is-excused,
.mhn-legend .is-excused,
.mhn-cal-day i.is-excused { background: var(--navy); }
.mhn-mix .is-absent,
.mhn-legend .is-absent,
.mhn-cal-day i.is-absent { background: var(--bad); }

.mhn-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 14px;
}
.mhn-section-head h2,
.mhn-tabpanel h2 { color: var(--navy); font-size: 30px; }
.mhn-section-head p,
.mhn-muted { margin: 0; color: var(--muted); font-size: 15px; }
.mhn-child-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mhn-pupil {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.mhn-pupil-top { display: flex; align-items: flex-start; gap: 14px; }
.mhn-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: #f6efe8;
  color: var(--burgundy);
  font-size: 16px;
  font-weight: 600;
}
.mhn-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mhn-pupil h2,
.mhn-profile h1 { color: var(--navy); font-size: clamp(28px, 3vw, 36px); }
.mhn-meta { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mhn-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mhn-metrics strong,
.mhn-fee { margin-top: 6px; font-size: 18px; }
.mhn-open,
.mhn-parent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--burgundy);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.mhn-pupil .mhn-open { width: 100%; margin-top: 18px; }
.mhn-open:hover,
.mhn-parent-btn:hover { background: var(--burgundy-soft); }
.mhn-empty {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.mhn-empty h2 { margin-bottom: 8px; color: var(--navy); font-size: 28px; }
.mhn-empty .mhn-parent-btn { margin-top: 16px; }

.mhn-back {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--burgundy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.mhn-profile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.mhn-profile .mhn-avatar { width: 72px; height: 72px; font-size: 20px; }
.mhn-eyebrow { margin: 0 0 4px; color: var(--gold); font-size: 14px; font-weight: 600; }
.mhn-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mhn-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.mhn-switch a.is-current { border-color: var(--burgundy); background: var(--burgundy); color: #fff; }

.mhn-tabs { margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mhn-tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.mhn-tablist::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mhn-tablist button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.mhn-tablist button[aria-selected="true"] { border-bottom-color: var(--burgundy); color: var(--burgundy); }
.mhn-tabs.is-ready .mhn-tabpanel[hidden] { display: none; }
.mhn-tabpanel { padding: 22px 22px 28px; }
.mhn-tabs.is-ready .mhn-tabpanel.is-active { animation: mhn-panel-in 160ms ease; }
@keyframes mhn-panel-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mhn-tabs.is-ready .mhn-tabpanel.is-active { animation: none; }
}
.mhn-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.mhn-rate-line { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.mhn-rate-line strong { color: var(--navy); font-size: 20px; }
.mhn-track-wide { max-width: 280px; }
.mhn-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--navy);
  font-size: 15px;
  list-style: none;
}
.mhn-legend li { display: flex; align-items: center; }
.mhn-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; flex: 0 0 auto; }
.mhn-cal { margin-top: 22px; }
.mhn-cal h3 { margin: 0 0 12px; color: var(--navy); font-family: var(--serif); font-size: 26px; font-weight: 600; }
.mhn-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mhn-cal-names { margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.mhn-cal-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
.mhn-cal-day.is-out { border-color: transparent; background: transparent; }
.mhn-cal-day.is-blank { color: var(--muted); font-weight: 500; }
.mhn-cal-day i { width: 10px; height: 10px; border-radius: 50%; }
.mhn-cal-day.is-present { box-shadow: inset 0 0 0 2px var(--ok); }
.mhn-cal-day.is-late { box-shadow: inset 0 0 0 2px var(--gold-line); }
.mhn-cal-day.is-excused { box-shadow: inset 0 0 0 2px var(--navy); }
.mhn-cal-day.is-absent { box-shadow: inset 0 0 0 2px var(--bad); }
.mhn-cal-day.is-mixed { box-shadow: inset 0 0 0 2px var(--burgundy); }
.mhn-cal-day i.is-mixed { background: var(--burgundy); }
.mhn-fee-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.mhn-fee-summary article { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.mhn-fee-summary p { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.mhn-fee-summary strong { display: block; margin-top: 8px; color: var(--navy); font-family: var(--sans); font-size: 28px; font-weight: 600; }
.mhn-fee-lines { margin: 8px 0 0; padding: 0; color: var(--muted); font-size: 14px; list-style: none; }
.mhn-fee-lines li { margin-top: 4px; }
.mhn-updates { margin-top: 28px; }
.mhn-updates h2 { margin: 0 0 12px; color: var(--navy); font-size: 28px; }
.mhn-update-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mhn-update { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mhn-update p { margin: 0; color: var(--muted); font-size: 14px; }
.mhn-update h3 { margin: 4px 0; color: var(--navy); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.mhn-stat .mhn-legend strong {
  display: inline;
  margin: 0 0 0 4px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.mhn-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}
.mhn-badge.is-present,
.mhn-badge.is-pass { color: var(--ok); background: var(--ok-bg); }
.mhn-badge.is-late { color: #6d5228; background: #f6efe3; }
.mhn-badge.is-excused { color: var(--navy); background: #eef2f6; }
.mhn-badge.is-absent,
.mhn-badge.is-fail { color: var(--bad); background: var(--bad-bg); }
.mhn-parent select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.mhn-parent-table-wrap { max-width: 100%; margin-top: 16px; overflow-x: auto; }
.mhn-parent table { width: 100%; min-width: 640px; border-collapse: collapse; }
.mhn-parent th,
.mhn-parent td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
}
.mhn-parent th {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  background: #faf7f2;
}
.mhn-parent tbody tr:last-child td { border-bottom: 0; }
.mhn-bar { width: min(140px, 30vw); height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #efe7dc; }
.mhn-sheet { margin-top: 8px; }
.mhn-sheet + .mhn-sheet { margin-top: 28px; padding-top: 8px; }
.mhn-sheet header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.mhn-sheet header strong { font-size: 26px; color: var(--navy); }
.mhn-parent-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--bad);
  background: var(--bad-bg);
  color: var(--bad);
}

.mhn-auth {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
  min-height: 100vh;
}
.mhn-auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 100vh;
  padding: 48px;
  background: var(--burgundy-deep) center/cover no-repeat;
  color: #fff;
}
.mhn-auth-visual img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 12px; }
.mhn-auth-visual h1 { max-width: 12ch; font-size: clamp(40px, 5vw, 58px); }
.mhn-auth-visual p { max-width: 28rem; margin: 0; font-size: 17px; }
.mhn-auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 8vw;
  background: var(--ivory);
}
.mhn-auth-card h2 { color: var(--navy); font-size: 40px; }
.mhn-auth-form { display: grid; margin-top: 22px; }
.mhn-auth-form label { margin-top: 14px; font-size: 15px; font-weight: 600; }
.mhn-parent input {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid #d5cfc4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.mhn-field { position: relative; }
.mhn-reveal {
  position: absolute;
  top: 12px;
  right: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
}
.mhn-auth-form .mhn-parent-btn { width: 100%; margin-top: 18px; }
.mhn-forgot { justify-self: start; margin-top: 12px; color: var(--burgundy); font-size: 15px; font-weight: 600; text-decoration: none; }
.mhn-auth-foot { margin-top: 36px; color: var(--muted); font-size: 14px; }
.mhn-auth-foot a { color: var(--burgundy); text-decoration: none; }
.mhn-auth-lang { margin-top: 8px; }
.mhn-auth-lang a { border-color: rgba(61, 23, 32, 0.25); color: var(--burgundy); }
.mhn-auth-lang a[aria-current="true"] { background: var(--burgundy); color: #fff; }

.mhn-parent-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 18px 32px;
  align-items: start;
  margin-top: 40px;
  margin-bottom: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.mhn-parent-foot p { margin: 0 0 4px; }
.mhn-parent-foot strong { color: var(--navy); font-size: 16px; }
.mhn-parent-foot a { color: var(--burgundy); text-decoration: none; }
.mhn-parent-foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

@media (max-width: 980px) {
  .mhn-shell { grid-template-columns: 1fr; }
  .mhn-nav-toggle { display: block; }
  .mhn-side {
    position: fixed;
    z-index: 5;
    left: 0;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }
  .mhn-shell.is-nav-open .mhn-side { transform: none; }
  .mhn-main { padding-top: 72px; }
  .mhn-statgrid,
  .mhn-child-grid { grid-template-columns: 1fr 1fr; }
  .mhn-summary { grid-template-columns: 1fr; }
  .mhn-auth { grid-template-columns: 1fr; }
  .mhn-auth-visual { min-height: 280px; padding: 28px 24px; }
  .mhn-auth-card { padding: 32px 24px 24px; }
  .mhn-parent-foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mhn-stage,
  .mhn-parent-foot { width: min(1180px, calc(100% - 28px)); }
  .mhn-hero { min-height: 200px; padding: 22px 18px; }
  .mhn-statgrid,
  .mhn-child-grid,
  .mhn-metrics,
  .mhn-fee-summary,
  .mhn-update-grid { grid-template-columns: 1fr; }
  .mhn-cal-day { min-height: 42px; padding: 4px; font-size: 14px; }
  .mhn-profile { flex-direction: column; }
  .mhn-panel-head,
  .mhn-section-head { flex-direction: column; align-items: flex-start; }
  .mhn-tabpanel { padding: 18px 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .mhn-side { transition: none; }
}

.mhn-gate {
  --gate-burgundy: #642d3c;
  --gate-ivory: #faf8f4;
  --gate-navy: #172c40;
  --gate-line: #ddd5ca;
  --gate-muted: #68645f;
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: var(--gate-ivory);
}
.mhn-gate-bg,
.mhn-gate::after { display: none; }
.mhn-gate-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  border-radius: 0;
  background: var(--gate-ivory);
  box-shadow: none;
}
.mhn-gate-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  color: #fff;
}
.mhn-gate-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.mhn-gate-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 12, 10, 0.22) 0%, rgba(16, 12, 10, 0.1) 36%, rgba(16, 12, 10, 0.58) 72%, rgba(16, 12, 10, 0.82) 100%);
}
.mhn-gate-seal {
  position: static;
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 0 18px;
  object-fit: contain;
  background: transparent;
  border-radius: 50%;
}
.mhn-gate-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 140px 48px 52px;
  background: none;
  color: #fff;
}
.mhn-gate-line {
  display: block;
  width: 88px;
  height: 1px;
  margin: 18px 0 16px;
  background: rgba(255, 255, 255, 0.88);
}
.mhn-gate-caption h1 {
  max-width: 7.6em;
  margin: 0;
  color: #fff;
  font-size: 48px;
  font-weight: 600;
  line-height: 0.98;
}
.mhn-parent .mhn-gate-caption h1,
.mhn-parent .mhn-gate-caption p {
  color: #fff;
}
.mhn-gate-caption p {
  max-width: 34ch;
  margin: 0;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}
.mhn-gate-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 28px 72px 36px;
  background: var(--gate-ivory);
}
.mhn-gate-contact {
  margin-top: auto;
  padding-top: 36px;
  color: var(--gate-muted);
  font-size: 13px;
  line-height: 1.55;
}
.mhn-gate-contact p { margin: 0; }
.mhn-gate-contact strong {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gate-navy);
  font-size: 14px;
  font-weight: 600;
}
.mhn-gate-contact a { color: var(--gate-muted); text-decoration: none; }
.mhn-gate-contact a:hover { color: var(--gate-burgundy); }
.mhn-gate .mhn-sidelang { align-self: flex-end; margin-bottom: 8px; gap: 2px; }
.mhn-gate .mhn-sidelang a {
  min-width: 36px;
  min-height: 32px;
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  color: var(--gate-muted);
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease;
}
.mhn-gate .mhn-sidelang a:hover { color: var(--gate-burgundy); }
.mhn-gate .mhn-sidelang a[aria-current="true"] {
  border-color: var(--gate-burgundy);
  background: var(--gate-burgundy);
  color: #fff;
}
.mhn-gate-panel h2 {
  margin: auto 0 0;
  color: var(--gate-navy);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.mhn-gate .mhn-muted {
  max-width: 38ch;
  margin: 10px 0 0;
  color: var(--gate-muted);
  font-size: 15px;
  line-height: 1.5;
}
.mhn-gate .mhn-auth-form { margin-top: 28px; gap: 0; }
.mhn-gate .mhn-auth-form label {
  margin-top: 16px;
  color: #3f3c38;
  font-size: 13px;
  font-weight: 600;
}
.mhn-gate .mhn-auth-form input {
  margin-top: 6px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--gate-line);
  border-radius: 10px;
  background: #fff;
  color: var(--gate-navy);
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.mhn-gate .mhn-auth-form input:focus {
  border-color: var(--gate-burgundy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 45, 60, 0.16);
}
.mhn-gate .mhn-input input { padding-right: 52px; }
.mhn-gate .mhn-eye {
  top: 4px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--gate-burgundy);
  transition: color 180ms ease;
}
.mhn-gate .mhn-eye::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5c5.5 0 9.5 4.2 11 7-1.5 2.8-5.5 7-11 7S2.5 14.8 1 12C2.5 9.2 6.5 5 12 5zm0 2.2A4.8 4.8 0 1 0 12 16.8 4.8 4.8 0 0 0 12 7.2zm0 2a2.8 2.8 0 1 1 0 5.6 2.8 2.8 0 0 1 0-5.6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5c5.5 0 9.5 4.2 11 7-1.5 2.8-5.5 7-11 7S2.5 14.8 1 12C2.5 9.2 6.5 5 12 5zm0 2.2A4.8 4.8 0 1 0 12 16.8 4.8 4.8 0 0 0 12 7.2zm0 2a2.8 2.8 0 1 1 0 5.6 2.8 2.8 0 0 1 0-5.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mhn-gate .mhn-eye[aria-pressed="true"] { color: #8a6840; }
.mhn-rules {
  display: grid;
  gap: 4px;
  margin: 10px 0 4px;
  padding: 0;
  list-style: none;
}
.mhn-rules li { color: var(--muted); font-size: 14px; }
.mhn-rules li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}
.mhn-rules li.is-met { color: var(--ok); }
.mhn-rules li.is-miss { color: var(--bad); }
.mhn-parent-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--ok);
  background: var(--ok-bg);
  color: var(--ok);
}
.mhn-gate .mhn-forgot {
  margin-top: 14px;
  color: var(--gate-burgundy);
  font-size: 14px;
  font-weight: 600;
}
.mhn-gate .mhn-forgot:hover { text-decoration: underline; }
.mhn-gate .mhn-switch { margin: 14px 0 0; }
.mhn-gate .mhn-switch a {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gate-burgundy);
  font-size: 14px;
  font-weight: 600;
}
.mhn-gate .mhn-switch a:hover { text-decoration: underline; }
.mhn-gate .mhn-parent-btn {
  min-height: 48px;
  margin-top: 22px;
  border-radius: 14px;
  background: var(--gate-burgundy);
  font-size: 15px;
  transition: background 180ms ease;
}
.mhn-gate .mhn-parent-btn:hover { background: #7a3948; }
.mhn-gate .mhn-parent-btn:disabled { opacity: 0.72; cursor: progress; }
.mhn-gate a:focus-visible,
.mhn-gate button:focus-visible {
  outline: 2px solid var(--gate-burgundy);
  outline-offset: 3px;
}
@media (max-width: 860px) {
  .mhn-gate { overflow: visible; }
  .mhn-gate-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .mhn-gate-visual { flex: none; min-height: 320px; }
  .mhn-gate-caption { padding: 96px 24px 28px; }
  .mhn-gate-caption h1 { font-size: 36px; }
  .mhn-gate-panel {
    height: auto;
    overflow: visible;
    padding: 22px 24px 32px;
  }
  .mhn-gate-panel h2 { margin-top: 8px; font-size: 32px; }
  .mhn-gate-contact { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .mhn-gate-photo { filter: none; }
  .mhn-gate .mhn-parent-btn,
  .mhn-gate .mhn-sidelang a,
  .mhn-gate .mhn-auth-form input,
  .mhn-gate .mhn-eye { transition: none; }
}
