/* ========================================
   AUTHOR PAGE EXTENSIONS
======================================== */

/* ========================================
   AUTHOR PAGE ANCHORS
======================================== */

#books,
#latest,
#series,
#all-series,
#names,
#about,
#awards,
#faq,
#browse,
#author-series,
#popular-series,
#publisher-series,
#multi-author-series,
#similar-authors {
    scroll-margin-top: 100px;
}

.list-row[id^="book-"] {
    scroll-margin-top: 100px;
}

/* ========================================
   AUTHOR LIST-FIRST LAYOUT
======================================== */

.author-books-section h2 {
    margin-bottom: var(--s-3);
    padding-left: var(--tight-gap);
    padding-right: var(--tight-gap);
}

.author-books-section .book-list-surface {
    margin-top: 0;
}

.author-list-meta {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
}

.author-list-meta .author-jump-links {
    margin: 0 0 var(--s-3);
    font-size: 0.82rem;
}

.author-list-meta .list-controls {
    justify-content: flex-start;
    gap: var(--s-3);
}

.list-kicker {
    margin: 0 0 var(--s-2);

    font-size: 0.85rem;
    color: var(--muted);
}

/* ========================================
   AUTHOR BOOK SUBMETA
======================================== */

.author-book-submeta {
    margin-top: 2px;

    font-size: 0.75rem;
    line-height: 1.2;

    color: var(--muted);
    opacity: 0.8;

    min-width: 0;
}

.author-book-submeta a {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;

    min-width: 0;

    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.author-book-submeta a:hover {
    text-decoration: underline;
}

.series-label,
.series-num {
    display: inline;
    white-space: nowrap;
}

/* ========================================
   LATEST RELEASE MODULE
======================================== */

.author-latest-release {
    margin: 0 0 var(--s-4);
    padding: 0;
}

.latest-release-card {
    display: grid;
    gap: 2px;

    padding: var(--s-5) var(--s-6);

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--card);

    text-decoration: none;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.latest-release-card:hover {
    border-color: var(--accent-22);
    background: var(--accent-04);
    text-decoration: none;
}

.latest-release-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: var(--muted);
}

.latest-release-title {
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 600;

    color: var(--text);
}

.latest-release-meta {
    font-size: 0.82rem;
    line-height: 1.4;

    color: var(--muted);
}

/* ========================================
   SERIES ORGANIZED SECTION
======================================== */

.series-organized-section .section-intro {
    color: var(--muted);
    margin-bottom: var(--s-7);
}

.series-block {
    padding: var(--s-5) 0 var(--s-6);
    border-bottom: 1px solid var(--border);
}

.series-block:first-of-type {
    padding-top: 0;
}

.series-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.series-block-title {
    margin: 0 0 var(--s-3);

    font-size: 1.02rem;
    line-height: 1.3;
    font-weight: 700;
}

.series-block-title a {
    color: var(--accent);
    text-decoration: none;
}

.series-block-title a:hover {
    text-decoration: underline;
}

.series-book-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    gap: 0;
}

.series-book-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: var(--s-5);
    align-items: baseline;

    padding: 2px 0;
}

.series-book-title {
    min-width: 0;

    font-size: 0.94rem;
    line-height: 1.45;

    color: var(--text);
}

.series-organized-section .book-date {
    font-size: 0.78rem;
    line-height: 1.4;

    color: var(--muted);
    white-space: nowrap;
}

.standalone-block .series-block-title {
    margin-top: 0;
}

.series-organized-section .section-subtitle {
    margin-top: var(--s-7);
}

/* ========================================
   ALL SERIES GROUPING
======================================== */

.series-group {
    margin-top: var(--s-7);
}

.series-group-title {
    margin-bottom: var(--s-3);

    font-size: 0.9rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.02em;

    color: var(--muted);
}

.all-series-list {
    display: grid;
    gap: var(--s-2);
}

.series-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: var(--s-3) var(--s-4);

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--card);

    text-decoration: none;

    transition: all 0.15s ease;
}

.series-row:hover {
    border-color: var(--accent-22);
    background: var(--accent-04);
}

.series-name {
    font-weight: 600;
    color: var(--text);
}

.series-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ========================================
   IDENTITY / PSEUDONYMS
======================================== */

.identity-section .section-intro {
    color: var(--muted);
    margin-bottom: var(--s-7);
}

.identity-groups {
    display: grid;
    gap: var(--s-7);
}

.identity-group-title {
    margin-bottom: var(--s-3);

    font-size: 0.9rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.02em;

    color: var(--muted);
}

.identity-list {
    display: grid;
    gap: var(--s-2);
}

.identity-row {
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);

    padding: var(--s-3) var(--s-4);

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--card);

    text-decoration: none;

    transition: all 0.15s ease;
}

.identity-row:hover {
    border-color: var(--accent-22);
    background: var(--accent-04);
}

.identity-name {
    font-weight: 600;
    color: var(--text);
}

.identity-meta {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: right;
}

/* ========================================
   AWARDS
======================================== */

.awards-section h2 {
    margin-bottom: var(--s-5);
}

.awards-list {
    display: grid;
    gap: var(--s-2);
}

.award-item {
    padding-bottom: var(--s-2);
    border-bottom: 1px solid var(--border);
}

.award-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.award-book-title {
    margin: 0;

    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 600;
}

.award-book-title a {
    color: var(--text);
    text-decoration: none;
}

.award-book-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.award-book-meta {
    margin: 0;

    font-size: 0.84rem;
    line-height: 1.45;

    color: var(--muted);
}

.award-book-meta-list {
    display: grid;
    gap: 4px;
    margin-top: 2px;
}

/* ========================================
   AUTHOR BIO
======================================== */

.author-bio {
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--text);
}

.author-bio p + p {
    margin-top: var(--content-gap);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 640px) {

    .identity-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .identity-meta {
        text-align: left;
    }

    .series-book-list li {
        grid-template-columns: 1fr;
        gap: 0;

        padding: 3px 0;
    }

    .series-organized-section .book-date,
    .book-date {
        white-space: normal;
        font-size: 0.76rem;
    }
}
