/*
 * XSA visual system.
 *
 * Suisse Intl is a commercial typeface, so the stylesheet uses licensed local
 * installations when available and falls back to a neutral grotesk. WOFF2
 * files can be added later without changing the rest of the theme.
 */
@font-face {
    font-family: "Suisse Intl";
    src: local("Suisse Intl Regular"), local("SuisseIntl-Regular");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Suisse Intl";
    src: local("Suisse Intl Medium"), local("SuisseIntl-Medium");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Suisse Intl";
    src: local("Suisse Intl Bold"), local("SuisseIntl-Bold");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --heaven: #3a96d7;
    --smoke: #dfe0dc;
    --lawn: #457010;
    --tyre: #191919;

    --page-bg: #d5d4d4;
    --bg: #d5d4d4;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-muted: var(--smoke);
    --surface-accent: var(--heaven);
    --border: transparent;
    --text: var(--tyre);
    --text-muted: rgba(25, 25, 25, 0.68);
    --muted: rgba(25, 25, 25, 0.68);
    --success: var(--lawn);
    --danger: #9f2d24;
    --warning: #8a5a00;
    --shadow: none;
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background: #f5f5f2;
    color: var(--tyre);
}

a {
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--heaven);
    outline-offset: 2px;
    box-shadow: none;
}

h1,
h2,
h3,
.brand {
    color: var(--tyre);
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 500;
}

h2,
h3,
.brand,
strong {
    font-weight: 700;
}

.topbar,
.shell {
    background: var(--tyre);
    color: #ffffff;
}

.topbar .brand,
.topbar .nav > a,
.shell .brand,
.shell .nav > a,
.shell .shell__top > * {
    color: #ffffff;
}

.topbar .brand,
.shell .brand {
    padding: 12px 14px;
    background: var(--heaven);
    color: var(--tyre);
}

.topbar,
.shell,
.hero,
.panel,
.message,
.notice,
.flash,
.card,
.activity-group,
.activity-card,
.schedule-grid__corner,
.schedule-grid__date,
.schedule-grid__time,
.schedule-grid__cell,
.login-card,
.profile-menu__dropdown,
dialog {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero,
.panel,
.message,
.notice,
.flash,
.login-card,
dialog {
    background: #ffffff;
}

.card,
.activity-group,
.activity-card,
.schedule-grid__corner,
.schedule-grid__time,
.schedule-grid__cell {
    background: var(--smoke);
}

.schedule-grid__date,
.message.success,
.notice.success,
.flash.success {
    background: rgba(69, 112, 16, 0.18);
}

.notice.warning,
.flash.error {
    background: rgba(159, 45, 36, 0.12);
}

.nav a,
.nav button,
.button-link,
button,
input[type="submit"],
.tab,
.activity-card__action,
.signup-link,
.social-login a,
.pill,
.profile-menu__trigger,
.nav .profile-menu__dropdown a {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.nav a,
.nav button,
.button-link,
button,
input[type="submit"],
.activity-card__action,
.signup-link,
.social-login a {
    background: var(--lawn);
    color: #ffffff;
    font-weight: 500;
}

.nav a:hover,
.nav button:hover,
.button-link:hover,
button:hover,
input[type="submit"]:hover,
.activity-card__action:hover,
.signup-link:hover,
.social-login a:hover {
    background: var(--heaven);
    color: var(--tyre);
}

.topbar .nav > a,
.shell .nav > a,
.topbar .nav > button,
.shell .nav > button {
    background: transparent;
    color: #ffffff;
}

.topbar .nav > a:hover,
.shell .nav > a:hover,
.topbar .nav > button:hover,
.shell .nav > button:hover,
.shell .nav a.is-active {
    background: var(--heaven);
    color: var(--tyre);
}

.profile-menu__trigger,
.profile-menu__dropdown,
.profile-menu__dropdown a {
    background: var(--smoke);
    color: var(--tyre);
}

.tab {
    background: var(--smoke);
    color: var(--tyre);
}

.tab[aria-selected="true"] {
    background: var(--heaven);
    color: var(--tyre);
}

input,
select,
textarea {
    border: 0;
    border-radius: 0;
    background: var(--smoke);
    color: var(--tyre);
}

input:disabled {
    background: rgba(223, 224, 220, 0.58);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--lawn);
}

.pill {
    background: var(--smoke);
}

table th,
table td {
    border-color: var(--smoke);
}

video {
    border-radius: 0;
}

.signup-link,
.social-login a,
.password-toggle {
    border-radius: 0;
}

.login-field input,
.login-field input:focus {
    border: 0;
    border-radius: 5px;
    box-shadow: none;
}

.login-form__submit {
    border-radius: 999px;
    background: var(--lawn);
    color: #ffffff;
}

.login-form__submit:hover {
    background: var(--heaven);
    color: var(--tyre);
}

.remember-row input {
    accent-color: var(--lawn);
}

@media (max-width: 640px) {
    .page {
        width: min(100% - 20px, 1320px);
    }
}

/* Public event masthead. The operator dashboard uses its own base template and
 * deliberately does not load this stylesheet or header partial. */
.public-header {
    position: relative;
    min-height: clamp(420px, 29vw, 590px);
    overflow: visible;
    background-color: var(--heaven);
    background-image: url("../img/xsa-bg.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--tyre);
}

.public-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 5vw, 96px);
    width: min(100% - clamp(40px, 7vw, 144px), 1800px);
    min-height: inherit;
    margin: 0 auto;
    padding-top: clamp(38px, 4vw, 76px);
}

.public-header__event-logo,
.public-header__organizer-logo {
    display: block;
    align-self: start;
    text-decoration: none;
}

.public-header__event-logo {
    width: clamp(300px, 34vw, 650px);
}

.public-header__event-logo img,
.public-header__organizer-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.public-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(38px, 4.5vw, 80px);
}

.public-header__organizer-logo {
    align-self: flex-end;
    width: clamp(150px, 14vw, 270px);
}

.public-header__nav {
    display: grid;
    justify-content: flex-end;
    justify-items: end;
    gap: 10px;
    max-width: 560px;
}

.public-header .nav a,
.public-header .nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.public-header .profile-menu {
    position: relative;
    justify-self: end;
}

.public-header .profile-menu__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    list-style: none;
}

.public-header .profile-menu__trigger::-webkit-details-marker {
    display: none;
}

.public-header .profile-menu__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-header .profile-menu__icon {
    width: 22px;
    height: 22px;
}

.public-header .profile-menu__dropdown {
    position: absolute;
    z-index: 10;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: max-content;
    min-width: 210px;
}

.public-header__event-meta {
    position: absolute;
    left: 0;
    bottom: clamp(78px, 6vw, 112px);
    max-width: min(48vw, 720px);
}

.public-header__event-dates {
    margin: 0;
    font-size: clamp(1.25rem, 1.65vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
}

.public-header__event-name {
    max-width: 18ch;
    margin: 10px 0 0;
    font-size: clamp(1.55rem, 2.2vw, 2.75rem);
    font-weight: 700;
    line-height: 0.98;
}

.page {
    width: min(1320px, calc(100% - 32px));
    padding-top: 20px;
}

.button-link__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-right: 8px;
}

.page > .participant-checklist {
    margin-bottom: 20px;
}

.participant-checklist__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 24px;
    border: 2px solid var(--tyre);
    border-radius: 999px;
    background: transparent;
    color: var(--tyre);
    cursor: pointer;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    list-style: none;
    text-transform: uppercase;
}

.participant-checklist__trigger::-webkit-details-marker {
    display: none;
}

.participant-checklist__trigger:hover,
.participant-checklist__trigger:focus-visible,
.participant-checklist[open] .participant-checklist__trigger {
    background: var(--tyre);
    color: #ffffff;
}

.participant-checklist__content {
    margin-top: 16px;
    padding: 28px;
    border: 1px solid rgba(25, 25, 25, 0.12);
    background: var(--surface);
    color: var(--tyre);
    line-height: 1.7;
}

.participant-checklist__content > :first-child {
    margin-top: 0;
}

.participant-checklist__content > :last-child {
    margin-bottom: 0;
}

/* Rounded outline controls used throughout the public navigation and forms. */
.nav a,
.nav button,
.button-link,
button,
input[type="submit"],
.activity-card__action,
.signup-link,
.social-login a {
    border: 2px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: var(--tyre);
    box-shadow: none;
    font-weight: 500;
}

.nav a:hover,
.nav button:hover,
.button-link:hover,
button:hover,
input[type="submit"]:hover,
.activity-card__action:hover,
.signup-link:hover,
.social-login a:hover {
    border-color: var(--tyre);
    background: var(--tyre);
    color: #ffffff;
}

.public-header .nav > a,
.public-header .nav > button {
    min-height: 48px;
    padding-inline: clamp(18px, 2vw, 32px);
    border-color: var(--tyre);
    background: transparent;
    color: var(--tyre);
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.public-header .nav > a:hover,
.public-header .nav > button:hover {
    background: var(--tyre);
    color: #ffffff;
}

.profile-menu__trigger {
    border: 2px solid var(--tyre);
    border-radius: 50%;
    background: transparent;
    color: var(--tyre);
}

.profile-menu__trigger:hover,
.profile-menu__trigger:focus-visible,
.profile-menu[open] .profile-menu__trigger {
    background: var(--tyre);
    color: #ffffff;
}

.profile-menu__dropdown {
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(25, 25, 25, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(25, 25, 25, 0.14);
    backdrop-filter: blur(12px);
}

.nav .profile-menu__dropdown a {
    min-height: 42px;
    padding: 8px 16px;
    border: 2px solid var(--tyre);
    border-radius: 999px;
    background: transparent;
    color: var(--tyre);
}

.nav .profile-menu__dropdown a:hover {
    background: var(--tyre);
    color: #ffffff;
}

.danger-button {
    border-color: var(--danger);
    color: var(--danger);
}

.danger-button:hover {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
}

button:disabled,
input[type="submit"]:disabled {
    background: transparent;
    color: rgba(25, 25, 25, 0.46);
}

.password-toggle,
.password-toggle:hover {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tyre);
}

@media (max-width: 900px) {
    .public-header {
        min-height: 500px;
        background-size: auto 225%;
    }

    .public-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
        width: min(100% - 32px, 720px);
        padding-top: 28px;
    }

    .public-header__event-logo {
        width: min(56vw, 390px);
    }

    .public-header__organizer-logo {
        width: min(24vw, 175px);
    }

    .public-header__right {
        gap: 30px;
    }

    .public-header__nav {
        justify-items: end;
        gap: 8px;
    }

    .public-header .nav > a {
        min-height: 42px;
        padding-inline: 16px;
        font-size: 0.78rem;
    }

    .public-header__event-meta {
        bottom: 92px;
    }
}

@media (max-width: 520px) {
    .public-header {
        min-height: 430px;
        background-size: auto 225%;
    }

    .public-header__inner {
        width: calc(100% - 24px);
        padding-top: 22px;
    }

    .public-header__event-logo {
        width: min(54vw, 240px);
    }

    .public-header__organizer-logo {
        width: min(25vw, 120px);
    }

    .public-header__right {
        gap: 82px;
    }

    .public-header .nav > a {
        min-height: 36px;
        max-width: 48vw;
        padding-inline: 12px;
        text-align: center;
        font-size: 0.66rem;
        line-height: 1.05;
    }

    .profile-menu__trigger {
        width: 38px;
        height: 38px;
    }

    .profile-menu__dropdown {
        right: 0;
        min-width: 190px;
    }

    .public-header__event-meta {
        bottom: 78px;
        max-width: 54vw;
    }

    .public-header__event-dates {
        font-size: 1rem;
    }

    .public-header__event-name {
        margin-top: 6px;
        font-size: clamp(1.15rem, 6vw, 1.55rem);
    }

    .page {
        width: calc(100% - 20px);
    }

    .participant-checklist__trigger {
        width: 100%;
        padding-inline: 18px;
    }

    .participant-checklist__content {
        padding: 20px;
    }
}
