/* Root */

:root {
    --toolbar-offset: 0px;
    --header-height: 100px;
    --mega-top: 100px;
    --mega-panel-height: 0px;
    --nav-line-height: 5px;
    --nyu-violet: #57068C;
    --nyu-bright-violet: #8900E1;
    --text-dark: #161616;
    --text-mid: #4B4B4B;
    --line-grey: #DBDBDB;
    --mega-bg: #FAF9FC;
}

/* Fonts: NYU Perstare @font-face is defined globally in ui/css/fonts.css */

/* Base */

html,
body {
    margin: 0;
    overflow-x: clip;
    background: #FFFFFF;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
    font-family: "NYU Perstare", sans-serif;
}

body {
    min-height: 100%;
}

body.cms-admin-active {
    padding-top: var(--toolbar-offset);
}

.site-shell {
    min-height: 100vh;
    background: #FFFFFF;
    color: var(--text-dark);
    overflow-x: clip;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
}

.site-header,
.site-header *,
.mega-nav,
.mega-nav *,
.site-search,
.site-search *,
.site-footer,
.site-footer * {
    box-sizing: border-box;
    font-family: "NYU Perstare", sans-serif;
}

/* Header */

.site-header {
    position: sticky;
    top: var(--toolbar-offset, 0px);
    z-index: 1000;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 0;
    box-shadow: none;
    overflow: visible;
    transform: translateY(0);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.site-header::before {
    display: none;
    content: none;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * var(--nav-line-height));
    height: 0 !important;
    background: var(--nyu-violet);
    z-index: 1002;
    opacity: 0 !important;
    transform: scaleY(0) !important;
    transform-origin: top center;
    box-shadow: none !important;
    pointer-events: none;
    transition:
        height 200ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 120ms ease-out,
        transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 160ms ease-out;
}

.site-header:not(.site-header--mega-visible)::after {
    height: 0 !important;
    opacity: 0 !important;
    transform: scaleY(0) !important;
    box-shadow: none !important;
}

.site-header.site-header--mega-visible::after {
    height: var(--nav-line-height) !important;
    opacity: 1 !important;
    transform: scaleY(1) !important;
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.16) !important;
}

.site-header.site-header--retreated {
    transform: translateY(calc(-100% - var(--nav-line-height)));
    pointer-events: none;
}

.site-header__inner {
    position: relative;
    z-index: 1001;
    max-width: 1728px;
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 clamp(32px, 5.8vw, 100px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(22px, 2vw, 37px);
    background: #FFFFFF;
    border-bottom: 0;
    box-shadow: none;
}

.site-header__inner::before {
    display: none;
    content: none;
}

.site-header__logo {
    display: flex;
    align-items: center;
    min-width: 0;
    position: relative;
    z-index: 4;
}

.site-header__logo img {
    display: block;
    width: clamp(220px, 16.55vw, 286px);
    max-width: 100%;
    height: auto;
}

.site-header__nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 4;
}

.site-header__search {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 4;
}

/* Search */

.site-search {
    width: 188px;
    height: 43px;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 10px 21px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
}

.site-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-mid);
    font-size: 18px;
    line-height: 23px;
    font-weight: 400;
}

.site-search input::placeholder {
    color: var(--text-mid);
    opacity: 1;
}

.site-search button {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: var(--text-mid);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 180ms ease;
}

.site-search button:hover {
    color: var(--text-dark);
}

.site-search svg {
    width: 18px;
    height: 18px;
}

/* Mega Nav */

.mega-nav {
    position: relative;
    width: 100%;
    border-bottom: 0;
    box-shadow: none;
}

.mega-nav::before {
    display: none;
    content: none;
}

.mega-nav__list {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.15vw, 37px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-nav__item {
    position: relative;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

/* Gaussian bump (sigma = 1/6 of its width) rather than a flat bar; it
   overhangs the item so the label sits under the peak, not the tails. */
.mega-nav__item::before {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 0;
    height: 2px;
    background: var(--nyu-violet);
    clip-path: polygon(0% 100%, 0% 98.9%, 3.125% 98.1%, 6.25% 96.8%, 9.375% 94.9%, 12.5% 92%, 15.62% 88.1%, 18.75% 82.8%, 21.88% 75.9%, 25% 67.5%, 28.12% 57.7%, 31.25% 46.9%, 34.38% 35.6%, 37.5% 24.5%, 40.62% 14.6%, 43.75% 6.79%, 46.88% 1.74%, 50% 0%, 53.12% 1.74%, 56.25% 6.79%, 59.38% 14.6%, 62.5% 24.5%, 65.62% 35.6%, 68.75% 46.9%, 71.88% 57.7%, 75% 67.5%, 78.12% 75.9%, 81.25% 82.8%, 84.38% 88.1%, 87.5% 92%, 90.62% 94.9%, 93.75% 96.8%, 96.88% 98.1%, 100% 98.9%, 100% 100%);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 120ms ease-out;
    pointer-events: none;
}

/* Panel triggers: the bump rides on the header line, so it waits for JS to
   show that line (site-header--mega-visible) and for the line to grow in.
   Plain links never get the line, so they keep the instant hover bump. */
.site-header--mega-visible .mega-nav__item.is-open::before {
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 60ms;
}

.mega-nav__item:has(> .mega-nav__link):hover::before,
.mega-nav__item:has(> .mega-nav__link):focus-within::before {
    opacity: 1;
    transform: scaleX(1);
}

.mega-nav__item.is-active:not(:hover):not(:focus-within):not(.is-open)::before {
    opacity: 0;
    transform: scaleX(0);
}

.site-header.site-header--mega-visible .mega-nav__item::before {
    bottom: 0;
}

.mega-nav__trigger,
.mega-nav__link {
    position: relative;
    height: var(--header-height);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-size: 16px;
    line-height: 21px;
    font-weight: 400;
    transition: color 180ms ease-out;
    user-select: none;
}

.mega-nav__label {
    position: relative;
    display: inline-block;
    user-select: none;
}

.mega-nav__label::before,
.mega-nav__label::after,
.mega-nav__trigger::after,
.mega-nav__link::after {
    display: none;
    content: none;
}

.mega-nav__trigger:hover,
.mega-nav__link:hover {
    color: var(--nyu-violet);
}

.mega-nav__item.is-open > .mega-nav__trigger,
.mega-nav__item.is-active > .mega-nav__trigger,
.mega-nav__item.is-active > .mega-nav__link {
    color: #000000;
}

.mega-nav__chevron {
    width: 12px;
    height: 12px;
    color: var(--text-mid);
    transition: transform 240ms ease-out;
}

.mega-nav__item.is-open .mega-nav__chevron {
    transform: rotate(180deg);
}

.mega-nav__indicator {
    display: none !important;
}

.mega-nav__overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--mega-top) + var(--mega-panel-height));
    bottom: 0;
    z-index: 120;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mega-nav__overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.mega-nav__panel-shell {
    position: fixed;
    top: var(--mega-top);
    left: 0;
    width: 100%;
    z-index: var(--mega-layer, 900);
    pointer-events: none;
}

.mega-nav__panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--mega-bg);
    border-top: 0;
    border-bottom: 1px solid rgba(87, 6, 140, 0.16);
    box-shadow: 0 7px 9px -8px rgba(0, 0, 0, 0.42);
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transition:
        max-height 600ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0ms linear 600ms;
    will-change: max-height;
}

.mega-nav__panel.is-open {
    max-height: var(--panel-open-height, 720px);
    visibility: visible;
    pointer-events: auto;
    transition:
        max-height 600ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0ms linear 0ms;
}

.mega-nav__panel-inner {
    max-width: 1728px;
    margin: 0 auto;
    padding: 44px clamp(48px, 5.8vw, 100px) 56px;
    background: var(--mega-bg);
    /* Fade only, no slide: translating a promoted layer resamples the text
       at sub-pixel offsets, so it reads blurry until the motion settles.
       The panel's max-height reveal already supplies the downward motion. */
    opacity: 0;
    transition: opacity 320ms ease-out;
}

.mega-nav__panel.is-open .mega-nav__panel-inner {
    opacity: 1;
}

.mega-nav__panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--line-grey);
}

.mega-nav__panel-title {
    margin: 0;
    color: var(--text-dark);
    font-size: 21px;
    line-height: 27px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.mega-nav__close {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-grey);
    border-radius: 12px;
    background: rgba(217, 217, 217, 0.35);
    color: var(--text-mid);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.mega-nav__close:hover {
    background: #FFFFFF;
    color: #161616;
    border-color: #CFCFCF;
}

.mega-nav__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    column-gap: clamp(42px, 5vw, 86px);
    row-gap: 34px;
    align-items: start;
}

.mega-nav__column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.mega-nav__block {
    min-width: 0;
}

.mega-nav__main-link,
.mega-nav__group-heading {
    position: relative;
    display: inline-block;
    margin: 0;
    color: #000000;
    text-decoration: none;
    font-size: 20px;
    line-height: 26px;
    font-weight: 500;
    letter-spacing: -0.04em;
    transition:
        color 220ms ease-out,
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mega-nav__main-link::after,
.mega-nav__group-heading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--nyu-bright-violet);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition:
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 180ms ease-out;
    pointer-events: none;
}

.mega-nav__main-link:hover,
.mega-nav__main-link:focus-visible,
.mega-nav__group-heading:hover,
.mega-nav__group-heading:focus-visible {
    color: var(--nyu-violet);
    transform: translateX(2px);
    outline: none;
}

.mega-nav__main-link:hover::after,
.mega-nav__main-link:focus-visible::after,
.mega-nav__group-heading:hover::after,
.mega-nav__group-heading:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Group headings always have children, so they render as plain text. */
.mega-nav__group-heading--static {
    cursor: default;
}

.mega-nav__group-heading--static:hover,
.mega-nav__group-heading--static:focus-visible {
    color: #000000;
    transform: none;
}

.mega-nav__group-heading--static:hover::after,
.mega-nav__group-heading--static:focus-visible::after {
    opacity: 0;
    transform: scaleX(0);
}

.mega-nav__child-list {
    position: relative;
    margin-top: 14px;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-nav__child-list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--line-grey);
}

.mega-nav__child-row {
    position: relative;
}

.mega-nav__child-row::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--nyu-bright-violet);
    opacity: 0;
    border-radius: 999px;
    transition: opacity 160ms ease-out;
    pointer-events: none;
}

.mega-nav__child-row:hover::before,
.mega-nav__child-row:focus-within::before {
    opacity: 0.5;
}

.mega-nav__child-link {
    display: block;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 18px;
    line-height: 23px;
    font-weight: 400;
    letter-spacing: -0.04em;
    padding: 6px 0;
    transition: color 160ms ease-out;
}

.mega-nav__child-link:hover,
.mega-nav__child-link:focus-visible {
    color: var(--nyu-violet);
    outline: none;
}

/* Skip link
   Visually hidden until it receives keyboard focus, then painted at the top
   of the viewport. It must become VISIBLE on focus -- a permanently invisible
   skip link fails WCAG 2.4.7 (Focus Visible) and is useless to the sighted
   keyboard users who need it most. Do not replace this with display:none or
   visibility:hidden, either: both remove the link from the focus order. */

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: calc(var(--toolbar-offset, 0px) + 16px);
    left: 16px;
    z-index: 10000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 20px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: nowrap;
    border-radius: 4px;
    background: var(--nyu-violet);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    outline: 3px solid #FFFFFF;
    outline-offset: -6px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* Main */

.site-main {
    width: 100%;
    flex: 0 0 auto;
    background: #FFFFFF;
}

.site-main a:not([class]) {
    color: var(--nyu-violet);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

.site-main a:not([class]):hover,
.site-main a:not([class]):focus-visible {
    color: var(--nyu-bright-violet);
    text-decoration-color: var(--nyu-bright-violet);
    outline: none;
}

.site-main a:not([class]) span {
    color: inherit !important;
}

.site-main ul:not([class]),
.site-main ol:not([class]) {
    margin: 0.75em 0 1em;
    padding-left: 1.5em;
}

.site-main ul:not([class]) {
    list-style: disc;
}

.site-main ol:not([class]) {
    list-style: decimal;
}

.site-main ul:not([class]) ul:not([class]) {
    list-style: circle;
}

.site-main ol:not([class]) ol:not([class]) {
    list-style: lower-alpha;
}

.site-main li:not([class]) {
    margin: 0.35em 0;
    padding-left: 0.15em;
}

.site-main:focus {
    outline: none;
}

.site-footer-stack {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
}

.site-cta {
    width: 100%;
}

.site-footer-stack .courant-cta,
.site-footer-stack .site-footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Footer */

.site-footer {
    width: 100%;
    min-height: 371px;
    background: #57068C;
    color: #FFFFFF;
    overflow: hidden;
}

.site-footer__inner {
    width: 100%;
    max-width: 1728px;
    min-height: 371px;
    margin: 0 auto;
    padding: 56px clamp(48px, 5.75vw, 99px) 50px;
    display: grid;
    grid-template-columns: minmax(360px, 502px) minmax(460px, 674px);
    column-gap: clamp(72px, 12.4vw, 214px);
    align-items: start;
    /* Don't stretch rows to fill min-height, so the icons end level with the links */
    align-content: start;
}

/* Type matches .courant-cta--short .courant-cta__heading in ui/css/cta-banner.css */
.site-footer__eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 14px;
    color: #FFFFFF;
    font-size: 32px;
    line-height: 41px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

@media (max-width: 1500px) {
    .site-footer__eyebrow {
        font-size: 28px;
        line-height: 36px;
    }
}

/* Mirrors .mega-nav__child-list / __child-row / __child-link, in white for the
   violet background. */
.site-footer__links {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 502px;
    list-style: none;
    margin: 0;
    padding: 0 0 0 22px;
}

.site-footer__links::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.site-footer__links li {
    position: relative;
    margin: 0;
    padding: 0;
}

.site-footer__links li::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #FFFFFF;
    opacity: 0;
    border-radius: 999px;
    transition: opacity 160ms ease-out;
    pointer-events: none;
}

.site-footer__links li:hover::before,
.site-footer__links li:focus-within::before {
    opacity: 0.6;
}

.site-footer__links a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    line-height: 23px;
    letter-spacing: -0.04em;
    font-weight: 400;
    padding: 6px 0;
    transition: opacity 160ms ease-out;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    opacity: 0.85;
    outline: none;
}

/* Starts level with "QUICKLINKS" and runs down to the last link, so the
   icons end level with it. */
.site-footer__aside {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.site-footer__legal {
    width: 100%;
    max-width: 674px;
    margin: 0;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.04em;
    font-weight: 400;
}

.site-footer__contact {
    width: 100%;
    max-width: 520px;
    margin: 24px 0 0;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.04em;
    font-weight: 400;
}

.site-footer__legal a,
.site-footer__contact a {
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 180ms ease;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
    opacity: 0.82;
    outline: none;
}

.site-footer__social {
    display: flex;
    gap: 14px;
    margin: auto 0 0;
    padding: 32px 0 0;
    list-style: none;
}

.site-footer__social li {
    margin: 0;
    padding: 0;
}

.site-footer__social a {
    display: block;
    border-radius: 6px;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    opacity: 0.85;
    transform: translateY(-2px);
}

.site-footer__social a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

.site-footer__social img {
    display: block;
    width: 32px;
    height: 32px;
}

.site-footer__spacer,
.site-footer__copy {
    display: contents;
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header::after,
    .mega-nav__item::before,
    .mega-nav__trigger,
    .mega-nav__link,
    .mega-nav__main-link,
    .mega-nav__main-link::after,
    .mega-nav__group-heading,
    .mega-nav__group-heading::after,
    .mega-nav__chevron,
    .mega-nav__panel,
    .mega-nav__panel-inner,
    .mega-nav__overlay,
    .mega-nav__child-row::before,
    .mega-nav__child-link,
    .site-footer__links li::before,
    .site-footer__links a,
    .site-footer__social a,
    .site-footer__legal a,
    .site-footer__contact a {
        transition: none !important;
        animation: none !important;
    }

    .mega-nav__main-link:hover,
    .mega-nav__main-link:focus-visible,
    .mega-nav__group-heading:hover,
    .mega-nav__group-heading:focus-visible {
        transform: none;
    }
}

/* Responsive */

@media (max-width: 1360px) {
    .site-header__inner {
        padding-left: 48px;
        padding-right: 48px;
    }

    .mega-nav__columns {
        column-gap: 56px;
    }
}

@media (max-width: 1180px) {
    .mega-nav__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .site-footer__eyebrow,
    .site-footer__links,
    .site-footer__aside {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        max-width: 760px;
        margin-left: 0;
        margin-right: 0;
    }

    .site-footer__eyebrow {
        margin-bottom: -5px;
    }

    .site-footer__aside {
        gap: 28px;
        margin-top: 8px;
    }

    .site-footer__contact {
        margin-top: 0;
    }

    .site-footer__social {
        flex-wrap: wrap;
        padding-top: 0;
    }
}

@media (max-width: 1023px) {
    :root {
        --header-height: 82px;
    }

    .site-header__inner {
        padding: 0 24px;
    }

    .site-header__logo img {
        width: 220px;
    }

    .site-header__nav,
    .site-header__search {
        display: none;
    }

    .site-footer {
        min-height: 0;
    }

    .site-footer__inner {
        min-height: 0;
        padding: 40px 22px;
    }

    .site-footer__legal,
    .site-footer__contact {
        font-size: 14px;
        line-height: 19px;
    }
}

/* Mobile Navigation */

.site-header__mobile-toggle,
.mobile-nav {
    display: none;
}

@media (max-width: 1023px) {
    :root {
        --header-height: 64px;
        --mega-panel-height: 0px;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    body.mobile-nav-open .site-header,
    body.mobile-nav-open .site-header.site-header--retreated,
    .site-header.mobile-nav-is-open,
    .site-header.mobile-nav-is-open.site-header--retreated {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: var(--toolbar-offset, 0px) !important;
        z-index: 5000 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .site-header {
        top: var(--toolbar-offset, 0px);
        box-shadow: 0 0 22px rgba(0, 0, 0, 0.15);
    }

    .site-header::after,
    .site-header.site-header--mega-visible::after {
        display: none !important;
        height: 0 !important;
        opacity: 0 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .site-header__inner {
        height: var(--header-height);
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 20px;
        background: #FFFFFF;
        box-shadow: none;
    }

    .site-header__logo img {
        width: 177px;
        max-width: 55vw;
    }

    .site-header__nav,
    .site-header__search {
        display: none !important;
    }

    .site-header__mobile-toggle {
        position: relative;
        z-index: 5010;
        display: inline-flex;
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #4B4B4B;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }

    .site-header__mobile-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: currentColor;
        border-radius: 999px;
        transform-origin: center;
        transition:
            transform 180ms ease,
            opacity 140ms ease,
            background-color 180ms ease;
    }

    .site-header.mobile-nav-is-open .site-header__mobile-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.mobile-nav-is-open .site-header__mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.mobile-nav-is-open .site-header__mobile-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: calc(var(--toolbar-offset, 0px) + var(--header-height)) !important;
        bottom: 0 !important;
        z-index: 5000 !important;
        display: block;
        width: 100%;
        min-height: calc(100vh - var(--toolbar-offset, 0px) - var(--header-height));
        background: #FFFFFF;
        border-top: 2px solid var(--nyu-violet);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        overflow: hidden;
        transition:
            opacity 220ms ease,
            transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0ms linear 260ms;
    }

    .mobile-nav.is-open,
    body.mobile-nav-open .mobile-nav,
    .site-header.mobile-nav-is-open .mobile-nav {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        transition:
            opacity 220ms ease,
            transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0ms linear 0ms;
    }

    .mobile-nav__inner {
        width: 100%;
        height: 100%;
        min-height: calc(100vh - var(--toolbar-offset, 0px) - var(--header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #FFFFFF;
    }

    .mobile-nav__content {
        width: 100%;
        padding: 0 0 48px;
    }

    .mobile-nav__search {
        padding: 16px 24px;
        border-bottom: 1px solid #DBDBDB;
        background: #FFFFFF;
    }

    .mobile-nav__search .site-search {
        display: flex;
        width: 100%;
        height: 43px;
    }

    .mobile-nav__search .site-search input {
        font-size: 16px;
        line-height: 21px;
    }

    .mobile-nav__section {
        border-bottom: 1px solid #DBDBDB;
        background: #FFFFFF;
    }

    .mobile-nav__section-top {
        width: 100%;
        min-height: 56px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) 48px;
        align-items: center;
        gap: 0;
        padding: 0 22px 0 24px;
        background: #FFFFFF;
    }

    .mobile-nav__section-link,
    .mobile-nav__direct-link {
        position: relative;
        z-index: 3;
        display: inline-flex;
        min-height: 56px;
        align-items: center;
        color: #161616;
        text-decoration: none;
        font-size: 18px;
        line-height: 23px;
        font-weight: 500;
        letter-spacing: -0.04em;
        text-align: left;
        cursor: pointer;
    }

    .mobile-nav__direct-link {
        width: 100%;
        justify-content: space-between;
        padding: 0 24px;
        background: #FFFFFF;
    }

    .mobile-nav__section-link:hover,
    .mobile-nav__section-link:focus-visible,
    .mobile-nav__direct-link:hover,
    .mobile-nav__direct-link:focus-visible {
        color: var(--nyu-violet);
        outline: none;
    }

    .mobile-nav__section-expand-area {
        display: block;
        width: 100%;
        height: 56px;
        border: 0;
        background: transparent;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }

    .mobile-nav__section-toggle {
        position: relative;
        z-index: 3;
        width: 38px;
        height: 38px;
        justify-self: end;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        padding: 0;
        margin: 0;
        cursor: pointer;
        color: #4B4B4B;
        touch-action: manipulation;
    }

    .mobile-nav__section-toggle:hover,
    .mobile-nav__section-toggle:focus-visible,
    .mobile-nav__section-expand-area:hover + .mobile-nav__section-toggle {
        color: var(--nyu-violet);
        outline: none;
    }

    .mobile-nav__icon {
        position: relative;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        border: 1px solid #DBDBDB;
        border-radius: 6px;
        background: rgba(217, 217, 217, 0.2);
    }

    .mobile-nav__icon::before,
    .mobile-nav__icon::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 10px;
        height: 2px;
        background: #4B4B4B;
        border-radius: 999px;
        transform: translate(-50%, -50%);
        transition:
            transform 260ms ease,
            opacity 220ms ease;
    }

    .mobile-nav__icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .mobile-nav__section.is-open .mobile-nav__icon::after {
        opacity: 0;
    }

    .mobile-nav__section-panel {
        max-height: 0;
        overflow: hidden;
        background: #FDFAFF;
        transition-property: max-height;
        transition-duration: 620ms;
        transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
        will-change: max-height;
    }

    .mobile-nav__section.is-opening .mobile-nav__section-panel {
        transition-duration: 900ms;
        transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
    }

    .mobile-nav__section-panel-inner {
        position: relative;
        padding: 12px 24px 20px 36px;
    }

    .mobile-nav__section-panel-inner::before {
        content: "";
        position: absolute;
        left: 20px;
        top: 14px;
        bottom: 18px;
        width: 1px;
        background: #DBDBDB;
    }

    .mobile-nav__overview,
    .mobile-nav__main-link,
    .mobile-nav__group-heading,
    .mobile-nav__child-link {
        display: block;
        color: #4B4B4B;
        text-decoration: none;
        font-size: 16px;
        line-height: 21px;
        font-weight: 400;
        letter-spacing: -0.04em;
        padding: 4px 0;
        transition: color 160ms ease;
    }

    .mobile-nav__overview:hover,
    .mobile-nav__overview:focus-visible,
    .mobile-nav__main-link:hover,
    .mobile-nav__main-link:focus-visible,
    .mobile-nav__group-heading:hover,
    .mobile-nav__group-heading:focus-visible,
    .mobile-nav__child-link:hover,
    .mobile-nav__child-link:focus-visible {
        color: var(--nyu-violet);
        outline: none;
    }

    .mobile-nav__overview {
        display: none;
    }

    .mobile-nav__block {
        position: relative;
        margin-top: 6px;
    }

    .mobile-nav__main-link {
        color: #4B4B4B;
        font-weight: 400;
    }

    .mobile-nav__group-heading {
        color: var(--nyu-violet);
        font-weight: 500;
    }

    span.mobile-nav__main-link,
    span.mobile-nav__group-heading,
    span.mobile-nav__child-link {
        cursor: default;
    }

    .mobile-nav__sublist {
        position: relative;
        margin: 4px 0 6px;
        padding-left: 18px;
    }

    .mobile-nav__sublist::before {
        content: "";
        position: absolute;
        left: 0;
        top: 5px;
        bottom: 5px;
        width: 2px;
        background: rgba(137, 0, 225, 0.55);
        border-radius: 999px;
    }

    .mobile-nav__child-link {
        font-size: 15px;
        line-height: 20px;
        padding: 3px 0;
    }
}

@media (max-width: 430px) {
    .site-header__inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-header__logo img {
        width: 165px;
    }

    .mobile-nav__section-top {
        padding-left: 22px;
        padding-right: 20px;
    }

    .mobile-nav__direct-link {
        padding-left: 22px;
        padding-right: 22px;
    }
}
