/* ============================================================
   MPH FAQs Page (Phase 6)
   Layered on top of mph-events.css tokens + mph-contact.css (media bg).
   ============================================================ */

.mph-faqs-page { background: var(--mph-paper); }

.mph-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ============================================================
   HERO
   ============================================================ */

.mph-faqs-hero {
    position: relative;
    min-height: 480px;
    background:
        radial-gradient(ellipse 60% 60% at 30% 60%, rgba(201, 152, 80, .28) 0%, transparent 60%),
        linear-gradient(180deg, #1f1611 0%, #17100c 100%);
    color: var(--mph-cream);
    overflow: hidden;
}
.mph-faqs-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 22% 28%, rgba(201, 152, 80, .35) 0, transparent 40%),
        radial-gradient(1px 1px at 78% 62%, rgba(244, 236, 224, .16) 0, transparent 40%);
    pointer-events: none;
}
.mph-faqs-hero-inner {
    padding-top: 88px; padding-bottom: 72px;
    max-width: 900px;
    position: relative; z-index: 2;
}
.mph-faqs-hero-kicker {
    color: var(--mph-gold) !important;
    letter-spacing: .28em; font-size: 11px; margin-bottom: 20px;
}
.mph-faqs-hero-h1 {
    font-family: var(--mph-serif);
    font-size: 52px; line-height: 1.1;
    color: #FFFFFF !important;
    font-weight: 400; font-style: italic;
    letter-spacing: .005em; margin: 0;
}
.mph-faqs-hero-lede {
    margin-top: 18px; font-size: 16px; line-height: 1.65;
    color: #d9cdb8; max-width: 56ch;
}

/* Search input */
.mph-faqs-search {
    margin-top: 24px;
    max-width: 560px;
    position: relative;
    display: flex;
    align-items: center;
}
.mph-faqs-search input[type="search"] {
    flex: 1;
    background: rgba(244, 236, 224, .1);
    border: 1px solid rgba(201, 152, 80, .4);
    color: var(--mph-cream);
    padding: 14px 44px 14px 18px;
    border-radius: 2px;
    font-family: var(--mph-sans);
    font-size: 15px;
    min-height: 48px;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.mph-faqs-search input[type="search"]::placeholder { color: #a99e8c; }
.mph-faqs-search input[type="search"]:focus {
    outline: none;
    border-color: var(--mph-gold);
    background: rgba(244, 236, 224, .14);
    box-shadow: 0 0 0 3px rgba(201, 152, 80, .22);
}
.mph-faqs-search-clear {
    position: absolute; right: 8px;
    width: 32px; height: 32px;
    background: transparent; border: none;
    color: var(--mph-cream);
    font-size: 22px; line-height: 1;
    cursor: pointer;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.mph-faqs-search-clear:hover { background: rgba(244, 236, 224, .12); }
.mph-faqs-search-clear:focus-visible {
    outline: 2px solid var(--mph-gold);
    outline-offset: 2px;
}

/* Jump chips (below search) */
.mph-faqs-jump {
    margin-top: 22px;
    display: flex; gap: 8px;
    flex-wrap: wrap; align-items: center;
}
.mph-faqs-jump-lb {
    font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--mph-gold); font-weight: 600; margin-right: 6px;
}
.mph-faqs-jump a {
    padding: 6px 12px;
    border: 1px solid rgba(201, 152, 80, .4);
    color: var(--mph-cream);
    text-decoration: none;
    border-radius: 999px;
    font-size: 12px;
    transition: background .18s ease, border-color .18s ease;
}
.mph-faqs-jump a:hover {
    background: rgba(201, 152, 80, .14);
    border-color: var(--mph-gold);
}


/* ============================================================
   STICKY CATEGORY FILTER BAR
   ============================================================ */

.mph-faqs-filterbar {
    position: sticky;
    top: 68px; /* below the scrolled MPH header */
    z-index: 5;
    background: rgba(244, 236, 224, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mph-line);
    padding: 14px 0;
}
.mph-faqs-filterbar-inner {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    overflow-x: auto;
}
.mph-faqs-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--mph-line);
    font-family: var(--mph-sans);
    font-size: 13px;
    color: var(--mph-ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.mph-faqs-chip:hover {
    border-color: var(--mph-cognac);
    color: var(--mph-cognac);
}
.mph-faqs-chip.is-on {
    background: var(--mph-noir);
    color: var(--mph-cream);
    border-color: var(--mph-noir);
}
.mph-faqs-chip .n {
    background: rgba(0, 0, 0, .08);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
}
.mph-faqs-chip.is-on .n { background: rgba(255, 255, 255, .18); }
.mph-faqs-chip:focus-visible {
    outline: 2px solid var(--mph-gold);
    outline-offset: 3px;
}


/* ============================================================
   FAQ GROUPS
   ============================================================ */

.mph-faqs-body { padding: 24px 0 8px; }

.mph-faqs-group {
    padding: 40px 0 8px;
    background: var(--mph-paper);
    scroll-margin-top: 128px; /* header + filter bar */
}
.mph-faqs-group.is-alt { background: #fff; }
.mph-faqs-group.is-hidden { display: none; }

.mph-faqs-group-count {
    color: var(--mph-ink-2);
    font-size: 13px;
    font-style: italic;
}

.mph-faqs-list { max-width: 900px; }

/* Q/A items */
.mph-faqs-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--mph-line);
}
.mph-faqs-item.is-hidden { display: none; }
.mph-faqs-item summary {
    font-family: var(--mph-serif);
    font-size: 22px;
    line-height: 1.35;
    color: var(--mph-ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 4px 0;
    min-height: 44px;
}
.mph-faqs-item summary::-webkit-details-marker { display: none; }
.mph-faqs-item summary:focus-visible {
    outline: 2px solid var(--mph-gold);
    outline-offset: 4px;
    border-radius: 2px;
}
.mph-faqs-item .mph-faqs-q { flex: 1; }
.mph-faqs-item .plus {
    color: var(--mph-cognac);
    font-family: var(--mph-sans);
    font-size: 28px;
    line-height: 1;
    transition: transform .2s ease;
    flex-shrink: 0;
}
.mph-faqs-item[open] .plus { transform: rotate(45deg); }
.mph-faqs-a {
    padding-right: 48px;
    animation: mph-faqs-in .25s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
    .mph-faqs-a { animation: none; }
    .mph-faqs-item .plus { transition: none; }
}
@keyframes mph-faqs-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mph-faqs-a p {
    margin: 12px 0 4px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--mph-ink-2);
    max-width: 70ch;
}

/* Search-driven highlight when a match is inside a hidden category */
.mph-faqs-item.is-search-match summary {
    background: linear-gradient(90deg, rgba(201, 152, 80, .08), transparent 60%);
    padding-left: 12px;
    margin-left: -12px;
    border-left: 3px solid var(--mph-gold);
}

/* Empty state */
.mph-faqs-empty {
    padding: 60px 0;
    text-align: center;
    color: var(--mph-ink-2);
    background: var(--mph-paper);
}
.mph-faqs-empty p { font-size: 16px; }


/* ============================================================
   STILL STUCK STRIP
   ============================================================ */

.mph-faqs-help {
    padding: 72px 0;
    background: linear-gradient(135deg, #2a1a12 0%, #1a120f 100%);
    color: var(--mph-cream);
    position: relative;
    overflow: hidden;
    margin-top: 24px;
}
.mph-faqs-help::before {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 152, 80, .28) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.mph-faqs-help-inner {
    text-align: center;
    max-width: 640px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.mph-faqs-help h3 {
    font-family: var(--mph-serif);
    font-size: 36px;
    line-height: 1.15;
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF !important;
    margin: 12px 0 14px;
}
.mph-faqs-help p {
    color: #d9cfbe;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 auto 24px;
    max-width: 52ch;
}
.mph-faqs-help-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .mph-faqs-hero-inner { padding-top: 64px; padding-bottom: 56px; }
    .mph-faqs-hero-h1 { font-size: 38px; }
    .mph-faqs-hero-lede { font-size: 15px; }
    .mph-faqs-search input[type="search"] { font-size: 16px; } /* keep >=16px to avoid iOS auto-zoom */
    .mph-faqs-filterbar { top: 60px; }
    .mph-faqs-filterbar-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .mph-faqs-chip { flex-shrink: 0; }
    .mph-faqs-item summary { font-size: 19px; }
    .mph-faqs-a { padding-right: 8px; }
    .mph-faqs-help h3 { font-size: 28px; }
    .mph-faqs-jump { display: none; } /* filter bar covers the same job on mobile */
}
