/* "About the author" block, shared by the white papers page and the blog.
   The first paragraph shows; "Read more" (a native <details>) expands the rest. */

.author-section { padding: clamp(3rem, 7vw, 5.5rem) 0; background: #fff; }
.author-section--tint { background: #f6f7fb; }

.author {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    max-width: 1040px;
    margin: 0 auto;
}

.author-photo {
    position: relative;
    width: 240px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient-primary);
    box-shadow: 0 24px 48px -20px rgba(136, 14, 79, 0.45);
}

.author-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white);
    background: var(--white);
}

.author-kicker {
    margin: 0 0 0.5rem;
    color: var(--primary-pink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.author-text h2 {
    margin: 0 0 0.35rem;
    color: var(--dark-navy);
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    text-align: left;
}

.author-role {
    margin: 0 0 1.4rem;
    color: var(--primary-magenta);
    font-weight: 600;
}

.author-text p.author-bio,
.author-more p {
    margin: 0 0 1rem;
    color: #3a3d4a;
    font-size: 1.05rem;
    line-height: 1.75;
}

.author-more summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.1rem 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(233, 30, 99, 0.35);
    color: var(--primary-pink);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.author-more summary::-webkit-details-marker { display: none; }
.author-more summary::marker { content: ""; }
.author-more summary:hover { background: var(--primary-pink); color: #fff; }
.author-more summary:focus-visible { outline: 3px solid var(--primary-pink); outline-offset: 3px; }
.author-more summary i { transition: transform var(--transition-fast); }
.author-more[open] summary i { transform: rotate(180deg); }
.author-more .author-less { display: none; }
.author-more[open] .author-less { display: inline; }
.author-more[open] .author-readmore { display: none; }
.author-more[open] > div { animation: authorOpen 0.35s ease both; }

@keyframes authorOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
    .author { grid-template-columns: 1fr; justify-items: center; }
    .author-photo { width: 190px; }
    .author-text { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .author-more[open] > div { animation: none; }
}
