/* ========================================
   ANTHOLOGY DETAIL PAGE
======================================== */

.page-anthology #contents,
.page-anthology #authors,
.page-anthology #series,
.page-anthology #about {
    scroll-margin-top: 100px;
}

.anthology-meta-inline {
    margin-top: var(--s-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-6);
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--white-88);
}

.anthology-meta-inline strong {
    color: var(--white);
    font-weight: 700;
}

/* Main contents list */

.anthology-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--black-05);
}

.anthology-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: var(--s-4);
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--black-05);
}

.anthology-num {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.35;
    text-align: right;
    padding-top: 1px;
}

.anthology-item-main {
    min-width: 0;
}

.anthology-story-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 650;
    color: var(--text);
}

.anthology-story-title a {
    color: inherit;
    text-decoration: none;
}

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

.anthology-story-meta {
    margin-top: 2px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
}

.anthology-story-meta a {
    color: inherit;
    text-decoration: none;
}

.anthology-story-meta a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.anthology-story-note {
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.anthology-story-note a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.anthology-story-note a:hover {
    text-decoration: underline;
}

/* Stories by author */

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

.anthology-author-group {
    padding-top: var(--s-2);
}

.anthology-author-group + .anthology-author-group {
    padding-top: var(--s-6);
    border-top: 1px solid var(--black-05);
}

.anthology-author-name {
    margin: 0 0 var(--s-3);
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 700;
}

.anthology-author-name a {
    color: var(--text);
    text-decoration: none;
}

.anthology-author-name a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.anthology-author-story-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s-2);
}

.anthology-author-story-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--s-5);
    align-items: baseline;
    padding: var(--s-2) 0;
}

.anthology-author-story-list a {
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.anthology-author-story-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.anthology-author-story-meta {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

/* Mobile */

@media (max-width: 640px) {
    .anthology-item {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: var(--s-3);
    }

    .anthology-num {
        text-align: left;
    }

    .anthology-author-story-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .anthology-author-story-meta {
        white-space: normal;
    }
}

.anthology-synopsis {
    font-size: 0.97rem;
    line-height: 1.72;
    color: var(--text);
}

.anthology-synopsis p + p {
    margin-top: var(--s-5);
}

.anthology-list-note {
    margin: calc(var(--s-3) * -1) 0 var(--s-5);
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--muted);
}

.anthology-featured-authors {
    margin-top: var(--s-5);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--white-82);
}

.anthology-featured-authors a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.anthology-featured-authors a:hover {
    text-decoration: underline;
}

.anthology-featured-label {
    color: var(--white-72);
    font-weight: 600;
}

.directory-more-note {
    margin-top: var(--s-6);
    padding: var(--s-5) var(--s-6);
    border: 1px solid var(--border);
    border-radius: var(--surface-radius-sm);
    background: var(--surface-subtle);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}