/* Events extend the media center design system in site.css.
   Common typography, navigation, covers and article content stay in site.css. */
.atlas-events-archive,
.atlas-event-single,
.atlas-events-page,
.atlas-event-single .mediacenter-page,
.atlas-event-single__article {
    background: transparent;
}

.atlas-events-content { width: 100%; padding: 0; }
.atlas-events-mobile-filter, .atlas-events-filter__mobile-heading, .atlas-events-filter__mobile-apply { display: none; }
.atlas-events-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;
    padding: 0 0 30px;
    border-bottom: 1px solid rgba(254, 254, 254, 0.3);
    background: transparent;
    color: #C9C8CC;
    font-family: 'Manrope', sans-serif;
}
.atlas-events-filter.is-loading:not(.is-open) { opacity: 0.65; }
.atlas-events-filter fieldset {
    min-width: 0;
    padding: 0;
    margin: 0 auto 0 0;
    border: 0;
}
.atlas-events-filter legend,
.atlas-events-filter__select > label {
    display: block;
    padding: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #C9C8CC;
}
.atlas-events-filter__status-option {
    position: relative;
    display: inline-flex;
    margin: 0 8px 0 0;
    cursor: pointer;
}
.atlas-events-filter__status-option:last-child { margin-right: 0; }
.atlas-events-filter__status-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.atlas-events-filter__status-option span {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(254, 254, 254, 0.3);
    border-radius: 8px;
    font-family: 'Golos Text', sans-serif;
    font-size: 14px;
    line-height: 125%;
    color: #C9C8CC;
    transition: 0.3s;
}
.atlas-events-filter__status-option input:checked + span {
    background: #1440D6;
    border-color: #1440D6;
    color: #FEFEFE;
}
.atlas-events-filter__status-option:hover span { border-color: #8FAFFF; }
.atlas-events-filter__status-option input:focus-visible + span,
.atlas-events-dropdown button:focus-visible {
    outline: 2px solid #8FAFFF;
    outline-offset: 3px;
}
.atlas-events-filter__select { flex: 0 1 210px; min-width: 170px; }
.atlas-events-filter__select select {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(254, 254, 254, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    font: inherit;
    color: #FEFEFE;
    background-color: transparent;
}
.atlas-events-filter__select select[hidden],
.atlas-events-dropdown[hidden] { display: none; }
.atlas-events-dropdown { max-width: none; }
.atlas-events-dropdown .mc-filter-toggle {
    min-height: 44px;
    border: 1px solid rgba(254, 254, 254, 0.3);
    border-radius: 8px;
}
.atlas-events-dropdown[data-open="1"] { z-index: 20; }
.atlas-events-dropdown[data-open="1"] .mc-filter-toggle {
    border-radius: 8px 8px 0 0;
    border-color: rgba(254, 254, 254, 0.3);
}
.atlas-events-dropdown .mc-filter-menu {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(254, 254, 254, 0.3);
    border-top: 0;
}
.atlas-events-dropdown .mc-filter-menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}
.atlas-events-dropdown .mc-filter-menu button:hover,
.atlas-events-dropdown .mc-filter-menu button:focus,
.atlas-events-dropdown .mc-filter-menu button[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.08);
    color: #8FAFFF;
}
.atlas-events-filter__reset,
.atlas-events-load-more__button {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #C9C8CC;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    cursor: pointer;
}
.atlas-events-filter__reset {
    min-height: 44px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.atlas-events-filter__reset:hover,
.atlas-events-load-more__button:hover,
.atlas-events-load-more__button:focus {
    background: transparent;
    color: #FEFEFE;
}
.atlas-events-result-meta {
    margin: 28px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #85828D;
}
.atlas-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.atlas-event-card { min-width: 0; max-width: none; }
.atlas-event-card__image-wrap { position: relative; height: 260px; }
.atlas-event-format-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 8px;
    background: #1440D6;
    color: #FEFEFE;
    font-family: 'Golos Text', sans-serif;
    font-size: 14px;
    line-height: 125%;
}
.atlas-event-card__date {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 20px 20px 0;
    margin-top: auto;
    color: #C9C8CC;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.3;
}
.atlas-event-card__date svg { flex: 0 0 18px; color: #8FAFFF; }
.atlas-events-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    color: #C9C8CC;
    font-family: 'Manrope', sans-serif;
    text-align: center;
}
.atlas-events-load-more { display: flex; justify-content: center; margin-top: 100px; }
.atlas-events-load-more[hidden] { display: none; }
.atlas-events-load-more__button { font-weight: 600; font-size: 16px; }

/* The event article uses mediacenter-post-page-* classes directly. */
.atlas-event-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 309px;
    align-items: start;
    gap: 100px;
}
.atlas-event-single__article { min-width: 0; }
.atlas-event-single__image-wrap { position: relative; }
.atlas-event-single__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 24px 0 40px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #C9C8CC;
}
.atlas-event-single__content { margin-bottom: 60px; }
/* Match media center article typography for both editor blocks and plain HTML. */
.atlas-event-single__content :is(h1, h2, h3, h4, h5, h6) {
    margin: 40px 0 24px;
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    line-height: 130%;
    color: #EDEDED;
}
.atlas-event-single__content :is(h1, h2) { font-size: 28px; }
.atlas-event-single__content h3 { font-size: 24px; }
.atlas-event-single__content h4 { font-size: 22px; }
.atlas-event-single__content h5 { font-size: 20px; }
.atlas-event-single__content h6 { font-size: 18px; }
.atlas-event-single__content p { margin: 0 0 1.6em; }
.atlas-event-single__content :is(ul, ol) {
    margin: 0 0 1.6em 40px;
    padding: 0;
    font: inherit;
    color: inherit;
}
.atlas-event-single__content ul { list-style-type: disc; }
.atlas-event-single__content ol { list-style-type: decimal; }
.atlas-event-single__content li { margin: 0 0 12px; }
.atlas-event-single__content li:last-child { margin-bottom: 0; }
.atlas-event-single__content li > :is(ul, ol) { margin-top: 12px; margin-bottom: 0; }
.atlas-event-single__content li > p { margin-bottom: 12px; }
.atlas-event-single__content li a {
    color: #E4E7FF;
    text-decoration: underline;
}
.atlas-event-single__content > :first-child { margin-top: 0; }
.atlas-event-single__content > :last-child { margin-bottom: 0; }
.atlas-event-section { padding: 40px 0; }
.atlas-event-section h2 {
    margin: 0 0 32px;
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 130%;
    color: #EDEDED;
}
.atlas-event-audience__items { display: flex; flex-wrap: wrap; gap: 14px; }
.atlas-event-audience__item {
    padding: 12px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #E4E7FF;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
.atlas-event-speakers__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.atlas-event-speaker { display: flex; align-items: center; gap: 24px; }
.atlas-event-speaker__photo-wrap {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.atlas-event-speaker__photo,
.atlas-event-speaker__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}
.atlas-event-speaker__placeholder { font-family: 'Golos Text', sans-serif; color: #EDEDED; font-size: 28px; }
.atlas-event-speaker__info h3 {
    margin: 0 0 10px;
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    color: #EDEDED;
}
.atlas-event-speaker__info p {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: #C9C8CC;
}
.atlas-event-registration { position: sticky; top: 100px; margin-top: 60px; }
.atlas-event-registration__card {
    padding: 28px 24px;
    border: 1px solid rgba(254, 254, 254, 0.3);
    border-radius: 8px;
    background: transparent;
}
.atlas-event-registration__card h2 {
    margin: 0 0 32px;
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    color: #EDEDED;
}
.atlas-event-registration__details { display: flex; flex-direction: column; gap: 24px; margin: 0 0 32px; }
.atlas-event-registration__details div { display: flex; flex-direction: column; gap: 6px; }
.atlas-event-registration__details dt,
.atlas-event-registration__details dd { margin: 0; font-family: 'Manrope', sans-serif; font-weight: 400; line-height: 1.4; }
.atlas-event-registration__details dt { color: #85828D; font-size: 14px; }
.atlas-event-registration__details dd { color: #E4E7FF; font-size: 16px; overflow-wrap: anywhere; }
.atlas-event-registration__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    cursor: pointer;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--ast-global-color-0);
    color: #FEFEFE;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, opacity 0.25s ease;
}
.atlas-event-registration__button:hover:not(:disabled) {
    background: var(--ast-global-color-1);
    color: #FEFEFE;
    transform: translateY(-4px);
}
.atlas-event-registration__button:active:not(:disabled) { transform: translateY(-1px); }
.atlas-event-registration__button svg { flex: 0 0 28px; }
.atlas-event-registration__button:disabled { opacity: 0.5; cursor: not-allowed; }
.atlas-event-modal[hidden], .atlas-event-modal form[hidden] { display: none; }
.atlas-event-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; font-family: 'Manrope', sans-serif; }
.atlas-event-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 1, 23, 0.7); backdrop-filter: blur(4px); }
.atlas-event-modal__dialog.contact-modal-container { width: 100%; max-width: 750px; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 51px; z-index: 1; }
.atlas-event-modal__close { position: absolute; top: 24px; right: 24px; padding: 0; border: 0; background: transparent; color: #85828d; cursor: pointer; }
.atlas-event-modal__close:hover, .atlas-event-modal__close:focus { background: transparent; color: #FEFEFE; }
.atlas-event-modal .contact-modal__title { margin: 0 28px 20px 0; }
.atlas-event-modal__event { color: #C9C8CC; font-size: 16px; line-height: 1.4; margin: 0 0 30px; }
.atlas-event-modal form { display: grid; gap: 24px; }
.atlas-event-modal__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.atlas-event-modal .contact-modal__field { display: grid; gap: 12px; }
.atlas-event-modal .contact-modal__field:last-child { grid-column: 1 / -1; }
.atlas-event-modal label { color: #FEFEFE; font-size: 14px; line-height: 1.4; }
.atlas-event-modal .contact-modal__field input { width: 100%; min-width: 0; height: 55px; border: 1px solid #3f3d48; border-radius: 6px; padding: 16px; background: #040117; color: #C9C8CC; font: inherit; font-size: 14px; }
.atlas-event-modal .contact-modal__field input:focus { border-color: #FFFFFF; background: #040117; color: #FFFFFF; }
.atlas-event-modal__consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.atlas-event-modal__consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #1440D6; }
.atlas-event-modal__consent span { color: #C9C8CC; font-size: 12px; line-height: 1.5; }
.atlas-event-modal__consent a { color: #FEFEFE; text-decoration: underline; }
.atlas-event-modal__captcha { min-height: 100px; border: 1px solid #3f3d48; border-radius: 6px; }
.atlas-event-modal [type="submit"] { min-height: 56px; font-size: 16px; }
.atlas-event-modal__feedback { margin: 24px 0 0; font-size: 16px; line-height: 1.5; color: #E4E7FF; }
.atlas-event-modal__feedback.is-error { color: #FF9C9C; }
.atlas-event-modal :focus-visible { outline: 2px solid #8FAFFF; outline-offset: 3px; }

@media screen and (max-width: 1024px) {
    .is-enhanced .atlas-events-mobile-filter { display: flex; justify-content: flex-end; margin-bottom: 25px; }
    .atlas-events-mobile-filter button { display: flex; align-items: center; gap: 12px; padding: 0; background: transparent; border: 0; color: #FEFEFE; font: 16px 'Manrope', sans-serif; }
    .is-enhanced .atlas-events-filter:not(.is-open) { display: none; }
    .is-enhanced .atlas-events-filter.is-open { position: fixed; inset: 0; z-index: 99999; background: #000000; padding: 60px 30px; overflow-y: auto; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; border: 0; }
    .atlas-events-filter.is-open .atlas-events-filter__mobile-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font: 22px 'Golos Text', sans-serif; color: #FEFEFE; }
    .atlas-events-filter__mobile-heading button { padding: 0; border: 0; background: transparent; color: #FEFEFE; }
    .atlas-events-filter.is-open fieldset { flex: 0 0 auto; margin: 0; }
    .atlas-events-filter.is-open .atlas-events-filter__select { flex: 0 0 auto; width: 100%; }
    .atlas-events-filter.is-open .atlas-events-filter__mobile-apply { display: block; min-height: 48px; padding: 12px; border: 0; border-radius: 8px; color: #FEFEFE; background: #1440D6; font: 16px 'Manrope', sans-serif; }
    .atlas-events-filter.is-open .atlas-events-filter__reset { align-self: flex-start; }
    .atlas-events-filter { gap: 20px; }
    .atlas-events-filter fieldset { flex: 1 0 100%; }
    .atlas-events-filter__select { flex: 1 1 190px; }
    .atlas-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .atlas-events-load-more { margin-top: 80px; }
    .atlas-event-single__layout { display: flex; flex-direction: column; gap: 40px; }
    .atlas-event-single__article { max-width: none; }
    .atlas-event-registration { position: static; width: 100%; margin-top: 0; }
    .atlas-event-single__eyebrow { font-size: 14px; margin-bottom: 28px; }
    .atlas-event-single__content :is(h1, h2, h3, h4, h5, h6) { margin: 28px 0 18px; }
    .atlas-event-single__content :is(h1, h2) { font-size: 22px; }
    .atlas-event-single__content h3 { font-size: 20px; }
    .atlas-event-single__content :is(h4, h5, h6) { font-size: 18px; }
    .atlas-event-single__content :is(ul, ol) {
        margin-left: 25px;
        display: flex;
        flex-direction: column;
        row-gap: 15px;
    }
    .atlas-event-single__content li { margin-bottom: 0; }
    .atlas-event-single__content > :first-child { margin-top: 0; }
    .atlas-event-section h2 { font-size: 22px; }
    .atlas-event-speaker__info p { font-size: 16px; }
}
@media screen and (max-width: 724px) {
    .atlas-event-modal { padding: 12px; }
    .atlas-event-modal__dialog.contact-modal-container { padding: 48px 20px 24px; max-height: calc(100dvh - 24px); }
    .atlas-event-modal__close { top: 12px; right: 12px; }
    .atlas-event-modal .contact-modal__title { font-size: 20px; }
    .atlas-event-modal__fields { grid-template-columns: 1fr; gap: 20px; }
    .atlas-event-modal .contact-modal__field input { font-size: 16px; }
    .atlas-event-modal form { gap: 20px; }
    .atlas-events-page .mediacenter-page-links {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .atlas-events-page .mediacenter-page-link { flex: 0 0 auto; }
    .atlas-events-grid { grid-template-columns: 1fr; gap: 40px; }
    .atlas-events-filter__status-option { margin-bottom: 8px; }
    .atlas-events-filter__status-option span { padding: 8px 12px; font-size: 12px; }
    .atlas-event-format-tag { font-size: 12px; }
    .atlas-event-speaker { align-items: flex-start; gap: 18px; }
    .atlas-event-speaker__photo-wrap { flex-basis: 86px; width: 86px; height: 86px; }
    .atlas-event-audience__item { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-event-registration__button { transition: none; }
    .atlas-event-registration__button:hover:not(:disabled),
    .atlas-event-registration__button:active:not(:disabled) { transform: none; }
}
