:root {
    --rsac-bg: #0d072f;
    --rsac-panel: #170b45;
    --rsac-panel-soft: #21105d;
    --rsac-pink: #f90c9b;
    --rsac-purple: #310082;
    --rsac-gold: #d4af37;
    --rsac-text: #ffffff;
    --rsac-muted: rgba(255, 255, 255, .76);
    --rsac-border: rgba(249, 12, 155, .38);
}

.rsac-page,
.rsac-submission,
.rsac-listing {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    margin: 0 auto 48px;
    color: var(--rsac-text);
    font-family: Montserrat, Arial, sans-serif;
}

body:not(.home):not(.blog) #content.rsac-page,
body:not(.home):not(.blog) #content.rsac-submission,
body:not(.home):not(.blog) #content.rsac-listing {
    clear: both !important;
    float: none !important;
    width: min(1180px, calc(100% - 32px)) !important;
    max-width: 1180px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.rsac-page *,
.rsac-submission *,
.rsac-listing * {
    box-sizing: border-box;
}

.rsac-hero,
.rsac-submission__header,
.rsac-event-single__header,
.rsac-listing__header {
    padding: clamp(24px, 4vw, 48px);
    background: linear-gradient(135deg, rgba(47, 4, 117, .97), rgba(13, 7, 47, .99) 60%);
    border: 1px solid var(--rsac-border);
    border-left: 4px solid var(--rsac-pink);
    border-radius: 6px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .3);
}

.rsac-hero,
.rsac-listing__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.rsac-hero > div,
.rsac-listing__header > div {
    min-width: 0;
    flex: 1 1 auto;
}

.rsac-hero > .rsac-button,
.rsac-listing__header > .rsac-button {
    max-width: 100%;
    flex: 0 0 auto;
    white-space: normal;
}

.rsac-hero h1,
.rsac-submission__header h2,
.rsac-event-single h1,
.rsac-listing h2 {
    max-width: 850px;
    margin: 0;
    color: var(--rsac-text);
    font-weight: 850;
    line-height: 1.08;
}

.rsac-hero h1,
.rsac-submission__header h2,
.rsac-event-single h1 {
    font-size: clamp(32px, 4.5vw, 58px);
}

.rsac-hero p:not(.rsac-eyebrow),
.rsac-submission__header p:not(.rsac-eyebrow) {
    max-width: 820px;
    margin: 16px 0 0;
    color: var(--rsac-muted);
    font-size: 16px;
    line-height: 1.6;
}

.rsac-eyebrow {
    margin: 0 0 10px;
    color: var(--rsac-pink);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rsac-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    background: var(--rsac-bg);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 5px;
    color: var(--rsac-text) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

.rsac-button:hover,
.rsac-button:focus-visible {
    border-color: var(--rsac-pink);
    transform: translateY(-1px);
}

.rsac-button--primary {
    background: linear-gradient(135deg, var(--rsac-pink), var(--rsac-purple));
}

.rsac-policy,
.rsac-form,
.rsac-filters,
.rsac-event-facts,
.rsac-empty {
    margin-top: 22px;
    padding: clamp(20px, 3vw, 32px);
    background: rgba(13, 7, 47, .96);
    border: 1px solid var(--rsac-border);
    border-radius: 6px;
}

.rsac-policy ul {
    margin: 12px 0 0 20px;
    color: var(--rsac-muted);
}

.rsac-notice {
    margin: 22px 0;
    padding: 16px 20px;
    border: 1px solid;
    border-radius: 5px;
    font-weight: 700;
}

.rsac-notice--success {
    background: rgba(34, 197, 94, .13);
    border-color: #4ade80;
}

.rsac-notice--error {
    background: rgba(239, 68, 68, .14);
    border-color: #f87171;
}

.rsac-form fieldset {
    margin: 0 0 30px;
    padding: 0;
    border: 0;
}

.rsac-form legend {
    width: 100%;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rsac-border);
    color: var(--rsac-text);
    font-size: 23px;
    font-weight: 850;
}

.rsac-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rsac-field--wide {
    grid-column: 1 / -1;
}

.rsac-form label,
.rsac-filters label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--rsac-text);
    font-size: 14px;
    font-weight: 750;
}

.rsac-form input,
.rsac-form select,
.rsac-form textarea,
.rsac-filters select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #17142c;
    font: 500 16px/1.35 Arial, sans-serif;
}

.rsac-form textarea {
    min-height: 170px;
    resize: vertical;
}

.rsac-form input:focus,
.rsac-form select:focus,
.rsac-form textarea:focus,
.rsac-filters select:focus {
    border-color: var(--rsac-pink);
    outline: 3px solid rgba(249, 12, 155, .2);
}

.rsac-form small,
.rsac-form__privacy {
    color: var(--rsac-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.rsac-consents {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.rsac-consents label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
}

.rsac-consents input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
}

.rsac-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.rsac-filters {
    display: grid;
    grid-template-columns: minmax(180px, 320px) auto;
    align-items: end;
    justify-content: start;
    gap: 12px;
    margin-bottom: 22px;
}

.rsac-filters label {
    grid-column: 1;
}

.rsac-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.rsac-event-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 22px;
    background: var(--rsac-bg);
    border: 1px solid var(--rsac-border);
    border-top: 3px solid var(--rsac-pink);
    border-radius: 6px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

.rsac-event-card__meta,
.rsac-event-single__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rsac-event-card__meta span,
.rsac-verified,
.rsac-status {
    display: inline-flex;
    padding: 5px 8px;
    background: var(--rsac-panel-soft);
    border-radius: 999px;
    color: var(--rsac-text);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rsac-verified {
    background: rgba(212, 175, 55, .16) !important;
    color: #f6dc7c !important;
}

.rsac-status--cancelled {
    background: rgba(239, 68, 68, .22);
}

.rsac-status--postponed {
    background: rgba(245, 158, 11, .22);
}

.rsac-event-card h3 {
    margin: 16px 0 10px;
    color: var(--rsac-text);
    font-size: 22px;
    line-height: 1.2;
}

.rsac-event-card h3 a {
    color: inherit;
    text-decoration: none;
}

.rsac-event-card p {
    margin: 7px 0;
    color: var(--rsac-muted);
    line-height: 1.5;
}

.rsac-event-card__date {
    color: var(--rsac-gold) !important;
    font-weight: 800;
}

.rsac-event-card__org {
    font-size: 13px;
}

.rsac-event-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.rsac-event-card__actions a,
.rsac-event-footer a {
    color: #ff71c9;
    font-weight: 800;
}

.rsac-event-single__header {
    margin-bottom: 22px;
}

.rsac-event-single__badges {
    margin-top: 18px;
}

.rsac-event-single__image {
    margin: 28px 0 0;
}

.rsac-event-single__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    border-radius: 5px;
}

.rsac-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr);
    gap: 24px;
    align-items: start;
}

.rsac-event-content {
    padding: clamp(22px, 3vw, 36px);
    background: rgba(13, 7, 47, .94);
    border: 1px solid var(--rsac-border);
    border-radius: 6px;
    color: var(--rsac-text);
    font-size: 17px;
    line-height: 1.72;
}

.rsac-event-facts {
    position: sticky;
    top: 24px;
    margin-top: 0;
}

.rsac-event-facts h2 {
    margin-top: 0;
    color: var(--rsac-text);
}

.rsac-event-facts dl,
.rsac-event-facts dd {
    margin: 0;
}

.rsac-event-facts dl > div {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.rsac-event-facts dt {
    color: var(--rsac-gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.rsac-event-facts dd {
    margin-top: 4px;
    color: var(--rsac-text);
    line-height: 1.45;
}

.rsac-event-facts__actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.rsac-editorial-note {
    margin-top: 28px;
    padding: 15px;
    background: rgba(212, 175, 55, .1);
    border-left: 3px solid var(--rsac-gold);
    color: var(--rsac-muted);
    font-size: 13px;
}

.rsac-event-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 20px 0;
}

.rsac-pagination {
    margin-top: 28px;
}

.rsac-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rsac-pagination a,
.rsac-pagination .current {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: var(--rsac-bg);
    border: 1px solid var(--rsac-border);
    color: var(--rsac-text);
    text-decoration: none;
}

@media (max-width: 900px) {
    .rsac-hero,
    .rsac-listing__header {
        align-items: stretch;
        flex-direction: column;
    }

    .rsac-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rsac-event-facts {
        position: static;
    }
}

@media (max-width: 640px) {
    .rsac-hero,
    .rsac-listing__header {
        align-items: stretch;
        flex-direction: column;
    }

    .rsac-grid,
    .rsac-event-grid,
    .rsac-filters {
        grid-template-columns: 1fr;
    }

    .rsac-field--wide {
        grid-column: auto;
    }

    .rsac-filters label {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsac-button {
        transition: none;
    }
}
