/* Layout: bright full-bleed photo, a clean white title panel lifting over its lower edge, then quiet single-column sections on white. */
:root {
    --navy: #0D1F3C;
    --gold: #C9A84C;
    --red: #8B0000;
    --bg: #FFFFFF;
    --bg-alt: #F5F6F9;
    --ink: #0D1F3C;
    --ink-soft: #4A5568;
    --rule: #DDE1E8;
    --panel: #FFFFFF;
    --gold-ink: #9A7A2C;
    --btn-bg: #0D1F3C;
    --btn-ink: #FFFFFF;
    --script: "Cormorant Garamond", "Cormorant", Georgia, serif;
    --label: "Cinzel", "Trajan Pro", Georgia, serif;
    --body: "EB Garamond", Garamond, Georgia, serif;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@1,400;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0B1830;
        --bg-alt: #0F1F3B;
        --ink: #EEF0F4;
        --ink-soft: #B4BCCB;
        --rule: #24375A;
        --panel: #112443;
        --gold-ink: #D9BC6A;
        --btn-bg: #C9A84C;
        --btn-ink: #0D1F3C;
        color-scheme: dark
    }
}

:root[data-theme="dark"] {
    --bg: #0B1830;
    --bg-alt: #0F1F3B;
    --ink: #EEF0F4;
    --ink-soft: #B4BCCB;
    --rule: #24375A;
    --panel: #112443;
    --gold-ink: #D9BC6A;
    --btn-bg: #C9A84C;
    --btn-ink: #0D1F3C;
    color-scheme: dark
}

.page-template-template-niaf-new-york-gala-2027 main {
    color: var(--ink);
    background: var(--bg);
    font-family: var(--body);
    font-size: 19px;
    line-height: 1.6
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: content-box;
}

h1,
h2,
h3 {
    text-wrap: balance;
    margin: 0;
    font-weight: 500
}

p {
    margin: 0
}

a {
    color: inherit
}

.label {
    font-family: var(--label);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-ink);
    font-weight: 500
}

.script {
    font-family: var(--script);
    font-style: italic
}

/* Hero */
.hero {
    position: relative;
    font-family: var(--body);
    font-size: 19px;
    line-height: 1.6;
    background: var(--bg);
}

.hero img {
    display: block;
    width: 100%;
    height: clamp(260px, 46vw, 560px);
    object-fit: cover;
    object-position: 50% 58%
}

.titlecard {
    position: relative;
    margin-top: clamp(-140px, -9vw, -48px);
    background: var(--panel);
    border-top: 3px solid var(--gold);
    padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px);
    box-shadow: 0 18px 40px -24px rgba(13, 31, 60, .35);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: end
}

.titlecard h1 {
    font-family: var(--script);
    font-style: italic;
    font-size: clamp(52px, 4.2vw, 96px);
    line-height: .95;
    color: var(--ink);
    margin-top: 10px
}

.titlecard .when {
    margin-top: 16px;
    font-size: 21px;
    color: var(--ink-soft)
}

.titlecard .when strong {
    color: var(--ink);
    font-weight: 500
}

.btn {
    display: inline-block;
    font-family: var(--label);
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--btn-bg);
    color: var(--btn-ink);
    padding: 16px 26px;
    border: 1px solid var(--btn-bg);
    white-space: nowrap;
    transition: background .2s, color .2s
}

.btn:hover {
    background: transparent;
    color: var(--ink)
}

.btn:focus-visible,
summary:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px
}

.btn.ghost {
    white-space: normal;
    background: transparent;
    color: var(--ink);
    border-color: var(--ink)
}

.btn.ghost:hover {
    background: var(--ink);
    color: var(--bg)
}

.herobtns {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.herobtns .btn {
    text-align: center
}

@media (max-width:720px) {
    .titlecard {
        grid-template-columns: 1fr
    }

    .herobtns {
        flex-direction: row;
        flex-wrap: wrap
    }
}

/* Sections */
section {
    padding-block: clamp(56px, 8vw, 96px)
}

footer section {
    padding-block: 0;
}

.alt {
    background: var(--bg-alt)
}

.head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 40px
}

.head h2 {
    font-family: var(--script);
    font-style: italic;
    font-size: clamp(40px, 5.5vw, 56px);
    line-height: 1.05
}

/* Details */
.details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule)
}

.details>div {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.details>div+div {
    border-left: 1px solid var(--rule);
    padding-left: 28px
}

.details .big {
    font-size: 24px;
    line-height: 1.3
}

.sched {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 19px
}

.sched span:nth-child(odd) {
    font-family: var(--label);
    font-size: 14px;
    letter-spacing: .08em;
    color: var(--gold-ink);
    padding-top: 4px;
    font-variant-numeric: tabular-nums
}

@media (max-width:980px) {
    .details {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .details>div:nth-child(3) {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--rule)
    }

    .details>div:nth-child(4) {
        border-top: 1px solid var(--rule)
    }
}

@media (max-width:600px) {
    .details {
        grid-template-columns: 1fr
    }

    .details>div:nth-child(4) {
        border-left: 0;
        padding-left: 0
    }

    .details>div+div {
        border-left: 0;
        border-top: 1px solid var(--rule);
        padding-left: 0
    }
}

/* Honorees */
.honorees {
    display: grid;
    gap: 56px
}

.honoree {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start
}

.honoree img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block
}

.honoree .award {
    font-family: var(--label);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
    line-height: 1.6;
    font-weight: 500
}

:root[data-theme="dark"] .honoree .award {
    color: var(--gold-ink)
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .honoree .award {
        color: var(--gold-ink)
    }
}

.honoree h3 {
    font-family: var(--script);
    font-style: italic;
    font-size: clamp(38px, 5vw, 50px);
    line-height: 1.05;
    margin-top: 12px
}

.honoree .role {
    margin-top: 6px;
    font-size: 20px;
    color: var(--ink-soft)
}

.honoree .role b {
    font-weight: 500;
    color: var(--ink)
}

.bio {
    margin-top: 22px;
    display: grid;
    gap: 14px;
    max-width: 62ch
}

details {
    margin-top: 6px;
    max-width: 62ch
}

summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--label);
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--gold)
}

summary::-webkit-details-marker {
    display: none
}

summary::after {
    content: "+";
    font-family: var(--body);
    font-size: 18px;
    letter-spacing: 0;
    color: var(--gold-ink)
}

details[open] summary::after {
    content: "–"
}

details[open] summary .more {
    display: none
}

summary .less {
    display: none
}

details[open] summary .less {
    display: inline
}

details .bio {
    margin-top: 18px
}

@media (max-width:720px) {
    .honoree {
        grid-template-columns: 1fr
    }

    .honoree img {
        max-width: 180px
    }
}

.program {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 48px
}

.slot {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--rule)
}

.slot .frame {
    aspect-ratio: 4/5;
    max-width: 100%;
    border: 1px solid var(--rule);
    background: var(--bg-alt);
    display: grid;
    place-items: center;
    font-family: var(--script);
    font-style: italic;
    font-size: 42px;
    color: var(--gold-ink)
}

.slot h3 {
    font-family: var(--script);
    font-style: italic;
    font-size: 32px;
    line-height: 1.1;
    margin-top: 8px
}

.slot p {
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 18px
}

@media (max-width:760px) {
    .program {
        grid-template-columns: 1fr
    }
}

/* Venue */
.venue {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start
}

.venue address {
    font-style: normal;
    font-size: 21px;
    line-height: 1.5;
    margin-top: 16px
}

.venue p {
    color: var(--ink-soft);
    max-width: 56ch
}

@media (max-width:800px) {
    .venue {
        grid-template-columns: 1fr
    }
}

/* Sponsorship */
.tiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px
}

.tier {
    padding: 24px 0;
    border-top: 1px solid var(--rule);
    display: grid;
    gap: 10px;
    align-content: start
}

.tier header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap
}

.tier h3 {
    font-family: var(--label);
    font-size: 16px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600
}

.tier .amt {
    font-family: var(--script);
    font-style: italic;
    font-size: 30px;
    color: var(--gold-ink);
    font-variant-numeric: tabular-nums
}

.tier ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.5;
    display: grid;
    gap: 3px
}

.tier ul li::marker {
    color: var(--gold)
}

.tier.featured h3 {
    color: var(--red)
}

:root[data-theme="dark"] .tier.featured h3 {
    color: var(--ink)
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tier.featured h3 {
        color: var(--ink)
    }
}

@media (max-width:760px) {
    .tiers {
        grid-template-columns: 1fr
    }
}

.fmv {
    margin-top: 40px;
    overflow-x: auto
}

.fmv table {
    border-collapse: collapse;
    font-size: 16px;
    min-width: 420px;
    font-variant-numeric: tabular-nums
}

.fmv th,
.fmv td {
    text-align: left;
    padding: 8px 28px 8px 0;
    border-bottom: 1px solid var(--rule)
}

.fmv th {
    font-family: var(--label);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gold-ink)
}

.tba {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-family: var(--script);
    font-style: italic;
    font-size: 26px;
    color: var(--ink-soft)
}

.note {
    margin-top: 14px;
    font-size: 16px;
    color: var(--ink-soft)
}

/* Reserve */
.reserve {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start
}

.reserve ul {
    margin: 16px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px
}

.reserve ul li::marker {
    color: var(--gold)
}

.contact {
    border-left: 3px solid var(--gold);
    padding-left: 24px;
    display: grid;
    gap: 4px
}

.contact .name {
    font-size: 23px
}

.contact .sel {
    user-select: all
}

.ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px
}

@media (max-width:800px) {
    .reserve {
        grid-template-columns: 1fr
    }
}

.footer-niaf-new-york {
    background: var(--navy);
    color: #E9ECF2;
    padding-block: 48px;
    font-family: var(--body);
    font-size: 19px;
    line-height: 1.6
}

.footer-niaf-new-york .label {
    color: var(--gold)
}

.footer-niaf-new-york p {
    margin-top: 12px;
    max-width: 70ch;
    font-size: 16px;
    color: #C3CAD7
}

.footer-niaf-new-york .tax {
    font-size: 14px;
    margin-top: 18px;
    color: #9AA5B8
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}