/* Landing Page Styles */

/* ═══════════════════════════════════════════════════════════════════════════
   BACKGROUND CONTINUITY - Respects light/dark mode
   ═══════════════════════════════════════════════════════════════════════════ */

/* Apply theme-aware background to entire landing page - respects light/dark mode */
.landing-page-content {
    background-color: var(--bs-body-bg) !important;
    min-height: 100vh;
}

.landing-fallback-hero-copy {
    max-width: 600px;
}

.landing-fallback-hero-glow {
    background: radial-gradient(circle at 50% 50%, var(--bs-primary), transparent 70%);
    filter: blur(100px);
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REEFSCALES FACETED DISCOVERY HOMEPAGE
   Scoped to .discovery-home-* to avoid affecting CMS landing blocks.
   ═══════════════════════════════════════════════════════════════════════════ */

.discovery-home-page {
    background:
        radial-gradient(circle at 8% -8%, rgba(var(--bs-primary-rgb), 0.12), transparent 26rem),
        radial-gradient(circle at 92% 4%, rgba(20, 184, 166, 0.12), transparent 24rem),
        linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.025) 0%, var(--bs-body-bg) 22rem, var(--bs-tertiary-bg) 100%);
    color: var(--bs-body-color);
}

.discovery-home-hero {
    position: relative;
    padding-top: 1.35rem !important;
    padding-bottom: 1.1rem !important;
}

.discovery-home-hero-shell,
.discovery-home-panel,
.discovery-home-stream-head,
.discovery-home-empty,
.discovery-home-intent-panel,
.discovery-home-footer-module {
    background: rgba(var(--bs-body-bg-rgb), 0.94);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.055);
}

.discovery-home-hero-shell {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.discovery-home-title {
    font-size: 1.75rem;
    letter-spacing: 0;
    line-height: 1.12;
    max-width: 46rem;
}

.discovery-home-hero-center {
    max-width: 72rem;
}

.discovery-home-eyebrow,
.discovery-home-panel-label,
.discovery-home-kind {
    color: var(--bs-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.discovery-home-search .input-group {
    border-radius: 999px;
    box-shadow: none;
    overflow: hidden;
}

.discovery-home-search-suite {
    background: rgba(var(--bs-body-bg-rgb), 0.94);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 1.15rem 3rem rgba(15, 23, 42, 0.1);
    margin-inline: auto;
    max-width: 48rem;
    padding: 0.45rem;
    text-align: left;
}

.discovery-home-search-row {
    align-items: stretch;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: auto auto minmax(0, 1fr);
}

.discovery-home-search {
    min-width: 0;
}

.discovery-home-search .form-control,
.discovery-home-search .input-group-text,
.discovery-home-search .btn {
    border: 0;
    min-height: 52px;
}

.discovery-home-search .form-control,
.discovery-home-search .input-group-text {
    background: var(--bs-body-bg);
}

.discovery-home-chip,
.discovery-home-lens,
.discovery-home-sort-link,
.discovery-home-sort-choice {
    align-items: center;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    display: inline-flex;
    font-weight: 700;
    min-height: 40px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.discovery-home-chip {
    background: var(--bs-tertiary-bg);
    border-radius: 999px;
    font-size: 0.86rem;
    padding: 0.45rem 0.8rem;
}

.discovery-home-discovery-tabs {
    align-items: center;
    background: rgba(var(--bs-body-bg-rgb), 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    box-shadow: none;
    display: inline-flex;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.25rem;
}

.discovery-home-mode-toggle {
    background: var(--bs-tertiary-bg);
    border-radius: 999px;
    flex: 0 0 auto;
    padding: 0.18rem;
}

.discovery-home-mode,
.discovery-home-filter-chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    text-decoration: none;
}

.discovery-home-mode {
    color: var(--bs-body-color);
    font-size: 0.82rem;
    min-height: 32px;
    padding: 0.3rem 0.8rem;
}

.discovery-home-mode.is-active {
    background: var(--bs-body-bg);
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.08);
    color: var(--bs-primary);
}

.discovery-home-segments {
    grid-area: segments;
    justify-self: center;
    min-width: 0;
}

.discovery-home-segment-scroll {
    justify-content: center;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
}

.discovery-home-segment-scroll::-webkit-scrollbar {
    display: none;
}

.discovery-home-control-menu {
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.12);
    min-width: 12rem;
}

.discovery-home-toolbar {
    align-items: center;
    background: transparent;
    display: grid;
    gap: 1rem;
    grid-template-areas: "filters segments sort";
    grid-template-columns: minmax(9rem, 1fr) auto minmax(9rem, 1fr);
    padding: 0;
}

.discovery-home-toolbar-left {
    display: flex;
    grid-area: filters;
    justify-content: flex-start;
    min-width: 0;
}

.discovery-home-toolbar-sort {
    grid-area: sort;
    justify-self: end;
}

.discovery-home-toolbar-sort .discovery-home-tool {
    justify-content: center;
    min-width: 9.5rem;
}

.discovery-home-tool {
    align-items: center;
    background: rgba(var(--bs-tertiary-bg-rgb), 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: var(--bs-body-color);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.84rem;
    font-weight: 750;
    min-height: 38px;
    padding: 0.4rem 0.82rem;
    text-decoration: none;
}

button.discovery-home-tool {
    cursor: pointer;
}

label.discovery-home-tool {
    cursor: pointer;
}

.discovery-home-tool:hover,
.discovery-home-tool:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.45);
    color: var(--bs-primary);
}

.discovery-home-tool-count {
    align-items: center;
    background: var(--bs-primary);
    border-radius: 999px;
    color: var(--bs-white);
    display: inline-flex;
    font-size: 0.72rem;
    height: 1.25rem;
    justify-content: center;
    margin-left: 0.45rem;
    min-width: 1.25rem;
    padding: 0 0.3rem;
}

.discovery-home-filter-toggle-button {
    justify-content: center;
    min-width: 8.75rem;
}

.discovery-home-sort-label {
    color: var(--bs-body-color);
    font-size: 0.86rem;
    font-weight: 800;
}

.discovery-home-filter-chip {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.22);
    color: var(--bs-primary);
    font-size: 0.82rem;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
}

.discovery-home-selected-filters {
    border-top: 0;
    margin-top: 0;
    padding: 0;
}

.discovery-home-filter-chip.is-muted {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-secondary-color);
}

.discovery-home-filter-chip:hover,
.discovery-home-filter-chip:focus {
    background: rgba(var(--bs-primary-rgb), 0.16);
    color: var(--bs-primary);
}

.discovery-home-chip:hover,
.discovery-home-chip:focus,
.discovery-home-mode:hover,
.discovery-home-mode:focus,
.discovery-home-lens:hover,
.discovery-home-lens:focus,
.discovery-home-sort-link:hover,
.discovery-home-sort-link:focus,
.discovery-home-sort-choice:hover,
.discovery-home-sort-choice:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
    color: var(--bs-primary);
    transform: translateY(-1px);
}

.discovery-home-lenses {
    background: rgba(var(--bs-body-bg-rgb), 0.92);
    border-bottom: 1px solid var(--bs-border-color);
    border-top: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
    z-index: 20;
}

.discovery-home-lens-scroll {
    overflow-x: auto;
    padding: 0.65rem 0;
    scrollbar-width: none;
}

.discovery-home-lens-scroll::-webkit-scrollbar {
    display: none;
}

.discovery-home-lens {
    background: rgba(var(--bs-tertiary-bg-rgb), 0.72);
    border-color: transparent;
    border-radius: 999px;
    box-shadow: none;
    flex: 0 0 auto;
    font-size: 0.84rem;
    justify-content: center;
    min-height: 34px;
    min-width: 0;
    padding: 0.36rem 0.9rem;
}

.discovery-home-lens.is-active,
.discovery-home-sort-link.is-active,
.discovery-home-sort-choice.is-active {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.34);
    color: var(--bs-primary);
    outline: 0;
}

.discovery-home-mobile-tools {
    background: rgba(var(--bs-body-bg-rgb), 0.92);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.65rem 0;
    position: sticky;
    top: 3.5rem;
    z-index: 19;
}

.discovery-home-body {
    min-height: 60vh;
    padding-top: 0 !important;
}

.discovery-home-body > .container-xxl {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.discovery-home-toolbar,
.discovery-home-selected-filters,
.discovery-home-stream-head,
.discovery-home-stream,
.discovery-home-load-more,
.discovery-home-empty,
.discovery-home-footer-module {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    width: min(1280px, calc(100vw - 96px));
}

.discovery-home-feed-layout {
    align-items: start;
    display: block;
    gap: 28px;
    grid-template-columns: 212px minmax(0, 1280px);
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    width: min(1280px, calc(100vw - 96px));
}

.discovery-home-filter-toggle-button {
    display: none;
}

.discovery-home-filter-toggle-hide {
    display: none;
}

.discovery-home-feed-main {
    grid-area: main;
    min-width: 0;
}

.discovery-home-feed-layout > .discovery-home-toolbar {
    grid-area: toolbar;
    max-width: 100%;
    width: 100%;
}

.discovery-home-feed-main .discovery-home-toolbar,
.discovery-home-feed-main .discovery-home-stream,
.discovery-home-feed-main .discovery-home-load-more,
.discovery-home-feed-main .discovery-home-empty {
    max-width: 100%;
    width: 100%;
}

.discovery-home-filter-rail {
    display: none;
    grid-area: filters;
    min-width: 0;
}

.discovery-home-filter-rail-inner {
    position: sticky;
    top: 5.5rem;
}

.discovery-home-filter-rail-head {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    min-height: 38px;
    padding-bottom: 0.85rem;
}

.discovery-home-filter-rail-title {
    font-size: 0.92rem;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.discovery-home-clear {
    color: var(--bs-body-color);
    font-size: 0.78rem;
    font-weight: 720;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.discovery-home-clear:hover,
.discovery-home-clear:focus {
    color: var(--bs-primary);
}

.discovery-home-filter-rail .discovery-home-panel-label {
    color: var(--bs-body-color);
    font-size: 0.8rem;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: none;
}

.discovery-home-filter-rail .discovery-home-facet-group {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
}

.discovery-home-filter-rail .discovery-home-facet {
    border-radius: 0.7rem;
    font-size: 0.84rem;
    min-height: 34px;
    padding: 0.36rem 0.45rem;
}

.discovery-home-grid-rule {
    grid-area: rule;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    margin-bottom: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: auto;
}

@media (min-width: 1600px) {
    .discovery-home-feed-layout {
        display: grid;
        justify-content: center;
        max-width: 1520px;
        width: min(1520px, calc(100vw - 96px));
    }

    .discovery-home-filter-toggle-button {
        display: inline-flex;
    }

    .discovery-home-filter-toggle:checked + .discovery-home-feed-layout {
        grid-template-areas:
            "toolbar toolbar"
            "rule rule"
            "filters main";
        grid-template-columns: 212px minmax(0, 1280px);
    }

    .discovery-home-filter-toggle:not(:checked) + .discovery-home-feed-layout {
        grid-template-areas:
            "toolbar toolbar"
            "rule rule"
            "main main";
        grid-template-columns: 212px minmax(0, 1280px);
    }

    .discovery-home-filter-rail,
    .discovery-home-feed-main {
        padding-top: 28px;
    }

    .discovery-home-filter-rail {
        border-right: 1px solid rgba(148, 163, 184, 0.28);
        display: block;
        padding-right: 1.25rem;
    }

    .discovery-home-filter-toggle:not(:checked) + .discovery-home-feed-layout .discovery-home-filter-rail {
        display: none;
    }

    .discovery-home-filter-toggle:checked + .discovery-home-feed-layout .discovery-home-filter-toggle-show,
    .discovery-home-filter-toggle:not(:checked) + .discovery-home-feed-layout .discovery-home-filter-toggle-hide {
        display: none;
    }

    .discovery-home-filter-toggle:checked + .discovery-home-feed-layout .discovery-home-filter-toggle-hide,
    .discovery-home-filter-toggle:not(:checked) + .discovery-home-feed-layout .discovery-home-filter-toggle-show {
        display: inline;
    }

    .discovery-home-filter-button {
        display: none;
    }
}

.discovery-home-section-title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.discovery-home-facet-group {
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.discovery-home-facet-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.discovery-home-facet-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    list-style: none;
    margin-bottom: 0.5rem;
    min-height: 34px;
    user-select: none;
}

.discovery-home-facet-summary::-webkit-details-marker {
    display: none;
}

.discovery-home-facet-summary i {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    transition: transform 0.18s ease, color 0.18s ease;
}

.discovery-home-facet-summary:hover i,
.discovery-home-facet-summary:focus i {
    color: var(--bs-primary);
}

.discovery-home-facet-group:not([open]) .discovery-home-facet-summary {
    margin-bottom: 0;
}

.discovery-home-facet-group:not([open]) .discovery-home-facet-summary i {
    transform: rotate(-90deg);
}

.discovery-home-facet-options {
    display: grid;
    gap: 0.12rem;
}

.discovery-home-facet {
    align-items: center;
    border-radius: 0.85rem;
    color: var(--bs-body-color);
    display: flex;
    font-size: 0.92rem;
    font-weight: 650;
    justify-content: space-between;
    min-height: 38px;
    padding: 0.45rem 0.6rem;
    text-decoration: none;
}

.discovery-home-facet:hover,
.discovery-home-facet:focus,
.discovery-home-facet.is-active {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.discovery-home-count {
    background: var(--bs-tertiary-bg);
    border-radius: 999px;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    min-width: 1.75rem;
    padding: 0.12rem 0.45rem;
    text-align: center;
}

.discovery-home-stream-head {
    background: transparent;
    border: 0;
    display: block;
    padding: 0.35rem 0 0.9rem !important;
    box-shadow: none;
}

.discovery-home-stream-head .discovery-home-eyebrow {
    margin-bottom: 0.35rem !important;
}

.discovery-home-stream-head h2 {
    font-size: 1.35rem;
    letter-spacing: 0;
    line-height: 1.18;
    max-width: 62rem;
}

.discovery-home-column-control-row {
    align-items: center;
}

.discovery-home-view-toggle {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    padding: 0.2rem;
}

.discovery-home-view-option {
    align-items: center;
    border-radius: 999px;
    color: var(--bs-body-color);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    text-decoration: none;
}

.discovery-home-view-option:hover,
.discovery-home-view-option:focus,
.discovery-home-view-option.is-active {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.discovery-home-summary-row {
    align-items: center;
    border-radius: 0.75rem;
    color: var(--bs-body-color);
    display: flex;
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 0.55rem 0.35rem;
    text-decoration: none;
}

.discovery-home-summary-row:hover,
.discovery-home-summary-row:focus {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
}

.discovery-home-summary-row i {
    color: var(--bs-secondary-color);
    width: 1.1rem;
}

.discovery-home-summary-row strong {
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
}

.discovery-home-sort {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 18rem;
}

.discovery-home-sort-link,
.discovery-home-sort-choice {
    background: var(--bs-body-bg);
    border-radius: 999px;
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
}

.discovery-home-sort-choice {
    justify-content: center;
}

.discovery-home-stream-item {
    display: flex;
    flex-direction: column;
}

.discovery-home-stream {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.discovery-home-stream > .col,
.discovery-home-stream > [class*="col"] {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: auto;
}

.discovery-home-stream-item .content-card,
.discovery-home-footer-module .content-card {
    margin: 0;
}

.discovery-home-stream .content-card {
    height: 100%;
}

.discovery-home-stream .content-card-browse,
.discovery-home-stream .discovery-home-seller-card {
    background: rgba(var(--bs-body-bg-rgb), 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.045),
        0 1.25rem 3.5rem rgba(15, 23, 42, 0.095);
    display: flex;
    flex-direction: column;
    height: 480px;
    min-height: 480px;
    overflow: hidden;
    padding: 0;
    transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
}

.discovery-home-stream .content-card-browse-image,
.discovery-home-stream .discovery-home-seller-card-image {
    aspect-ratio: auto;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(20, 184, 166, 0.14));
    border: 0;
    border-radius: 16px 16px 0 0;
    flex: 0 0 290px;
    min-height: 0;
    overflow: hidden;
}

.discovery-home-stream .content-card-browse-image::after,
.discovery-home-stream .discovery-home-seller-card-image::after {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.24) 0%, rgba(2, 6, 23, 0.02) 38%, rgba(2, 6, 23, 0.34) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.discovery-home-stream .content-card-browse:hover,
.discovery-home-stream .discovery-home-seller-card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.22);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.07),
        0 1.75rem 4.5rem rgba(15, 23, 42, 0.14);
    transform: translateY(-3px);
}

.discovery-home-stream .content-card-browse-pill {
    background: rgba(var(--bs-primary-rgb), 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 0.5rem 1.2rem rgba(2, 6, 23, 0.2);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    left: 1.15rem;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.7rem;
    top: 1.15rem;
    text-transform: uppercase;
    z-index: 2;
}

.discovery-home-stream .content-card-browse-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 16px 18px 18px;
}

.discovery-home-stream .content-card-browse-title {
    color: var(--bs-emphasis-color);
    flex: 1 1 auto;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.18;
}

.discovery-home-stream .content-card-browse-title a {
    color: inherit;
}

.discovery-home-stream .content-card-browse-excerpt {
    color: var(--bs-secondary-color);
    font-size: 0.88rem;
    line-height: 1.42;
    margin-top: 0.48rem;
    min-height: 2.5rem;
}

.discovery-home-stream .content-card-browse-save {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: color-mix(in srgb, var(--bs-emphasis-color) 82%, transparent);
    font-size: 1.08rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    width: 1.5rem;
}

.discovery-home-stream .content-card-browse-title-row {
    gap: 10px;
}

.discovery-home-stream .content-card-browse-tags {
    display: none;
}

.discovery-home-stream .content-card-browse-meta-line {
    align-items: center;
    border-top: 0;
    color: var(--bs-secondary-color);
    flex-wrap: nowrap;
    font-size: 0.77rem;
    gap: 0.65rem;
    margin-top: 0.58rem;
    overflow: hidden;
    padding-top: 0;
    white-space: nowrap;
}

.discovery-home-stream .content-card-browse-meta-line span {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discovery-home-stream [data-content-type="listing"] .content-card-browse-tags span {
    background: rgba(16, 185, 129, 0.1);
}

.discovery-home-stream [data-content-type="seller"] .content-card-browse-tags span {
    background: rgba(139, 92, 246, 0.11);
}

.discovery-home-stream [data-content-type="event"] .content-card-browse-tags span {
    background: rgba(249, 115, 22, 0.12);
}

.discovery-home-stream [data-content-type="build"] .content-card-browse-tags span {
    background: rgba(8, 145, 178, 0.11);
}

.discovery-home-stream [data-content-type="conversation"] .content-card-browse-tags span {
    background: rgba(79, 70, 229, 0.1);
}

.discovery-home-stream .content-card-browse-img--illustration {
    background: rgba(20, 184, 166, 0.08);
    object-fit: cover;
    padding: 0;
}

.discovery-home-stream .discovery-home-seller-card-image {
    background:
        radial-gradient(circle at 24% 32%, rgba(20, 184, 166, 0.42), transparent 10rem),
        radial-gradient(circle at 78% 18%, rgba(var(--bs-primary-rgb), 0.4), transparent 12rem),
        linear-gradient(135deg, #050916 0%, #081b2f 46%, #073f4a 100%);
}

.discovery-home-stream .discovery-home-seller-card-image::after {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.04) 36%, rgba(2, 6, 23, 0.48) 100%);
}

.discovery-home-stream [data-content-type="listing"] .content-card-browse-pill,
.discovery-home-stream [data-content-type="listing"] .content-card-browse-media-chip--price {
    background: #12a36f;
}

.discovery-home-stream [data-content-type="seller"] .content-card-browse-pill {
    background: #8b3fd1;
}

.discovery-home-stream [data-content-type="event"] .content-card-browse-pill {
    background: #f97316;
}

.discovery-home-stream [data-content-type="build"] .content-card-browse-pill {
    background: #0891b2;
}

.discovery-home-stream [data-content-type="conversation"] .content-card-browse-pill {
    background: #4f46e5;
}

.discovery-home-stream .content-card-browse-media-meta,
.discovery-home-stream .content-card-browse-date-badge {
    z-index: 2;
}

.discovery-home-stream .content-card-browse-media-chip {
    backdrop-filter: blur(10px);
    box-shadow: 0 0.65rem 1.2rem rgba(2, 6, 23, 0.18);
    font-size: 0.78rem;
    padding: 0.48rem 0.68rem;
}

.discovery-home-stream .content-card-browse-date-badge {
    border-radius: 0.8rem;
}

.discovery-home-seller-logo {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 1.15rem;
    box-shadow: 0 0.9rem 2rem rgba(2, 6, 23, 0.22);
    color: var(--bs-primary);
    display: inline-flex;
    font-size: 1.55rem;
    font-weight: 850;
    height: 4.75rem;
    justify-content: center;
    left: 1.15rem;
    overflow: hidden;
    position: absolute;
    bottom: 1.1rem;
    width: 4.75rem;
    z-index: 2;
}

.discovery-home-seller-logo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.discovery-home-seller-verified {
    color: var(--bs-primary);
    display: inline-flex;
    font-size: 0.82em;
    margin-left: 0.28rem;
    vertical-align: 0.04em;
}

.discovery-home-seller-trust-line {
    color: color-mix(in srgb, var(--bs-body-color) 68%, transparent);
    font-weight: 680;
}

.discovery-home-stream .discovery-home-seller-card-icon {
    opacity: 0.55;
    color: #4a5561;
}

@media (max-width: 575px) {
    .discovery-home-title {
        font-size: 1.45rem;
    }

    .discovery-home-stream .content-card-browse-image,
    .discovery-home-stream .discovery-home-seller-card-image {
        border-radius: 16px 16px 0 0;
        flex-basis: 290px;
    }

    .discovery-home-stream .content-card-browse,
    .discovery-home-stream .discovery-home-seller-card {
        height: 480px;
        min-height: 480px;
    }
}

@media (max-width: 1199px) {
    .discovery-home-toolbar,
    .discovery-home-selected-filters,
    .discovery-home-stream-head,
    .discovery-home-stream,
    .discovery-home-load-more,
    .discovery-home-empty,
    .discovery-home-footer-module {
        width: min(1120px, calc(100vw - 48px));
    }

    .discovery-home-feed-layout {
        width: min(1120px, calc(100vw - 48px));
    }

    .discovery-home-stream {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .discovery-home-toolbar,
    .discovery-home-selected-filters,
    .discovery-home-stream-head,
    .discovery-home-stream,
    .discovery-home-load-more,
    .discovery-home-empty,
    .discovery-home-footer-module {
        width: min(420px, calc(100vw - 32px));
    }

    .discovery-home-feed-layout {
        width: min(420px, calc(100vw - 32px));
    }

    .discovery-home-feed-main .discovery-home-stream {
        gap: 22px;
        grid-template-columns: minmax(0, 1fr);
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        max-width: none;
        width: 100vw;
    }

    .discovery-home-stream .content-card-browse,
    .discovery-home-stream .discovery-home-seller-card {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
    }

    .discovery-home-stream .content-card-browse-image,
    .discovery-home-stream .discovery-home-seller-card-image {
        border-radius: 0;
    }

    .discovery-home-toolbar {
        align-items: center;
        grid-template-areas:
            "filters sort";
        grid-template-columns: minmax(0, 1fr) auto;
        justify-items: stretch;
        row-gap: 0.75rem;
    }

    .discovery-home-toolbar-left,
    .discovery-home-toolbar-sort {
        justify-self: stretch;
    }

    .discovery-home-toolbar-sort {
        display: flex;
        justify-content: flex-end;
    }

    .discovery-home-toolbar-left,
    .discovery-home-segments {
        width: 100%;
    }

    .discovery-home-segments {
        display: none;
    }

    .discovery-home-toolbar-sort .discovery-home-tool {
        min-width: 0;
    }

    .discovery-home-segment-scroll {
        justify-content: flex-start;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 0.1rem;
    }
}

.discovery-home-break .content-card-title,
.discovery-home-break .content-card-compact,
.discovery-home-panel .content-card-title {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.discovery-home-break .content-card-title,
.discovery-home-break .content-card-compact,
.discovery-home-panel .content-card-title {
    padding: 0;
}

.discovery-home-time {
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    font-weight: 650;
}

.discovery-home-break {
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb), 0.12), transparent 16rem),
        var(--bs-body-bg);
}

.discovery-home-mini-link {
    color: var(--bs-primary);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.discovery-home-mini-link:hover,
.discovery-home-mini-link:focus {
    text-decoration: underline;
}

.discovery-home-row-link,
.discovery-home-store-row {
    border: 1px solid transparent;
    border-radius: 0.9rem;
    color: var(--bs-body-color);
    display: block;
    padding: 0.55rem;
    text-decoration: none;
}

.discovery-home-store-row {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto 1fr;
}

.discovery-home-row-link:hover,
.discovery-home-row-link:focus,
.discovery-home-store-row:hover,
.discovery-home-store-row:focus {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-primary);
}

.discovery-home-row-title {
    color: inherit;
    display: block;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.25;
}

.discovery-home-row-meta {
    color: var(--bs-secondary-color);
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.15rem;
}

.discovery-home-store-icon,
.discovery-home-empty-icon {
    align-items: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 0.85rem;
    color: var(--bs-primary);
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.discovery-home-empty-icon {
    font-size: 1.1rem;
    height: 3rem;
    width: 3rem;
}

.discovery-home-load-more .btn {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--bs-primary);
    font-weight: 800;
    padding-inline: 1rem !important;
}

.discovery-home-trustbar {
    background: rgba(var(--bs-body-bg-rgb), 0.94);
    border-top: 1px solid var(--bs-border-color);
}

.discovery-home-trustbar-inner {
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.discovery-home-trust-item {
    align-items: center;
    color: var(--bs-body-color);
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.discovery-home-trust-item i {
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.discovery-home-trust-item strong,
.discovery-home-trust-item small {
    display: block;
    line-height: 1.2;
}

.discovery-home-trust-item strong {
    font-size: 0.82rem;
}

.discovery-home-trust-item small {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
}

.discovery-home-offcanvas {
    --bs-offcanvas-bg: var(--bs-body-bg);
}

@media (max-width: 575px) {
    .discovery-home-title {
        font-size: 1.45rem;
    }

    .discovery-home-hero {
        padding-top: 1.5rem !important;
    }

    .discovery-home-search-suite {
        border-radius: 1.25rem;
        max-width: none;
        padding: 0.5rem;
        width: min(100%, calc(100vw - 32px));
    }

    .discovery-home-search-row {
        grid-template-columns: 1fr 1fr;
    }

    .discovery-home-search {
        grid-column: 1 / -1;
    }

    .discovery-home-search .input-group {
        border-radius: 1rem;
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
    }

    .discovery-home-search .form-control {
        flex: 1 1 auto;
        min-width: 0;
    }

    .discovery-home-search .input-group-text {
        flex: 0 0 3.25rem;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .discovery-home-search .btn {
        border-radius: var(--bs-border-radius-lg) !important;
        flex: 0 0 auto;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .discovery-home-discovery-tabs {
        border-radius: 1.25rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .discovery-home-mode-toggle {
        flex: 0 0 auto;
    }

    .discovery-home-segments {
        max-width: 100%;
    }

    .discovery-home-lens {
        min-height: 36px;
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 991px) {
    .discovery-home-trustbar-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .discovery-home-trustbar-inner {
        grid-template-columns: 1fr;
    }

    .discovery-home-trust-item {
        justify-content: flex-start;
    }
}

/* Ensure parent elements don't interfere */
.site-main:has(.landing-page-content) {
    background-color: var(--bs-body-bg) !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PILLAR SECTION NAVIGATION ARROWS
   Arrows now in same flex row as title, aligned to baseline
   ═══════════════════════════════════════════════════════════════════════════ */

.pillar-section-arrows {
    /* Arrows are now in baseline-aligned row with title - no margin needed */
    position: relative;
}

.pillar-section-arrows button {
    /* Ensure consistent arrow button styling across all pillar sections */
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pillar-section-arrows button:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .pillar-section-arrows {
        /* On mobile, arrows might need slight adjustment */
        margin-left: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY & BUTTON SIZE SYSTEM (Landing Page)
   Single source of truth for consistent text and button sizing
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section Title Sizing - Applied to Wiki, Events, Discussions, Tank Builds */
.rs-section-title {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: var(--bs-heading-color, var(--bs-body-color));
}

/* Wiki gets slightly larger as primary pillar */
.rs-section-title--primary {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

/* Section Subtitle - Consistent across all sections */
.rs-section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--bs-body-secondary-color);
    margin-bottom: 1.5rem;
}

/* Microcopy / Helper Text */
.rs-text-micro {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--bs-body-secondary-color);
}

/* Responsive Typography */
@media (max-width: 991px) {
    .rs-section-title {
        font-size: 2rem;
    }
    
    .rs-section-title--primary {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    .rs-section-title {
        font-size: 1.75rem;
    }
    
    .rs-section-title--primary {
        font-size: 2rem;
    }
    
    .rs-section-subtitle {
        font-size: 1rem;
    }
}

/* Button Size System - Standardized across landing page */

/* Section Buttons - Standard size for Wiki, Events, Discussions, Tank Builds, Final CTA */
.rs-btn-section {
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
}

.rs-btn-section.btn-primary {
    font-weight: 600;
}

/* Hero Buttons - Larger for primary conversion */
.rs-btn-hero {
    font-size: 1.0625rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

/* Ensure buttons in same group match height */
.rs-btn-section,
.rs-btn-hero {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Button Sizing */
@media (max-width: 767px) {
    .rs-btn-section {
        font-size: 0.8125rem;
        padding: 0.625rem 1.25rem;
        flex: 0 1 auto;  /* Don't grow, allow shrink, auto width */
        white-space: nowrap;  /* Keep button text on one line */
    }
    
    /* Ensure button containers on mobile allow side-by-side layout */
    .d-flex.gap-3 {
        gap: 0.5rem !important;  /* Reduce gap on mobile to fit buttons */
    }
    
    .rs-btn-hero {
        font-size: 1rem;
        padding: 0.8125rem 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   A. PRIMARY WIKI SECTION - VISUAL DOMINANCE (CRITICAL)
   Single continuous module: Header + Content Preview
   Generic naming: works for Reefapedia, Leafapedia, Morphapedia, etc.
   ═══════════════════════════════════════════════════════════════════════════ */

.wiki_spotlight-section {
    /* Significantly more breathing room than any other section */
    padding: 7rem 0 !important;
    margin: 0 !important;
    position: relative;
}

/* Remove inner section background breaks */
.wiki_spotlight-section section {
    background-color: transparent !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Wiki section title - uses standardized primary sizing */
.wiki_spotlight-section h2 {
    color: var(--bs-body-color) !important; /* Force body text color for visibility */
}

/* Ensure all text in wiki section uses body colors for visibility */
.wiki_spotlight-section p,
.wiki_spotlight-section .lead,
.wiki_spotlight-section .text-body-secondary {
    color: var(--bs-body-secondary-color) !important;
}

@media (max-width: 767px) {
    .wiki_spotlight-section {
        padding: 5rem 0 !important;
    }
}

/* Primary wiki CTAs - Enhanced hover effect */
.wiki_spotlight-section .btn-primary {
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3) !important;
}

.wiki_spotlight-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.4) !important;
}

/* Text colors inherit from Bootstrap theme - no overrides needed */

/* Navigation arrows - positioned at viewport edges, centered on cards (EXACT Tank Builds pattern) */
.wiki_spotlight-section .carousel-prev,
.wiki_spotlight-section .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bs-body-bg, #ffffff);
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.125));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}

/* Fade in on section hover */
.wiki_spotlight-section:hover .carousel-prev,
.wiki_spotlight-section:hover .carousel-next {
  opacity: 1;
}

/* Position at left/right edges - visible in viewport */
.wiki_spotlight-section .carousel-prev {
  left: 16px;
}

.wiki_spotlight-section .carousel-next {
  right: 16px;
}

/* Hover state - increased shadow only */
.wiki_spotlight-section .carousel-prev:hover,
.wiki_spotlight-section .carousel-next:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Tablet adjustments - arrows stay at same position */
@media (max-width: 991px) {
  .wiki_spotlight-section .carousel-prev {
    left: 12px;
  }
  
  .wiki_spotlight-section .carousel-next {
    right: 12px;
  }
}

/* Mobile adjustments - hide arrows on mobile, swipe is primary interaction */
@media (max-width: 767px) {
  .wiki_spotlight-section .carousel-prev,
  .wiki_spotlight-section .carousel-next {
    display: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .wiki_spotlight-section .carousel-prev,
  .wiki_spotlight-section .carousel-next {
    background: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, rgba(255, 255, 255, 0.125));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .wiki_spotlight-section .carousel-prev:hover,
  .wiki_spotlight-section .carousel-next:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WIKI DEPTH BLOCKS - Internal Article Groups for Substantiality
   Purpose: Adds internal depth to Wiki section without new top-level sections
   ═══════════════════════════════════════════════════════════════════════════ */

.wiki-depth-blocks {
    padding-top: 3rem;
    margin-top: 4rem !important;
}

.wiki-depth-group {
    padding-bottom: 2rem;
}

.wiki-depth-group:last-child {
    /* No additional styling needed */
}

/* Depth group headers - smaller than main section title */
.wiki-depth-group h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: 0.5rem;
}

.wiki-depth-group p.text-body-secondary {
    font-size: 0.875rem;
    color: var(--bs-body-secondary-color);
    margin-bottom: 1rem;
}

/* Depth block carousels - more compact than main carousel */
.wiki-depth-group .swiper-slide {
    height: auto;
}

.wiki-depth-group .landing-carousel-container {
    padding: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .wiki-depth-blocks {
        margin-top: 3rem !important;
        padding-top: 2rem;
    }
    
    .wiki-depth-group {
        padding-bottom: 1.5rem;
    }
    
    .wiki-depth-group h3 {
        font-size: 1.25rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   B. EVENTS SECTION - CLEARLY SECONDARY
   Single continuous module: Header + Content Preview (same pattern as Wiki)
   ═══════════════════════════════════════════════════════════════════════════ */

.events_spotlight-section {
    /* Increased padding to match Reefapedia spacing standard */
    padding: 7rem 0 !important;
    margin: 0 !important;
    position: relative; /* Positioning context for arrows */
}


/* CRITICAL: Remove ALL background breaks inside Events section */
.events_spotlight-section section,
.events_spotlight-section .bg-body-tertiary,
.events_spotlight-section .bg-light,
.events_spotlight-section .bg-white {
    background-color: transparent !important;
    background: none !important;
}

/* Reset padding on child sections to allow unified header */
.events_spotlight-section section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

/* Events section - uses standardized section sizing */

@media (max-width: 991px) {
    .events_spotlight-section {
        padding: 5rem 0 !important;
    }
}

@media (max-width: 767px) {
    .events_spotlight-section {
        padding: 5rem 0 !important;
    }
}

/* Events section: Hide header arrows */
.events_spotlight-section .pillar-section-arrows {
    display: none !important;
}

/* Events carousel arrows: Uses reusable swiper arrow system */
/* Arrows are defined by .swiper-arrow-prev and .swiper-arrow-next utility classes */

/* Events section: Subtle featured emphasis on first event */
.events_spotlight-section .swiper-slide:first-child .content-card-poster {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
}

.events_spotlight-section .swiper-slide:first-child .content-card-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.15); /* Subtle primary border */
    border-radius: inherit;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Discovery / Pulse Section ("Recent Activity" / "What's New")
   ═══════════════════════════════════════════════════════════════════════════
   
   Purpose: Answer "Is anything happening right now?" - a pulse, hint of activity
   
   Position: Section 4 (below Events, above Discussions)
   Content: Wiki activity + Events ONLY
   
   Visual Priority: Lighter than Wiki, Events, AND Discussions
   - Must be most subtle section
   - Optional feeling, easy to remove
   - Signal, not destination
   
   Key Requirements:
   - Smaller typography than Discussions (h3 @ 1.75rem vs Discussions h2 @ 2rem)
   - Compact vertical list (2-4 items)
   - Text-first, minimal visual noise
   - Theme-aware (no hardcoded colors)
   - Optional muted CTA only
   
   ═══════════════════════════════════════════════════════════════════════════ */

.recent_activity-section {
    padding: 3rem 0 !important;
}

/* Heading - smaller than Discussions (h3 size, not h2) */
.recent_activity-section h2 {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: var(--bs-heading-color) !important;
    margin-bottom: 0.5rem !important;
}

/* Subtitle - muted, factual tone */
.recent_activity-section .text-body-secondary {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* Filter chips - very subtle, almost invisible */
.recent_activity-section .badge {
    background-color: transparent !important;
    border: 1px solid var(--bs-border-color-translucent) !important;
    color: var(--bs-secondary-color) !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    padding: 0.25rem 0.75rem !important;
    opacity: 0.6;
}

.recent_activity-section .badge i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Compact vertical list - text-first, minimal */
.recent_activity-section .pulse-list {
    max-width: 700px;
    margin: 0 auto;
}

.recent_activity-section .pulse-item {
    padding: 1rem 0;
}

.recent_activity-section .pulse-item:last-child {
    /* No additional styling needed */
}

/* Context label - very subtle, small */
.recent_activity-section .pulse-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    opacity: 0.6;
    min-width: 70px;
}

.recent_activity-section .pulse-label i {
    font-size: 0.7rem;
}

/* Title - clean, readable */
.recent_activity-section .pulse-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.recent_activity-section .pulse-title a {
    color: var(--bs-heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent_activity-section .pulse-title a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Optional CTA - link style, very muted */
.recent_activity-section .pulse-cta {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.recent_activity-section .pulse-cta:hover {
    opacity: 1;
    color: var(--bs-primary);
}

.recent_activity-section .pulse-cta i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.recent_activity-section .pulse-cta:hover i {
    transform: translateX(3px);
}

/* Empty state - calm, intentional */
.recent_activity-section .pulse-empty {
    text-align: center;
    padding: 2rem 1rem;
    opacity: 0.7;
}

/* Responsive - maintain readability on mobile */
@media (max-width: 768px) {
    .recent_activity-section {
        padding: 2rem 0 !important;
    }
    
    .recent_activity-section h2 {
        font-size: 1.5rem !important;
    }
    
    .recent_activity-section .pulse-label {
        min-width: 60px;
        font-size: 0.7rem;
    }
    
    .recent_activity-section .pulse-title {
        font-size: 0.9375rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   D. COMMUNITY/BUILDS - DE-EMPHASIZE FURTHER
   ═══════════════════════════════════════════════════════════════════════════ */

/* ❌ REMOVED: Old padding rule - now uses unified 7rem standard below (line ~1007) */

/* Reduce visual intensity of community/builds cards */
.community_builds-section .card,
.community_builds-section .grid-card {
    opacity: 0.92;
    max-height: 280px; /* Reduce height by ~20% */
}

.community_builds-section .card:hover,
.community_builds-section .grid-card:hover {
    opacity: 1;
}

/* Add darker overlay to imagery if present */
.community_builds-section .card-img,
.community_builds-section [style*="background-image"] {
    position: relative;
}

.community_builds-section .card-img::after,
.community_builds-section [style*="background-image"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* Text colors are now handled by Bootstrap theme system automatically */
/* No forced light/dark colors - respects light/dark mode naturally */

/* Trust line and badges */
.landing-page-content .badge {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION & BLOCK - Full-bleed, no padding on wrapper
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero wrapper must have no padding - full bleed to edges */
.hero-section {
    padding: 0 !important;
    margin: 0 !important;
}

.hero-block {
    display: flex;
    align-items: center;
    min-height: 65vh !important; /* Reduced from default ~80-90vh */
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Tighter spacing between hero elements */
.hero-block h1 {
    margin-bottom: 1rem !important;
}

.hero-block p {
    margin-bottom: 1.5rem !important;
}

.hero-block .btn-group {
    margin-bottom: 1.25rem !important;
}

@media (max-width: 767px) {
    .hero-block {
        min-height: 60vh !important;
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .hero-block h1 {
        font-size: 2.25rem !important;
    }
}

.hero-overlay-gradient {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

/* ═══════════════════════════════════════════════════════════════════════════
   E. HERO → WIKI TRANSITION - SMOOTH HAND-OFF
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reduce visual drop between hero and wiki section */
.hero-block + * {
    margin-top: -2rem !important; /* Pull wiki section up slightly */
}

/* Gradient continuity from hero to wiki section - theme-aware */
.wiki_spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        rgba(var(--bs-border-color-translucent), 0.3) 0%,
        transparent 100%
    );
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   F. FINAL CTA ("Join {Brand}") - SUBORDINATE TO HERO
   Generic: "Join Reefapedia", "Join Leafapedia", etc. comes from CMS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Final CTA old styles removed - new styles are below in line 589+ */

@media (max-width: 767px) {
    .cta_join-section h1 {
        font-size: 2rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD SPACING & SIZING
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure all cards have consistent max width */
.landing-page-content .card {
    max-width: 100%;
}

/* Cards in carousels should have fixed width for consistency */
.landing-page-content .swiper-slide .card {
    width: 100%;
    height: 100%;
}

.grid-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 767px) {
    .grid-card {
        min-height: 220px !important;
    }
}

/* Article and event cards should not stretch beyond comfortable reading width */
.landing-page-content .article-card,
.landing-page-content .event-card {
    max-width: 380px;
}

/* In carousels, enforce consistent card dimensions */
.landing-carousel-container .article-card,
.landing-carousel-container .event-card,
.poster-carousel-swiper .article-card,
.poster-carousel-swiper .event-card {
    width: 320px;
    max-width: 320px;
}

@media (max-width: 575px) {
    .landing-carousel-container .article-card,
    .landing-carousel-container .event-card,
    .poster-carousel-swiper .article-card,
    .poster-carousel-swiper .event-card {
        width: 280px;
        max-width: 280px;
    }
}

/* Carousel container: uses .ds-carousel-container from ds/ds.css */

/* Navigation arrows hover states */
.poster-carousel-swiper + .swiper-button-prev:hover,
.poster-carousel-swiper + .swiper-button-next:hover,
[class*="poster-carousel-prev"]:hover,
[class*="poster-carousel-next"]:hover {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
}

/* Hide auto-generated pagination */
.poster-carousel-swiper .swiper-pagination {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   POSTER CAROUSEL (Wiki Spotlight Section)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Consistent card widths for poster carousel */
.poster-carousel-swiper .swiper-slide {
    width: 320px !important;
    margin-right: 1.5rem !important; /* 24px gap between cards */
}

@media (max-width: 575px) {
    .poster-carousel-swiper .swiper-slide {
        width: 280px !important;
        margin-right: 1rem !important;
    }
}

/* Prevent cards from being too close to viewport edge */
.poster-carousel-swiper {
    padding: 0 2rem;
}

@media (max-width: 767px) {
    .poster-carousel-swiper {
        padding: 0 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION SPACING & RHYTHM - FINAL POLISH
   ═══════════════════════════════════════════════════════════════════════════ */

/* Eliminate gaps between sections for seamless flow */
.landing-page-content > div {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Ensure no gaps leak through */
.landing-page-content {
    padding: 0 !important;
}

/* Visual hierarchy summary:
   1. Wiki Spotlight: 7rem vertical padding + gradient + large title + strong CTAs
   2. Events: 4.5rem vertical padding + standard surface + medium title
   3. Feed: 4.5rem top / 3.5rem bottom + subtle border
   4. Community: 4rem padding + reduced opacity + muted
*/

/* Secondary text visibility */
/* Typography sizing handled by .rs-section-subtitle class - removed font-size override */
.landing-page-content .text-body-secondary {
    line-height: 1.6 !important;
    margin-top: 1rem !important;
}

/* Ensure CTAs have consistent rhythm within sections */
.landing-page-content .btn {
    transition: all 0.2s ease !important;
}

/* All sections use same text alignment (except final CTA which is centered) */
.landing-page-content h2:not(.final-cta-title),
.landing-page-content .btn-group {
    text-align: left !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSPIRATIONS / BUILDS SECTION (community_builds)
   
   Purpose: Visual inspiration section showcasing community builds/projects.
   Secondary to Wiki/Events but more engaging than plain text.
   
   Design Intent:
   - Gallery-like, aspirational presentation
   - De-emphasized compared to pillar sections (Wiki/Events)
   - Image-first cards with minimal text
   - Calm, inviting tone
   - Secondary visual weight
   
   Position: Above Final CTA, below Recent Activity
   
   Visual Hierarchy:
   - Smaller typography than Wiki/Events (h3 vs h2)
   - Smaller buttons (btn-sm vs btn-lg)
   - Outline buttons (not solid) for secondary weight
   - Smaller navigation arrows (36px vs 40px)
   
   Multi-Tenancy:
   - ReefScales: "Tank Builds"
   - GreenSide: "Garden Showcases"
   - Default: "Community Projects"
   - Label comes from CMS, not hardcoded
   
   Implementation: 2026-01-08
   Status: Production-ready
   ═══════════════════════════════════════════════════════════════════════════ */

.community_builds-section {
  /* Increased padding to match Reefapedia spacing standard */
  padding: 7rem 0;
  /* No background - matches Reefapedia and Events sections */
}

/* Reset internal <section> element padding to prevent double spacing */
.community_builds-section section {
  background-color: transparent !important;
  background: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.community_builds-section h2 {
  /* Uses standardized section sizing */
  color: var(--bs-heading-color, var(--bs-body-color)) !important;
}

.community_builds-section p {
  /* Body text for subtitle */
  color: var(--bs-secondary-color, var(--bs-body-secondary)) !important;
}

/* Carousel cards - gallery-like presentation */
.community_builds-section .swiper-slide {
  height: auto;
     display: flex;
  align-items: stretch;
}

.community_builds-section .card {
  /* Gallery-style cards */
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.community_builds-section .card:hover {
  /* Subtle elevation on hover - not dramatic */
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card images unified via content-card.css mobile image normalization */
/* All card images (Wiki, Events, Builds) now share the same mobile contract */

.community_builds-section .card-body {
  padding: 1rem 1.25rem;
}

.community_builds-section .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.community_builds-section .card-text {
  font-size: 0.875rem;
  color: var(--bs-body-secondary);
}

/* De-emphasize card metadata - let image + title do the work */
.community_builds-section .card .badge,
.community_builds-section .card .text-muted,
.community_builds-section .card small {
  font-size: 0.75rem;
  opacity: 0.7;
}

.community_builds-section .card-body {
  /* Tighter padding for landing page cards */
  padding: 1rem;
}

/* Empty state - calm and encouraging */
.community_builds-section .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--bs-body-secondary);
}

.community_builds-section .empty-state p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Navigation arrows: Uses reusable swiper arrow system */
/* Arrows are defined by .swiper-arrow-prev and .swiper-arrow-next utility classes */

/* Mobile adjustments */
@media (max-width: 767px) {
  .community_builds-section {
    padding: 3rem 0 2.5rem;
  }
  
  /* Mobile typography uses standardized responsive sizing */
  /* Mobile image sizing now unified via content-card.css (aspect-ratio: 4/3) */
  
  /* Arrows are hidden on mobile by swiper arrow utility (see above) */
}

/* Dark mode support - removed section background to match Reefapedia/Events */
@media (prefers-color-scheme: dark) {
  .community_builds-section .card {
    background: var(--bs-body-bg, #212529);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .community_builds-section .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  
  /* Dark mode arrows are handled by swiper arrow utility (see above) */
}

/* ═══════════════════════════════════════════════════════════════════════════
   END: INSPIRATIONS / BUILDS SECTION
   
   Result: Secondary, gallery-like section that invites exploration without
   competing with pillar content (Wiki/Events). Image-first presentation with
   calm, aspirational tone. Proper multi-tenancy support via CMS-driven labels.
   
   Refinements Applied:
   - Increased top padding (4.5rem) for breathing room from previous section
   - Navigation arrows positioned at viewport edges (16px desktop, 12px tablet)
   - Arrows vertically centered on cards, fade in on hover (0 → 1 opacity)
   - Arrows hidden on mobile (swipe is primary interaction)
   - De-emphasized card metadata (smaller font, reduced opacity)
   - Theme-aware arrow styling (light/dark mode support)
   
   LOCKED - Do not modify without explicit approval.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   FINAL CTA SECTION - Super Flow Pattern (Frosted Glass Card)
   
   Purpose:
   Conversion close at bottom of landing page. Encourages account creation
   without competing with main hero or core content.
   
   Design Pattern: Super Flow (simplified)
   - Centered frosted-glass card
   - Subdued background image
   - Shorter vertical height than hero
   - "Clean close" not "encore"
   
   Visual Hierarchy:
   1. Visually lighter than main hero
   2. Smaller typography
   3. Reduced contrast (subdued background)
   4. Less vertical height (360px vs 480px+ hero)
   5. Card max-width: 780px (constrained, focused)
   
   Implementation:
   - Background: Slightly blurred (1px), reduced brightness (0.80)
   - Overlay: Dark scrim gradient (55-70-60-40%) to subdue image
   - Card: Frosted glass (rgba white 0.08, backdrop-blur 24px)
   - Animation: AOS fade-up (400ms, 200px offset - optimized for responsiveness)
   - Buttons: Solid primary, frosted secondary with backdrop-blur
   - Mobile: Reduces to 320px min-height, 2.5rem padding
   
   Multi-Tenancy:
   - Platform-generic ("Join ReefScales" not "Join Reefapedia")
   - All copy CMS-driven or site_config-based
   - Works unchanged across all tenants
   
   Architecture:
   - Presentation Layer component
   - Bootstrap 5.3 utilities + custom CSS
   - Font Awesome icons
   - Light + dark mode support via CSS variables
   
   Status: LOCKED (2026-01-08)
   Do not modify without explicit user approval.
   ═══════════════════════════════════════════════════════════════════════════ */

.final-cta-section {
    position: relative;
    min-height: 360px;
    padding: 4rem 0;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* Super Flow Swiper container - fills section */
.final-cta-swiper {
    width: 100%;
    height: 100%;
    z-index: 0;
}

.final-cta-swiper .swiper-slide {
    position: relative;
}

/* Background image - Slightly subdued to support frosted card */
.final-cta-bg {
     background-size: cover;
     background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.80) contrast(1.05) saturate(1.0) blur(1px);
    z-index: 0;
}

/* Overlay - Scrim gradient (industry standard for text over images) - SUBDUED for frosted card */
.final-cta-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,      /* Top: darker to subdue image */
        rgba(0, 0, 0, 0.70) 40%,     /* Text area: darker, card will stand out */
        rgba(0, 0, 0, 0.60) 70%,     /* Button area: darker background */
        rgba(0, 0, 0, 0.40) 100%     /* Bottom: still subdued */
    );
    z-index: 1;
    pointer-events: none;
}

/* Content container - FROSTED GLASS CARD */
.final-cta-card {
    /* Frosted glass surface */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    
    /* Border and shape */
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    
    /* Shadow */
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    
    /* Spacing */
    padding: 2.5rem 2rem !important;
    text-align: center;
    
    /* Constrained width */
    max-width: 780px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .final-cta-section {
        min-height: 320px;
        padding: 3rem 0;
    }
    
    .final-cta-card {
        padding: 2rem 1.5rem !important;
    }
}

/* Headline - "Join {Platform}" - centered */
/* Typography sizing handled by .rs-section-title class - only color/alignment overrides here */
.final-cta-title {
     color: #ffffff;
    margin-bottom: 1rem;
    text-align: center !important;
}

/* Final CTA uses standardized section sizing (responsive handled by global .rs-section-title rules) */

/* Supporting copy - Calm, trust-building (1-2 lines max) */
.final-cta-subtitle {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
    .final-cta-subtitle {
        margin-bottom: 1.5rem;
    }
}

/* Primary CTA - Blue with frosted glass, uses section button sizing */
.final-cta-btn-primary {
    
    /* Solid professional look - Bootstrap primary */
    background: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    color: #ffffff !important;
    
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3) !important;
    transition: all 0.2s ease !important;
    min-width: 180px !important;
    height: auto !important;
}

.final-cta-btn-primary:hover {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.4) !important;
}

@media (max-width: 767px) {
    .final-cta-btn-primary {
        width: 100% !important;
        max-width: 280px !important;
        /* Button sizing handled by .rs-btn-section class */
    }
}

/* Secondary CTA - Solid outline/secondary look, uses section button sizing */
.final-cta-btn-secondary {
    /* Frosted glass with backdrop blur */
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    min-width: 160px !important;
}

.final-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(16px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.8) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

@media (max-width: 767px) {
    .final-cta-btn-primary,
    .final-cta-btn-secondary {
        width: 100% !important;
        max-width: 280px !important;
    }
}

/* Micro trust line - Small, muted, anxiety-reducing */
.final-cta-trust-line {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0.75rem 0 0;
    font-weight: 400;
    text-align: center;
}

/* Icon spacing in CTAs */
.final-cta-section .btn i {
    font-size: 1rem;
}

/* Ensure section feels bounded (end of page) */
.final-cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bs-border-color);
    opacity: 0.2;
}

/* Light Mode Adjustments - Subdued to support frosted card */
[data-bs-theme="light"] .final-cta-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,      /* Top: darker to subdue */
        rgba(0, 0, 0, 0.65) 40%,     /* Text area: darker, card stands out */
        rgba(0, 0, 0, 0.55) 70%,     /* Button area: darker background */
        rgba(0, 0, 0, 0.35) 100%     /* Bottom: still subdued */
    );
}

/* Removed light mode card background - no box needed */

[data-bs-theme="light"] .final-cta-btn-secondary {
    border-color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="light"] .final-cta-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   END: FINAL CTA SECTION
   
   Implementation Complete: 2026-01-08
   
   Final Specifications:
   - Section height: 360px desktop, 320px mobile
   - Card width: 780px max (constrained)
   - Background: Subdued with 1px blur, darker overlay gradient
   - Card: Frosted glass (blur 24px, rgba white 0.08, border-radius 24px)
   - Animation: AOS fade-up (400ms, 200px offset - snappy and responsive)
   - Typography: Centered, smaller than hero
   - CTAs: Solid primary, frosted secondary
   - Theme: Light/dark mode support via CSS variables
   
   Result: "Clean close" conversion section that doesn't compete with hero
   or content sections. Professional, calm, Apple-inspired aesthetic with
   fast, responsive scroll animation.
   
   LOCKED - Do not modify without explicit approval.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   Discussions Section
   ═══════════════════════════════════════════════════════════════════════════
   
   Purpose: Calm, welcoming entry point for community conversations
   Position: Section 5 (between Recent Activity and Tank Builds)
   Visual Priority: Secondary to Wiki/Events, slightly more prominent than Tank Builds
   
   Key Characteristics:
   - Typography-first, readable
   - Vertical list layout (cols=1)
   - Minimal metadata
   - Welcoming tone
   - Medium visual weight (less than pillars, more than builds)
   
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section container */
.discussions-section {
  background: var(--bs-body-bg);
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* Discussions section - uses standardized section sizing */
.discussions-section h2 {
  color: var(--bs-heading-color);
}

.discussions-section .btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-color: var(--bs-white);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
}

.discussions-section .btn-outline-secondary {
  --bs-btn-color: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--bs-secondary);
  --bs-btn-hover-border-color: var(--bs-secondary);
  --bs-btn-active-color: var(--bs-white);
  --bs-btn-active-bg: var(--bs-secondary);
  --bs-btn-active-border-color: var(--bs-secondary);
}

/* Discussion cards - Clean preview, not a feed */
.discussions-section .card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.2s ease;
  margin-bottom: 0;
  padding: 1.5rem 0;
}

.discussions-section .card:hover {
  transform: none;
  box-shadow: none;
  background-color: var(--bs-tertiary-bg);
}

.discussions-section .card:last-child {
  /* No additional styling needed */
}

.discussions-section .card-body {
  padding: 0;
}

/* Hide system metadata badges */
.discussions-section .badge,
.discussions-section .card-header,
.discussions-section [class*="badge-"] {
  display: none !important;
}

/* Card title - Clean conversation title */
.discussions-section .card-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--bs-heading-color);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Clean up title text - remove "Discussion:" prefix and usernames */
.discussions-section .card-title a {
  color: var(--bs-heading-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.discussions-section .card-title a:hover {
  color: var(--bs-primary);
}

/* Card text - Welcoming prompt (not excerpt) */
.discussions-section .card-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bs-secondary-color);
  margin-bottom: 0.5rem;
}

/* Hide "None" and empty paragraphs */
.discussions-section .card-text:empty,
.discussions-section .card-text:has(> :only-child:empty) {
  display: none;
}

/* Timestamps - Heavily de-emphasized */
.discussions-section .card-meta,
.discussions-section .text-muted,
.discussions-section small,
.discussions-section [class*="time"] {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
  opacity: 0.5;
}

/* Hide timestamps entirely - this is a preview, not a feed */
.discussions-section .card-meta,
.discussions-section .text-muted:not(.card-text),
.discussions-section small:last-child {
  display: none;
}

/* Container for preview items */
.discussions-section .container-fluid,
.discussions-section .row {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.discussions-section .col {
  padding-left: 0;
  padding-right: 0;
}

/* Preview item wrapper - constrained width, clean borders */
.discussions-section .row {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 12px;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  background: var(--bs-body-bg);
  overflow: hidden;
}

/* Add welcoming prompt before each title */
.discussions-section .card-title::before {
  content: "";
  display: block;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

/* Custom discussions preview layout - overrides feed cards */
.discussions-section .discussions-preview {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 12px;
  background: var(--bs-body-bg);
  overflow: hidden;
  margin-top: 2rem;
}

.discussions-section .discussion-item {
  padding: 1.5rem 1.75rem;
  transition: background-color 0.2s ease;
}

.discussions-section .discussion-item:last-child {
  /* No additional styling needed */
}

.discussions-section .discussion-item:hover {
  background-color: var(--bs-tertiary-bg);
}

.discussions-section .discussion-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--bs-heading-color);
  margin-bottom: 0.375rem;
  line-height: 1.5;
}

.discussions-section .discussion-title a {
  color: var(--bs-heading-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.discussions-section .discussion-title a:hover {
  color: var(--bs-primary);
}

.discussions-section .discussion-excerpt {
  font-size: 0.9375rem;
  color: var(--bs-secondary-color);
  margin: 0;
  opacity: 0.85;
  line-height: 1.5;
}

/* Empty state - Calm message */
.discussions-section .empty-state,
.discussions-section .discussions-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 12px;
  background: var(--bs-body-bg);
  margin-top: 2rem;
}

.discussions-section .empty-state p,
.discussions-section .discussions-empty p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--bs-secondary-color);
}

.discussions-section .empty-state::before,
.discussions-section .discussions-empty::before {
  content: "";
  display: block;
  margin-bottom: 0;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .discussions-section {
    background: var(--bs-body-bg);
  }
  
  .discussions-section .card {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .discussions-section .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .discussions-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Section title sizing handled by .rs-section-title class */
  
  /* Subtitle sizing handled by .rs-section-subtitle class */
  
  .discussions-section .card-body {
    padding: 1.25rem;
  }
  
  .discussions-section .card-title {
    font-size: 1.125rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   End Discussions Section
   
   Status: Complete ✓
   Implementation Date: 2026-01-08
   
   Section Purpose:
   - Calm entry point for community conversations
   - Secondary to Wiki/Events pillars
   - Slightly more prominent than Tank Builds
   - Typography-first, readable, welcoming
   
   LOCKED - Do not modify without explicit approval.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   CAMPAIGN MARKETING LANDING (/landing/)
   Scoped to .marketing-landing-* — separate from root feed and CMS blocks.
   ═══════════════════════════════════════════════════════════════════════════ */

.marketing-landing-page {
    background-color: var(--bs-body-bg);
}

.marketing-landing-hero {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.marketing-landing-hero-glow {
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--bs-primary-rgb), 0.14), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(var(--bs-primary-rgb), 0.08), transparent 40%);
    filter: blur(40px);
    z-index: 1;
    opacity: 0.9;
}

.marketing-landing-logo {
    max-height: 56px;
    width: auto;
}

.marketing-landing-eyebrow {
    color: var(--bs-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.marketing-landing-title {
    letter-spacing: -0.03em;
    line-height: 1.05;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
}

.marketing-landing-lead {
    max-width: 38rem;
    color: var(--bs-secondary-color);
    font-size: 1.25rem;
    line-height: 1.6;
}

.marketing-landing-feature {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.marketing-landing-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08) !important;
}

.marketing-landing-feature-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.marketing-landing-proof {
    background: var(--bs-tertiary-bg);
}

.marketing-landing-proof-card {
    transition: transform 0.25s ease;
}

.marketing-landing-proof-card:hover {
    transform: translateY(-2px);
}

.marketing-landing-cta {
    background:
        linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08), rgba(var(--bs-primary-rgb), 0.02)),
        var(--bs-body-bg);
    border: 1px solid var(--bs-border-color) !important;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
    .marketing-landing-hero {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .marketing-landing-title {
        font-size: clamp(2.75rem, 5vw, 4rem);
    }
}
