/*
 * Author - Profile: the author's own words beside a card with their
 * expertise, education and social networks.
 */

.author-profile {
    margin-bottom: var(--section-gap);
}

.author-profile__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
    padding-top: 52px;
    border-top: 1px solid var(--line);
}

.author-profile__about {
    flex: 999 1 560px;
    min-width: 0;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.author-profile__heading {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

/* The editor's HTML carries no classes, so it is styled by tag. */
.author-profile__body {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-body);
}

.author-profile__body p {
    margin: 0 0 22px;
}

.author-profile__body > :last-child {
    margin-bottom: 0;
}

.author-profile__body ul,
.author-profile__body ol {
    margin: 0 0 22px;
    padding-left: 1.4em;
}

.author-profile__body a {
    color: var(--accent-ink);
    text-decoration: underline;
}

.author-profile__body a:hover {
    color: var(--accent-deep);
}

.author-profile__details {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.author-profile__group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.author-profile__group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.author-profile__label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink-muted);
}

.author-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-profile__tag {
    /* One line, so the pill stays a pill; a tag longer than the card is cut short. */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-tint);
    font-size: 12px;
    color: var(--accent-ink);
}

.author-profile__school {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-profile__school-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

a.author-profile__school-name:hover {
    color: var(--accent-ink);
}

.author-profile__degree {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-soft);
}

.author-profile__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-profile__item {
    border-bottom: 1px solid var(--line);
}

.author-profile__item:last-child {
    border-bottom: 0;
}

.author-profile__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    font-size: 14px;
}

.author-profile__link:hover {
    color: var(--accent-ink);
}

@media (max-width: 767px) {
    .author-profile__heading { font-size: 24px; }
    .author-profile__body { font-size: 17px; }
}
