/*
 * Ticketed event pages (/e/).
 *
 * Builds on the site design tokens in style.css (--color-teal, --color-paper,
 * --font-heading and so on) rather than restating them, so a change to the
 * palette carries through here automatically. The fallbacks in each var() keep
 * these pages readable even if style.css fails to load.
 */

.evt-section { padding: 150px 0 72px; }   /* 150px top clears the fixed site header, matching .page-section */
.evt-narrow  { max-width: 720px; }

.evt-kicker {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-gold, #a3854f);
    margin: 0 0 8px;
}

.evt-title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.15;
    color: var(--color-ink, #1a1a1a);
    margin: 0 0 10px;
}

.evt-subtitle {
    font-family: var(--font-accent, Georgia, serif);
    font-style: italic;
    font-size: 18px;
    color: var(--color-body-muted, #5a564e);
    margin: 0 0 24px;
}

.evt-h2 {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 22px;
    color: var(--color-ink, #1a1a1a);
    margin: 32px 0 12px;
}

.evt-flyer {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--color-line, #e5e0d8);
    margin: 0 0 24px;
}

.evt-body   { line-height: 1.7; margin: 0 0 24px; }
.evt-venue  { line-height: 1.6; margin: 0 0 24px; }
.evt-muted  { color: var(--color-body-muted, #5a564e); }
.evt-opt    { color: var(--color-body-muted, #5a564e); font-weight: normal; font-size: 13px; }

/* ---- Cards ---- */

.evt-card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-line, #e5e0d8);
    border-radius: 8px;
    padding: 20px 22px;
    margin: 0 0 24px;
}
.evt-card p { margin: 0 0 8px; }
.evt-card p:last-child { margin-bottom: 0; }

.evt-card-success { border-left: 4px solid var(--color-teal, #0e5f4e); }
.evt-card-muted   { background: var(--color-paper, #faf8f5); color: var(--color-body-muted, #5a564e); }

.evt-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-body-muted, #5a564e);
    margin: 0 0 2px !important;
}

.evt-ref {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-teal, #0e5f4e);
    margin: 0 0 6px !important;
}

.evt-meta { font-size: 14px; color: var(--color-body-muted, #5a564e); }

/* ---- Detail list ---- */

.evt-details { margin: 0 0 24px; }
.evt-details dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-body-muted, #5a564e);
    margin-top: 14px;
}
.evt-details dd { margin: 2px 0 0; line-height: 1.6; }

/* ---- Alerts ---- */

.evt-alert {
    background: #fdf3f2;
    border: 1px solid #e8c4c0;
    border-left: 4px solid #b3261e;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 24px;
}
.evt-alert ul { margin: 0; padding-left: 18px; }
.evt-alert li + li { margin-top: 6px; }
.evt-alert p { margin: 0; }

.evt-warn {
    background: #fff8e6;
    border: 1px solid #e8dcb0;
    border-left: 4px solid var(--color-gold, #a3854f);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 20px;
    font-size: 14px;
}

/* ---- Ticket type chooser ---- */

.evt-fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.evt-fieldset legend {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 18px;
    margin: 0 0 10px;
    padding: 0;
}

.evt-ticket {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-line, #e5e0d8);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0 0 10px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.evt-ticket:hover { border-color: var(--color-teal, #0e5f4e); }
.evt-ticket:focus-within { box-shadow: 0 0 0 3px rgba(14, 95, 78, .18); }
.evt-ticket input { margin-top: 4px; flex: 0 0 auto; }

/* Selected state, driven by :has() where supported and by JS elsewhere. */
.evt-ticket:has(input:checked),
.evt-ticket.is-selected {
    border-color: var(--color-teal, #0e5f4e);
    background: #f4f9f7;
}

.evt-ticket.is-disabled { opacity: .55; cursor: not-allowed; }

.evt-ticket-main  { flex: 1 1 auto; display: block; }
.evt-ticket-name  { display: block; font-weight: 600; }
.evt-ticket-desc  { display: block; font-size: 14px; color: var(--color-body-muted, #5a564e); margin-top: 2px; }
.evt-ticket-meta  { display: block; font-size: 13px; color: var(--color-body-muted, #5a564e); margin-top: 4px; }
.evt-ticket-price {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--color-teal, #0e5f4e);
    white-space: nowrap;
}

/* ---- Form ---- */

.evt-form { margin: 0 0 24px; }

.evt-form label {
    display: block;
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink, #1a1a1a);
}

.evt-form input[type="text"],
.evt-form input[type="email"],
.evt-form input[type="tel"],
.evt-form input[type="number"],
.evt-form select,
.evt-form textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 13px;
    font: inherit;
    font-weight: 400;
    color: var(--color-ink, #1a1a1a);
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-line, #e5e0d8);
    border-radius: 6px;
}
.evt-form input:focus,
.evt-form select:focus,
.evt-form textarea:focus {
    outline: none;
    border-color: var(--color-teal, #0e5f4e);
    box-shadow: 0 0 0 3px rgba(14, 95, 78, .15);
}

.evt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .evt-grid-2 { grid-template-columns: 1fr; } }

.evt-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.5;
    margin: 0 0 12px !important;
}
.evt-check input { flex: 0 0 auto; margin-top: 3px; }
.evt-check a { color: var(--color-teal, #0e5f4e); }

.evt-question { margin: 0; }
.evt-question[hidden] { display: none; }
.evt-help { font-size: 13px; color: var(--color-body-muted, #5a564e); margin: -8px 0 14px; }

.evt-submit { margin-top: 10px; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.evt-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Actions and fine print ---- */

.evt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }

.evt-fineprint {
    font-size: 14px;
    color: var(--color-body-muted, #5a564e);
    line-height: 1.6;
    margin: 20px 0 0;
}
.evt-fineprint a { color: var(--color-teal, #0e5f4e); }

/* ---- Attendee list ---- */

.evt-names {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    columns: 2;
    column-gap: 28px;
}
.evt-names li {
    padding: 7px 0;
    border-bottom: 1px solid var(--color-line, #e5e0d8);
    break-inside: avoid;
}
@media (max-width: 560px) { .evt-names { columns: 1; } }

/* ---- Gallery -------------------------------------------------------
   Masonry-ish grid via CSS columns, which needs no JS and reflows well on a
   phone. Images carry width/height so the page does not jump as they load. */

.gal-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    columns: 4;
    column-gap: 14px;
}
@media (max-width: 1024px) { .gal-grid { columns: 3; } }
@media (max-width: 700px)  { .gal-grid { columns: 2; } }
@media (max-width: 420px)  { .gal-grid { columns: 1; } }

.gal-item {
    break-inside: avoid;
    margin: 0 0 14px;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-line, #e5e0d8);
    border-radius: 8px;
    overflow: hidden;
}
.gal-item.is-featured { border-color: var(--color-teal, #0e5f4e); border-width: 2px; }

.gal-photo { display: block; }
.gal-photo img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity .15s ease;
}
.gal-photo:hover img { opacity: .88; }

.gal-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 160px;
    padding: 24px;
    background: var(--color-ink, #1a1a1a);
    border: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
}
.gal-play { font-size: 34px; line-height: 1; }
.gal-video-label { font-size: 13px; opacity: .8; }

.gal-cap {
    margin: 0;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-body-muted, #5a564e);
}
.gal-credit { display: block; font-size: 12px; opacity: .8; }

.gal-pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.gal-pages a, .gal-pages span {
    padding: 7px 13px;
    border: 1px solid var(--color-line, #e5e0d8);
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-teal, #0e5f4e);
}
.gal-pages .is-current { background: var(--color-teal, #0e5f4e); color: #fff; border-color: var(--color-teal, #0e5f4e); }

/* ---- Lightbox ---- */

.gal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 18, 16, .94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.gal-lightbox[hidden] { display: none; }
.gal-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.gal-lightbox img,
.gal-lightbox iframe {
    max-width: 100%;
    max-height: 78vh;
    display: block;
    margin: 0 auto;
    border: 0;
}
.gal-lightbox iframe { width: min(960px, 92vw); height: min(540px, 52vh); }
.gal-lightbox figcaption { color: #e8e4dd; font-size: 14px; margin-top: 14px; }

.gal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 8px 14px;
}

/* ---- "What you have sent", on the share page ---- */

.evt-mine { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.evt-mine-item {
    width: 130px;
    border: 1px solid var(--color-line, #e5e0d8);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface, #fff);
}
.evt-mine-item img { display: block; width: 100%; height: 90px; object-fit: cover; }
.evt-mine-video {
    display: flex; align-items: center; justify-content: center;
    height: 90px; background: var(--color-ink, #1a1a1a); color: #fff; font-size: 12px;
}
.evt-mine-status { display: block; padding: 6px 8px; font-size: 11px; text-align: center; }
.evt-status-approved { color: var(--color-teal, #0e5f4e); font-weight: 600; }
.evt-status-pending  { color: var(--color-gold, #a3854f); }
.evt-status-rejected { color: var(--color-body-muted, #5a564e); }

/* ---- Feedback form ---- */

/* Radio groups rendered as tappable rows rather than bare radios: this form is
   opened almost entirely on a phone, from an email, days after the event. */
.evt-rating {
    border: 1px solid var(--color-line, #e5e0d8);
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 20px;
    background: var(--color-surface, #fff);
}
.evt-rating legend {
    padding: 0 6px;
    font-family: var(--font-accent, Georgia, serif);
    font-size: 15px;
    color: var(--color-ink, #1a1a1a);
}
.evt-rating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}
.evt-rating-option:hover { background: var(--color-paper, #faf8f5); }
.evt-rating-option input { width: 18px; height: 18px; margin: 0; flex: none; }
