:root {
    color-scheme: light;
    --purple: #351064;
    --purple-deep: #20083f;
    --purple-light: #f3edfa;
    --orange: #ff8a00;
    --ink: #211a2b;
    --muted: #6d6578;
    --paper: #fff;
    --line: #e9e3ef;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #faf8fc;
    line-height: 1.6;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

.hero,
.hero-details,
.footer-links {
    display: flex;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--orange);
}

.hero {
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 28px 76px;
}

.hero-copy {
    flex: 1 1 52%;
}

.eyebrow,
.theme-label {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 620px;
    margin-bottom: 24px;
    color: var(--purple-deep);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
}

.edition {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    color: var(--paper);
    background: var(--orange);
    font-size: 0.55em;
    vertical-align: 0.18em;
}

.theme-label {
    margin-bottom: 8px;
}

.theme {
    max-width: 580px;
    margin-bottom: 28px;
    color: var(--purple);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
}

.hero-details {
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 28px;
    color: var(--muted);
    font-weight: 700;
}

.hero-details p {
    margin: 0;
}

.button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 10px;
    color: var(--paper);
    background: var(--purple);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
    background: var(--purple-deep);
    transform: translateY(-2px);
}

.poster {
    flex: 0 1 390px;
    margin: 0;
}

.poster img {
    display: block;
    width: 100%;
    height: auto;
    border: 8px solid var(--paper);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgb(32 8 63 / 18%);
}

.section {
    padding: 72px max(28px, calc((100% - 1124px) / 2));
}

.details {
    background: var(--paper);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    margin-bottom: 0;
    color: var(--purple-deep);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
}

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

.info-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.card-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 10px;
    color: var(--purple);
    background: var(--purple-light);
    font-size: 0.8rem;
    font-weight: 800;
    place-items: center;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--purple);
    font-size: 1.1rem;
}

.info-card p {
    margin-bottom: 6px;
    color: var(--muted);
}

.info-card a {
    text-decoration-color: var(--orange);
    text-underline-offset: 3px;
}

.program {
    color: var(--paper);
    background: var(--purple-deep);
}

.program .section-heading h2 {
    color: var(--paper);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

.footer-title {
    color: var(--purple);
    font-weight: 800;
}

.footer-links {
    flex-wrap: wrap;
    gap: 10px 22px;
}

@media (max-width: 760px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
        padding-top: 36px;
    }

    .poster {
        flex-basis: auto;
        width: min(100%, 430px);
        margin: 0 auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .hero,
    .section {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hero {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .site-footer {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

.attendance-note {
    margin-bottom: 20px;
    color: var(--purple);
    font-weight: 700;
}

.schedule-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    max-width: 920px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.schedule-item {
    display: grid;
    grid-template-columns: minmax(120px, 160px) 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.schedule-item time {
    color: #ffb24d;
    font-weight: 700;
}

.registration {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 44px;
}

.registration-copy h2,
.admin-heading h1,
.login-card h1 {
    margin-bottom: 16px;
    color: var(--purple-deep);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.12;
}

.registration-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.registration-form,
.admin-card,
.confirmation-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 12px 38px rgb(32 8 63 / 7%);
}

.form-field {
    min-width: 0;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.form-field > label,
.form-field legend {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input:not([type="radio"]),
.form-field select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #d6cedf;
    border-radius: 9px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--purple);
    outline: 3px solid rgb(53 16 100 / 14%);
}

.form-field[hidden] {
    display: none;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.choice-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.choice-option input {
    accent-color: var(--purple);
}

.privacy-note,
.download-hint,
.table-caption {
    color: var(--muted);
    font-size: 0.85rem;
}

.form-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.form-errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #d89d9d;
    border-radius: 9px;
    color: #702424;
    background: #fff3f3;
}

.form-errors h3 {
    margin-bottom: 6px;
    color: inherit;
    font-size: 1rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.ticket-confirmation {
    display: grid;
    min-height: 62vh;
    padding: 48px 20px;
    place-items: center;
}

.confirmation-card {
    width: min(100%, 560px);
    padding: 36px;
    text-align: center;
}

.confirmation-card h1 {
    margin-bottom: 14px;
    color: var(--purple-deep);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.success-mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #12663d;
    background: #e5f7ed;
    font-size: 1.8rem;
    font-weight: 800;
    place-items: center;
}

.ticket-code {
    display: grid;
    gap: 6px;
    margin: 24px 0;
    padding: 18px;
    border: 1px dashed #bba8d1;
    border-radius: 12px;
    background: var(--purple-light);
}

.ticket-code span {
    color: var(--muted);
    font-size: 0.85rem;
}

.ticket-code strong {
    color: var(--purple-deep);
    font-family: Consolas, monospace;
    font-size: clamp(1.05rem, 4vw, 1.55rem);
    letter-spacing: 0.05em;
    overflow-wrap: anywhere;
}

.confirmation-card .download-hint {
    margin: 14px 0 22px;
}

.text-link {
    display: inline-block;
    color: var(--purple);
    font-weight: 700;
    text-underline-offset: 3px;
}

.admin-header form {
    margin: 0;
}

.admin-header-actions,
.admin-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.button-small {
    padding: 10px 16px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button-secondary {
    flex: 0 0 auto;
    border: 1px solid var(--purple);
    color: var(--purple);
    background: var(--paper);
}

.button-secondary:hover {
    color: var(--paper);
}

.admin-page {
    display: grid;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 28px 64px;
}

.admin-heading,
.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-heading h1 {
    margin-bottom: 8px;
}

.admin-heading > div > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--paper);
}

.stat-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.stat-card strong {
    color: var(--purple);
    font-size: 2rem;
    line-height: 1;
}

.admin-card {
    min-width: 0;
}

.admin-section-heading {
    margin-bottom: 20px;
}

.admin-section-heading h2 {
    margin: 0;
    color: var(--purple-deep);
    font-size: 1.55rem;
}

.admin-section-heading .eyebrow {
    margin-bottom: 6px;
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

.verifier-form {
    max-width: 560px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
}

.ticket-scanner-video {
    display: block;
    width: min(100%, 560px);
    aspect-ratio: 4 / 3;
    margin: 0 0 16px;
    border-radius: 14px;
    background: #180d24;
    object-fit: cover;
}

.ticket-scanner-video[hidden] {
    display: none;
}

.scanner-status {
    margin: 0 0 12px;
    color: var(--muted);
}

.verification-result {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 10px;
}

.verification-result p {
    margin: 8px 0 0;
}

.verification-result-success,
.verification-badge-verified {
    color: #12663d;
    background: #eaf7ef;
}

.verification-result-warning {
    color: #744f17;
    background: #fff6e8;
}

.verification-result-error {
    color: #702424;
    background: #fff3f3;
}

.verification-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    color: #744f17;
    background: #fff6e8;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.verification-badge-verified {
    color: #12663d;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-wrap th,
.table-wrap td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table-wrap th {
    color: var(--purple);
    background: #faf8fc;
    font-size: 0.85rem;
    white-space: nowrap;
}

.table-wrap td {
    font-size: 0.9rem;
}

.table-wrap a {
    overflow-wrap: anywhere;
}

.login-page {
    min-height: 70vh;
    place-items: center;
}

.login-card {
    width: min(100%, 480px);
}

.login-card h1 {
    font-size: 2rem;
}

@media (max-width: 900px) {
    .registration {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .schedule-list {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        grid-template-columns: 120px 1fr;
        gap: 10px;
    }

    .registration-form,
    .admin-card,
    .confirmation-card {
        padding: 22px 18px;
    }

    .admin-page {
        padding: 26px 16px 48px;
    }

    .admin-heading,
    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-heading-actions {
        justify-content: flex-start;
    }

    .admin-header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

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

    .table-wrap th,
    .table-wrap td {
        padding: 10px;
    }
}

.hero-home {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: none;
    min-height: 590px;
    padding: 72px max(28px, calc((100% - 1124px) / 2));
    background: linear-gradient(112deg, #20083f 0%, #30104f 100%);
}

.hero-home .hero-copy {
    position: relative;
    z-index: 1;
    flex-basis: 58%;
    min-width: 0;
}

.hero-home h1 {
    margin-bottom: 20px;
    color: var(--paper);
    font-size: clamp(3.2rem, 7vw, 6rem);
}

.hero-home .edition {
    color: var(--purple-deep);
    background: #ffb24d;
}

.hero-home .eyebrow {
    color: #ffc16b;
}

.hero-home .theme {
    max-width: 610px;
    color: #f0e9f7;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 500;
}

.hero-facts + .button {
    white-space: nowrap;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-facts span {
    padding: 8px 12px;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 999px;
    color: #fff;
    background: rgb(255 255 255 / 8%);
    font-size: 0.88rem;
    font-weight: 700;
}

.button-hero {
    color: var(--purple-deep);
    background: #ffb24d;
}

.button-hero:hover {
    color: var(--purple-deep);
    background: #ffc16b;
}

.hero-caption {
    margin: 13px 0 0;
    color: #d7c9e6;
    font-size: 0.86rem;
}

.hero-home .poster {
    position: relative;
    z-index: 1;
    flex: 0 1 345px;
    min-width: 0;
}

.hero-home .poster img {
    max-height: 450px;
    object-fit: cover;
}

.poster figcaption {
    margin-top: 12px;
    color: #e8ddf1;
    font-size: 0.88rem;
    text-align: center;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading > p:last-child {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--muted);
}

.info-grid {
    margin-bottom: 34px;
}

.info-card {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgb(32 8 63 / 7%);
}

.event-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
    border-radius: 14px;
    background: #faf8fc;
}

.event-strip div {
    display: grid;
    gap: 3px;
}

.strip-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-strip strong {
    color: var(--purple-deep);
}

.program-cta {
    margin-top: 28px;
}

.membership-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--paper);
    background: var(--purple);
}

.membership-copy {
    max-width: 680px;
}

.membership-copy .eyebrow {
    color: #ffc16b;
}

.membership-copy h2,
.final-cta h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.membership-copy > p:last-child {
    margin-bottom: 0;
    color: #e1d5ed;
}

.membership-actions {
    display: grid;
    flex: 0 0 auto;
    justify-items: start;
    gap: 14px;
}

.button-light {
    color: var(--purple-deep);
    background: #ffb24d;
}

.button-light:hover {
    color: var(--purple-deep);
    background: #ffc16b;
}

.membership-secondary {
    color: #fff;
    font-size: 0.9rem;
    text-underline-offset: 3px;
}

.final-cta {
    padding: 72px 24px;
    color: var(--paper);
    background: var(--purple-deep);
    text-align: center;
}

.final-cta .eyebrow {
    color: #ffc16b;
}

.final-cta h2 {
    max-width: 660px;
    margin: 0 auto 24px;
}

.registration-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 28px 76px;
}

.registration-page-heading {
    max-width: 670px;
    margin: 0 auto 34px;
    text-align: center;
}

.registration-page-heading h1 {
    margin: 8px 0 12px;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.registration-page-heading > p:not(.eyebrow) {
    color: var(--muted);
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--purple);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.step-indicator span {
    width: 34px;
    height: 4px;
    border-radius: 99px;
    background: #e7e0ed;
}

.step-indicator .step-indicator-active {
    background: var(--orange);
}

.step-indicator strong {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.registration-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 28px;
}

.registration-aside {
    display: grid;
    gap: 16px;
}

.aside-event-card,
.aside-help-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.aside-event-card {
    color: #fff;
    background: var(--purple-deep);
}

.aside-event-card .eyebrow {
    color: #ffc16b;
}

.aside-event-card h2 {
    margin-bottom: 16px;
    font-size: 1.45rem;
}

.aside-event-card p:not(.eyebrow) {
    margin-bottom: 7px;
    color: #e6daef;
}

.free-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--purple-deep);
    background: #ffb24d;
    font-size: 0.8rem;
    font-weight: 800;
}

.aside-help-card h3 {
    margin-bottom: 8px;
    color: var(--purple-deep);
    font-size: 1.05rem;
}

.aside-help-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.aside-help-card p + p {
    margin-top: 8px;
}

.membership-hint {
    background: #f3edfa;
}

.membership-hint .eyebrow {
    margin-bottom: 6px;
}

.membership-hint .text-link {
    margin-top: 12px;
    font-size: 0.88rem;
}

.registration-form-page {
    padding: 30px;
}

.form-intro {
    margin-bottom: 24px;
}

.form-intro h2 {
    margin-bottom: 4px;
    color: var(--purple-deep);
    font-size: 1.5rem;
}

.form-intro p,
.field-help {
    color: var(--muted);
    font-size: 0.85rem;
}

.form-intro p {
    margin: 0;
}

.form-field > label span,
.form-field legend span,
.form-intro p span {
    color: #a73434;
}

.form-field > label .optional-label {
    color: var(--muted);
    font-weight: 400;
}

.form-field legend {
    padding: 0;
}

.choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-option {
    position: relative;
    min-height: 66px;
    border-color: #dcd3e6;
    background: #fff;
}

.choice-option:has(input:checked) {
    border-color: var(--purple);
    background: #f7f2fb;
}

.choice-option input {
    flex: 0 0 auto;
}

.choice-option strong,
.choice-option small {
    display: block;
}

.choice-option small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.75rem;
}

.choice-icon {
    font-size: 1.25rem;
}

.choice-row-compact {
    display: flex;
}

.choice-option-compact {
    min-height: 44px;
    font-size: 0.88rem;
}

.field-help {
    display: block;
    margin: 7px 0 0;
}

.privacy-note {
    margin: 4px 0 18px;
    padding: 12px 14px;
    border-radius: 9px;
    color: var(--muted);
    background: #faf8fc;
    font-size: 0.82rem;
}

.form-footnote {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.confirmation-card-ticket {
    width: min(100%, 620px);
}

.ticket-preview {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 24px auto 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #faf8fc;
}

.ticket-preview img {
    display: block;
    width: min(190px, 100%);
    height: auto;
    image-rendering: pixelated;
}

.ticket-preview span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.email-notice {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 9px;
    color: #744f17;
    background: #fff6e8;
    font-size: 0.88rem;
}

.email-notice-success {
    color: #12663d;
    background: #eaf7ef;
}

.confirmation-membership {
    margin: 22px 0;
    padding: 18px;
    border-radius: 12px;
    background: var(--purple-light);
}

.confirmation-membership p {
    margin-bottom: 7px;
    color: var(--purple-deep);
}

.admin-notice {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid #e8d7b7;
    border-radius: 10px;
    color: #744f17;
    background: #fff8eb;
}

.admin-notice-success {
    border-color: #b6dfc7;
    color: #12663d;
    background: #eaf7ef;
}

.admin-notice-error {
    border-color: #e6c1c1;
    color: #702424;
    background: #fff3f3;
}

.email-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    color: #745a27;
    background: #fff4d8;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.email-status-sent {
    color: #12663d;
    background: #e5f7ed;
}

.email-status-failed {
    color: #702424;
    background: #fff0f0;
}

.resend-form {
    margin-top: 7px;
}

.text-button {
    padding: 0;
    border: 0;
    color: var(--purple);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-button:hover {
    color: var(--orange);
}

@media (max-width: 900px) {
    .hero-home {
        min-height: 0;
        gap: 36px;
    }

    .hero-home .poster {
        flex-basis: 290px;
    }

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

    .registration-layout {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 18px;
    }

    .registration-form-page {
        padding: 24px 20px;
    }
}

@media (max-width: 1000px) {
    .hero-home {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-home .poster {
        flex-basis: auto;
        width: min(100%, 360px);
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .hero-home {
        flex-direction: column;
        align-items: stretch;
        padding-top: 48px;
        padding-bottom: 54px;
    }

    .hero-home .poster {
        flex-basis: auto;
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .membership-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .registration-layout {
        display: flex;
        flex-direction: column;
    }

    .registration-form-page {
        order: -1;
    }

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

    .aside-event-card {
        grid-row: span 2;
    }
}

@media (max-width: 520px) {
    .hero-home {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hero-home h1 {
        font-size: clamp(3rem, 14vw, 4.3rem);
    }

    .hero-facts {
        gap: 7px;
    }

    .hero-facts span {
        font-size: 0.78rem;
    }

    .event-strip {
        grid-template-columns: 1fr 1fr;
        gap: 18px 12px;
        padding: 18px;
    }

    .registration-page {
        padding: 24px 16px 52px;
    }

    .registration-aside {
        grid-template-columns: 1fr;
    }

    .aside-event-card {
        grid-row: auto;
    }

    .registration-form-page {
        padding: 22px 17px;
    }

    .choice-row {
        grid-template-columns: 1fr;
    }

    .choice-row-compact {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .choice-option-compact {
        padding: 8px;
        font-size: 0.8rem;
    }

    .step-indicator {
        flex-wrap: wrap;
    }
}

html {
    scroll-padding-top: 84px;
}

.pmi-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.pmi-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 28px;
}

.pmi-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.pmi-logo img {
    display: block;
    height: 46px;
    width: auto;
}

.pmi-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.pmi-nav-link {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.pmi-nav-link:hover,
.pmi-nav-link:focus-visible {
    border-bottom-color: var(--orange);
    color: var(--purple);
}

.pmi-nav-cta {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    color: var(--paper);
    background: var(--purple);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease;
}

.pmi-nav-cta:hover,
.pmi-nav-cta:focus-visible {
    background: var(--purple-deep);
}

.pmi-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.pmi-menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--purple);
}

.hero-logo {
    display: inline-block;
    margin: 0 0 22px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--paper);
}

.hero-logo img {
    display: block;
    width: auto;
    height: 56px;
}

@media (max-width: 900px) {
    .pmi-menu-toggle {
        display: flex;
    }

    .pmi-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 28px 20px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 16px 30px rgb(32 8 63 / 8%);
    }

    .pmi-nav.is-open {
        display: flex;
    }

    .pmi-nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .pmi-nav-cta {
        margin-top: 16px;
        text-align: center;
    }
}

@media (max-width: 460px) {
    .pmi-header-inner {
        padding: 10px 20px;
    }

    .pmi-logo img {
        height: 38px;
    }

    .pmi-nav {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 1000px) {
    .hero-home {
        flex-direction: row;
        align-items: center;
        gap: 28px;
    }

    .hero-home .hero-copy {
        flex: 1 1 0;
    }

    .hero-home .poster {
        flex: 0 0 300px;
        width: auto;
        margin: 0;
    }
}

@media (max-width: 700px) {
    .hero-home {
        gap: 14px;
        min-height: 0;
        padding: 36px 16px 40px;
    }

    .hero-home .poster {
        flex: 0 0 34%;
    }

    .hero-home .poster img {
        max-height: none;
        border-width: 3px;
        border-radius: 10px;
    }

    .hero-home .poster figcaption {
        font-size: 0.7rem;
    }

    .hero-home h1 {
        margin-bottom: 12px;
        font-size: clamp(1.8rem, 9vw, 3rem);
    }

    .hero-home .theme {
        margin-bottom: 14px;
        font-size: 0.85rem;
    }

    .hero-facts {
        gap: 6px;
        margin-bottom: 16px;
    }

    .hero-facts span {
        padding: 5px 8px;
        font-size: 0.68rem;
    }

    .hero-logo {
        margin-bottom: 14px;
        padding: 6px 10px;
    }

    .hero-logo img {
        height: 34px;
    }

    .hero-home .button-hero {
        padding: 11px 14px;
        font-size: 0.85rem;
        white-space: normal;
    }

    .hero-caption {
        font-size: 0.72rem;
    }
}
