:root {
    --nyu-purple: #57068C;
    --nyu-bright: #9100E4;
    --text-black: #161616;
    --border-light: #DBDBDB;
    --anim-duration: 250ms;
}

.page-banner-shell {
    width: 100%;
    background: #F7F7F7;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

/* A size container, so the title's phone size (.heading-page below)
   scales to the width the banner actually leaves it. */
.page-banner-inner {
    width: 100%;
    padding: 34px 24px 40px;
    container-type: inline-size;
}

@media (min-width: 768px) {
    .page-banner-inner {
        padding: 38px 32px 46px;
    }
}

@media (min-width: 1024px) {
    .page-banner-inner {
        padding: 42px 68px 52px;
    }
}

.page-banner-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 16px;
    border-radius: 9999px;
    background: #FFFFFF;
    justify-content: center;
    text-align: center;
}

.page-banner-pill > ol,
.page-banner-pill > ul {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #767676;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-banner-pill li {
    display: inline-flex;
    align-items: center;
}

.page-banner-pill a {
    color: inherit;
    text-decoration: none;
    transition: color var(--anim-duration) ease;
}

.page-banner-pill a:hover,
.page-banner-pill a:focus-visible {
    color: var(--nyu-purple);
}

/* Below 1024px this is the Page Header's phone scale
   (ui/css/breadcrumb-banner.css): a tenth of the banner's width, 24px to
   42px. At a fixed 42px a long word in a headline or talk title ran past
   the banner on phones and its clip-path cut it off. A word still wider
   than 10em (Magnetohydrodynamics) breaks instead. 28px is the fallback
   for browsers without container units. */
.heading-page {
    margin: 0;
    color: var(--text-black);
    font-size: 28px;
    font-size: clamp(24px, 10cqw, 42px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
}

@media (min-width: 1024px) {
    .heading-page {
        font-size: 52px;
        line-height: 1.08;
    }
}

.heading-section {
    margin: 0 0 20px;
    color: var(--nyu-purple);
    font-size: 32px;
    line-height: 41px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.content-prose {
    color: var(--text-black);
    font-size: 16px;
    line-height: 1.55;
}

.content-prose p {
    margin: 0 0 16px;
}

.content-prose p:last-child {
    margin-bottom: 0;
}

.content-prose ul,
.content-prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.content-prose ul {
    list-style: disc;
}

.content-prose ol {
    list-style: decimal;
}

.content-prose li {
    margin-bottom: 8px;
}

.content-prose a {
    border-bottom: 1px solid transparent;
    color: var(--nyu-purple);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--anim-duration) ease, border-color var(--anim-duration) ease;
}

.content-prose a:hover,
.content-prose a:focus-visible {
    border-bottom-color: currentColor;
}

.img-zoom-container {
    overflow: hidden;
    background: #D9D9D9;
}

.img-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.img-zoom-container:hover .img-zoom,
.img-zoom-container:focus-within .img-zoom {
    transform: scale(1.02);
}

.nyu-lockup-placeholder {
    display: flex;
    width: 100%;
    height: 244px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #F2F2F2;
    color: var(--nyu-purple);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nyu-lockup-placeholder__lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nyu-lockup-placeholder__emblem {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.nyu-lockup-placeholder__word {
    color: var(--nyu-purple);
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.nyu-lockup-placeholder__label {
    margin-top: 10px;
    border-radius: 3px;
    background: #FFFFFF;
    padding: 4px 28px;
    color: var(--nyu-purple);
    font-size: 16px;
    line-height: 21px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

@media (min-width: 1024px) {
    .nyu-lockup-placeholder {
        height: 349px;
    }
}

.btn-external {
    transition:
        color var(--anim-duration) ease,
        background-color var(--anim-duration) ease,
        border-color var(--anim-duration) ease;
}

.btn-external svg {
    transition: transform var(--anim-duration) ease;
}

.btn-external:hover svg,
.btn-external:focus-visible svg {
    transform: translate(2px, -2px);
}

@media (min-width: 1024px) {
    .detail-overlap-sidebar {
        margin-top: calc(-1 * var(--detail-sidebar-offset, 220px));
    }
}

.cms-breadcrumb-wrapper:empty,
.cms-breadcrumb-wrapper.is-empty {
    display: none !important;
}

.cms-breadcrumb-wrapper .page-banner-pill:has(ol:empty),
.cms-breadcrumb-wrapper .page-banner-pill:has(ul:empty) {
    display: none !important;
}

/* The Page Header plugin renders a complete banner of its own —
   grey shell, clipped corner, generous padding and its own breadcrumb
   pill. When an editor drops one into the banner placeholder, this
   built-in banner steps aside rather than nesting a second shell inside
   the first (which doubled the background, corner and padding). */
.page-banner-shell:has(.breadcrumb-banner-shell) {
    background: transparent;
    clip-path: none;
}

.page-banner-shell:has(.breadcrumb-banner-shell) .page-banner-inner {
    padding: 0;
}

/* The plugin draws its own breadcrumb trail. */
.page-banner-shell:has(.breadcrumb-banner-shell) .cms-breadcrumb-wrapper {
    display: none;
}

/* Child templates clamp the banner column (CMS Page Simple caps it at
   960px, for instance). The plugin's banner is meant to run the full
   width of the shell, so release the clamp when one is present. */
.page-banner-shell:has(.breadcrumb-banner-shell) .page-banner-inner > * {
    width: 100%;
    max-width: none;
}

@media (prefers-reduced-motion: reduce) {
    .content-prose a,
    .img-zoom,
    .btn-external,
    .btn-external svg,
    .page-banner-pill a {
        transition: none !important;
    }

    .img-zoom-container:hover .img-zoom,
    .img-zoom-container:focus-within .img-zoom,
    .btn-external:hover svg,
    .btn-external:focus-visible svg {
        transform: none !important;
    }
}
