/*
 * PFX Public Layout Styles
 * wwwroot/css/pfx-public.css
 *
 * Styles for the public-facing layout only.
 * Loaded via _Styles.cshtml after pfx-tokens.css and Bootstrap.
 */


/* ============================================================
   PUBLIC NAV
   ============================================================ */

.pfx-public-nav {
    position: sticky;
    top: 0;
    z-index: var(--pfx-z-sticky);
    background: var(--pfx-forest-dark);
    display: flex;
    align-items: stretch;
    height: 68px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

    .pfx-public-nav .pfx-nav-logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        padding: 0 36px 0 8px;
    }

        .pfx-public-nav .pfx-nav-logo img {
            height: 52px;
            width: auto;
            display: block;
        }

    .pfx-public-nav .pfx-nav-divider {
        width: 1px;
        background: rgba(255, 255, 255, 0.12);
        align-self: stretch;
        margin: 12px 0;
        flex-shrink: 0;
    }

    .pfx-public-nav .pfx-nav-links {
        display: flex;
        align-items: center;
        gap: 26px;
        flex: 1;
        padding-left: 36px;
        list-style: none;
        margin: 0;
    }

        .pfx-public-nav .pfx-nav-links .nav-item {
            display: flex;
            align-items: center;
        }

        .pfx-public-nav .pfx-nav-links .nav-link {
            font-size: 12.5px;
            color: rgba(240, 236, 224, 0.7);
            letter-spacing: 0.03em;
            font-weight: 500;
            text-decoration: none;
            white-space: nowrap;
            transition: color var(--pfx-transition-fast);
            padding: 0;
        }

            .pfx-public-nav .pfx-nav-links .nav-link:hover,
            .pfx-public-nav .pfx-nav-links .nav-item.active .nav-link {
                color: var(--pfx-cream);
            }

    .pfx-public-nav .pfx-nav-auth {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
        align-items: center;
        padding-right: 32px;
        margin-left: auto;
    }

.pfx-btn-nav-signin {
    background: transparent;
    color: var(--pfx-cream);
    border: 1px solid rgba(240, 236, 224, 0.4);
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 0;
    transition: border-color var(--pfx-transition-fast), background var(--pfx-transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

    .pfx-btn-nav-signin:hover {
        border-color: var(--pfx-cream);
        color: var(--pfx-cream);
        background: rgba(240, 236, 224, 0.08);
    }

.pfx-btn-nav-register {
    background: var(--pfx-cream);
    color: var(--pfx-forest-dark);
    border: none;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 0;
    transition: background var(--pfx-transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

    .pfx-btn-nav-register:hover {
        background: var(--pfx-cream-dark);
        color: var(--pfx-forest-dark);
    }

/* Auth state — dashboard link */
.pfx-public-nav .pfx-nav-auth .nav-link {
    font-size: 12px;
    color: rgba(240, 236, 224, 0.75);
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0;
}

    .pfx-public-nav .pfx-nav-auth .nav-link:hover {
        color: var(--pfx-cream);
    }

/* Mobile toggle */
.pfx-nav-toggler {
    display: none;
    background: transparent;
    border: none;
    color: var(--pfx-cream);
    font-size: 1.25rem;
    padding: 0 1rem;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .pfx-public-nav {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
    }

        .pfx-public-nav .pfx-nav-logo {
            padding: 8px 16px;
            height: 60px;
        }

            .pfx-public-nav .pfx-nav-logo img {
                height: 40px;
            }

    .pfx-nav-toggler {
        display: flex;
        align-items: center;
        height: 60px;
    }

    .pfx-public-nav .pfx-nav-divider {
        display: none;
    }

    .pfx-nav-collapse {
        display: none;
        width: 100%;
        background: var(--pfx-forest-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

        .pfx-nav-collapse.show {
            display: block;
        }

    .pfx-public-nav .pfx-nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0;
    }

        .pfx-public-nav .pfx-nav-links .nav-item {
            width: 100%;
        }

        .pfx-public-nav .pfx-nav-links .nav-link {
            display: block;
            padding: 10px 24px;
            width: 100%;
        }

    .pfx-public-nav .pfx-nav-auth {
        padding: 12px 24px;
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}


/* ============================================================
   PRIVACY BANNER
   ============================================================ */

.pfx-privacy-banner {
    background: var(--pfx-forest-subtle);
    border-bottom: 1px solid #d4e4d8;
    padding: 8px 48px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .pfx-privacy-banner svg {
        flex-shrink: 0;
        margin-top: 1px;
        color: var(--pfx-forest-mid);
    }

    .pfx-privacy-banner span {
        font-size: 11.5px;
        color: var(--pfx-forest-mid);
        line-height: 1.5;
    }

[data-theme="dark"] .pfx-privacy-banner {
    background: rgba(45, 80, 56, 0.2);
    border-bottom-color: rgba(58, 107, 74, 0.3);
}

@media (max-width: 767.98px) {
    .pfx-privacy-banner {
        padding: 8px 16px;
    }
}


/* ============================================================
   STATS BAR
   ============================================================ */

.pfx-stats-bar {
    background: var(--pfx-forest-dark);
    border-bottom: 3px solid var(--pfx-forest-mid);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

    .pfx-stats-bar .pfx-stat {
        padding: 28px 32px;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

        .pfx-stats-bar .pfx-stat:last-child {
            border-right: none;
        }

.pfx-stat-value {
    font-family: var(--pfx-font-mono);
    font-size: 30px;
    color: var(--pfx-cream);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1;
}

    .pfx-stat-value.serif {
        font-family: var(--pfx-font-display);
        font-weight: 400;
    }

.pfx-stat-label {
    font-size: 10px;
    color: rgba(240, 236, 224, 0.55);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .pfx-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .pfx-stat-value {
        font-size: 22px;
    }

    .pfx-stats-bar .pfx-stat {
        padding: 20px 20px;
    }

        .pfx-stats-bar .pfx-stat:nth-child(2) {
            border-right: none;
        }

        .pfx-stats-bar .pfx-stat:nth-child(1),
        .pfx-stats-bar .pfx-stat:nth-child(2) {
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }
}


/* ============================================================
   PUBLIC PAGE BODY
   ============================================================ */

.pfx-public-body {
    background: var(--pfx-bg-page);
    min-height: 100vh;
}

/* Full-width content — no legacy sidebar columns */
.pfx-public-content {
    width: 100%;
    max-width: var(--pfx-content-max-width);
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 991.98px) {
    .pfx-public-content {
        padding: 0 24px;
    }
}

@media (max-width: 575.98px) {
    .pfx-public-content {
        padding: 0 16px;
    }
}

/* Pipeline/content grid with sticky sidebar */
.pfx-content-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: start;
    padding-top: 56px;
    padding-bottom: 56px;
}

    .pfx-content-grid.no-sidebar {
        grid-template-columns: 1fr;
    }

.pfx-sticky-sidebar {
    position: sticky;
    top: calc(68px + 1rem);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 991.98px) {
    .pfx-content-grid {
        grid-template-columns: 1fr;
    }

    .pfx-sticky-sidebar {
        position: static;
    }
}


/* ============================================================
   SPLIT VALUE PANEL (Investors / Project Principals)
   ============================================================ */

.pfx-split-panel {
    background: var(--pfx-bg-raised);
    border-bottom: 1px solid var(--pfx-border);
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
}

.pfx-split-divider {
    background: var(--pfx-border);
}

.pfx-split-cell {
    padding: 56px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pfx-section-label {
    font-size: 10px;
    color: var(--pfx-forest-dark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .pfx-section-label::before {
        content: '';
        display: block;
        width: 20px;
        height: 1.5px;
        background: var(--pfx-forest-dark);
        flex-shrink: 0;
    }

.pfx-split-cell h2 {
    font-family: var(--pfx-font-display);
    font-size: 28px;
    line-height: 1.2;
    color: var(--pfx-text-primary);
    font-weight: 400;
}

.pfx-split-cell p {
    font-size: 13px;
    line-height: 1.75;
    color: var(--pfx-text-secondary);
}

.pfx-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .pfx-bullet-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 12px;
        color: var(--pfx-text-secondary);
        line-height: 1.5;
    }

        .pfx-bullet-list li::before {
            content: '';
            display: block;
            width: 5px;
            height: 5px;
            background: var(--pfx-forest-dark);
            flex-shrink: 0;
            margin-top: 5px;
            border-radius: 50%;
        }

.pfx-btn-primary {
    align-self: flex-start;
    background: var(--pfx-forest-dark);
    color: var(--pfx-cream);
    border: none;
    padding: 12px 26px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
    transition: background var(--pfx-transition-fast);
}

    .pfx-btn-primary:hover {
        background: var(--pfx-forest-mid);
        color: var(--pfx-cream);
    }

.pfx-btn-outline {
    align-self: flex-start;
    background: transparent;
    color: var(--pfx-forest-dark);
    border: 1.5px solid var(--pfx-forest-dark);
    padding: 12px 26px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
    transition: background var(--pfx-transition-fast), color var(--pfx-transition-fast);
}

    .pfx-btn-outline:hover {
        background: var(--pfx-forest-dark);
        color: var(--pfx-cream);
    }

@media (max-width: 767.98px) {
    .pfx-split-panel {
        grid-template-columns: 1fr;
    }

    .pfx-split-divider {
        height: 1px;
        width: auto;
    }

    .pfx-split-cell {
        padding: 36px 24px;
    }
}

[data-theme="dark"] .pfx-split-panel {
    background: var(--pfx-bg-surface);
}

[data-theme="dark"] .pfx-split-cell h2 {
    color: var(--pfx-text-primary);
}


/* ============================================================
   MEDIA / AS FEATURED IN BAR
   ============================================================ */

.pfx-media-bar {
    background: var(--pfx-bg-raised);
    border-bottom: 1px solid var(--pfx-border);
    border-top: 1px solid var(--pfx-border);
    padding: 20px 48px;
}

.pfx-media-bar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pfx-media-bar-label {
    font-size: 10px;
    color: var(--pfx-mid-grey);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    flex-shrink: 0;
}

.pfx-media-bar-divider {
    width: 1px;
    height: 20px;
    background: var(--pfx-border);
    flex-shrink: 0;
}

.pfx-media-logos {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

    .pfx-media-logos a {
        color: var(--pfx-mid-grey);
        text-decoration: none;
        opacity: 0.7;
        transition: opacity var(--pfx-transition-fast);
    }

        .pfx-media-logos a:hover {
            opacity: 1;
        }

.pfx-media-all-link {
    margin-left: auto;
    font-size: 11px;
    color: var(--pfx-forest-dark);
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

    .pfx-media-all-link:hover {
        color: var(--pfx-forest-mid);
    }

@media (max-width: 767.98px) {
    .pfx-media-bar {
        padding: 16px;
    }
}


/* ============================================================
   PIPELINE SECTION
   ============================================================ */

.pfx-pipeline-section {
    padding: 56px 48px;
}

.pfx-pipeline-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pfx-forest-dark);
}

.pfx-pipeline-header-left .pfx-pipeline-eyebrow {
    font-size: 10px;
    color: var(--pfx-forest-dark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.pfx-pipeline-header-left h3 {
    font-family: var(--pfx-font-display);
    font-size: 26px;
    color: var(--pfx-text-primary);
    font-weight: 400;
    margin: 0;
}

.pfx-pipeline-header-left p {
    font-size: 12px;
    color: var(--pfx-mid-grey);
    margin-top: 4px;
    margin-bottom: 0;
}

.pfx-pipeline-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.pfx-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pfx-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    flex-shrink: 0;
}

    .pfx-legend-dot.engaged {
        background: #c47c1a;
    }

    .pfx-legend-dot.completed {
        background: var(--pfx-blue);
    }

.pfx-legend-item span {
    font-size: 10px;
    color: var(--pfx-mid-grey);
}

.pfx-view-all-link {
    font-size: 11px;
    color: var(--pfx-forest-dark);
    font-weight: 600;
    text-decoration: none;
    margin-left: 12px;
    white-space: nowrap;
}

    .pfx-view-all-link:hover {
        color: var(--pfx-forest-mid);
    }

/* Pipeline card grid */
.pfx-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991.98px) {
    .pfx-pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pfx-pipeline-section {
        padding: 36px 24px;
    }
}

@media (max-width: 575.98px) {
    .pfx-pipeline-grid {
        grid-template-columns: 1fr;
    }
}

/* Pipeline card */
.pfx-project-card {
    background: var(--pfx-bg-raised);
    border: 1px solid var(--pfx-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--pfx-transition-fast), box-shadow var(--pfx-transition-fast);
    cursor: pointer;
}

    .pfx-project-card:hover {
        border-color: var(--pfx-forest-mid);
        box-shadow: var(--pfx-shadow);
    }

.pfx-project-card-image {
    position: relative;
    height: 130px;
    overflow: hidden;
}

.pfx-project-card-image-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder when no image */
.pfx-project-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 8px 10px;
}

    .pfx-project-card-placeholder .placeholder-label {
        position: relative;
        z-index: 1;
        font-family: var(--pfx-font-mono);
        font-size: 8px;
        color: rgba(0, 0, 0, 0.22);
        letter-spacing: 0.05em;
    }

.pfx-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 2;
    white-space: nowrap;
    color: #fff;
}

    .pfx-status-badge.engaged {
        background: #c47c1a;
    }

    .pfx-status-badge.completed {
        background: var(--pfx-blue);
    }

.pfx-project-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pfx-project-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--pfx-text-primary);
    line-height: 1.35;
    margin: 0;
}

.pfx-project-location {
    font-size: 11px;
    color: var(--pfx-mid-grey);
    font-weight: 500;
    margin: 0;
}

.pfx-project-value {
    font-family: var(--pfx-font-mono);
    font-size: 17px;
    color: var(--pfx-forest-dark);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: -0.01em;
}

.pfx-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.pfx-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

    .pfx-tag.green {
        background: #e2ede6;
        color: var(--pfx-forest-dark);
    }

    .pfx-tag.blue {
        background: #dde8f5;
        color: var(--pfx-blue);
    }

    .pfx-tag.olive {
        background: #e8eddd;
        color: #3a4a20;
    }

    .pfx-tag.warm {
        background: #f0e8dd;
        color: #5a3820;
    }

.pfx-btn-view-pitch {
    align-self: flex-start;
    background: transparent;
    color: var(--pfx-forest-dark);
    border: 1px solid var(--pfx-forest-dark);
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 0;
    margin-top: 8px;
    text-decoration: none;
    transition: background var(--pfx-transition-fast), color var(--pfx-transition-fast);
    display: inline-block;
}

    .pfx-btn-view-pitch:hover {
        background: var(--pfx-forest-dark);
        color: var(--pfx-cream);
    }

[data-theme="dark"] .pfx-project-card {
    background: var(--pfx-bg-surface);
}

[data-theme="dark"] .pfx-project-value {
    color: #6abf7a;
}


/* ============================================================
   RIGHT SIDEBAR WIDGETS
   ============================================================ */

.pfx-sidebar-widget {
    border: 1px solid var(--pfx-border);
    overflow: hidden;
}

/* Handbook widget */
.pfx-handbook-widget {
    background: var(--pfx-forest-dark);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pfx-handbook-eyebrow {
    font-size: 9px;
    color: rgba(240, 236, 224, 0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.pfx-handbook-cover {
    background: var(--pfx-forest-mid);
    padding: 16px;
    text-align: center;
}

    .pfx-handbook-cover .cover-title {
        font-family: var(--pfx-font-display);
        font-size: 20px;
        color: var(--pfx-cream);
        line-height: 1.15;
        text-align: center;
        font-weight: 400;
        margin-bottom: 8px;
    }

    .pfx-handbook-cover img {
        height: 28px;
        opacity: 0.9;
        margin: 0 auto;
        display: block;
    }

.pfx-handbook-widget p {
    font-size: 11.5px;
    color: rgba(240, 236, 224, 0.75);
    line-height: 1.65;
    margin: 0;
}

.pfx-btn-handbook {
    background: var(--pfx-cream);
    color: var(--pfx-forest-dark);
    border: none;
    padding: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background var(--pfx-transition-fast);
}

    .pfx-btn-handbook:hover {
        background: var(--pfx-cream-dark);
        color: var(--pfx-forest-dark);
    }

/* LinkedIn widget */
.pfx-linkedin-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--pfx-bg-raised);
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color var(--pfx-transition-fast), box-shadow var(--pfx-transition-fast);
}

    .pfx-linkedin-widget:hover {
        box-shadow: var(--pfx-shadow-sm);
    }

.pfx-linkedin-icon {
    width: 36px;
    height: 36px;
    background: #0a66c2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
}

.pfx-linkedin-text .title {
    font-size: 12px;
    font-weight: 600;
    color: var(--pfx-text-primary);
    display: block;
}

.pfx-linkedin-text .sub {
    font-size: 10px;
    color: var(--pfx-mid-grey);
    margin-top: 2px;
    display: block;
}

/* Newsletter widget */
.pfx-newsletter-widget {
    background: var(--pfx-bg-surface);
    padding: 18px;
}

    .pfx-newsletter-widget .eyebrow {
        font-size: 9px;
        color: var(--pfx-forest-dark);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .pfx-newsletter-widget .title {
        font-size: 13px;
        font-weight: 600;
        color: var(--pfx-text-primary);
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .pfx-newsletter-widget .sub {
        font-size: 11px;
        color: var(--pfx-mid-grey);
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .pfx-newsletter-widget .form-control {
        border-radius: 0;
        border-color: var(--pfx-border);
        font-size: 12px;
        margin-bottom: 8px;
    }

.pfx-btn-subscribe {
    width: 100%;
    background: var(--pfx-forest-dark);
    color: var(--pfx-cream);
    border: none;
    padding: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 0;
    transition: background var(--pfx-transition-fast);
}

    .pfx-btn-subscribe:hover {
        background: var(--pfx-forest-mid);
    }


/* ============================================================
   TRUST BAR
   ============================================================ */

.pfx-trust-bar {
    background: var(--pfx-forest-dark);
    padding: 28px 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.pfx-trust-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 36px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

    .pfx-trust-item:first-child {
        padding-left: 0;
        border-left: none;
    }

    .pfx-trust-item .title {
        font-size: 12px;
        color: var(--pfx-cream);
        font-weight: 600;
    }

    .pfx-trust-item .sub {
        font-size: 10px;
        color: rgba(240, 236, 224, 0.5);
        letter-spacing: 0.04em;
    }

@media (max-width: 767.98px) {
    .pfx-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px 20px;
        gap: 20px;
    }

    .pfx-trust-item {
        padding-left: 0;
        border-left: none;
    }
}


/* ============================================================
   PUBLIC FOOTER
   ============================================================ */

.pfx-public-footer {
    background: var(--pfx-forest-dark);
}

.pfx-footer-main {
    padding: 36px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

    .pfx-footer-main img {
        height: 52px;
        flex-shrink: 0;
    }

.pfx-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .pfx-footer-nav a {
        font-size: 12px;
        color: rgba(240, 236, 224, 0.65);
        text-decoration: none;
        font-weight: 500;
        transition: color var(--pfx-transition-fast);
    }

        .pfx-footer-nav a:hover {
            color: var(--pfx-cream);
        }

.pfx-footer-linkedin {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

    .pfx-footer-linkedin .li-icon {
        width: 28px;
        height: 28px;
        background: #0a66c2;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .pfx-footer-linkedin span {
        font-size: 11px;
        color: rgba(240, 236, 224, 0.6);
        font-weight: 500;
    }

.pfx-footer-bottom {
    padding: 16px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

    .pfx-footer-bottom .copyright {
        font-size: 11px;
        color: rgba(240, 236, 224, 0.35);
    }

.pfx-footer-legal {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .pfx-footer-legal a {
        font-size: 11px;
        color: rgba(240, 236, 224, 0.35);
        text-decoration: none;
        transition: color var(--pfx-transition-fast);
    }

        .pfx-footer-legal a:hover {
            color: rgba(240, 236, 224, 0.7);
        }

@media (max-width: 767.98px) {
    .pfx-footer-main,
    .pfx-footer-bottom {
        padding: 24px 16px;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ============================================================
   INNER PAGE HEADER BAND
   ============================================================ */

.pfx-page-header {
    background: var(--pfx-forest-dark);
    border-bottom: 2px solid #1e3829;
}

.pfx-page-header-inner {
    max-width: var(--pfx-content-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
}

.pfx-page-header-aum {
    padding: 14px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.pfx-page-header-aum-value {
    font-family: var(--pfx-font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--pfx-cream);
    letter-spacing: -0.02em;
    line-height: 1;
}

.pfx-page-header-aum-sub {
    font-size: 11px;
    color: rgba(240, 236, 224, 0.6);
    line-height: 1.5;
}

.pfx-page-header-blurb {
    padding: 14px 28px;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

    .pfx-page-header-blurb p {
        font-size: 12px;
        color: rgba(240, 236, 224, 0.75);
        line-height: 1.75;
        margin: 0;
    }

    .pfx-page-header-blurb strong {
        color: var(--pfx-cream);
    }

.pfx-page-header-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    gap: 4px;
    flex-shrink: 0;
}

    .pfx-page-header-download span {
        font-size: 11px;
        color: rgba(240, 236, 224, 0.5);
        text-align: center;
    }

    .pfx-page-header-download a {
        font-size: 12px;
        font-weight: 700;
        color: var(--pfx-cream);
        text-align: center;
        line-height: 1.4;
        text-decoration: none;
        transition: color var(--pfx-transition-fast);
    }

        .pfx-page-header-download a:hover {
            color: var(--pfx-cream-dark);
        }

/* Ticker bar */
.pfx-page-header-ticker {
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 0;
    text-align: center;
    font-size: 11px;
    color: rgba(240, 236, 224, 0.65);
}

    .pfx-page-header-ticker .ticker {
        display: inline;
    }

    .pfx-page-header-ticker .ticker-body {
        display: none;
    }

        .pfx-page-header-ticker .ticker-body.ticker-active {
            display: inline;
        }

    .pfx-page-header-ticker .ticker-headline {
        display: inline;
    }

        .pfx-page-header-ticker .ticker-headline a {
            color: var(--pfx-cream);
            text-decoration: none;
            font-family: var(--pfx-font-mono);
            font-weight: 600;
        }

            .pfx-page-header-ticker .ticker-headline a:hover {
                text-decoration: underline;
            }

/* Centred privacy banner variant */
.pfx-privacy-banner--centred {
    justify-content: center;
    text-align: center;
}

@media (max-width: 991.98px) {
    .pfx-page-header-inner {
        grid-template-columns: 1fr;
    }

    .pfx-page-header-aum,
    .pfx-page-header-blurb {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .pfx-page-header-download {
        display: none;
    }
}


/* ============================================================
   INNER PAGE CONTENT LAYOUT
   ============================================================ */

.pfx-inner-content {
    padding-top: 28px;
    padding-bottom: 56px;
}

.pfx-inner-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 32px;
    align-items: start;
}

.pfx-inner-main {
    min-width: 0;
}

    .pfx-inner-main h1 {
        font-family: var(--pfx-font-display);
        font-size: 30px;
        font-weight: 400;
        color: var(--pfx-text-primary);
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .pfx-inner-main h2 {
        font-family: var(--pfx-font-display);
        font-size: 22px;
        font-weight: 400;
        color: var(--pfx-text-primary);
        line-height: 1.3;
        margin-top: 32px;
        margin-bottom: 12px;
    }

    .pfx-inner-main h3 {
        font-size: 14px;
        font-weight: 700;
        color: var(--pfx-forest-dark);
        margin-bottom: 6px;
    }

    .pfx-inner-main p {
        font-size: 13.5px;
        line-height: 1.75;
        color: var(--pfx-text-secondary);
    }

        .pfx-inner-main p strong {
            color: var(--pfx-text-primary);
            font-weight: 600;
        }

    .pfx-inner-main a {
        color: var(--pfx-forest-mid);
    }

        .pfx-inner-main a:hover {
            color: var(--pfx-forest-dark);
        }

/* Section divider pattern used in content */
.pfx-content-section {
    border-top: 2px solid var(--pfx-forest-dark);
    padding-top: 16px;
    margin-top: 24px;
    margin-bottom: 18px;
}

.pfx-content-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pfx-forest-dark);
    margin-bottom: 16px;
}

.pfx-inner-sidebar {
    top: calc(68px + 1rem);
}

@media (max-width: 991.98px) {
    .pfx-inner-grid {
        grid-template-columns: 1fr;
    }

    .pfx-inner-sidebar {
        position: static;
    }
}


/* ============================================================
   CONSOLIDATED SITE HEADER
   (replaces slim nav + separate page header band)
   ============================================================ */

.pfx-site-header {
    background: var(--pfx-forest-dark);
    border-bottom: 2px solid #1e3829;
    position: sticky;
    top: 0;
    z-index: var(--pfx-z-sticky);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

/* Row 1 — info bar */
.pfx-header-info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pfx-header-info-inner {
    max-width: var(--pfx-content-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 160px auto 1fr auto;
    align-items: stretch;
}

.pfx-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

    .pfx-header-logo img {
        height: 80px;
        width: auto;
    }

.pfx-header-aum {
    padding: 14px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.pfx-header-aum-value {
    font-family: var(--pfx-font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--pfx-cream);
    letter-spacing: -0.02em;
    line-height: 1;
}

.pfx-header-aum-sub {
    font-size: 11px;
    color: rgba(240, 236, 224, 0.6);
    line-height: 1.5;
}

.pfx-header-blurb {
    padding: 14px 28px;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

    .pfx-header-blurb p {
        font-size: 12px;
        color: rgba(240, 236, 224, 0.75);
        line-height: 1.75;
        margin: 0;
    }

    .pfx-header-blurb strong {
        color: var(--pfx-cream);
    }

.pfx-header-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    gap: 6px;
    flex-shrink: 0;
}

    .pfx-header-download span {
        font-size: 11px;
        color: rgba(240, 236, 224, 0.5);
        text-align: center;
    }

    .pfx-header-download a {
        font-size: 12px;
        font-weight: 700;
        color: var(--pfx-cream);
        text-align: center;
        line-height: 1.4;
        text-decoration: none;
        transition: color var(--pfx-transition-fast);
    }

        .pfx-header-download a:hover {
            color: var(--pfx-cream-dark);
        }

/* Row 2 — ticker */
.pfx-header-ticker {
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 0;
    text-align: center;
    font-size: 11px;
    color: rgba(240, 236, 224, 0.65);
}

    .pfx-header-ticker .ticker {
        display: inline;
    }

    .pfx-header-ticker .ticker-body {
        display: none;
    }

        .pfx-header-ticker .ticker-body.ticker-active {
            display: inline;
        }

    .pfx-header-ticker .ticker-headline {
        display: inline;
    }

        .pfx-header-ticker .ticker-headline a {
            color: var(--pfx-cream);
            text-decoration: none;
            font-family: var(--pfx-font-mono);
            font-weight: 600;
        }

            .pfx-header-ticker .ticker-headline a:hover {
                text-decoration: underline;
            }

/* Row 3 — nav */
.pfx-header-nav {
    background: var(--pfx-forest-dark);
    border-bottom: 2px solid #1e3829;
}

.pfx-header-nav-inner {
    max-width: var(--pfx-content-max-width);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.pfx-header-nav-primary {
    flex: 1;
    display: flex;
}

.pfx-header-nav-secondary {
    display: flex;
}

.pfx-header-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(240, 236, 224, 0.7);
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--pfx-transition-fast), background var(--pfx-transition-fast);
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
}

    .pfx-header-nav-link:hover {
        color: var(--pfx-cream);
        background: rgba(255, 255, 255, 0.06);
    }

    .pfx-header-nav-link.active {
        font-weight: 700;
        color: var(--pfx-cream);
        background: rgba(255, 255, 255, 0.12);
        border-bottom: 2px solid #a8d4b4;
    }

.pfx-header-nav-link--secondary {
    padding: 10px 12px;
    color: rgba(240, 236, 224, 0.6);
    font-size: 11.5px;
}

/* Row 4 — privacy banner (already defined, just centred variant) */
.pfx-privacy-banner--centred {
    justify-content: center;
    text-align: center;
}

/* Mobile collapse */
@media (max-width: 991.98px) {
    .pfx-header-info-inner {
        grid-template-columns: 120px 1fr;
    }

    .pfx-header-blurb,
    .pfx-header-download {
        display: none;
    }

    .pfx-header-logo img {
        height: 56px;
    }

    .pfx-header-aum-value {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .pfx-header-nav-primary {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pfx-header-nav-secondary {
        display: none;
    }

    .pfx-header-info-inner {
        grid-template-columns: 1fr;
    }

    .pfx-header-logo {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        padding: 8px 16px;
    }

        .pfx-header-logo img {
            height: 44px;
        }

    .pfx-header-aum {
        border-right: none;
        padding: 10px 16px;
    }
}


/* ============================================================
   THREE-COLUMN INNER PAGE LAYOUT
   ============================================================ */

.pfx-inner-grid {
    display: grid;
    grid-template-columns: 188px 1fr 188px;
    gap: 24px;
    align-items: start;
}

.pfx-inner-left-sidebar {
    position: sticky;
    top: calc(var(--pfx-header-height, 200px) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pfx-inner-right-sidebar {
    position: sticky;
    top: calc(var(--pfx-header-height, 200px) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 1199.98px) {
    .pfx-inner-grid {
        grid-template-columns: 160px 1fr 160px;
    }
}

@media (max-width: 991.98px) {
    .pfx-inner-grid {
        grid-template-columns: 1fr;
    }

    .pfx-inner-left-sidebar,
    .pfx-inner-right-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

        .pfx-inner-left-sidebar > *,
        .pfx-inner-right-sidebar > * {
            flex: 1 1 240px;
        }
}


/* ============================================================
   3 GREEN LIGHTS SIDEBAR WIDGET
   ============================================================ */

.pfx-3gl-widget {
    display: block;
    border-radius: var(--pfx-border-radius, 4px);
    overflow: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pfx-3gl-widget img {
    display: block;
    width: 100%;
    height: auto;
}

.pfx-3gl-widget:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* News widget */
.pfx-news-widget {
    background: var(--pfx-bg-raised);
    border: 1px solid var(--pfx-border);
    padding: 10px 12px;
}

.pfx-news-widget-label {
    font-size: 10px;
    color: var(--pfx-mid-grey);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

/* LinkedIn full variant (wider, blue bg) */
.pfx-linkedin-widget--full {
    background: #0a66c2;
    border: none;
    padding: 10px 14px;
}

    .pfx-linkedin-widget--full .pfx-linkedin-text .title {
        color: #fff;
        font-size: 11px;
    }


/* ============================================================
   CMS CONTENT BLOCK OVERRIDES
   Piranha HTML blocks contain editor-generated markup with
   inline styles and BS4 classes. These rules normalise output
   without touching the CMS content itself.
   ============================================================ */

/* Contain floated images within the column — prevents overflow into sidebars */
.pfx-inner-main .block img,
.pfx-inner-main .html-block img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Float images are fine within their own block but must not escape */
.pfx-inner-main .block {
    overflow: hidden; /* clearfix for floated children */
    margin-bottom: 24px;
}

    .pfx-inner-main .block:last-child {
        margin-bottom: 0;
    }

/* Floated images — cap size and add breathing room */
.pfx-inner-main img[style*="float: right"],
.pfx-inner-main img[style*="float:right"] {
    max-width: 45%;
    margin-left: 20px;
    margin-bottom: 12px;
}

.pfx-inner-main img[style*="float: left"],
.pfx-inner-main img[style*="float:left"] {
    max-width: 45%;
    margin-right: 20px;
    margin-bottom: 12px;
}

/* CMS-generated btn-success → PFX outline style */
.pfx-inner-main .btn-success,
.pfx-inner-main a.btn-success {
    background: var(--pfx-forest-dark) !important;
    border-color: var(--pfx-forest-dark) !important;
    color: var(--pfx-cream) !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    padding: 10px 22px !important;
    text-decoration: none;
    transition: background var(--pfx-transition-fast), border-color var(--pfx-transition-fast);
}

    .pfx-inner-main .btn-success:hover,
    .pfx-inner-main a.btn-success:hover {
        background: var(--pfx-forest-mid) !important;
        border-color: var(--pfx-forest-mid) !important;
        color: var(--pfx-cream) !important;
    }

/* CMS btn-warning, btn-primary fallbacks */
.pfx-inner-main .btn-warning,
.pfx-inner-main a.btn-warning {
    background: var(--pfx-gold) !important;
    border-color: var(--pfx-gold) !important;
    color: var(--pfx-near-black) !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    padding: 10px 22px !important;
}

/* CMS inline font-size overrides — normalise to readable scale */
.pfx-inner-main span[style*="font-size: 14pt"],
.pfx-inner-main span[style*="font-size:14pt"] {
    font-size: 1rem !important;
    font-weight: inherit;
}

/* Section headings from CMS — teal colour override → brand colour */
.pfx-inner-main span[style*="color: #169179"],
.pfx-inner-main span[style*="color:#169179"] {
    color: var(--pfx-forest-dark) !important;
}

/* Blockquotes / pull quotes from CMS */
.pfx-inner-main p[style*="padding-left: 40px"],
.pfx-inner-main p[style*="padding-left:40px"] {
    border-left: 3px solid var(--pfx-forest-mid);
    padding-left: 16px !important;
    margin-left: 0;
    font-style: italic;
    color: var(--pfx-text-secondary);
}

/* BS4 text-justify — fine to keep, just normalise */
.pfx-inner-main .text-justify {
    text-align: justify;
}

/* Row/col grid within CMS blocks — these are BS5 compatible, no change needed */
/* But cap image columns on small screens */
@media (max-width: 767.98px) {
    .pfx-inner-main img[style*="float: right"],
    .pfx-inner-main img[style*="float:right"],
    .pfx-inner-main img[style*="float: left"],
    .pfx-inner-main img[style*="float:left"] {
        float: none !important;
        max-width: 100%;
        margin: 0 0 16px 0;
    }
}


/* ============================================================
   HOMEPAGE GRID
   Two-column only: pipeline content + right sidebar.
   Distinct from pfx-inner-grid (three-column with left sidebar).
   ============================================================ */

.pfx-home-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 28px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 56px;
}

.pfx-home-main {
    min-width: 0;
}

.pfx-home-sidebar {
    position: sticky;
    top: calc(var(--pfx-header-height, 200px) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 991.98px) {
    .pfx-home-grid {
        grid-template-columns: 1fr;
    }

    .pfx-home-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

        .pfx-home-sidebar > * {
            flex: 1 1 240px;
        }
}


/* ============================================================
   NEWS CAROUSEL
   ============================================================ */

#news-carousel {
    height: auto;
    display: block;
}

.news-carousel {
    display: none;
    width: 100%;
}

    .news-carousel.news-carousel-active {
        display: block;
    }

    .news-carousel img {
        width: 100%;
        height: auto;
        display: block;
    }


/* ============================================================
   PIPELINE SEARCH FILTER PANEL
   Replaces left sidebar on the search page
   ============================================================ */

.pfx-search-filter {
    border: 1px solid var(--pfx-border);
    overflow: hidden;
}

.pfx-search-filter-header {
    background: var(--pfx-forest-dark);
    color: var(--pfx-cream);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 10px 14px;
}

.pfx-search-filter-body {
    background: var(--pfx-bg-raised);
}

.pfx-search-filter-group {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pfx-border);
}

.pfx-search-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pfx-text-primary);
}

    .pfx-search-filter-label i {
        color: var(--pfx-forest-mid);
        flex-shrink: 0;
    }

    .pfx-search-filter-label label {
        margin: 0;
        font-size: 11.5px;
        font-weight: 600;
    }

.pfx-search-filter-actions {
    padding: 12px 14px;
}

/* Two-column pipeline grid variant for search (no right sidebar constraint) */
.pfx-pipeline-grid--search {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767.98px) {
    .pfx-pipeline-grid--search {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   PIPELINE SEARCH — FILTER LIST ITEMS
   ============================================================ */

.pfx-filter-list {
    display: flex;
    flex-direction: column;
}

.pfx-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    font-size: 11.5px;
    color: var(--pfx-text-primary);
    cursor: pointer;
    border-radius: 2px;
    margin: 0;
    font-weight: 400;
    transition: background var(--pfx-transition-fast);
    user-select: none;
}

    .pfx-filter-item:hover {
        background: var(--pfx-forest-subtle);
    }

.pfx-filter-item--selected {
    background: var(--pfx-forest-subtle);
    color: var(--pfx-forest-dark);
    font-weight: 600;
}

.pfx-filter-item input[type="checkbox"] {
    display: none; /* selection shown via background highlight only */
}

/* Checkmark prefix for selected items */
.pfx-filter-item--selected::before {
    content: '✓';
    color: var(--pfx-forest-dark);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    width: 12px;
}

.pfx-filter-item:not(.pfx-filter-item--selected)::before {
    content: '';
    width: 12px;
    flex-shrink: 0;
}

.pfx-filter-info-icon {
    color: var(--pfx-forest-dark);
    font-size: 13px;
    cursor: help;
    flex-shrink: 0;
}

.pfx-filter-result-count {
    font-size: 11px;
    color: var(--pfx-text-secondary);
    text-align: center;
    margin: 8px 0 0;
}


/* ============================================================
   PIPELINE SEARCH FILTER — VIEWPORT HEIGHT CONSTRAINT
   ============================================================ */

/* The filter panel fills available sidebar height, capped to viewport */
.pfx-search-filter {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--pfx-header-height, 200px) - 3rem);
    overflow: hidden;
}

/* Scrollable groups area — grows to fill space, overflows within */
.pfx-search-filter-groups {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Each filter group — no individual max-height, groups share the scroll */
.pfx-search-filter-group {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pfx-border);
}

    .pfx-search-filter-group:last-child {
        border-bottom: none;
    }

/* Actions pinned to bottom, never scrolled away */
.pfx-search-filter-actions {
    flex-shrink: 0;
    padding: 12px 14px;
    border-top: 1px solid var(--pfx-border);
    background: var(--pfx-bg-raised);
}

/* Disabled clear button */
.pfx-btn-disabled,
.pfx-btn-outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}


/* ============================================================
   PIPELINE SEARCH FILTER — PER-GROUP SCROLL
   Overrides earlier rules to give each group its own scroll.
   ============================================================ */

/* Groups container no longer scrolls — each group handles its own */
.pfx-search-filter-groups {
    overflow-y: visible;
}

/* Each group gets a fixed height cap — label + scrollable list */
.pfx-filter-list {
    max-height: 160px;
    overflow-y: auto;
    overscroll-behavior: contain;
}


/* ============================================================
   PIPELINE SEARCH FILTER — SELECTED CHIPS
   ============================================================ */

.pfx-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0 8px;
    border-bottom: 1px solid var(--pfx-border);
    margin-bottom: 4px;
}

.pfx-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--pfx-forest-dark);
    color: var(--pfx-cream);
    font-size: 10.5px;
    font-weight: 500;
    padding: 3px 8px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background var(--pfx-transition-fast);
    font-family: inherit;
}

    .pfx-filter-chip:hover {
        background: var(--pfx-danger);
        color: #fff;
    }

    .pfx-filter-chip span {
        font-size: 13px;
        line-height: 1;
        opacity: 0.8;
    }

    .pfx-filter-chip:hover span {
        opacity: 1;
    }


/* ============================================================
   PIPELINE SEARCH — COLOUR CORRECTIONS
   Chips and selected items follow the design colour scheme.
   ============================================================ */

/* Selected list item — matches design's highlighted row */
.pfx-filter-item--selected {
    background: rgba(45, 80, 56, 0.1);
    color: var(--pfx-forest-dark);
    font-weight: 600;
}

    .pfx-filter-item--selected::before {
        color: var(--pfx-forest-dark);
    }

/* Chips — forest-subtle background, forest-dark text */
.pfx-filter-chip {
    background: rgba(45, 80, 56, 0.12);
    color: var(--pfx-forest-dark);
    border: 1px solid rgba(45, 80, 56, 0.25);
}

    .pfx-filter-chip:hover {
        background: var(--pfx-forest-dark);
        color: var(--pfx-cream);
        border-color: var(--pfx-forest-dark);
    }

        .pfx-filter-chip:hover span {
            opacity: 1;
        }

[data-theme="dark"] .pfx-filter-chip {
    background: rgba(106, 191, 122, 0.12);
    color: var(--pfx-text-link);
    border-color: rgba(106, 191, 122, 0.25);
}

    [data-theme="dark"] .pfx-filter-chip:hover {
        background: var(--pfx-forest-mid);
        color: var(--pfx-cream);
    }


/* ============================================================
   PIPELINE SEARCH FILTER — CHECKBOX FIX
   Replaces display:none approach with visible styled checkboxes.
   ============================================================ */

/* Show checkboxes — hidden ones break click in some browsers */
.pfx-filter-item input[type="checkbox"] {
    display: inline-block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    accent-color: var(--pfx-forest-dark);
    cursor: pointer;
    margin: 0;
}

/* Remove the pseudo-element checkmark — real checkbox handles it now */
.pfx-filter-item--selected::before,
.pfx-filter-item:not(.pfx-filter-item--selected)::before {
    display: none;
}

/* Re-add left padding to compensate for removed pseudo-element */
.pfx-filter-item {
    gap: 8px;
}


/* ============================================================
   PIPELINE SEARCH — ACTIONS OUTSIDE SCROLL CONTAINER
   ============================================================ */

/* Filter panel no longer needs to contain actions */
.pfx-search-filter {
    border-bottom: none;
}

/* Actions sit below the filter panel, always visible */
.pfx-search-filter-actions {
    position: sticky;
    bottom: 0;
    background: var(--pfx-bg-page);
    border: 1px solid var(--pfx-border);
    border-top: none;
    padding: 12px 14px;
    z-index: 1;
}


/* ============================================================
   PIPELINE SEARCH CHIPS — BLUE COLOUR FIX + OVERFLOW
   ============================================================ */

.pfx-filter-chip,
.pfx-filter-chip:hover {
    background: var(--pfx-blue-light) !important;
    color: #fff !important;
    border-color: var(--pfx-blue-light) !important;
}

    .pfx-filter-chip:hover {
        background: var(--pfx-blue) !important;
        border-color: var(--pfx-blue) !important;
    }

.pfx-filter-chip-overflow {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--pfx-blue-light);
    padding: 3px 6px;
    white-space: nowrap;
}

/* Selected list item — blue tint to match chips */
.pfx-filter-item--selected {
    background: rgba(90, 154, 191, 0.12) !important;
    color: var(--pfx-blue) !important;
    font-weight: 600;
}

    .pfx-filter-item--selected::before {
        color: var(--pfx-blue) !important;
    }


/* ============================================================
   PIPELINE SEARCH — MOBILE FILTER TOGGLE
   Below 768px: collapsible panel, pill-style filter items
   ============================================================ */

@media (max-width: 767.98px) {

    /* Toggle button — full width, cream bg when collapsed */
    .pfx-search-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: var(--pfx-bg-raised);
        border: 1px solid var(--pfx-border);
        font-size: 14px;
        font-weight: 600;
        color: var(--pfx-text-primary);
        cursor: pointer;
        font-family: inherit;
        text-align: left;
    }

        .pfx-search-filter-toggle .pfx-toggle-icon {
            font-size: 10px;
            transition: transform var(--pfx-transition-fast);
        }

        /* Open state — forest-dark header matching design */
        .pfx-search-filter-toggle.is-open {
            background: var(--pfx-forest-dark);
            color: var(--pfx-cream);
            border-color: var(--pfx-forest-dark);
        }

            .pfx-search-filter-toggle.is-open .pfx-toggle-icon {
                transform: rotate(180deg);
            }

    /* Collapsible body */
    .pfx-search-filter-collapsible {
        display: none;
        border: 1px solid var(--pfx-border);
        border-top: none;
    }

        .pfx-search-filter-collapsible.is-open {
            display: block;
        }

    /* On mobile the left sidebar stacks above content — full width */
    .pfx-inner-left-sidebar {
        width: 100%;
        position: static;
    }

    /* Pill layout for filter items on mobile */
    .pfx-filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 14px 12px;
        max-height: none;
        overflow: visible;
    }

    .pfx-filter-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border: 1px solid var(--pfx-border);
        border-radius: 2px;
        font-size: 12px;
        font-weight: 500;
        background: var(--pfx-bg-raised);
        cursor: pointer;
        transition: background var(--pfx-transition-fast), border-color var(--pfx-transition-fast);
        width: auto;
    }

    .pfx-filter-item--selected {
        background: rgba(90, 154, 191, 0.15) !important;
        border-color: var(--pfx-blue-light) !important;
        color: var(--pfx-blue) !important;
        font-weight: 600;
    }

    /* Checkmark via pseudo — no real checkbox visible on mobile pills */
    .pfx-filter-item input[type="checkbox"] {
        display: none;
    }

    .pfx-filter-item--selected::before {
        content: '✓';
        display: inline;
        font-size: 11px;
        color: var(--pfx-blue);
        font-weight: 700;
    }

    .pfx-filter-item:not(.pfx-filter-item--selected)::before {
        display: none;
    }

    /* Actions full width on mobile */
    .pfx-search-filter-actions {
        position: static;
        border-top: 1px solid var(--pfx-border);
    }
}

/* Hide toggle button on desktop */
@media (min-width: 768px) {
    .pfx-search-filter-toggle {
        display: none;
    }

    .pfx-search-filter-collapsible {
        display: block !important;
    }
}


/* ============================================================
   PIPELINE SEARCH MOBILE PILLS — FIXES
   ============================================================ */

@media (max-width: 767.98px) {

    /* Pills wrap naturally — auto width not full width */
    .pfx-filter-item {
        width: auto !important;
        flex: 0 0 auto;
    }

    /* Selected pill — blue border + tint, checkmark prefix */
    .pfx-filter-item--selected {
        background: rgba(90, 154, 191, 0.15) !important;
        border-color: var(--pfx-blue-light) !important;
        color: var(--pfx-blue) !important;
        font-weight: 600;
    }

        .pfx-filter-item--selected::before {
            content: '✓ ';
            display: inline;
            font-size: 11px;
            color: var(--pfx-blue);
            font-weight: 700;
        }

    .pfx-filter-item:not(.pfx-filter-item--selected)::before {
        display: none;
    }

    /* Hide chips entirely on mobile — pills convey selection state */
    .pfx-filter-chips {
        display: none !important;
    }
}


/* ============================================================
   PIPELINE SEARCH MOBILE — PILL WIDTH AND LIST SCROLL FIX
   ============================================================ */

@media (max-width: 767.98px) {

    /* Force pill wrapping layout */
    .pfx-filter-list {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        max-height: 160px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* Pills must not stretch — content width only */
    .pfx-filter-item {
        display: inline-flex !important;
        width: auto !important;
        flex: 0 0 auto !important;
        min-width: 0;
    }
}


/* ── Typography utilities ───────────────────────────────────────────────── */
.pfx-text-sm { font-size: var(--pfx-text-sm); }
.pfx-text-xs { font-size: var(--pfx-text-xs); }

/* ── Pipeline CTA block ─────────────────────────────────────────────────── */
.pfx-pipeline-cta {
    background: var(--pfx-bg-surface);
    border: 1px solid var(--pfx-border-colour);
}

/* ── Project document navigation bar (public project views) ─────────────── */
.pfx-doc-nav {
    background: #1e3829;
    border-radius: 4px;
    margin-bottom: 20px;
}
.pfx-doc-nav__inner {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pfx-doc-nav__crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: rgba(240,236,224,0.6);
}
.pfx-doc-nav__link { color: rgba(240,236,224,0.6); text-decoration: none; }
.pfx-doc-nav__link:hover { color: rgba(240,236,224,0.9); }
.pfx-doc-nav__code {
    color: #f0ece0;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: var(--pfx-font-mono);
    font-size: 11px;
}
.pfx-doc-nav__current { color: #f0ece0; }

/* ── Project card placeholder ───────────────────────────────────────────── */
.pfx-project-card-placeholder { background: var(--pfx-forest-subtle); }

/* ── Social section elements ────────────────────────────────────────────── */
.pfx-social-divider { width: 24px; height: 1px; background: rgba(240,236,224,0.25); margin: 4px auto; }
.pfx-social-label { font-size: 8px; color: rgba(240,236,224,0.4); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.pfx-social-sub { font-size: 14px; font-weight: 800; color: #fff; }

/* ── Brand link ─────────────────────────────────────────────────────────── */
.pfx-link-brand { color: #2d5038; font-weight: 600; }
