/* =========================================================
   ARTICLE TAXONOMY ARCHIVES
   Category + Tag pages
   Reuses the same visual rules as /magazine/
   ========================================================= */

.xr-term-archive-page {
    padding-top: 48px;
    padding-bottom: 72px;
}

.xr-term-archive-header {
    max-width: 880px;
}

.xr-term-archive-header p:not(.xr-kicker) {
    max-width: 720px;
    color: rgba(62, 58, 53, 0.72);
    font-size: 1.08rem;
}

.xr-article-archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .xr-article-archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .xr-article-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .xr-article-archive-grid {
        grid-template-columns: 1fr;
    }
}


/* Author archive social share */
.xr-author-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.xr-author-share span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a7773;
}

.xr-author-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 15px;
    border: 1px solid rgba(62, 58, 53, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #3e3a35;
    font-weight: 800;
    text-decoration: none;
}

.xr-author-share a:hover {
    border-color: rgba(0, 177, 165, 0.35);
    color: #00b1a5;
}

/* =========================================================
   AUTHOR ARCHIVE — restored layout
   ========================================================= */
.xr-author-archive-page {
    padding-top: clamp(56px, 7vw, 88px);
    padding-bottom: 88px;
}

.xr-author-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: clamp(32px, 6vw, 76px);
    align-items: center;
    margin-bottom: clamp(44px, 6vw, 72px);
}

.xr-author-hero__content {
    max-width: 860px;
}

.xr-author-hero .xr-kicker {
    margin: 0 0 18px;
    color: var(--xr-teal, #00B1A5);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.xr-author-hero h1 {
    margin: 0;
    max-width: 980px;
    color: var(--xr-dark, #3E3A35);
    font-size: clamp(3.4rem, 8.2vw, 7.4rem);
    line-height: 0.9;
    letter-spacing: -0.075em;
}

.xr-author-hero__bio {
    max-width: 820px;
    margin-top: 24px;
    color: rgba(62, 58, 53, 0.78);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.58;
}

.xr-author-hero__bio p {
    margin: 0 0 0.85em;
}

.xr-author-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.xr-author-hero__meta span,
.xr-author-hero__meta a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(62, 58, 53, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--xr-dark, #3E3A35);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.xr-author-hero__meta a:hover {
    border-color: rgba(0, 177, 165, 0.35);
    color: var(--xr-teal, #00B1A5);
}

.xr-author-hero__avatar {
    width: 220px;
    height: 220px;
    border-radius: 28px;
    overflow: hidden;
    background: #eee8df;
    box-shadow: var(--xr-shadow, 0 20px 50px rgba(62, 58, 53, 0.08));
}

.xr-author-hero__avatar img,
.xr-author-hero__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xr-author-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.xr-author-share span {
    margin-right: 4px;
    color: #7a7773;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.xr-author-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 17px;
    border: 1px solid rgba(62, 58, 53, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--xr-dark, #3E3A35);
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.xr-author-share a:hover {
    border-color: rgba(0, 177, 165, 0.35);
    color: var(--xr-teal, #00B1A5);
}

.xr-author-article-grid {
    margin-top: 0;
}

.xr-author-archive-page .xr-pagination {
    margin-top: 44px;
}

@media (max-width: 900px) {
    .xr-author-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .xr-author-hero__avatar {
        width: 160px;
        height: 160px;
        order: -1;
    }
}

@media (max-width: 620px) {
    .xr-author-hero h1 {
        font-size: clamp(3rem, 18vw, 4.2rem);
    }

    .xr-author-share a,
    .xr-author-hero__meta span,
    .xr-author-hero__meta a {
        font-size: 0.92rem;
    }
}
