/* ============================================================================
 *  altsounds-artist-enrichment / artist-profile.css
 * ============================================================================
 *  "About <Artist>" card (rendered above the grid) + the hero social row.
 *  About = image LEFT, then title / facts / divider / bio / image-credit
 *  stacked on the RIGHT, the two columns matched in height.
 * ============================================================================ */

.alts-artist-about {
    /* Injected INSIDE the video grid (after press) — span every column so it
       shares the exact width + container + background as the tiles and the
       press module, rather than being a wider band of its own. */
    grid-column: 1 / -1;
    margin: 8px 0 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.95);
}

.alts-artist-about__body {
    display: flex;
    gap: 32px;
    align-items: stretch;   /* image column matches the text column's height */
}

/* Image, left. Fills its column to the text height (object-fit:cover keeps the
   aspect, top-anchored so faces aren't cropped off). */
.alts-artist-about__media {
    flex: 0 0 320px;
    align-self: stretch;       /* fill the TEXT column's height */
    margin: 0;
    min-height: 180px;         /* floor so very short bios don't shrink it away */
    position: relative;        /* image fills this box, doesn't drive its height */
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}
.alts-artist-about__img {
    /* Absolutely fill the box (text-dictated height) — the image can't push the
       row taller; it just covers the available space. !important defeats the
       theme's global img{height:auto}, which otherwise left wide photos short
       and showed the grey box behind them. */
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;   /* defeat frontend.css img{object-fit:contain!important} */
    display: block;
}

/* Content, right — a flex column so the image credit can pin to the bottom. */
.alts-artist-about__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.alts-artist-about--no-image .alts-artist-about__media { display: none; }

/* Band logo (Wikidata P154) — sits above the "About" eyebrow when present.
   object-fit:contain + forced dims so the theme's img rules can't crop/stretch. */
.alts-artist-about__logo {
    display: block;
    max-height: 56px;
    max-width: 260px;
    width: auto !important;
    height: auto !important;
    margin: 0 0 16px;
    object-fit: contain !important;
}
/* Dark logos (e.g. a black wordmark) flipped to read on the dark UI. */
.alts-artist-about__logo--invert { filter: invert(1) brightness(1.7); }
.alts-artist-about__title {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.95);
}
.alts-artist-about__facts {
    font-family: var(--alts-mono, "IBM Plex Mono", monospace);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 14px;
}
.alts-artist-about__rule {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0 14px;
}
.alts-artist-about__bio {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 14px;
}
.alts-artist-about__bio-credit {
    display: inline;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}
.alts-artist-about__bio-credit a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}
.alts-artist-about__bio-credit a:hover { color: #fff; }

/* Image credit — under the bio, pinned to the bottom of the column. */
.alts-artist-about__credit {
    margin: auto 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
}
.alts-artist-about__credit a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
}
.alts-artist-about__credit a:hover { color: rgba(255, 255, 255, 0.85); }

/* The editorial "More about <Artist>" copy lives in the bottom channel block
   (taxonomy.php) so long entries don't crowd the hero — the only thing styled
   here is the admin edit pencil on that block's relabelled summary: it leads the
   label (placed before the text by the editor JS) and drops its button chrome.
   color:inherit keeps it visible on the channel surface. */
.alts-artist-about__more-label .alts-cde-pencil {
    border: none !important;
    background: none !important;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 8px 0 0;
    border-radius: 0;
    font-size: 12px;
    opacity: 0.55;
    color: inherit;
}
.alts-artist-about__more-label .alts-cde-pencil:hover,
.alts-artist-about__more-label .alts-cde-pencil:focus {
    background: none !important;
    border: none !important;
    opacity: 1;
    color: inherit;
}

/* Hero social/streaming icon row — centred, sits under the intro and above the
   play actions (rendered by AltSounds_Artist_Profile::social_row). */
.alts-artist-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 38px;   /* clear gap down to the Play/Shuffle actions */
}
.alts-artist-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.alts-artist-social__link:hover,
.alts-artist-social__link:focus-visible {
    background: rgba(191, 255, 0, 0.12);
    border-color: rgba(191, 255, 0, 0.5);
    color: #BFFF00;
    outline: none;
}

@media (max-width: 760px) {
    .alts-artist-about__body { flex-direction: column; }
    .alts-artist-about__media { flex: 0 0 auto; max-width: 100%; position: static; height: 240px; min-height: 0; }
    .alts-artist-about__img { position: static; width: 100% !important; height: 100% !important; }
    .alts-artist-about__credit { margin-top: 14px; }
    .alts-artist-about__title { font-size: 22px; }

    /* Social row: shrink-to-fit so all icons stay on ONE row even on the
       narrowest phones (each icon takes an equal share, capped at 38px). */
    .alts-artist-social { gap: 4px; flex-wrap: nowrap; }
    .alts-artist-social__link {
        flex: 1 1 0;
        min-width: 0;
        max-width: 38px;
        width: auto;
        height: auto;
        aspect-ratio: 1 / 1;
        font-size: 13px;
    }
}

/* ============================================================================
 *  FAQ — auto-composed, at the very bottom of the page (AltSounds_Artist_FAQ).
 *  Same --alts-surface band as About / More-about so the page foot is seamless.
 * ============================================================================ */
.alts-artist-faq {
    background: var(--alts-surface, #0a0a0a);
    padding: 12px 30px 80px;
    box-sizing: border-box;
}
.alts-artist-faq__inner {
    max-width: 900px;
    margin: 0 auto;
}
.alts-artist-faq__title {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.alts-artist-faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.alts-artist-faq__q {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.15s ease;
}
.alts-artist-faq__q::-webkit-details-marker { display: none; }
.alts-artist-faq__q:hover { color: #fff; }
.alts-artist-faq__q::after {
    content: "\002B";                 /* + */
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    line-height: 1;
    transition: color 0.15s ease;
}
.alts-artist-faq__item[open] .alts-artist-faq__q::after { content: "\2212"; } /* − */
.alts-artist-faq__a {
    padding: 0 0 20px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
}
.alts-artist-faq__a p { margin: 0; }
.alts-artist-faq__a a { color: #BFFF00; text-decoration: none; }
.alts-artist-faq__a a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .alts-artist-faq { padding: 8px 20px 64px; }
    .alts-artist-faq__title { font-size: 21px; }
    .alts-artist-faq__q { font-size: 15px; }
}
