/* --- Read More / Expandable Bio Mechanics --- */
.bww-team-bio {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 4. Typography & Bio */
.bww-team-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.bww-team-name {
    font-family: var(--bww-font-main);
    color: var(--bww-dark-blue);
    font-size: 2rem !important; /* Increased for better hierarchy */
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.1;
}

.bww-team-role {
    font-weight: bold;
    color: var(--bww-teal);
    font-size: 1.25rem !important; /* Increased to match the larger bio text */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    display: block;
}

.bww-bio-content-wrapper {
    max-height: 160px; /* Shows roughly 5 lines of text */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-in-out;
	/* New ADA Compliant Text Sizing */
    font-size: 1.55rem; 
    line-height: 1.6;
    color: var(--bww-dark-blue);
}
/* Ensure WordPress paragraph tags inherit this new size */
.bww-bio-content-wrapper p {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 15px; /* Adds nice breathing room between paragraphs */
}

/* The gradient fade at the bottom of truncated text */
.bww-bio-content-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--bww-white) 90%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Hide the gradient when expanded or if text is naturally short */
.bww-bio-content-wrapper.expanded::after,
.bww-bio-content-wrapper.no-fade::after {
    opacity: 0;
}

.bww-bio-toggle-btn {
    background: none;
    border: none;
    color: var(--bww-teal);
    font-family: var(--bww-font-main);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    padding: 15px 0 0 0;
    margin-top: auto; /* Pushes button to bottom of card */
    font-size: 1.8rem;
    text-align: left;
    transition: color 0.2s ease;
}

/* --- Lock down the hover, focus, and active states --- */
.bww-bio-toggle-btn:hover,
.bww-bio-toggle-btn:focus,
.bww-bio-toggle-btn:active {
    color: var(--bww-dark-blue) !important;
    background-color: transparent !important;
    box-shadow: none !important; /* Prevents the theme from adding a weird focus ring */
    outline: none; 
}