.tp-home-hero {
    background: linear-gradient(107deg, #f7faff 2%, #edf5ff 62%, #e4eefb);
    border-bottom: 1px solid #dfe9f6;
    padding: clamp(30px, 4.5vw, 64px) 0;
}
.tp-home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, .8fr);
    align-items: center;
    gap: clamp(25px, 5vw, 74px);
}
.tp-home-hero-inner:not(:has(.tp-home-covers)) { grid-template-columns: minmax(0, 650px); }
.toopdf-library .tp-home-intro h1 {
    max-width: 14em;
    font-size: clamp(2.15rem, 4.25vw, 3.5rem);
    letter-spacing: -.045em;
    line-height: 1.05;
    margin-bottom: 16px;
}
.tp-home-intro > p { max-width: 49ch; color: #465873; font-size: clamp(15px, 1.65vw, 18px); }
.tp-home-intro .tp-search {
    min-height: 51px;
    max-width: 560px;
    margin-bottom: 15px;
    border-color: #a8bdd8;
    background: #fff;
    box-shadow: 0 6px 20px #1e497211;
}
.tp-home-intro .tp-search input { font-size: 14px; }
.tp-home-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tp-home-publisher-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.tp-home-publisher-link:hover { text-decoration: underline; }
.tp-home-covers {
    position: relative;
    isolation: isolate;
    min-height: 280px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    place-items: center;
    padding: 25px 12px;
    background: radial-gradient(ellipse, #ffffffd4, #b6d1f231 62%, transparent 74%);
}
.tp-home-covers a {
    width: 120%;
    max-width: 170px;
    display: block;
    padding: 5px;
    border-radius: 7px;
    border: 1px solid #e1e8f2;
    background: #fff;
    box-shadow: 0 14px 33px #182b522d;
    transform: translate(14%, 5%) rotate(-11deg);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tp-home-covers a:nth-child(2) { z-index: 2; transform: translateY(-6%); }
.tp-home-covers a:nth-child(3) { transform: translate(-14%, 7%) rotate(10deg); }
.tp-home-covers a:hover, .tp-home-covers a:focus-visible { z-index: 3; transform: translateY(-10px); box-shadow: 0 17px 40px #182b5233; }
.tp-home-covers img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 3px; }
.tp-catalog-section { padding: 29px 0 38px; }
.tp-home-publishers { border-bottom: 1px solid var(--tp-line); }
.tp-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 11px 18px; margin: 0 0 16px; }
.toopdf-library .tp-section-heading h2 { font-size: clamp(1.32rem, 2.6vw, 1.88rem); margin: 0; }
.toopdf-library .tp-section-heading a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.tp-section-heading svg, .tp-publisher-links svg { width: 16px; height: 16px; }
.tp-home-publisher-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.toopdf-library .tp-home-publisher-grid a,
.toopdf-library .tp-publisher-directory .tp-publisher-card {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    color: #202d42;
    text-align: left;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}
.toopdf-library .tp-home-publisher-grid a:hover,
.toopdf-library .tp-publisher-directory .tp-publisher-card:hover { border-color: #a4c5f5; background: #f8fbff; }
.tp-publisher-mark {
    display: grid;
    place-items: center;
    flex: 0 0 33px;
    height: 33px;
    border-radius: 7px;
    background: #eaf2ff;
    color: var(--tp-blue-dark);
}
.tp-publisher-mark svg { width: 17px; height: 17px; }
.tp-home-publisher-grid strong { display: block; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.tp-home-publisher-grid small { display: block; margin-top: 4px; color: #687589; font-size: 11px; line-height: 1.2; }
.tp-home-selection { padding-top: 34px; }
.tp-home-latest { background: #f4f7fb; border-block: 1px solid #e4eaf2; }
.toopdf-library .tp-catalog-grid ul.products,
body.tp-catalog-archive .site-main ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin: 0;
}
.toopdf-library .tp-catalog-grid ul.products::before,
.toopdf-library .tp-catalog-grid ul.products::after,
.tp-catalog-archive .site-main ul.products::before,
.tp-catalog-archive .site-main ul.products::after { display: none; }
.toopdf-library .tp-catalog-grid ul.products li.product,
body.tp-catalog-archive .site-main ul.products li.product {
    float: none;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    margin: 0;
    padding: 12px;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.toopdf-library .tp-catalog-grid ul.products li.product:hover,
body.tp-catalog-archive .site-main ul.products li.product:hover {
    border-color: #aac6ee;
    box-shadow: 0 8px 24px #1d3e7012;
}
.toopdf-library .tp-catalog-grid ul.products li.product > a.woocommerce-LoopProduct-link,
body.tp-catalog-archive .site-main ul.products li.product > a.woocommerce-LoopProduct-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    margin: 0;
}
.toopdf-library .tp-card-cover {
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 4;
    padding: 12px;
    border-radius: 6px;
    background: #edf2f8;
    overflow: hidden;
    margin-bottom: 11px;
}
.toopdf-library ul.products li.product .tp-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    object-fit: contain;
    border-radius: 2px;
}
.toopdf-library .tp-catalog-grid ul.products li.product .onsale,
body.tp-catalog-archive .site-main ul.products li.product .onsale { display: none; }
.tp-card-publisher { display: block; color: #4b6390; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 4px; }
.toopdf-library .tp-catalog-grid .woocommerce-loop-product__title,
body.tp-catalog-archive .site-main .woocommerce-loop-product__title {
    font-size: 15px;
    line-height: 1.38;
    letter-spacing: 0;
    font-weight: 700;
    padding: 0;
    margin: 0 0 7px;
    overflow-wrap: anywhere;
    color: #192638;
}
.toopdf-library .tp-catalog-grid ul.products li.product .price,
body.tp-catalog-archive .site-main ul.products li.product .price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
    margin: auto 0 9px;
    padding-top: 3px;
    color: #0a57bf;
    font-size: 16px;
    font-weight: 750;
}
.toopdf-library .tp-catalog-grid ul.products li.product .price del,
body.tp-catalog-archive .site-main ul.products li.product .price del { color: #6d7787; font-size: 12px; font-weight: 500; margin: 0; opacity: 1; }
.toopdf-library .tp-catalog-grid ul.products li.product .price ins,
body.tp-catalog-archive .site-main ul.products li.product .price ins { order: -1; color: inherit; font-weight: inherit; margin: 0; }
.toopdf-library .tp-catalog-grid ul.products li.product > .button,
body.tp-catalog-archive .site-main ul.products li.product > .button {
    padding: 8px 11px;
    min-height: 37px;
    margin: 1px 0 0;
    background: #f3f7ff;
    border: 1px solid #d8e6f9;
    color: #145cba;
    text-align: center;
    font-size: 12px;
    font-weight: 750;
    border-radius: 5px;
}
.toopdf-library .tp-catalog-grid ul.products li.product > .button:hover,
body.tp-catalog-archive .site-main ul.products li.product > .button:hover { background: #e4efff; border-color: #a9c5ed; }
.tp-home-help { padding: 34px 0; }
.tp-home-help > .tp-container { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.tp-home-help h2 { font-size: 23px; margin: 0 0 5px; }
.tp-home-help p { margin: 0; color: #56647a; }
.tp-home-help .tp-btn { white-space: nowrap; }
.tp-catalog-archive .tp-breadcrumb .storefront-breadcrumb { margin: 0; padding: 0; }
.tp-catalog-archive .tp-breadcrumb .storefront-breadcrumb .col-full { width: 100%; max-width: none; margin: 0; padding: 0; }
.tp-catalog-archive .woocommerce-products-header { margin-bottom: 14px; }
.tp-catalog-archive .woocommerce-products-header h1 { margin-bottom: 12px; }
.tp-archive-toolbar { background: #f5f8fc; border: 1px solid #e1e9f3; border-radius: 9px; padding: 13px; }
.tp-archive-toolbar .tp-search { max-width: 510px; margin-bottom: 10px; background: #fff; }
.tp-publisher-links { display: flex; flex-wrap: wrap; gap: 6px; }
.toopdf-library .tp-publisher-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid #dae4f3;
    border-radius: 5px;
    color: #355581;
    background: #fff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}
.toopdf-library .tp-publisher-links a:hover,
.toopdf-library .tp-publisher-links a[aria-current="page"] { color: #0b53b6; border-color: #a8c6ee; background: #eaf3ff; }
.tp-catalog-archive .storefront-sorting { margin-bottom: 12px; }
.tp-catalog-archive .storefront-sorting select { max-width: 100%; }
.tp-catalog-archive .woocommerce-pagination { margin-top: 8px; }
.tp-publisher-directory .tp-publisher-grid { gap: 11px; }
.tp-publisher-directory .tp-publisher-label { padding: 0; }
.tp-publisher-directory .tp-directory-help { margin-top: 23px; }
@media (max-width: 940px) {
    .tp-home-publisher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .toopdf-library .tp-catalog-grid ul.products, body.tp-catalog-archive .site-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .tp-home-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .toopdf-library .tp-home-intro h1 { max-width: 15em; font-size: clamp(2rem, 8vw, 2.5rem); }
    .tp-home-covers { min-height: 0; width: min(100%, 310px); margin-inline: auto; padding: 8px 18px 1px; }
    .tp-home-covers a { width: 110%; max-width: 107px; padding: 3px; }
    .tp-home-hero { padding: 26px 0 24px; }
    .tp-catalog-section { padding: 22px 0 27px; }
    .tp-section-heading { align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
    .tp-home-publisher-grid { gap: 6px; }
    .toopdf-library .tp-home-publisher-grid a { padding: 8px 7px; gap: 6px; }
    .tp-home-publisher-grid .tp-publisher-mark { flex-basis: 25px; height: 25px; }
    .tp-home-publisher-grid strong { font-size: 13px; }
    .tp-home-publisher-grid small { font-size: 10px; }
    .toopdf-library .tp-catalog-grid ul.products, body.tp-catalog-archive .site-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .toopdf-library .tp-catalog-grid ul.products li.product, body.tp-catalog-archive .site-main ul.products li.product { padding: 8px; }
    .toopdf-library .tp-card-cover { padding: 8px; margin-bottom: 8px; }
    .toopdf-library .tp-catalog-grid .woocommerce-loop-product__title, body.tp-catalog-archive .site-main .woocommerce-loop-product__title { font-size: 13px; }
    .tp-home-help > .tp-container { align-items: flex-start; flex-direction: column; }
    .tp-archive-toolbar { padding: 9px; }
}
