/* Runde 3 – Team T2: eigene Styles (site.css gehoert T6).
   Event wizard (Create), Edit, event page (Details), event list (Index), _EventProgress.
   Uses T6 tokens/components where they exist (a4f-chip, a4f-actionbar, a4f-focus-mode) and
   brings a fallback for everything it needs, so the pages work before the T6 merge. */

/* ==========================================================================
   Focus mode fallback (wizard + edit): no bottom nav / FAB over the form.
   T6 does the same via body.a4f-focus-mode; :has() keeps it working without it.
   ========================================================================== */
body:has(.t2-wizard) .bottom-nav,
body:has(.t2-wizard) .fab,
body:has(.t2-edit) .bottom-nav,
body:has(.t2-edit) .fab {
    display: none !important;
}

/* ==========================================================================
   Wizard header: ONE counter "Schritt 2 von 5 · Wann?" + step buttons
   ========================================================================== */
.t2-wizard {
    max-width: 680px;
}

.t2-wizard .wizard-step__header {
    text-align: left;
}

.t2-wizard__counter {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--white-dim);
    text-align: center;
}

.event-wizard:not(.wizard--js) .t2-wizard__counter {
    display: none;
}

.t2-progress .t2-progress__btn {
    min-width: 44px;
    min-height: 44px;
    padding: 2px 4px;
    border-radius: var(--radius-md);
}

.t2-progress .t2-progress__btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.t2-progress__check {
    display: none;
}

.t2-progress__step.completed .t2-progress__digit {
    display: none;
}

.t2-progress__step.completed .t2-progress__check {
    display: inline;
    animation: t2-pop 0.25s ease-out;
}

.t2-progress__step.completed .wizard-progress__number {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}

@keyframes t2-pop {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.t2-wizard .wizard-step__title {
    font-size: 1.6rem;
    line-height: 1.2;
}

/* The old second counter / kicker of site.css is gone */
.t2-wizard .wizard-progress__counter,
.t2-wizard .wizard-step__kicker {
    display: none !important;
}

/* ==========================================================================
   Step 1: recently used chips, prefill note
   ========================================================================== */
.t2-recent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.t2-recent__label {
    font-size: 0.875rem;
    color: var(--white-dim);
    margin-right: 2px;
}

.t2-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--gray);
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t2-chip:hover {
    border-color: var(--accent);
}

.t2-chip[aria-pressed="true"] {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.12);
}

.t2-chip:focus-visible,
.t2-linkbtn:focus-visible,
.t2-summary__edit:focus-visible,
.t2-spin__btn:focus-visible,
.t2-more:focus-visible,
.t2-dialog__close:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.t2-prefill-note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: var(--white-dim);
}

.t2-prefill-note[hidden] {
    display: none;
}

.t2-linkbtn {
    background: none;
    border: 0;
    padding: 10px 4px;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

/* ==========================================================================
   Step 2: duplicate banner, month-full card
   ========================================================================== */
.t2-banner {
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    font-size: 0.9rem;
}

.t2-capacity-card {
    padding: 1rem;
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.08);
}

.t2-capacity-card[hidden] {
    display: none;
}

.t2-capacity-card .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   Step 3: spots stepper
   ========================================================================== */
.t2-spin {
    display: flex;
    align-items: stretch;
    gap: 8px;
    max-width: 240px;
}

.t2-spin__btn {
    flex: 0 0 48px;
    min-height: 48px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    background: var(--black);
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.t2-spin__btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.t2-spin__btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.t2-spin__input {
    text-align: center;
    font-size: 1.15rem !important;
    -moz-appearance: textfield;
}

.t2-spin__input::-webkit-outer-spin-button,
.t2-spin__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   Step 4: extras cards (switch, one line, fields open when on) - no boxes in boxes
   ========================================================================== */
.t2-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.t2-extra {
    padding: 14px 16px;
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-md);
    background: var(--black);
}

.t2-extra--on {
    border-color: var(--gray);
}

.t2-extra__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.t2-extra__switch {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    padding-left: 0;
}

.t2-extra__switch .form-check-input {
    float: none;
    margin: 0;
    flex-shrink: 0;
}

.t2-extra__switch .form-check-label {
    font-weight: 600;
    cursor: pointer;
}

.t2-extra__line {
    margin: 2px 0 0;
    font-size: 0.875rem;
    color: var(--white-dim);
}

.t2-extra__body {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--gray-dark);
}

.t2-extra__body[hidden] {
    display: none;
}

/* Responsibility notice only while "entry only with newsletter sign-up" is ticked */
.t2-extra:has(#marketingConsentRequired:not(:checked)) .t2-ack {
    display: none;
}

.t2-ack {
    padding: 10px 12px;
    border-left: 3px solid var(--warning);
    background: rgba(245, 158, 11, 0.06);
}

.t2-extra--locked {
    padding: 12px 16px;
}

.t2-chip-premium {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
    line-height: 1;
}

.t2-auto-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--gray-dark);
    color: var(--white);
    font-size: 0.75rem;
}

.t2-auto-badge[hidden] {
    display: none;
}

.t2-url {
    color: var(--accent-hover);
    background: rgba(255, 107, 0, 0.08);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    font-size: 0.85rem;
}

.t2-input-narrow {
    max-width: 280px;
}

.t2-mailstudio-line {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--white-dim);
}

.t2-mailstudio-line a {
    color: var(--white);
    text-decoration: underline;
    display: inline-block;
    padding: 10px 0;
}

.t2-mailstudio-line a:hover {
    color: var(--accent);
}

.t2-note {
    padding: 10px 12px;
    border-left: 3px solid var(--cyan);
    background: rgba(34, 211, 238, 0.06);
    font-size: 0.875rem;
    color: var(--white);
}

.t2-note--warn {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.06);
}

/* Teaser (locked function): chip, one line, ONE button */
.t2-teaser {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.t2-teaser__chip,
.t2-teaser .a4f-chip--locked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--gray);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
}

.t2-teaser__text {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.t2-teaser__title {
    font-weight: 600;
}

.t2-teaser__line {
    font-size: 0.85rem;
    color: var(--white-dim);
}

.t2-teaser__btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   Step 5: summary (one <dl> per row, buttons outside)
   ========================================================================== */
.t2-summary {
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-md);
}

.t2-summary[hidden] {
    display: none;
}

.t2-summary__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 14px;
}

.t2-summary__row + .t2-summary__row {
    border-top: 1px solid var(--gray-dark);
}

.t2-summary__dl {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.t2-summary__dl dt {
    font-size: 0.75rem;
    color: var(--white-dim);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.t2-summary__dl dd {
    margin: 0;
    word-break: break-word;
}

.t2-summary__edit {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.t2-summary__edit:hover {
    border-color: var(--gray);
}

.t2-summary__link {
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid var(--gray-dark);
    font-size: 0.875rem;
    color: var(--white-dim);
}

/* ==========================================================================
   Wizard navigation = action bar (fixed at the bottom on the phone)
   ========================================================================== */
/* The action bar is fixed (phone) or sticky (desktop) at the bottom: focused fields and
   scrollIntoView stop ABOVE it (WCAG 2.4.11 Focus not obscured, QA Q55). */
html:has(.a4f-focus-mode .a4f-actionbar) {
    scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.t2-cancel-link {
    display: inline-block;
    padding: 12px 8px;
    color: var(--white-dim);
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .t2-wizard {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .wizard--js .t2-wizard__nav,
    .t2-edit__actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        margin: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--black-light);
        border-top: 1px solid var(--gray-dark);
        display: flex;
        flex-direction: row !important;
        gap: 10px;
    }

    .wizard--js .t2-wizard__nav .wizard-nav__btn,
    .t2-edit__actions .btn {
        width: auto;
        flex: 1 1 0;
        min-height: 48px;
        margin: 0 !important;
    }

    .wizard--js .t2-wizard__nav #wizard-prev {
        flex: 0 0 auto;
    }

    .t2-edit {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .t2-wizard .wizard-step__title {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .t2-edit__actions {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        margin-top: 24px;
    }
}

/* ==========================================================================
   Status chip fallback (T6 styles a4f-chip--status-*)
   ========================================================================== */
.t2-status {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.t2-status--open { background: rgba(255, 107, 0, 0.15); color: var(--accent-hover); border-color: rgba(255, 107, 0, 0.5); }
.t2-status--draw,
.t2-status--drawn { background: rgba(34, 211, 238, 0.12); color: var(--cyan); border-color: rgba(34, 211, 238, 0.45); }
.t2-status--sent { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.45); }
.t2-status--confirmed { background: rgba(34, 197, 94, 0.14); color: #4ade80; border-color: rgba(34, 197, 94, 0.45); }
.t2-status--past,
.t2-status--archived { background: var(--gray-dark); color: var(--white); border-color: var(--gray); }

/* ==========================================================================
   _EventProgress: horizontal from 768 px, vertical on the phone
   ========================================================================== */
.evp__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.evp__step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    min-width: 0;
}

/* connector line */
.evp__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--gray-dark);
}

.evp__step--done:not(:last-child)::after {
    background: var(--accent);
}

.evp__dot {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gray);
    background: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    position: relative;
    z-index: 1;
}

.evp__step--done .evp__dot {
    background: var(--accent);
    border-color: var(--accent);
    animation: t2-pop 0.3s ease-out;
}

.evp__step--current .evp__dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.2);
}

.evp__step--current .evp__dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.evp__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-top: 3px;
}

.evp__label {
    font-weight: 600;
    font-size: 0.95rem;
}

.evp__step--upcoming .evp__label {
    color: var(--white-dim);
    font-weight: 400;
}

.evp__time {
    font-size: 0.8rem;
    color: #8a8a8a;
}

.evp__meta {
    font-size: 0.85rem;
    color: var(--white);
}

.evp__bar {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 6px;
    margin-top: 4px;
    border-radius: 3px;
    background: var(--gray-dark);
    overflow: hidden;
}

.evp__bar-fill {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

.evp__next {
    margin: 4px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 107, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .evp:not(.evp--compact) .evp__steps {
        flex-direction: row;
    }

    .evp:not(.evp--compact) .evp__step {
        flex: 1 1 0;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 12px;
        padding-right: 8px;
    }

    .evp:not(.evp--compact) .evp__step:not(:last-child)::after {
        left: 30px;
        right: 4px;
        top: 13px;
        bottom: auto;
        width: auto;
        height: 2px;
    }

    .evp:not(.evp--compact) .evp__text {
        padding-top: 0;
    }
}

/* Compact (list cards, dashboard): dots only */
.evp--compact .evp__steps {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.evp--compact .evp__step {
    padding: 0;
    flex: 0 0 auto;
}

.evp--compact .evp__step::after {
    display: none;
}

.evp--compact .evp__dot {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
    border-width: 2px;
    font-size: 0;
    animation: none;
}

.evp--compact .evp__step--current .evp__dot::after {
    width: 4px;
    height: 4px;
}

.evp--compact .evp__step--current .evp__dot {
    box-shadow: none;
}

.evp--compact .evp__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .evp__step--done .evp__dot,
    .t2-progress__step.completed .t2-progress__check {
        animation: none;
    }
}

/* ==========================================================================
   Event page (Details)
   ========================================================================== */
.t2-back {
    margin-bottom: 4px;
}

.t2-back a {
    display: inline-block;
    padding: 10px 0;
    color: var(--white-dim);
    font-size: 0.875rem;
}

.t2-details-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.t2-chip-mode {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent-hover);
    font-size: 0.75rem;
}

.t2-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.t2-actions .btn,
.t2-more {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.t2-more {
    min-width: 44px;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    border: 1px solid var(--gray-dark);
}

.t2-menu .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.t2-menu form {
    margin: 0;
}

.t2-menu__danger {
    color: #f87171 !important;
}

.t2-card {
    padding: 18px 20px;
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-lg);
    background: var(--black-lighter);
}

.t2-card__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.t2-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.t2-link-card--primary {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.25), var(--shadow-glow);
}

.t2-link-card__url {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 1rem;
    word-break: break-all;
}

.t2-link-card--secondary .t2-link-card__url {
    font-size: 0.875rem;
}

.t2-url-link {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--gray-light);
}

.t2-url-link:hover {
    color: var(--accent);
}

.t2-link-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t2-link-card__actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 575.98px) {
    .t2-link-card__actions .btn-primary {
        flex: 1 1 100%;
        justify-content: center;
    }

    .t2-link-card__actions .btn:not(.btn-primary) {
        flex: 1 1 0;
        justify-content: center;
    }
}

.t2-history__summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
    color: var(--white-dim);
    font-size: 0.9rem;
}

.t2-history__summary:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.t2-history .activity-log {
    border-left: 2px solid var(--gray-dark);
    margin: 8px 0 0 8px;
}

.t2-history .activity-log__item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0 0.5rem 1rem;
}

.t2-history .activity-log__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t2-history .activity-log__text {
    font-size: 0.875rem;
}

.t2-history .activity-log__time {
    font-size: 0.75rem;
    color: #8a8a8a;
}

/* Native dialog (archive / delete) */
.t2-dialog {
    width: min(480px, calc(100vw - 32px));
    max-height: 90vh;
    padding: 0;
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-lg);
    background: var(--black-lighter);
    color: var(--white);
}

.t2-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.t2-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 8px 8px 20px;
    border-bottom: 1px solid var(--gray-dark);
}

.t2-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.t2-dialog__close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.t2-dialog__close:hover {
    background: var(--gray-dark);
}

.t2-dialog__body {
    padding: 16px 20px 20px;
}

.t2-dialog__option {
    padding: 14px 0;
}

.t2-dialog__option + .t2-dialog__option {
    border-top: 1px solid var(--gray-dark);
}

.t2-dialog__option-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.t2-dialog .btn {
    min-height: 44px;
}

.t2-recommended {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.t2-text-danger {
    color: #f87171;
}

/* Delete is never full width / red-filled (UX principle 2) */
.t2-btn-danger {
    width: auto;
}

/* ==========================================================================
   Event list (Index)
   ========================================================================== */
.t2-limit-line {
    font-size: 0.875rem;
    color: var(--white-dim);
}

.t2-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.t2-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gray-dark);
    font-size: 0.75rem;
}

.t2-section__summary {
    min-height: 44px;
    cursor: pointer;
    list-style: none;
}

.t2-section__summary::-webkit-details-marker {
    display: none;
}

.t2-section__summary::before {
    content: '+';
    color: var(--accent);
    font-size: 1.2rem;
    width: 16px;
}

.t2-section--past[open] > .t2-section__summary::before {
    content: '\2212';
}

.t2-section__summary:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.t2-section__empty {
    padding: 16px;
    border: 1px dashed var(--gray);
    border-radius: var(--radius-md);
    color: var(--white-dim);
}

.t2-event-card {
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    border-radius: var(--radius-md);
}

.t2-event-card:hover {
    border-color: var(--accent);
}

.t2-event-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.t2-event-card__menu {
    position: relative;
    z-index: 2;
}

.t2-event-card__title {
    margin: 4px 0 0;
    font-size: 1.25rem;
}

/* The whole card opens the event page */
.t2-stretched {
    color: inherit;
    text-decoration: none;
}

.t2-stretched::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.t2-stretched:focus-visible {
    outline: none;
}

.t2-stretched:focus-visible::after {
    outline: 2px solid var(--white);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}

.t2-event-card__meta,
.t2-event-card__spots {
    margin: 0;
    font-size: 0.875rem;
    color: var(--white-dim);
}

.t2-event-card__spots {
    color: var(--white);
}

.t2-event-card .evp {
    margin-top: 4px;
}

.t2-event-card__actions {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    gap: 8px;
}

.t2-share {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.t2-archive-link a {
    display: inline-block;
    padding: 12px 0;
    color: var(--white-dim);
    text-decoration: underline;
}

.t2-toolbar {
    flex-wrap: wrap;
}

.t2-empty-state .empty-state__title {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Form uses the full card width in the wizard (title and hint are left-aligned) */
.t2-wizard .wizard-step__form,
.t2-wizard .wizard-step__form--wide {
    max-width: none;
}

/* site.css styles .copy-link-btn as a ghost button - on the link card it is THE primary action */
.t2-link-card .btn-primary.copy-link-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}

.t2-link-card .btn-primary.copy-link-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
