/* Forums styles. Generated from main.css by tools/split-discovery-css.php. */

body.chaptertrail-site .browse-page,
body.chaptertrail-site .forum-page {
    padding: 0 0 12px;
}

.community-section .forum-table-wrap {
    margin: 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-strong) 42%, transparent);
}

.community-section .forum-table th,
.community-section .forum-table td {
    padding-left: 0;
    padding-right: 16px;
}

.community-section .forum-table th:last-child,
.community-section .forum-table td:last-child {
    padding-right: 0;
}

.community-section .forum-table tbody tr:last-child td {
    border-bottom: 0;
    padding-bottom: 0;
}

.community-section .forum-empty-cell {
    padding: 18px 0;
}

.forum-page {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 28px 0 48px;
}

.forum-page-heading h1 {
    margin: 0 0 10px;
    max-width: none;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.02;
}

.forum-page-heading p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.forum-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.forum-breadcrumbs a {
    color: var(--wine);
    text-decoration: none;
}

.forum-breadcrumbs a:hover {
    text-decoration: underline;
}

.forum-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 18px;
}

.forum-toolbar__hint {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.forum-toolbar__hint a {
    color: var(--wine);
    font-weight: 800;
    text-decoration: none;
}

.forum-category-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.forum-category-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.forum-category-card h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.forum-category-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.forum-category-card h2 a:hover {
    color: var(--wine);
}

.forum-category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.forum-category-card__meta {
    display: grid;
    gap: 6px;
    min-width: 140px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

.forum-table-wrap {
    overflow-x: auto;
}

.forum-table {
    width: 100%;
    border-collapse: collapse;
}

.forum-table th,
.forum-table td {
    padding: 14px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--wine) 12%, transparent);
    text-align: left;
    vertical-align: top;
}

.forum-table th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.forum-table__count {
    width: 90px;
    color: var(--muted);
    font-weight: 800;
}

.forum-table__last {
    width: min(240px, 30vw);
}

.forum-table__last span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.forum-topic-row a {
    color: var(--ink);
    font-weight: 850;
    text-decoration: none;
}

.forum-topic-row a:hover {
    color: var(--wine);
}

.forum-topic-starter {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.forum-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--wine) 12%, transparent);
    color: var(--wine);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.forum-empty,
.forum-empty-cell {
    color: var(--muted);
    font-weight: 650;
}

.forum-post-list {
    display: grid;
    gap: 0;
    margin: 24px 0;
    padding: 0;
    overflow: hidden;
}

.forum-post-list .forum-empty {
    padding: 24px;
}

.forum-post {
    padding: 22px 24px;
    border-top: 1px solid color-mix(in srgb, var(--wine) 12%, transparent);
}

.forum-post:first-child {
    border-top: 0;
}

.forum-post__layout {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.forum-post__author {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.forum-post__avatar-link {
    display: block;
    line-height: 0;
}

.forum-post__avatar {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    background: var(--green);
    color: #ffffff;
}

.forum-post__avatar--initial {
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 900;
}

.forum-post__name {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.35;
    text-decoration: none;
    word-break: break-word;
}

.forum-post__identity {
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 100%;
}

.user-role-badges {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    vertical-align: middle;
}

.profile-hero-copy h1 .user-role-badges,
.fiction-review-item__name .user-role-badges {
    margin-left: 8px;
}

.forum-post__name:hover {
    color: var(--wine);
}

.forum-post__content {
    min-width: 0;
}

.forum-post__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.forum-post__message-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-post__body {
    color: var(--ink);
    line-height: 1.68;
}

.forum-post__reply {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wine);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.forum-post__reply:hover {
    color: var(--green);
    text-decoration: underline;
}

.forum-post__actions {
    display: grid;
    gap: 6px;
    justify-items: center;
    margin-top: 8px;
}

.forum-post__quote {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-left: 3px solid color-mix(in srgb, var(--wine) 28%, transparent);
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, var(--wine) 5%, transparent);
    color: var(--muted);
}

.forum-post__quote cite {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 800;
}

.forum-post__quote cite a {
    color: inherit;
    text-decoration: none;
}

.forum-post__quote cite a:hover {
    color: var(--wine);
    text-decoration: underline;
}

.forum-post__quote p {
    margin: 0;
    line-height: 1.55;
}

.forum-reply-context {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--wine) 14%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--wine) 4%, transparent);
}

.forum-reply-context p {
    margin: 0 0 8px;
    color: var(--ink);
}

.forum-reply-clear {
    padding: 0;
    border: 0;
    background: none;
    color: var(--wine);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
}

.forum-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.forum-pagination__summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.forum-pagination__links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.forum-pagination__status {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.forum-compose {
    margin-top: 24px;
    padding: 22px 24px;
}

.forum-compose h2 {
    margin: 0 0 14px;
}

.forum-compose .forum-toolbar__hint {
    margin: 0;
}

.forum-compose form {
    display: grid;
    gap: 16px;
}

.forum-compose label,
.forum-compose-field__label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.forum-compose-field {
    display: grid;
    gap: 8px;
}

.forum-compose form > label input[type="text"],
.forum-compose-field > textarea:not(.serial-editor-source) {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--wine) 16%, transparent);
    border-radius: 8px;
    background: #fffdf8;
    padding: 12px 14px;
    color: var(--ink);
    font: inherit;
}

.forum-compose-field > textarea:not(.serial-editor-source) {
    resize: vertical;
    min-height: 140px;
}

.forum-compose-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.forum-error {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--wine) 18%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--wine) 8%, transparent);
    color: var(--wine);
    font-weight: 750;
}

.serial-editor-inline hr.chapter-scene-break,
.managed-rich-text hr.chapter-scene-break,
.forum-post__body hr.chapter-scene-break,
.message-body hr.chapter-scene-break,
.fiction-review-item__body hr.chapter-scene-break {
    border: 0;
    border-top: 1px solid rgba(47, 36, 31, 0.18);
    margin: 1.35rem auto;
    width: min(220px, 58%);
}

@media (max-width: 760px) {
.forum-category-card {
        flex-direction: column;
    }

.forum-category-card__meta {
        text-align: left;
    }

.forum-table__last {
        width: auto;
    }

.forum-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

.forum-post__layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

.forum-post__author {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: flex-start;
        text-align: left;
    }

.forum-post__head {
        justify-content: flex-start;
    }
}
