:root {
    --paper: #f8f6f0;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --ink: #18202b;
    --muted: #667085;
    --line: #ded8ca;
    --green: #2f6f5e;
    --wine: #7a2848;
    --gold: #d99a2b;
    --blue: #285c7e;
    --plum: #4b314f;
    --shadow: 0 18px 48px rgba(24, 32, 43, 0.12);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
}

body:has(.chaptertrail-landing-shell) {
    background-color: var(--paper);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 6px 40px;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(122, 40, 72, 0.14);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 850;
    color: var(--ink);
    text-decoration: none;
}

.site-logo__image {
    display: block;
    width: 75px;
    height: 50px;
    object-fit: contain;
}

.site-logo__mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    place-items: center;
    color: var(--wine);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
}

.site-logo__mark img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.site-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(122, 40, 72, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    cursor: pointer;
}

.site-menu-toggle span:not(.sr-only) {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a,
.site-nav-trigger,
.site-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 750;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav-trigger:hover,
.site-account-trigger:hover,
.site-nav-menu:focus-within .site-nav-trigger,
.site-nav-menu:focus-within .site-account-trigger,
.site-nav-menu:hover .site-nav-trigger,
.site-nav-menu:hover .site-account-trigger {
    background: rgba(122, 40, 72, 0.09);
    color: var(--wine);
}

.site-nav-menu {
    position: relative;
}

.site-nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 30;
    display: none;
    min-width: 245px;
    padding: 10px;
    border: 1px solid rgba(122, 40, 72, 0.14);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 24px 54px rgba(43, 31, 24, 0.16);
}

.site-nav-menu:hover .site-nav-dropdown,
.site-nav-menu:focus-within .site-nav-dropdown {
    display: grid;
    gap: 2px;
}

.site-nav-dropdown a {
    justify-content: flex-start;
    min-height: 40px;
    border-radius: 10px;
    color: var(--ink);
}

.site-nav-dropdown a:hover,
.site-nav-dropdown a:focus {
    background: rgba(47, 111, 94, 0.11);
    color: var(--green);
}

.site-account-trigger {
    min-height: 48px;
    padding: 0 13px 0 7px;
    border: 1px solid rgba(122, 40, 72, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.site-account-menu .site-nav-dropdown {
    right: 0;
    left: auto;
    min-width: 240px;
}

.site-account-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    overflow: hidden;
    place-items: center;
    border-radius: 999px;
    background: var(--green);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.site-account-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-account-copy {
    display: grid;
    gap: 1px;
    line-height: 1.05;
}

.site-account-copy span:first-child {
    max-width: 124px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-account-copy span:last-child {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
}

.site-account-dropdown a:nth-child(3),
.site-account-dropdown a:nth-child(6),
.site-account-dropdown a:nth-child(7) {
    border-top: 1px solid rgba(122, 40, 72, 0.1);
}

.site-search {
    display: flex;
    align-items: center;
    width: min(230px, 22vw);
    min-width: 150px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(47, 111, 94, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
}

.site-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 4px 0 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    outline: 0;
}

.site-search button {
    display: grid;
    width: 42px;
    height: 100%;
    place-items: center;
    border: 0;
    background: var(--green);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
}

.site-account-link {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 72px;
    align-items: center;
    width: min(var(--max-width), calc(100% - 40px));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: 96px 0 84px;
}

.landing-hero__copy {
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--wine);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.landing-hero h1 {
    max-width: 11ch;
    margin: 0 0 24px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 6.4rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.94;
}

.landing-hero p,
.split-section p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    text-decoration: none;
    font-weight: 800;
}

.button--primary {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
}

.button--secondary {
    background: rgba(255, 255, 255, 0.5);
}

.browse-page {
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.browse-page-heading {
    margin-bottom: 24px;
}

.browse-page-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.browse-page-heading p:last-child {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

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

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

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

.browse-shelf-list,
.browse-grid {
    display: grid;
    gap: 18px;
}

.browse-shelf-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
}

.browse-shelf-card__copy h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.browse-shelf-card__copy p {
    margin: 0;
    color: var(--muted);
}

.browse-shelf-card__meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    color: var(--muted);
    font-weight: 700;
    text-align: right;
}

.browse-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px 20px;
}

.discovery-filter-notice {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 18px 20px;
}

.discovery-filter-notice__copy strong {
    display: block;
    margin-bottom: 6px;
}

.discovery-filter-notice__copy p {
    margin: 0 0 12px;
    color: var(--muted);
}

.discovery-filter-notice__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discovery-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(122, 40, 72, 0.08);
    color: var(--wine);
    font-size: 0.82rem;
    font-weight: 700;
}

.discovery-filter-notice__actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.discovery-advanced-search {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px 22px;
}

.discovery-advanced-search.is-saved {
    box-shadow: inset 0 0 0 2px rgba(122, 40, 72, 0.18);
}

.discovery-advanced-search__primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.discovery-advanced-search__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.discovery-advanced-search__controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.discovery-advanced-search__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.discovery-filter-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.discovery-filter-fieldset legend {
    margin-bottom: 10px;
    font-weight: 800;
}

.discovery-filter-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.discovery-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
}

.discovery-filter-field {
    display: grid;
    gap: 6px;
}

.discovery-filter-field--wide {
    grid-column: 1 / -1;
}

.discovery-filter-field span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
}

.discovery-filter-field input,
.discovery-filter-field select {
    width: 100%;
    border: 1px solid rgba(122, 40, 72, 0.16);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.browse-search-form input {
    width: 100%;
    border: 1px solid rgba(122, 40, 72, 0.16);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
}

.browse-empty {
    padding: 24px;
    color: var(--muted);
}

.browse-list,
.browse-rise-list {
    margin-bottom: 24px;
}

.fiction-row.browse-rise-row {
    grid-template-columns: 42px 54px minmax(0, 1fr);
    align-items: start;
}

.fiction-row.browse-rise-row > .browse-rise-rank {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.fiction-row.browse-rise-row > img {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.fiction-row.browse-rise-row > .browse-rise-copy {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.browse-rise-rank {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: #efe6d2;
    color: #725115;
    font-size: 0.82rem;
    font-weight: 900;
    align-self: center;
}

.browse-pagination {
    margin: 18px 0;
}

.browse-page .browse-grid.trending-rail {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
}

@media (max-width: 860px) {
    .browse-shelf-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .browse-shelf-card__meta {
        justify-items: start;
        text-align: left;
    }

    .browse-search-form {
        grid-template-columns: 1fr;
    }

    .discovery-filter-notice,
    .discovery-advanced-search__primary,
    .discovery-advanced-search__controls {
        grid-template-columns: 1fr;
    }

    .discovery-filter-notice {
        flex-direction: column;
    }

    .discovery-filter-notice__actions {
        justify-items: start;
    }

    .discovery-advanced-search__grid {
        grid-template-columns: 1fr;
    }
}

.chaptertrail-landing-shell {
    width: min(1480px, calc(100% - 40px));
    margin: 12px auto 28px;
}

.chaptertrail-landing-shell--with-header .chaptertrail-landing-header {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(24, 32, 43, 0.04);
}

.chaptertrail-landing-header img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.chaptertrail-landing {
    width: min(1480px, calc(100% - 40px));
    margin: 12px auto 28px;
    padding: 22px 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.78) 0%, rgba(248, 244, 236, 0.58) 100%);
    backdrop-filter: blur(16px) saturate(118%);
    -webkit-backdrop-filter: blur(16px) saturate(118%);
    box-shadow:
        0 22px 54px rgba(24, 32, 43, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.chaptertrail-landing-shell .chaptertrail-landing {
    width: 100%;
    margin: 0;
}

.chaptertrail-landing--with-header {
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow:
        0 22px 54px rgba(24, 32, 43, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.chaptertrail-landing > .chaptertrail-trending,
.chaptertrail-landing > .chaptertrail-columns,
.chaptertrail-landing > .chaptertrail-random,
.chaptertrail-trending,
.chaptertrail-columns,
.chaptertrail-random {
    width: 100%;
    margin: 0;
}

.chaptertrail-trending {
    display: grid;
    gap: 16px;
    padding: 0 0 18px;
}

.chaptertrail-trending .eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
}

.chaptertrail-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.chaptertrail-section-heading h1,
.chaptertrail-section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    line-height: 1;
}

.chaptertrail-section-heading h1 {
    font-size: 3.6rem;
}

.chaptertrail-section-heading h2 {
    font-size: 2.15rem;
}

.trending-rail {
    display: grid;
    grid-template-columns: repeat(8, minmax(130px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.trend-card {
    display: grid;
    gap: 8px;
}

.trend-card a {
    position: relative;
    display: grid;
    aspect-ratio: 2 / 3;
    max-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(222, 216, 202, 0.85);
    border-radius: 8px;
    background: #16202b;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(24, 32, 43, 0.12);
}

.trend-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.92;
}

.trend-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.trend-card a > span,
.trend-card a > strong,
.trend-card a > small {
    position: relative;
    z-index: 1;
}

.trend-card__rank {
    align-self: start;
    margin: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.88);
    color: var(--wine);
    font-weight: 900;
}

.trend-card .landing-fiction-meta {
    display: grid;
    gap: 8px;
    padding: 0 2px;
}

.trend-card .landing-fiction-meta .fiction-tags--compact {
    width: 100%;
}

.trend-card strong {
    align-self: end;
    margin: auto 12px 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.05;
}

.trend-card small {
    margin: 0 12px 16px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 750;
}

.trend-card .landing-fiction-rating,
.trend-card .fiction-star-display {
    display: inline-flex;
    align-items: center;
}

.trend-card .fiction-star-display__star,
.trend-card .fiction-star-display__side {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    display: inline-block;
    place-items: initial;
}

.landing-fiction-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 8px;
}

.landing-fiction-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.landing-fiction-rating__score,
.landing-fiction-rating__count {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.fiction-tags--compact {
    margin-top: 0;
    gap: 4px;
}

.fiction-tags--compact span {
    padding: 2px 6px;
    font-size: 0.62rem;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.trend-card .fiction-tags--compact span {
    padding: 2px 5px;
    font-size: 0.58rem;
    font-weight: 700;
}

.landing-chapter-updates {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.landing-chapter-update {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    padding: 7px 10px;
    border: 1px solid rgba(122, 40, 72, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
}

.landing-chapter-update span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.landing-chapter-update:hover {
    border-color: rgba(122, 40, 72, 0.24);
    background: rgba(255, 255, 255, 0.92);
}

.fiction-row--recent .landing-fiction-meta {
    margin-top: 10px;
}

.chaptertrail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.4fr);
    gap: 18px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(222, 216, 202, 0.72);
}

.chaptertrail-list-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.fiction-update-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.fiction-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    min-height: 68px;
    padding: 8px;
    border: 1px solid rgba(222, 216, 202, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.fiction-row img {
    width: 54px;
    height: 76px;
    border-radius: 5px;
    object-fit: cover;
    background: #e7dfd0;
    align-self: center;
}

.fiction-row > small {
    align-self: center;
}

.fiction-row h3,
.random-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.12;
}

.fiction-row h3 a,
.random-card h3 a {
    text-decoration: none;
}

.fiction-row p {
    margin: 3px 0;
    color: var(--wine);
    font-size: 0.9rem;
    font-weight: 750;
}

.fiction-row__author {
    margin: 3px 0 0;
}

.fiction-row__synopsis {
    margin: 6px 0 0;
    color: #4f5960;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.fiction-row span,
.fiction-row small,
.random-card span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.fiction-row > div > span {
    display: inline-block;
    margin-top: 6px;
}

.rise-list {
    display: grid;
    gap: 2px;
    max-height: 760px;
    margin: 14px 0 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.rise-list li,
.rise-list__item {
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(222, 216, 202, 0.72);
}

.rise-list li > span,
.rise-list__rank {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: #efe6d2;
    color: #725115;
    font-size: 0.82rem;
    font-weight: 900;
}

.rise-list__cover {
    width: 42px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    background: #e7dfd0;
}

.rise-list__body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.rise-list a,
.rise-list__title {
    display: grid;
    gap: 3px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.rise-list strong,
.rise-list__title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rise-list small,
.rise-list__title small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.rise-list__body .landing-fiction-meta {
    margin-top: 0;
}

.chaptertrail-random {
    padding: 18px 0 4px;
    border-top: 1px solid rgba(222, 216, 202, 0.72);
}

.random-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.random-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    min-height: 148px;
    padding: 12px;
    border: 1px solid rgba(222, 216, 202, 0.72);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.random-card img {
    width: 88px;
    height: 132px;
    border-radius: 6px;
    object-fit: cover;
    background: #e7dfd0;
}

.random-card p {
    display: -webkit-box;
    margin: 8px 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.random-card__author {
    margin: 4px 0 0;
    color: var(--wine);
    font-size: 0.86rem;
    font-weight: 800;
}

.random-card .landing-fiction-meta {
    margin-top: 4px;
}

.discovery-public-page {
    width: min(var(--max-width), calc(100% - 40px));
    min-height: calc(100vh - 220px);
    margin: 0 auto;
    padding: 94px 0;
}

.discovery-public-page h1 {
    max-width: 12ch;
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5.2rem;
    line-height: 0.96;
}

.discovery-public-page > p:not(.eyebrow) {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.discovery-public-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.discovery-public-links a {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-weight: 800;
}

.legal-document h1 {
    max-width: none;
}

.legal-document__updated {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.legal-document__section {
    max-width: 720px;
    margin-top: 34px;
}

.legal-document__section h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1.2;
}

.legal-document__section p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.legal-document__section p:last-child {
    margin-bottom: 0;
}

.knowledge-base h1 {
    max-width: none;
}

.knowledge-base__intro {
    max-width: 720px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.knowledge-base__section {
    max-width: 760px;
    margin-top: 34px;
}

.knowledge-base__section h2 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1.2;
}

.knowledge-base__links {
    display: grid;
    gap: 10px;
}

.knowledge-base__link {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.knowledge-base__link:hover {
    border-color: rgba(122, 40, 72, 0.28);
    background: rgba(255, 253, 248, 0.95);
}

.knowledge-base__link strong {
    font-size: 1rem;
    font-weight: 850;
}

.knowledge-base__link span {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.forum-page {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 96px;
}

.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 rgba(122, 40, 72, 0.12);
    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: rgba(122, 40, 72, 0.12);
    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 rgba(122, 40, 72, 0.12);
}

.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;
}

.user-role-badge {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    line-height: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.user-role-badge--crown {
    background: radial-gradient(circle at 30% 20%, #fff6cf 0%, #f0c84b 42%, #c8941a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 3px rgba(154, 114, 9, 0.28);
}

.user-role-badge--gavel {
    background: linear-gradient(160deg, #f6ece2 0%, #dbc4a8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 3px rgba(93, 64, 55, 0.18);
}

.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__report,
.forum-post__report.content-report-trigger {
    margin: 0;
    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__report:hover,
.forum-post__report.content-report-trigger:hover {
    color: var(--green);
    text-decoration: underline;
    background: none;
}

.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 rgba(122, 40, 72, 0.28);
    border-radius: 0 8px 8px 0;
    background: rgba(122, 40, 72, 0.05);
    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 rgba(122, 40, 72, 0.14);
    border-radius: 8px;
    background: rgba(122, 40, 72, 0.04);
}

.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 rgba(122, 40, 72, 0.16);
    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;
}

.serial-editor-field > textarea.serial-editor-source,
textarea.serial-editor-source {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.serial-editor-inline .ql-tooltip input[type="text"] {
    width: 170px;
    max-width: calc(100% - 24px);
    padding: 3px 5px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.content-report-dialog {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.content-report-dialog[hidden] {
    display: none !important;
}

.content-report-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 32, 43, 0.52);
}

.content-report-dialog__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(122, 40, 72, 0.16);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 22px 24px;
}

.content-report-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.content-report-dialog__head h2 {
    margin: 0;
}

.content-report-dialog__close {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.content-report-dialog__target {
    margin: 0 0 16px;
    color: var(--muted);
    font-weight: 700;
}

.content-report-dialog__form {
    display: grid;
    gap: 16px;
}

.content-report-dialog__form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.content-report-dialog__form select,
.content-report-dialog__form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(122, 40, 72, 0.16);
    border-radius: 8px;
    background: #fffdf8;
    padding: 12px 14px;
    color: var(--ink);
    font: inherit;
}

.content-report-dialog__optional {
    color: var(--muted);
    font-weight: 700;
}

.content-report-dialog__error {
    margin: 0;
    color: #b42318;
    font-weight: 700;
}

.content-report-dialog__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body.content-report-open {
    overflow: hidden;
}

.content-report-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.content-report-notice--error {
    background: #b42318;
}

.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 rgba(122, 40, 72, 0.18);
    border-radius: 8px;
    background: rgba(122, 40, 72, 0.08);
    color: var(--wine);
    font-weight: 750;
}

.story-stack {
    position: relative;
    min-height: 520px;
}

.cover-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 260px;
    min-height: 380px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cover-card::before {
    position: absolute;
    inset: 18px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
}

.cover-card::after {
    position: absolute;
    inset: auto -60px -80px auto;
    width: 180px;
    height: 180px;
    content: "";
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.cover-card--green {
    background: linear-gradient(145deg, #2f6f5e, #193d39);
}

.cover-card--blue {
    background: linear-gradient(145deg, #285c7e, #162f55);
}

.cover-card--wine {
    background: linear-gradient(145deg, #7a2848, #4b314f);
}

.cover-card--1 {
    top: 20px;
    left: 18px;
    z-index: 3;
}

.cover-card--2 {
    top: 92px;
    right: 8px;
    z-index: 2;
}

.cover-card--3 {
    bottom: 0;
    left: 94px;
    z-index: 1;
}

.cover-card span {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cover-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    line-height: 1.02;
}

.cover-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.metric-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.metric-band div {
    padding: 24px;
    background: var(--surface);
}

.metric-band strong {
    display: block;
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    line-height: 1;
}

.metric-band span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 750;
}

.cms-section {
    padding: 56px 48px;
}

.cms-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.cms-columns {
    display: grid;
    gap: 32px;
}

.cms-columns--one {
    grid-template-columns: 1fr;
}

.cms-columns--two_equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fiction-rating-review textarea {
    min-height: 140px;
}

.serial-editor-field {
    position: relative;
    display: block;
}

.serial-editor-inline {
    background: #fffdf8;
    border: 1px solid #e7ddd1;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(47, 36, 31, 0.08);
    overflow: visible;
}

.serial-editor-inline > .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e7ddd1;
    border-radius: 12px 12px 0 0;
    background: rgba(246, 240, 234, 0.85);
    box-sizing: border-box;
    line-height: 1.4;
    padding: 8px;
    position: relative;
    z-index: 2;
}

.serial-editor-inline > .ql-container.ql-snow {
    border: 0;
    border-radius: 0 0 12px 12px;
    font-size: 1.02rem;
    line-height: 1.72;
    font-family: Georgia, "Times New Roman", serif;
    color: #2f241f;
    overflow: hidden;
}

.serial-editor-inline .ql-container .ql-tooltip:not(.ql-editing) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-formats {
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.serial-editor-inline .ql-toolbar.ql-snow button {
    width: 28px;
    height: 24px;
    padding: 3px 5px;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker {
    display: inline-block;
    float: none;
    height: 24px;
    vertical-align: middle;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-label {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 24px;
    padding: 2px 8px;
    color: var(--ink);
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker:not(.ql-expanded) .ql-picker-options {
    display: none;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-options {
    z-index: 3;
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-stroke {
    stroke: var(--ink);
}

.serial-editor-inline .ql-toolbar.ql-snow .ql-fill {
    fill: var(--ink);
}

.serial-editor-inline .ql-toolbar.ql-snow button:hover,
.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-label:hover {
    color: var(--blue);
}

.serial-editor-inline .ql-toolbar.ql-snow button.ql-active,
.serial-editor-inline .ql-toolbar.ql-snow .ql-picker-label.ql-active {
    color: var(--blue);
}

.serial-editor-inline .ql-editor {
    min-height: inherit;
    padding: 16px 18px 20px;
}

.serial-editor-inline .ql-editor p {
    margin: 0 0 0.95em;
}

.serial-editor-inline .ql-toolbar .ql-sceneBreak {
    font-size: 1rem;
    line-height: 1;
}

.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%);
}

.managed-rich-text {
    font-size: 1.05rem;
    line-height: 1.75;
}

.managed-rich-text > *:first-child {
    margin-top: 0;
}

.managed-rich-text > *:last-child {
    margin-bottom: 0;
}

.shelf,
.split-section,
.author-platform-section,
.principles-section,
.final-cta {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0;
}

.shelf--quiet {
    padding-top: 24px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading h2,
.split-section h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    letter-spacing: 0;
    line-height: 1.02;
}

.text-link {
    color: var(--green);
    font-weight: 850;
    text-decoration: none;
}

.story-grid,
.author-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.story-card,
.author-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.story-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 22px;
}

.story-card__tag,
.admin-badge {
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 5px;
    background: #efe6d2;
    color: #725115;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.story-card h3 {
    margin: 24px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.05;
}

.story-card h3 a,
.author-card h3 a {
    text-decoration: none;
}

.story-card__author {
    margin: 0 0 16px;
    color: var(--wine);
    font-weight: 700;
}

.story-card p:not(.story-card__author) {
    color: var(--muted);
    line-height: 1.65;
}

.story-card span:last-child {
    margin-top: auto;
    color: var(--blue);
    font-size: 0.86rem;
    font-weight: 750;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: 36px;
    align-items: center;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-list a {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    text-decoration: none;
    font-weight: 850;
}

.ranking-list span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.author-platform-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: center;
}

.author-platform-section__copy h2,
.principles-section h2,
.final-cta h2 {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    letter-spacing: 0;
    line-height: 1.04;
}

.author-platform-section__copy p,
.final-cta p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.pricing-card,
.principle-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.pricing-card {
    padding: 28px;
    box-shadow: var(--shadow);
}

.pricing-card span {
    color: var(--wine);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-card strong {
    display: block;
    margin: 10px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.5rem;
    line-height: 1;
}

.pricing-card p,
.principle-card p {
    color: var(--muted);
    line-height: 1.65;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.principle-card {
    min-height: 210px;
    padding: 22px;
}

.principle-card h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.08;
}

.author-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
}

.author-card__avatar {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 850;
}

.author-card h3 {
    margin: 0 0 6px;
}

.author-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 36px 56px;
    background: var(--ink);
    color: #ffffff;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 420px;
}

.site-footer__logo {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(190px, 25vw);
    max-height: 50px;
    object-fit: contain;
}

.site-footer__brand p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 750;
}

.discovery-author-body {
    min-height: 100vh;
    background: #f5f0e7;
}

.discovery-author-page {
    width: min(980px, calc(100% - 48px));
    margin: 0 auto;
    padding: 74px 0 96px;
}

.discovery-author-page h1 {
    max-width: 780px;
    margin: 0;
    color: #172026;
    font-size: 4.6rem;
    line-height: 0.96;
}

.discovery-author-page .lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: #516169;
    font-size: 1.35rem;
}

.author-profile-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
}

.author-profile-avatar {
    display: block;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    overflow: hidden;
    border-radius: 999px;
    object-fit: cover;
    background: var(--green);
    color: #ffffff;
}

.author-profile-avatar--initial {
    display: grid;
    place-items: center;
    font-size: 2.8rem;
    font-weight: 900;
}

.author-profile-body {
    max-width: 760px;
    margin-top: 28px;
    color: #2c3940;
    font-size: 1.1rem;
}

.author-profile-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.author-profile-social a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-weight: 800;
}

.author-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.profile-page {
    width: min(1080px, calc(100% - 48px));
}

.profile-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.profile-main {
    min-width: 0;
}

.profile-hero {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    margin-bottom: 30px;
}

.profile-avatar {
    display: block;
    width: 128px;
    height: 128px;
    overflow: hidden;
    border-radius: 999px;
    object-fit: cover;
    background: var(--green);
    color: #ffffff;
}

.profile-avatar--initial {
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 900;
}

.profile-hero-copy h1 {
    font-size: clamp(3rem, 8vw, 5rem);
}

.profile-grid {
    display: grid;
    gap: 18px;
}

.profile-panel {
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.74);
    padding: 24px;
    box-shadow: 0 16px 42px rgba(24, 32, 43, 0.06);
}

.profile-panel h2 {
    margin: 0 0 18px;
    color: #1f365d;
    font-size: 1.18rem;
}

.profile-info-list,
.profile-stat-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-info-list div,
.profile-stat-list div {
    display: grid;
    grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid rgba(31, 54, 93, 0.09);
}

.profile-info-list div:first-child,
.profile-stat-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.profile-info-list dt,
.profile-stat-list dt {
    color: rgba(31, 54, 93, 0.72);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-info-list dd,
.profile-stat-list dd {
    margin: 0;
    color: #172026;
    font-weight: 750;
}

.profile-muted,
.profile-empty {
    color: #667085;
}

.profile-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.profile-panel-heading h2 {
    margin: 0;
}

.profile-panel-heading a,
.profile-fiction-row h3 a {
    color: #1f365d;
    text-decoration: none;
    font-weight: 850;
}

.profile-fiction-list {
    display: grid;
    gap: 14px;
}

.profile-fiction-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.profile-fiction-row img {
    display: block;
    width: 76px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    object-fit: cover;
}

.profile-fiction-row h3 {
    margin: 0;
    color: #172026;
}

.profile-fiction-row p {
    margin: 6px 0;
    color: #516169;
}

.profile-fiction-row small {
    color: #1f365d;
    font-weight: 800;
}

.account-layout {
    display: grid;
    width: min(1120px, calc(100% - 48px));
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0 auto;
    padding: 76px 0 92px;
}

.account-sidebar {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(31, 54, 93, 0.12);
    border-radius: 12px;
    background: #efe3c6;
    color: #1f365d;
    box-shadow: 0 18px 44px rgba(24, 32, 43, 0.06);
}

.account-sidebar nav {
    display: grid;
    gap: 6px;
}

.account-sidebar a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #1f365d;
    text-decoration: none;
    font-weight: 850;
}

.account-sidebar a:hover,
.account-sidebar a.is-active {
    background: rgba(31, 54, 93, 0.12);
}

.account-main {
    min-width: 0;
}

.account-page-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.account-page-heading h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 4.4rem);
    line-height: 0.98;
}

.account-page-heading p:last-child {
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.65;
}

.account-card,
.account-empty-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.88);
    box-shadow: var(--shadow);
}

.account-empty-card {
    padding: 28px;
}

.account-empty-card h2,
.account-card h2 {
    margin: 0 0 10px;
    color: #1f365d;
}

.account-library-list {
    display: grid;
    gap: 14px;
}

.account-library-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.88);
    box-shadow: 0 14px 34px rgba(24, 32, 43, 0.05);
}

.account-library-cover img {
    display: block;
    width: 82px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    object-fit: cover;
}

.account-library-copy h2 {
    margin: 0 0 6px;
}

.account-library-copy h2 a {
    color: #1f365d;
    text-decoration: none;
}

.account-library-copy p {
    margin: 0 0 8px;
    color: #516169;
}

.account-library-copy small {
    color: #1f365d;
    font-weight: 800;
}

.message-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.message-tabs a {
    padding: 9px 13px;
    border: 1px solid rgba(31, 54, 93, 0.14);
    border-radius: 999px;
    color: #1f365d;
    text-decoration: none;
    font-weight: 850;
}

.message-tabs a.is-active {
    background: #1f365d;
    color: #ffffff;
}

.message-layout {
    display: grid;
    gap: 18px;
}

.message-list,
.message-compose,
.message-detail {
    padding: 20px;
}

.message-list {
    display: grid;
    gap: 0;
}

.message-list-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.32fr) minmax(160px, 0.42fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid rgba(31, 54, 93, 0.09);
    color: var(--ink);
    text-decoration: none;
}

.message-list-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.message-list-row.is-unread strong,
.message-list-row.is-unread .message-list-person {
    color: #1f365d;
    font-weight: 950;
}

.message-list-row span {
    color: #516169;
}

.message-list-row time {
    color: var(--muted);
    font-size: 0.86rem;
}

.message-compose form,
.message-detail + .message-compose form {
    display: grid;
    gap: 14px;
}

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

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

.message-compose input[type="text"],
.message-compose textarea:not(.serial-editor-source) {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.message-compose input[type="text"] {
    padding: 11px 12px;
}

.message-compose textarea:not(.serial-editor-source) {
    padding: 12px;
    resize: vertical;
}

.message-compose-to {
    margin: 0;
    color: #1f365d;
}

.account-form-actions {
    display: flex;
    justify-content: flex-end;
}

.message-body {
    color: #172026;
    font-size: 1.04rem;
    line-height: 1.75;
}

.message-parent {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(31, 54, 93, 0.12);
    border-radius: 8px;
    background: rgba(239, 227, 198, 0.55);
}

.message-parent summary {
    cursor: pointer;
    color: #1f365d;
    font-weight: 900;
}

.author-work-list {
    display: grid;
    gap: 16px;
    margin-top: 34px;
}

.author-work-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.author-work-card,
.author-empty-state {
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 22px;
}

.author-work-card__cover {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #1f2a35;
}

.author-work-card__cover img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.author-work-card h2,
.author-empty-state h2 {
    margin: 0;
    color: #172026;
}

.author-work-card h2 a {
    color: inherit;
    text-decoration: none;
}

.author-work-card h3 {
    margin: 4px 0 0;
    color: #516169;
    font-size: 1rem;
}

.author-work-card p:last-child,
.author-empty-state p:last-child {
    margin-bottom: 0;
}

.author-work-card__meta {
    color: #516169;
    font-weight: 800;
}

.fiction-detail-page,
.chapter-reader-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 92px;
}

.fiction-detail-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.fiction-detail-cover {
    overflow: hidden;
    border-radius: 8px;
    background: #1f2a35;
    box-shadow: 0 22px 58px rgba(23, 32, 38, 0.22);
}

.fiction-detail-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.author-book-cover {
    position: relative;
    overflow: hidden;
}

.author-book-cover > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-book-cover__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.16) 42%, rgba(15, 23, 42, 0.62));
}

.author-book-cover__title {
    position: absolute;
    top: 9%;
    left: 50%;
    z-index: 2;
    display: grid;
    gap: 6px;
    width: 84%;
    color: #7a4a18;
    text-align: center;
    text-shadow: 0 1px 14px rgba(255, 249, 232, 0.88);
    transform: translateX(-50%);
}

.author-book-cover__title span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
    font-weight: 900;
    line-height: 0.96;
}

.author-book-cover__title small {
    font-size: 1rem;
    font-weight: 850;
}

.author-book-cover > strong {
    position: absolute;
    right: 18px;
    bottom: 20px;
    left: 18px;
    z-index: 2;
    color: #f8ead1;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(15, 23, 42, 0.72);
}

.fiction-detail-cover.author-book-cover {
    aspect-ratio: 2 / 3;
}

.fiction-detail-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #172026;
    font-size: 4.2rem;
    line-height: 0.98;
}

.fiction-subtitle,
.fiction-author,
.fiction-synopsis {
    max-width: 760px;
    color: #516169;
}

.fiction-subtitle {
    margin: 14px 0 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.fiction-author {
    margin: 16px 0 0;
    font-weight: 800;
}

.fiction-author a {
    color: #2f6f60;
    text-decoration: none;
}

.fiction-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    max-width: 860px;
    margin: 28px 0 0;
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 8px;
    background: rgba(23, 32, 38, 0.13);
}

.fiction-stat-grid div {
    background: rgba(255, 255, 255, 0.82);
    padding: 14px;
}

.fiction-stat-grid dt {
    color: #516169;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.fiction-stat-grid dd {
    margin: 6px 0 0;
    color: #172026;
    font-size: 1.45rem;
    font-weight: 900;
}

.fiction-stat-grid small {
    margin-left: 2px;
    color: #516169;
    font-size: 0.78rem;
}

.fiction-synopsis {
    margin: 28px 0 0;
    font-size: 1.08rem;
}

.fiction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.fiction-tags span {
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    padding: 7px 11px;
    color: #2c3940;
    font-size: 0.88rem;
    font-weight: 850;
}

.fiction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.fiction-actions form {
    margin: 0;
}

.fiction-actions .button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.fiction-chapter-panel {
    margin-top: 54px;
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    padding: 26px;
}

.fiction-chapter-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.fiction-chapter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(23, 32, 38, 0.1);
    border-radius: 7px;
    background: #ffffff;
    padding: 13px 15px;
    color: #172026;
    text-decoration: none;
}

.fiction-chapter-list span {
    font-weight: 850;
}

.fiction-chapter-list small,
.fiction-empty-chapter {
    color: #516169;
    font-weight: 750;
}

.chapter-reader-page {
    width: min(880px, calc(100% - 48px));
}

.chapter-reader-header {
    text-align: center;
}

.chapter-reader-header h1 {
    margin: 8px 0 0;
    color: #172026;
    font-size: 3.3rem;
    line-height: 1.05;
}

.chapter-reader-header p:last-child {
    color: #516169;
    font-weight: 800;
}

.chapter-reader-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 30px 0;
}

.chapter-reader-nav a,
.chapter-reader-nav-disabled {
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 7px;
    background: #ffffff;
    padding: 10px 14px;
    color: #172026;
    text-align: center;
    text-decoration: none;
    font-weight: 850;
}

.chapter-reader-nav-disabled {
    display: block;
    cursor: not-allowed;
    color: #8a969d;
    background: rgba(255, 255, 255, 0.45);
}

.chapter-reader-nav a:first-child,
.chapter-reader-nav-disabled:first-child {
    justify-self: start;
}

.chapter-reader-nav a:last-child,
.chapter-reader-nav-disabled:last-child {
    justify-self: end;
}

.chapter-author-note {
    margin: 24px 0;
    border: 1px solid rgba(122, 40, 72, 0.13);
    border-radius: 8px;
    background: rgba(239, 227, 198, 0.7);
    padding: 22px 26px;
    color: #1f365d;
}

.chapter-author-note .eyebrow {
    margin-bottom: 10px;
    color: #7a2848;
}

.chapter-author-note > div {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.04rem;
    line-height: 1.65;
}

.chapter-author-note p:last-child {
    margin-bottom: 0;
}

.chapter-reader-body {
    border: 1px solid rgba(23, 32, 38, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: clamp(24px, 5vw, 58px);
    color: #1f2a35;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
    line-height: 1.78;
}

.chapter-reader-body p:first-child {
    margin-top: 0;
}

.chapter-reader-body p:last-child {
    margin-bottom: 0;
}

.chapter-reader-body hr {
    border: 0;
    border-top: 1px solid rgba(23, 32, 38, 0.18);
    margin: 2.2rem auto;
    width: min(240px, 60%);
    height: 0;
}

.chapter-reader-body h1,
.chapter-reader-body h2,
.chapter-reader-body h3 {
    margin: 1.4em 0 0.7em;
    line-height: 1.25;
    font-family: Georgia, "Times New Roman", serif;
}

.chapter-reader-body h1 {
    font-size: 1.8rem;
}

.chapter-reader-body h2 {
    font-size: 1.45rem;
}

.chapter-reader-body h3 {
    font-size: 1.2rem;
}

.chapter-reader-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6rem auto;
    border-radius: 8px;
}

.chapter-reader-body a {
    color: #3158d8;
    text-decoration: underline;
}

.chapter-reader-body blockquote {
    margin: 1.2rem 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(23, 32, 38, 0.18);
    color: #425466;
}

.chapter-reader-body .ql-align-center,
.chapter-reader-body p[style*="text-align: center"],
.chapter-reader-body h1[style*="text-align: center"],
.chapter-reader-body h2[style*="text-align: center"],
.chapter-reader-body h3[style*="text-align: center"] {
    text-align: center;
}

.chapter-reader-body .ql-align-right,
.chapter-reader-body p[style*="text-align: right"],
.chapter-reader-body h1[style*="text-align: right"],
.chapter-reader-body h2[style*="text-align: right"],
.chapter-reader-body h3[style*="text-align: right"] {
    text-align: right;
}

.chapter-reader-body .ql-align-justify,
.chapter-reader-body p[style*="text-align: justify"],
.chapter-reader-body h1[style*="text-align: justify"],
.chapter-reader-body h2[style*="text-align: justify"],
.chapter-reader-body h3[style*="text-align: justify"] {
    text-align: justify;
}

@media (max-width: 1040px) {
    .landing-hero,
    .author-platform-section,
    .chaptertrail-columns,
    .fiction-detail-hero {
        grid-template-columns: 1fr;
    }

    .trending-rail,
    .random-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trend-card a {
        min-height: 280px;
        max-height: none;
    }

    .landing-hero {
        min-height: auto;
    }

    .story-stack {
        min-height: 430px;
        max-width: 620px;
    }
}

@media (max-width: 760px) {
    .site-header,
    .cms-section,
    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-header {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .site-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        padding: 8px 0 4px;
    }

    .site-header.is-menu-open .site-nav {
        display: flex;
    }

    .site-nav-menu,
    .site-search {
        width: 100%;
    }

    .site-nav a,
    .site-nav-trigger,
    .site-account-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav-dropdown {
        position: static;
        width: 100%;
        margin-top: 4px;
        box-shadow: none;
    }

    .site-search {
        max-width: none;
    }

    .landing-hero,
    .split-section,
    .author-platform-section,
    .story-grid,
    .author-grid,
    .principle-grid,
    .metric-band,
    .trending-rail,
    .random-grid {
        grid-template-columns: 1fr;
    }

    .chaptertrail-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-hero,
    .profile-layout,
    .account-layout,
    .profile-info-list div,
    .profile-stat-list div,
    .account-library-row,
    .message-list-row {
        grid-template-columns: 1fr;
    }

    .account-layout {
        width: min(100% - 32px, 1120px);
        padding-top: 44px;
    }

    .account-sidebar {
        position: static;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .profile-panel {
        padding: 20px;
    }

    .chaptertrail-landing-shell {
        width: min(100% - 24px, 1480px);
        margin: 8px auto 20px;
    }

    .chaptertrail-landing-shell--with-header .chaptertrail-landing-header {
        border-radius: 14px 14px 0 0;
    }

    .chaptertrail-landing {
        width: min(100% - 24px, 1480px);
        margin: 8px auto 20px;
        padding: 16px 14px 18px;
        border-radius: 14px;
    }

    .chaptertrail-landing-shell .chaptertrail-landing {
        width: 100%;
        margin: 0;
    }

    .chaptertrail-landing--with-header {
        border-radius: 0 0 14px 14px;
    }

    .chaptertrail-trending {
        padding-bottom: 12px;
    }

    .chaptertrail-section-heading h1 {
        font-size: 2.6rem;
    }

    .chaptertrail-section-heading h2 {
        font-size: 1.85rem;
    }

    .trend-card a {
        min-height: 240px;
        max-height: none;
    }

    .fiction-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .fiction-row > small {
        grid-column: 2;
    }

    .fiction-row.browse-rise-row {
        grid-template-columns: 34px 48px minmax(0, 1fr);
    }

    .fiction-row.browse-rise-row > .browse-rise-rank {
        grid-column: 1;
        grid-row: 1;
    }

    .fiction-row.browse-rise-row > img {
        grid-column: 2;
        grid-row: 1;
    }

    .fiction-row.browse-rise-row > .browse-rise-copy {
        grid-column: 3;
        grid-row: 1;
    }

    .random-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .random-card img {
        width: 78px;
        height: 117px;
    }

    .fiction-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .author-work-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .fiction-detail-copy h1,
    .chapter-reader-header h1 {
        font-size: 2.75rem;
    }

    .chapter-reader-nav {
        grid-template-columns: 1fr;
    }

    .chapter-reader-nav a:first-child,
    .chapter-reader-nav a:last-child,
    .chapter-reader-nav-disabled:first-child,
    .chapter-reader-nav-disabled:last-child {
        justify-self: stretch;
    }

    .landing-hero {
        min-height: auto;
        padding-top: 48px;
        gap: 34px;
    }

    .landing-hero h1 {
        font-size: 3.8rem;
    }

    .discovery-public-page h1 {
        font-size: 3.4rem;
    }

    .story-stack {
        min-height: auto;
        display: grid;
        gap: 14px;
    }

    .cover-card {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 250px;
    }

    .cms-columns--two_equal {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .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;
    }
}

.site-login-link {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.52);
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 24px;
}

.login-modal.is-open {
    display: grid;
}

.login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 32, 43, 0.44);
    backdrop-filter: blur(10px);
}

.login-modal__panel {
    position: relative;
    width: min(460px, 100%);
    padding: 30px;
    border: 1px solid rgba(222, 216, 202, 0.96);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 28px 80px rgba(24, 32, 43, 0.28);
}

.login-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.login-modal__intro h2 {
    max-width: 10ch;
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.7rem;
    line-height: 0.98;
}

.login-modal__intro p:last-child {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.65;
}

.login-modal__error {
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid rgba(122, 40, 72, 0.28);
    border-radius: 8px;
    background: rgba(122, 40, 72, 0.08);
    color: var(--wine);
    font-weight: 750;
}

.login-modal__notice {
    margin-bottom: 16px;
    padding: 11px 12px;
    border-radius: 8px;
    font-weight: 750;
}

.login-modal__notice.is-success {
    border: 1px solid rgba(47, 111, 94, 0.24);
    background: rgba(47, 111, 94, 0.1);
    color: var(--green);
}

.login-modal__social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.login-modal__social a,
.login-modal__social button,
.login-modal__social-link {
    display: grid;
    place-items: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.login-modal__social-link--google:not(:disabled) {
    border-color: rgba(66, 133, 244, 0.35);
    color: #1a73e8;
}

.login-modal__social-link--facebook:not(:disabled) {
    border-color: rgba(24, 119, 242, 0.35);
    color: #1877f2;
}

.login-modal__social button:disabled,
.login-modal__social-link:disabled {
    opacity: 0.54;
    cursor: not-allowed;
}

.login-modal__form {
    display: grid;
    gap: 14px;
}

.login-modal__form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
}

.login-modal__form input {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.login-modal__form input:focus {
    outline: 3px solid rgba(47, 111, 94, 0.18);
    border-color: var(--green);
}

.login-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.login-modal__actions .button {
    justify-content: center;
}

.login-modal__submit {
    justify-content: center;
    margin-top: 4px;
    cursor: pointer;
}

.login-modal__submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.login-modal__switch {
    display: block;
    width: 100%;
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    text-align: center;
}

.login-modal-open {
    overflow: hidden;
}

.login-direct-content {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 80px 24px;
}

.login-direct-copy {
    width: min(680px, 100%);
    text-align: center;
}

.login-direct-copy h1 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4rem;
    line-height: 1;
}

.login-direct-copy p:last-child {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.login-direct-notice {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 750;
}

.login-direct-notice.is-success {
    border: 1px solid rgba(47, 111, 94, 0.24);
    background: rgba(47, 111, 94, 0.1);
    color: var(--green);
}

.login-direct-notice.is-error {
    border: 1px solid rgba(122, 40, 72, 0.24);
    background: rgba(122, 40, 72, 0.1);
    color: var(--wine);
}

.account-settings-page {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 92px;
}

.account-settings-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.account-settings-heading h1 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.4rem;
    line-height: 0.98;
}

.account-settings-heading p:last-child {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.account-settings-alert {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.account-settings-alert.is-success {
    border: 1px solid rgba(47, 111, 94, 0.24);
    background: rgba(47, 111, 94, 0.1);
    color: var(--green);
}

.account-settings-alert.is-error {
    border: 1px solid rgba(122, 40, 72, 0.24);
    background: rgba(122, 40, 72, 0.1);
    color: var(--wine);
}

.account-settings-form {
    display: grid;
    gap: 18px;
}

.account-settings-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.88);
    box-shadow: var(--shadow);
}

.account-settings-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.account-settings-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.account-settings-card label {
    display: grid;
    gap: 8px;
    font-weight: 850;
}

.account-settings-card input[type="url"],
.account-settings-card input[type="email"],
.account-settings-card input[type="file"],
.account-settings-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.account-settings-card input[type="url"],
.account-settings-card input[type="email"],
.account-settings-card textarea {
    padding: 12px;
}

.account-settings-card input[type="file"] {
    padding: 10px;
}

.account-settings-card textarea {
    resize: vertical;
}

.account-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.avatar-settings {
    display: grid;
    gap: 14px;
}

.avatar-current {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: var(--green);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
}

.avatar-current img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-crop-help {
    font-size: 0.92rem;
}

.avatar-crop-help.is-error {
    color: var(--wine);
    font-weight: 850;
}

.avatar-cropper {
    position: relative;
    width: min(420px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111827;
}

.avatar-cropper img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
}

.avatar-crop-box {
    position: absolute;
    border: 2px solid #ffffff;
    background: rgba(47, 111, 94, 0.16);
    box-shadow: 0 0 0 999px rgba(17, 24, 39, 0.56);
    cursor: move;
    touch-action: none;
}

.account-check-list {
    display: grid;
    gap: 12px;
}

.account-check-list label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.account-check-list input {
    margin-top: 3px;
}

.account-settings-actions {
    display: flex;
    justify-content: flex-end;
}

.account-settings-delete-form {
    margin-top: 18px;
}

.account-settings-card--danger {
    border-color: rgba(122, 40, 72, 0.28);
    background: rgba(122, 40, 72, 0.04);
}

.account-settings-delete-fields {
    display: grid;
    gap: 14px;
    align-content: start;
}

.account-settings-delete-button {
    justify-self: start;
    border: 1px solid rgba(122, 40, 72, 0.35);
    background: rgba(122, 40, 72, 0.12);
    color: var(--wine);
    font-weight: 850;
}

.account-settings-delete-button:hover {
    background: rgba(122, 40, 72, 0.18);
}

.support-ticket-card,
.support-ticket-fields {
    display: grid;
    gap: 14px;
}

.support-ticket-fields label {
    display: grid;
    gap: 8px;
    font-weight: 850;
}

.support-ticket-fields input[type="text"],
.support-ticket-fields input[type="email"],
.support-ticket-fields textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.support-ticket-fields textarea {
    resize: vertical;
}

.support-ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 760px) {
    .login-modal__panel {
        padding: 24px;
    }

    .login-modal__intro h2,
    .login-direct-copy h1,
    .account-settings-heading h1 {
        font-size: 2.6rem;
    }

    .login-modal__social {
        grid-template-columns: 1fr;
    }

    .account-settings-card,
    .account-settings-grid {
        grid-template-columns: 1fr;
    }
}

.chaptertrail-error-body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.chaptertrail-error-header {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 6px 40px;
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid rgba(122, 40, 72, 0.14);
}

.chaptertrail-error-page {
    display: grid;
    place-items: center;
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(48px, 10vw, 96px) 0;
}

.chaptertrail-error-page--illustrated {
    width: min(var(--chaptertrail-error-art-width, 1920px), calc(100% - 24px));
    padding: clamp(16px, 3vw, 40px) 0;
}

.chaptertrail-error-card {
    width: min(760px, 100%);
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.chaptertrail-error-card--illustrated {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-color: rgba(122, 40, 72, 0.16);
    background: #fffdf8;
}

.chaptertrail-error-art {
    margin: 0;
    line-height: 0;
}

.chaptertrail-error-illustration {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.chaptertrail-error-card--illustrated .chaptertrail-error-card-body {
    padding: clamp(14px, 2.5vw, 22px) clamp(16px, 3vw, 24px) clamp(18px, 3vw, 24px);
}

.chaptertrail-error-card h1 {
    margin: 0 0 18px;
    max-width: 14ch;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    line-height: 0.98;
}

.chaptertrail-error-card--illustrated .chaptertrail-error-message,
.chaptertrail-error-card--illustrated .chaptertrail-error-hint {
    text-align: center;
}

.chaptertrail-error-message {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.65;
}

.chaptertrail-error-hint {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.chaptertrail-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.chaptertrail-error-card--illustrated .chaptertrail-error-actions {
    justify-content: center;
    margin-top: clamp(14px, 2.5vw, 20px);
}

.chaptertrail-error-footer {
    padding: 24px 40px 32px;
    border-top: 1px solid rgba(122, 40, 72, 0.12);
    color: var(--muted);
    font-size: 0.92rem;
}

.chaptertrail-error-footer__brand {
    justify-content: center;
    flex: 0 1 auto;
    margin: 0 auto;
}

.chaptertrail-error-footer__brand p {
    color: var(--muted);
}

@media (max-width: 720px) {
    .chaptertrail-error-header {
        padding: 6px 20px;
    }

    .chaptertrail-error-actions {
        flex-direction: column;
    }

    .chaptertrail-error-actions .button {
        justify-content: center;
        width: 100%;
    }
}


/* Fiction star ratings */
.fiction-actions .button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.fiction-rating-panel {
    margin-top: 42px;
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    padding: 26px;
}

.fiction-rating-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fiction-rating-panel-head h2 {
    margin: 4px 0 0;
    color: #172026;
    font-size: 1.45rem;
}

.fiction-rating-panel-summary {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #516169;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

.fiction-rating-panel-summary__value {
    color: #172026;
}

.fiction-rating-notice {
    margin: 0 0 16px;
    border: 1px solid rgba(31, 54, 93, 0.14);
    border-radius: 8px;
    background: rgba(239, 227, 198, 0.55);
    padding: 12px 14px;
    color: #1f365d;
    font-weight: 750;
}

.fiction-rating-muted {
    margin: 0;
    color: #516169;
    font-weight: 750;
}

.fiction-rating-muted a {
    color: #1f365d;
    font-weight: 850;
}

.fiction-rating-form {
    display: grid;
    gap: 16px;
}

.fiction-star-display {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.fiction-star-display__star {
    font-size: 1.05rem;
    line-height: 1;
}

.fiction-star-display__star--full {
    color: #c9a227;
}

.fiction-star-display__star--empty {
    color: rgba(23, 32, 38, 0.18);
}

.fiction-star-display__star--split {
    display: inline-block;
    position: relative;
    width: 1.05rem;
    height: 1.05rem;
    font-size: 1.05rem;
    line-height: 1.05rem;
    vertical-align: middle;
}

.fiction-star-display__side {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.fiction-star-display__side--left {
    left: 0;
    color: #c9a227;
}

.fiction-star-display__side--left span {
    display: block;
    width: 1.05rem;
}

.fiction-star-display__side--right {
    right: 0;
    color: #4f7cff;
}

.fiction-star-display__side--right span {
    display: block;
    width: 1.05rem;
    margin-left: calc(-1.05rem / 2);
}

.fiction-star-rating {
    display: inline-flex;
    align-items: center;
}

.fiction-star-rating--input {
    gap: 2px;
}

.fiction-star-rating__unit {
    position: relative;
    display: inline-block;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.85rem;
    line-height: 1.85rem;
}

.fiction-star-rating__glyph {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fiction-star-rating__side {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    color: rgba(23, 32, 38, 0.18);
    transition: color 0.12s ease;
}

.fiction-star-rating__side--left {
    left: 0;
}

.fiction-star-rating__side--left span {
    display: block;
    width: 1.85rem;
}

.fiction-star-rating__side--right {
    right: 0;
}

.fiction-star-rating__side--right span {
    display: block;
    width: 1.85rem;
    margin-left: calc(-1.85rem / 2);
}

.fiction-star-rating__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fiction-star-rating__hit {
    position: absolute;
    top: 0;
    z-index: 1;
    width: 50%;
    height: 100%;
    cursor: pointer;
}

.fiction-star-rating__hit--left {
    left: 0;
}

.fiction-star-rating__hit--right {
    right: 0;
}

.fiction-star-rating__unit.is-full .fiction-star-rating__side {
    color: #c9a227;
}

.fiction-star-rating__unit.is-partial .fiction-star-rating__side--left {
    color: #c9a227;
}

.fiction-star-rating__unit.is-partial .fiction-star-rating__side--right {
    color: #4f7cff;
}

.fiction-star-rating__unit.is-empty .fiction-star-rating__side {
    color: rgba(23, 32, 38, 0.18);
}

.fiction-star-rating__input:focus-visible + .fiction-star-rating__hit {
    outline: 2px solid rgba(31, 54, 93, 0.35);
    outline-offset: 1px;
}

.fiction-rating-review summary {
    color: #1f365d;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 850;
    list-style: none;
}

.fiction-rating-review summary::-webkit-details-marker {
    display: none;
}

.fiction-rating-review[open] summary {
    margin-bottom: 12px;
}

.fiction-rating-review label {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 850;
}

.fiction-rating-review input,
.fiction-rating-review textarea {
    width: 100%;
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 8px;
    background: #ffffff;
    padding: 12px 14px;
    color: #172026;
    font: inherit;
}

.fiction-rating-review textarea {
    resize: vertical;
}

.fiction-rating-form-actions {
    display: flex;
    justify-content: flex-start;
}

.fiction-rating-current {
    margin: 12px 0 0;
    color: #516169;
    font-size: 0.88rem;
    font-weight: 750;
}

.fiction-rating-review-intro {
    margin: 0 0 16px;
    color: #516169;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.5;
}

.fiction-rating-required {
    color: #8b2942;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fiction-detail-cover-column {
    display: grid;
    gap: 22px;
}

.fiction-cover-scores {
    display: grid;
    gap: 18px;
    text-align: center;
}

.fiction-cover-scores__overall {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.fiction-cover-scores__rows {
    display: grid;
    gap: 14px;
}

.fiction-cover-scores__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.fiction-cover-scores__cell {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.fiction-cover-scores__label {
    color: #516169;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fiction-cover-scores__label--overall {
    color: #172026;
    font-size: 0.88rem;
}

.fiction-cover-scores__meta {
    margin: 0;
    color: #516169;
    font-size: 0.82rem;
    font-weight: 750;
}

.fiction-star-display--lg .fiction-star-display__star {
    font-size: 1.85rem;
}

.fiction-star-display--lg .fiction-star-display__star--split {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.85rem;
    line-height: 1.85rem;
}

.fiction-star-display--lg .fiction-star-display__side {
    height: 1.85rem;
}

.fiction-star-display--lg .fiction-star-display__side--left span,
.fiction-star-display--lg .fiction-star-display__side--right span {
    width: 1.85rem;
}

.fiction-star-display--lg .fiction-star-display__side--right {
    margin-left: calc(-1.85rem / 2);
}

.fiction-star-display--lg .fiction-star-display__side--right span {
    margin-left: calc(-1.85rem / 2);
}

.fiction-star-display--sm .fiction-star-display__star {
    font-size: 0.92rem;
}

.fiction-star-display--sm .fiction-star-display__star--split {
    width: 0.92rem;
    height: 0.92rem;
    font-size: 0.92rem;
    line-height: 0.92rem;
}

.fiction-star-display--sm .fiction-star-display__side {
    height: 0.92rem;
}

.fiction-star-display--sm .fiction-star-display__side--left span,
.fiction-star-display--sm .fiction-star-display__side--right span {
    width: 0.92rem;
}

.fiction-star-display--sm .fiction-star-display__side--right {
    margin-left: calc(-0.92rem / 2);
}

.fiction-star-display--sm .fiction-star-display__side--right span {
    margin-left: calc(-0.92rem / 2);
}

.fiction-author {
    margin: 16px 0 0;
    font-weight: 800;
}

.fiction-quick-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 18px 0 0;
}

.fiction-quick-rating__form {
    display: inline-flex;
    align-items: center;
}

.fiction-quick-rating__login,
.fiction-quick-rating__review-link {
    color: #1f365d;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
}

.fiction-quick-rating__login:hover,
.fiction-quick-rating__review-link:hover {
    text-decoration: underline;
}

.fiction-quick-rating__muted {
    margin: 0;
    color: #516169;
    font-size: 0.92rem;
    font-weight: 750;
}

.fiction-reviews-panel {
    margin-top: 54px;
}

.fiction-reviews-empty {
    margin: 18px 0 0;
    color: #516169;
    font-weight: 750;
}

.fiction-reviews-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.fiction-review-item {
    border: 1px solid rgba(23, 32, 38, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    padding: 22px 24px;
}

.fiction-review-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.fiction-review-item__head h3 {
    margin: 0;
    color: #172026;
    font-size: 1.15rem;
}

.fiction-review-item__meta {
    margin: 6px 0 0;
    color: #516169;
    font-size: 0.84rem;
    font-weight: 750;
}

.fiction-review-item__scores {
    margin: 0;
    color: #1f365d;
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

.fiction-review-item__body {
    color: #172026;
    font-size: 0.96rem;
    line-height: 1.65;
}

.fiction-rating-notice {
    margin: 0 0 16px;
    border: 1px solid rgba(31, 54, 93, 0.14);
    border-radius: 8px;
    background: rgba(239, 227, 198, 0.55);
    padding: 12px 14px;
    color: #1f365d;
    font-weight: 750;
}

.fiction-rating-notice--inline {
    margin: 14px 0 0;
    max-width: 760px;
}

.fiction-review-item__body {
    color: #172026;
    font-size: 0.96rem;
    line-height: 1.65;
}

.fiction-review-item__body-wrap.is-collapsible:not(.is-expanded) .fiction-review-item__body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 15;
    overflow: hidden;
}

.fiction-review-item__toggle {
    display: none;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #1f365d;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 850;
}

.fiction-review-item__toggle:hover {
    text-decoration: underline;
}

.fiction-review-item__body-wrap.is-collapsible .fiction-review-item__toggle {
    display: inline-block;
}

.fiction-review-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.fiction-review-item__intro {
    min-width: 0;
}

.fiction-review-item__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.fiction-review-item__avatar-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.fiction-review-item__avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: var(--green);
    color: #ffffff;
}

.fiction-review-item__avatar--initial {
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 900;
}

.fiction-review-item__name {
    min-width: 0;
}

.fiction-review-item__name,
.fiction-review-item__name:hover {
    color: inherit;
    text-decoration: none;
}

.fiction-review-item__name:hover strong {
    color: #7a2848;
}

.fiction-review-item__head h3 {
    margin: 0;
    color: #172026;
    font-size: 1.15rem;
}

.fiction-review-item__meta {
    margin: 6px 0 0;
    color: #516169;
    font-size: 0.84rem;
    font-weight: 750;
}

.fiction-review-item__author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fiction-review-item__author-copy {
    min-width: 0;
}

.fiction-review-item__author-copy h3 {
    margin: 8px 0 0;
    color: #172026;
    font-size: 1.15rem;
}

.fiction-review-item__head h3 {
    margin: 0;
    color: #172026;
    font-size: 1.15rem;
}

.fiction-review-item__author-copy h3 {
    margin: 8px 0 0;
}
