/* Sahitya / Publications — list + detail */

.pub-section {
    background: #fff;
    padding: 44px 0 100px;
}

.pub-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Book cover (shared by spotlight + detail hero) ---------- */
.pub-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 6px 14px 14px 6px;
    overflow: hidden;
    background: linear-gradient(145deg, #c58a2c 0%, #8a5714 100%);
    box-shadow: 0 2px 4px rgba(44, 26, 14, .08), 0 14px 30px rgba(44, 26, 14, .16);
    transition: transform .35s ease, box-shadow .35s ease;
}

/* book spine */
.pub-card__cover::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 14px;
    z-index: 2;
    background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(255, 255, 255, .18) 45%, rgba(0, 0, 0, .06) 100%);
}

/* page shine */
.pub-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(115deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
}

.pub-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px 18px 22px 30px;
    color: #fff;
    text-align: center;
}

.pub-card__placeholder i {
    font-size: 38px;
    opacity: .85;
}

.pub-card__placeholder span {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Buttons / chips ---------- */
.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    line-height: 1.2;
    cursor: pointer;
    transition: all .2s ease;
}

.pub-btn--primary {
    background: var(--brand-action);
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--brand-rgb), .35);
}

.pub-btn--primary:hover {
    background: var(--brand-hover);
    color: #fff;
    transform: translateY(-2px);
}

.pub-btn--ghost {
    background: #fff;
    border-color: var(--brand-border);
    color: var(--brand-ink);
}

.pub-btn--ghost:hover {
    border-color: var(--brand-action);
    color: var(--brand-action);
}

.pub-btn--light {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

.pub-btn--light:hover {
    background: #fff;
    color: var(--brand-plum);
}

.pub-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    color: var(--brand-ink);
    font-size: 13px;
    line-height: 1.4;
    padding: 5px 12px;
    background: #fff;
    transition: all .2s ease;
}

.pub-chip.active {
    background: var(--brand-soft);
    border-color: var(--brand-action);
    color: var(--brand-hover);
    font-weight: 600;
}

.pub-chip:hover {
    border-color: var(--brand-action);
    color: var(--brand-action);
}

.pub-chip i {
    font-size: 11px;
}

.pub-clear {
    color: var(--brand-action);
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Spotlight (list page) ---------- */
.pub-spotlight {
    position: relative;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 220px;
    gap: 44px;
    align-items: center;
    overflow: hidden;
    border-radius: 26px;
    padding: 40px 46px;
    margin-bottom: 44px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(var(--brand-rgb), .35) 0%, rgba(var(--brand-rgb), 0) 45%),
        radial-gradient(circle at 100% 100%, rgba(var(--brand-rgb), .22) 0%, rgba(var(--brand-rgb), 0) 45%),
        var(--brand-plum);
    box-shadow: 0 28px 60px rgba(44, 26, 14, .25);
}

.pub-spotlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(var(--brand-rgb), 0), var(--brand-light), rgba(var(--brand-rgb), 0));
}

.pub-spotlight__cover {
    perspective: 1200px;
}

.pub-spotlight__cover .pub-card__cover {
    transform: rotateY(-12deg) rotateX(3deg);
    box-shadow: 22px 26px 44px rgba(0, 0, 0, .45), 2px 2px 6px rgba(0, 0, 0, .2);
}

.pub-spotlight__cover:hover .pub-card__cover {
    transform: rotateY(0) rotateX(0) translateY(-4px);
}

.pub-spotlight__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(var(--brand-rgb), .22);
    color: var(--brand-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.pub-spotlight__title {
    color: #fff;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    word-break: break-word;
}

.pub-spotlight__title a {
    color: inherit;
}

.pub-spotlight__title a:hover {
    color: var(--brand-light);
}

.pub-spotlight__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    margin-bottom: 26px;
}

.pub-spotlight__meta i {
    color: var(--brand-light);
    margin-right: 7px;
}

.pub-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pub-spotlight__stats {
    display: grid;
    gap: 12px;
    margin: 0;
}

.pub-spotlight__stats div {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    padding: 14px 18px;
}

.pub-spotlight__stats dt {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    font-weight: 600;
}

.pub-spotlight__stats dd {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin: 2px 0 0;
}

/* ---------- Library layout (list page) ---------- */
.pub-library {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.pub-library__side {
    position: sticky;
    top: 24px;
}

.pub-search {
    position: relative;
}

.pub-search input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-surface);
    padding: 0 52px 0 18px;
    color: var(--brand-ink);
    font-size: 14px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pub-search input:focus {
    background: #fff;
    border-color: var(--brand-action);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15);
}

.pub-search button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-action);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-results {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1e6d7;
}

.pub-results__title {
    color: var(--brand-plum);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.pub-results__count {
    color: var(--brand-muted);
    font-size: 14px;
}

.pub-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pub-note {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px dashed var(--brand-border);
    border-radius: 18px;
    background: var(--brand-surface);
    color: var(--brand-muted);
    padding: 22px 24px;
}

.pub-note i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff;
    color: var(--brand-action);
    font-size: 18px;
}

.pub-note strong {
    display: block;
    color: var(--brand-ink);
    font-size: 16px;
}

/* ---------- Bookshelf cards ---------- */
.pub-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
}

.pub-book {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(44, 26, 14, .07);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.pub-book:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--brand-rgb), .55);
    box-shadow: 0 26px 50px rgba(44, 26, 14, .16);
}

.pub-book.is-featured {
    border-color: rgba(var(--brand-rgb), .6);
}

/* stage: warm "display shelf" behind the book */
.pub-book__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.02;
    overflow: hidden;
    padding: 28px 20% 34px;
    perspective: 1100px;
    background:
        radial-gradient(circle at 50% 22%, #fff 0%, rgba(255, 255, 255, 0) 58%),
        radial-gradient(circle at 50% 110%, rgba(var(--brand-rgb), .28) 0%, rgba(var(--brand-rgb), 0) 55%),
        linear-gradient(180deg, #fdf7ee 0%, #f2e1c4 100%);
}

/* the book itself = cover + page block, slightly turned */
.pub-book__object {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    transform: rotateY(-16deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.pub-book__cover {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 3px 9px 9px 3px;
    overflow: hidden;
    background: linear-gradient(145deg, #c58a2c 0%, #8a5714 100%);
    box-shadow:
        0 1px 2px rgba(44, 26, 14, .2),
        14px 18px 28px rgba(44, 26, 14, .32);
}

/* hinge / spine fold */
.pub-book__cover::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(255, 255, 255, .22) 40%, rgba(0, 0, 0, .12) 70%, rgba(0, 0, 0, 0) 100%);
}

/* glossy light sweep */
.pub-book__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(115deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .08) 100%);
    pointer-events: none;
}

.pub-book__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-book__cover .pub-card__placeholder span {
    font-size: 14px;
}

/* page edges visible on the right side = book thickness */
.pub-book__pages {
    position: absolute;
    z-index: 1;
    top: 4px;
    bottom: 4px;
    right: -9px;
    width: 12px;
    border-radius: 0 4px 4px 0;
    background:
        repeating-linear-gradient(180deg, #fffdf8 0px, #fffdf8 2px, #eadcc4 3px, #fffdf8 4px),
        #f7efe1;
    box-shadow: inset 2px 0 3px rgba(0, 0, 0, .12), 4px 6px 10px rgba(44, 26, 14, .18);
}

.pub-book__shelf {
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 18px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(44, 26, 14, .34) 0%, rgba(44, 26, 14, 0) 70%);
    transition: transform .4s ease, opacity .4s ease;
}

.pub-book__ribbon {
    position: absolute;
    top: 16px;
    right: -36px;
    z-index: 3;
    width: 136px;
    transform: rotate(45deg);
    background: linear-gradient(90deg, var(--brand-hover), var(--brand-action));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
    padding: 5px 0;
    box-shadow: 0 4px 10px rgba(var(--brand-rgb), .35);
}

.pub-book__star {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #f0a500;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}

/* hover: "read now" pill rises over the shelf */
.pub-book__hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    padding: 0 0 18px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}

.pub-book__hover span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: var(--brand-plum);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    box-shadow: 0 10px 24px rgba(44, 26, 14, .35);
}

.pub-book:hover .pub-book__object {
    transform: rotateY(0) rotateX(0) translateY(-10px);
}

.pub-book:hover .pub-book__shelf {
    transform: scaleX(.85);
    opacity: .7;
}

.pub-book:hover .pub-book__hover {
    opacity: 1;
    transform: translateY(0);
}

/* details */
.pub-book__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 18px;
    border-top: 1px solid #f1e3cd;
}

.pub-book__category {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-hover);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 11px;
    margin-bottom: 10px;
}

.pub-book__title {
    color: var(--brand-plum);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-book__title a {
    color: inherit;
}

.pub-book:hover .pub-book__title a {
    color: var(--brand-action);
}

.pub-book__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.pub-book__chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #efe2cd;
    border-radius: 8px;
    background: #fffaf2;
    color: var(--brand-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
}

.pub-book__chips i {
    color: var(--brand-action);
}

.pub-book__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--brand-border);
}

.pub-book__views {
    color: var(--brand-muted);
    font-size: 13px;
    font-weight: 600;
}

.pub-book__views i {
    color: var(--brand-action);
    margin-right: 3px;
}

.pub-book__read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: var(--brand-action);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    box-shadow: 0 6px 14px rgba(var(--brand-rgb), .3);
    transition: background .2s ease, transform .2s ease;
}

.pub-book__read i {
    transition: transform .2s ease;
}

.pub-book__read:hover {
    background: var(--brand-hover);
    color: #fff;
}

.pub-book:hover .pub-book__read i {
    transform: translateX(3px);
}

@media (hover: none) {
    .pub-book__object {
        transform: rotateY(-10deg);
    }

    .pub-book__hover {
        display: none;
    }
}

/* ---------- Detail hero ---------- */
.pub-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(var(--brand-rgb), .12);
    padding: 44px 48px;
    position: relative;
    overflow: hidden;
}

.pub-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .16) 0%, rgba(var(--brand-rgb), 0) 70%);
    top: -160px;
    left: -120px;
    pointer-events: none;
}

.pub-hero__cover {
    position: relative;
    perspective: 1200px;
}

.pub-hero__cover .pub-card__cover {
    transform: rotateY(-10deg) rotateX(2deg);
    box-shadow: 18px 22px 40px rgba(44, 26, 14, .28), 2px 2px 6px rgba(44, 26, 14, .12);
}

.pub-hero__cover:hover .pub-card__cover {
    transform: rotateY(0) rotateX(0);
}

.pub-hero__kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-hover);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 13px;
}

.pub-pill--outline {
    background: transparent;
    border: 1px solid var(--brand-border);
    color: var(--brand-muted);
    font-weight: 600;
}

.pub-hero__title {
    color: var(--brand-plum);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
    word-break: break-word;
}

.pub-hero__desc {
    color: var(--brand-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 640px;
}

.pub-hero__desc p:last-child {
    margin-bottom: 0;
}

.pub-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.pub-fact {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 12px 14px;
}

.pub-fact__label {
    display: block;
    color: var(--brand-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.pub-fact__value {
    color: var(--brand-ink);
    font-size: 16px;
    font-weight: 700;
}

.pub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Reader ---------- */
.pub-reader {
    margin-top: 48px;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(var(--brand-rgb), .10);
    overflow: hidden;
    scroll-margin-top: 110px;
}

.pub-reader__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--brand-border);
    background: var(--brand-surface);
}

.pub-reader__title {
    color: var(--brand-ink);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.pub-reader__hint {
    color: var(--brand-muted);
    font-size: 14px;
}

.pub-reader__body {
    padding: 20px;
    background: radial-gradient(circle at 50% 0%, #fffaf2 0%, #f4ebdc 100%);
    min-height: 320px;
}

.pub-reader__body .df-container {
    border-radius: 14px;
}

.pub-reader__state {
    max-width: 520px;
    margin: 40px auto;
}

/* Article (content type) */
.pub-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 44px 28px 52px;
    color: var(--brand-ink);
    font-size: 18px;
    line-height: 1.95;
}

.pub-article h1,
.pub-article h2,
.pub-article h3,
.pub-article h4 {
    color: var(--brand-plum);
    line-height: 1.35;
    margin: 1.6em 0 .6em;
}

.pub-article h2 { font-size: 28px; }
.pub-article h3 { font-size: 23px; }
.pub-article h4 { font-size: 20px; }

.pub-article p {
    margin: 0 0 1.2em;
}

.pub-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}

.pub-article blockquote {
    border-left: 4px solid var(--brand-action);
    background: var(--brand-surface);
    border-radius: 0 12px 12px 0;
    color: var(--brand-ink);
    font-style: italic;
    margin: 1.6em 0;
    padding: 16px 22px;
}

.pub-article ul,
.pub-article ol {
    padding-left: 1.4em;
    margin-bottom: 1.2em;
}

.pub-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 16px;
}

.pub-article th,
.pub-article td {
    border: 1px solid var(--brand-border);
    padding: 8px 12px;
}

.pub-article a {
    color: var(--brand-action);
    text-decoration: underline;
}

/* ---------- Detail: related + sidebar ---------- */
.pub-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
    margin-top: 60px;
}

.pub-lower--solo {
    grid-template-columns: 1fr;
}

.pub-lower--solo .pub-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.pub-lower--solo .pub-side .dri-side-card + .dri-side-card {
    margin-top: 0;
}

.pub-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
}

.pub-section-head h2 {
    color: var(--brand-plum);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.pub-section-head a {
    color: var(--brand-action);
    font-weight: 700;
    white-space: nowrap;
}

.pub-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1100;
    transform: translate(-50%, 20px);
    opacity: 0;
    background: var(--brand-plum);
    color: #fff;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.pub-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .pub-spotlight { grid-template-columns: 200px minmax(0, 1fr); padding: 36px; }
    .pub-spotlight__stats { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pub-library { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
    .pub-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pub-hero { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 36px; }
    .pub-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .pub-library { grid-template-columns: 1fr; }
    .pub-library__side {
        position: static;
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .pub-library__side .dri-side-card + .dri-side-card { margin-top: 0; }
    .pub-library__side > .dri-side-card:first-child { grid-column: 1 / -1; }
    .pub-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pub-lower { grid-template-columns: 1fr; margin-top: 44px; }
    .pub-hero { grid-template-columns: 1fr; text-align: center; }
    .pub-hero__cover { max-width: 260px; margin: 0 auto; }
    .pub-hero__kicker,
    .pub-actions { justify-content: center; }
    .pub-hero__desc { margin-left: auto; margin-right: auto; }
}

@media (max-width: 767px) {
    .pub-section { padding: 28px 0 80px; }
    .pub-spotlight {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 30px 22px;
        text-align: center;
        border-radius: 20px;
    }
    .pub-spotlight__cover { max-width: 170px; margin: 0 auto; }
    .pub-spotlight__meta,
    .pub-spotlight__actions { justify-content: center; }
    .pub-spotlight__stats div { padding: 10px; }
    .pub-spotlight__stats dd { font-size: 20px; }
    .pub-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .pub-book { border-radius: 16px; }
    .pub-book__stage { padding: 22px 18% 26px; }
    .pub-book__ribbon { top: 10px; right: -42px; font-size: 8px; padding: 4px 0; }
    .pub-book__star { top: 10px; left: 10px; width: 26px; height: 26px; font-size: 11px; }
    .pub-book__body { padding: 14px 12px; }
    .pub-book__category { font-size: 11px; padding: 2px 9px; margin-bottom: 8px; }
    .pub-book__title { font-size: 15px; margin-bottom: 8px; }
    .pub-book__chips { margin-bottom: 10px; }
    .pub-book__chips span { font-size: 11px; padding: 2px 7px; }
    .pub-book__foot { padding-top: 10px; gap: 6px; }
    .pub-book__views { font-size: 12px; }
    .pub-book__read { padding: 6px 12px; font-size: 12px; }
    .pub-library__side { grid-template-columns: 1fr; }
    .pub-results__title { font-size: 22px; }
    .pub-hero__cover { max-width: 200px; }
    .pub-hero { padding: 26px 18px; border-radius: 18px; }
    .pub-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
    .pub-btn { flex: 1 1 auto; justify-content: center; }
    .pub-reader { border-radius: 18px; margin-top: 32px; }
    .pub-reader__head { padding: 16px 18px; }
    .pub-reader__body { padding: 10px; }
    .pub-article { padding: 28px 18px 36px; font-size: 17px; }
    .pub-section-head h2 { font-size: 24px; }
    .pub-lower--solo .pub-side { grid-template-columns: 1fr; }
}
