/**
 * Explore product hub: tag filter chips, product rows, and pager.
 * Featured application cards on news articles reuse `.explore-card*`.
 */
.explore-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 0.55rem;
    margin: 0 0 2rem;
    min-width: 0;
}

.explore-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: rgba(0, 0, 0, 0.72);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.explore-filter:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.explore-filter.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    cursor: default;
}

.explore-filter:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.explore-rows {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.explore-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
    min-width: 0;
    color: inherit;
    background: #fff;
    overflow: visible;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.explore-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.explore-card[hidden] {
    display: none !important;
}

.explore-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: auto;
    height: auto;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.explore-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.22;
}

.explore-card-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 1.15rem 1.25rem 0.5rem;
}

.explore-card-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    width: 100%;
}

.explore-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 0.55rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.explore-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    min-width: 0;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}

.explore-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.45rem 0 0;
    padding: 0;
    list-style: none;
    min-width: 0;
    width: 100%;
}

.explore-card-tags li {
    min-width: 0;
}

.explore-card-tag {
    --explore-tag-cut: 4px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.18rem 0.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.62);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
    position: relative;
    isolation: isolate;
}

.explore-card-tag::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.06);
    clip-path: polygon(
        0 0,
        calc(100% - var(--explore-tag-cut)) 0,
        100% var(--explore-tag-cut),
        100% 100%,
        var(--explore-tag-cut) 100%,
        0 calc(100% - var(--explore-tag-cut))
    );
}

.explore-card-tagline {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.55);
    overflow-wrap: break-word;
}

.explore-card-ctas {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.7rem;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    padding: 0 1.25rem 1.15rem;
    pointer-events: none;
}

.explore-card-ctas a,
.explore-card-ctas button:not(:disabled) {
    pointer-events: auto;
}

.explore-card:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.explore-card:hover .explore-card-title {
    color: #2563eb;
}

.explore-empty {
    margin: 1.25rem 0 0;
    text-align: center;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.9375rem;
    overflow-wrap: break-word;
}

.explore-empty[hidden] {
    display: none;
}

.explore-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    min-width: 0;
}

.explore-pager[hidden] {
    display: none;
}

.explore-pager-btn {
    box-sizing: border-box;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    color: #111;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    overflow-wrap: break-word;
    cursor: pointer;
}

.explore-pager-btn:hover:not(:disabled):not([aria-current="page"]) {
    border-color: #2563eb;
    color: #2563eb;
}

.explore-pager-btn[aria-current="page"] {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    cursor: default;
}

.explore-pager-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.explore-pager-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .explore-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 639px) {
    .explore-card-copy {
        padding: 1rem 1rem 0.65rem;
    }

    .explore-card-ctas {
        padding: 1rem;
    }
}

html.dark .explore-filter {
    background: #141416;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

html.dark .explore-filter:hover {
    border-color: #60a5fa;
    color: #93c5fd;
}

html.dark .explore-filter.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

html.dark .explore-card {
    background: #141416;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

html.dark .explore-card:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.55);
}

html.dark .explore-card-img {
    opacity: 0.28;
}

html.dark .explore-card-title {
    color: #fff;
}

html.dark .explore-card:hover .explore-card-title {
    color: #93c5fd;
}

html.dark .explore-card-tagline {
    color: rgba(255, 255, 255, 0.55);
}

html.dark .explore-card-icon {
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark .explore-card-tag {
    color: rgba(255, 255, 255, 0.72);
}

html.dark .explore-card-tag::before {
    background: rgba(255, 255, 255, 0.1);
}

html.dark .explore-empty {
    color: rgba(255, 255, 255, 0.55);
}

html.dark .explore-pager-btn {
    background: #141416;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

html.dark .explore-pager-btn:hover:not(:disabled):not([aria-current="page"]) {
    border-color: #60a5fa;
    color: #93c5fd;
}

html.dark .explore-pager-btn[aria-current="page"] {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .explore-filter,
    .explore-card,
    .explore-card-title,
    .explore-pager-btn {
        transition: none;
    }
}
