/* Match the existing Montserrat typography, blue palette and soft pill shadows. */
.elementor .ffc-portfolio-layout {
    --ffc-ink: #094a6a;
    --ffc-muted: #536a78;
    --ffc-border: #c8d5dc;
    padding: 0 20px 32px;
}
.elementor .ffc-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(170px, 1fr)) auto;
    align-items: end;
    gap: 20px;
    width: 100%;
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid #e6ecef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 3px 13px rgb(0 0 0 / 8%);
    font-family: Montserrat, sans-serif;
}
.elementor .ffc-filter-bar > .elementor-element { width: 100%; min-width: 0; margin: 0; }
.ffc-filter-bar .jet-filter-label {
    display: block;
    margin: 0 0 9px;
    color: var(--ffc-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}
.ffc-filter-bar .jet-select,
.ffc-filter-bar .jet-search-filter,
.ffc-filter-bar .jet-search-filter__input-wrapper { width: 100%; max-width: none; }
.elementor .ffc-filter-bar .elementor-widget .jet-select__control,
.elementor .ffc-filter-bar .elementor-widget .jet-search-filter__input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 40px 12px 17px;
    border: 1px solid var(--ffc-border);
    border-radius: 28px;
    background-color: #fff;
    color: var(--ffc-ink);
    font: 400 14px/22px Montserrat, sans-serif;
    box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
    transition: border-color .15s, box-shadow .15s;
}
.ffc-filter-bar .jet-select__control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23094a6a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    cursor: pointer;
}
.elementor .ffc-filter-bar .elementor-widget .jet-search-filter__input { padding-left: 43px; }
.ffc-filter-bar .jet-search-filter__input-wrapper::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 17px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8' cy='8' r='5.5' fill='none' stroke='%23536a78' stroke-width='1.7'/%3E%3Cpath d='m12 12 5 5' stroke='%23536a78' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ffc-filter-bar .jet-search-filter__input::placeholder { color: var(--ffc-muted); opacity: 1; }
.ffc-filter-bar .jet-select__control:hover,
.ffc-filter-bar .jet-search-filter__input:hover { border-color: #7094a6; }
.ffc-filter-bar .jet-select__control:focus-visible,
.ffc-filter-bar .jet-search-filter__input:focus-visible,
.ffc-filter-bar button:focus-visible { outline: 2px solid #094a6a; outline-offset: 3px; }
.elementor .ffc-filter-bar .elementor-widget .jet-remove-all-filters__button {
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--ffc-border);
    border-radius: 28px;
    background: #f5f8fa;
    color: var(--ffc-ink);
    font: 500 14px/22px Montserrat, sans-serif;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
}
.elementor .ffc-filter-bar .elementor-widget .jet-remove-all-filters__button:hover { color: #094a6a; background: #e9f0f4; border-color: #7094a6; }
.ffc-filter-bar option:disabled { color: #9aa7af; }
.ffc-portfolio-grid .jet-listing-not-found {
    width: 100%;
    margin: 24px 0 48px;
    padding: 48px 24px;
    border-radius: 20px;
    background: #f5f8fa;
    color: #094a6a;
    font: 400 16px/26px Montserrat, sans-serif;
    text-align: center;
}
.elementor .ffc-portfolio-content { width: 100%; flex-direction: column; }
.elementor .ffc-portfolio-grid .elementor-element[data-id="409e77e"] {
    width: 100%;
    max-width: 335px;
    border: 1px solid transparent;
    border-radius: 24px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.elementor .ffc-portfolio-grid .elementor-element[data-id="409e77e"]:hover,
.elementor .ffc-portfolio-grid .elementor-element[data-id="409e77e"]:focus-within {
    border-color: #e6ecef;
    box-shadow: 0 3px 13px rgb(0 0 0 / 8%);
}
.elementor .ffc-portfolio-legend { flex-wrap: wrap; row-gap: 20px; }
.ffc-company-funds {
    margin: 0;
    color: #094a6a;
    font: 700 17px/20px Montserrat, sans-serif;
}
.ffc-company-funds .before-text { font-weight: 400; }
.ffc-results-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
@media (min-width: 1200px) {
    .elementor .ffc-filter-bar { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 10px); z-index: 999; }
    .elementor .ffc-filter-bar:not(.ffc-has-active-filters) { grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(170px, 1fr)); }
    .ffc-portfolio-grid { scroll-margin-top: 144px; }
}
@media (max-width: 1199px) {
    .elementor .ffc-filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas: "search search search" "industry status fund";
        gap: 18px;
    }
    .elementor .ffc-filter-bar.ffc-has-active-filters { grid-template-areas: "search search search" "industry status fund" "reset reset reset"; }
    .ffc-filter-bar > .ffc-filter-search { grid-area: search; }
    .ffc-filter-bar > .ffc-filter-industry { grid-area: industry; }
    .ffc-filter-bar > .ffc-filter-fund { grid-area: fund; }
    .ffc-filter-bar > .ffc-filter-status { grid-area: status; }
    .elementor .ffc-filter-bar > .ffc-filter-reset { grid-area: reset; justify-self: center; width: auto; }
}
@media (max-width: 1024px) {
    /* The existing newsletter button otherwise overflows this archive at 768px. */
    .post-type-archive-portfolio-companies .elementor-location-footer .elementor-field-type-submit .elementor-button {
        min-width: 0;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 767px) {
    .post-type-archive-portfolio-companies .elementor-location-footer .elementor-element[data-id="32ea485"] {
        left: 20px;
        right: 20px;
        width: auto;
        max-width: calc(100% - 40px);
    }
    .elementor .ffc-portfolio-layout { padding: 0 20px 24px; }
    .elementor .ffc-filter-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "industry" "status" "fund"; gap: 18px; padding: 20px; border-radius: 20px; margin-bottom: 20px; }
    .elementor .ffc-filter-bar.ffc-has-active-filters { grid-template-areas: "search" "industry" "status" "fund" "reset"; }
    .elementor .ffc-filter-bar > .ffc-filter-reset { justify-self: stretch; width: 100%; }
    .elementor .ffc-filter-bar .elementor-widget .jet-select__control,
    .elementor .ffc-filter-bar .elementor-widget .jet-search-filter__input { font-size: 16px; }
    .elementor .ffc-filter-bar .elementor-widget .jet-remove-all-filters__button { padding: 12px 20px; width: 100%; }
    .elementor .ffc-portfolio-legend { flex-direction: column; align-items: flex-start; padding-left: 0; }
}
