/* =========================================================================
   Author profiles (1.3.33): "About the author" box at the end of an article,
   the author page (/authors/<slug>/) and the author index (/authors/).
   Loaded only where an author box or author page is shown
   (one_author_enqueue_assets() in inc/author-profiles.php).
   Two-class selectors so base.css heading, list and link rules do not win.
   ========================================================================= */

.one-author-box {
    --one-author-red: #d52838;
    --one-author-ink: #2b2824;
    --one-author-text: #484c4c;
    --one-author-ring: #f5c60a;
    --one-author-bg: #f7f5f2;
    --one-author-edge: #ddd9d4;
    --one-author-chip-edge: #d9d4cc;
    --one-author-photo: 146px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    box-sizing: border-box;
    width: 100%;
    margin: 56px 0 0;
    padding: 36px 36px 36px 31px;
    background: var(--one-author-bg);
    border: 1px solid var(--one-author-edge);
    border-left: 5px solid var(--one-author-red);
    color: var(--one-author-text);
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    text-align: left;
}

/* ---- Photo: white gap, yellow ring, red book badge ---------------------- */

.one-author-box .one-author-box__media {
    position: relative;
    flex: 0 0 auto;
    width: var(--one-author-photo);
    height: var(--one-author-photo);
}

.one-author-box .one-author-box__photo {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 5px;
    overflow: hidden;
    border: 5px solid var(--one-author-ring);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(43, 40, 36, 0.12);
}

.one-author-box .one-author-box__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}

.one-author-box .one-author-box__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fbeaec;
    color: var(--one-author-red);
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.one-author-box .one-author-box__badge {
    position: absolute;
    right: 4px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--one-author-red);
    color: #fff;
}

.one-author-box .one-author-box__badge .one-author-icon {
    width: 15px;
    height: 15px;
}

/* ---- Text --------------------------------------------------------------- */

.one-author-box .one-author-box__body {
    flex: 1 1 auto;
    min-width: 0;
}

.one-author-box .one-author-box__eyebrow {
    margin: 6px 0 10px;
    color: var(--one-author-red);
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.one-author-box .one-author-box__name {
    margin: 0;
    padding: 0;
    color: var(--one-author-ink);
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.one-author-box .one-author-box__name-link {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
}

.one-author-box .one-author-box__name-link::after {
    content: none;
}

.one-author-box .one-author-box__name-link:hover,
.one-author-box .one-author-box__name-link:focus-visible {
    color: var(--one-author-red);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.one-author-box .one-author-box__roles {
    margin: 10px 0 0;
    color: var(--one-author-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.one-author-box .one-author-box__role {
    display: inline;
}

/* Red dot between roles (design), drawn so it is not read out. */
.one-author-box .one-author-box__role + .one-author-box__role::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 9px;
    border-radius: 50%;
    background: var(--one-author-red);
    vertical-align: 0.2em;
}

.one-author-box .one-author-box__bio {
    margin-top: 20px;
    color: var(--one-author-text);
    font-size: 16px;
    line-height: 1.75;
}

.one-author-box .one-author-box__bio p {
    margin: 0 0 12px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.one-author-box .one-author-box__bio p:last-child {
    margin-bottom: 0;
}

.one-author-box .one-author-box__bio a {
    color: var(--one-author-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Highlight chips and profile links (pills) ------------------------- */

.one-author-box .one-author-box__chips,
.one-author-box .one-author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.one-author-box .one-author-box__chips li,
.one-author-box .one-author-box__links li {
    margin: 0;
    list-style: none;
}

.one-author-box .one-author-box__links li {
    padding: 0;
}

.one-author-box .one-author-box__chips li::before,
.one-author-box .one-author-box__links li::before {
    content: none;
}

.one-author-box li.one-author-box__chip,
.one-author-box .one-author-box__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--one-author-chip-edge);
    border-radius: 999px;
    background: #fff;
    color: var(--one-author-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.one-author-box .one-author-box__chip .one-author-icon,
.one-author-box .one-author-box__link .one-author-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--one-author-red);
}

.one-author-box .one-author-box__link {
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.one-author-box .one-author-box__link::after {
    content: none;
}

.one-author-box .one-author-box__link:hover,
.one-author-box .one-author-box__link:focus-visible {
    border-color: var(--one-author-red);
    color: var(--one-author-red);
}

.one-author-box .one-author-box__cta {
    margin: 18px 0 0;
    font-size: 15px;
    font-weight: 700;
}

.one-author-box .one-author-box__cta a {
    color: var(--one-author-red);
    text-decoration: none;
}

.one-author-box .one-author-box__cta a::after {
    content: none;
}

.one-author-box .one-author-box__cta a:hover,
.one-author-box .one-author-box__cta a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---- End of an article -------------------------------------------------- */

/* As wide as the page container (1.3.34; 800px before). Default layout: the
   box is the last item of the body grid and spans the reading column and the
   TOC column. Full-width layout: it fills .container.one-author-box-wrap.
   The bio keeps the reading column's measure, so lines stay readable. */
.blog-single__body > .one-author-box {
    grid-column: 1 / -1;
}

.one-author-box--post .one-author-box__bio {
    max-width: 800px;
}

/* Full-width posts have no body padding under the article. */
.one-author-box-wrap {
    padding-bottom: 72px;
}

/* ---- Author page and index --------------------------------------------- */

.one-author-page .one-author-page__top {
    padding-top: 48px;
    padding-bottom: 64px;
}

/* Same look as the breadcrumb on a blog post. base.css paints breadcrumb
   links white with !important (they normally sit on a hero image), so the
   colour has to be !important here too, as .blog-single__header does. */
.one-author-page .one-author-page__breadcrumb {
    display: block;
    margin: 0 0 32px;
    color: #2b2824;
    font-size: 13px;
}

.one-author-page .one-author-page__breadcrumb .breadcrumb-item a {
    color: #2b2824 !important;
    font-size: 13px;
    text-decoration: none;
}

.one-author-page .one-author-page__breadcrumb .breadcrumb-item a:hover,
.one-author-page .one-author-page__breadcrumb .breadcrumb-item a:focus-visible {
    color: #d52838 !important;
    text-decoration: underline;
}

.one-author-page .one-author-page__breadcrumb .breadcrumb-item--name {
    font-size: 13px;
}

.one-author-page .one-author-box--page {
    max-width: none;
    margin: 0;
    padding: 48px 48px 48px 43px;
    --one-author-photo: 190px;
}

.one-author-page .one-author-box--page .one-author-box__name {
    font-size: 42px;
}

.one-author-page .one-author-box--page .one-author-box__bio {
    max-width: 760px;
    font-size: 17px;
}

.one-author-page .one-author-box--page .one-author-box__badge {
    right: 8px;
    bottom: 16px;
    width: 40px;
    height: 40px;
}

.one-author-page .one-author-box--page .one-author-box__badge .one-author-icon {
    width: 18px;
    height: 18px;
}

.one-author-page .one-author-box--page .one-author-box__initials {
    font-size: 54px;
}

.one-author-page .one-author-page__articles {
    padding: 72px 0 88px;
    background: #f7f5f2;
}

.one-author-page .one-author-page__head {
    margin-bottom: 40px;
}

.one-author-page .one-author-page__eyebrow {
    margin: 0 0 12px;
    color: #d52838;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.one-author-page .one-author-page__title {
    margin: 0;
    color: #2b2824;
    font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.one-author-page .one-author-page__grid {
    gap: 32px;
}

.one-author-page .one-author-page__empty {
    margin: 0;
    font-size: 17px;
}

.one-author-page .one-author-page__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 56px;
}

.one-author-page .one-author-page__pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    box-sizing: border-box;
    color: #d52838;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.one-author-page .one-author-page__pagination .page-numbers::after {
    content: none;
}

.one-author-page .one-author-page__pagination .page-numbers.current {
    background: #d52838;
    color: #fff;
}

.one-author-page .one-author-page__pagination a.page-numbers:hover,
.one-author-page .one-author-page__pagination a.page-numbers:focus-visible {
    text-decoration: underline;
}

.one-author-index .one-author-index__title {
    margin: 0 0 16px;
    color: #2b2824;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
}

.one-author-index .one-author-index__intro {
    max-width: 760px;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.7;
}

.one-author-index .one-author-index__list {
    display: grid;
    gap: 32px;
    margin-top: 40px;
}

.one-author-index .one-author-box--list {
    max-width: 1000px;
    margin: 0;
}

/* ---- Tablet ------------------------------------------------------------- */

@media (width <= 1024.98px) {
    .one-author-box {
        --one-author-photo: 136px;
        gap: 28px;
        margin-top: 48px;
        padding: 32px 30px 32px 27px;
    }
    .one-author-box .one-author-box__name {
        font-size: 30px;
    }
    /* The body grid adds a 32px row gap; together they keep the 48px gap. */
    .blog-single__body > .one-author-box {
        margin-top: 16px;
    }
    .one-author-box-wrap {
        padding-bottom: 56px;
    }
    .one-author-page .one-author-box--page {
        --one-author-photo: 160px;
        padding: 36px 32px 36px 29px;
    }
    .one-author-page .one-author-box--page .one-author-box__name {
        font-size: 36px;
    }
    .one-author-page .one-author-page__articles {
        padding: 56px 0 64px;
    }
    .one-author-page .one-author-page__title {
        font-size: 32px;
    }
    .one-author-page .one-author-page__grid {
        gap: 24px;
    }
}

/* ---- Phone: photo above the text, one pill per line --------------------- */

@media (width <= 640.98px) {
    .one-author-box {
        --one-author-photo: 124px;
        flex-direction: column;
        gap: 22px;
        margin-top: 40px;
        padding: 28px 22px 30px 19px;
    }
    .one-author-box .one-author-box__eyebrow {
        margin-top: 0;
    }
    .one-author-box .one-author-box__name {
        font-size: 28px;
    }
    .blog-single__body > .one-author-box {
        margin-top: 8px;
    }
    .one-author-box .one-author-box__chips,
    .one-author-box .one-author-box__links {
        flex-direction: column;
        align-items: flex-start;
    }
    .one-author-box-wrap {
        padding-bottom: 48px;
    }
    .one-author-page .one-author-page__top {
        padding-top: 32px;
        padding-bottom: 48px;
    }
    .one-author-page .one-author-box--page {
        --one-author-photo: 140px;
        padding: 28px 22px 30px 19px;
    }
    .one-author-page .one-author-box--page .one-author-box__name {
        font-size: 32px;
    }
    .one-author-page .one-author-page__articles {
        padding: 48px 0 56px;
    }
    .one-author-page .one-author-page__title {
        font-size: 30px;
    }
    .one-author-index .one-author-index__title {
        font-size: 34px;
    }
}
