/* Match the home page's white navigation over the hero. */
body:has(.conference-hero) .header-area--absolute {
    position: absolute;
}

body:has(.conference-hero) .header-area--absolute > .header-sticky:not(.is-sticky) {
    background: transparent;
}

body:has(.conference-hero) .header-sticky:not(.is-sticky) .navigation-menu > ul > li > a {
    color: #fff;
    text-shadow: 0 1px 5px #142b51;
}

/* Use the home menu's expanding accent line on conference navigation. */
body:has(.conference-hero) .header-area--absolute .navigation-menu > ul > li > a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #d2a98e;
    transition: width .7s cubic-bezier(.645, .045, .355, 1);
}

body:has(.conference-hero) .header-area--absolute .navigation-menu > ul > li:hover > a::before,
body:has(.conference-hero) .header-area--absolute .navigation-menu > ul > li > a:focus-visible::before {
    width: 100%;
}

body:has(.conference-hero) .header-sticky:not(.is-sticky) .navigation-menu > ul > li:hover > a > span,
body:has(.conference-hero) .header-sticky:not(.is-sticky) .navigation-menu > ul > li:hover > a::after {
    color: #fff;
}

body:has(.conference-hero) .header-sticky:not(.is-sticky) .mobile-navigation-icon i,
body:has(.conference-hero) .header-sticky:not(.is-sticky) .mobile-navigation-icon i::before,
body:has(.conference-hero) .header-sticky:not(.is-sticky) .mobile-navigation-icon i::after {
    background-color: #fff;
}

.conference-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    min-height: clamp(420px, 38vw, 530px);
    padding: clamp(110px, 10vw, 145px) 0 52px;
    background: linear-gradient(110deg, #082e4b, #0588bb 68%, #7ecfe3);
    color: #fff;
}

.conference-hero-content {
    position: relative;
    z-index: 1;
}

.conference-hero-copy {
    max-width: 720px;
}

.conference-hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
}

.conference-hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(5, 30, 54, .67), transparent 135px),
        linear-gradient(90deg, rgba(7, 39, 66, .96), rgba(6, 68, 108, .77) 39%, rgba(5, 136, 187, .20) 77%, rgba(126, 207, 227, .08));
}

.conference-hero-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(22px);
    transform: scale(1.08);
}

.conference-hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    mask-image: linear-gradient(90deg, transparent, #000 13%);
}

.conference-hero-media figcaption {
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(5, 37, 62, .84);
    color: #f2f8fd;
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.conference-hero h1 {
    max-width: 25ch;
    margin: 10px 0 14px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.6vw, 2.3rem);
    line-height: 1.13;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 5px rgba(7, 21, 43, .8), 0 0 18px rgba(87, 185, 214, .27);
}

.conference-hero p {
    max-width: 55ch;
    margin-bottom: 16px;
    color: #f2f8fd;
}

.conference-hero-code {
    color: #a8e6f3;
    font-size: .81rem;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.conference-hero-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .85rem;
    border: 1px solid #b9e0e9;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
}

.conference-hero-link:hover,
.conference-hero-link:focus-visible {
    background: #fff;
    color: #142c53;
}

.conference-page button:focus-visible,
.conference-page summary:focus-visible {
    outline: 2px solid #087e93;
    outline-offset: 2px;
}

.conference-hero button:focus-visible {
    outline-color: #b5eff3;
}

.conference-content {
    padding-top: clamp(18px, 4vw, 42px);
    padding-bottom: 48px;
}

.conference-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px;
}

.conference-summary-card {
    padding: 14px 16px;
    border: 1px solid #cfdee9;
    border-top: 3px solid #137087;
    border-radius: 10px;
    background: #f9fcfe;
    box-shadow: 0 5px 14px rgba(22, 55, 91, .07);
}

.conference-summary-card h2 {
    margin: 0 0 10px;
    color: #16375b;
    font-size: 1rem;
}

.conference-summary-card h2 i {
    margin-right: 5px;
    color: #087e93;
}

.conference-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
}

.conference-facts dt {
    color: #48637a;
    font-size: .77rem;
}

.conference-facts dd {
    margin: 0;
    color: #16375b;
    font-size: .9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.conference-partners {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 18px 10px;
    border: 1px solid #d5e4eb;
    border-radius: 12px;
    background: #f4f9fc;
}

.conference-partner-group {
    min-width: 0;
    padding: 0 14px;
    text-align: center;
}

.conference-partner-group + .conference-partner-group {
    border-left: 1px solid #b7cfdf;
}

.conference-partner-group h2 {
    margin: 0 0 12px;
    color: #16375b;
    font-size: .82rem;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.conference-organizer-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conference-organizer-item {
    width: 8rem;
    max-width: 100%;
}

.conference-partner-logo {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    overflow: hidden;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 7px;
    padding: 0.3rem;
    border: 1px solid #b7cfdf;
    border-radius: 10px;
    background: #fff;
    color: #087e93;
}

.conference-organizer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.conference-organizer-logo:not([hidden]) + .conference-organizer-placeholder {
    display: none;
}

.conference-section-card {
    margin-top: 16px;
    box-shadow: 0 5px 14px rgba(22, 55, 91, .07);
}

.conference-summary-card,
.conference-section-card,
.conference-partners,
.conference-partner-logo {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

@media (hover: hover) {
    .conference-summary-card:hover,
    .conference-section-card:hover,
    .conference-partners:hover,
    .conference-organizer-item:hover .conference-partner-logo {
        border-color: #85bbca;
        box-shadow: 0 9px 21px rgba(22, 55, 91, .14);
        transform: translateY(-2px);
    }
}

.conference-organizer-item p {
    margin: 0;
    color: #16375b;
    font-size: .83rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.conference-page .schedule-panel {
    padding: clamp(10px, 2.5vw, 24px);
}

.schedule-panel > h2 {
    margin-bottom: 14px;
    color: #16375b;
    font-size: 1.2rem;
}

.conference-day-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.conference-day-picker button {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 7px 12px;
    border: 1px solid #c5dce8;
    border-radius: 7px;
    background: #fff;
    color: #16375b;
    text-align: left;
}

.conference-day-picker button[aria-pressed="true"] {
    border-color: #135b7e;
    background: #135b7e;
    color: #fff;
}

.conference-day-picker button span,
.conference-day-platform {
    font-size: .83rem;
}

@media (max-width: 767px) {
    .conference-hero-media::after {
        background: linear-gradient(90deg, rgba(7, 39, 66, .90), rgba(6, 68, 108, .52));
    }

    .conference-overview {
        grid-template-columns: 1fr;
    }

    .conference-partners {
        flex-direction: column;
        gap: 14px;
    }

    .conference-partner-group + .conference-partner-group {
        padding-top: 14px;
        border-top: 1px solid #b7cfdf;
        border-left: 0;
    }

    .conference-page .session-accordion > .session-accordion-toggle {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 10px;
        padding: 12px;
    }

    .conference-page .session-accordion-toggle .session-time {
        grid-column: 1;
        margin: 0;
        white-space: normal;
    }

    .conference-page .session-accordion-toggle .nested-chevron {
        grid-area: 1 / 2 / 3 / 3;
        align-self: center;
    }

    .conference-page .session-accordion > .session-accordion-content,
    .conference-page .session-panel {
        padding: 9px;
    }

    .conference-page :is(.session-presenter-table, .panel-discussant-table) {
        display: block;
        min-width: 0;
        border: 0;
    }

    .conference-page :is(.session-presenter-table, .panel-discussant-table) thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .conference-page :is(.session-presenter-table, .panel-discussant-table) :is(tbody, tr, td) {
        display: block;
        width: auto;
    }

    .conference-page :is(.session-presenter-table, .panel-discussant-table) tbody tr {
        margin-bottom: 8px;
        border: 1px solid #dce8ef;
        border-radius: 7px;
        background: #fff;
    }

    .conference-page :is(.session-presenter-table, .panel-discussant-table) tbody td {
        padding: 9px;
        border: 0;
        overflow-wrap: anywhere;
    }

    .conference-page :is(.session-presenter-table, .panel-discussant-table) tbody td + td {
        border-top: 1px solid #e3edf2;
    }

    .conference-page .presenter-profile .committee-member-photo {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin-right: 8px;
    }

    .conference-page .article-actions a {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .conference-summary-card,
    .conference-section-card,
    .conference-partners,
    .conference-partner-logo {
        transition: none;
    }

    .conference-summary-card:hover,
    .conference-section-card:hover,
    .conference-partners:hover,
    .conference-organizer-item:hover .conference-partner-logo {
        transform: none;
    }
}

.conference-gallery {
    padding-bottom: 40px;
}

.conference-gallery h2 {
    margin: 0 0 12px;
    color: #16375b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.conference-gallery-track {
    position: relative;
}

.conference-gallery-controls {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 4px;
    left: 4px;
    transform: translateY(-50%);
    pointer-events: none;
}

.conference-gallery-controls:not([hidden]) {
    display: flex;
    gap: 8px;
}

.conference-gallery-controls {
    justify-content: space-between;
}

.conference-gallery-controls button {
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(22, 55, 91, .28);
}

.conference-gallery-controls button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #c5dce8;
    border-radius: 6px;
    background: #fff;
    color: #16375b;
    font-size: 1.45rem;
    line-height: 1;
}

.conference-gallery-controls button:disabled {
    visibility: hidden;
}

.conference-gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 3);
    align-items: start;
    gap: 30px;
    margin: 0;
    padding: 8px 2px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    list-style: none;
}

.conference-gallery-strip::-webkit-scrollbar {
    display: none;
}

.conference-gallery-strip > li {
    min-width: 0;
    scroll-snap-align: start;
}

.conference-gallery-card.album-post-card {
    min-height: 180px;
    padding-bottom: 56px;
    margin: 0 0 12px;
}

.conference-gallery-card .album-post-thumbnail {
    height: clamp(180px, 20vw, 260px);
}

.conference-gallery-card:focus-within {
    transform: translateY(-5px);
}

.conference-gallery-photo {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.conference-gallery-photo:focus-visible {
    outline-offset: -3px;
}

.conference-gallery-card figcaption {
    padding: 25px 26px 22px;
    font-size: .95rem;
    overflow-wrap: anywhere;
}

.conference-gallery-dialog.album-viewer-modal {
    width: min(980px, calc(100% - 20px));
    margin: auto;
    padding: 0;
    border: 0;
    overflow: auto;
    color: #17224d;
}

.conference-gallery-dialog::backdrop {
    background: rgba(4, 16, 55, .82);
}

.conference-gallery-dialog figure {
    margin: 0;
}

.conference-gallery-preview {
    display: block;
}

.conference-gallery-caption {
    overflow-wrap: anywhere;
}

.conference-gallery-caption:empty {
    display: none;
}

@media (max-width: 575px) {
    .conference-gallery-dialog .album-viewer-body { padding: 12px; }
    .conference-gallery-dialog .album-viewer-image-wrap { min-height: 180px; }
    .conference-gallery-dialog .album-viewer-prev { left: 6px; }
    .conference-gallery-dialog .album-viewer-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .conference-gallery-card.album-post-card { transition: none; }
    .conference-gallery-card.album-post-card:hover,
    .conference-gallery-card:focus-within { transform: none; }
}

@media (max-width: 991px) {
    .conference-gallery-strip {
        grid-auto-columns: calc((100% - 16px) / 2);
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .conference-gallery-strip {
        grid-auto-columns: 84%;
    }
}
