/**
 * Fixed public landing page for ticketed events (/e/{slug} when
 * Event::isTicketed(), and its host-only preview). Every ticketed event
 * shares this one layout — there is no per-event theme to pick, unlike the
 * invitation-template system events-invitation.css serves.
 *
 * Structure mirrors the reference mock (preview.html): a full hero with the
 * title/meta overlaid on the cover image, then a two-column layout (About /
 * Tickets / Location on the left, a sticky buy-box on the right). Card
 * chrome and buyer-facing text (.tkc-card, .tkc-type-*, .tkc-muted) are
 * reused from ticket-checkout.css, loaded alongside — this file only carries
 * the hero overlay and the grid, which nothing else on the site needs.
 */

.tev-wrap {
    width: min(1100px, 88%);
    margin: 0 auto;
    padding: 45px 0 72px;
}

/* .tkc-card caps at 720px for the checkout flow's single-column pages —
   irrelevant here since the grid columns are already narrower, but pinned
   to be safe if .tev-wrap's max-width ever changes. */
.tev-main .tkc-card,
.tev-side .tkc-card {
    max-width: none;
}

/* Full-bleed hero — edge to edge like preview.html, content aligned to the
   same inner width as the cards below. */
.tev-hero {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.tev-hero--fallback {
    background: var(--hero-gradient);
}

.tev-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tev-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.55));
}

.tev-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1100px, 88%);
    margin: 0 auto;
    padding: 48px 0;
}

.tev-hero-content {
    color: var(--white, #fff);
    max-width: 800px;
}

.tev-hero-type {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tev-hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    margin: 0;
}

.tev-hero-lead {
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.5;
    color: #e5e7eb;
}

.tev-hero-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0;
    margin: 25px 0 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
}

.tev-hero-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tev-hero-meta i {
    color: var(--cyan, #00cec9);
}

/* ── Two-column layout: main cards + sticky buy-box ── */
.tev-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: start;
}

.tev-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.tev-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Buy box + Contact & Help are taller than a short screen, and a sticky column that outgrows
   the viewport hides its bottom card. Only stick when there is room for both. */
@media (min-width: 861px) and (min-height: 1000px) {
    .tev-side {
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 860px) {
    .tev-layout {
        grid-template-columns: 1fr;
    }

    .tev-side {
        position: static;
    }
}

.tev-section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy, #0d0d2b);
    margin: 0 0 14px;
}

.tev-ticket-list {
    display: flex;
    flex-direction: column;
}

.tev-ticket-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line, #e0e0e8);
}

.tev-ticket-row:last-child {
    border-bottom: none;
}

.tev-ticket-row.is-disabled {
    opacity: 0.55;
}

.tev-calendar-actions {
    margin-top: 16px;
}

.tev-calendar-actions-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-mid, #8e8ea8);
    margin: 0 0 8px;
}

.tev-calendar-actions-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.tev-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--line, #e0e0e8);
    border-radius: var(--radius-sm, 6px);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy, #0d0d2b);
    text-decoration: none;
    background: var(--white, #fff);
}

.tev-calendar-btn:hover {
    border-color: var(--accent, #1e47bb);
    color: var(--accent, #1e47bb);
}

/* ── Sticky buy-box (aside) ── */
.tev-price-hint {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy, #0d0d2b);
    margin: 0 0 10px;
}

.tev-buy-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(30, 71, 187, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tev-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 71, 187, 0.3);
}

.tev-buy-btn:focus-visible,
.tev-share-btn:focus-visible {
    outline: 3px solid rgba(30, 71, 187, 0.35);
    outline-offset: 2px;
}

.tev-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-mid, #8e8ea8);
}

.tev-secure-note i {
    font-size: 11px;
    color: var(--green, #27ae60);
}

/* Share: the public ticket page does not load events-admin.css, so .evt-btn-outline is
   unstyled here. These buttons carry their own look. */
.tev-share {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line, #e0e0e8);
}

.tev-share-label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-mid, #8e8ea8);
}

.tev-share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tev-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line, #e0e0e8);
    border-radius: 10px;
    background: var(--white, #fff);
    color: var(--navy, #0d0d2b);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.tev-share-btn i {
    font-size: 15px;
    color: var(--accent, #1e47bb);
}

.tev-share-btn:hover {
    border-color: var(--accent, #1e47bb);
    background: rgba(30, 71, 187, 0.06);
    color: var(--accent, #1e47bb);
}

.tev-share-btn--whatsapp i {
    color: #25d366;
}

.tev-share-btn--whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    color: #128c7e;
}

@media (max-width: 540px) {
    .tev-hero {
        min-height: 320px;
    }

    .tev-hero-inner {
        padding: 32px 0;
    }

    .tev-wrap {
        padding: 28px 0 48px;
    }
}

.tev-wrap {
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Contact & Help card — organizer (when the host shows their details) beside platform support. */
.tev-contact-lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-mid, #8e8ea8);
}

.tev-contact-lead strong {
    display: block;
    margin-bottom: 2px;
    color: var(--navy, #0d0d2b);
}

.tev-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.tev-contact-block {
    padding: 16px;
    border: 1px solid var(--line, #e0e0e8);
    border-radius: var(--radius-sm, 6px);
    background: var(--white, #fff);
    min-width: 0;
}

.tev-contact-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-mid, #8e8ea8);
}

.tev-contact-name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy, #0d0d2b);
}

.tev-contact-note {
    margin: 2px 0 12px;
    font-size: 13px;
    color: var(--gray-mid, #8e8ea8);
}

.tev-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tev-contact-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    min-width: 0;
}

.tev-contact-list i {
    flex: none;
    width: 16px;
    color: var(--accent, #1e47bb);
}

.tev-contact-list a {
    color: var(--navy, #0d0d2b);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.tev-contact-list a:hover {
    color: var(--accent, #1e47bb);
    text-decoration: underline;
}
