/*
Theme Name: AffiliateCMS Child
Theme URI: https://affiliatecms.com/
Description: Child theme for AffiliateCMS Theme. Add your custom styles and overrides here.
Author: AffiliateCMS Team
Author URI: https://affiliatecms.com/
Template: affiliateCMS-theme
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliatecms-child
*/

/* Editorial homepage */
.hdvp-home {
    color: #172827;
    background: #fff;
}

.hdvp-home a {
    text-decoration: none;
}

.hdvp-home-intro {
    padding: 46px 0 38px;
    background: #f4f7f6;
    border-bottom: 1px solid #dce5e2;
}

.hdvp-home-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 22px 48px;
    align-items: end;
}

.hdvp-kicker {
    margin: 0;
    color: #0b6f70;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hdvp-home-intro h1 {
    max-width: 780px;
    margin: 6px 0 12px;
    color: #162827;
    font-size: clamp(2.05rem, 4vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.hdvp-home-intro__copy > p:last-child {
    max-width: 720px;
    margin: 0;
    color: #526361;
    font-size: 1.08rem;
    line-height: 1.65;
}

.hdvp-home-search {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 6px 7px 6px 16px;
    background: #fff;
    border: 1px solid #b9cbc6;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(20, 52, 49, .06);
}

.hdvp-home-search > i {
    color: #60736f;
    font-size: 1.1rem;
}

.hdvp-home-search input {
    min-width: 0;
    padding: 0;
    color: #172827;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: .98rem;
}

.hdvp-home-search button {
    min-height: 40px;
    padding: 0 18px;
    color: #fff;
    background: #0b6f70;
    border: 0;
    border-radius: 4px;
    font-weight: 750;
    cursor: pointer;
}

.hdvp-home-search:focus-within {
    border-color: #0b6f70;
    box-shadow: 0 0 0 3px rgba(11, 111, 112, .12);
}

.hdvp-home-intro__standards {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    color: #415552;
    font-size: .88rem;
}

.hdvp-home-intro__standards span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.hdvp-home-intro__standards i {
    color: #d16a4b;
}

.hdvp-home-section {
    padding: 54px 0;
}

.hdvp-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.hdvp-section-heading--compact {
    margin-bottom: 18px;
}

.hdvp-section-heading h2,
.hdvp-research-band h2 {
    margin: 4px 0 0;
    color: #172827;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.hdvp-text-link,
.hdvp-card-link,
.hdvp-research-band__intro > a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #0b6f70;
    font-size: .9rem;
    font-weight: 750;
}

.hdvp-deals-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    color: #fff;
    background: #c95f3f;
    border-radius: 4px;
    font-size: .86rem;
    font-weight: 800;
}

.hdvp-deals-link:hover,
.hdvp-deals-link:focus-visible {
    color: #172827;
    background: #f0b44d;
}

.hdvp-text-link:hover,
.hdvp-card-link:hover,
.hdvp-research-band__intro > a:hover {
    color: #d16a4b;
}

.hdvp-feature__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(320px, .82fr);
    gap: 34px;
}

.hdvp-feature-lead {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce5e2;
    border-radius: 7px;
}

.hdvp-feature-lead__image {
    display: block;
    aspect-ratio: 16 / 8.4;
    overflow: hidden;
    background: #e9efed;
}

.hdvp-feature-lead__image img,
.hdvp-guide-card__image img,
.hdvp-feature-row__image img,
.hdvp-latest-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.hdvp-home img.hdvp-listing-product-image {
    padding: 14px;
    object-fit: contain;
    background: #f5f7f6;
}

.hdvp-feature-row__image img.hdvp-listing-product-image,
.hdvp-latest-row__image img.hdvp-listing-product-image {
    padding: 8px;
}

.hdvp-feature-lead:hover .hdvp-feature-lead__image img,
.hdvp-guide-card:hover .hdvp-guide-card__image img {
    transform: scale(1.02);
}

.hdvp-feature-lead__content {
    padding: 22px 24px 24px;
}

.hdvp-category-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #0b6f70;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hdvp-feature-lead h3,
.hdvp-guide-card h3,
.hdvp-feature-row h3,
.hdvp-latest-row h3 {
    letter-spacing: 0;
}

.hdvp-feature-lead h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.hdvp-feature-lead h3 a,
.hdvp-guide-card h3 a,
.hdvp-feature-row h3 a,
.hdvp-latest-row h3 a {
    color: #172827;
}

.hdvp-feature-lead h3 a:hover,
.hdvp-guide-card h3 a:hover,
.hdvp-feature-row h3 a:hover,
.hdvp-latest-row h3 a:hover {
    color: #0b6f70;
}

.hdvp-feature-lead__content > p {
    margin: 12px 0 14px;
    color: #586865;
    font-size: .98rem;
    line-height: 1.62;
}

.hdvp-story-meta {
    color: #74827f;
    font-size: .78rem;
}

.hdvp-feature-list {
    display: grid;
    align-content: start;
}

.hdvp-feature-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #dce5e2;
}

.hdvp-feature-row:first-child {
    padding-top: 0;
}

.hdvp-feature-row__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9efed;
    border-radius: 5px;
}

.hdvp-feature-row h3,
.hdvp-latest-row h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hdvp-category-band {
    padding: 46px 0 50px;
    background: #f3f6f5;
    border-top: 1px solid #dce5e2;
    border-bottom: 1px solid #dce5e2;
}

.hdvp-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #cddbd7;
    border-left: 1px solid #cddbd7;
}

.hdvp-category-grid > a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: start;
    min-height: 112px;
    padding: 20px 18px;
    color: #172827;
    background: #fff;
    border-right: 1px solid #cddbd7;
    border-bottom: 1px solid #cddbd7;
}

.hdvp-category-grid > a:hover,
.hdvp-category-grid > a:focus-visible {
    background: #eaf3f0;
}

.hdvp-category-grid > a > i:first-child {
    color: #d16a4b;
    font-size: 1.35rem;
}

.hdvp-category-grid > a > i:last-child {
    margin-top: 3px;
    color: #84918e;
}

.hdvp-category-grid strong,
.hdvp-category-grid small {
    display: block;
}

.hdvp-category-grid strong {
    font-size: .94rem;
    line-height: 1.3;
}

.hdvp-category-grid small {
    margin-top: 6px;
    color: #667673;
    font-size: .76rem;
    line-height: 1.42;
}

.hdvp-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hdvp-guide-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce5e2;
    border-radius: 7px;
}

.hdvp-guide-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9efed;
}

.hdvp-guide-card__content {
    padding: 18px 19px 20px;
}

.hdvp-guide-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    min-height: 2.7em;
    font-size: 1.05rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hdvp-guide-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 15px;
    color: #5d6c69;
    font-size: .86rem;
    line-height: 1.52;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hdvp-research-band {
    padding: 52px 0;
    color: #eaf4f1;
    background: #173f3d;
}

.hdvp-research-band__inner {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.7fr);
    gap: 48px;
}

.hdvp-research-band .hdvp-kicker,
.hdvp-research-band__intro > a {
    color: #f0b44d;
}

.hdvp-research-band h2 {
    max-width: 440px;
    margin-bottom: 20px;
    color: #fff;
}

.hdvp-research-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.hdvp-research-points > div {
    padding: 4px 24px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.hdvp-research-points span,
.hdvp-research-points strong {
    display: block;
}

.hdvp-research-points span {
    margin-bottom: 22px;
    color: #f0b44d;
    font-size: .76rem;
    font-weight: 800;
}

.hdvp-research-points strong {
    margin-bottom: 9px;
    color: #fff;
    font-size: 1rem;
}

.hdvp-research-points p {
    margin: 0;
    color: #bfd0cc;
    font-size: .82rem;
    line-height: 1.55;
}

.hdvp-latest {
    background: #fbfcfc;
}

.hdvp-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 38px;
}

.hdvp-latest-row {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 17px 0;
    border-top: 1px solid #dce5e2;
}

.hdvp-latest-row__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9efed;
    border-radius: 5px;
}

@media (max-width: 980px) {
    .hdvp-feature__layout,
    .hdvp-research-band__inner {
        grid-template-columns: 1fr;
    }

    .hdvp-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hdvp-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .hdvp-home-intro__inner {
        grid-template-columns: 1fr;
    }

    .hdvp-research-points {
        grid-template-columns: 1fr;
    }

    .hdvp-research-points > div {
        padding: 18px 0;
        border-top: 1px solid rgba(255, 255, 255, .18);
        border-left: 0;
    }

    .hdvp-research-points span {
        margin-bottom: 8px;
    }

    .hdvp-latest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hdvp-home-intro {
        padding: 34px 0 28px;
    }

    .hdvp-home-intro h1 {
        font-size: 2.1rem;
    }

    .hdvp-home-search {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .hdvp-home-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hdvp-home-section,
    .hdvp-category-band,
    .hdvp-research-band {
        padding: 38px 0;
    }

    .hdvp-section-heading {
        display: block;
    }

    .hdvp-section-heading .hdvp-text-link,
    .hdvp-section-heading .hdvp-deals-link {
        margin-top: 14px;
    }

    .hdvp-feature-lead__image {
        aspect-ratio: 16 / 10;
    }

    .hdvp-feature-lead__content {
        padding: 18px;
    }

    .hdvp-feature-row,
    .hdvp-latest-row {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 13px;
    }

    .hdvp-category-grid,
    .hdvp-guide-grid {
        grid-template-columns: 1fr;
    }

    .hdvp-category-grid > a {
        min-height: 0;
    }

    .hdvp-guide-card h3 {
        min-height: 0;
    }
}

/* ==========================================================================
   Custom Styles - Add your overrides below
   ========================================================================== */

.homedvp-amazon-disclosure {
    max-width: 900px;
    margin: 0 auto 12px;
    padding: 10px 12px;
    color: #465656;
    background: #f7faf9;
    border-left: 3px solid #147f7e;
    border-radius: 4px;
    font-size: .82rem;
    line-height: 1.55;
}

.homedvp-amazon-disclosure strong {
    color: #1b3030;
}

.homedvp-amazon-disclosure a {
    color: #0b6f75;
    font-weight: 600;
}

.homedvp-amazon-disclosure__data {
    display: block;
    margin-top: 5px;
    color: #5b6666;
    font-size: .75rem;
}

/* Site-wide decision summary for AffiliateCMS product cards. */
.homedvp-product-summary {
    margin-top: 10px;
    color: #405151;
    font-size: .82rem;
    line-height: 1.45;
}

.homedvp-product-summary p {
    margin: 0 0 7px;
}

.homedvp-product-summary strong {
    color: #183333;
}

.homedvp-product-summary ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.homedvp-product-summary li {
    position: relative;
    margin: 0;
    padding-left: 18px;
}

.homedvp-product-summary li::before {
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 700;
}

.homedvp-product-summary__pro::before {
    color: #168264;
    content: "+";
}

.homedvp-product-summary__con::before {
    color: #a45a22;
    content: "-";
}

.acms-list__title,
.acms-grid__title,
.acms-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.acms-list__image img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.acms-list__price-action {
    min-width: 176px;
}

.acms-list__action .acms-btn--amazon {
    width: 100%;
    min-height: 44px;
    justify-content: center;
}

@media (max-width: 720px) {
    .acms-list__price-action {
        width: 100%;
        min-width: 0;
    }

    .acms-list__image img {
        width: 112px;
        height: 112px;
    }

    .acms-list__score-tooltip {
        right: 0;
        left: auto;
        width: min(280px, calc(100vw - 64px));
        transform: translateY(4px);
    }

    .acms-list__score-wrapper:hover .acms-list__score-tooltip,
    .acms-list__score-info:focus + .acms-list__score-tooltip {
        transform: translateY(0);
    }

    .acms-list__score-tooltip::after {
        right: 20px;
        left: auto;
        transform: none;
    }
}

/* Editorial category hubs */
.hdvp-category-hub {
    background: #fff;
    border-bottom: 1px solid #e3e8e6;
}

.hdvp-category-hub__inner {
    padding-top: 44px;
    padding-bottom: 46px;
}

.hdvp-category-hub__intro {
    max-width: 860px;
    margin-bottom: 34px;
}

.hdvp-category-hub__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #0b817f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.hdvp-category-hub h2 {
    margin: 0 0 14px;
    color: #102321;
    font-size: 30px;
    line-height: 1.2;
}

.hdvp-category-hub h3 {
    margin: 0 0 16px;
    color: #102321;
    font-size: 20px;
    line-height: 1.3;
}

.hdvp-category-hub p,
.hdvp-category-hub li {
    color: #465653;
    font-size: 16px;
    line-height: 1.72;
}

.hdvp-category-hub p {
    margin: 0 0 14px;
}

.hdvp-category-hub__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .95fr);
    gap: 34px;
}

.hdvp-category-hub__panel {
    min-width: 0;
    padding-top: 22px;
    border-top: 2px solid #dce8e5;
}

.hdvp-category-hub__links,
.hdvp-category-hub__needs,
.hdvp-category-hub__reading {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hdvp-category-hub__links li,
.hdvp-category-hub__reading li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf0ef;
}

.hdvp-category-hub__links a,
.hdvp-category-hub__reading a {
    color: #076f6d;
    font-weight: 700;
    text-decoration: none;
}

.hdvp-category-hub__links a:hover,
.hdvp-category-hub__reading a:hover {
    color: #064f4e;
    text-decoration: underline;
}

.hdvp-category-hub__needs li {
    margin-bottom: 15px;
}

.hdvp-category-hub__needs strong {
    display: block;
    margin-bottom: 2px;
    color: #192e2b;
}

.hdvp-category-hub__reading span {
    display: block;
    margin-top: 3px;
    color: #64716f;
    font-size: 14px;
    line-height: 1.55;
}

.hdvp-category-hub__note {
    max-width: 860px;
    margin-top: 30px !important;
    padding-left: 16px;
    border-left: 3px solid #f08b4f;
}

@media (max-width: 960px) {
    .hdvp-category-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hdvp-category-hub__panel:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hdvp-category-hub__inner {
        padding-top: 32px;
        padding-bottom: 34px;
    }

    .hdvp-category-hub h2 {
        font-size: 25px;
    }

    .hdvp-category-hub__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .hdvp-category-hub__panel:last-child {
        grid-column: auto;
    }
}
