/* static/pages/explore/explore.css */
/* Explore page styles using Bootstrap 5.3 CSS variables */

.explore-page {
    min-height: 100vh;
    overflow-x: clip;
    background:
        radial-gradient(circle at 18% 0%, rgba(25, 135, 210, .18), transparent 30rem),
        radial-gradient(circle at 82% 10%, rgba(139, 92, 246, .14), transparent 28rem),
        linear-gradient(180deg, #070b12 0%, #0b111a 42%, #070b12 100%);
    color: #f6f9ff;
}

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

.explore-page .container {
    max-width: min(100% - 2rem, 1400px);
}

.explore-page .page-section {
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(.75rem, 3vw, 2rem);
    background: transparent;
}

/* ============================================================================
   EXPLORE PAGE INTRO (minimal, editorial — photography carries weight below)
   ============================================================================ */

.explore-root-bento {
    padding: clamp(.7rem, 1.3vw, 1rem) clamp(.75rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4rem);
    scroll-margin-top: 5rem;
}

.explore-root-bento__grid {
    display: grid;
    gap: clamp(.75rem, 1.35vw, 1rem);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-inline: auto;
    max-width: min(100%, 1400px);
}

.explore-root-card {
    --root-accent: var(--bs-primary);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(1rem, 1fr) auto;
    min-height: clamp(17.5rem, 24vw, 20.5rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .9rem;
    background: #03070d;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .3);
    isolation: isolate;
    transition: border-color .25s ease, box-shadow .25s ease, filter .25s ease, transform .25s ease;
}

.explore-root-card--livestock {
    --root-accent: #f65ba8;
}

.explore-root-card--equipment {
    --root-accent: #17d6c2;
}

.explore-root-card--habitats {
    --root-accent: #9b72ff;
}

.explore-root-card--habitats {
    order: 1;
    grid-column: span 6;
}

.explore-root-card--livestock {
    order: 2;
    grid-column: span 6;
}

.explore-root-card--equipment {
    grid-column: 1 / -1;
    min-height: clamp(16rem, 20vw, 18.25rem);
    order: 3;
}

.explore-root-card:hover,
.explore-root-card:focus-within {
    border-color: color-mix(in srgb, var(--root-accent) 44%, rgba(255, 255, 255, .18));
    box-shadow: 0 1.75rem 4.5rem rgba(0, 0, 0, .42);
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.explore-root-card__media-link,
.explore-root-card__image,
.explore-root-card__scrim {
    position: absolute;
    inset: 0;
}

.explore-root-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
    transform: scale(1.02);
    transition: transform .55s cubic-bezier(.25, .46, .45, .94), opacity .35s ease;
}

.explore-root-card__image--placeholder {
    opacity: .32;
}

.explore-root-card__scrim {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .18) 42%, rgba(0, 0, 0, .84) 100%),
        radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--root-accent) 22%, transparent), transparent 17rem),
        linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .1) 66%);
}

.explore-root-card:hover .explore-root-card__image,
.explore-root-card:focus-within .explore-root-card__image {
    opacity: .9;
    transform: scale(1.05);
}

.explore-root-card__content,
.explore-root-card__path-panel,
.explore-root-story__card {
    position: relative;
    z-index: 1;
}

.explore-root-card__content {
    align-self: start;
    max-width: min(100%, 27rem);
    padding: clamp(1.35rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.2vw, 1.7rem) .5rem;
}

.explore-root-card--equipment .explore-root-card__content {
    max-width: min(100%, 38rem);
}

.explore-root-card__title {
    max-width: 22ch;
    margin: 0 0 .55rem;
    color: #fff;
    font-size: clamp(1.95rem, 2.6vw, 2.35rem);
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.08;
    text-wrap: balance;
}

.explore-root-card--equipment .explore-root-card__title {
    max-width: none;
    font-size: clamp(2rem, 2.7vw, 2.5rem);
    text-wrap: normal;
    white-space: nowrap;
}

.explore-root-card__description {
    display: -webkit-box;
    overflow: hidden;
    max-width: 26rem;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: .95rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.explore-root-card__path-panel {
    align-self: end;
    display: grid;
    gap: .42rem;
    margin: 0 clamp(.7rem, 1.25vw, .9rem) clamp(.7rem, 1.25vw, .9rem);
    padding: .74rem clamp(.7rem, 1.2vw, .9rem) .62rem;
    border: 1px solid color-mix(in srgb, var(--root-accent) 28%, rgba(255, 255, 255, .12));
    border-radius: .55rem;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--root-accent) 9%, rgba(10, 20, 36, .68)), rgba(4, 10, 19, .54));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 .7rem 1.6rem rgba(0, 0, 0, .2);
    backdrop-filter: blur(14px) saturate(1.15);
}

.explore-root-card--livestock .explore-root-card__path-panel {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--root-accent) 13%, rgba(18, 22, 42, .68)), rgba(4, 10, 19, .52));
}

.explore-root-card--equipment .explore-root-card__path-panel {
    width: calc(100% - clamp(1.4rem, 2.5vw, 1.8rem));
}

.explore-root-card__children {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: .42rem;
}

.explore-root-card__child,
.explore-root-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.05rem;
    padding: .42rem .65rem;
    border: 1px solid color-mix(in srgb, var(--root-accent) 38%, rgba(255, 255, 255, .13));
    border-radius: .42rem;
    background: rgba(5, 14, 28, .38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .94);
    font-size: .77rem;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .42);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.explore-root-card__child:hover,
.explore-root-card__child:focus-visible,
.explore-root-card__more:hover,
.explore-root-card__more:focus-visible {
    border-color: color-mix(in srgb, var(--root-accent) 72%, rgba(255, 255, 255, .36));
    background: color-mix(in srgb, var(--root-accent) 24%, rgba(255, 255, 255, .14));
    box-shadow:
        0 .65rem 1.4rem rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .24);
    color: #fff;
    transform: translateY(-1px);
}

.explore-root-card__more {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .76);
}

.explore-root-card__browse {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: .55rem;
    min-height: 1.85rem;
    margin-top: .1rem;
    color: color-mix(in srgb, var(--root-accent) 72%, #e5ffff);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.explore-root-card__browse:hover,
.explore-root-card__browse:focus-visible {
    color: #fff;
}

.explore-root-story {
    display: grid;
    gap: clamp(.75rem, 1.35vw, 1rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(.75rem, 1.35vw, 1rem) auto 0;
    max-width: min(100%, 1400px);
}

.explore-root-story__card {
    --story-accent: #18d8c5;
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(12.5rem, 15.5vw, 15rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .85rem;
    background:
        linear-gradient(180deg, rgba(4, 10, 19, .08), rgba(4, 10, 19, .82)),
        linear-gradient(90deg, rgba(4, 10, 19, .34), rgba(4, 10, 19, .04)),
        var(--story-image),
        #03070d;
    background-position: center 38%;
    background-size: cover;
    color: #fff;
    isolation: isolate;
    text-decoration: none;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.explore-root-story__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 9, 19, .34), rgba(3, 9, 19, .02)),
        linear-gradient(135deg, color-mix(in srgb, var(--story-accent) 18%, transparent), transparent 48%);
    opacity: .78;
}

.explore-root-story__card--deeper {
    --story-accent: #9b72ff;
}

.explore-root-story__card--connected {
    --story-accent: #4da3ff;
}

.explore-root-story__card--local {
    --story-accent: #36e083;
}

.explore-root-story__card:hover,
.explore-root-story__card:focus-visible {
    border-color: color-mix(in srgb, var(--story-accent) 58%, rgba(255, 255, 255, .22));
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .32);
    color: #fff;
    transform: translateY(-2px);
}

.explore-root-story__glass {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    width: 100%;
    padding: 1.35rem 3.75rem 1.35rem 1.35rem;
    background:
        linear-gradient(90deg, rgba(6, 16, 30, .82), rgba(6, 16, 30, .46));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px) saturate(1.16);
}

.explore-root-story__glass strong {
    margin-bottom: .28rem;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    line-height: 1.1;
}

.explore-root-story__glass span {
    color: rgba(246, 249, 255, .78);
    font-size: .95rem;
    line-height: 1.35;
}

.explore-root-story__card > i {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    color: #fff;
}

.explore-detail-intro {
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.explore-detail-intro__nav {
    margin-bottom: 1.15rem;
}

.explore-detail-intro__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 2.75rem;
    padding: .7rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(8, 13, 22, .42);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.explore-detail-intro__back:hover,
.explore-detail-intro__back:focus-visible {
    border-color: rgba(168, 123, 255, .72);
    background: rgba(124, 85, 229, .24);
    color: #fff;
    transform: translateY(-1px);
}

.explore-detail-intro__stats {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1rem;
    color: rgba(246, 249, 255, .66);
    font-size: .9rem;
}

.explore-detail-intro__stats span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.explore-branch-bento {
    padding: 0 clamp(.75rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4rem);
}

.explore-discovery-scroll {
    padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.explore-deep-dive-scroll {
    padding: 0 0 clamp(1rem, 3vw, 2rem);
}

.explore-discovery-section {
    position: relative;
}

.explore-discovery-section::before {
    content: "";
    position: absolute;
    inset: 0 clamp(.75rem, 3vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.explore-discovery-section__header {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.explore-discovery-section__eyebrow {
    margin: 0 0 .55rem;
    color: #18d8c5;
    font-size: .75rem;
    font-weight: 780;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.explore-discovery-section--inspiration .explore-discovery-section__eyebrow {
    color: #b990ff;
}

.explore-discovery-section--marketplace .explore-discovery-section__eyebrow {
    color: #ffcf73;
}

.explore-discovery-section__grid {
    --bento-row: 220px;
}

/* ============================================================================
   CATEGORY DETAIL SURFACE
   ============================================================================ */

.explore-page--detail {
    overflow: hidden;
}

.explore-detail-hero {
    position: relative;
    min-height: clamp(21rem, 33vw, 28rem);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(151, 180, 230, .16);
    background:
        radial-gradient(circle at 16% 10%, rgba(24, 216, 197, .1), transparent 22rem),
        #030913;
}

.explore-detail-hero--home {
    min-height: clamp(22rem, 31vw, 29rem);
}

.explore-detail-hero--home .explore-detail-hero__image--left {
    right: auto;
    width: 56%;
    object-position: 42% 48%;
    opacity: .82;
    filter: saturate(1.1) contrast(1.06);
}

.explore-detail-hero--home .explore-detail-hero__image--right {
    left: auto;
    width: 43%;
    object-position: 58% 48%;
    opacity: .78;
    filter: saturate(1.04) contrast(1.08);
}

.explore-detail-hero--home .explore-detail-hero__inner {
    padding-block: clamp(2.85rem, 4.2vw, 4rem) clamp(2.25rem, 3.6vw, 3.25rem);
}

.explore-detail-hero--home .explore-detail-hero__scrim {
    background:
        linear-gradient(90deg, rgba(3, 9, 19, .18) 0%, rgba(3, 9, 19, .5) 22%, rgba(3, 9, 19, .92) 39%, rgba(3, 9, 19, .94) 62%, rgba(3, 9, 19, .48) 79%, rgba(3, 9, 19, .28) 100%),
        radial-gradient(ellipse at 50% 46%, rgba(3, 9, 19, .62), rgba(3, 9, 19, .28) 22rem, transparent 36rem),
        linear-gradient(180deg, rgba(3, 9, 19, .08) 0%, rgba(3, 9, 19, .24) 62%, #070b12 100%);
}

.explore-detail-hero__image,
.explore-detail-hero__scrim {
    position: absolute;
    inset: 0;
}

.explore-detail-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 48%;
    transform: scale(1.01);
    filter: saturate(1.05) contrast(1.04);
}

.explore-detail-hero__scrim {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 9, 19, .98) 0%, rgba(3, 9, 19, .9) 36%, rgba(3, 9, 19, .48) 66%, rgba(3, 9, 19, .18) 100%),
        linear-gradient(180deg, rgba(3, 9, 19, .12) 0%, rgba(3, 9, 19, .36) 68%, #070b12 100%);
}

.explore-detail-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: inherit;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(4.25rem, 7vw, 6rem) clamp(2rem, 4vw, 3.25rem);
}

.explore-detail-hero--home .explore-detail-hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.explore-detail-hero__nav {
    position: absolute;
    top: clamp(1.25rem, 2.4vw, 1.85rem);
    left: 1rem;
}

.explore-detail-hero__back,
.explore-child-group__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 2.55rem;
    padding: .62rem 1rem;
    border: 1px solid rgba(151, 180, 230, .24);
    border-radius: 999px;
    background: rgba(3, 9, 19, .48);
    color: #fff;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.explore-detail-hero__back:hover,
.explore-detail-hero__back:focus-visible,
.explore-child-group__action:hover,
.explore-child-group__action:focus-visible {
    border-color: rgba(168, 123, 255, .72);
    background: rgba(124, 85, 229, .24);
    color: #fff;
    transform: translateY(-1px);
}

.explore-detail-hero__content {
    width: min(100%, 43rem);
    padding-top: 0;
}

.explore-detail-hero--home .explore-detail-hero__content {
    min-width: 0;
    width: min(100%, 40rem);
}

.explore-detail-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1.15rem;
    background: rgba(124, 85, 229, .42);
    color: #fff;
    font-size: 1.55rem;
    backdrop-filter: blur(12px);
}

.explore-detail-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 4.6vw, 4.75rem);
    font-weight: 830;
    letter-spacing: 0;
    line-height: .96;
    text-wrap: balance;
}

.explore-detail-hero__eyebrow {
    margin: .75rem 0 0;
    color: #35ddea;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 800;
    line-height: 1.3;
}

.explore-page--detail .explore-detail-hero .explore-detail-hero__title {
    color: #fff;
    font-size: clamp(2.8rem, 4.6vw, 4.75rem);
    letter-spacing: 0;
    line-height: .96;
    text-shadow: none;
}

.explore-detail-hero__description {
    max-width: 38rem;
    margin: .85rem 0 0;
    color: rgba(223, 232, 247, .78);
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.58;
}

.explore-page--detail .explore-detail-hero .explore-detail-hero__description {
    margin: .85rem 0 0;
    color: rgba(223, 232, 247, .78);
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.58;
    max-width: 38rem;
    opacity: 1;
    text-shadow: none;
}

.explore-detail-hero--home .explore-detail-hero__description {
    max-width: 33rem;
    margin: .8rem auto 0;
}

.explore-detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.35rem;
}

.explore-detail-hero--home .explore-detail-hero__actions {
    justify-content: center;
    margin-top: 1.55rem;
}

.explore-detail-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 2.8rem;
    padding: .7rem 1.15rem;
    border: 1px solid rgba(151, 180, 230, .24);
    border-radius: 999px;
    color: #fff;
    font-weight: 780;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.explore-detail-hero__action--primary {
    border-color: rgba(24, 216, 197, .72);
    background:
        linear-gradient(135deg, #18d8c5, #68e9f2);
    color: #03101a;
}

.explore-detail-hero__action--secondary {
    background: rgba(255, 255, 255, .075);
}

.explore-detail-hero__action:hover,
.explore-detail-hero__action:focus-visible {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    transform: translateY(-1px);
}

.explore-detail-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(.7rem, 2vw, 1.8rem);
    margin-top: clamp(1.25rem, 2.4vw, 1.8rem);
    color: rgba(223, 232, 247, .62);
    font-size: .84rem;
    font-weight: 680;
}

.explore-detail-hero__stats a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.55rem;
    padding-right: clamp(.7rem, 2vw, 1.5rem);
    border-right: 1px solid rgba(151, 180, 230, .2);
    color: rgba(246, 249, 255, .84);
    text-decoration: none;
}

.explore-detail-hero__stats a:last-child {
    border-right: 0;
    padding-right: 0;
}

.explore-detail-hero__stats i {
    color: #35ddea;
    font-size: 1.25rem;
}

.explore-detail-hero__stats a:hover,
.explore-detail-hero__stats a:focus-visible {
    color: #fff;
}

.explore-detail-hero__path-card {
    justify-self: end;
    min-width: 0;
    width: min(100%, 24.5rem);
    padding: 1.05rem;
    border: 1px solid rgba(151, 180, 230, .2);
    border-radius: 1rem;
    background:
        linear-gradient(145deg, rgba(21, 31, 52, .76), rgba(5, 11, 21, .58));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 1rem 2.6rem rgba(0, 0, 0, .26);
    backdrop-filter: blur(18px) saturate(1.16);
}

.explore-detail-hero__path-heading {
    display: grid;
    gap: .85rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(151, 180, 230, .16);
}

.explore-detail-hero__path-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(115, 148, 255, .35);
    border-radius: 50%;
    background: rgba(83, 89, 190, .28);
    color: #d9e6ff;
}

.explore-detail-hero__path-heading h2 {
    margin: .1rem 0 .38rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.explore-detail-hero__path-heading p {
    margin: 0;
    color: rgba(246, 249, 255, .76);
    font-size: .9rem;
    line-height: 1.45;
}

.explore-detail-hero__path-links {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-top: .9rem;
}

.explore-detail-hero__path-links a {
    display: grid;
    place-items: center;
    gap: .4rem;
    min-height: 4.1rem;
    padding: .55rem .35rem;
    border: 1px solid rgba(151, 180, 230, .22);
    border-radius: .55rem;
    background: rgba(255, 255, 255, .055);
    color: rgba(246, 249, 255, .84);
    font-size: .72rem;
    font-weight: 720;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.explore-detail-hero__path-links i {
    color: #b990ff;
    font-size: 1.15rem;
}

.explore-detail-hero__path-links a:hover,
.explore-detail-hero__path-links a:focus-visible {
    border-color: rgba(24, 216, 197, .55);
    background: rgba(24, 216, 197, .1);
    color: #fff;
}

.explore-child-group,
.explore-leaf-bento {
    position: relative;
}

.explore-child-group::before,
.explore-leaf-bento::before {
    content: "";
    position: absolute;
    inset: 0 clamp(.75rem, 3vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.explore-child-group__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(.9rem, 1.8vw, 1.35rem);
}

.explore-child-group__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 3.2vw, 3.25rem);
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1;
}

.explore-child-group__description {
    max-width: 44rem;
    margin: .55rem 0 0;
    color: rgba(246, 249, 255, .66);
    font-size: 1rem;
    line-height: 1.48;
}

.explore-child-group__action {
    flex: 0 0 auto;
    color: #b990ff;
}

.explore-child-group__grid {
    --bento-row: 218px;
    --bento-gap: .9rem;
    align-items: stretch;
}

.explore-discovery-tile--taxonomy .bento-card__eyebrow {
    color: #18d8c5;
}

.explore-discovery-tile--content .bento-card__eyebrow {
    color: #ffcf73;
}

.explore-child-group__empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .045);
}

.explore-child-group__empty p {
    margin: 0;
    color: rgba(246, 249, 255, .66);
}

@media (max-width: 575.98px) {
    .explore-page__intro-inner {
        text-align: left;
    }
}

/* ============================================================================
   CATEGORY BENTO GRID (Bootstrap card + CSS Grid)

   Layout rules: apps/category/bento_layout.py
   - 2 items: components/bento/two_feature.html (not bento-grid--pair)
   - 3: bento-grid--trio (1/3 hero + two equal right stacks)
   - 4+: tall hero, wide at 4/8/12…, full/wide footer to avoid orphans
   ============================================================================ */

.bento-grid {
    --bento-row: 220px;
    --bento-gap: .95rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bento-gap);
    grid-auto-rows: var(--bento-row);
}

/* 3 items: feature tile plus two stacked editorial tiles, no orphaned blank space */
.bento-grid--trio,
.bento-grid--count-3 {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr);
    grid-template-rows: repeat(2, minmax(0, var(--bento-row)));
}

.bento-grid--trio > .bento-card:nth-child(1),
.bento-grid--count-3 > .bento-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.bento-grid--trio > .bento-card:nth-child(2),
.bento-grid--count-3 > .bento-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.bento-grid--trio > .bento-card:nth-child(3),
.bento-grid--count-3 > .bento-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.bento-grid--trio > .bento-card:nth-child(2) .bento-card__desc,
.bento-grid--trio > .bento-card:nth-child(3) .bento-card__desc,
.bento-grid--count-3 > .bento-card:nth-child(2) .bento-card__desc,
.bento-grid--count-3 > .bento-card:nth-child(3) .bento-card__desc {
    display: -webkit-box;
}

.bento-grid--count-4 {
    grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, var(--bento-row)));
}

.bento-grid--count-4 > .bento-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.bento-grid--count-4 > .bento-card:nth-child(2),
.bento-grid--count-4 > .bento-card:nth-child(3) {
    grid-row: 1;
}

.bento-grid--count-4 > .bento-card:nth-child(4) {
    grid-column: 2 / span 2;
    grid-row: 2;
}

.bento-grid--count-5,
.bento-grid--count-6 {
    grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, var(--bento-row)));
}

.bento-grid--count-5 > .bento-card:nth-child(1),
.bento-grid--count-6 > .bento-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.bento-grid--count-5 > .bento-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.bento-grid--count-5 > .bento-card:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.bento-grid--count-6 > .bento-card:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
}

.bento-grid--count-6 > .bento-card:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
}

.bento-grid--count-6 > .bento-card:nth-child(6) {
    grid-column: 3;
    grid-row: 3;
}

/* 7 items: complete 3×3 — no full footer gap (Core Dosing pattern) */
.bento-grid--count-7 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, var(--bento-row));
}

.bento-grid--count-7 > .bento-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.bento-grid--count-7 > .bento-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.bento-grid--count-7 > .bento-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.bento-grid--count-7 > .bento-card:nth-child(4) {
    grid-column: 2 / span 2;
    grid-row: 2;
}

.bento-grid--count-7 > .bento-card:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
}

.bento-grid--count-7 > .bento-card:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
}

.bento-grid--count-7 > .bento-card:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
}

/* 8 items: 7-grid + full-width footer row */
.bento-grid--count-8 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, var(--bento-row));
}

.bento-grid--count-8 > .bento-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.bento-grid--count-8 > .bento-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.bento-grid--count-8 > .bento-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.bento-grid--count-8 > .bento-card:nth-child(4) {
    grid-column: 2 / span 2;
    grid-row: 2;
}

.bento-grid--count-8 > .bento-card:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
}

.bento-grid--count-8 > .bento-card:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
}

.bento-grid--count-8 > .bento-card:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
}

.bento-grid--count-8 > .bento-card:nth-child(8) {
    grid-column: 1 / -1;
    grid-row: 4;
}

.bento-card {
    position: relative;
    display: flex;
    min-height: var(--bento-row, 240px);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 1.05rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        #03070d;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover,
.bento-card:focus-visible {
    border-color: rgba(168, 123, 255, .48);
    box-shadow:
        0 20px 52px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #fff;
    transform: translateY(-2px);
}

.bento-card:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 3px;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-full {
    grid-column: 1 / -1;
}

.bento-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.45s ease;
}

.bento-card__img--placeholder {
    filter: saturate(0.85);
}

.bento-card:hover .bento-card__img,
.bento-card:focus-visible .bento-card__img {
    transform: scale(1.05);
}

.bento-card__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .18) 36%, rgba(0, 0, 0, .78) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .08) 58%, rgba(0, 0, 0, .3) 100%);
    pointer-events: none;
}

.bento-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.45rem;
    width: 100%;
    margin-top: auto;
    padding: clamp(1rem, 1.8vw, 1.35rem);
}

.bento-card__eyebrow {
    color: rgba(255, 255, 255, 0.78);
    font-size: .68rem;
    font-weight: 760;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bento-card__title {
    max-width: 20rem;
    font-size: clamp(1.25rem, 2.25vw, 1.9rem);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.04;
}

.bento-card__desc {
    display: -webkit-box;
    overflow: hidden;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: .92rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bento-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-top: .4rem;
    padding: .5rem .85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: .78rem;
    font-weight: 760;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover .bento-card__cta,
.bento-card:focus-visible .bento-card__cta {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
}

.bento-grid--many {
    --bento-row: 195px;
}

.bento-grid--many .bento-card__title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* Summary text on hero-sized tiles */
.bento-card:not(.bento-tall):not(.bento-wide):not(.bento-full) .bento-card__desc {
    display: none;
}

@media (min-width: 1400px) {
    .bento-grid {
        --bento-row: 260px;
        --bento-gap: 1.5rem;
    }

    .bento-grid--many {
        --bento-row: 215px;
    }
}

@media (max-width: 991.98px) {
    .explore-detail-hero--home {
        min-height: auto;
    }

    .explore-detail-hero--home .explore-detail-hero__inner {
        grid-template-columns: 1fr;
    }

    .explore-detail-hero__path-card {
        justify-self: stretch;
        width: 100%;
    }

    .explore-root-bento__grid {
        grid-template-columns: 1fr;
    }

    .explore-root-card {
        grid-column: 1 / -1;
        min-height: 20rem;
    }

    .explore-root-card--equipment {
        min-height: 20rem;
    }

    .explore-root-story {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento-grid {
        --bento-row: 210px;
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 575.98px) {
    .explore-page .container {
        width: 100%;
        max-width: 100%;
        padding-inline: 1rem;
    }

    .explore-detail-hero--home .explore-detail-hero__inner {
        width: 100%;
        max-width: 100%;
        padding-inline: 1rem;
    }

    .explore-detail-hero--home .explore-detail-hero__content,
    .explore-detail-hero__path-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .explore-detail-hero--home .explore-detail-hero__content,
    .explore-detail-hero__actions,
    .explore-detail-hero__stats {
        width: calc(100vw - 2.5rem) !important;
        max-width: calc(100vw - 2.5rem) !important;
    }

    .explore-detail-hero__path-card {
        display: none;
    }

    .explore-detail-hero__description {
        max-width: min(100%, 20rem);
        margin-inline: auto;
        text-wrap: pretty;
        overflow-wrap: break-word;
    }

    .explore-detail-hero__eyebrow {
        max-width: min(100%, 18rem);
        margin-inline: auto;
        text-wrap: balance;
        overflow-wrap: break-word;
    }

    .explore-root-bento {
        padding-inline: .75rem;
    }

    .explore-detail-hero__path-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-detail-hero__stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .explore-detail-hero__stats a {
        border-right: 0;
        padding-right: 0;
    }

    .explore-root-bento__grid {
        grid-template-columns: 1fr;
    }

    .explore-root-card {
        min-height: 24rem;
    }

    .explore-root-card__content {
        align-self: start;
        max-width: none;
        padding: 1.2rem 1.15rem .5rem;
    }

    .explore-root-card__title {
        font-size: 2rem;
    }

    .explore-root-card--equipment .explore-root-card__title {
        white-space: normal;
    }

    .explore-root-card__path-panel {
        margin: 0 .75rem .75rem;
        padding: .75rem;
    }

    .explore-root-card__browse {
        width: auto;
        max-width: min(100%, 13.5rem);
        min-width: 0;
        justify-self: end;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: .35rem;
        font-size: .86rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
        text-align: right;
    }

    .explore-root-card__children {
        grid-template-columns: 1fr;
    }

    .explore-root-card--equipment {
        min-height: 24rem;
    }

    .explore-root-card__scrim {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .36) 35%, rgba(0, 0, 0, .88) 100%),
            radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--root-accent) 28%, transparent), transparent 14rem);
    }

    .explore-root-story {
        grid-template-columns: 1fr;
    }

    .explore-root-story__card {
        min-height: 13.75rem;
    }

    .explore-root-story__glass {
        min-height: 100%;
    }

    .explore-child-group__header,
    .explore-child-group__empty {
        align-items: stretch;
        flex-direction: column;
    }

    .explore-detail-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .explore-detail-hero__action {
        width: 100%;
        max-width: 100%;
    }

    .explore-child-group__action {
        width: 100%;
    }

    .bento-grid {
        --bento-row: 200px;
        grid-template-columns: 1fr;
    }

    .bento-tall,
    .bento-wide,
    .bento-full {
        grid-column: span 1;
        grid-row: span 1;
        min-height: var(--bento-row);
    }

    .bento-grid--trio > .bento-card:nth-child(1),
    .bento-grid--trio > .bento-card:nth-child(2),
    .bento-grid--trio > .bento-card:nth-child(3),
    .bento-grid--count-3 > .bento-card,
    .bento-grid--count-4 > .bento-card,
    .bento-grid--count-5 > .bento-card,
    .bento-grid--count-6 > .bento-card,
    .bento-grid--count-7 > .bento-card,
    .bento-grid--count-8 > .bento-card {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-grid--trio,
    .bento-grid--count-3,
    .bento-grid--count-4,
    .bento-grid--count-5,
    .bento-grid--count-6,
    .bento-grid--count-7,
    .bento-grid--count-8 {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bento-card,
    .bento-card__img,
    .bento-card__cta {
        transition: none;
    }

    .bento-card:hover,
    .bento-card:focus-visible {
        transform: none;
    }

    .bento-card:hover .bento-card__img,
    .bento-card:focus-visible .bento-card__img {
        transform: none;
    }
}

/* ============================================================================
   CATEGORY CARDS
   ============================================================================ */

.category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.category-card .card-img-top {
    transition: transform 0.3s ease;
}

.category-card:hover .card-img-top {
    transform: scale(1.05);
}

.category-card-image {
    overflow: hidden;
}

/* Mini category cards for subcategories */
.category-card-mini {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--bs-primary) !important;
}


/* ============================================================================
   EXPLORE ICON CIRCLES
   ============================================================================ */

.explore-icon-lg {
    width: 80px;
    height: 80px;
}

.explore-icon-md {
    width: 60px;
    height: 60px;
}

.explore-icon-sm {
    width: 48px;
    height: 48px;
}

/* ============================================================================
   CATEGORY DETAIL HERO (Detail Page - Apple-like)
   ============================================================================ */

.category-detail-hero {
    position: relative;
    min-height: 350px;
}

.category-detail-hero-content {
    min-height: 350px;
}

/* Tablet: Slightly smaller */
@media (max-width: 991.98px) {
    .category-detail-hero,
    .category-detail-hero-content {
        min-height: 300px;
    }
}

/* Phone: Compact hero */
@media (max-width: 576px) {
    .category-detail-hero,
    .category-detail-hero-content {
        min-height: 220px;
    }

    .category-detail-hero h1 {
        font-size: 1.75rem;
    }

    .category-detail-hero .lead {
        font-size: 0.95rem;
    }

    .category-detail-hero .explore-icon-lg {
        width: 56px;
        height: 56px;
    }

    .category-detail-hero .explore-icon-lg i {
        font-size: 1.25rem;
    }
}

/* Legacy class for backward compatibility */
.category-hero {
    position: relative;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */

.breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb-item {
    white-space: nowrap;
}

/* Truncate long breadcrumb items on mobile */
@media (max-width: 576px) {
    .breadcrumb-item {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ============================================================================
   PAGE SECTIONS
   ============================================================================ */

.page-section {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .page-section {
        padding: 2rem 0;
    }
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 576px) {
    .explore-page__title {
        font-size: 2rem;
    }
    
    .category-hero h1 {
        font-size: 1.75rem;
    }
    
    .category-card .card-body {
        padding: 1rem;
    }
    
    .category-card-mini .card-body {
        padding: 0.75rem;
    }
}

/* ============================================================================
   EMPTY STATES
   ============================================================================ */

.empty-state-icon {
    opacity: 0.5;
}

/* ============================================================================
   TOPIC CHIPS
   ============================================================================ */

.btn-outline-secondary.rounded-pill:hover {
    background-color: var(--bs-secondary-bg);
}

/* ============================================================================
   ARTICLE CARDS GRID
   ============================================================================ */

.row-cols-1 > .col,
.row-cols-md-2 > .col,
.row-cols-lg-3 > .col {
    display: flex;
}

.row-cols-1 > .col > .card,
.row-cols-md-2 > .col > .card,
.row-cols-lg-3 > .col > .card {
    width: 100%;
}
