/* Filter chips, sticky sub-navigation and the notice card (spec p.15). */

.ss-section-head {
    display: grid;
    gap: var(--ss-space-3);
    margin-bottom: var(--ss-space-5);
}

.ss-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ss-space-1);
    margin-bottom: var(--ss-space-4);
}

.ss-chips[hidden] {
    display: none;
}

.ss-chip {
    min-height: 44px;
    padding: 8px 20px;
    border: 1px solid var(--ss-gold);
    border-radius: var(--ss-radius-pill);
    background: transparent;
    color: var(--ss-ink);
    font-size: 0.9375rem;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color var(--ss-duration-hover) var(--ss-ease), color var(--ss-duration-hover) var(--ss-ease);
}

.ss-chip:hover {
    background: var(--ss-gold-highlight);
}

.ss-chip[aria-pressed="true"] {
    border-color: var(--ss-maroon);
    background: var(--ss-maroon);
    color: var(--ss-cream);
}

[data-ss-category][hidden] {
    display: none;
}

/* Sticks under the floating bar (16px + 60px + 12px). */
.ss-subnav {
    position: sticky;
    top: calc(88px + var(--wp-admin--admin-bar--height, 0px));
    z-index: 20;
    display: flex;
    justify-content: center;
    margin-bottom: var(--ss-space-5);
    pointer-events: none;
}

.ss-subnav__list {
    display: flex;
    gap: 2px;
    max-width: 100%;
    margin: 0;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid color-mix(in srgb, var(--ss-white) 55%, transparent);
    border-radius: var(--ss-radius-pill);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--ss-white) 72%, transparent),
        color-mix(in srgb, var(--ss-cream) 60%, transparent)
    );
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    backdrop-filter: blur(20px) saturate(165%);
    box-shadow: 0 14px 44px -18px color-mix(in srgb, var(--ss-emerald-shadow) 35%, transparent);
    list-style: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    pointer-events: auto;
}

.ss-subnav__list::-webkit-scrollbar {
    display: none;
}

.ss-subnav__list li {
    flex: none;
    scroll-snap-align: center;
}

.ss-subnav__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--ss-radius-pill);
    color: var(--ss-ink);
    font-size: 0.875rem;
    font-weight: var(--ss-weight-regular);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--ss-duration-hover) var(--ss-ease), color var(--ss-duration-hover) var(--ss-ease);
}

.ss-subnav__link:hover {
    background: color-mix(in srgb, var(--ss-gold-highlight) 45%, transparent);
}

.ss-subnav__link[aria-current="true"] {
    background: var(--ss-maroon);
    color: var(--ss-cream);
}

@media (max-width: 767px) {
    .ss-subnav {
        top: calc(82px + var(--wp-admin--admin-bar--height, 0px));
        justify-content: flex-start;
    }
}

/* Notice: white card, gold hairline, rosewood left edge, a round "!" mark, one action. */
.ss-notice {
    display: flex;
    align-items: center;
    gap: var(--ss-space-3);
    padding: var(--ss-space-3) var(--ss-space-4);
    border: 1px solid var(--ss-hairline);
    border-left: 4px solid var(--ss-maroon);
    border-radius: var(--ss-radius-card-small);
    background: var(--ss-white);
}

.ss-notice__mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ss-maroon) 8%, transparent);
    color: var(--ss-maroon);
    font-weight: var(--ss-weight-medium);
}

.ss-notice__text {
    flex: 1;
    font-size: 1rem;
}

.ss-notice__text strong {
    font-weight: var(--ss-weight-medium);
}

.ss-notice__action {
    flex: none;
}

@media (max-width: 767px) {
    .ss-notice {
        flex-wrap: wrap;
        padding: var(--ss-space-3);
    }

    .ss-notice__text {
        flex-basis: calc(100% - 60px);
    }
}
