/* Shared public navigation; no fixed device widths or display-zoom overrides. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.nm-site-header { --nm-header-gutter: clamp(16px, 3vw, 56px); }
.nm-site-header .container-1824 {
  width: 100%;
  max-width: 1920px;
  padding-inline: var(--nm-header-gutter);
}
.nm-site-header .tp-header-md-main { padding: 12px 0; }
.nm-header-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.nm-header-main-grid > *, .nm-header-utility-row > * { min-width: 0; }
.nm-site-header .tp-header-logo a { display: block; }
.nm-site-header .tp-header-logo img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}
.nm-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.nm-site-header .nm-header-admission a { white-space: nowrap; font-size: 14px; padding: 14px 18px; }
.nm-site-header .nm-header-menu-toggle { display: none; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; }
.nm-site-header .nm-header-nav nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.6vw, 32px);
  margin: 0;
  padding: 0;
}
.nm-site-header .nm-header-nav nav > ul > li { margin: 0; }
.nm-site-header .nm-header-nav nav > ul > li > a { padding: 20px 0; font-size: 14px; white-space: nowrap; }
.nm-site-header .nm-header-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.nm-site-header.header-sticky, .nm-site-header.header-sticky .tp-header-md-main { background: #fff; }
.nm-site-header.header-sticky::after { background: #fff; }
.nm-header-utility-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.nm-header-alumni { flex: 0 1 auto; }
.nm-header-utilities { flex: 1 1 auto; }
.nm-site-header .tp-header-md-contact ul { flex-wrap: wrap; margin: 0; padding: 0; gap: 6px 18px; }
.nm-site-header .nm-header-alumni ul { justify-content: flex-start; }
.nm-site-header .tp-header-md-contact li { max-width: 100%; font-size: 13px; line-height: 1.5; }
.nm-site-header .tp-header-md-contact a { overflow-wrap: anywhere; }
.nm-site-header .tp-header-md-contact svg { flex-shrink: 0; }
.nm-header-menu-toggle:focus-visible, .nm-site-drawer button:focus-visible,
.nm-site-header a:focus-visible, .nm-site-drawer a:focus-visible { outline: 3px solid #174b7c; outline-offset: 4px; }

.nm-site-drawer { width: min(420px, 100%); padding: 28px; overscroll-behavior: contain; }
.nm-site-drawer .tp-offcanvas-top { gap: 16px; margin-bottom: 28px; }
.nm-site-drawer .tp-offcanvas-logo { flex: 1; min-width: 0; }
.nm-site-drawer .tp-offcanvas-logo img { display: block; max-width: 100%; width: 280px; height: auto; }
.nm-site-drawer .tp-offcanvas-close-btn { flex: 0 0 44px; }
.nm-site-drawer .close-btn { width: 44px; height: 44px; }
.nm-site-drawer .tp-offcanvas-content, .nm-site-drawer .tp-offcanvas-gallery { display: none !important; }
.nm-site-drawer .tp-offcanvas-menu { display: block; }
.nm-site-drawer .tp-offcanvas-contact a { overflow-wrap: anywhere; }
html.nm-menu-open, body.nm-menu-open { overflow: hidden; }

/* Reserve the actual header height; resize/font loading updates this variable. */
.nm-home-hero {
  padding-top: calc(var(--nm-site-header-height, 150px) + clamp(28px, 4vw, 64px));
  padding-bottom: 0;
}
.nm-home-hero .container-1524 { padding-inline: clamp(16px, 4vw, 64px); }
.nm-home-hero .nm-home-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 28px 40px;
  margin-inline: 0;
}
.nm-home-hero .nm-home-hero-row > * { min-width: 0; width: auto; padding-inline: 0; }
.nm-home-hero .nm-home-hero-row > .col-12 { grid-column: 1 / -1; }
.nm-home-hero .tp-hero-it-content { margin: 0; }
.nm-home-hero .tp-hero-it-counter-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nm-home-hero .tp-hero-it-counter { margin-bottom: 0; min-width: 0; }
.nm-home-hero .tp-hero-it-counter h2 { font-size: clamp(36px, 4vw, 64px); line-height: 1.1; }
.nm-home-hero .tp-hero-it-counter .subtitle { font-size: clamp(14px, 1.2vw, 17px); line-height: 1.5; }
.nm-home-hero .tp-hero-it-bigtitle-wrap { padding-top: clamp(12px, 2vw, 32px) !important; margin-bottom: 0; }
.nm-home-hero .tp-hero-it-bigtitle { font-size: clamp(48px, 16vw, 244px); line-height: 1; margin-bottom: 0; }
.nm-home-hero .tp-text-slider-area { padding-top: 12px !important; padding-bottom: 24px !important; }
.nm-home-hero .tp-hero-it-social { top: calc(var(--nm-site-header-height, 150px) + 36px); left: 16px; transform: none; }

/* The same expanding video, with a fluid frame instead of fixed device heights. */
.nm-home-video { position: relative; z-index: 2; margin-top: 0; padding-bottom: clamp(24px, 5vw, 72px); }
.nm-home-video .tp-video-vp-img-inner-2 { height: 56.25vw; max-height: 80vh; margin-top: 0; }
.nm-home-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
@supports (aspect-ratio: 16 / 9) {
  .nm-home-video .tp-video-vp-img-inner-2 { height: auto; aspect-ratio: 16 / 9; }
}
@supports (height: 80svh) {
  .nm-home-video .tp-video-vp-img-inner-2 { max-height: 80svh; }
}

@media (min-width: 1600px) {
  .nm-header-main-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; }
}
@media (max-width: 1599.98px) {
  .nm-home-hero .tp-hero-it-social { display: none !important; }
}
/* MacBook-sized browser viewports use the same complete drawer as tablets. */
@media (max-width: 1399.98px) {
  .nm-header-main-grid { grid-template-columns: minmax(0, 300px) auto; justify-content: space-between; gap: 20px; }
  .nm-header-nav { display: none; }
  .nm-site-header .nm-header-menu-toggle { display: block; }
  .nm-site-header .tp-header-md-contact ul { gap: 6px 14px; }
}
@media (max-width: 1199.98px) {
  .nm-home-hero .nm-home-hero-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .nm-home-hero .tp-hero-it-counter-wrap { max-width: 680px; }
}
@media (max-width: 991.98px) {
  .nm-home-hero { padding-top: calc(var(--nm-site-header-height, 100px) + 32px); }
}
@media (max-width: 767.98px) {
  .nm-header-main-grid { grid-template-columns: minmax(0, 260px) auto; gap: 12px; }
  .nm-header-actions { gap: 10px; }
  .nm-site-header .nm-header-admission a { font-size: 12px; padding: 12px; }
  .nm-home-hero .tp-hero-it-counter-wrap { gap: 16px; }
  .nm-home-video video { border-radius: 0; }
}
@media (max-width: 575.98px) {
  .nm-header-main-grid { grid-template-columns: minmax(0, 1fr) 44px; gap: 16px; }
  .nm-header-admission { display: none; }
  .nm-site-header .tp-header-logo img { max-width: 260px; max-height: 64px; }
  .nm-site-header .tp-header-md-main { padding: 12px 0; }
  .nm-site-drawer { padding: 20px; }
  .nm-home-hero { padding-top: calc(var(--nm-site-header-height, 88px) + 28px); }
}
@media (max-height: 600px) and (min-width: 576px) {
  .nm-site-header .tp-header-md-main { padding: 8px 0; }
  .nm-site-header .tp-header-logo img { max-height: 56px; }
  .nm-site-drawer .tp-offcanvas-top { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nm-site-header.header-sticky { animation: none; }
  .nm-site-drawer { transition: none; }
}
