/* =========================================================
   Includes
   ========================================================= */
@import './css/variables.css';
@import './css/fonts.css';
@import './css/registration.css';
@import './css/schedule.css';
@import './css/speakers.css';

/* =========================================================
   Reset
   ========================================================= */

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-color: var(--color-primary);
    color: var(--color-text);
    font-size: 1rem;
    font-family: proxima-nova, arial, sans-serif;
    line-height: 1.3;
    overflow-x: hidden;
    overflow-y: scroll;
    text-decoration-skip-ink: none;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   Global Header
   ========================================================= */

.site-header {
    position: relative;
    /*
     * Must remain above the drawer and backdrop.
     */
    z-index: 1250;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.site-header__inner {
    position: relative;
    width: min(100%, var(--site-max-width));
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    text-align: left;
}

.site-brand__name img {
    display: block;
    height: 15px;
    width: auto;
}

.site-brand__divider {
    width: 1px;
    height: 24px;
    margin: 0 0.875rem;
    background: rgb(255 255 255 / 35%);
}

.site-brand__section a {
    font-family: "HCo Ringside Narrow SSm";
    font-size: 18px;
    color: var(--color-text-inverse);
    text-transform: uppercase;
}

/*.site-brand__section img {*/
/*    display: block;*/
/*    height: 17px;*/
/*    width: auto;*/
/*}*/

/* =========================================================
   Header Menu Controls
   ========================================================= */

.menu-toggle,
.menu-close {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--mobile-menu-button-size);
    height: var(--mobile-menu-button-size);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* =========================================================
   Hamburger
   ========================================================= */

.menu-toggle {
    background-color: transparent;
}

.menu-toggle img {
    display: inline-block;
    width: var(--mobile-menu-icon-size);
    height: var(--mobile-menu-icon-size);
    color: var(--color-text-inverse);
}

/* =========================================================
   Close Button
   =========================================================
   Separate from the navigation.
   Remains in the global header.
   ========================================================= */

.menu-close {
    background-color: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1300;
}

.menu-close svg {
    display: block;
    width: var(--mobile-menu-icon-size);
    height: var(--mobile-menu-icon-size);
}

/* =========================================================
   Site Frame
   ========================================================= */

.site-page {
    background-color: var(--color-bg-muted);
}

.site-layout {
    width: min(100%, var(--site-max-width));
    margin: 0 auto;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

/* =========================================================
   Event Header
   ========================================================= */

.event-hero {
    width: 100%;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.event-hero__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.375rem 2rem 1.25rem;
    text-align: left;
}

.event-hero__title {
    min-width: 0;
    text-align: left;
}

.event-hero .event-hero__title-link {
    margin: 0 0 0.375rem;
    color: var(--color-primary);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: left;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.125rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    text-align: left;
    margin-top: 0.5rem;
}

.event-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.33rem;
    text-align: left;
}

.event-hero__heading .event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.event-sidebar .event-sidebar__actions {
    display: none;
}

.event-sidebar .event-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 1.75rem;
}

.event-sidebar .event-actions a {
    font-size: 0.9375rem;
}

.event-actions a {
    font-size: 1rem;
    white-space: nowrap;
    color: var(--color-text-muted);
}

.event-actions__divider {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 1.25rem;
    background: var(--color-divider);
}

/* =========================================================
   Event Body
   ========================================================= */

.event-body {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    align-items: stretch;
    min-height: 600px;
}

.event-body--no-sidebar {
    grid-template-columns: 1fr;
}

/* =========================================================
   Shared Event Navigation
   =========================================================
   This is the SAME element used for desktop and mobile.
   Desktop: normal grid column.
   Mobile: fixed right-side drawer.
   ========================================================= */

.event-sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-bg);
    border-right: 1px solid var(--color-border);
    text-align: left;
    /*
     * Desktop transition is harmless, but makes the
     * desktop-to-mobile state change smooth.
     */
    transition: transform var(--transition-menu);
}

.event-sidebar .event-sidebar__logo img {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    max-height: 150px;
}

.event-navigation {
    padding: 1.5rem 1.25rem;
    text-align: left;
}

/* =========================================================
   Navigation List
   ========================================================= */

.event-navigation__list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.event-navigation__list li {
    margin: 0.0625rem 0;
    text-align: left;
}

.event-navigation__list a {
    display: block;
    padding: 0.625rem 0.75rem;
    /*padding: 0.5rem 0.75rem;*/
    border-radius: 0.4375rem;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.event-navigation__list a:hover {
    background-color: var(--color-bg-highlight);
}

.event-navigation__list a.is-active {
    background-color: var(--color-bg-highlight);
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--color-accent);
}

/* =========================================================
   Navigation Divider
   ========================================================= */

.event-navigation__separator {
    height: 1px;
    margin: 1.25rem 1rem;
    background-color: var(--color-divider);
}

/* =========================================================
   Deadlines
   ========================================================= */

.deadlines {
    padding: 0 0.75rem;
}

.deadlines .deadlines__heading {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.deadlines .deadlines__deadline {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.deadlines .deadlines__deadline-type {
    font-weight: bold;
}

/*.deadlines .deadlines__deadline-date {*/
/*    margin-left: 0.5rem;*/
/*}*/

.deadlines__register {
    margin-top: 1rem;
}

/* =========================================================
   Main Content
   ========================================================= */

.event-content h1 {
    font-size: clamp(1.75rem, 1.6rem + 0.5vw, 2rem);
    margin-top: 0;
    margin-bottom: 1rem;
}

.event-content h2 {
    font-size: clamp(1.5rem, 1.4rem + 0.35vw, 1.75rem);
    margin-top: 1.375rem;
    margin-bottom: 0.75rem;
}

.event-content h3 {
    font-size: clamp(1.3rem, 1.25rem + 0.25vw, 1.5rem);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.event-content h4 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.375rem;
}

.event-content h5 {
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.375rem;
}

.event-content h6 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.375rem;
}

.event-content h1,
.event-content h2 {
    font-weight: 600;
}

.event-content h3,
.event-content h4,
.event-content h5,
.event-content h6 {
    font-weight: 500;
}

.event-content h1,
.event-content h2,
.event-content h3,
.event-content h4,
.event-content h5,
.event-content h6 {
    line-height: 1.2;
    text-transform: none;
    color: var(--color-text-heading);
}

.event-content p {
    margin: 0 0 1rem 0;
}

.event-content a:not(.btn) {
    color: var(--color-text-hyperlink);
}

.event-section,
.event-details {
    padding: 1.5rem 2rem;
}

/* =========================================================
   Mobile Backdrop
   ========================================================= */

.mobile-navigation__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / 45%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: default;
    transition: opacity var(--transition-menu);
}

/* =========================================================
   Mobile Open State
   ========================================================= */

body.menu-open .site-brand {
    pointer-events: none;
}

body.menu-open .mobile-navigation__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/*
 * The SAME desktop sidebar becomes the mobile drawer.
 */
body.menu-open .event-sidebar {
    transform: translateX(0);
    box-shadow: -12px 0 30px rgb(0 0 0 / 15%);
}

/*
 * Replace hamburger with white close control.
 */
body.menu-open .menu-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.menu-open .menu-close {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    width: 100%;
    color: var(--color-text-inverse);
    text-align: center;
    background-color: var(--color-primary);
}

.site-footer__inner {
    width: min(100%, var(--site-max-width));
    margin: 0 auto;
    padding: 3.625rem 2rem 4rem;
}

.site-footer__copyright {
    margin: 0 0 0.75rem;
    color: var(--color-text-inverse);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.site-footer__brand {
    color: var(--color-text-inverse);
    text-align: center;
}

.site-footer__brand-primary {
    margin: 1rem 0;
    text-align: center;
}

.site-footer__brand-primary .site-footer__logo {
    display: block;
    height: 58px;
    width: auto;
    margin-inline: auto;
}

.site-footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3.375rem;
    font-size: 0.875rem;
    text-align: center;
}

.site-footer__links a,
.site-footer__cookie-button {
    color: var(--color-text-inverse);
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__cookie-button {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: transparent;
    color: var(--color-text-inverse);
    cursor: pointer;
}

.site-footer__cookie-button:hover {
    text-decoration: underline;
}

/* =========================================================
   Application Styles (Misc)
   ========================================================= */

/* Button Colors */
.btn-primary, .btn-primary:disabled, .btn-primary.disabled, .btn-info, .btn-info:disabled, .btn-info.disabled {
    background-color: var(--button-background-color);
    border-color: var(--button-background-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:active:focus, .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info:active:focus {
    background-color: var(--button-background-color-hover);
    border-color: var(--button-background-color-hover);
}

/* Progress Bar */
#progress-bar .list-group-item.active {
    background-color: var(--highlight-background-color);
}

#progress-bar .list-group-item.active + .list-group-item:before {
    background-color: var(--highlight-background-color);
}

/* Slideshow */
.shalbum {
    margin-bottom: 1rem;
}

/* =========================================================
   Z-Index Layers
   =========================================================
   Menu backdrop    1200
   Site header      1250
   Menu close       1300
   Modal backdrop   1400
   Modal            1410
   TinyMCE          1500
   Skip to main     2000
   ========================================================= */

.modal-backdrop {
    z-index: 1400;
}

.modal {
    z-index: 1410;
}

/* TinyMCE */
.tox-tinymce-aux {
    z-index: 1500 !important;
}

/* Skip to main */
.skip-to-content {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background-color: #fff;
    color: #002e5d;
    border: 2px solid #002e5d;
    border-radius: 0.25rem;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-150%);
}

.skip-to-content:focus {
    transform: translateY(0);
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* =========================================================
   Mobile / Tablet
   ========================================================= */

@media (width < 992px) {

    /* -----------------------------------------------------
       Header
       ----------------------------------------------------- */

    .site-header__inner {
        padding-left: 1.5rem;
        padding-right: var(--mobile-menu-button-size);
    }

    .site-brand__name img {
        height: 13px;
    }

    .site-brand__divider {
        height: 21px;
        margin: 0 0.625rem;
    }

    .site-brand__section a {
        font-size: 16px;
    }

    .event-hero__heading {
        flex-wrap: wrap;
        padding: 1.25rem 1.5rem 1.125rem;
    }

    .event-hero .event-hero__title-link {
        font-size: 2.125rem;
    }

    .event-hero__heading .event-actions {
        display: none;
    }

    .event-sidebar .event-sidebar__actions {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    /* -----------------------------------------------------
       Site
       ----------------------------------------------------- */

    .site-layout {
        width: 100%;
        margin: 0;
    }

    /* -----------------------------------------------------
       Event Body
       ----------------------------------------------------- */

    .event-body {
        display: block;
        min-height: 0;
    }

    /* -----------------------------------------------------
       Shared Navigation Becomes Drawer
       ----------------------------------------------------- */

    .event-sidebar {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        z-index: 1210;
        width: min(300px, calc(100% - 1.5rem));
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        background-color: var(--color-bg);
        border-right: 0;
        box-shadow: none;
        transform: translateX(100%);
        transition: transform var(--transition-menu);
    }

    .event-navigation {
        padding: 1.25rem;
    }

    /* -----------------------------------------------------
       Main Content
       ----------------------------------------------------- */

    .event-content {
        width: 100%;
    }

    .event-section,
    .event-details {
        padding: 1.375rem 1.5rem;
    }

    /* -----------------------------------------------------
       Footer
       ----------------------------------------------------- */

    .site-footer__inner {
        padding: 2.75rem 1.5rem 3rem;
    }

    .site-footer__brand-primary .site-footer__logo {
        height: 50px;
    }

    .site-footer__links {
        margin-top: 2.625rem;
    }
}

/* =========================================================
   Small Phones
   ========================================================= */

@media (width < 576px) {

    /* -----------------------------------------------------
       Header
       ----------------------------------------------------- */

    .site-header__inner {
        padding-left: 1rem;
    }

    .site-brand__name img {
        height: 12px;
    }

    .site-brand__divider {
        height: 19px;
        margin: 0 0.5rem;
    }

    .site-brand__section a {
        font-size: 14px;
    }

    /* -----------------------------------------------------
       Event Hero
       ----------------------------------------------------- */

    .event-hero__heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .event-hero .event-hero__title-link {
        font-size: 1.875rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.375rem;
    }

    /* -----------------------------------------------------
       Content
       ----------------------------------------------------- */

    .event-section,
    .event-details,
    .placeholder-section {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .event-detail-grid {
        grid-template-columns: 1fr;
    }

    /* -----------------------------------------------------
       Drawer
       ----------------------------------------------------- */

    .event-sidebar {
        width: min(
            300px,
            calc(100% - 1rem)
        );
    }

    .event-navigation {
        padding: 1rem;
    }

    /* -----------------------------------------------------
       Footer
       ----------------------------------------------------- */

    .site-footer__inner {
        padding: 2rem 1rem;
    }

    .site-footer__copyright {
        font-size: 0.875rem;
    }

    .site-footer__brand-primary .site-footer__logo {
        height: 44px;
    }

    .site-footer__links {
        flex-wrap: wrap;
        margin-top: 2rem;
        font-size: 0.875rem;
    }
}

/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}