/* Scene detail — mobile prototype */
body.scene-detail {
    .page-main {
        padding-inline: 0;
    }
}
article.scene-detail {

    display: flex;
    row-gap: 1rem;
    flex-direction: column;

    .back-nav {
        padding-inline: 1rem;

        a {
            align-items: center;
            color: var(--hushed);
            display: inline-flex;
            font-family: var(--monospace);
            font-size: 0.85rem;
            gap: 0.25rem;
            text-decoration: none;

            &:hover {
                color: var(--loud);
            }
        }
    }

    /* Section headings */
    /* TODO */
    & _h2 {
        border-block-start: none;
        color: var(--hushed);
        font-family: var(--sans-serif);
        font-size: 0.7rem;
        font-weight: var(--bold-weight);
        letter-spacing: 0.06em;
        margin-block: 0 0.5rem;
        padding-block-start: 0;
        text-transform: uppercase;
    }

    /* page sections */
    /* All direct-child sections get horizontal padding */
    & > section:not(.map) {
        background-color: color-mix(in srgb, var(--quiet) 50%, transparent);
        border: 1px solid var(--whisper);
        padding: 1rem;
    }

    /* ---- Header ---- */
    & .header {
        & .name { }
        & .meta {
            margin-block-end: 0;
        }
    }
    /* ---- Map ---- */
    & .map {
        & .map-links {
            align-items: baseline;
            justify-content: flex-end;
            column-gap: 1rem;
            display: flex;
        }
    }
    #scene-map {
        aspect-ratio: 16 / 7;
        background-color: var(--quiet);
        border: 1px solid var(--hushed);
    }

    /* ---- Photos ---- */
    & .photos {
        & img {
            border-radius: var(--border-radius);
            display: block;
            width: 100%;
        }
        & .caption {
            color: var(--hushed);
            font-size: var(--smaller-font-size);
            margin-block: 0.25rem 0;
        }
    }

    /* ---- Vibe check ---- */
    & .vibe-check {
        & summary {
            align-items: center;
            display: flex;
            gap: 0.5rem;
            &::before {
            }
        }
        & .vibe-label {
            color: var(--hushed);
            font-weight: var(--bold-weight);
        }
        & .vibe-stars {
            flex: 1;
        }
        & .vibe-hint {
            color: var(--blue);
            font-weight: 600;
        }

        &[open] summary {
            margin-block-end: 0;
        }
    }
    & .vibe-check-table {
        border: none;
        font-family: var(--monospace);
        margin-block: 0 0.75rem;
        width: 100%;
    }
    & .vibe-check-row {
        & td {
            padding-block: 0.35rem;
            padding-inline: 0;
        }
    }
    & .vibe-check-label {
        color: var(--hushed);
    }
    & .vibe-check-rating {
        text-align: end;
        white-space: nowrap;
    }
    & .vibe-check-score {
        color: var(--hushed);
    }
    & .vibe-check-votes {
        color: var(--whisper);
    }
    & .vibe-check-unrated {
        color: var(--whisper);
        font-style: italic;
    }

    /* ---- Location ---- */
    & .location {
        & .address {
            display: flex;
            flex-direction: column;
            font-style: normal;
            gap: 0.15rem;
        }
        & .address-line {
            font-size: 0.95rem;
        }
        & .phone {
            color: var(--blue);
            display: inline-block;
            font-size: 0.95rem;
            font-weight: 600;
            margin-block-start: 0.25rem;
        }
    }

    /* ---- Links ---- */
    & .links-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        list-style: none;
        margin: 0;
    }
    & .link-row {
        align-items: center;
        background-color: var(--quiet);
        border: var(--border-width) solid var(--whisper);
        border-radius: var(--border-radius);
        display: flex;
        gap: 0.75rem;
        padding: 0.65rem 0.85rem;
        & iconify-icon {
            color: var(--hushed);
            font-size: 1.25rem;
        }
        & a {
            font-weight: 600;
        }
        & .link-platform {
            color: var(--hushed);
            font-size: var(--smaller-font-size);
            font-weight: var(--normal-weight);
        }
    }

    /* ---- Hours ---- */
    & .hours-table {
        border: none;
        margin-block: 0;
        width: 100%;
    }
    & .hours-row {
        & td {
            font-size: 0.85rem;
            padding-block: 0.25rem;
            padding-inline: 0;
        }
    }
    & .hours-day {
        color: var(--loud);
        font-weight: 600;
        width: 6rem;
    }
    & .hours-range {
        color: var(--hushed);
    }

    /* ---- Affinities ---- */
    & .affinities-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        list-style: none;
        margin: 0;
    }
    & .affinity-tag {
        background-color: var(--quiet);
        border: var(--border-width) solid var(--whisper);
        border-radius: 2rem;
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }

    /* ---- Substance policies ---- */
    & .policies-list {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        margin: 0;
    }
    & .policy-row {
        align-items: center;
        display: flex;
        justify-content: space-between;
        & dt {
            color: var(--hushed);
            font-size: 0.85rem;
            font-weight: var(--normal-weight);
        }
    }

    /* ---- Notes ---- */
    & .team-note {
        & .notes-text {
            font-family: var(--monospace);
            & p:last-child {
                margin-block-end: 0;
            }
        }
    }

    /* ---- Suggest nudge ---- */
    & .suggest-nudge {
        border-block-start: var(--border-width) solid var(--whisper);
        padding: 1rem;
        text-align: center;
        & a {
            font-size: 0.85rem;
            font-weight: 600;
        }
    }
}
