/* ── Extra Small (≤ 575px) ───────────────────────────── */
@media (max-width: 575.98px) {

    .pw-comparison-table-wrap {
        margin: 1.5rem 0;
        border-radius: 1rem;
    }

    .pw-comparison-table {
        min-width: 560px;
        font-size: var(--pw-text-xs);
    }

    .pw-comparison-table th,
    .pw-comparison-table td {
        padding: 0.75rem 0.625rem;
    }

    .pw-comparison-table th,
    .pw-comparison-table td {
        white-space: nowrap;
    }

    .pw-comparison-table th:first-child,
    .pw-comparison-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background: #fff;
        box-shadow: 8px 0 12px -12px rgba(15, 23, 42, 0.3);
    }

    .pw-comparison-table thead th:first-child {
        background: var(--pw-gray-50);
        z-index: 2;
    }

    .pw-comparison-table tfoot td:first-child {
        background: #fff;
    }

    .pw-comparison-table .pw-btn {
        white-space: nowrap;
    }

    .pw-badge,
    .pw-stars {
        white-space: nowrap;
    }

    .pw-technique-table {
        min-width: 0;
    }

    .pw-technique-table thead {
        display: none;
    }

    .pw-technique-table,
    .pw-technique-table tbody,
    .pw-technique-table tr,
    .pw-technique-table td {
        display: block;
        width: 100%;
    }

    .pw-technique-table tr {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid var(--pw-gray-100);
    }

    .pw-technique-table tr:last-child {
        border-bottom: 0;
    }

    .pw-technique-table td {
        padding: 0.2rem 0;
        border: 0;
        white-space: normal;
    }

    .pw-technique-table td:first-child {
        width: 100%;
        margin-bottom: 0.25rem;
        font-size: var(--pw-text-xs);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--pw-gray-500);
        box-shadow: none;
        position: static;
        background: transparent;
    }
}

/* ═══════════════════════════════════════════════════════════
   Pick Wisely — Responsive (Mobile-First)
   Breakpoints: 576 / 768 / 992 / 1200
   ═══════════════════════════════════════════════════════════ */

/* ── Small (≥ 576px) ─────────────────────────────────────── */
@media (min-width: 576px) {

    .pw-container {
        padding-inline: 1.5rem;
    }

    .pw-post-grid.pw-grid-2,
    .pw-post-grid.pw-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pw-hero-slider__slide .pw-hero-card {
        min-height: 340px;
    }

    .pw-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pw-pros-cons {
        grid-template-columns: 1fr 1fr;
    }

    .pw-pros-cons__col--pros {
        border-bottom: none;
        border-right: 1px solid #bbf7d0;
    }

    .pw-product-card {
        grid-template-columns: 280px 1fr;
    }

    .pw-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pw-footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {

    .pw-technique-table th:first-child,
    .pw-technique-table td:first-child {
        width: 30%;
    }
}

/* ── Medium (≥ 768px) ────────────────────────────────────── */
@media (min-width: 768px) {

    .pw-layout-sidebar {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }

    .pw-sidebar--sticky {
        position: sticky;
        top: calc(var(--pw-header-height) + 1.5rem);
    }

    .pw-start-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pw-tool-banner {
        grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.75fr);
        align-items: center;
    }

    .pw-tool-banner__visual {
        justify-content: flex-end;
    }

    .pw-hero-slider__shell {
        padding: 1.3rem;
    }

    .pw-hero-slider__slide .pw-hero-card__title {
        font-size: clamp(1.65rem, 2.2vw, 2rem);
    }

    .pw-article__title {
        font-size: var(--pw-text-4xl);
    }

    .pw-404__code {
        font-size: 10rem;
    }

    .pw-footer__widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Large (≥ 992px) ─────────────────────────────────────── */
@media (min-width: 992px) {

    /* Show desktop nav */
    .pw-header__nav {
        display: flex;
    }

    /* Hide mobile toggle */
    .pw-menu-toggle {
        display: none;
    }

    .pw-post-grid.pw-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .pw-post-grid.pw-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pw-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pw-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .pw-footer__widgets-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pw-newsletter__inner {
        flex-direction: row;
        text-align: left;
        max-width: none;
        align-items: center;
    }

    .pw-newsletter__content {
        flex: 1;
    }

    .pw-newsletter__form {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .pw-newsletter__field {
        width: 100%;
        max-width: none;
    }

    .pw-newsletter__disclaimer {
        text-align: right;
    }
}

/* ── XL (≥ 1200px) ───────────────────────────────────────── */
@media (min-width: 1200px) {

    .pw-container {
        padding-inline: 2rem;
    }

    .pw-layout-sidebar {
        grid-template-columns: 1fr 340px;
    }

    .pw-hero-slider__slide .pw-hero-card {
        min-height: 420px;
    }

    .pw-category-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pw-section {
        padding: 4rem 0;
    }

    .pw-section__title {
        font-size: var(--pw-text-3xl);
    }

    .pw-article__title {
        font-size: var(--pw-text-5xl);
    }

    .pw-archive-header__title {
        font-size: var(--pw-text-4xl);
    }
}

/* ── Print ─────────────────────────────────────────────── */
@media print {

    .pw-topbar,
    .pw-header,
    .pw-mobile-nav,
    .pw-overlay,
    .pw-sidebar,
    .pw-footer,
    .pw-share,
    .pw-newsletter,
    .pw-related,
    .pw-toc__toggle,
    .nav-links {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .pw-container {
        max-width: 100%;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ── Mobile Layout Fixes (≤ 767px) ─────────────────────── */
@media (max-width: 767.98px) {
    html,
    body {
        overflow-x: clip;
    }

    .pw-container,
    .pw-header__inner,
    .pw-layout-sidebar,
    .pw-layout-primary,
    .pw-post-grid,
    .pw-card,
    .pw-card__body,
    .pw-category-grid,
    .pw-section,
    .pw-main {
        min-width: 0;
        max-width: 100%;
    }

    .pw-header__inner {
        gap: 0.75rem;
    }

    .pw-header__logo {
        font-size: 1.125rem;
        gap: 0.375rem;
    }

    .pw-logo-icon svg {
        width: 30px;
        height: 30px;
    }

    .pw-header__actions {
        gap: 0.125rem;
        flex-shrink: 0;
    }

    .pw-search-toggle,
    .pw-menu-toggle,
    .pw-search-close {
        width: 36px;
        height: 36px;
    }

    .pw-hamburger {
        width: 18px;
    }

    .pw-section {
        padding: 2.25rem 0;
    }

    .pw-section__header {
        gap: 0.75rem;
    }

    .pw-section__title {
        font-size: var(--pw-text-2xl);
    }

    .pw-post-grid.pw-grid-2,
    .pw-post-grid.pw-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pw-hero-slider__shell {
        padding: 1rem;
    }

    .pw-hero-slider__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pw-hero-slider__controls {
        width: 100%;
        justify-content: flex-end;
    }

    .pw-hero-slider__slide .pw-hero-card {
        min-height: 280px;
    }

    .pw-hero-slider__slide .pw-hero-card__body {
        padding: 1.1rem;
    }

    .pw-hero-slider__slide .pw-hero-card__title {
        font-size: 1.35rem;
    }

    .pw-card__thumb {
        aspect-ratio: 16 / 10;
    }

    .pw-card__body {
        padding: 1rem;
    }

    .pw-front-page .pw-card__title {
        font-size: var(--pw-text-xl);
        line-height: 1.24;
    }

    .pw-card__excerpt {
        font-size: var(--pw-text-base);
        line-height: 1.65;
    }

    .pw-card__meta {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .pw-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
    }

    .pw-category-card {
        padding: 1.25rem 1rem;
    }

    .pw-category-card__name {
        overflow-wrap: anywhere;
    }
}

/* ── Tablet Layout Fixes (768px–991px) ─────────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {
    .pw-container,
    .pw-layout-sidebar,
    .pw-layout-primary,
    .pw-post-grid,
    .pw-card,
    .pw-card__body {
        min-width: 0;
    }

    .pw-layout-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .pw-post-grid.pw-grid-2,
    .pw-post-grid.pw-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .pw-card__title {
        overflow-wrap: anywhere;
    }
}


@media (max-width: 767.98px) {
    .pw-front-page__header {
        padding: 3rem 0 2rem;
    }

    .pw-front-page__hero-actions,
    .pw-tool-banner__actions {
        flex-direction: column;
    }

    .pw-front-page__hero-actions .pw-btn,
    .pw-tool-banner__actions .pw-btn {
        width: 100%;
    }

    .pw-tool-banner {
        padding: 1.4rem;
    }

    .pw-tool-banner__visual {
        justify-content: flex-start;
    }

    .pw-tool-banner__visual span {
        min-width: 82px;
    }

    .pw-sidebar .search-form {
        flex-direction: column;
    }

    .pw-sidebar .search-submit {
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 991.98px) {
    .pw-latest-articles-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .pw-latest-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
    }

    .pw-latest-articles-grid .pw-card__body {
        padding: 0.875rem;
    }

    .pw-latest-articles-grid .pw-card__title {
        font-size: var(--pw-text-lg);
        line-height: 1.35;
    }

    .pw-latest-articles-grid .pw-card__excerpt {
        font-size: var(--pw-text-sm);
        line-height: 1.55;
    }

    .pw-pagination .page-numbers {
        min-width: 2.4rem;
        height: 2.4rem;
        padding: 0 0.7rem;
    }
}


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

@media (max-width: 767.98px) {
    .pw-category-hub {
        padding: 1.25rem;
    }

    .pw-category-hub__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
