/* HPI books pages — conversion-focused, page-specific only. Loaded after modern.css. */

body.books-page .books-shell {
    padding-top: 1.15rem !important;
}

body.books-page .books-page-inner {
    max-width: 1060px !important;
}

body.books-page .books-hero {
    max-width: 900px;
    margin-bottom: 1.15rem;
}

body.books-page .books-hero h1 {
    margin-bottom: .75rem !important;
}

body.books-page .books-hero .modern-lead,
body.books-page .books-page-inner > p {
    max-width: 82ch;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

body.books-page .quick-picks {
    margin: 1.2rem 0 1.15rem;
    max-width: 960px;
}

body.books-page .quick-picks h2 {
    margin: 0 0 .75rem !important;
}

body.books-page .quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .8rem;
}

body.books-page .quick-card {
    display: block;
    border: 1px solid rgba(210,210,210,.9);
    border-radius: .65rem;
    background: #fff;
    padding: .95rem 1rem;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,.03);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

body.books-page .quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0,0,0,.06);
    border-color: rgba(245,106,106,.55);
}

body.books-page .quick-card span,
body.books-page .quick-card small {
    display: block;
}

body.books-page .quick-card span {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #f56a6a;
    margin-bottom: .25rem;
}

body.books-page .quick-card strong {
    display: block;
    color: #3d4449;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: .2rem;
}

body.books-page .quick-card small {
    color: #777;
    line-height: 1.45;
}

body.books-page .affiliate-note {
    max-width: 960px;
    margin: .9rem 0 1.45rem;
    padding: .72rem .9rem;
    border-radius: .55rem;
    background: #fafafa;
    border: 1px solid #ececec;
}

body.books-page .affiliate-note p {
    margin: 0;
    font-size: .9rem;
    color: #666;
}

body.books-page .video-block {
    width: min(100%, 680px);
    max-width: 680px;
    margin: 1rem 0 1.6rem;
}

body.books-page .video-responsive {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: .65rem;
    box-shadow: 0 7px 22px rgba(0,0,0,.08);
}

body.books-page .video-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

body.books-page .book-list {
    max-width: 960px;
    margin-top: 1rem;
}

body.books-page .book-card {
    display: grid;
    grid-template-columns: 205px minmax(0,1fr);
    gap: 1.45rem;
    align-items: start;
    background: #fff;
    border: 1px solid rgba(210,210,210,.9);
    border-radius: .75rem;
    padding: 1.25rem;
    margin: 0 0 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.035);
}

body.books-page .book-card.top-pick {
    border: 2px solid rgba(245,106,106,.65);
    box-shadow: 0 8px 24px rgba(245,106,106,.10);
}

body.books-page .book-card.special-pick {
    background: #fbfbfb;
}

body.books-page .book-cover {
    text-align: center;
}

body.books-page .book-cover a {
    display: inline-block;
}

body.books-page .book-cover img {
    display: block;
    width: 100%;
    max-width: 185px;
    height: auto;
    max-height: 285px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: .3rem;
    box-shadow: 0 7px 20px rgba(0,0,0,.12);
}

body.books-page .book-copy h2 {
    margin: .35rem 0 .25rem !important;
    font-size: 1.35rem;
    line-height: 1.3;
}

body.books-page .book-copy h2 a {
    color: inherit;
    text-decoration: none;
}

body.books-page .book-copy h2 a:hover {
    color: #f56a6a;
}

body.books-page .book-author {
    margin: 0 0 .8rem;
    color: #777;
    font-size: .95rem;
    font-weight: 600;
}

body.books-page .book-copy > p:not(.book-author) {
    font-size: .98rem;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

body.books-page .book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}

body.books-page .rank-badge,
body.books-page .use-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: .18rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .035em;
}

body.books-page .rank-badge {
    background: #f56a6a;
    color: #fff;
}

body.books-page .rank-badge.top {
    padding-left: .75rem;
    padding-right: .75rem;
}

body.books-page .rank-badge.special {
    background: #555;
}

body.books-page .use-badge {
    border: 1px solid #dedede;
    color: #666;
    background: #fafafa;
}

body.books-page .book-fit {
    display: grid;
    grid-template-columns: 185px minmax(0,1fr);
    gap: .65rem;
    align-items: start;
    border-left: 4px solid #f56a6a;
    background: #fafafa;
    border-radius: .35rem;
    padding: .8rem .9rem;
    margin: .9rem 0;
}

body.books-page .book-fit strong {
    color: #3d4449;
    font-size: .94rem;
}

body.books-page .book-fit span {
    font-size: .94rem;
    line-height: 1.5;
}

body.books-page .book-actions {
    margin-top: .75rem;
}

body.books-page .book-actions .button {
    margin: 0;
}

body.books-page .after-books {
    max-width: 960px;
    margin: 1.5rem 0;
}

body.books-page .after-books .note-box {
    margin: 0;
}

body.books-page .after-books h2 {
    margin-top: 0 !important;
}

body.books-page .related-books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
    max-width: 960px;
    margin: .35rem 0 1rem;
}

body.books-page .related-books-grid .modern-card {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(210,210,210,.95);
    border-radius: .8rem;
    background: #fff;
    padding: 1rem 1.05rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.035);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

body.books-page .related-books-grid .modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
    border-color: rgba(245,106,106,.45);
}

body.books-page .related-books-grid .modern-card .offer-label {
    display: inline-block;
    width: fit-content;
    margin-bottom: .35rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #f56a6a;
}

body.books-page .related-books-grid .modern-card h3 {
    margin: 0 0 .45rem !important;
    font-size: 1.13rem;
    line-height: 1.35;
}

body.books-page .related-books-grid .modern-card h3 a {
    color: #3d4449;
    text-decoration: none;
    border-bottom: 0;
}

body.books-page .related-books-grid .modern-card h3 a:hover {
    color: #f56a6a;
}

body.books-page .related-books-grid .modern-card p {
    margin: 0;
    font-size: .98rem;
    line-height: 1.62;
    color: #666;
    text-align: left;
}

body.books-page .after-books .note-box p {
    font-size: .98rem;
    line-height: 1.65;
}

@media screen and (max-width: 980px) {
    body.books-page .book-card {
        grid-template-columns: 165px minmax(0,1fr);
        gap: 1.15rem;
    }

    body.books-page .book-cover img {
        max-width: 155px;
        max-height: 240px;
    }

    body.books-page .book-fit {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    body.books-page .related-books-grid {
        grid-template-columns: 1fr;
    }

    body.books-page .related-books-grid .modern-card {
        padding: .95rem 1rem;
    }
}

@media screen and (max-width: 736px) {
    body.books-page .books-shell {
        padding-top: .8rem !important;
    }

    body.books-page .quick-grid,
    body.books-page .book-card {
        grid-template-columns: 1fr;
    }

    body.books-page .book-card {
        padding: 1rem;
    }

    body.books-page .book-cover img {
        max-width: 175px;
    }

    body.books-page .book-copy h2 {
        text-align: center;
    }

    body.books-page .book-author,
    body.books-page .book-tags,
    body.books-page .book-actions {
        justify-content: center;
        text-align: center;
    }

    body.books-page .book-actions .button {
        width: 100%;
        text-align: center !important;
    }

    body.books-page .video-block {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 736px) {
    body.books-page .book-copy > p:not(.book-author) {
        font-size: .97rem;
        line-height: 1.62;
    }

    body.books-page .book-fit strong,
    body.books-page .book-fit span {
        font-size: .93rem;
    }
}


body.books-page .after-books + h2 {
    margin-top: 1.2rem !important;
    margin-bottom: .7rem !important;
}

body.books-page .related-books-title {
    max-width: 960px;
    margin-top: 1.25rem !important;
    margin-bottom: .7rem !important;
}

body.books-page .related-books-grid .modern-card {
    position: relative;
    overflow: hidden;
}

body.books-page .related-books-grid .modern-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #f56a6a;
    opacity: .8;
}

body.books-page .related-books-grid .modern-card p {
    margin-bottom: .8rem;
}

body.books-page .related-card-action {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding-top: .15rem;
    color: #f56a6a;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 0;
}

body.books-page .related-card-action::after {
    content: " →";
    margin-left: .2rem;
    transition: transform .15s ease;
}

body.books-page .related-card-action:hover {
    color: #ef5555;
}

body.books-page .related-card-action:hover::after {
    transform: translateX(2px);
}
