/* Editorial Novel detail surface. All rules are scoped to the child root. */

body.kol-series-editorial-page #content {
    width: 100%;
    max-width: none;
    margin-top: 0;
    overflow: visible;
}

body.kol-series-editorial-page #content > .wrapper {
    margin: 0;
}

.kol-series-editorial,
.kol-series-editorial * {
    box-sizing: border-box;
}

.kol-series-editorial {
    --series-measure: 1120px;
    --series-rule: color-mix(in oklch, var(--border) 88%, transparent);
    font-family: var(--kol-font-ui), sans-serif;
}

.kol-series-editorial a:not(.kol-ui-button):not(.kol-ui-link):not(.kol-series-editorial__contents-link) {
    color: var(--link, var(--primary));
    text-decoration: none;
}

.kol-series-editorial a:not(.kol-ui-button):not(.kol-ui-link):not(.kol-series-editorial__contents-link):hover,
.kol-series-editorial a:not(.kol-ui-button):not(.kol-ui-link):not(.kol-series-editorial__contents-link):focus-visible {
    color: var(--primary);
}

.kol-series-editorial a:focus-visible,
.kol-series-editorial button:focus-visible,
.kol-series-editorial [tabindex]:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.kol-series-editorial h1,
.kol-series-editorial h2,
.kol-series-editorial h3,
.kol-series-editorial h4,
.kol-series-editorial p,
.kol-series-editorial dl,
.kol-series-editorial ul {
    margin-block: 0;
}

.kol-series-editorial ul {
    padding: 0;
    list-style: none;
}

.kol-series-editorial__cover-wrap {
    min-width: 0;
}

.kol-series-editorial__cover {
    position: relative;
    width: 100%;
    max-width: 19rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--muted);
    aspect-ratio: 3 / 4;
}

.kol-series-editorial__cover > img,
.kol-series-editorial__cover .local-cover-fallback,
.kol-series-editorial__cover .local-cover-fallback > img {
    display: block;
    width: 100%;
    height: 100%;
}

.kol-series-editorial__cover > img,
.kol-series-editorial__cover .local-cover-fallback > img {
    object-fit: cover;
}

.kol-series-editorial__cover .local-cover-fallback {
    background: var(--muted);
}

.kol-series-editorial__cover:has(.local-cover-fallback img[src*="noimg"]) {
    isolation: isolate;
    background:
        radial-gradient(circle at 22% 18%, color-mix(in oklch, var(--primary) 38%, transparent), transparent 44%),
        linear-gradient(145deg, color-mix(in oklch, var(--card) 72%, var(--primary)), var(--muted));
}

.kol-series-editorial__cover:has(.local-cover-fallback img[src*="noimg"])::before {
    position: absolute;
    z-index: 1;
    inset: 16% 10% 22%;
    display: grid;
    place-items: center;
    color: var(--foreground);
    content: attr(data-cover-title);
    font-family: var(--kol-font-ui), Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}

.kol-series-editorial__cover:has(.local-cover-fallback img[src*="noimg"])::after {
    position: absolute;
    z-index: 1;
    inset-block-end: 1rem;
    inset-inline: 1rem;
    padding-block-start: 0.75rem;
    border-block-start: 1px solid color-mix(in oklch, var(--foreground) 28%, transparent);
    color: var(--muted-foreground);
    content: "غلاف الرواية مفقود";
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: normal;
    text-align: center;
}

.kol-series-editorial__cover:has(.local-cover-fallback img[src*="noimg"]) .local-cover-fallback img {
    opacity: 0;
}

.kol-series-editorial__status {
    position: static;
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border: 0;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
}

.kol-series-editorial__identity {
    min-width: 0;
    align-self: stretch;
    padding-block-start: clamp(0.25rem, 1vw, 1rem);
}

.kol-series-editorial__kicker,
.kol-series-editorial__eyebrow {
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.kol-series-editorial__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding-block: 0.35rem;
    border-block: 1px solid color-mix(in oklch, var(--primary) 45%, var(--series-rule));
    margin-block-end: 1rem !important;
}

.kol-series-editorial__title-meta {
    display: flex;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-block-end: 0.8rem;
}

.kol-series-editorial__title-meta .kol-series-editorial__kicker {
    margin-block-end: 0 !important;
}

.kol-series-editorial__kicker > span {
    color: var(--muted-foreground);
}

.kol-series-editorial__title {
    max-width: 13ch;
    color: var(--foreground);
    font-family: var(--kol-font-ui), Georgia, serif;
    font-size: clamp(2.35rem, 5.6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.kol-series-editorial__alt-title {
    margin-block-start: 0.75rem !important;
    color: var(--muted-foreground);
    font-size: 0.86rem;
}

.kol-series-editorial__byline {
    margin-block-start: 0.85rem !important;
    color: var(--foreground);
    font-size: 0.82rem;
}

.kol-series-editorial__byline > span {
    color: var(--muted-foreground);
}

.kol-series-editorial__byline a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in oklch, var(--primary) 40%, transparent);
    text-underline-offset: 0.15em;
}

.kol-series-editorial__dek {
    max-width: 46rem;
    margin-block-start: 1.5rem !important;
    color: var(--muted-foreground);
    font-size: clamp(0.92rem, 1.5vw, 1.08rem);
    line-height: 1.9;
}

.kol-series-editorial__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.55rem;
    max-width: 42rem;
    margin-block-start: 1.75rem;
}

.kol-series-editorial__library {
    display: block;
    position: relative;
    min-width: 0;
}

.kol-series-editorial__library .kol-library-btn {
    width: 100%;
    font: inherit;
}

.kol-series-editorial__quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    margin-block-start: clamp(1.25rem, 2.5vw, 2rem) !important;
    border-block: 1px solid var(--series-rule);
}

.kol-series-editorial__quick-facts > div {
    display: grid;
    align-content: center;
    min-height: 4.5rem;
    min-width: 0;
    padding: 0.9rem 0.8rem;
    border-inline-start: 1px solid var(--series-rule);
}

.kol-series-editorial__quick-facts > div:first-child {
    border-inline-start: 0;
}

.kol-series-editorial__quick-facts dt {
    margin-block-end: 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.68rem;
}

.kol-series-editorial__quick-facts dd {
    margin: 0;
    color: var(--foreground);
    font-size: 0.88rem;
    font-weight: 700;
}

.kol-series-editorial__body {
    display: block;
}

.kol-series-editorial__section {
    padding-block: clamp(1.75rem, 3vw, 2.75rem);
    border-block-end: 1px solid var(--series-rule);
    scroll-margin-block-start: calc(var(--kol-header-sticky-top, 0px) + 4.5rem);
}

.kol-series-editorial__section-heading {
    margin-block-end: clamp(1.25rem, 2.5vw, 2rem);
}

.kol-series-editorial__section-heading > div {
    min-width: 0;
}

.kol-series-editorial__section-heading > p,
.kol-series-editorial__section-heading > a {
    justify-self: end;
    color: var(--muted-foreground);
    font-size: 0.77rem;
    line-height: 1.6;
    text-align: end;
}

.kol-series-editorial__section-heading h2 {
    margin-block-start: 0.35rem;
    color: var(--foreground);
    font-family: var(--kol-font-ui), Georgia, serif;
    font-size: clamp(1.65rem, 3.2vw, 2.7rem);
    line-height: 1.15;
}

.kol-series-editorial__synopsis,
.kol-series-editorial__facts {
    min-width: 0;
}

.kol-series-editorial__synopsis h3,
.kol-series-editorial__facts h3 {
    margin-block-end: 1.25rem;
    color: var(--foreground);
    font-size: 0.78rem;
    font-weight: 800;
}

.kol-series-editorial__prose {
    max-width: 47rem;
    color: var(--foreground);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 2.1;
}

.kol-series-editorial__prose p {
    margin-block: 0 1.1rem;
}

.kol-series-editorial__prose p:last-child {
    margin-block-end: 0;
}

.kol-series-editorial__synopsis-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.4rem;
    border-block: 1px solid var(--series-rule);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: start;
    transition: background-color 160ms ease, color 160ms ease;
}

.kol-series-editorial__synopsis-toggle:not(.is-expandable) {
    cursor: auto;
}

.kol-series-editorial__synopsis-toggle:not(.is-expandable) .kol-series-editorial__synopsis-toggle-label,
.kol-series-editorial__synopsis-toggle:not(.is-expandable) > i {
    display: none;
}

.kol-series-editorial__synopsis-summary-copy {
    display: grid;
    min-width: 0;
    gap: 0.7rem;
}

.kol-series-editorial__synopsis-preview {
    display: -webkit-box;
    max-width: 47rem;
    overflow: hidden;
    color: var(--foreground);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 400;
    line-height: 2.1;
    line-clamp: 3;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.kol-series-editorial__synopsis-toggle:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 0.25rem;
}

.kol-series-editorial__synopsis-toggle i {
    flex: 0 0 auto;
    color: var(--primary);
}

.kol-series-editorial__synopsis-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: clamp(1rem, 3vw, 2rem);
    overflow: hidden;
    z-index: 100000;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--foreground);
}

.kol-series-editorial__synopsis-dialog:not([open]) {
    display: none;
}

.kol-series-editorial__synopsis-dialog[open] {
    display: grid;
    place-items: center;
}

.kol-series-editorial__synopsis-dialog::backdrop {
    background: rgb(0 0 0 / 82%);
    backdrop-filter: blur(4px);
}

.kol-series-editorial__synopsis-dialog.is-open {
    background: transparent;
}

.kol-series-editorial__synopsis-dialog-panel {
    display: flex;
    width: min(58rem, 100%);
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    max-height: calc(100svh - 2rem);
    max-height: calc(100dvh - 2rem);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--background);
    box-shadow: var(--shadow-lg);
}

.kol-series-editorial__synopsis-dialog-handle {
    display: flex;
    justify-content: center;
    padding: 10px 15px 4px;
}

.kol-series-editorial__synopsis-dialog-handle span {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--muted-foreground);
}

/* Customization and synopsis share same editorial sheet surface. */
responsive-bottom-sheet.kol-series-editorial__synopsis-dialog > dialog {
    padding: clamp(1rem, 3vw, 2rem);
}

responsive-bottom-sheet.kol-series-editorial__synopsis-dialog .kol-series-editorial__synopsis-dialog-panel {
    width: min(58rem, 100%);
    border-radius: 0;
}

.kol-series-editorial__synopsis-dialog-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.15rem, 3vw, 2rem);
    border-block-end: 1px solid var(--series-rule);
}

.kol-series-editorial__synopsis-dialog-eyebrow {
    margin-block-end: 0.55rem !important;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.kol-series-editorial__synopsis-dialog h3.kol-series-editorial__synopsis-dialog-title {
    margin: 0;
    color: var(--foreground);
    font-family: var(--kol-font-ui), Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.kol-series-editorial__synopsis-dialog-close {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--muted-foreground);
}

.kol-series-editorial__synopsis-dialog-close:is(:hover, :focus-visible) {
    border-color: var(--primary);
    background: var(--muted);
    color: var(--primary);
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.kol-series-editorial__synopsis-dialog-body {
    min-height: 0;
    overflow-y: auto;
    padding: clamp(1.15rem, 3vw, 2rem);
}

.kol-series-editorial__synopsis-dialog-body .kol-series-editorial__prose {
    max-width: none;
}

.kol-series-editorial__facts {
    padding-inline-start: clamp(1.25rem, 3vw, 2.5rem);
    border-inline-start: 1px solid var(--series-rule);
}

.kol-series-editorial__facts > dl > div {
    display: grid;
    grid-template-columns: minmax(6rem, 0.65fr) minmax(0, 1fr);
    gap: 1rem;
    padding-block: 0.75rem;
    border-block-end: 1px solid var(--series-rule);
}

.kol-series-editorial__facts dt {
    color: var(--muted-foreground);
    font-size: 0.74rem;
}

.kol-series-editorial__facts dd {
    min-width: 0;
    color: var(--foreground);
    font-size: 0.82rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.kol-series-editorial__facts dd a {
    color: var(--foreground);
    text-decoration: underline;
    text-decoration-color: color-mix(in oklch, var(--primary) 40%, transparent);
    text-underline-offset: 0.15em;
}

.kol-series-editorial__facts dd a + a::before {
    content: "، ";
    color: var(--muted-foreground);
    text-decoration: none;
}

.kol-series-editorial__genres {
    padding-block-start: 1.5rem;
}

.kol-series-editorial__genres h4 {
    margin-block-end: 0.7rem;
    color: var(--muted-foreground);
    font-size: 0.7rem;
}

.kol-series-editorial__genres > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.kol-series-editorial__genres a {
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted-foreground);
    font-size: 0.7rem;
}

.kol-series-editorial__genres a:hover,
.kol-series-editorial__genres a:focus-visible {
    border-color: var(--primary);
    background: color-mix(in oklch, var(--primary) 8%, transparent);
}

.kol-series-editorial__notice {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-block-start: 1rem !important;
    padding-block-start: 0.75rem;
    border-block-start: 1px solid var(--series-rule);
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.kol-series-editorial__notice i {
    padding-block-start: 0.25rem;
    color: var(--primary);
}

/* Contributors are part of the editorial facts, not a nested card. */
.kol-series-editorial .kol-series-translators {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 1rem;
    width: 100%;
    margin-block-start: 1rem;
    padding-block: 0.75rem;
    border-block: 1px solid var(--series-rule) !important;
    border-inline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kol-series-editorial .kol-series-translators__name {
    display: grid !important;
    align-content: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--foreground);
    font-family: var(--kol-font-ui), Georgia, serif;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.kol-series-editorial .kol-series-translators__name::after {
    width: 2.5rem;
    height: 2px;
    background: var(--primary);
    content: "";
}

.kol-series-editorial .kol-series-translators__value {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
}

.kol-series-editorial .kol-series-translators__stack {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch !important;
    justify-content: flex-start;
    gap: 1.2rem 1.5rem;
    padding: 0 !important;
    padding-block-end: 0.35rem !important;
    direction: rtl;
    counter-reset: translator;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: var(--primary) transparent;
    scrollbar-width: thin;
}

.kol-series-editorial .kol-series-translators__stack::-webkit-scrollbar {
    height: 0.25rem;
}

.kol-series-editorial .kol-series-translators__stack::-webkit-scrollbar-thumb {
    background: var(--primary);
}

.kol-series-editorial .kol-series-translators__item {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    min-width: min(100%, 12rem);
    flex: 0 0 auto;
    margin: 0 !important;
    padding-inline-start: 1rem;
    border-inline-start: 1px solid var(--series-rule);
    opacity: 1 !important;
    transform: none !important;
    counter-increment: translator;
}

.kol-series-editorial .kol-series-translators__item::before {
    align-self: start;
    padding-block-start: 0.15rem;
    color: var(--primary);
    content: counter(translator, decimal-leading-zero);
    font-family: var(--kol-font-ui), sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.kol-series-editorial .kol-series-translators__item.is-more::before {
    content: "+";
}

.kol-series-editorial .kol-series-translators__link {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    width: auto;
    height: auto;
    min-height: 3rem;
    max-width: 100%;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--foreground) !important;
    box-shadow: none !important;
    transform: none !important;
}

.kol-series-editorial .kol-series-translators__avatar {
    display: grid !important;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: color-mix(in oklch, var(--primary) 8%, transparent);
}

.kol-series-editorial .kol-series-translators__initials {
    color: var(--primary);
    font-family: var(--kol-font-ui), sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
}

.kol-series-editorial .kol-series-translators__label {
    position: static !important;
    display: grid !important;
    min-width: 0;
    max-width: 14rem;
    gap: 0.25rem;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--foreground);
    box-shadow: none !important;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: start;
    pointer-events: auto;
    opacity: 1 !important;
    transform: none !important;
}

.kol-series-editorial .kol-series-translators__label strong {
    max-width: 14rem;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 700;
}

.kol-series-editorial .kol-series-translators__label small {
    width: fit-content;
    padding-block-start: 0.25rem;
    border-block-start: 1px solid var(--series-rule);
    color: var(--muted-foreground);
    font-size: 0.66rem;
}

.kol-series-editorial .kol-series-translators__more {
    background: transparent !important;
    cursor: default;
}

.kol-series-editorial .kol-series-translators__more .kol-series-translators__avatar {
    border-style: dashed;
}

.kol-series-editorial .kol-series-translators__item:hover .kol-series-translators__label,
.kol-series-editorial .kol-series-translators__item:focus-within .kol-series-translators__label,
.kol-series-editorial .kol-series-translators__stack:hover .kol-series-translators__item:not(:hover),
.kol-series-editorial .kol-series-translators__stack:focus-within .kol-series-translators__item:not(:focus-within) {
    opacity: 1 !important;
    transform: none !important;
}

.kol-series-editorial .kol-series-translators__link:hover .kol-series-translators__avatar,
.kol-series-editorial .kol-series-translators__link:focus-visible .kol-series-translators__avatar {
    border-color: var(--primary);
}

.kol-series-editorial .kol-series-translators__link:hover .kol-series-translators__label strong,
.kol-series-editorial .kol-series-translators__link:focus-visible .kol-series-translators__label strong {
    color: var(--primary);
}

.kol-series-editorial__progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-block-end: 1.5rem;
    padding: 1rem 1.25rem;
    border-inline-start: 2px solid var(--primary);
    background: color-mix(in oklch, var(--primary) 6%, transparent);
}

.kol-series-editorial__progress strong {
    display: block;
    margin-block-start: 0.25rem;
    font-size: 0.9rem;
}

.kol-series-editorial__progress-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.kol-series-editorial__progress-list a {
    display: grid;
    gap: 0.1rem;
    padding-inline-start: 0.7rem;
    border-inline-start: 1px solid var(--series-rule);
    color: var(--foreground);
    font-size: 0.77rem;
}

.kol-series-editorial__progress-list a:hover,
.kol-series-editorial__progress-list a:focus-visible {
    color: var(--primary);
}

.kol-series-editorial__progress-list small {
    color: var(--muted-foreground);
    font-size: 0.65rem;
}

.kol-series-editorial__chapter-shortcuts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    margin-block-end: 1.75rem;
}

.kol-series-editorial__shortcut {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.8rem 1rem;
}

.kol-series-editorial__shortcut span {
    color: var(--muted-foreground);
    font-size: 0.68rem;
}

.kol-series-editorial__shortcut strong {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kol-series-editorial__chapter-table {
    inline-size: 100%;
    min-width: 0;
    overflow: hidden;
    border-block: 1px solid var(--series-rule);
}

.kol-series-editorial__chapter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border-block-end: 1px solid var(--series-rule);
    color: var(--muted-foreground);
    font-size: 0.7rem;
}

.kol-series-editorial__chapter-toolbar form {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.kol-series-editorial__chapter-toolbar label {
    color: var(--muted-foreground);
    font-size: 0.68rem;
}

.kol-series-editorial__chapter-toolbar select {
    max-width: 100%;
    height: auto;
    min-height: 2rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 0;
    background-color: var(--background);
    color: var(--foreground);
    font: inherit;
    font-size: 0.68rem;
    cursor: pointer;
}

.kol-series-editorial__chapter-toolbar select:focus-visible {
    border-color: var(--primary);
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.kol-series-editorial__chapter-head,
.kol-series-chapter__link {
    display: grid;
    grid-template-columns: minmax(8rem, 20%) minmax(0, 1fr) minmax(4.5rem, 8%) minmax(7rem, 15%);
    align-items: center;
    gap: 1rem;
}

.kol-series-editorial__chapter-head {
    padding: 0.7rem 0.75rem;
    grid-template-columns: minmax(8rem, 20%) minmax(0, 1fr) minmax(4.5rem, 8%) minmax(7rem, 15%);
    color: var(--muted-foreground);
    font-size: 0.67rem;
    font-weight: 700;
}

.kol-series-editorial__chapter-head.has-pdf {
    grid-template-columns: minmax(8rem, 20%) minmax(0, 1fr) minmax(4.5rem, 8%) minmax(7rem, 15%) 3.2rem;
}

.kol-series-editorial__chapter-head-views,
.kol-series-editorial__chapter-head-date {
    text-align: start;
}

.kol-series-editorial__chapter-head-pdf {
    text-align: center;
}

.kol-series-editorial__volume {
    border-block-start: 1px solid var(--series-rule);
    transition: background-color 160ms ease-out;
}

.kol-series-editorial__volume[open] {
    background: color-mix(in oklch, var(--muted) 45%, var(--background));
}

.kol-series-editorial__volume:first-child {
    border-block-start: 0;
}

.kol-series-editorial__volume > summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.75rem;
    color: var(--foreground);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
    transition: background-color 160ms ease-out;
}

.kol-series-editorial__volume[open] > summary {
    background: var(--accent);
}

@media (hover: hover) {
    .kol-series-editorial__volume > summary:hover {
        background: var(--muted);
    }

    .kol-series-editorial__volume[open] > summary:hover {
        background: color-mix(in oklab, var(--primary) 8%, var(--accent));
    }
}

.kol-series-editorial__volume > summary:active {
    background: color-mix(in oklab, var(--primary) 18%, var(--muted));
}

.kol-series-editorial__volume > summary::-webkit-details-marker {
    display: none;
}

.kol-series-editorial__volume > summary::after {
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    /* Physical borders keep the chevron's geometry stable in RTL and LTR. */
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(135deg);
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kol-series-editorial__volume:dir(ltr) > summary::after {
    transform: rotate(-45deg);
}

.kol-series-editorial__volume[open] > summary::after {
    transform: rotate(45deg);
}

.kol-series-editorial__volume > summary:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
}

.kol-series-editorial__volume-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kol-series-editorial__volume-count {
    flex: 0 0 auto;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.kol-series-editorial__volume[open] .kol-series-editorial__volume-count {
    background: color-mix(in oklab, var(--primary) 14%, var(--background));
    color: color-mix(in oklab, var(--foreground) 85%, var(--primary));
}

.kol-series-editorial__volume-more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-block-start: 1px solid var(--series-rule);
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.kol-series-editorial__volume-more .kol-ui-button,
[data-kol-volume-retry] {
    min-height: 44px;
}

.kol-series-editorial__volume-more .kol-series-editorial__volume-more-button {
    --button-color: var(--muted-foreground);
    --button-fill-background: color-mix(in oklch, var(--foreground) 3%, var(--background));
    --button-fill-text: var(--foreground);
    width: 100%;
    min-height: 3rem;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 650;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.kol-series-editorial .kol-series-editorial__volume-more .kol-series-editorial__volume-more-button.appearance-fill::before {
    inset: 0;
    background: color-mix(in oklch, var(--foreground) 8%, var(--background));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kol-series-editorial__volume-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 0.7rem;
    transition: color 180ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kol-series-editorial .kol-series-editorial__volume-more .kol-series-editorial__volume-more-button:is(:hover, :focus-visible)::before {
    transform: scaleX(1);
}

.kol-series-editorial__volume-more .kol-series-editorial__volume-more-button:is(:hover, :focus-visible) .kol-series-editorial__volume-more-icon {
    color: var(--foreground);
}

.kol-series-editorial__volume-more .kol-series-editorial__volume-more-button[aria-busy="true"] > span {
    visibility: hidden;
}

.kol-series-editorial .kol-series-editorial__volume-more .kol-series-editorial__volume-more-button[aria-busy="true"]::after {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid color-mix(in oklch, currentColor 26%, transparent);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: kol-series-chapter-spin 700ms linear infinite;
    content: "";
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.kol-series-editorial__volume-more [data-kol-volume-more-older]:is(:hover, :focus-visible) .kol-series-editorial__volume-more-icon {
    transform: translateY(3px);
}

.kol-series-editorial__volume-more [data-kol-volume-more-newer]:is(:hover, :focus-visible) .kol-series-editorial__volume-more-icon {
    transform: translateY(-3px);
}

.kol-series-chapter.is-last-read {
    background: color-mix(in oklch, var(--primary) 12%, var(--background));
    outline: 1px solid var(--primary);
    outline-offset: -1px;
    scroll-margin-block: 5rem;
}

.kol-series-chapter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    align-items: stretch;
    border-block-start: 1px solid color-mix(in oklch, var(--border) 68%, transparent);
}

.kol-series-chapter__link {
    min-width: 0;
    padding: 0.75rem;
    color: var(--foreground) !important;
}

.kol-series-chapter__link:hover,
.kol-series-chapter__link:focus-visible {
    background: color-mix(in oklch, var(--primary) 5%, transparent);
}

.kol-series-chapter__number {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    color: var(--muted-foreground);
    font-family: var(--kol-font-ui), sans-serif;
    font-size: 0.73rem;
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.kol-series-chapter__title {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.kol-series-chapter__title-copy {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: var(--foreground);
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.kol-series-chapter__date {
    color: var(--muted-foreground);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    text-align: start;
    white-space: nowrap;
}

.kol-series-chapter__views {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted-foreground);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.kol-series-chapter__views-label {
    display: none;
}

.kol-series-chapter__pdf {
    display: inline-flex;
    min-height: 2.75rem;
    min-width: 3.2rem;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding-inline: 0.5rem;
    border-inline-start: 1px solid color-mix(in oklch, var(--border) 68%, transparent);
    color: var(--muted-foreground) !important;
    font-size: 0.64rem;
    font-weight: 700;
}

/* PDF is a secondary chapter action, so keep it in the shared button system
 * while retaining the compact table-column treatment. */
.kol-series-editorial .kol-series-chapter__pdf.kol-ui-button {
    height: auto;
    min-height: 2.75rem;
    margin-block: 0.25rem;
    padding-block: 0.35rem;
    border-inline-start: 1px solid color-mix(in oklch, var(--border) 68%, transparent);
    font-size: 0.64rem;
    line-height: 1.35;
}

.kol-series-editorial .kol-series-chapter__pdf.kol-ui-button .kol-lucide {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
}

.kol-series-chapter.is-read .kol-series-chapter__link,
.kol-series-chapter.is-read .kol-series-chapter__number,
.kol-series-chapter.is-read .kol-series-chapter__title-copy,
.kol-series-chapter.is-read .kol-series-chapter__views,
.kol-series-chapter.is-read .kol-series-chapter__date {
    color: var(--muted-foreground) !important;
}

.kol-series-editorial .kol-ch-read-eye {
    margin-inline-end: 0 !important;
    color: var(--primary);
    font-size: 0.75rem;
}

.kol-series-chapter__badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.kol-series-chapter__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.38rem;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.kol-series-chapter__badge--paid {
    border-color: color-mix(in oklch, var(--rating) 52%, var(--border));
    color: color-mix(in oklch, var(--rating) 72%, var(--foreground));
}

.kol-series-chapter__badge--countdown {
    border-color: color-mix(in oklch, var(--destructive) 45%, var(--border));
    color: var(--destructive);
}

.kol-series-editorial__pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block-start: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.74rem;
}

.kol-series-editorial__pagination-summary {
    display: grid;
    justify-items: start;
    gap: 0.18rem;
    line-height: 1.5;
}

.kol-series-editorial__pagination-summary-label {
    color: var(--primary);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.kol-series-editorial__pagination-summary strong {
    color: var(--foreground);
    font-family: var(--kol-font-ui), sans-serif;
    font-weight: 700;
}

.kol-series-editorial__pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    direction: rtl;
}

.kol-series-editorial__pagination-control,
.kol-series-editorial__pagination-page {
    display: inline-flex;
    min-height: 2.2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--series-rule);
    background: transparent;
    color: var(--muted-foreground);
    line-height: 1;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.kol-series-editorial__pagination-control.kol-ui-button,
.kol-series-editorial__pagination-page.kol-ui-button {
    height: auto;
    box-shadow: none;
    font: inherit;
    text-decoration: none;
    translate: none;
}

.kol-series-editorial__pagination-control {
    gap: 0.45rem;
    padding-inline: 0.72rem;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.kol-series-editorial__pagination-control i {
    color: var(--primary);
    font-size: 0.62rem;
}

.kol-series-editorial__pagination-page {
    min-width: 2.2rem;
    padding-inline: 0.35rem;
    font-family: var(--kol-font-ui), sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
}

.kol-series-editorial__pagination-control:hover,
.kol-series-editorial__pagination-control:focus-visible,
.kol-series-editorial__pagination-page:not(.is-current):hover,
.kol-series-editorial__pagination-page:not(.is-current):focus-visible {
    border-color: var(--primary);
    background: color-mix(in oklch, var(--primary) 7%, transparent);
    color: var(--primary);
}

.kol-series-editorial__pagination-control:focus-visible,
.kol-series-editorial__pagination-page:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.kol-series-editorial__pagination-control.is-disabled {
    color: color-mix(in oklch, var(--muted-foreground) 55%, transparent);
    cursor: not-allowed;
    opacity: 0.65;
}

.kol-series-editorial__pagination-control.is-disabled i {
    color: inherit;
}

.kol-series-editorial__pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    direction: ltr;
}

.kol-series-editorial__pagination-list li {
    display: flex;
}

.kol-series-editorial__pagination-page.is-current {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
}

.kol-series-editorial__pagination-ellipsis {
    min-width: 1rem;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-family: var(--kol-font-ui), sans-serif;
    font-size: 0.8rem;
}

.kol-series-editorial__empty {
    padding-block: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

.kol-series-editorial__review-widget {
    min-width: 0;
    min-height: 12rem;
    color: var(--foreground);
}

.kol-series-editorial__review-widget > * {
    display: block;
    max-width: 100%;
}

.kol-series-editorial__review-widget .comment-respond,
.kol-series-editorial__review-widget .comment-list {
    color: var(--foreground);
}

.kol-series-editorial .kol-headless-comments {
    width: 100%;
    color: var(--foreground);
}

@media (max-width: 820px) {
    .kol-series-editorial__title {
        font-size: clamp(2rem, 7vw, 3.75rem);
    }

    .kol-series-editorial__facts {
        padding-block-start: 2rem;
        padding-inline-start: 0;
        padding-inline-end: 0;
        border-block-start: 1px solid var(--series-rule);
        border-inline: 0;
    }
}

@media (max-width: 600px) {
    .kol-series-editorial {
        padding-block-start: 1.25rem;
    }

    .kol-series-editorial__cover-wrap {
        display: flex;
        justify-content: center;
        margin-block-end: 2rem;
    }

    .kol-series-editorial__cover {
        width: min(12rem, 68vw);
    }

    .kol-series-editorial__identity {
        text-align: center;
    }

    .kol-series-editorial__title {
        max-width: none;
    }

    .kol-series-editorial__dek {
        margin-inline: auto;
    }

    .kol-series-editorial__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: start;
    }

    .kol-series-editorial__quick-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: start;
    }

    .kol-series-editorial__quick-facts > div:nth-child(odd) {
        border-inline-start: 0;
    }

    .kol-series-editorial__quick-facts > div:nth-child(n + 3) {
        border-block-start: 1px solid var(--series-rule);
    }

    .kol-series-editorial__section-heading > p,
    .kol-series-editorial__section-heading > a {
        text-align: start;
    }

    .kol-series-editorial .kol-series-translators {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .kol-series-editorial .kol-series-translators__name {
        display: grid !important;
        padding: 0 0 0.5rem !important;
        border-block-end: 1px solid var(--series-rule) !important;
    }

    .kol-series-editorial .kol-series-translators__value {
        display: block !important;
        padding: 0.75rem 0 0 !important;
    }

    .kol-series-editorial .kol-series-translators__stack {
        display: flex !important;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        gap: 0.9rem;
        overflow: visible;
    }

    .kol-series-editorial .kol-series-translators__item {
        min-width: 0;
        flex: 0 0 auto;
        padding-inline-start: 0.85rem;
    }

    .kol-series-editorial__progress {
        display: block;
    }

    .kol-series-editorial__progress-list {
        justify-content: flex-start;
        margin-block-start: 0.8rem;
    }

    .kol-series-editorial__chapter-head {
        display: none;
    }

    .kol-series-chapter__link {
        grid-template-columns: minmax(4.4rem, 7.5rem) minmax(0, 1fr);
        align-items: start;
        gap: 0.15rem 0.65rem;
        padding: 0.8rem 0.45rem;
    }

    .kol-series-chapter__number {
        grid-row: 1 / span 3;
    }

    .kol-series-chapter__title-copy {
        font-size: 0.76rem;
    }

    .kol-series-chapter__date {
        grid-column: 2;
        grid-row: 3;
        font-size: 0.62rem;
    }

    .kol-series-chapter__views {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        font-size: 0.64rem;
    }

    .kol-series-chapter__views-label {
        display: inline;
    }

    .kol-series-chapter__pdf {
        min-width: 2.7rem;
        padding-inline: 0.25rem;
    }

    .kol-series-chapter__pdf span {
        display: none;
    }

    .kol-series-editorial__rating-row {
        grid-template-columns: minmax(6rem, 0.8fr) minmax(4rem, 1fr) 2rem;
    }
}

@media (max-width: 420px) {
    .kol-series-editorial__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kol-series-editorial__secondary-actions {
        gap: 0.75rem;
    }

    .kol-series-editorial__utility-action {
        font-size: 0.74rem;
    }

    .kol-series-editorial__chapter-shortcuts {
        grid-template-columns: 1fr;
    }

    .kol-series-chapter__link {
        grid-template-columns: minmax(4.5rem, 30%) minmax(0, 1fr) 4rem;
    }

    .kol-series-chapter__number {
        display: block;
        line-height: 1.5;
    }

    .kol-series-chapter__number .kol-ch-read-eye {
        margin-inline-end: 0.25rem !important;
    }

}

@media (prefers-reduced-motion: reduce) {
    .kol-series-editorial *,
    .kol-series-editorial *::before,
    .kol-series-editorial *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 480px) {
    .kol-series-editorial .kol-series-editorial__donation-action {
        width: 100%;
    }
}

/*
 * Shared editorial alignment
 *
 * Series pages use the same dossier grammar as the account surface and the
 * same action primitives as the home surface. Keep the novel-specific rules
 * below focused on composition, not on inventing another control language.
 */

body.kol-series-editorial-page #content {
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    padding: 0 !important;
}

body.kol-series-editorial-page .mainholder,
body.kol-series-editorial-page .postbody,
body.kol-series-editorial-page .bixbox,
body.kol-series-editorial-page .page {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.kol-series-editorial-page #content > .wrapper {
    margin: 0 !important;
}

.kol-series-editorial__context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding-block: 0.1rem 0.7rem;
    border-block-end: 1px solid var(--series-rule);
    color: var(--muted-foreground);
    font-size: 0.72rem;
}

.kol-series-editorial__context a:not(.kol-ui-link) {
    color: var(--muted-foreground);
}

.kol-series-editorial__context a:not(.kol-ui-link):hover,
.kol-series-editorial__context a:not(.kol-ui-link):focus-visible {
    color: var(--primary);
}

.kol-series-editorial__context > span[aria-current="page"] {
    min-width: 0;
    overflow: hidden;
    color: var(--foreground);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kol-series-editorial__contents {
    display: flex;
    align-items: stretch;
    gap: clamp(0.35rem, 1.8vw, 1.5rem);
    width: 100%;
    min-width: 0;
    margin-block: 1rem 0;
    padding: 0;
    overflow-x: auto;
    border-block-end: 1px solid var(--series-rule);
    scrollbar-width: none;
}

.kol-series-editorial__contents::-webkit-scrollbar {
    display: none;
}

.kol-series-editorial__contents-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted-foreground);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease-out, background-color 160ms ease-out;
}

.kol-series-editorial__contents-link::after {
    position: absolute;
    inset-inline: 1rem;
    inset-block-end: 0;
    height: 3px;
    background: transparent;
    content: "";
}

.kol-series-editorial__contents-link:hover {
    background: color-mix(in srgb, var(--foreground) 4%, transparent);
    color: var(--foreground);
}

.kol-series-editorial__contents-link[aria-current="location"] {
    color: var(--foreground);
}

.kol-series-editorial__contents-link[aria-current="location"]::after {
    background: var(--primary);
}

.kol-series-editorial .kol-series-editorial__contents-link:focus-visible {
    outline-offset: -4px;
}

.kol-series-editorial__contents-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding-inline: 0.35rem;
    border: 1px solid var(--series-rule);
    border-radius: 4px;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.kol-series-editorial__contents-link[aria-current="location"] .kol-series-editorial__contents-count {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--series-rule));
    background: color-mix(in srgb, var(--primary) 12%, var(--background));
    color: var(--foreground);
}

@media (max-width: 600px) {
    .kol-series-editorial__contents {
        gap: 0;
    }

    .kol-series-editorial__contents-link {
        flex: 1 0 auto;
        min-height: 3.25rem;
        padding-inline: 0.5rem;
        font-size: 0.8rem;
    }

    .kol-series-editorial__contents-link::after {
        inset-inline: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kol-series-editorial__contents-link {
        transition: none;
    }
}

.kol-series-editorial__cover {
    max-width: 16rem;
    border-radius: 2px;
    box-shadow:
        5px 7px 9px -3px color-mix(in oklch, var(--foreground) 46%, transparent),
        13px 16px 24px -7px color-mix(in oklch, var(--foreground) 30%, transparent);
}

.kol-series-editorial__status {
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--primary);
    border-radius: 0;
    background: color-mix(in oklch, var(--background) 88%, transparent);
    color: var(--primary);
    font-size: 0.66rem;
    line-height: 1.35;
}

.kol-series-editorial__identity {
    padding-block-start: 0;
}

.kol-series-editorial__kicker {
    padding-block: 0;
    border-block: 0;
    margin-block-end: 0.8rem !important;
}

.kol-series-editorial__title {
    max-width: 15ch;
    font-size: clamp(2rem, 4.3vw, 3.7rem);
    letter-spacing: -0.025em;
}

.kol-series-editorial__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    max-width: 42rem;
    margin-block-start: 1.5rem;
}

.kol-series-editorial__actions > :is(a, button),
.kol-series-editorial__actions > .kol-series-editorial__library {
    width: auto;
    min-width: 0;
    flex: 1 1 11rem;
}

.kol-series-editorial__library {
    display: flex;
}

.kol-series-editorial__library .kol-library-btn {
    width: 100%;
}

.kol-series-editorial__secondary-actions {
    display: flex;
    flex: 0 0 auto;
    grid-column: auto;
    align-items: center;
    justify-content: flex-start;
    margin-block-start: 0;
    margin-inline-start: auto;
    padding-block-start: 0;
    border-block-start: 0;
}

.kol-series-editorial .kol-series-editorial__donation-action {
    width: auto;
    min-width: 0;
    min-height: 2.375rem;
    padding-block: 0.3125rem;
    padding-inline: 0.875rem;
    font-size: 0.75rem;
    font-weight: 630;
}

.kol-series-editorial .kol-series-editorial__donation-action i {
    color: currentColor;
    font-size: 0.75rem;
}

.kol-series-editorial__section {
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.kol-series-editorial__section-heading {
    margin-block-end: clamp(1.75rem, 3.5vw, 2.75rem);
    border-block-end-color: transparent;
}

.kol-series-editorial__section-heading h2 {
    font-size: clamp(1.5rem, 2.7vw, 2.2rem);
}

.kol-series-editorial__genres a {
    border-radius: 0;
}

.kol-series-editorial__progress {
    padding-block: 1rem;
    border-block: 1px solid var(--series-rule);
    background: transparent;
}

.kol-series-editorial__chapter-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-block-end: 2rem;
}

.kol-series-editorial__shortcut {
    padding: 0.9rem 0.75rem;
}

.kol-series-editorial__shortcut strong::after {
    margin-inline-start: 0.35rem;
    color: var(--primary);
    content: "←";
}

@media (max-width: 820px) {
    .kol-series-editorial__cover {
        max-width: 14rem;
    }
}

@media (max-width: 600px) {
    .kol-series-editorial__pagination {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .kol-series-editorial__pagination-summary {
        justify-items: center;
        text-align: center;
    }

    .kol-series-editorial__pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .kol-series-editorial__context {
        padding-block-end: 0.6rem;
    }

    .kol-series-editorial__cover-wrap {
        margin-block-end: 1.75rem;
    }

    .kol-series-editorial__cover {
        width: min(12rem, 68vw);
    }

    .kol-series-editorial__identity {
        text-align: center;
    }

    .kol-series-editorial__actions {
        text-align: start;
    }

    .kol-series-editorial__secondary-actions {
        margin-inline-start: 0;
    }

    .kol-series-editorial__chapter-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kol-series-editorial__chapter-head {
        display: none;
    }

    .kol-series-editorial__chapter-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.55rem;
    }

    .kol-series-editorial__chapter-toolbar form {
        width: 100%;
        justify-content: space-between;
    }

    .kol-series-editorial__chapter-toolbar select {
        flex: 0 1 auto;
    }

    .kol-series-chapter__link {
        grid-template-columns: minmax(4.4rem, 7.5rem) minmax(0, 1fr);
        align-items: start;
        gap: 0.15rem 0.65rem;
        padding: 0.8rem 0.45rem;
    }

    .kol-series-chapter__number {
        display: flex;
        grid-row: 1 / span 3;
        align-items: flex-start;
        padding-block-start: 0.1rem;
        line-height: 1.5;
    }

    .kol-series-chapter__title {
        display: grid;
        align-items: start;
        gap: 0.35rem;
    }

    .kol-series-chapter__title-copy {
        font-size: 0.8rem;
    }

    .kol-series-chapter__views {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        font-size: 0.64rem;
    }

    .kol-series-chapter__views-label {
        display: inline;
    }

    .kol-series-chapter__date {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        margin-block-start: 0;
        font-size: 0.64rem;
    }

    .kol-series-chapter__pdf {
        min-width: 3.25rem;
        min-height: 2.75rem;
        padding-inline: 0.4rem;
    }

    .kol-series-chapter__pdf span {
        display: inline;
    }
}

@media (max-width: 540px) {
    .kol-series-editorial__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .kol-series-editorial__actions > :is(a, button),
    .kol-series-editorial__actions > .kol-series-editorial__library {
        width: 100%;
        flex: none;
    }

    .kol-series-editorial__secondary-actions {
        width: 100%;
        padding-block-start: 0.65rem;
        border-block-start: 1px solid var(--series-rule);
    }

    .kol-series-editorial .kol-series-editorial__donation-action {
        width: fit-content;
    }
}

@media (max-width: 420px) {
    .kol-series-editorial__chapter-shortcuts {
        grid-template-columns: minmax(0, 1fr);
    }

    .kol-series-chapter__link {
        grid-template-columns: minmax(3.9rem, 5.6rem) minmax(0, 1fr);
    }

    .kol-series-chapter__pdf {
        min-width: 3rem;
        padding-inline: 0.25rem;
    }

    .kol-series-chapter__number {
        display: flex;
    }
}

/* Keep the three masthead actions visually equal when support is available. */
.kol-series-editorial__actions.has-donation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.kol-series-editorial__actions.has-donation > :is(a, button),
.kol-series-editorial__actions.has-donation > .kol-series-editorial__library,
.kol-series-editorial__actions.has-donation > .kol-series-editorial__secondary-actions {
    width: 100%;
    min-width: 0;
    height: 100%;
}

.kol-series-editorial__actions.has-donation > .kol-series-editorial__secondary-actions {
    display: flex;
    flex: none;
    align-items: stretch;
    margin-inline-start: 0;
}

.kol-series-editorial__actions.has-donation .kol-series-editorial__donation-action {
    width: 100%;
    min-width: 0;
    min-height: 2.875rem;
    height: 100%;
}

@media (max-width: 540px) {
    .kol-series-editorial__actions.has-donation {
        grid-template-columns: minmax(0, 1fr);
    }

    .kol-series-editorial__actions.has-donation > .kol-series-editorial__secondary-actions {
        height: auto;
    }

    .kol-series-editorial__actions.has-donation .kol-series-editorial__donation-action {
        height: auto;
    }
}

/* Give the novel identity priority over the utility navigation. */
.kol-series-editorial {
    gap: 0;
}

.kol-series-editorial__context {
    gap: 0.4rem;
    padding-block: 0.25rem 0.8rem;
    border-block-end: 0;
    font-size: 0.7rem;
}

.kol-series-editorial__context > span[aria-hidden="true"] {
    color: var(--primary);
    opacity: 0.7;
}

.kol-series-editorial__context > [aria-current="page"] {
    color: var(--foreground);
    font-weight: 650;
}

.kol-series-editorial__masthead {
    padding-block-start: clamp(1.25rem, 2.5vw, 2rem);
}

@media (max-width: 600px) {
    .kol-series-editorial__masthead {
        padding-block-start: 1.5rem;
    }
}

/* Volumes stay in the document flow; only an expanded desktop volume scrolls. */
.kol-series-editorial__volume-scroll {
    max-block-size: none;
    overflow: visible;
    overscroll-behavior: auto;
}

.kol-series-editorial__chapter-lazy-status {
    display: flex;
    min-block-size: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-block-start: 1px solid var(--series-rule);
    color: var(--muted-foreground);
    font-size: 0.68rem;
    text-align: center;
}

.kol-series-editorial__chapter-spinner {
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
    border: 1px solid color-mix(in oklch, var(--primary) 35%, transparent);
    border-block-start-color: var(--primary);
    border-radius: 50%;
    animation: kol-series-chapter-spin 700ms linear infinite;
}

.kol-series-editorial__chapter-sentinel {
    display: block;
    block-size: 1px;
    pointer-events: none;
}

.kol-series-editorial__chapter-index [hidden] {
    display: none !important;
}

@keyframes kol-series-chapter-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 801px) {
    .kol-series-editorial__volume-scroll {
        max-block-size: min(38rem, 62vh);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--muted);
        -webkit-overflow-scrolling: touch;
        border-block: 1px solid var(--series-rule);
        background: var(--background);
    }

    .kol-series-editorial__volume-scroll::-webkit-scrollbar {
        width: 0.65rem;
    }

    .kol-series-editorial__volume-scroll::-webkit-scrollbar-track {
        background: var(--muted);
    }

    .kol-series-editorial__volume-scroll::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: var(--primary);
    }

    .kol-series-editorial__volume-scroll::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }

    .kol-series-editorial__volume-scroll:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: -2px;
    }

    .kol-series-editorial__volume-scroll .kol-series-editorial__chapter-head {
        position: sticky;
        z-index: 2;
        inset-block-start: 0;
        background: var(--background);
    }
}

@media (max-width: 600px) {
    .kol-series-editorial__chapter-lazy-status {
        padding-inline: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kol-series-editorial__chapter-spinner {
        animation: none;
    }
}

/* Compact the dossier around one source of truth for each detail. */
.kol-series-editorial__masthead {
    grid-template-columns: minmax(10.5rem, 12rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.75rem);
}

.kol-series-editorial__cover {
    max-width: 12rem;
}

.kol-series-editorial__kicker {
    margin-block-end: 0.5rem !important;
}

.kol-series-editorial__alt-title {
    margin-block-start: 0.45rem !important;
    font-size: 0.8rem;
}

.kol-series-editorial__byline {
    margin-block-start: 0.55rem !important;
}

.kol-series-editorial__actions,
.kol-series-editorial__actions.has-donation {
    display: flex;
    width: 100%;
    max-width: 42rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-block-start: 1.05rem;
}

.kol-series-editorial__actions > :is(a, button),
.kol-series-editorial__actions > .kol-series-editorial__library,
.kol-series-editorial__actions > .kol-series-editorial__secondary-actions,
.kol-series-editorial__actions.has-donation > :is(a, button),
.kol-series-editorial__actions.has-donation > .kol-series-editorial__library,
.kol-series-editorial__actions.has-donation > .kol-series-editorial__secondary-actions {
    width: auto;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
}

.kol-series-editorial__actions .kol-ui-button,
.kol-series-editorial__actions .kol-library-btn {
    min-height: 2.15rem;
    padding-block: 0.2rem;
    padding-inline: 0.1rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.kol-series-editorial__actions > .kol-series-editorial__secondary-actions,
.kol-series-editorial__actions.has-donation > .kol-series-editorial__secondary-actions {
    display: flex;
    align-items: center;
    margin-inline-start: 0;
    padding-block-start: 0;
    border-block-start: 0;
}

.kol-series-editorial .kol-series-editorial__donation-action {
    width: auto;
    min-height: 2.15rem;
    padding-block: 0.2rem;
    padding-inline: 0.1rem;
}

.kol-series-editorial__quick-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-block-start: 1.05rem !important;
}

.kol-series-editorial__quick-facts > div {
    min-height: 3.5rem;
    padding: 0.55rem 0.7rem;
}

.kol-series-editorial__quick-facts dt {
    margin-block-end: 0.15rem;
    font-size: 0.64rem;
}

.kol-series-editorial__quick-facts dd {
    font-size: 0.82rem;
}

.kol-series-editorial__section {
    padding-block: clamp(2rem, 4vw, 3.25rem);
}

.kol-series-editorial__about {
    padding-block-end: 1.25rem;
}

.kol-series-editorial__about-grid.is-full-width {
    grid-template-columns: minmax(0, 1fr);
}

.kol-series-editorial__section-heading {
    margin-block-end: clamp(1rem, 2.5vw, 1.75rem);
    padding-block-end: 0.55rem;
}

.kol-series-editorial__synopsis h3,
.kol-series-editorial__facts h3 {
    margin-block-end: 0.75rem;
}

.kol-series-editorial__synopsis-preview,
.kol-series-editorial__prose {
    line-height: 1.85;
}

.kol-series-editorial__synopsis-toggle {
    padding-block: 0.65rem;
}

.kol-series-editorial__synopsis-summary-copy {
    gap: 0.45rem;
}

.kol-series-editorial__facts > dl > div {
    gap: 0.75rem;
    padding-block: 0.55rem;
}

.kol-series-editorial__genres {
    padding-block-start: 0.9rem;
}

.kol-series-editorial__genres h4 {
    margin-block-end: 0.5rem;
}

.kol-series-editorial__genres > div {
    gap: 0.3rem;
}

.kol-series-editorial__genres a {
    padding-block: 0.22rem;
    padding-inline: 0.45rem;
    font-size: 0.66rem;
}

@media (max-width: 820px) {
    .kol-series-editorial__masthead {
        grid-template-columns: minmax(9.5rem, 11rem) minmax(0, 1fr);
        gap: 1.25rem;
    }

    .kol-series-editorial__cover {
        max-width: 11rem;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .kol-series-editorial__title-meta {
        margin-inline: auto;
    }

    .kol-series-editorial__quick-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kol-series-editorial__quick-facts > div:nth-child(odd) {
        border-inline-start: 0;
    }

    .kol-series-editorial__quick-facts > div:nth-child(n + 3) {
        border-block-start: 1px solid var(--series-rule);
    }
}

@media (max-width: 540px) {
    .kol-series-editorial__actions,
    .kol-series-editorial__actions.has-donation {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .kol-series-editorial__actions > :is(a, button),
    .kol-series-editorial__actions > .kol-series-editorial__library,
    .kol-series-editorial__actions > .kol-series-editorial__secondary-actions {
        width: 100%;
        flex: none;
    }

    .kol-series-editorial__actions > .kol-series-editorial__secondary-actions {
        justify-content: flex-start;
        padding-block-start: 0.45rem;
        border-block-start: 1px solid var(--series-rule);
    }
}

/* Preserve masthead geometry while the shared control variants own visuals. */
.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link {
    display: inline-flex;
    direction: ltr;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.15rem;
    padding-block: 0.2rem;
    padding-inline: 0.1rem;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link--start,
.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link--continue {
    min-height: 2.65rem;
    padding-block: 0.55rem;
    padding-inline: 1rem;
}

.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link > span,
.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__control > i {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link > span {
    order: -1;
    min-width: 1em;
}

.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link--start,
.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link--empty {
    font-weight: 800;
}

.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link--empty {
    color: var(--muted-foreground);
}

.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link span {
    transition: transform 170ms ease-out;
}

.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link:is(:hover, :focus-visible) span {
    transform: translateX(2px);
}

/* Native controls keep their layout contract; shared styles own their treatment. */
.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__control {
    display: inline-flex;
    direction: ltr;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
    height: 2.5rem;
    min-height: 2.5rem;
    padding-block: 0.35rem;
    padding-inline: 0.75rem;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__control i {
    color: currentColor;
}

@media (max-width: 540px) {
    .kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__control,
    .kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link,
    .kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link > span {
        transition: none;
    }

    .kol-series-editorial .kol-series-editorial__actions .kol-series-editorial__chapter-link--continue:is(:hover, :focus-visible, :active) {
        transform: none;
    }
}
