.npr {
    --npr-panel-bg: #f4f6fb;
    --npr-card-bg: #fff;
    --npr-card-border: #e5e7eb;
    --npr-heading: #1f2937;
    --npr-text: #1f2937;
    --npr-muted: #6b7280;
    --npr-eyebrow: #1e3a8a;
    --npr-link: #1e3a8a;
    --npr-star: #f59e0b;
    box-sizing: border-box;
    container-type: inline-size;
    position: relative;
    margin-block: var(--npr-space, 80px);
    padding: 3.25rem;
    border-radius: 1.375rem;
    background: var(--npr-panel-bg);
    color: var(--npr-text);
    font-size: 1rem;
    line-height: 1.5;
}

.npr *,
.npr *::before,
.npr *::after {
    box-sizing: border-box;
}

.npr h2,
.npr p,
.npr figure {
    margin: 0;
}

.npr-header {
    margin-bottom: 2rem;
}

.npr-eyebrow {
    color: var(--npr-eyebrow);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.npr h2 {
    color: var(--npr-heading);
    font-size: 2rem;
    line-height: 1.2;
}

.npr-intro {
    margin-top: .75rem !important;
    color: var(--npr-muted);
    font-size: 1.0625rem;
}

.npr-layout,
.npr-stack {
    display: grid;
    gap: 1.5rem;
}

.npr-layout > *,
.npr-stack > * {
    min-width: 0;
}

.npr-card {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 1.75rem;
    border: 1px solid var(--npr-card-border);
    border-radius: .875rem;
    background: var(--npr-card-bg);
    box-shadow: 0 1px 2px rgb(31 41 55 / 4%);
}

.npr-card--featured {
    /* Column flex so the attribution can sit at the card's foot when the
       stacked pair beside it is taller than the featured quote. */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Faint closing mark in the lower right, where the featured card has room;
   anchored below the edge so the ink of the glyph, not its empty em box,
   shows inside the card. */
.npr--quote-mark .npr-card--featured::before {
    position: absolute;
    right: 1.25rem;
    bottom: -3rem;
    color: var(--npr-heading);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9rem;
    line-height: 1;
    content: "\201d";
    opacity: .06;
    pointer-events: none;
}

.npr-card > * {
    position: relative;
}

.npr-product {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .75rem;
}

.npr-product img {
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.npr-product__copy {
    min-width: 0;
}

.npr-product-name {
    color: var(--npr-heading);
    font-size: .95rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.npr-platform,
.npr-meta {
    color: var(--npr-muted);
    font-size: .85rem;
}

.npr-rating {
    display: flex;
    flex: 0 0 auto;
    align-self: flex-start;
    align-items: center;
    gap: .125rem;
    margin-left: auto;
    color: var(--npr-star);
}

.npr-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    color: currentColor;
}

.npr-quote {
    margin: 1.5rem 0 !important;
    color: var(--npr-text);
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.npr-card--featured .npr-quote {
    font-size: 1.25rem;
}

.npr-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
}

.npr-card--featured .npr-meta {
    display: grid;
    justify-items: start;
    gap: .25rem;
    margin-top: auto;
}

.npr-review-link,
.npr-section-link {
    color: var(--npr-link);
}

.npr-review-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.npr-section-link {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.npr-product-name:hover,
.npr-review-link:hover,
.npr-section-link:hover {
    text-decoration: underline;
}

.npr-product-name:focus-visible,
.npr-review-link:focus-visible,
.npr-section-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.npr-notice {
    margin: 0 0 1rem;
    color: var(--npr-muted);
    font-size: .9rem;
}

.npr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@container (min-width: 640px) {
    .npr-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 960px) {
    .npr-layout {
        grid-template-columns: 3fr 2fr;
        align-items: stretch;
    }

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

    .npr-stack {
        grid-template-columns: minmax(0, 1fr);
    }

    .npr--has-section-link .npr-header {
        padding-right: 10rem;
    }

    .npr-section-link {
        position: absolute;
        top: 3.25rem;
        right: 3.25rem;
        margin-top: 0;
    }
}

@supports not (container-type: inline-size) {
    @media (min-width: 640px) {
        .npr-stack {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 960px) {
        .npr-layout {
            grid-template-columns: 3fr 2fr;
        }

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

        .npr-stack {
            grid-template-columns: minmax(0, 1fr);
        }

        .npr--has-section-link .npr-header {
            padding-right: 10rem;
        }

        .npr-section-link {
            position: absolute;
            top: 3.25rem;
            right: 3.25rem;
            margin-top: 0;
        }
    }
}

@media (max-width: 639px) {
    .npr {
        padding: 1.5rem;
    }

    .npr h2 {
        font-size: 1.625rem;
    }
}
