/* ============================================================
   PAT BIENNIAL STATE — show/hide rules keyed off the <html>
   attributes set by pat-biennial-state.js. Without the script
   (attributes missing) the "open" content is what shows.
   ============================================================ */

/* Registration phase */
html:not([data-pat-biennial-phase="closed"]) [data-pat-show~="closed"],
html[data-pat-biennial-phase="closed"] [data-pat-show~="open"] {
    display: none !important;
}

/* Hotel group-rate deadline */
html:not([data-pat-biennial-hotel="closed"]) [data-pat-show-hotel~="closed"],
html[data-pat-biennial-hotel="closed"] [data-pat-show-hotel~="open"] {
    display: none !important;
}

/* Visitor type */
html:not([data-pat-biennial-user]) [data-pat-show-user],
html[data-pat-biennial-user="guest"] [data-pat-show-user]:not([data-pat-show-user~="guest"]),
html[data-pat-biennial-user="member"] [data-pat-show-user]:not([data-pat-show-user~="member"]),
html[data-pat-biennial-user="registered"] [data-pat-show-user]:not([data-pat-show-user~="registered"]),
html[data-pat-biennial-user="fa"] [data-pat-show-user]:not([data-pat-show-user~="fa"]) {
    display: none !important;
}

/* Registration status of a logged-in visitor (guests carry no attribute,
   since they may be registered attendees who haven't logged in yet) */
html[data-pat-biennial-registered="no"] [data-pat-hide-unregistered],
html[data-pat-biennial-registered="yes"] [data-pat-hide-registered] {
    display: none !important;
}

/* "Registration closed" CTA for logged-in members who did not register */
.is-pat-cta-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* Faculty Advisor "Sponsor a member" link, inserted after each main CTA.
   Inherits the surrounding text colour so it reads on dark and light bands. */
.pat-biennial-sponsor-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    color: inherit !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
    white-space: nowrap;
}

.pat-biennial-sponsor-link:hover {
    opacity: 1;
}

.pat-biennial-sponsor-link::after {
    content: "\2192";
    text-decoration: none;
}
