.song-link {
    text-decoration: underline;
}

footer:empty {
    display: none !important;
}

/* Team grid.

   Each member is a native <details>. The cards used to be
   role="button" tabindex="0" opening a modal from testimonials.js, but that
   script needs a #testim_popup container that was never ported from the
   WordPress footer, so every card was announced as a button and did nothing.
   A disclosure needs no script and keeps the profile text that was written
   for the modal. */
/* style.css sizes .member to min-content so the card hugs the portrait. That
   has to move to the summary now, or the expanded panel inherits a
   portrait-width column and every certification wraps one word per line. */
.member {
    outline: none;
    width: auto;
}

.member > summary {
    display: block; /* suppresses the default triangle marker */
    width: min-content;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 8px;
    /* The certification badge is absolutely positioned; anchor it to the card
       rather than the <details>, whose box widens when the profile opens. */
    position: relative;
}

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

.member > summary:focus-visible {
    outline: solid 4px var(--highlight-blue);
    outline-offset: 6px;
}

/* The portrait ring already carries the hover/focus affordance the old card
   had; keep it responding to the summary rather than the removed button. */
.member > summary:hover .portrait-border,
.member > summary:focus-visible .portrait-border {
    outline: solid 4px var(--highlight-blue);
}

.member > summary h3 {
    margin-bottom: 0;
}

.member .member-role {
    margin-top: 0.25em;
}

/* body is 28.8px sitewide and every section overrides it; without an explicit
   size here the profile text renders roughly 60% larger than the body copy it
   sits beside. 18px is what .whole_page_text_wrap paragraphs resolve to. */
.member-profile {
    text-align: left;
    font-size: 18px;
    line-height: 1.5;
    width: min(34rem, 88vw);
    margin: 1.25em auto 0;
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.05);
}

.member-pronouns {
    margin: 0 0 0.75em;
    color: var(--ee-dark-gray);
}

.member-profile .social-icon-about {
    margin-bottom: 1em;
    display: flex;
    gap: 1em;
    align-items: center;
}

.member-profile h3 {
    font-size: 1.1em;
    margin: 0 0 0.4em;
}

/* Each certification is its own line (they are <br>-separated), so let the
   value column take the width it needs rather than wrapping mid-phrase. */
.member-profile .member-facts {
    font-size: 1em;
    grid-template-columns: max-content minmax(0, 1fr);
}

.member-profile p:last-child {
    margin-bottom: 0;
}

.partner a[target="_blank"]:focus,
.association a[target="_blank"]:focus {
    display: unset;
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

.partner a[target="_blank"]:focus img,
.association a[target="_blank"]:focus img {
    box-shadow: var(--focus-border-2);
}
/* Member profile facts (location, certifications).

   Replaces the six-question Q&A that used to fill .kb_search_content. The
   badge images in .cert_footer now carry alt="" because this list states the
   same certifications in text, and announcing both would repeat every
   credential twice. */
.member-facts {
    margin: 0 0 1.5em;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4em 1.2em;
    font-family: Nunito Sans, sans-serif;
}

.member-facts dt {
    font-weight: 700;
    color: var(--ee-blue);
    margin: 0;
}

.member-facts dd {
    margin: 0;
    color: var(--ee-black);
}

@media screen and (max-width: 560px) {
    .member-facts {
        grid-template-columns: 1fr;
        gap: 0.2em;
    }

    .member-facts dd {
        margin-bottom: 0.8em;
    }
}
