/* =========================================================
   Nagłówek / sticky header
   ========================================================= */

#masthead {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   Strona główna - karty publikacji
   ========================================================= */

.vst-home-publications {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

    width: 100%;
}


/* Karta */

.vst-home-publication-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    overflow: hidden;

    border: 1px solid #d7dde5;
    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, .05);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.vst-home-publication-card:hover {
    border-color: #0674d8;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .08);
}


/* Okładka */

.vst-home-publication-cover {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 300px;
    padding: 18px;

    background: #f7f8fa;
}

.vst-home-publication-cover img {
    display: block;

    width: auto;
    max-width: 100%;
    height: 270px;

    object-fit: contain;
}

.vst-home-publication-no-cover {
    color: #667085;
    font-size: .9rem;
}


/* Zawartość */

.vst-home-publication-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 16px;
}


/* Badges */

.vst-home-publication-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-bottom: 10px;
}

.vst-home-badge {
    display: inline-flex;
    align-items: center;

    padding: 2px 6px;

    border: 1px solid #cbd5e1;
    border-radius: 3px;

    background: #fff;

    font-size: .72rem;
    line-height: 1.3;
    font-weight: 500;
}

.vst-home-badge-oa {
    border-color: #b8d84a;
    background: #c7e94f;
    color: #263600;

    text-transform: uppercase;
    font-weight: 600;
}


/* Tytuł */

.vst-home-publication-title {
    margin: 0 0 9px;

    font-size: 1rem;
    line-height: 1.35;
    font-weight: 600;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
    min-height: 4.05em;
}

.vst-home-publication-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.vst-home-publication-title a:hover {
    color: #0674d8;
    text-decoration: none !important;
}

.vst-home-publication-title a:focus,
.vst-home-publication-title a:visited {
    text-decoration: none !important;
}

/* Osoby */

.vst-home-publication-people {
    margin-bottom: 7px;

    font-size: .86rem;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    min-height: 2.8em;
}


/* Rok */

.vst-home-publication-year {
    margin-top: 4px;
    margin-bottom: 8px;

    color: #667085;
    font-size: .84rem;
}

.vst-home-forthcoming-section {
    width: 100%;
}

.vst-home-forthcoming-header {
    margin-bottom: 32px;
}

.vst-home-forthcoming-header h2 {
    margin-bottom: 12px;
}

.vst-home-forthcoming-header p {
    margin-bottom: 0;
}

.vst-home-badge-forthcoming {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #334155;

    text-transform: uppercase;
    font-weight: 600;
}

.vst-home-publication-forthcoming {
    color: #334155;
    font-size: .95rem;
    font-weight: 600;
}

/*
 * Footer karty jest dociskany do dołu,
 * dzięki czemu karty wyglądają równo.
 */
.vst-home-publication-footer {
    margin-top: auto;
    padding-top: 10px;
}

.vst-home-publication-price,
.vst-home-publication-free {
    font-size: .95rem;
    font-weight: 600;
}

.vst-home-publication-free {
    color: #245600;
}


/* Szybkie przejścia */

.wp-block-uagb-container.vst-quick-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    min-height: 210px;
    height: 100%;

    padding: 18px;

    border: 1px solid #d7dde5;
    border-radius: 8px;

    background: #fff;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.06);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.wp-block-uagb-container.vst-quick-link:hover {
    border-color: #0674d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

/* Ikona */

.vst-quick-link .wp-block-icon {
    margin: 0 0 14px;
}

.vst-quick-link .wp-block-icon svg {
    width: 20px;
    height: 20px;
}

/* Tytuł */

.vst-quick-link h4 {
    margin: 0 0 12px;
    line-height: 1.3;
}

/* Opis */

.vst-quick-link .wp-block-paragraph {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.5;
}

/*
 * Ostatni akapit zawiera link „Więcej”.
 * margin-top:auto dociska go do dołu kafelka.
 */
.vst-quick-link .wp-block-paragraph:last-child {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 14px;
}

/* Link */

.vst-quick-link .wp-block-paragraph:last-child a {
    font-weight: 500;
    text-decoration: none;
}

.vst-quick-link .wp-block-paragraph:last-child a:hover {
    text-decoration: underline;
}

/* Main page - Blok o wydawnictwie */
.vst-about-button-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: translateY(-7px);
}

.vst-about-button-wrap .wp-block-button,
.vst-about-button-wrap .uagb-buttons-repeater,
.vst-about-button-wrap a {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* =========================================================
   Elementy wspólne publikacji, produktów i treści
   ========================================================= */

.vst-button-secondary {
    background: transparent !important;
    color: #0674d8 !important;
    border: 1px solid #0674d8 !important;
}

.vst-button-secondary:hover {
    background: #f0f7ff !important;
    color: #0568c2 !important;
    border-color: #0568c2 !important;
}

.vst-button-secondary a,
.vst-button-secondary .uagb-button__link {
    background: transparent !important;
    color: #0674d8 !important;
    border: 1px solid #0674d8 !important;
}

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

.vst-meta-table,
.vst-chapters-table {
    width: 100%;
    border-collapse: collapse;
}

.vst-meta-table th,
.vst-meta-table td,
.vst-chapters-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
    vertical-align: top;
}

.vst-meta-table th {
    width: 35%;
    font-weight: 600;
}

.vst-meta-table tr:nth-child(even),
.vst-chapters-table tr:nth-child(even) {
    background: #f8f9fa;
}

.vst-chapter-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.vst-pages {
    margin-left: .5rem;
}

.vst-authors {
    display: block;
    margin-top: .35rem;
}

.vst-publications-heading {
    margin: 0 0 1.5rem;
    padding: .85rem 1rem;
    border-left: 4px solid #0073aa;
    background: #f8f9fa;
    font-size: 1rem;
}

.vst-publications-heading a {
    font-weight: 600;
}

.vst-english-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #f9f9f9;
}

/* Oznaczenie publikacji wyróżnionej na stronie książki */

.vst-featured-publication-notice {
    margin: 0 0 12px;
}

.vst-featured-publication-notice a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #475467 !important;

    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;

    text-decoration: none !important;
}

.vst-featured-publication-notice a:hover,
.vst-featured-publication-notice a:focus {
    color: #0674d8 !important;
    text-decoration: none !important;
}

.vst-featured-publication-star {
    color: #d6a000;

    font-size: 1.15rem;
    line-height: 1;
}


.vst-section-kicker,
.vst-extra-pdfs-title,
.vst-publication-role {
    margin-bottom: .5rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vst-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 .5rem 1rem 0;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vst-badge-open {
    color: #111;
    background: #a6ce39;
}

.vst-badge-soldout {
    color: #fff;
    background: #666;
}

.vst-badge-forthcoming {
    background: #f4b942;
    color: #111;
}

.vst-pdf-button span {
    margin-right: .4rem;
    font-weight: 700;
}

.vst-extra-pdfs {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e6e6e6;
}

.vst-extra-pdfs ul {
    margin: 0;
    padding-left: 1.2rem;
}

.vst-chapter-authors {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.vst-chapter-technical {
    margin-bottom: 1.5rem;
}

.vst-chapter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e6e6e6;
}

.vst-nav-link {
    text-decoration: none;
}

.vst-nav-next {
    text-align: right;
}

.vst-nav-label {
    display: block;
    margin-bottom: .25rem;
    color: #666;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vst-back-wrap {
    margin-top: 2rem;
    text-align: center;
}

.vst-author-contact {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .4rem 1rem;
    margin-bottom: 1.5rem;
}

.vst-author-contact dt {
    font-weight: 600;
}

.vst-author-contact dd {
    margin: 0;
}

.vst-author-tabs {
    display: flex;
    gap: .5rem;
    border-bottom: 2px solid #e6e6e6;
}

.vst-tab-btn {
    padding: .7rem 1rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #555;
    font-weight: 600;
    cursor: pointer;
}

.vst-tab-btn.is-active {
    border-bottom-color: currentColor;
    color: #0073aa;
}

.vst-tab-btn:focus {
    outline: none;
    box-shadow: none;
}

.vst-tab-btn:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.vst-tab-btn:focus-visible {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

.vst-tab-panel {
    padding-top: 1.25rem;
}

.vst-author-photo {
    float: left;
    width: 200px;
    height: auto;
    margin: 0 1.5rem 1rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.vst-publication-list {
    margin-bottom: 2rem;
}

.vst-publication-item {
    padding: 1rem;
    border-bottom: 1px solid #e6e6e6;
}

.vst-publication-item:nth-child(even) {
    background: #f8f9fa;
}

.vst-publication-item h4 {
    margin: 0;
}

.vst-publication-item p {
    margin: .4rem 0 0;
}

.tax-osoba .term-description {
    display: none;
}

.vst-orcid-inline {
    display: inline-flex;
    align-items: center;
    margin-left: .15rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
    font-size: .75rem;
}

.vst-orcid-inline img {
    display: block;
    width: 15px;
    height: 15px;
}

.vst-free-access {
    display: inline-block;
    color: #245600;
    font-size: 1.15rem;
    font-weight: 700;
}

.vst-format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .5rem 0 .7rem;
}

.vst-format-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .55rem;
    border: 1px solid #777;
    border-radius: 3px;
    background: #f5f5f5;
    color: #333;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
}

.vst-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 500;
}

.vst-pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vst-pdf-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.woocommerce a.vst-pdf-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    font-weight: 500 !important;
    text-decoration: none;
}

.woocommerce a.vst-pdf-button .vst-pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: .65rem;
    flex: 0 0 30px;
    line-height: 1;
    transform: translateY(-1px);
}

.woocommerce a.vst-pdf-button .vst-pdf-icon svg {
    display: block;
    width: 28px !important;
    height: 28px !important;
}

.woocommerce a.vst-pdf-button span:last-child {
    display: inline-block;
    font-weight: 500 !important;
    line-height: 1.2;
}


/* Widoki katalogowe WooCommerce */
body.post-type-archive-product .vst-free-access,
body.tax-product_cat .vst-free-access,
body.tax-product_tag .vst-free-access,
.woocommerce-shop .vst-free-access,
.wc-block-grid__product .vst-free-access {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 1.2rem;
    padding: .65rem 1.2rem;
    border: 1px solid #a6ce39;
    border-radius: 4px;
    background: #a6ce39;
    color: #111;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: default;
    box-sizing: border-box;
}

.vst-purchase-info {
    margin: 2rem 0;
    padding: 1.25rem 1.4rem;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    background: #f8f9fa;
}

.vst-purchase-info h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.vst-purchase-info-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.vst-purchase-info-item + .vst-purchase-info-item {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid #e3e6ea;
}

.vst-purchase-info-item p {
    margin: 0;
}

.vst-purchase-info-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: .05rem;
}

.vst-purchase-info-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vst-purchase-info a {
    font-weight: 600;
}

.vst-university-price,
.vst-bibliographic-description {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    background: #f8f9fa;
}

.vst-university-price-value,
.vst-university-active-price {
    display: block;
    margin-bottom: 4px;
    font-size: 1.15em;
    font-weight: 700;
}

.vst-university-price-note {
    font-size: 0.95em;
    line-height: 1.4;
}

.vst-bibliographic-description {
    padding: 10px 12px;
}

.vst-bibliographic-label {
    margin-bottom: 5px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vst-bibliographic-text {
    font-size: 0.9em;
    line-height: 1.4;
}

.vst-copy-bibliographic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2937;
    vertical-align: -6px;
    cursor: pointer;
}

.vst-copy-bibliographic:hover {
    background: transparent;
    color: #0067c5;
    opacity: 1;
}

.vst-copy-bibliographic svg {
    width: 19px;
    height: 19px;
}

.vst-bibliographic-end {
    white-space: nowrap;
}

.vst-other-editions-note,
.vst-other-editions-current-note {
    margin-bottom: 16px;
}

.vst-related-editions-list {
    margin: 0;
    padding-left: 20px;
}

.vst-related-editions-list li {
    margin-bottom: 8px;
    line-height: 1.45;
}

.vst-related-editions-list a {
    text-decoration: none;
}

.vst-related-editions-list a:hover {
    text-decoration: underline;
}

.vst-newer-edition-label {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.82em;
    font-weight: 600;
}

.vst-newer-edition-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #e1e5e9;
    border-left: 4px solid #b42318;
    border-radius: 4px;
    background: #fafafa;
    line-height: 1.45;
}

.vst-newer-edition-icon {
    flex: 0 0 auto;
    font-size: 1.15em;
    line-height: 1.2;
    color: #b42318;
}

.vst-catalog-university-price {
    display: inline;
    margin-left: 10px;
    font-size: 0.92em;
    font-weight: 400;
}

.vst-tab-panel[hidden] {
    display: none !important;
}

#vst-biogram.vst-biogram-with-photo:not([hidden]) {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
}

#vst-biogram.vst-biogram-without-photo:not([hidden]) {
    display: block;
}

#vst-biogram .vst-author-photo {
    float: none !important;
    width: 160px;
    max-width: 100%;
    margin: 0 !important;
}

#vst-biogram .vst-author-bio {
    min-width: 0;
}

.vst-author-bio ul,
.vst-author-bio ol {
    margin-left: 0 !important;
    padding-left: 1.4em !important;
}

.vst-author-bio ul {
    list-style-type: disc;
    list-style-position: outside;
}

/* Wyszukiwanie zaawansowane */

.vst-advanced-search {
    position: relative;
    max-width: 1100px;
    padding-bottom: 80px;
}

.vst-advanced-search-section {
    margin: 0 0 22px;
}

.vst-advanced-search-section h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.vst-advanced-search-heading-row {
    position: relative;
    display: block;
    margin: 0 0 10px;
    padding-right: 0;
}

.vst-advanced-search-heading-row h2 {
    margin: 0;
}

.vst-advanced-search-instructions {
    display: block;
    width: 100%;
    min-width: 0;
}

.vst-advanced-search-instructions summary {
    position: absolute;
    top: -2px;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: max-content;
    padding: 7px 11px;

    border: 1px solid #d7dde5;
    border-radius: 5px;

    background: #f8fafc;
    color: #475467;

    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;

    cursor: pointer;
    list-style: none;
    user-select: none;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}

.vst-advanced-search-instructions summary::-webkit-details-marker {
    display: none;
}

.vst-advanced-search-instructions summary:hover {
    border-color: #b9c6d3;
    background: #f4f7fa;
    color: #0674d8;
}

.vst-advanced-search-instructions summary:focus {
    outline: none;
}

.vst-advanced-search-instructions summary:focus-visible {
    outline: 2px solid #5f87a8;
    outline-offset: 3px;
    border-radius: 2px;
}

.vst-advanced-search-instructions-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;

    transition: transform .15s ease;
}

.vst-advanced-search-instructions[open]
.vst-advanced-search-instructions-arrow {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.vst-advanced-search-instructions-content {
    margin-top: 12px;
    padding: 12px 14px;

    border: 1px solid #d7dde5;
    border-radius: 6px;

    background: #f8fafc;
    color: #475467;

    font-size: .92rem;
    line-height: 1.5;
}

.vst-advanced-search-instructions-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.vst-advanced-search-instructions-content li + li {
    margin-top: 6px;
}

.vst-advanced-search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.vst-advanced-search-field input,
.vst-advanced-search-field select,
.vst-advanced-search-field textarea,
.vst-advanced-person-field input {
    width: 100%;
}

.vst-advanced-search-field textarea {
    resize: vertical;
    min-height: 72px;
}

.vst-advanced-search-help {
    margin: 3px 0 9px;
    font-size: 0.88em;
    line-height: 1.4;
    color: #667085;
}


/* Tytuły */

.vst-advanced-search-grid-2 {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}


/* Osoby */

.vst-advanced-people {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.vst-advanced-person-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    width: 100%;
}

.vst-advanced-person-row > * {
    min-width: 0;
}

.vst-add-person-holder {
    margin-top: 8px;
}

.vst-add-person {
    width: 140px;
    min-width: 140px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
}

.vst-advanced-person-row > .vst-add-person {
    align-self: center;
    justify-self: start;
    white-space: nowrap;
}

.vst-advanced-person-row input[type="text"],
.vst-advanced-person-row input[type="search"] {
    width: 100%;
}

.vst-advanced-person-field {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.vst-remove-person {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;

    width: 36px;
    height: 36px;
    padding: 0;

    border: 1px solid #d1d5db;
    border-radius: 3px;

    background: #f3f4f6;
    color: #6b7280;

    cursor: pointer;
    box-shadow: none;
}

.vst-remove-person:hover {
    background: #e5e7eb;
    color: #374151;
}

.vst-remove-person svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ISBN, DOI, nr kat., lata */

.vst-advanced-bibliographic-grid {
    display: grid;
    grid-template-columns:
        minmax(170px, 1.35fr)
        minmax(190px, 1.5fr)
        minmax(100px, .75fr)
        90px
        90px;
    gap: 12px;
    align-items: end;
}


/* Seria, język, forma, dostęp, wyróżnione */

.vst-advanced-classification-grid {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.2fr)
        minmax(120px, .7fr)
        minmax(150px, .85fr)
        minmax(160px, .9fr)
        minmax(140px, .8fr);
    gap: 12px;
}

/* Wyniki wyszukiwania zaawansowanego */

.vst-advanced-search-results {
    margin-top: 34px;
}

.vst-advanced-search-results-head {
    margin-bottom: 18px;
}

.vst-advanced-search-results-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.vst-advanced-search-pagination {
    margin-top: 24px;
}


/* Wydawcy */

.vst-advanced-publishers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 34px;
}

.vst-advanced-publisher {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}


/* Kategorie */

.vst-advanced-categories {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 7px 18px;
}

.vst-advanced-category {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.vst-advanced-category input {
    flex: 0 0 auto;
}

.vst-advanced-category span {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Pływający panel akcji */

.vst-advanced-search-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;

    padding: 12px 16px;
    margin: 24px 0 0;

    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    z-index: 30;
}

.vst-advanced-search-reset {
    white-space: nowrap;
}


/* Honeypot */

.vst-advanced-search-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Pliki do pobrania na zwykłych stronach */

.vst-page-download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 14px;

    margin: 0 0 12px;
    padding: 14px 16px;

    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.vst-page-download:first-child {
    margin-top: 18px;
}

.vst-page-download > a:first-child {
    min-width: 0;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.vst-page-download > a:first-child:hover {
    text-decoration: underline;
}

.vst-page-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 13px;
    border-radius: 4px;

    background: #0674d8;
    color: #fff !important;

    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    white-space: nowrap;
}

.vst-page-download-button:hover {
    background: #0568c2;
}

.vst-page-download-description {
    grid-column: 1 / -1;

    margin-top: 4px;
    font-size: .88rem;
    line-height: 1.4;
    color: #6b7280;
}

.vst-page-download-description p {
    margin: 0;
}

.page .entry-content h3 {
    margin-bottom: 18px;
}

/* =========================================================
   Stopka
   ========================================================= */

.site-footer .ast-footer-copyright ul {
    margin: 0;
    padding-left: 0;
    list-style: none !important;
}

.site-footer .ast-footer-copyright ul li {
    margin: 0;
    padding: 0;
    list-style: none !important;
    text-align: left;
}

.site-footer .ast-footer-copyright ul li::marker {
    content: "";
}

.site-footer .ast-footer-copyright ul li + li {
    margin-top: 4px;
}

/* =========================================================
   Okruszki / breadcrumbs
   ========================================================= */

.ast-breadcrumbs,
.ast-breadcrumbs-wrapper,
.woocommerce-breadcrumb {
    margin: 0 0 12px;

    color: #667085 !important;

    font-size: .92rem !important;
    line-height: 1.4;
    font-weight: 400;
}

.ast-breadcrumbs a,
.ast-breadcrumbs-wrapper a,
.woocommerce-breadcrumb a {
    color: #667085 !important;

    font-size: inherit !important;
    font-weight: 400 !important;

    text-decoration: none !important;
}

.ast-breadcrumbs a:hover,
.ast-breadcrumbs-wrapper a:hover,
.woocommerce-breadcrumb a:hover {
    color: #0674d8 !important;
    text-decoration: underline !important;
}

/* Zwykłe strony i archiwa */

.page .ast-breadcrumbs,
.page .ast-breadcrumbs-wrapper,
.post-type-archive-product .ast-breadcrumbs,
.tax-product_cat .ast-breadcrumbs,
.tax-product_tag .ast-breadcrumbs,
.tax-seria_wydawnicza .ast-breadcrumbs {
    margin-bottom: 12px;
}

/* Pojedyncza książka */

.single-product .woocommerce-breadcrumb,
.single-product .ast-breadcrumbs,
.single-product .ast-breadcrumbs-wrapper {
    margin-top: 4px;
    margin-bottom: 18px;
}

/* =========================================================
 * Nagłówek: Moje konto + koszyk
 * ========================================================= */

.vst-header-user-tools {
	display: flex;
	align-items: center;
	margin-left: 8px;
}

.vst-header-user-tools-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.vst-header-account-link,
.vst-header-cart-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}

.vst-header-account-link:hover,
.vst-header-cart-link:hover {
	color: inherit;
}

.vst-header-account-icon,
.vst-header-cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.vst-header-account-icon svg,
.vst-header-cart-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.vst-header-user-tools-separator {
	display: block;
	width: 1px;
	height: 20px;
	margin: 0 3px;
	background: currentColor;
	opacity: 0.25;
}

.vst-header-cart-link {
	gap: 4px;
}

.vst-header-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	color: #fff;
	background: #1e73be;
}

.vst-invoice-copy-wrap {
	margin: 2px 0 10px;
}

.wc-block-checkout .vst-invoice-copy-button {
	appearance: none !important;
	display: inline !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: #1673c9 !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	cursor: pointer;
}

.wc-block-checkout .vst-invoice-copy-button:hover,
.wc-block-checkout .vst-invoice-copy-button:focus {
	background: none !important;
	color: #135fa5 !important;
	box-shadow: none !important;
}

.vst-invoice-field-error {
	margin-top: 4px;
	font-size: 12px;
	color: #cc1818;
}

.vst-phone-help {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: #5f6368;
}

.vst-phone-error {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: #cc1818;
}

.vst-phone-required label::after {
	content: " *";
	color: #cc1818;
}

.vst-cart-shipping-note {
	margin: 8px 0 14px;
	font-size: 13px;
	line-height: 1.45;
	color: #5f6368;
}

.vst-related-publications-section {
    margin-top: 2.5rem;
}

.vst-related-publications-section > h2 {
    margin-bottom: 0.4rem;
}

.vst-related-publications-description {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #5f6670;
}

.vst-empty-cart-icon {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 1rem;
    color: #1f2937;
}

.vst-empty-cart-icon svg {
    display: block;
}

.wc-block-cart__empty-cart__title {
    margin-bottom: 0.5rem;
}

@keyframes vst-cart-shake {
    0%,
    100% {
        transform: translateX(0) rotate(0);
    }

    20% {
        transform: translateX(-3px) rotate(-8deg);
    }

    40% {
        transform: translateX(3px) rotate(8deg);
    }

    60% {
        transform: translateX(-2px) rotate(-5deg);
    }

    80% {
        transform: translateX(2px) rotate(5deg);
    }
}

@keyframes vst-cart-count-pop {
    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.35);
    }

    70% {
        transform: scale(0.92);
    }
}

.vst-header-cart-link.vst-cart-just-added
.vst-header-cart-icon {
    animation: vst-cart-shake 0.55s ease-in-out;
    transform-origin: center;
}

.vst-header-cart-link.vst-cart-just-added
.vst-header-cart-count {
    animation: vst-cart-count-pop 0.55s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .vst-header-cart-link.vst-cart-just-added
    .vst-header-cart-icon,
    .vst-header-cart-link.vst-cart-just-added
    .vst-header-cart-count {
        animation: none;
    }
}

/* Inne publikacje autorów i współtwórców */

.vst-product-person-publications {
    margin-top: 3rem;
}

.vst-product-person-publications__title {
    margin-bottom: 1rem;
}

.vst-product-person-publications__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.vst-product-person-publications__link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    text-decoration: none;
}

.vst-product-person-publications__name {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.vst-product-person-publications__role {
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0.72;
}

.vst-product-person-publications__arrow {
    font-size: 1.05em;
}

#vst-publikacje,
#vst-biogram {
    scroll-margin-top: 100px;
}

/* Podobne publikacje - cena uczelniana w tej samej linii co cena główna */

.vst-related-publications .vst-home-publication-price {
    line-height: 0.65rem !important;
}

.vst-related-publications .vst-home-publication-price *,
.vst-related-publications .vst-home-university-price,
.vst-related-publications .vst-home-university-price * {
    line-height: 0.65rem !important;
}

.vst-related-publications .vst-home-university-price {
    display: inline;
    margin-left: 0.4rem;

    font-size: 0.72rem;
    font-weight: 400;
}

.vst-related-publications
.vst-home-university-price
.woocommerce-Price-amount {
    font-weight: 600;
}

/* =========================================================
   RESPONSYWNOŚĆ
   Wszystkie breakpointy są zebrane w jednym miejscu.
   Przy dalszych zmianach należy zastępować cały blok
   danego @media, zamiast dopisywać pojedyncze reguły.
   ========================================================= */


/* ---------------------------------------------------------
   Do 900 px - tablet / mniejszy laptop
   --------------------------------------------------------- */

@media (max-width: 900px) {

    /* Strona główna - publikacje: 2 kolumny */

    .vst-home-publications {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    /*
     * Wyrównywanie minimalnej wysokości tytułu i osób
     * jest potrzebne tylko przy 4 kolumnach na desktopie.
     */
    .vst-home-publication-title,
    .vst-home-publication-people {
        min-height: 0;
    }

    .vst-home-publication-cover {
        min-height: 250px;
        padding: 14px;
    }

    .vst-home-publication-cover img {
        height: 220px;
    }

    /* Logo */

    .site-header .custom-logo-link img {
        width: auto;
        height: auto;
        max-width: 85px;
    }

}


/* ---------------------------------------------------------
   Pasek administratora WordPress
   --------------------------------------------------------- */

@media (max-width: 782px) {

    .admin-bar #masthead {
        top: 46px;
    }

}


/* ---------------------------------------------------------
   601-700 px - szybkie przejścia 2 x 2
   --------------------------------------------------------- */

@media (min-width: 601px) and (max-width: 699px) {

    /*
     * Strona główna - szybkie przejścia.
     * Spectra dodaje wewnętrzny wrapper,
     * dlatego układ 2 x 2 ustawiamy właśnie na nim.
     */

    .wp-block-uagb-container.vst-quick-links
    > .uagb-container-inner-blocks-wrap {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 16px !important;

        width: 100% !important;
    }

    .wp-block-uagb-container.vst-quick-links
    > .uagb-container-inner-blocks-wrap
    > .wp-block-uagb-container.vst-quick-link {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

}

/* ---------------------------------------------------------
   Do 700 px - wspólne widoki tablet / telefon
   --------------------------------------------------------- */

@media (max-width: 700px) {

    /* =====================================================
       Wyszukiwanie zaawansowane
       ===================================================== */

    .vst-advanced-search {
        padding-bottom: 90px;
    }

    .vst-advanced-search-heading-row {
        padding-right: 0;
    }

    .vst-advanced-search-instructions {
        margin-top: 8px;
    }

    .vst-advanced-search-instructions summary {
        position: static;
        justify-content: center;
        width: max-content;
        margin-left: 0;
    }

    .vst-advanced-search-instructions-content {
        margin-top: 6px;
        padding: 11px 12px;
        font-size: .88rem;
    }

    .vst-advanced-search-grid-2,
    .vst-advanced-person-row,
    .vst-advanced-classification-grid {
        grid-template-columns: 1fr;
    }

    .vst-advanced-person-remove {
        width: 44px;
    }

    .vst-advanced-bibliographic-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .vst-advanced-bibliographic-grid
    .vst-advanced-search-field:nth-child(1),
    .vst-advanced-bibliographic-grid
    .vst-advanced-search-field:nth-child(2),
    .vst-advanced-bibliographic-grid
    .vst-advanced-search-field:nth-child(3) {
        grid-column: 1 / -1;
    }

    .vst-advanced-categories {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .vst-advanced-search-actions {
        width: calc(100% - 16px);
        min-width: 0;
        bottom: 8px;
    }


    /* =====================================================
       Tabela metadanych
       ===================================================== */

    .vst-meta-table th,
    .vst-meta-table td {
        display: block;
        width: 100%;
    }

    .vst-meta-table th {
        padding-bottom: .25rem;
        border-bottom: 0;
    }

    .vst-meta-table td {
        padding-top: .25rem;
    }


    /* =====================================================
       Nawigacja rozdziałów
       ===================================================== */

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

    .vst-nav-next {
        text-align: left;
    }


    /* =====================================================
       Strona osoby
       ===================================================== */

    .vst-author-photo {
        float: none;
        display: block;
        margin: 0 0 1rem;
    }

    #vst-biogram.vst-biogram-with-photo:not([hidden]) {
        display: block;
    }

    #vst-biogram .vst-author-photo {
        display: block;
        width: auto;
        max-width: 180px;
        margin: 0 0 20px 0 !important;
    }


    /* =====================================================
       Szybkie przejścia
       ===================================================== */

    .wp-block-uagb-container.vst-quick-link {
        min-height: 0 !important;
        height: auto !important;
        padding: 12px 14px !important;
    }

    .vst-quick-link .wp-block-icon {
        margin-bottom: 8px;
    }

    .vst-quick-link h4 {
        margin-bottom: 8px;
        line-height: 1.25;
    }

    .vst-quick-link .wp-block-paragraph {
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .vst-quick-link .wp-block-paragraph:last-child {
        margin-top: 8px;
        padding-top: 0;
    }


    /* =====================================================
       Blok "O Wydawnictwie"
       ===================================================== */

    .vst-about-button-wrap {
        transform: none;
    }

}


/* ---------------------------------------------------------
   Do 600 px - telefon / mały tablet
   --------------------------------------------------------- */

@media (max-width: 600px) {

    /* Strona główna - publikacje: 1 kolumna, karta pozioma */

    .vst-home-publications {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vst-home-publication-card {
        flex-direction: row;
        border-radius: 7px;
    }

    .vst-home-publication-cover {
        flex: 0 0 120px;
        min-height: 0;
        padding: 10px;
    }

    .vst-home-publication-cover img {
        width: 100%;
        height: auto;
        max-height: 170px;
        object-fit: contain;
    }

    .vst-home-publication-content {
        min-width: 0;
        padding: 10px 12px;
    }

    .vst-home-publication-badges {
        gap: 4px;
        margin-bottom: 8px;
    }

    .vst-home-publication-title {
        margin-bottom: 7px;
        min-height: 0;
        font-size: .95rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .vst-home-publication-people {
        margin-bottom: 5px;
        min-height: 0;
        font-size: .82rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .vst-home-publication-year {
        margin-top: 2px;
        margin-bottom: 6px;
        font-size: .8rem;
    }

    .vst-home-publication-footer {
        padding-top: 7px;
    }


    /* Szybkie przejścia: 1 kolumna */

    .vst-quick-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .wp-block-uagb-container.vst-quick-link {
        min-height: 0;
        padding: 14px;
    }


    /* Logo */

    .site-header .custom-logo-link img {
        width: auto;
        height: auto;
        max-width: 70px;
    }

}


/* ---------------------------------------------------------
   Do 420 px - bardzo mały ekran
   --------------------------------------------------------- */

@media (max-width: 420px) {

    /* Wyszukiwanie zaawansowane */

    .vst-advanced-categories {
        grid-template-columns: 1fr;
    }

    .vst-advanced-search-actions {
        justify-content: space-between;
        gap: 10px;
    }

    /*
     * Nie nadpisujemy ponownie wymiarów kart publikacji.
     * Układ poziomy z breakpointu 600 px pozostaje bez zmian.
     */

    .site-header .custom-logo-link img {
        max-width: 60px;
    }

}


/* =========================================================
   VST 1.1 - karty publikacji, ceny i mobilny hero
   ========================================================= */

.vst-home-publication-meta {
    margin-bottom: 8px;
    font-size: .86rem;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.vst-home-publication-meta .vst-home-publication-people,
.vst-home-publication-meta .vst-home-publication-year {
    display: inline;
    min-height: 0;
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.vst-home-publication-price {
    display: block;
    line-height: 1.35;
}

.vst-home-university-price {
    display: block;
    margin-top: 5px;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.3;
}

.vst-home-university-price-value {
    font-size: 1.04em;
    font-weight: 700;
}

.vst-home-university-price-note {
    color: #667085;
}

@media (max-width: 600px) {
    .site-header .custom-logo-link img {
        width: clamp(110px, 31vw, 150px) !important;
        max-width: 150px !important;
        height: auto !important;
    }

    .vst-home-publication-meta {
        margin-bottom: 5px;
        font-size: .8rem;
        line-height: 1.35;
    }

    .vst-person-name-full {
        display: none;
    }

    .vst-person-name-short {
        display: inline;
    }

}

/* =========================================================
   VST 1.1 - interaktywne cytowania
   ========================================================= */

.vst-citation-box {
    position: relative;
    margin-top: 12px;
    padding: 12px 14px 13px;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    background: #f8f9fa;
}

.vst-citation-label {
    margin-bottom: 7px;
    font-size: .72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vst-citation-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.vst-citation-controls label {
    font-size: .82em;
    font-weight: 600;
}

.vst-citation-controls select {
    width: auto;
    min-width: 170px;
    max-width: 100%;
    height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: .84em;
}

.vst-citation-output {
    padding-right: 34px;
    font-size: .9em;
    line-height: 1.45;
}

.vst-citation-copy {
    position: absolute;
    right: 9px;
    bottom: 8px;
}

@media (max-width: 600px) {
    .vst-citation-controls {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .vst-citation-controls select {
        width: 100%;
    }

    .vst-citation-output {
        padding-right: 30px;
    }
}

/* Nazwa skrócona jest wariantem wyłącznie smartfonowym. */
.vst-person-name-short {
    display: none;
}

@media (max-width: 600px) {
    /*
     * Dekoracyjny obraz hero strony głównej: kwadrat tylko na smartfonie.
     * Klasę vst-mobile-square-hero nadajemy wyłącznie temu blokowi.
     */
    body.home .vst-mobile-square-hero,
    body.home .vst-mobile-square-hero figure {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
    }

    body.home .vst-mobile-square-hero img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .vst-person-name-full {
        display: none;
    }

    .vst-person-name-short {
        display: inline;
    }
}

/* =========================================================
   VST 1.1.4 - dopracowanie kart, nagłówka, zakupu i cytowań
   ========================================================= */

/* Rok/rola zwykłym tekstem, wartości pogrubione. */
.vst-home-meta-label {
    font-weight: 400;
}

.vst-home-meta-value,
.vst-home-publication-meta .vst-person-name-full,
.vst-home-publication-meta .vst-person-name-short {
    font-weight: 600;
}

/* Cena uczelniana na stronie głównej zgodna semantycznie z katalogiem. */
.vst-home-university-price {
    display: block;
    margin-top: 5px;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.35;
}

.vst-home-university-price-note {
    color: inherit;
}

.vst-home-university-price-value {
    font-size: 1em;
    font-weight: 600;
}

/* Lżejszy komunikat zakupowy - nie konkuruje z blokami treści merytorycznej. */
.vst-purchase-info {
    margin: 1.4rem 0;
    padding: .8rem 1rem .85rem;
    border: 0;
    border-left: 3px solid #98a2b3;
    border-radius: 3px;
    background: #f7f8fa;
}

.vst-purchase-info h3 {
    margin: 0 0 .55rem;
    font-size: 1rem;
    line-height: 1.3;
}

.vst-purchase-info-item {
    gap: .55rem;
    font-size: .92rem;
    line-height: 1.45;
}

.vst-purchase-info-item + .vst-purchase-info-item {
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px solid #e5e7eb;
}

.vst-purchase-info-icon {
    flex-basis: 19px;
    width: 19px;
    height: 19px;
}

.vst-purchase-info-icon svg {
    width: 19px;
    height: 19px;
}

/* Zwijany blok cytowania. */
.vst-citation-box {
    position: relative;
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    background: #f8f9fa;
}

.vst-citation-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: #344054;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.vst-citation-summary::-webkit-details-marker {
    display: none;
}

.vst-citation-summary:hover,
.vst-citation-summary:focus-visible {
    background: #f1f4f7;
}

.vst-citation-chevron {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.vst-citation-box[open] .vst-citation-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.vst-citation-body {
    position: relative;
    padding: 10px 42px 12px 12px;
    border-top: 1px solid #e4e7ec;
}

.vst-citation-controls {
    margin-bottom: 8px;
}

.vst-citation-copy {
    right: 9px;
    bottom: 9px;
}

/* Rozdział: autorzy zostają bez zmian; układamy tylko blok techniczny + cytowanie. */
.vst-chapter-reference-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(200px, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 10px;
}

.vst-chapter-reference-row .vst-chapter-technical {
    min-width: 0;
}

.vst-chapter-reference-row .vst-citation-box {
    margin-top: 0;
}

.vst-chapter-reference-row.vst-citation-expanded .vst-chapter-citation-slot {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    /* Logo pozostaje powiększone; nazwa witryny mieści się w jednej linii. */
    .site-header .site-title,
    .site-header .site-title a {
        font-size: clamp(1.02rem, 4.4vw, 1.14rem) !important;
        line-height: 1.15 !important;
        white-space: nowrap;
    }

    .vst-chapter-reference-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .vst-chapter-citation-slot,
    .vst-chapter-reference-row.vst-citation-expanded .vst-chapter-citation-slot {
        grid-column: 1;
    }

    .vst-citation-summary {
        padding: 9px 11px;
    }

    .vst-citation-body {
        padding: 10px 38px 11px 11px;
    }
}
