/* Homepage, product discovery, and article-list refinements. */

.pd-home-product {
    min-width: 0;
}

.pd-home-product-head > div:last-child {
    min-width: 0;
}

.pd-home-product h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.35;
}

.pd-today-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #fff0e4;
    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.pd-home-product h3 a:hover,
.pd-featured-copy h3 a:hover,
.pd-row-main h2 a:hover,
.pd-article-feature-copy h2 a:hover {
    color: var(--orange);
}

.pd-home-product p {
    font-size: 13px;
    line-height: 1.6;
}

.pd-home-product .pd-tags-line span,
.pd-home-product .pd-card-metrics {
    font-size: 12px;
}

.pd-home-product .pd-card-metrics {
    gap: 12px;
}

.pd-home-product .pd-card-metrics a {
    margin-left: auto;
    padding: 7px 10px;
    border: 1px solid #ffd0aa;
    border-radius: 6px;
    color: var(--orange);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pd-featured-content {
    grid-template-columns: 110px 72px minmax(210px, 1fr) minmax(90px, auto) minmax(80px, auto) 108px;
}

.pd-featured-content > .pd-button {
    width: 108px;
    min-width: 108px;
    padding: 0 12px;
    white-space: nowrap;
}

.pd-float-card:hover {
    border-color: #ffd2ae;
}

.pd-product-side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 13px;
}

.pd-product-side-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 8px 9px;
    border-radius: 6px;
    color: #68717b;
    font-size: 12px;
}

.pd-product-side-nav a:hover,
.pd-product-side-nav a.is-active {
    background: #fff3e9;
    color: var(--orange);
    font-weight: 700;
}

.pd-product-side-nav em {
    flex: 0 0 auto;
    color: #9299a1;
    font-size: 10px;
    font-style: normal;
}

.pd-product-side-nav--categories a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-filter-clear {
    display: block;
    margin-top: 15px;
    padding: 8px;
    border: 1px solid #e8ebed;
    border-radius: 6px;
    color: #747a81;
    font-size: 12px;
    text-align: center;
}

.pd-filter-clear:hover {
    border-color: #ffc99f;
    color: var(--orange);
}

.pd-product-search input[type="hidden"] {
    display: none;
}

.pd-product-rows article {
    grid-template-columns: 55px minmax(0, 1fr) 86px minmax(170px, auto);
}

.pd-row-main {
    min-width: 0;
}

.pd-row-main h2 {
    display: flex;
    align-items: center;
    min-width: 0;
}

.pd-row-main h2 a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.pd-row-detail,
.pd-row-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    box-sizing: border-box;
}

.pd-article-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.pd-article-hero-actions .pd-button {
    min-height: 38px;
}

.pd-article-filter-group {
    margin-bottom: 16px;
    padding: 14px 15px 1px;
    border: 1px solid #edf0f2;
    border-radius: 8px;
    background: #fff;
}

.pd-article-filter-group > b {
    display: block;
    margin-bottom: 10px;
    color: #2f3946;
    font-size: 13px;
}

.pd-article-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 23px 0 13px;
}

.pd-article-list-heading h2 {
    margin: 0;
    font-size: 20px;
}

.pd-article-list-heading span {
    color: #8b929a;
    font-size: 12px;
}

.pd-article-side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f3;
    color: #5e6874;
    font-size: 12px;
}

.pd-article-side-links a:last-child {
    border-bottom: 0;
}

.pd-article-side-links a:hover {
    color: var(--orange);
}

.pd-article-side p {
    color: #747d87;
    font-size: 12px;
    line-height: 1.7;
}

.pd-article-mine-link {
    display: block;
    margin-top: 10px;
    color: #68727d;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.pd-article-mine-link:hover {
    color: var(--orange);
}

@media (max-width: 1050px) {
    .pd-featured-content {
        grid-template-columns: 90px 64px minmax(190px, 1fr) 90px 108px;
    }

    .pd-featured-content .pd-featured-meta:last-of-type {
        display: none;
    }

    .pd-product-rows article {
        grid-template-columns: 55px minmax(0, 1fr) 75px minmax(170px, auto);
        gap: 9px;
    }
}

@media (max-width: 760px) {
    .pd-home-product h3 {
        font-size: 16px;
    }

    .pd-home-product p {
        font-size: 13px;
    }

    .pd-home-product .pd-card-metrics a {
        padding: 7px 9px;
    }

    .pd-product-rows article {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .pd-row-actions {
        grid-column: 3;
    }

    .pd-row-actions .pd-row-detail {
        display: none;
    }

    .pd-row-actions .pd-row-visit {
        min-width: 68px;
    }

    .pd-article-hero-art {
        right: -35px;
        opacity: .55;
    }

    .pd-article-hero-actions {
        flex-wrap: wrap;
    }

    .pd-article-filter-group {
        padding: 12px 12px 1px;
    }
}
