/* ===== Accessibility Overrides ===== */

/* Restore visible focus indicators (overrides theme.css removal) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #3085EE !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* Screen-reader-only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-to-content link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    z-index: 10001;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #454d5d;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #3085EE;
    border-radius: 4px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .parallax {
        background-attachment: scroll !important;
    }

    .pulse {
        animation: none !important;
    }

    .btn-instagram:hover {
        transform: none;
    }

    * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Instagram Brand Button */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
}

.btn-instagram:hover,
.btn-instagram:focus-visible {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    border: none;
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Homepage navigation grouping */
.dropmenu .navigation .nav-divider {
    align-self: center;
    width: 1px;
    height: 1.1rem;
    margin: 0 0.35rem;
    background: #e7e9ed;
    pointer-events: none;
}

.header-dark #header:not(.scrolled) .dropmenu .navigation .nav-divider {
    background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 840px) {
    .dropmenu .navigation .nav-divider {
        display: none;
    }
}

/* Meet the Organizers page */
.organizers-page #body-wrapper {
    background: #f8f9fa;
}

.organizers-intro {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
    position: relative;
}

.organizers-kicker {
    margin-bottom: 0.75rem;
    color: #2361a5;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.organizers-intro h1 {
    margin-bottom: 1rem;
}

.organizers-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.0rem;
    max-width: 920px;
    margin: 0 auto;
}

.organizer-card {
    overflow: hidden;
    padding: 1.3rem;
    background: #fff;
    border: 1px solid #e7e9ed;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(69, 77, 93, 0.28);
}

.organizer-headshot {
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    aspect-ratio: 1;
    overflow: hidden;
    margin: 0 1.25rem 0rem 0;
    background: linear-gradient(145deg, #454d5d, #3085EE);
    border-radius: 8px;
    color: #fff;
}

.organizer-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organizer-headshot span {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Branded placeholder SVG for organizers without headshots */
.organizer-headshot--placeholder {
    position: relative;
}

.placeholder-icon {
    width: 80%;
    height: 80%;
    opacity: 0.9;
}

.organizer-copy h2 {
    margin: 0 0 0.55rem;
    font-size: 1.4rem;
}

.organizer-copy h2 span {
    display: block;
    margin-top: 0.2rem;
    color: #6b6b6b;
    font-size: 0.8rem;
    font-weight: 600;
}

.organizer-copy p {
    margin: 0;
    color: #464646;
}

/* Headshot lightbox link reset */
.headshot-lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
}

.organizer-headshot a:hover img,
.organizer-headshot a:focus-visible img {
    opacity: 0.85;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-overlay[hidden] {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 10000;
    padding: 0;
    border: none;
    background: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    opacity: 1;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

/* Mobile menu button accessibility */
.mobile-menu .button_container {
    cursor: pointer;
}

.mobile-menu .button_container:focus-visible {
    outline: 2px solid #3085EE;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Hero scroll-down button reset */
#to-start {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
}

#to-start:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .organizers-intro {
        text-align: left;
    }

    .organizer-card {
        padding: 1rem;
    }

    .organizer-headshot {
        width: 180px;
    }
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 820px;
}

.faq-toggle-all {
    display: block;
    margin-left: auto;
    margin-bottom: 0.5rem;
    padding: 0.4rem .85rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #2361a5;
    background: none;
    border: 1.5px solid #2361a5;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.faq-toggle-all:hover,
.faq-toggle-all:focus-visible {
    background: #2361a5;
    color: #fff;
}

.faq-accordion details {
    margin-bottom: 0;
    border-bottom: 1px solid #e7e9ed;
}

.faq-accordion details:first-of-type {
    border-top: 1px solid #e7e9ed;
}

.faq-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #454d5d;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: "+";
    flex-shrink: 0;
    margin-left: 1rem;
    font-size: 1.4rem;
    font-weight: 300;
    color: #888;
    transition: transform 0.2s ease;
}

.faq-accordion details[open] > summary::after {
    content: "−";
}

.faq-accordion summary:hover {
    color: #2361a5;
}

.faq-accordion .faq-answer {
    padding: 0 0.25rem 1.25rem;
    color: #464646;
    line-height: 1.7;
}

.faq-accordion .faq-answer p {
    margin: 0 0 0.75rem;
}

.faq-accordion .faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-accordion .faq-answer ul {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.25rem;
}

.faq-accordion .faq-answer li {
    margin-bottom: 0.4rem;
}

.faq-accordion .faq-answer a {
    color: #2361a5;
    text-decoration: underline;
}

.faq-accordion .faq-answer a:hover {
    color: #1a4a80;
}

@media (prefers-reduced-motion: reduce) {
    .faq-accordion summary::after {
        transition: none;
    }
}
