/* Open Questions — below-the-fold analytical layer on per-episode MCG
   pages. Surfaces BRAID risk_flags in the founder's own voice.

   Aligned with the project's "AVICI card" recipe (docs/design-tokens.md
   §4): gradient surface, subtle gold top accent, terracotta typography.
   Editorial voice: press kit with footnotes (Claude-skills/mcg-daily/
   SKILL.md → Editorial Voice).

   The section is restrained relative to the AVICI panels above — no
   hover lifts, no glow expansion — because it's a footer, not a
   feature. The gold accents are present but quieter. */

.open-questions {
    position: relative;
    margin-top: 3rem;
    padding: 2rem 1.6rem 1.7rem;
    background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(0, 0, 0, 0.10) 100%);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.open-questions::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.30) 50%,
        transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.open-questions[hidden] {
    display: none;
}

/* ── Section head ─────────────────────────────────────────────── */

.open-questions__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.open-questions__title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 0 0 0.4rem 0;
}

.open-questions__subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 64ch;
}

/* ── Lists + groups ───────────────────────────────────────────── */

.open-questions__list,
.open-questions__folded {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.open-questions__folded[hidden] {
    display: none;
}

.open-questions__folded {
    margin-top: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.open-questions__group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Eyebrow label per design-tokens §2 — sans, small, uppercase, wide tracking. */
.open-questions__group-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
    margin: 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

/* ── Individual item ──────────────────────────────────────────── */

.open-questions__item {
    border: 1px solid var(--color-border);
    border-left: 2px solid rgba(212, 175, 55, 0.30);
    border-radius: 6px;
    padding: 1rem 1.1rem;
    background: rgba(212, 175, 55, 0.04);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.open-questions__item:hover {
    border-color: rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.06);
}

.open-questions__detail {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-text);
    margin: 0 0 0.75rem 0;
}

.open-questions__detail:last-child {
    margin-bottom: 0;
}

/* ── Founder voice quote ───────────────────────────────────────── */

.open-questions__quote {
    margin: 0;
    padding: 0.65rem 0.9rem;
    border-left: 2px solid rgba(212, 175, 55, 0.35);
    background: var(--color-bg-card);
    border-radius: 0 4px 4px 0;
}

.open-questions__quote p {
    font-family: var(--font-sans);
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0 0 0.4rem 0;
}

.open-questions__attribution {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-terracotta-text);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.open-questions__attribution::before {
    content: "— ";
    opacity: 0.7;
}

/* ── Toggle button ────────────────────────────────────────────── */

.open-questions__toggle {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.5rem 0.95rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-dim);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.open-questions__toggle:hover,
.open-questions__toggle:focus {
    color: var(--color-terracotta-text);
    border-color: rgba(212, 175, 55, 0.30);
    background: rgba(212, 175, 55, 0.06);
    outline: none;
}

.open-questions__toggle:focus-visible {
    outline: 2px solid var(--color-terracotta-text);
    outline-offset: 2px;
}

/* ── Optional footnote slot ───────────────────────────────────── */

.open-questions__footnote {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--color-text-dim);
    line-height: 1.55;
    max-width: 64ch;
}

/* ── Mobile reflow ────────────────────────────────────────────── */

@media (max-width: 640px) {
    .open-questions {
        margin-top: 2rem;
        padding: 1.5rem 1.2rem 1.3rem;
        border-radius: 12px;
    }

    .open-questions__item {
        padding: 0.85rem 0.95rem;
    }

    .open-questions__detail {
        font-size: 0.88rem;
    }

    .open-questions__quote {
        padding: 0.55rem 0.8rem;
    }

    .open-questions__quote p {
        font-size: 0.82rem;
    }
}
