:root {
    --explore-ink: var(--sd-text-teal, #123b3f);
    --explore-orange: var(--sd-attention-amber, #d65a2a);
    --explore-cream: var(--sd-surface-cream, #fdf7ed);
    --explore-line: rgba(18, 59, 63, .14);
}

.explore-page { min-height: 100vh; color: var(--explore-ink); background: var(--explore-cream); overflow-x: clip; }
.explore-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--explore-line); background: rgba(253, 247, 237, .94); backdrop-filter: blur(14px); }
.explore-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--explore-ink); text-decoration: none; }
.explore-logo img { width: 32px; height: 32px; border-radius: 10px; }
.explore-logo strong { font-size: 1rem; }
.explore-header nav { display: none; }
.explore-header > div { display: flex; align-items: center; gap: 10px; }
.explore-header > div > a:first-child { color: var(--explore-ink); font-size: .86rem; font-weight: 700; text-decoration: none; }
.explore-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 10px; color: #fff; background: var(--explore-orange); font-weight: 800; text-decoration: none; }
.explore-primary.compact { min-height: 40px; padding-inline: 12px; font-size: .8rem; }
.explore-page main { width: min(1320px, 100%); margin: 0 auto; padding: 0 16px 46px; }
.explore-hero { max-width: 820px; padding: 38px 2px 24px; }
.explore-eyebrow { display: block; margin-bottom: 9px; color: var(--explore-orange); font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.explore-hero h1 { max-width: 800px; margin: 0; font-size: clamp(2.15rem, 8.5vw, 4.35rem); line-height: 1; letter-spacing: -.052em; }
.explore-hero p { max-width: 680px; margin: 15px 0 0; color: #4d6568; font-size: 1rem; line-height: 1.55; }
.explore-hero-cta { margin-top: 20px; }
.explore-discovery { display: grid; gap: 12px; margin-bottom: 18px; }
.explore-audience-filters { display: flex; gap: 8px; margin-inline: -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.explore-audience-filters::-webkit-scrollbar { display: none; }
.explore-audience-filters button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px solid var(--explore-line); border-radius: 999px; color: #476064; background: #fff; font: inherit; font-size: .84rem; font-weight: 750; cursor: pointer; }
.explore-audience-filters button.active { border-color: var(--explore-ink); color: #fff; background: var(--explore-ink); }
.explore-discovery label { display: grid; gap: 5px; color: #607477; font-size: .72rem; font-weight: 800; }
.explore-discovery select { width: 100%; min-height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--explore-line); border-radius: 10px; color: var(--explore-ink); background: #fff; font: inherit; }
.explore-category-filter { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(214, 90, 42, .22); border-radius: 10px; background: rgba(214, 90, 42, .07); padding: 9px 11px; color: #526a6d; font-size: .78rem; }
.explore-category-filter[hidden] { display: none; }
.explore-category-filter strong { color: var(--explore-ink); }
.explore-category-filter button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; color: var(--explore-ink); font-size: 1rem; cursor: pointer; }
.explore-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
.explore-card { display: flex; min-width: 0; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--explore-line); border-radius: 16px; color: inherit; background: #fff; box-shadow: 0 7px 24px rgba(18, 59, 63, .055); font: inherit; text-align: left; cursor: pointer; flex-direction: column; }
.explore-card-image { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #e9ece8; }
.explore-card-image img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .25s ease; }
.explore-card:hover .explore-card-image img { transform: scale(1.015); }
.explore-time-badge, .explore-carousel-count { position: absolute; top: 8px; padding: 5px 7px; border-radius: 7px; color: #fff; font-size: .61rem; font-style: normal; font-weight: 850; box-shadow: 0 3px 10px rgba(0, 0, 0, .14); }
.explore-time-badge { left: 8px; background: var(--explore-orange); }
.explore-time-badge.is-expired { background: #687779; }
.explore-carousel-count { right: 8px; background: rgba(18, 59, 63, .9); }
.explore-card-copy { display: grid; flex: 1 1 auto; grid-template-rows: auto auto auto auto; gap: 8px; padding: 14px; }
.explore-card-overline { display: flex; justify-content: space-between; gap: 5px; color: #738487; font-size: .61rem; }
.explore-card-overline b { min-width: 0; overflow: hidden; color: var(--explore-orange); text-overflow: ellipsis; white-space: nowrap; }
.explore-card-overline time { flex: 0 0 auto; }
.explore-card-title { display: -webkit-box; min-height: 2.46em; overflow: hidden; font-size: 1rem; line-height: 1.23; letter-spacing: -.02em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.explore-card-caption { display: -webkit-box; min-height: 2.9em; overflow: hidden; color: #5c7073; font-size: .8rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.explore-card-copy .explore-card-tags { align-self: end; }
.explore-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.explore-card-tags i { padding: 4px 6px; border-radius: 999px; color: #526a6d; background: #f2f0e9; font-size: .59rem; font-style: normal; font-weight: 750; }
.explore-skeleton { min-height: 255px; cursor: default; }
.explore-skeleton span { display: block; height: 11px; margin: 11px; border-radius: 8px; background: linear-gradient(90deg, #ecebe6 25%, #f7f5ef 50%, #ecebe6 75%); background-size: 200% 100%; animation: explore-shimmer 1.25s infinite; }
.explore-skeleton .explore-skeleton-image { aspect-ratio: 1; height: auto; margin: 0; border-radius: 0; }
.explore-skeleton span:last-child { width: 55%; }
@keyframes explore-shimmer { to { background-position: -200% 0; } }
.explore-load-status { min-height: 38px; padding: 12px 0; color: #607477; text-align: center; }
.explore-sentinel { width: 100%; height: 1px; }
.explore-empty { grid-column: 1 / -1; display: grid; gap: 6px; padding: 42px 20px; border: 1px dashed var(--explore-line); border-radius: 14px; color: #607477; background: rgba(255, 255, 255, .6); text-align: center; }
.explore-empty strong { color: var(--explore-ink); }
.explore-gate { position: relative; margin: 2px 0 26px; overflow: hidden; border-radius: 20px; }
.explore-gate-blur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 310px; opacity: .52; filter: blur(8px); transform: scale(1.04); }
.explore-gate-blur > span { display: grid; align-content: start; gap: 10px; padding-bottom: 12px; border: 1px solid var(--explore-line); border-radius: 14px; background: #fff; }
.explore-gate-blur i { display: block; aspect-ratio: 1; background: #dcded8; }
.explore-gate-blur b, .explore-gate-blur em { height: 12px; margin: 0 12px; border-radius: 8px; background: #dfe3de; }
.explore-gate-blur em { width: 55%; }
.explore-gate-card { position: absolute; inset: 50% auto auto 50%; width: min(92%, 570px); padding: 22px 18px; border: 1px solid rgba(18, 59, 63, .17); border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 55px rgba(18, 59, 63, .18); text-align: center; transform: translate(-50%, -50%); }
.explore-gate-card h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.explore-gate-card p { margin: 10px auto 16px; color: #536b6e; line-height: 1.5; }
.explore-gate-card small { display: block; margin-top: 10px; color: #536b6e; font-weight: 700; }
.explore-footer { display: grid; gap: 20px; padding: 28px 16px; border-top: 1px solid var(--explore-line); background: var(--explore-ink); }
.explore-footer .explore-logo, .explore-footer a { color: #fff; }
.explore-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.explore-footer nav a { font-size: .82rem; text-decoration: none; }
.explore-footer small { color: rgba(255, 255, 255, .6); }
body.explore-modal-open { overflow: hidden; }
.explore-preview { width: 100%; max-width: 760px; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; color: var(--explore-ink); background: #fff; }
.explore-preview::backdrop { background: rgba(5, 29, 31, .72); backdrop-filter: blur(5px); }
.explore-preview-shell { min-height: 100%; background: #fff; }
.explore-preview header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 15px; border-bottom: 1px solid var(--explore-line); background: rgba(255, 255, 255, .96); }
.explore-preview header div { display: grid; gap: 3px; }
.explore-preview header span { color: var(--explore-orange); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.explore-preview header strong { font-size: .95rem; line-height: 1.25; }
.explore-preview header button { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--explore-line); border-radius: 50%; color: var(--explore-ink); background: #fff; font-size: 1.55rem; cursor: pointer; }
.explore-preview-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #e9ece8; scrollbar-width: none; }
.explore-preview-slides::-webkit-scrollbar { display: none; }
.explore-preview figure { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.explore-preview figure img { width: 100%; display: block; aspect-ratio: 1; object-fit: contain; background: #e9ece8; }
.explore-preview figcaption { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 999px; color: #fff; background: rgba(18, 59, 63, .88); font-size: .72rem; }
.explore-preview-body { padding: 18px 16px 34px; }
.explore-preview-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.explore-preview-meta span { display: grid; gap: 3px; min-width: 0; padding: 10px 11px; border-radius: 10px; background: #f7f3ec; }
.explore-preview-meta small { color: #718184; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.explore-preview-meta strong { overflow-wrap: anywhere; font-size: .8rem; line-height: 1.35; }
.explore-preview-caption h2 { margin: 22px 0 8px; font-size: 1rem; }
.explore-preview-caption p { margin: 0; color: #40595c; line-height: 1.65; }
.explore-preview-cta { width: 100%; margin-top: 22px; }
.explore-preview-reassurance { display: block; margin-top: 9px; color: #607477; font-weight: 700; text-align: center; }

@media (max-width: 359px) {
    .explore-header .explore-primary { display: none; }
}

@media (min-width: 640px) {
    .explore-page main { padding-inline: 24px; }
    .explore-discovery { grid-template-columns: minmax(0, 1fr) 220px; align-items: end; }
    .explore-audience-filters { margin: 0; padding-inline: 0; }
    .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .explore-gate-blur { height: 230px; }
    .explore-preview { height: min(92vh, 900px); margin: auto; border-radius: 20px; }
    .explore-preview-shell { min-height: 0; max-height: 92vh; overflow-y: auto; }
}

@media (min-width: 900px) {
    .explore-header { padding-inline: max(24px, calc((100vw - 1320px) / 2)); }
    .explore-header nav { display: flex; gap: 24px; }
    .explore-header nav a { color: #4b6265; font-size: .87rem; font-weight: 750; text-decoration: none; }
    .explore-header nav a.active { color: var(--explore-orange); }
    .explore-hero { padding-top: 60px; }
    .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .explore-footer { grid-template-columns: 1fr auto; align-items: center; padding-inline: max(24px, calc((100vw - 1320px) / 2)); }
    .explore-footer small { grid-column: 1 / -1; }
    .explore-preview { max-width: 1100px; }
    .explore-preview-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); grid-template-rows: auto 1fr; }
    .explore-preview header { grid-column: 1 / -1; }
    .explore-preview-slides { min-height: 0; align-self: start; }
    .explore-preview-body { max-height: calc(92vh - 66px); overflow-y: auto; padding: 24px; }
}

@media (min-width: 1280px) {
    .explore-grid { grid-template-columns: repeat(4, minmax(280px, 1fr)); }
}

/* Only customer-readable labels accompany previews; captions load on opening. */
.explore-card-copy { grid-template-rows: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.explore-card-copy > span { display: grid; align-content: start; gap: 4px; min-width: 0; }
.explore-card-copy small { color: #607477; font-size: .75rem; }
.explore-card-copy strong { font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.explore-load-status button, [data-explore-detail-retry] { min-height: 44px; padding: 8px 16px; border: 1px solid var(--explore-line); border-radius: 10px; color: var(--explore-ink); background: #fff; font: inherit; cursor: pointer; }
.explore-preview header button { width: 44px; height: 44px; }
@media (prefers-reduced-motion: reduce) {
    .explore-skeleton span { animation: none; }
    .explore-card-image img { transition: none; }
}
