/*
 * C50N-1375 — venue FAQ block (specs/021-venue-faq/contracts/render-contract.md, FR-002, FR-006, FR-007).
 * Wide screens: dark header (the concert photo is pending from the team — a gradient stands in), a white card over
 * it, groups open, rows with a one-line teaser and a chevron. Phones: plain header with the green "FAQ" label,
 * collapsible groups on grey cards, rows with the question only.
 */
.venue-faq {
    --vf-ink: #111827;
    --vf-muted: #6b7280;
    --vf-line: #e5e7eb;
    --vf-radius: 14px;
    margin: 40px 0 20px;
    color: var(--vf-ink);
}

.venue-faq * {
    box-sizing: border-box;
}

.venue-faq__group--location-parking { --vf-accent: #e11d48; --vf-tint: #ffe4e6; }
.venue-faq__group--venue-rules { --vf-accent: #2563eb; --vf-tint: #dbeafe; }
.venue-faq__group--concerts-tickets { --vf-accent: #7c3aed; --vf-tint: #ede9fe; }
.venue-faq__group--box-office { --vf-accent: #15803d; --vf-tint: #dcfce7; }
.venue-faq__group--accessibility { --vf-accent: #ea580c; --vf-tint: #ffedd5; }

/* Header */
.venue-faq__header {
    padding: 28px 24px 120px;
    border-radius: var(--vf-radius) var(--vf-radius) 0 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.35), transparent 60%),
        linear-gradient(180deg, #0b1020 0%, #1f2937 100%);
    color: #fff;
    text-align: center;
}

.venue-faq__header h2 {
    margin: 0 0 8px;
    color: inherit;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.venue-faq__header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

/* Card */
.venue-faq__card {
    position: relative;
    margin: -96px 40px 0;
    padding: 12px 28px 24px;
    border-radius: var(--vf-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

/* Groups */
.venue-faq__group + .venue-faq__group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--vf-line);
}

/* A Bootstrap collapse toggle (data-bs-toggle). From 768 px the groups are always shown (d-md-block), so the title
   takes no clicks there — and a keyboard toggle may not animate a group that stays shown. */
.venue-faq__group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 0 12px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
}

@media (min-width: 768px) {
    .venue-faq__group-title {
        pointer-events: none;
    }

    /* site.css hides a closed collapse by height (`.collapse:not(.show)` gets height 0), which d-md-block's display
       does not undo. */
    .venue-faq__items.collapse,
    .venue-faq__items.collapsing {
        height: auto !important;
        overflow: visible;
        transition: none;
    }
}

.venue-faq__item > summary::-webkit-details-marker {
    display: none;
}

.venue-faq__icon {
    display: inline-flex;
    color: var(--vf-accent);
}

/* Question rows */
.venue-faq__item {
    margin-bottom: 8px;
    border: 1px solid var(--vf-line);
    border-radius: 10px;
    background: #fff;
}

/* A heading may not sit inside a span, so the number, the question and its teaser are the summary's own grid cells. */
.venue-faq__item > summary {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    padding: 14px 48px 14px 16px;
    list-style: none;
    cursor: pointer;
}

.venue-faq__item > summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--vf-ink);
    border-bottom: 2px solid var(--vf-ink);
    content: '';
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s ease;
}

.venue-faq__item[open] > summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.venue-faq__num {
    display: inline-flex;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vf-tint);
    color: var(--vf-accent);
    font-size: 15px;
    font-weight: 700;
}

.venue-faq__item > summary > h3 {
    grid-column: 2;
    margin: 0;
    color: var(--vf-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.venue-faq__teaser {
    display: block;
    grid-column: 2;
    overflow: hidden;
    margin-top: 2px;
    color: var(--vf-muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-faq__item[open] .venue-faq__teaser {
    display: none;
}

.venue-faq__answer {
    padding: 0 20px 16px 68px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

.venue-faq__answer p {
    margin: 0 0 10px;
}

.venue-faq__answer p:last-child {
    margin-bottom: 0;
}

.venue-faq__answer a {
    color: #2563eb;
    text-decoration: underline;
}

/* Phones */
@media (max-width: 767.98px) {
    .venue-faq__header {
        padding: 0 0 16px;
        border-radius: 0;
        background: none;
        color: var(--vf-ink);
        text-align: left;
    }

    .venue-faq__header h2 {
        font-size: 28px;
    }

    .venue-faq__header p {
        color: var(--vf-muted);
        font-size: 15px;
    }

    .venue-faq__card {
        margin: 0;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .venue-faq__group,
    .venue-faq__group + .venue-faq__group {
        margin-top: 12px;
        padding: 4px 12px 8px;
        border-top: 0;
        border-radius: var(--vf-radius);
        background: #f3f4f6;
    }

    .venue-faq__group-title {
        font-size: 18px;
        cursor: pointer;
    }

    /* The mobile design's chevron: down on a closed group, up on the open one (Bootstrap toggles `collapsed`). */
    .venue-faq__group-title::after {
        width: 9px;
        height: 9px;
        margin: 0 8px 0 auto;
        border-right: 2px solid var(--vf-ink);
        border-bottom: 2px solid var(--vf-ink);
        content: '';
        transform: translateY(25%) rotate(-135deg);
        transition: transform 0.15s ease;
    }

    .venue-faq__group-title.collapsed::after {
        transform: translateY(-25%) rotate(45deg);
    }

    .venue-faq__icon {
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--vf-tint);
    }

    .venue-faq__num {
        width: auto;
        height: auto;
        background: none;
        color: var(--vf-ink);
        font-weight: 400;
    }

    .venue-faq__num::after {
        content: '.';
    }

    .venue-faq__item > summary {
        column-gap: 12px;
        padding: 14px 40px 14px 14px;
    }

    .venue-faq__item[open] > summary {
        border-radius: 10px 10px 0 0;
        background: #eef2ff;
    }

    .venue-faq__item > summary > h3 {
        font-weight: 500;
    }

    .venue-faq__teaser {
        display: none;
    }

    .venue-faq__answer {
        padding: 12px 14px 14px;
    }
}
