/*======Product Updates listing (archive-mm_product_update.php)======*/
.product-updates {
    --pu-text: #1d1d1f;
    --pu-muted: #8a8a8f;
    --pu-body: #3a3a3c;
    --pu-border: #e5e5ea;
    --pu-brand: #4f3fd1;
    --pu-brand-hover: #3f30b8;
    --pu-panel: #f2f2f2;
    color: var(--pu-text);
    background: #ffffff;
}

.product-updates,
.product-updates *,
.product-updates *::before,
.product-updates *::after {
    box-sizing: border-box;
}

.product-updates .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-updates-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero */
.product-updates-hero {
    display: flex;
    align-items: center;
    min-height: 324px; /* native height of hero-bg.jpg */
    padding: 48px 0;
    text-align: center;
    background-color: #ffffff;
    background-image: url('../images/product-updates/hero-bg.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.product-updates-eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2B3161;
}

.product-updates-title {
    margin: 0 0 20px;
    font-size: clamp(30px, 5vw, 44px); /* 44px on desktop, scales down on phones */
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #010101;
    text-transform: none;
}

.product-updates-intro {
    max-width: 780px; /* wide enough for the copy to wrap onto two lines */
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.55;
    color: #010101;
}

/* Layout */
.product-updates-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.product-updates-sidebar {
    order: -1; /* search and categories first on small screens */
}

@media (min-width: 992px) {
    .product-updates-layout {
        grid-template-columns: minmax(0, 1fr) 300px; /* blog sidebar width */
        gap: 72px;
    }

    /* Search and categories stay in view while scrolling the feed. The offset clears the
       fixed header (switch bar 48px + nav 80px, see style.css) plus 24px of breathing room. */
    .product-updates-sidebar {
        --pu-header-height: 128px;
        order: 0;
        position: sticky;
        top: calc(var(--pu-header-height) + 24px);
        align-self: start;
        transition: top 0.25s ease-out; /* same timing as the switch bar sliding away */
    }

    /* Scrolling down hides the switch bar (nav-switchbar.js), leaving just the 80px nav */
    body:has(.nav-header.switchbar-hidden) .product-updates-sidebar {
        --pu-header-height: 80px;
    }

    /* Logged-in users also have the 32px WordPress admin bar on top */
    .admin-bar .product-updates-sidebar {
        top: calc(var(--pu-header-height) + 32px + 24px);
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .product-updates-sidebar {
        transition: none;
    }
}

/* Item */
.product-update {
    padding: 0 0 40px;
    margin: 0 0 40px;
    border-bottom: 1px solid var(--pu-border);
}

.product-update-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.product-update-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--pu-text);
    background: #ececec;
    text-decoration: none;
}

.product-update-badge:hover,
.product-update-badge:focus {
    color: var(--pu-text);
    text-decoration: underline;
}

.product-update-badge--assignments { background: #d6f5de; }
.product-update-badge--music-catalog { background: #fff1a8; }
.product-update-badge--practice { background: #fde2ea; }
.product-update-badge--sight-reading { background: #c8f2f6; }
.product-update-badge--other { background: #ececec; }

.product-update-title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pu-text);
    text-transform: none;
}

.product-update-date {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--pu-muted);
}

.product-update-summary p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pu-body);
}

.product-update-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pu-text);
    text-decoration: none;
}

.product-update-link:hover,
.product-update-link:focus {
    color: var(--pu-brand);
    text-decoration: underline;
}

.product-updates-status {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--pu-body);
}

.product-updates-status a {
    margin-left: 8px;
    color: var(--pu-brand);
}

.product-updates-empty {
    font-size: 15px;
    color: var(--pu-body);
}

/* Pagination */
.product-updates-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 16px;
}

.product-updates-pagination-count {
    font-size: 15px;
    letter-spacing: 0.08em;
    color: var(--pu-text);
}

.product-updates-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--pu-text);
}

.product-updates-pagination-arrow:hover,
.product-updates-pagination-arrow:focus {
    color: var(--pu-brand);
    background: var(--pu-panel);
}

.product-updates-pagination-arrow.is-disabled {
    color: #d1d1d6;
}

/* Email list CTA (matches the homepage "Ready to get started?" box) */
.product-updates-cta {
    padding: 0 2rem 4rem;
    background: linear-gradient(180deg, rgba(17, 3, 188, 0) 39.9%, rgba(17, 3, 188, 0.1) 100%);
}

.product-updates-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.product-updates-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 356px;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    color: #ffffff;
    background-color: #312D8E;
    /* Image height matches the box; the offset trims the empty strip right of the cat so it
       sits ~24px from the corner (the cat ends 86% of the way across the artwork) */
    background-size: auto 100%;
    background-position: right -190px bottom;
    background-repeat: no-repeat;
}

.product-updates-cta-box h2 {
    margin: 0 0 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: #ffffff;
    text-transform: none;
}

.product-updates-cta-box h2 strong {
    font-weight: 600;
}

.product-updates-cta-box p {
    max-width: 440px;
    margin: 0 auto 2.5rem;
    font-size: 18px;
    line-height: 1.4;
    color: #ffffff;
}

.product-updates-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #312D8E;
    background-color: #B8A1FF;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.product-updates-cta-btn:hover,
.product-updates-cta-btn:focus {
    color: #ffffff;
    background-color: #7E54FF;
    text-decoration: none;
}

@media (max-width: 767px) {
    .product-updates-cta {
        padding: 0 16px 3rem;
    }

    .product-updates-cta-box {
        padding: 2.5rem 1.5rem 7rem; /* room for the cat below the button */
        /* The box is taller than wide here, so a full-height image would blow the cat up; a
           fixed height keeps it small and tucked into the bottom-right corner */
        background-size: auto 240px;
        background-position: right -130px bottom;
    }
}

/* Sidebar: styled by the theme's blog sidebar rules (.sidebar .widget, .blog-search, .menu-sidebar-container) */
