:root {
    --library-navy: #373e70;
    --library-navy-dark: #2f3562;
    --library-red: #ad4246;
    --library-red-bg: #f8eeee;
    --library-red-border: #efd2d4;
    --library-red-dark: #96373b;
    --library-purple: #4b0097;
    --library-purple-dark: #390073;
    --library-purple-soft: #f3efff;
    --library-purple-border: #d8c7ff;
    --library-text: #242436;
    --library-muted: #6f7280;
    --library-border: #e1e4ef;
    --library-light: #f8f9fd;
    --library-green: #2d7a64;
    --library-green-bg: #eef8f4;
    --library-green-border: #d6eee4;
    --library-white: #fff;
}

.page-title {
    background: var(--library-red);
}

.page-title .title-outer h1,
.page-title h1 {
    color: var(--library-white);
}

.library-search-box {
    background: var(--library-purple);
    padding: 24px 0;
    margin-bottom: 28px;
}

.library-search-box .form-control {
    height: 48px;
    border: 0;
    border-radius: 5px;
    padding-left: 46px;
    background: var(--library-white);
    color: var(--library-text);
    font-size: 14px;
    box-shadow: none;
}

.library-search-box .form-control::placeholder {
    color: #777a88;
}

.library-search-box .search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--library-purple);
    font-size: 17px;
}

.library-result-count {
    color: var(--library-white);
    font-size: 13px;
    font-weight: 700;
}

.library-filter {
    padding: 16px;
    border-color: var(--library-border) !important;
}

.library-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--library-border);
}

.library-filter-title {
    color: var(--library-purple);
    font-size: 17px;
    font-weight: 700;
}

.library-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--library-purple-border);
    background: var(--library-white);
    color: var(--library-purple);
}

.library-filter-toggle:hover,
.library-filter.is-collapsed .library-filter-toggle {
    border-color: var(--library-purple);
    background: var(--library-purple);
    color: var(--library-white);
}

.library-filter-body {
    max-height: 2200px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease;
}

.library-filter.is-collapsed .library-filter-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.library-filter.is-collapsed .library-filter-body {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.library-filter-group {
    margin-bottom: 13px;
    padding-bottom: 13px;
    border-bottom: 1px dashed var(--library-border);
}

.library-filter-group-title {
    display: block;
    margin-bottom: 8px;
    color: var(--library-purple);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.library-check-scroll {
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: #f6f7f9;
    padding: 5px;
}

.library-check-scroll::-webkit-scrollbar {
    width: 5px;
}

.library-check-scroll::-webkit-scrollbar-track {
    background: var(--library-purple-soft);
    border-radius: 10px;
}

.library-check-scroll::-webkit-scrollbar-thumb {
    background: var(--library-purple);
    border-radius: 10px;
}

.library-check {
    min-height: auto;
    margin-bottom: 7px;
    padding-left: 0;
}

.library-check .form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    color: var(--library-text);
    font-size: 12.5px;
    line-height: 1.32;
    cursor: pointer;
}

.library-check .form-check-input {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin: 1px 0 0;
    border-color: #c6c8d5;
}

.library-check .form-check-input:checked {
    background-color: var(--library-purple);
    border-color: var(--library-purple);
}

.library-active-tags {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
}

.library-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 9px;
    background: var(--library-purple);
    color: var(--library-white);
    font-size: 13px;
}

.library-active-tag .removeSearch {
    color: var(--library-white);
    cursor: pointer;
}

.library-sort {
    display: flex;
    align-items: center;
    margin-left: auto;
    color: var(--library-text);
    font-size: 13px;
}

.library-sort label {
    color: var(--library-text);
    font-weight: 600;
}

.library-sort .form-select,
.library-sort-select {
    border-color: var(--library-purple-border);
    color: var(--library-purple);
    box-shadow: none;
}

.library-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--library-border);
    border-radius: 7px;
    background: var(--library-white);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.library-card:hover {
    border-color: var(--library-purple-border);
    box-shadow: 0 8px 24px rgba(75, 0, 151, .08);
    transform: translateY(-1px);
}

.library-card-main {
    display: flex;
    min-height: 178px;
}

.library-cover {
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    width: 112px;
    min-width: 112px;
    background: #f1f2f6;
}

.library-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f1f2f6;
}

.library-content {
    flex: 1;
    min-width: 0;
    padding: 14px 16px 10px;
}

.library-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    color: #07091a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.22;
    text-transform: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.library-line-group {
    margin-bottom: 7px;
}

.library-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 3px;
    color: #34384d;
    font-size: 12.5px;
    line-height: 1.25;
}

.library-line i {
    flex: 0 0 auto;
    width: 13px;
    margin-top: 2px;
    color: var(--library-purple);
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.library-line span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.library-tag-lines {
    margin-top: 4px;
    margin-bottom: 0;
}

.library-tag-section {
    position: relative;
    padding-top: 7px;
    margin-top: 7px;
}

.library-tag-section:first-child {
    padding-top: 0;
    margin-top: 0;
}

.library-tag-section:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 19px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--library-purple-border), transparent);
}

.library-tag-section .library-line:last-child {
    margin-bottom: 0;
}

.library-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-top: 1px solid var(--library-purple-border);
    background: var(--library-white);
}

.library-info-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.library-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--library-purple-border);
    border-radius: 12px;
    background: var(--library-purple-soft);
    color: var(--library-purple);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.library-info i {
    color: var(--library-purple);
    font-size: 12px;
}

.library-info.ebook {
    border-color: var(--library-green-border);
    background: var(--library-green-bg);
    color: var(--library-green);
}

.library-info.ebook i {
    color: var(--library-green);
}

.library-info.typeCode {
    border-color: var(--library-red-border);
    background: var(--library-red-bg);
    color: var(--library-red);
}

.library-info.typeCode i {
    color: var(--library-red);
}

.library-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 31px;
    padding: 0 12px;
    border: 1px solid var(--library-purple-border);
    border-radius: 4px;
    background: var(--library-white);
    color: var(--library-purple);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.library-detail-btn:hover {
    border-color: var(--library-purple);
    background: var(--library-purple);
    color: var(--library-white);
    text-decoration: none;
}

.library-empty {
    padding: 30px;
    border: 1px solid var(--library-border);
    border-radius: 6px;
    background: var(--library-white);
    color: var(--library-muted);
    font-size: 14px;
    text-align: center;
}

.library-pager {
    margin-top: 30px;
}

.library-pager .ls-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
}

.library-pager .ls-pagination > nav {
    width: 100%;
}

.library-pager .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--library-border);
    border-radius: 10px;
    background: var(--library-white);
    box-shadow: 0 8px 24px rgba(75, 0, 151, .04);
}

.library-pager .page-item {
    margin: 0;
}

.library-pager .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--library-purple-border);
    border-radius: 9px !important;
    background: var(--library-purple-soft);
    color: var(--library-purple);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.library-pager .page-link:hover {
    border-color: var(--library-purple);
    background: var(--library-white);
    color: var(--library-purple);
    transform: translateY(-1px);
}

.library-pager .page-item.active .page-link {
    border-color: var(--library-purple);
    background: var(--library-purple);
    color: var(--library-white);
    box-shadow: 0 6px 16px rgba(75, 0, 151, .24);
}

.library-pager .page-link[disabled],
.library-pager .page-link[href="javascript:void(0)"],
.library-pager .page-item.disabled .page-link {
    border-color: #edf0f6;
    background: var(--library-white);
    color: #a4a9b8;
    cursor: default;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.library-pager .page-item:first-child .page-link,
.library-pager .page-item:last-child .page-link {
    min-width: 34px;
    font-size: 14px;
}

.btn-primary {
    border-color: var(--library-purple);
    background-color: var(--library-purple);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--library-purple-dark);
    background-color: var(--library-purple-dark);
}

.btn-outline-secondary {
    border-color: var(--library-purple-border);
    color: var(--library-purple);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: var(--library-purple);
    background-color: var(--library-purple);
    color: var(--library-white);
}


@media (max-width: 1199px) {
    .library-card-main {
        min-height: 174px;
    }
}


@media (max-width: 767px) {
    .library-search-box {
        padding: 18px 0;
        margin-bottom: 22px;
    }

    .library-filter {
        padding: 14px;
    }

    .library-check-scroll {
        max-height: 135px;
    }

    .library-filter-actions {
        margin-bottom: 12px;
    }

    .library-active-tags {
        width: 100%;
        flex: 0 0 100%;
        min-height: 0;
    }

    .library-active-tag {
        padding: 6px 10px;
        font-size: 12px;
    }

    .library-card-main {
        min-height: 150px;
    }

    .library-cover {
        width: 92px;
        min-width: 92px;
    }

    .library-content {
        padding: 12px 12px 8px;
    }

    .library-title {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.18;
    }

    .library-line-group {
        margin-bottom: 5px;
    }

    .library-line {
        margin-bottom: 2px;
        font-size: 11.5px;
        line-height: 1.2;
    }

    .library-line:nth-child(n+5) {
        display: none;
    }

    .library-footer {
        gap: 8px;
        padding: 8px 10px;
    }

    .library-info-list {
        flex: 1;
        gap: 4px;
        overflow: hidden;
    }

    .library-info {
        min-height: 21px;
        padding: 2px 7px;
        border-radius: 10px;
        font-size: 11px;
    }

    .library-detail-btn {
        flex: 0 0 auto;
        min-width: 58px;
        height: 29px;
        padding: 0 10px;
        font-size: 12px;
    }

    .library-sort {
        margin-left: auto;
    }

    .library-pager {
        margin-top: 28px;
    }

    .library-pager .pagination {
        gap: 12px;
        padding: 16px 12px;
        border-radius: 12px;
    }

    .library-pager .page-link {
        min-width: 64px;
        height: 64px;
        padding: 0 18px;
        border-radius: 16px !important;
        font-size: 22px;
        font-weight: 800;
    }

    .library-pager .page-item:first-child .page-link,
    .library-pager .page-item:last-child .page-link {
        min-width: 64px;
        font-size: 24px;
    }
}


@media (max-width: 420px) {
    .library-cover {
        width: 84px;
        min-width: 84px;
    }

    .library-content {
        padding: 10px;
    }

    .library-title {
        font-size: 13px;
    }

    .library-info {
        font-size: 10.5px;
    }

    .library-detail-btn {
        min-width: 54px;
        padding: 0 9px;
    }

    .library-pager .pagination {
        gap: 10px;
        padding: 16px 10px;
    }

    .library-pager .page-link {
        min-width: 58px;
        height: 58px;
        padding: 0 16px;
        border-radius: 14px !important;
        font-size: 20px;
    }

    .library-pager .page-item:first-child .page-link,
    .library-pager .page-item:last-child .page-link {
        min-width: 58px;
        font-size: 22px;
    }
}


/* ===================== YayÄ±n Detay SayfasÄ± ===================== */
.library-detail-section {
    padding-top: 22px;
    background: #fbfcff;
}

.library-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #7b8191;
    font-size: 13px;
}

.library-detail-breadcrumb a {
    color: #6b7080;
    text-decoration: none;
}

.library-detail-breadcrumb a:hover {
    color: var(--library-purple);
}

/* Hero */
.library-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 56px;
    margin-bottom: 26px;
}

.library-detail-hero-info {
    flex: 1;
    min-width: 0;
}

.library-detail-hero-cover {
    display: flex;
    flex: 0 0 255px;
    align-items: center;
    justify-content: center;
    width: 255px;
    min-height: 315px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #edf0f8;
    border-radius: 16px;
    background: linear-gradient(180deg, #f4f6ff 0%, #eef2ff 100%);
    box-shadow: 0 12px 34px rgba(55, 62, 112, .08);
}

.library-detail-hero-cover img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.library-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    padding: 6px 13px;
    border: 1px solid var(--library-green-border);
    border-radius: 20px;
    background: var(--library-green-bg);
    color: var(--library-green);
    font-size: 13px;
    font-weight: 600;
}

.library-detail-title {
    max-width: 690px;
    margin-bottom: 18px;
    color: var(--library-navy);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.08;
    text-transform: none;
}

.library-detail-authors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 22px;
}

.library-detail-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #34384d;
    font-size: 14.5px;
}

.library-detail-author i {
    color: var(--library-purple);
}

.library-detail-taxonomy {
    margin-bottom: 16px;
}

.library-detail-taxonomy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #71778a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.library-detail-taxonomy-label i {
    color: var(--library-purple);
    font-size: 14px;
}

.library-detail-taxonomy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.library-detail-link {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--library-purple);
    font-size: 14px;
    font-weight: 700;
}

.library-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.library-detail-download,
.library-detail-share {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 22px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.library-detail-download {
    border: 1px solid var(--library-purple);
    background: var(--library-purple);
    color: var(--library-white);
}

.library-detail-download:hover {
    border-color: var(--library-purple-dark);
    background: var(--library-purple-dark);
    color: var(--library-white);
    text-decoration: none;
}

.library-detail-share {
    border: 1px solid var(--library-purple-border);
    background: var(--library-white);
    color: var(--library-purple);
}

.library-detail-share:hover {
    border-color: var(--library-purple);
    background: var(--library-purple);
    color: var(--library-white);
    text-decoration: none;
}

/* Info strip */
.library-detail-info-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 0;
    margin-bottom: 28px;
    padding: 25px 10px;
    border: 1px solid #edf0f8;
    border-radius: 16px;
    background: var(--library-white);
    box-shadow: 0 10px 28px rgba(55, 62, 112, .06);
}

.library-detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 2px 24px;
    border-left: 1px solid #edf0f8;
}

.library-detail-info-item:nth-child(4n+1) {
    border-left: 0;
}

.library-detail-info-item > i {
    flex: 0 0 auto;
    margin-top: 2px;
    width: 22px;
    color: var(--library-purple);
    font-size: 18px;
    text-align: center;
}

.library-detail-info-label {
    display: block;
    margin-bottom: 2px;
    color: #7a8090;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.library-detail-info-value {
    display: block;
    color: #22263a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

/* Columns: about + references */
.library-detail-columns {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: start;
}

.library-detail-columns > .library-detail-about:only-child {
    grid-column: 1 / -1;
}

.library-detail-about,
.library-detail-references {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--library-white);
}

.library-detail-about h4,
.library-detail-references h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f8;
    color: var(--library-navy);
    font-size: 17px;
    font-weight: 700;
}

.library-detail-about-content {
    color: #4f5668;
    font-size: 14px;
    line-height: 1.72;
}

.library-detail-about-content img {
    max-width: 100%;
    height: auto;
}

.library-detail-reference-list {
    margin: 0;
    padding-left: 20px;
    color: #4f5668;
    font-size: 13px;
    line-height: 1.65;
}

.library-detail-reference-list li {
    margin-bottom: 10px;
}

/* Section title (Son Eklenen Kitaplar) */
.library-section-title {
    margin-bottom: 26px;
    text-align: center;
}

.library-section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    color: var(--library-navy);
    font-weight: 700;
}

.library-section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: var(--library-red);
}

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

.library-title a:hover {
    color: var(--library-purple);
}

.library-detail-btn-lg {
    min-width: 0;
    height: 44px;
    padding: 0 26px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .library-detail-hero {
        gap: 28px;
    }

    .library-detail-title {
        font-size: 32px;
    }

    .library-detail-hero-cover {
        flex-basis: 220px;
        width: 220px;
        min-height: 280px;
    }

    .library-detail-columns {
        grid-template-columns: 1fr;
    }

    .library-detail-info-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .library-detail-info-item {
        border-left: 1px solid var(--library-border);
    }

    .library-detail-info-item:nth-child(2n+1) {
        border-left: 0;
    }
}

@media (max-width: 575px) {
    .library-detail-info-strip {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 16px 0;
    }

    .library-detail-info-item,
    .library-detail-info-item:nth-child(2n+1) {
        padding: 0;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .library-detail-hero {
        flex-direction: column-reverse;
        gap: 18px;
    }

    .library-detail-hero-cover {
        flex-basis: 180px;
        width: 180px;
        min-height: 230px;
        margin: 0 auto;
    }

    .library-detail-title {
        font-size: 28px;
    }

    .library-detail-info-strip {
        gap: 16px;
        padding: 18px;
    }

    .library-detail-about,
    .library-detail-references {
        padding: 18px;
    }
}

.library-active-tags-bar {
    background-color: #f1f1f1;
    padding: 5px;
}

/* ===== YayÄ±n Detay (Yeni) ===== */
.yayin-detay-yeni-page {
    /* padding-top: 96px !important; */
    background: var(--library-white);
}

.yayin-detay-yeni-page a {
    color: var(--library-purple) !important;
}

.publication-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

.publication-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--library-green);
    color: var(--library-white);
    font-size: 13px;
    font-weight: 600;
}

.publication-detail-main h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--library-navy);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.08;
    text-transform: none;
}

.publication-detail-authors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 22px;
    color: #34384d;
    font-size: 14.5px;
    font-weight: 400;
}

.publication-detail-authors i {
    color: var(--library-purple);
}

.publication-detail-taxonomy {
    margin-bottom: 2px;
}

.publication-detail-taxonomy strong {
    display: block;
    margin-bottom: 5px;
    color: var(--library-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.publication-detail-taxonomy div {
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* gap: 8px 12px; */
}

.publication-detail-taxonomy span {
    color: var(--library-purple);
    font-size: 14px;
    /* font-weight: 700; */
    line-height: 1.35;
}

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

.publication-detail-actions a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid var(--library-purple-border);
    border-radius: 999px;
    background: var(--library-white);
    color: var(--library-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.publication-detail-actions a.primary {
    border-color: var(--library-navy);
    background: var(--library-navy);
    color: var(--library-white) !important;
}

.publication-detail-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 24px;
    border: 1px solid var(--library-border);
    border-radius: 16px;
    background: var(--library-purple-soft);
}

.publication-detail-cover img {
    max-width: 100%;
    max-height: 296px;
    object-fit: contain;
}

.publication-info-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
    margin-bottom: 26px;
    padding: 24px 10px;
    border: 1px solid var(--library-border);
    border-radius: 18px;
    background: var(--library-white);
}

.publication-info-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 0 24px;
}

.publication-info-item i,
.publication-all-values-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--library-purple-soft);
    color: var(--library-navy);
    font-size: 16px;
}

.publication-info-item small,
.publication-all-values-grid small {
    display: block;
    margin-bottom: 3px;
    color: var(--library-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.publication-info-item b,
.publication-all-values-grid b {
    display: block;
    color: var(--library-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: normal;
}

.publication-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--library-border);
}

.publication-detail-content h2,
.publication-all-values h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--library-navy);
    font-size: 17px;
    font-weight: 700;
}

.publication-richtext {
    color: #4f5668;
    font-size: 14px;
    line-height: 1.72;
}

.publication-summary {
    position: relative;
}

.publication-summary[data-collapsed="true"] .publication-richtext {
    max-height: 400px;
    overflow: hidden;
}

.publication-summary[data-collapsed="true"].is-overflowing::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 310px;
    height: 90px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--library-white));
    pointer-events: none;
}

.publication-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 18px;
    border: 1px solid var(--library-purple-border);
    border-radius: 999px;
    background: var(--library-white);
    color: var(--library-purple);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.publication-summary-toggle:hover {
    background: var(--library-purple-soft);
}

.publication-summary-toggle i {
    transition: transform .2s ease;
}

.publication-summary[data-collapsed="false"] .publication-summary-toggle i {
    transform: rotate(180deg);
}

.publication-reference-list {
    margin: 0;
    padding-left: 20px;
    color: #4f5668;
    font-size: 13px;
    line-height: 1.65;
}

.publication-reference-list li {
    margin-bottom: 10px;
    list-style-type: decimal;
}

.publication-all-values {
    margin-top: 38px;
    padding-top: 32px;
    border-top: 1px solid var(--library-border);
}

.publication-all-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px 24px;
    border: 1px solid var(--library-border);
    border-radius: 16px;
    background: var(--library-white);
    overflow: hidden;
}

.publication-all-values-grid > div {
    display: grid;
    grid-template-columns: 34px 140px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--library-border);
}

.publication-all-values-grid > div:last-child,
.publication-all-values-grid > div:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
}

.publication-all-values-grid small {
    margin-bottom: 0;
}

.publication-all-values-grid b {
    line-height: 1.45;
}

@media (max-width: 991px) {

    .publication-detail-hero,
    .publication-detail-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .publication-detail-main h1 {
        font-size: 32px;
    }

    .publication-info-card,
    .publication-all-values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .publication-detail-main h1 {
        font-size: 28px;
    }

    .publication-info-card,
    .publication-all-values-grid {
        grid-template-columns: 1fr;
        padding: 22px 0;
    }
}

img[data-fancybox] {
    cursor: pointer;
}

.company-block-four .inner-box a {
    color: #2d4263;
}

