/* Responsive layout corrections. Component names avoid WordPress body classes. */
.hero-grid > *,
.header-inner > *,
.results-layout > *,
.product-hero > *,
.product-details-grid > *,
.footer-grid > * {
    min-width: 0;
}
.hero-feature.card { min-height: 0; }
.page-title { overflow-wrap: anywhere; }
.breadcrumbs > :last-child { min-width: 0; overflow-wrap: anywhere; }
.hero-feature .section-heading {
    display: block;
    padding: 22px 24px 0;
    margin-bottom: 6px;
}
.hero-feature .section-heading h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.pfs-featured-results {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
}
.pfs-featured-result {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.pfs-featured-result:last-child { border-bottom: 0; }
.pfs-featured-image { min-width: 0; }
.pfs-featured-image .product-image {
    width: 72px;
    height: 88px;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
}
.pfs-featured-image .product-fallback {
    min-height: 80px;
    gap: 0;
    background: transparent;
}
.pfs-featured-image .product-fallback > .icon {
    width: 48px;
    height: 48px;
}
.pfs-featured-image .product-fallback span { display: none; }
.pfs-featured-copy { min-width: 0; }
.pfs-featured-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}
.pfs-featured-rank { color: #535e56; }
.pfs-featured-award { color: var(--green); }
.pfs-featured-copy h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.pfs-featured-copy h3 a { color: var(--ink); }
.pfs-featured-copy p {
    margin: 0;
    color: #515c55;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.pfs-featured-actions {
    padding: 0 24px 22px;
}
.pfs-featured-actions .button {
    min-height: 44px;
    padding: 11px 20px;
    font-size: 14px;
}
.hero-feature-note {
    align-items: flex-start;
    padding: 14px 22px;
    font-size: 13px;
    line-height: 1.6;
}
.hero-feature-note .icon { margin-top: 2px; }
.comparison-mobile-hint { display: none; }

/* Keep real model names and summaries readable on cards at every breakpoint. */
.test-grid,
.product-grid,
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
}
.test-grid > *,
.product-grid > *,
.comparison-grid > *,
.related-grid > * { min-width: 0; }
.test-card { display: flex; flex-direction: column; }
.test-card .card-body { display: flex; flex: 1; flex-direction: column; }
.test-card .card-body .text-link { margin-top: auto; }
.test-card h3 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.card-body > p:not(.eyebrow) { font-size: 14px; line-height: 1.65; }
.card-body .eyebrow { font-size: 12px; line-height: 1.5; }
.card-body .text-link { font-size: 14px; line-height: 1.45; }
.card-body .text-link .icon { width: 16px; height: 16px; }
.product-card h2 { font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.product-card .variant { font-size: 14px; line-height: 1.55; }
.comparison-card h3 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.comparison-card > p { font-size: 14px; line-height: 1.6; }
.comparison-card > .button { min-height: 42px; font-size: 14px; }
.mini-results li { gap: 10px; font-size: 14px; line-height: 1.45; }
.mini-results li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.mini-results small { font-size: 12px; line-height: 1.5; }
.mini-rank { width: 28px; height: 28px; font-size: 13px; }
.category-grid:not(.category-directory) {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}
.category-grid.category-directory {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.category-tile h3 { font-size: 16px; line-height: 1.3; }
.category-tile p { max-width: none; font-size: 14px; line-height: 1.55; }
.category-directory .text-link { font-size: 14px; line-height: 1.45; }
.step h3 { font-size: 16px; line-height: 1.35; }
.step p { font-size: 14px; line-height: 1.65; }
.benefits-grid h3 { font-size: 18px; line-height: 1.3; }
.benefits-grid p { font-size: 14px; line-height: 1.65; }
.award-label { font-size: 12px; line-height: 1.45; }
.award-product { min-width: 0; }
.award-product > div { min-width: 0; }
.award-product h3 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.award-product p,
.awards-grid.is-single .award-product p { font-size: 14px; line-height: 1.55; }
.award-card .button { min-height: 44px; font-size: 14px; }
.award-card .evidence-link { font-size: 13px; line-height: 1.45; }
.offer-unavailable { font-size: 14px; line-height: 1.5; }
.coverage-stat span,
.coverage-callout p { font-size: 14px; line-height: 1.55; }
.coverage-mini span { font-size: 13px; line-height: 1.45; }

/* Search results are a child list. Never style WordPress's body.search-results. */
.pf-search-results { width: 100%; min-width: 0; }
.search-result > div:last-child { min-width: 0; }
.search-result h2 { font-size: 23px; line-height: 1.25; overflow-wrap: anywhere; }
.search-result p { font-size: 14px; line-height: 1.65; }
.search-result .text-link { font-size: 14px; }
.filters label { min-width: 0; }
.filters input,
.filters select { min-height: 44px; font-size: 14px; }
.filters label span { font-size: 13px; line-height: 1.4; }
.filters > .button { min-height: 44px; height: auto; font-size: 14px; }
.result-count { font-size: 14px; }
.search-form input { font-size: 14px; }
.search-form .button { min-height: 44px; font-size: 14px; }

/* Shared alignment and secondary copy must survive every page/body class. */
.primary-nav a { font-size: 14px; }
.footer-grid h3 { font-size: 15px; line-height: 1.4; }
.footer-grid > div > a:not(.footer-brand) { font-size: 14px; line-height: 1.6; }
.footer-about p,
.footer-cta p { font-size: 14px; line-height: 1.65; }
.footer-disclaimer p { font-size: 13px; line-height: 1.65; }
.footer-bottom { font-size: 12px; line-height: 1.5; }
.sidebar-card p,
.sidebar-card .check-list { font-size: 14px; line-height: 1.6; }
.sidebar-card > a { font-size: 14px; line-height: 1.5; }
.page-main .category-description,
.archive-intro { line-height: 1.7; }

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .hero-copy { max-width: 780px; }
    .hero .search-form { max-width: 720px; }
    .hero-intro { max-width: 720px; font-size: 16px; }
    .hero .search-form input { font-size: 14px; }
    .hero .search-form .button { font-size: 14px; padding: 11px 16px; }
    .category-grid:not(.category-directory) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .step { gap: 14px; }
    .step-icon { width: 44px; height: 44px; }
    .trust-row { max-width: 720px; }
    .trust-row strong { font-size: 13px; }
    .trust-row span { font-size: 13px; line-height: 1.5; }
}
@media (max-width: 1000px) {
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        padding: 16px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 7px 10px #0000000b;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 12px 0; border-bottom: 1px solid #f0f2ef; }
    .primary-nav a:last-child { border-bottom: 0; }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-left: auto;
        min-height: 40px;
        padding: 8px 11px;
        border: 1px solid var(--line);
        border-radius: 5px;
        background: #fff;
        color: #354039;
        font-size: 14px;
        cursor: pointer;
    }
    .menu-lines { position: relative; width: 17px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
    .menu-lines:before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1.5px solid currentColor; }
}
@media (max-width: 650px) {
    .product-hero-image { padding: 20px; }
    .product-hero-image .product-fallback { min-height: 76px; flex-direction: row; gap: 16px; }
    .product-hero-image .product-fallback > .icon { width: 48px; height: 48px; }
    .product-hero-image .product-fallback span { font-size: 14px; }
    .comparison-mobile-hint { display: block; margin: 12px 4px; color: #3c5b2c; font-size: 13px; line-height: 1.5; }
    .container { width: calc(100% - 32px); }
    .header-inner { gap: 10px; }
    .brand,
    .brand img { width: 130px; }
    .brand img { height: 55px; }
    .menu-toggle { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 8px; font-size: 0; gap: 0; }
    .header-cta { min-height: 40px; padding: 10px 8px; font-size: 12px; gap: 5px; }
    .hero-feature .section-heading { padding: 20px 18px 0; margin-bottom: 4px; }
    .hero-feature .section-heading h2 { font-size: 21px; line-height: 1.3; }
    .pfs-featured-results { padding: 0 18px; }
    .pfs-featured-result { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 19px 0; }
    .pfs-featured-image .product-image { width: 48px; height: 64px; }
    .pfs-featured-image .product-fallback { min-height: 60px; }
    .pfs-featured-image .product-fallback > .icon { width: 40px; height: 40px; }
    .pfs-featured-copy h3 { font-size: 17px; line-height: 1.35; }
    .pfs-featured-copy p { font-size: 14px; line-height: 1.6; }
    .pfs-featured-labels { font-size: 12px; line-height: 1.45; gap: 4px 9px; }
    .pfs-featured-actions { padding: 0 18px 20px; }
    .pfs-featured-actions .button { display: flex; width: 100%; }
    .hero-feature-note { padding: 14px 18px; font-size: 13px; line-height: 1.6; }
    .hero .search-form input,
    .filters input,
    .filters select { font-size: 16px; }
    .hero .search-form .button { min-height: 44px; padding: 11px 12px; font-size: 13px; }
    .trust-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .trust-row > div,
    .trust-row > div:first-child { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; }
    .trust-row .icon { width: 22px; height: 22px; margin: 0; }
    .trust-row span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; font-size: 13px; line-height: 1.5; }
    .trust-row strong { display: inline; font-size: 14px; }
    .test-grid,
    .product-grid,
    .comparison-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .test-grid.is-single .test-card { display: flex; }
    .test-card .test-art { min-height: 150px; }
    .test-card .card-body { padding: 20px; }
    .test-card h3 { font-size: 20px; line-height: 1.3; }
    .product-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; padding: 12px; }
    .product-card > a { display: block; min-width: 0; }
    .product-card .product-fallback { min-height: 110px; }
    .product-card .product-image { height: 110px; }
    .product-card .card-body { min-width: 0; padding: 10px 8px 10px 14px; }
    .product-card h2 { font-size: 18px; line-height: 1.3; }
    .product-card .variant { font-size: 14px; }
    .product-card .product-fallback > .icon { width: 46px; height: 46px; }
    .product-card .product-fallback span { font-size: 12px; text-align: center; }
    .comparison-card { padding: 20px; }
    .comparison-card h3 { font-size: 19px; line-height: 1.3; }
    .comparison-grid.is-single .comparison-card { display: flex; gap: 0; }
    .comparison-grid.is-single .comparison-card h3 { margin-bottom: 14px; }
    .comparison-grid.is-single .mini-results { display: block; margin-bottom: 16px; }
    .comparison-grid.is-single .mini-results li { font-size: 14px; }
    .comparison-grid.is-single .comparison-card .button { margin-top: auto; }
    .category-grid:not(.category-directory) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-tile { padding: 22px 15px; }
    .category-tile h3 { font-size: 16px; }
    .category-tile p { font-size: 14px; }
    .steps-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .step { flex-direction: row; gap: 14px; }
    .step-icon { width: 44px; height: 44px; }
    .step h3 { font-size: 16px; }
    .step p { font-size: 14px; }
    .benefits-grid > div,
    .benefits-grid > div:first-child { padding: 0; gap: 18px; }
    .benefits-grid p { font-size: 14px; }
    .related-grid .test-card { display: flex; }
    .related-grid .test-art { min-height: 130px; }
    .related-grid .card-body { padding: 20px; }
    .search-result { padding: 20px; gap: 12px; }
    .search-result h2 { font-size: 21px; line-height: 1.3; }
    .search-result p { font-size: 14px; }
    .search-result-icon { width: 34px; height: 34px; }
    .search-result-icon .icon { width: 21px; height: 21px; }
    .search-result .text-link { font-size: 14px; }
    .filters { padding: 16px; }
    .filters > .button { font-size: 14px; }
    .footer-about { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-about p { max-width: 520px; font-size: 14px; }
    .footer-cta .button { margin-left: 0; min-height: 44px; font-size: 14px; }
}
