﻿/* Opportunity Zones directory block (Investment Opportunities, Experts, Funds), the investment detail page, and the
   blocks shown at the bottom of it (File List block, Events block "featuredEvents4" design), and the
   gated form over them */

.oz-directory,
.oz-detail,
.oz-block,
.oz-gate {
    --oz-orange: #d23f08;
    --oz-navy: #0d2340;
    --oz-text: #2f2f2f;
    --oz-border: #d3d3d3;
    --oz-field-border: #c8c8c8;
    --oz-grey: #e9e9e9;
    color: var(--oz-text);
}

.oz-container-wide {
    padding: 0 15px;
}

.oz-directory--experts {
    padding-bottom: 60px;
    padding-top: 20px;
}

/* "List yours" prompt above the directory. Text and link use the site's default paragraph styling. */
.oz-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 20px 15px;
}

.oz-callout__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.oz-callout__text {
    margin: 0;
}

.oz-callout__link {
    font: inherit;
    color: inherit;
    white-space: nowrap;
    text-decoration: none;
}

.oz-callout__link span:first-child {
    text-decoration: underline;
}

.oz-callout__link .fa {
    margin-left: 8px;
}

.oz-callout__link:hover,
.oz-callout__link:focus {
    color: #d23f08;
}

.oz-container-narrow {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 15px;
}

.oz-container-tabs {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.oz-directory--funds .oz-container-narrow {
    max-width: 780px;
}

/* Room for two full-width (354px) selects and the button */
.oz-directory--funds .oz-filters .oz-container-narrow {
    max-width: 920px;
}

@media (min-width: 768px) {
    .oz-container-wide {
        padding: 0 20px;
    }
    .oz-directory--experts {
        padding-bottom: 100px;
    }
}

/* Filters */

.oz-filters {
    background: var(--oz-grey);
    border-top: 3px solid var(--oz-field-border);
    padding: 34px 0 28px;
    margin-bottom: 24px;
}

.oz-directory--investments .oz-filters {
    margin: 0 15px 16px;
}

@media (min-width: 768px) {
    .oz-directory--investments .oz-filters {
        margin: 0 20px 16px;
    }
}

.oz-filters__title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    color: var(--oz-navy);
}

.oz-filters__title .fa {
    margin-right: 6px;
}

.oz-filters__fields {
    display: grid;
    gap: 12px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

/* Mobile stacks the four filters into two columns (type/property, location/size) like the comp */
.oz-filters__fields--four {
    grid-template-rows: auto auto;
    grid-auto-flow: column;
}

.oz-filters__fields--four .oz-filters__apply,
.oz-filters__fields--two .oz-filters__apply {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
}

.oz-filters__fields--two .oz-filters__apply {
    grid-row: 2;
}

.oz-filters__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Filter dropdowns: checkbox lists (Views/Partials/OppZones/_FilterDropdown.cshtml) that look like selects */
.oz-multiselect {
    position: relative;
}

.oz-multiselect__toggle {
    position: relative;
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--oz-field-border);
    border-radius: 4px;
    background: #fff;
    color: var(--oz-text);
    font-size: 14px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.oz-multiselect__toggle::-webkit-details-marker {
    display: none;
}

.oz-multiselect__toggle::after {
    content: "\f107";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-family: FontAwesome;
    font-size: 16px;
}

.oz-multiselect[open] .oz-multiselect__toggle {
    border-radius: 4px 4px 0 0;
}

.oz-multiselect[open] .oz-multiselect__toggle::after {
    content: "\f106";
}

.oz-multiselect__toggle:focus-visible {
    outline: 2px solid var(--oz-navy);
    outline-offset: -2px;
}

.oz-multiselect__summary {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.oz-multiselect__panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    min-width: 0;
    max-height: 280px;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    border: 1px solid var(--oz-field-border);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.oz-multiselect__option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 12px;
    color: var(--oz-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
}

.oz-multiselect__option:hover {
    background: #f4f4f4;
}

.oz-multiselect__option input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--oz-orange);
    cursor: pointer;
}

.oz-multiselect__divider {
    margin: 6px 12px;
    border: 0;
    border-top: 1px solid var(--oz-border);
}

.oz-filters__apply {
    height: 46px;
    padding: 0 26px;
    border: 2px solid var(--oz-orange);
    border-radius: 4px;
    background: var(--oz-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.oz-filters__apply:hover,
.oz-filters__apply:focus {
    background: #fff;
    color: var(--oz-orange);
}

/* Active filters under the dropdowns (Views/Partials/OppZones/_FilterPills.cshtml) */
.oz-filter-pills[hidden] {
    display: none;
}

.oz-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.oz-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    border: 1px solid var(--oz-navy);
    border-radius: 8px;
    background: var(--oz-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.oz-filter-pill:hover,
.oz-filter-pill:focus {
    border-color: var(--oz-orange);
    background: var(--oz-orange);
    color: #fff;
    text-decoration: none;
}

/* A thin x like the comp (Font Awesome 4's is heavy) */
.oz-filter-pill__icon {
    flex: none;
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.oz-filter-pill--reset {
    background: transparent;
    color: var(--oz-navy);
}

.oz-filter-pill--reset:hover,
.oz-filter-pill--reset:focus {
    border-color: var(--oz-navy);
    background: var(--oz-navy);
}

.oz-filter-pills + .oz-results-count {
    margin-top: 14px;
}

.oz-results-count {
    margin: 18px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.oz-directory--experts .oz-results-count {
    margin: 12px 0 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .oz-filters__title,
    .oz-results-count {
        text-align: center;
    }

    /* Each select is 354px, shrinking only when the row runs out of room */
    .oz-filters__fields--four,
    .oz-filters__fields--two {
        justify-content: center;
    }

    /* The four filters share the full width; the button keeps its own size */
    .oz-filters__fields--four {
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
        grid-template-rows: none;
        grid-auto-flow: row;
    }

    .oz-filters__fields--two {
        grid-template-columns: repeat(2, minmax(0, 354px)) auto;
    }

    .oz-filters__fields--four .oz-filters__apply,
    .oz-filters__fields--two .oz-filters__apply {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Shared lists, cards and states */

.oz-card-grid,
.oz-tabs ul,
.oz-sort,
.oz-pagination ul,
.oz-fund-card__types {
    margin: 0;
    padding: 0;
    list-style: none;
}

.oz-card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
}

.oz-card {
    position: relative;
    height: 100%;
    border: 1px solid var(--oz-border);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s;
}

.oz-card:hover,
.oz-card:focus-within {
    border-color: var(--oz-orange);
}

.oz-card a:focus {
    outline: none;
}

.oz-card:focus-within {
    box-shadow: 0 0 0 1px var(--oz-orange);
}

.oz-card__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: none;
}

.oz-card__title a {
    color: var(--oz-text);
    text-decoration: underline;
}

/* Centered on its own, whatever the card's row alignment is */
.oz-card__chevron {
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    font-size: 22px;
    color: var(--oz-text);
    transition: color 0.15s;
}

.oz-card:hover .oz-card__chevron,
.oz-card:focus-within .oz-card__chevron {
    color: var(--oz-orange);
}

.oz-empty {
    padding: 40px 15px;
    border: 1px dashed var(--oz-border);
    text-align: center;
}

.oz-empty p {
    margin: 0 0 8px;
}

.oz-empty a {
    color: var(--oz-orange);
    text-decoration: underline;
}

/* Pagination */

.oz-pagination {
    display: flex;
    justify-content: center;
    margin: 28px 0 8px;
}

.oz-pagination ul {
    display: flex;
    border: 1px solid var(--oz-field-border);
}

.oz-pagination li + li {
    border-left: 1px solid var(--oz-field-border);
}

.oz-pagination a,
.oz-pagination li > span {
    display: block;
    min-width: 28px;
    height: 26px;
    padding: 0 6px;
    color: var(--oz-text);
    font-size: 11px;
    line-height: 26px;
    text-align: center;
    text-decoration: none;
}

.oz-pagination a:hover,
.oz-pagination a:focus {
    background: #f2f2f2;
    color: var(--oz-orange);
}

.oz-pagination .is-current {
    color: var(--oz-orange);
    font-weight: 700;
}

.oz-pagination .is-disabled {
    color: #b5b5b5;
}

/* Investment opportunities: cards + map */

.oz-investments {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "map" "list";
}

.oz-investments__map-col {
    grid-area: map;
}

.oz-investments__list {
    grid-area: list;
    min-width: 0;
}

.oz-property-card {
    display: flex;
    flex-direction: column;
    padding: 13px;
}

.oz-property-card__media {
    aspect-ratio: 4 / 3.1;
    overflow: hidden;
    background: #e8e8e8;
}

.oz-property-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oz-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    font-size: 14px;
}

.oz-no-image .fa {
    font-size: 40px;
    color: #a9a9a9;
}

.oz-property-card__body {
    padding: 8px 0px 6px;
    font-size: 14px;
    line-height: 1.45;
}

.oz-property-card__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.oz-property-card__title a {
    color: var(--oz-text);
    text-decoration: none;
}

.oz-property-card:hover .oz-property-card__title a,
.oz-property-card:focus-within .oz-property-card__title a {
    color: var(--oz-orange);
}

.oz-property-card__address {
    margin: 0 0 8px;
    font-size: 16px;
    font-style: normal;
}

.oz-property-card__address span {
    display: block;
}

.oz-property-card__details {
    margin: 0;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.5;
    list-style: disc;
}

.oz-property-card__details li::marker {
    font-size: 0.8em;
}

.oz-map {
    position: relative;
    height: 70vw;
    min-height: 300px;
    max-height: 440px;
    background: #f2f2f2;
}

.oz-map__canvas {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.oz-map__controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oz-map__control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--oz-text);
    border-radius: 50%;
    background: #fff;
    color: var(--oz-text);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.oz-map__control:hover,
.oz-map__control:focus {
    border-color: var(--oz-orange);
    color: var(--oz-orange);
    outline: none;
}

.oz-map__icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The map is already full width on mobile, so there's nothing to expand */
.oz-map__control--expand {
    position: relative;
    display: none;
    margin-bottom: 44px;
}

/* Divider between the expand button and the zoom buttons */
.oz-map__control--expand::after {
    content: "";
    position: absolute;
    top: calc(100% + 22px);
    left: 50%;
    width: 28px;
    height: 2px;
    margin-left: -14px;
    background: var(--oz-text);
}

.oz-map__icon--collapse,
.oz-map__control--expand[aria-pressed="true"] .oz-map__icon--expand {
    display: none;
}

.oz-map__control--expand[aria-pressed="true"] .oz-map__icon--collapse {
    display: block;
}

/* Google's InfoWindow wrapper: even padding all round, no scrollbars */
.oz-map .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 10px;
}

.oz-map .gm-style-iw-d {
    overflow: hidden !important;
}

.oz-map-popup {
    width: 200px;
    font-family: 'Geometria', Arial, Helvetica, sans-serif;
    color: var(--oz-text, #2f2f2f);
}

.oz-map-popup__media {
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    overflow: hidden;
    background: #e8e8e8;
}

.oz-map-popup__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oz-map-popup .oz-no-image {
    font-size: 14px;
}

.oz-map-popup__title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #2f2f2f;
    text-decoration: none;
}

.oz-map-popup__title:hover,
.oz-map-popup__title:focus {
    color: #d23f08;
    text-decoration: underline;
}

.oz-map-popup__address {
    margin: 6px 0 0;
    font-size: 15px;
    font-style: normal;
    line-height: 1.3;
}

.oz-map-popup__address span {
    display: block;
}

.oz-map-popup__details {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.35;
    list-style: disc;
}

.oz-map-popup__details li::marker {
    font-size: 0.8em;
}

@media (min-width: 576px) {
    .oz-card-grid--properties {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .oz-investments {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        grid-template-areas: "list map";
    }

    .oz-investments .oz-map {
        position: sticky;
        top: 16px;
        height: calc(100vh - 32px);
        min-height: 480px;
        max-height: 1000px;
    }

    .oz-map__control--expand {
        display: flex;
    }

    /* Expanded: the map moves above the cards and goes full width */
    .oz-investments.is-map-expanded {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "map" "list";
        gap: 40px;
    }

    .is-map-expanded .oz-map {
        position: relative;
        top: auto;
        height: 70vh;
        max-height: 900px;
    }

    .is-map-expanded .oz-investments__list {
        padding: 0 3%;
    }
}

@media (min-width: 992px) {
    .is-map-expanded .oz-card-grid--properties {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .oz-investments {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .is-map-expanded .oz-card-grid--properties {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .is-map-expanded .oz-card-grid--properties {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1600px) {
    .oz-investments {
        grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    }

    .oz-card-grid--properties {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Experts */

/* Tabs wrap on narrow screens rather than scrolling */
.oz-tabs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    border-bottom: 1px solid var(--oz-border);
}

/* Experts are filtered in place with the hidden attribute */
.oz-directory--experts [hidden] {
    display: none !important;
}

.oz-tabs li {
    flex: 0 0 auto;
}

.oz-tabs a {
    display: block;
    margin-bottom: -1px;
    padding: 4px 2px 6px;
    border-bottom: 4px solid var(--oz-field-border);
    color: var(--oz-text);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.oz-tabs a:hover,
.oz-tabs a:focus {
    color: var(--oz-orange);
}

.oz-tabs a.is-active {
    border-bottom-color: var(--oz-orange);
}

.oz-sort {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-bottom: 28px;
}

.oz-sort a {
    color: var(--oz-text);
    font-size: 12px;
    text-decoration: underline;
}

.oz-sort a.is-active {
    font-weight: 700;
}

.oz-sort .fa {
    display: inline-block;
    margin-left: 6px;
    text-decoration: none;
}

.oz-person-card {
    display: flex;
    align-items: start;
    gap: 20px;
    min-height: 92px;
    padding: 20px;
}

.oz-person-card__initials {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 50%;
    background: var(--oz-navy);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    /* Geometria's capitals sit above the middle of the line box, so nudge them down to look centered */
    line-height: 1;
    padding-top: 0.12em;
    transition: background-color 0.15s;
}
.oz-person-card:hover .oz-person-card__initials,
.oz-person-card:focus-within .oz-person-card__initials {
    background: var(--oz-orange);
}

.oz-person-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.oz-person-card__meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .oz-card-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
    }

    .oz-tabs ul {
        justify-content: center;
        gap: 0 32px;
    }

    .oz-tabs a {
        font-size: 30px;
    }
}

/* Funds */

.oz-fund-card {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 20px;
}

.oz-fund-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.oz-fund-card .oz-card__title {
    font-size: 16px;
}

.oz-fund-card__capital {
    margin: 0 0 2px;
    font-size: 14px;
}

.oz-fund-card__types li {
    font-size: 14px;
    line-height: 1.45;
}

.oz-fund-card__types .fa {
    width: 14px;
    font-size: 10px;
}

/* Investment opportunity detail page */

.oz-detail {
    padding-top: 52px;
    padding-bottom: 120px;
}

.oz-detail__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 20px;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

.oz-detail__heading-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.oz-detail__map {
    height: 260px;
    min-height: 0;
    max-height: none;
    margin-bottom: 32px;
}

.oz-detail__columns {
    row-gap: 12px;
}

.oz-detail__title {
    margin: 0 0 12px;
    color: var(--oz-navy);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.oz-detail__address {
    margin: 0 0 18px;
    font-size: 16px;
    font-style: normal;
    line-height: 1.6;
}

.oz-detail__address span {
    display: block;
}

.oz-detail__description {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
}

.oz-detail__description p {
    margin: 0 0 12px;
    font-size: inherit;
    line-height: inherit;
}

.oz-detail__description > :last-child {
    margin-bottom: 0;
}

.oz-detail__facts {
    margin: 0 0 18px;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    list-style: none;
}

.oz-detail__website {
    margin: 0 0 24px;
    font-size: 16px;
}

.oz-detail__website a,
.oz-detail__contact a {
    color: var(--oz-text);
    text-decoration: underline;
    font-weight: 400;
}

.oz-detail__website a:hover,
.oz-detail__contact a:hover {
    color: var(--oz-orange);
}

.oz-detail__contact {
    max-width: 420px;
    padding: 18px 0 2px;
    border-top: 1px solid var(--oz-field-border);
    border-bottom: 1px solid var(--oz-field-border);
}

.oz-detail__subheading {
    margin: 0 0 10px;
    color: var(--oz-navy);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.oz-detail__section {
    margin-bottom: 32px;
}

.oz-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

.oz-gallery__item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #e8e8e8;
    aspect-ratio: 1 / 0.9;
    overflow: hidden;
    cursor: zoom-in;
}

/* A lone image (including one left after broken links drop out) spans the row, shaped like the video below it */
.oz-gallery > li:only-child {
    grid-column: 1 / -1;
}

.oz-gallery > li:only-child .oz-gallery__item {
    aspect-ratio: 16 / 9;
}

.oz-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s;
}

.oz-gallery__item:hover img,
.oz-gallery__item:focus img {
    opacity: 0.85;
}

.oz-video {
    margin-bottom: 6px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.oz-video__poster,
.oz-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.oz-video__poster {
    position: relative;
    padding: 0;
    background: #1a1a1a;
    cursor: pointer;
}

.oz-video__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oz-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: rgba(217, 217, 217, 0.9);
    color: #000;
    transition: background-color 0.15s, color 0.15s;
}

/* 27px wide triangle with softened corners, nudged right so it looks centred in the circle */
.oz-video__play svg {
    display: block;
    width: 27px;
    height: 31px;
    margin-left: 5px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linejoin: round;
}

.oz-video__poster:hover .oz-video__play,
.oz-video__poster:focus .oz-video__play {
    background: #d9d9d9;
    color: var(--oz-orange);
}

.oz-file-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--oz-border);
    list-style: none;
}

.oz-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-bottom: 1px solid var(--oz-border);
}

.oz-file__icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 4px;
    background: #ececec;
    color: #555;
}

/* 22px icon area with 2px of padding, so the drawing itself is 18px */
.oz-file__type-icon {
    display: block;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    padding: 2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oz-file__body {
    flex: 1 1 auto;
    min-width: 0;
}

.oz-file__name {
    display: block;
    color: var(--oz-text);
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
}

.oz-file__meta {
    display: block;
    color: #777;
    font-size: 14px;
    letter-spacing: 0.03em;
}

/* 10px above and below sets the row height */
.oz-file__action {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin: 10px 4px 10px 0;
    border: 1.5px solid var(--oz-navy);
    border-radius: 50%;
    color: var(--oz-navy);
    transition: border-color 0.15s, color 0.15s;
}

.oz-file__action-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oz-file:hover .oz-file__name,
.oz-file:focus-within .oz-file__name,
.oz-file:hover .oz-file__action,
.oz-file:focus-within .oz-file__action {
    border-color: var(--oz-orange);
    color: var(--oz-orange);
}

/* Image viewer: a white frame over the page, with the controls sitting on the image */
.oz-lightbox {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 10px;
    border: 0;
    background: #fff;
    overflow: hidden;
}

.oz-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.oz-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(926px, calc(100vw - 52px));
    max-height: calc(100vh - 52px);
    margin: 0;
}

.oz-lightbox__button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d9d9d9;
    color: #000;
    cursor: pointer;
    transition: color 0.15s;
}

.oz-lightbox__icon {
    display: block;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The close button gets focus as the viewer opens, so only highlight keyboard focus */
.oz-lightbox__button:focus {
    outline: none;
}

.oz-lightbox__button:hover,
.oz-lightbox__button:focus-visible {
    color: #d23f08;
}

.oz-lightbox__button:focus-visible {
    outline: 2px solid #d23f08;
    outline-offset: 2px;
}

.oz-lightbox__button--close {
    top: 18px;
    right: 18px;
}

.oz-lightbox__button--prev,
.oz-lightbox__button--next {
    top: 50%;
    margin-top: -24px;
}

.oz-lightbox__button--prev {
    left: 18px;
}

.oz-lightbox__button--next {
    right: 18px;
}

@media (min-width: 768px) {
    .oz-lightbox {
        max-width: calc(100vw - 64px);
        max-height: calc(100vh - 64px);
        padding: 20px;
    }

    .oz-lightbox__image {
        max-width: min(926px, calc(100vw - 104px));
        max-height: calc(100vh - 104px);
    }

    .oz-lightbox__button--close {
        top: 36px;
        right: 36px;
    }

    .oz-lightbox__button--prev {
        left: 36px;
    }

    .oz-lightbox__button--next {
        right: 36px;
    }
}

@media (min-width: 768px) {
    .oz-detail__heading {
        font-size: 36px;
    }

    .oz-detail__map {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .oz-detail__columns > :first-child {
        padding-right: 48px;
    }
}

/* Blocks from the directory's "Detail Page Blocks", shown under every listing */

.oz-detail__blocks {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--oz-field-border);
}

/* On their own (on a flex page, say) the blocks sit in the page width */
.oz-block {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px 40px;
}

.oz-detail__blocks .oz-block {
    max-width: 860px;
    margin: 0;
    padding: 0;
}

.oz-detail__blocks .oz-block:not(:last-child) {
    margin-bottom: 48px;
}

.oz-block__title {
    margin: 0 0 12px;
    color: var(--oz-navy);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.oz-block__description {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.6;
}

.oz-block__description p {
    margin: 0 0 12px;
    font-size: inherit;
    line-height: inherit;
}

.oz-block__description > :last-child {
    margin-bottom: 0;
}

/* Events (Opportunity Zones Events block): two cards, then a short list */

.oz-events__cards {
    display: grid;
    gap: 16px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.oz-event-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
    border-left: 4px solid var(--oz-orange);
    background: var(--oz-grey);
}

.oz-event-card__date {
    display: flex;
    flex: 0 0 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 68px;
    border: 1px solid var(--oz-text);
    border-radius: 4px;
    line-height: 1;
    text-align: center;
    background-color: #ffffff;
}

.oz-event-card__month {
    color: var(--oz-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oz-event-card__day {
    margin-top: 2px;
    color: var(--oz-text);
    font-size: 28px;
    font-weight: 500;
}

/* Fills the row beside the date on phones so the button wraps underneath */
.oz-event-card__body {
    flex: 1 1 calc(100% - 76px);
    min-width: 0;
}

.oz-event-card__eyebrow {
    margin: 0 0 4px;
    color: var(--oz-orange);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.oz-event-card__title {
    margin: 0 0 4px;
    color: var(--oz-text);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.oz-event-card__meta {
    margin: 0;
    color: #444;
    font-size: 13px;
    line-height: 1.5;
}

.oz-event-card__meta span + span::before,
.oz-events__item-location::before {
    content: "\00b7";
    margin: 0 6px;
}

.oz-event-card__description {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Under the text on phones, on the right of the card from tablet up */
.oz-event-card__button {
    flex: 0 0 auto;
    margin-left: 76px;
    padding: 10px 18px;
    border-radius: 2px;
    background: var(--oz-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.15s;
}

.oz-event-card__button:hover,
.oz-event-card__button:focus {
    background: var(--oz-navy);
    color: #fff;
    text-decoration: none;
}

.oz-events__subheading {
    margin: 0 0 10px;
    color: var(--oz-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.oz-events__list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--oz-border);
    list-style: none;
}

.oz-events__item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--oz-border);
}

.oz-events__item-date {
    flex: 0 0 64px;
    color: var(--oz-text);
    font-size: 14px;
    font-weight: 700;
}

.oz-events__item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.oz-events__item-title {
    color: var(--oz-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

a.oz-events__item-title:hover,
a.oz-events__item-title:focus {
    color: var(--oz-orange);
    text-decoration: underline;
}

.oz-events__item-location {
    color: #555;
    font-size: 14px;
}

/* "See all events" link on the Events block's featuredEvents4 design */
.oz-events__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--oz-orange);
    font-weight: 700;
    text-decoration: none;
}

.oz-events__more:hover,
.oz-events__more:focus {
    color: var(--oz-navy);
}

@media (min-width: 768px) {
    .oz-event-card {
        flex-wrap: nowrap;
        gap: 20px;
        padding: 20px 24px;
    }

    .oz-event-card__date {
        flex-basis: 64px;
        height: 70px;
    }

    .oz-event-card__body {
        flex-basis: 0;
    }

    .oz-event-card__button {
        align-self: center;
        margin-left: 12px;
    }

    .oz-events__item-date {
        flex-basis: 70px;
    }
}

/* Expert and fund detail pages */

.oz-profile {
    margin-top: 48px;
}

.oz-profile__name {
    margin: 0 0 8px;
    color: var(--oz-orange);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.oz-profile .oz-detail__facts {
    margin-bottom: 0;
    line-height: 1.4;
}

.oz-profile a,
.oz-profile__details a:not(.oz-file__name) {
    color: var(--oz-text);
    font-weight: 400;
    text-decoration: underline;
}

.oz-profile a:hover,
.oz-profile a:focus,
.oz-profile__details a:not(.oz-file__name):hover {
    color: var(--oz-orange);
}

.oz-profile a.oz-profile__phone {
    text-decoration: none;
}

/* Stacked on phones, side by side with a dividing line from tablet up */
.oz-profile__contact {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--oz-field-border);
}

.oz-profile__details {
    max-width: 560px;
    margin-top: 32px;
}

.oz-profile__services {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.6;
}

.oz-profile__group + .oz-profile__group {
    margin-top: 12px;
}

.oz-profile__group-heading {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.oz-profile__group-heading + .oz-file-list {
    margin-top: 8px;
}

.oz-profile__group + .oz-profile__group-heading {
    margin-top: 20px;
}

.oz-checklist {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
    list-style: none;
}

.oz-checklist li {
    position: relative;
    padding-left: 22px;
}

.oz-checklist__icon {
    position: absolute;
    top: 0.25em;
    left: 0;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oz-detail--profile .oz-detail__blocks {
    margin-top: 64px;
}

/* Fund details: label, then the answer with a check */
.oz-profile__facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 16px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.oz-profile__facts dt {
    font-weight: 400;
}

.oz-profile__facts dd {
    position: relative;
    margin: 0;
    padding-left: 22px;
}

.oz-profile__facts + .oz-profile__group {
    margin-top: 28px;
}

.oz-profile__group-heading + .oz-checklist {
    margin-top: 4px;
}

@media (min-width: 768px) {
    .oz-profile__facts {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .oz-profile {
        margin-top: 64px;
    }

    .oz-profile__summary,
    .oz-profile__contact {
        padding-bottom: 24px;
    }

    .oz-profile__contact {
        margin-top: 0;
        padding-top: 0;
        padding-left: 22px;
        border-top: 0;
        border-left: 1px solid var(--oz-field-border);
    }

    .oz-detail--profile .oz-detail__blocks {
        margin-top: 80px;
    }
}

/* Gated form (Views/Partials/OppZones/_Gate.cshtml): opens over the directory when a listing is clicked, and over
   a detail page until the visitor has filled it out */
/* The dialog covers the window and scrolls when the form is taller than it, with the panel as the white card */
.oz-gate {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 16px;
    border: 0;
    background: transparent;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.oz-gate[open] {
    display: flex;
}

.oz-gate::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

/* The dialog itself takes focus when it opens (autofocus), so there's no stray focus ring or phone keyboard */
.oz-gate:focus {
    outline: 0;
}

/* The detail page is still underneath, so blur it as well */
.oz-gate--page::backdrop {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

html:has(.oz-gate[open]) {
    overflow: hidden;
}

/* Auto margins center the card, and keep its top reachable when it's taller than the window */
.oz-gate__panel {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: auto;
    padding: 64px 24px 40px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.oz-gate__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
}

.oz-gate__close:hover,
.oz-gate__close:focus-visible {
    color: var(--oz-orange);
}

.oz-gate__close-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.oz-gate__title {
    margin: 0 0 10px;
    color: var(--oz-text);
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.oz-gate__description {
    margin-bottom: 36px;
    color: var(--oz-text);
    font-size: 15px;
    line-height: 1.65;
}

.oz-gate__description > :last-child {
    margin-bottom: 0;
}

.oz-gate__error {
    margin: 16px 0 0;
    color: #b00020;
    font-size: 15px;
}

.oz-gate.is-submitting .oz-gate__form {
    opacity: 0.6;
    pointer-events: none;
}

/* Umbraco Forms default theme markup, laid out in one column like the comp */
.oz-gate .umbraco-forms-form {
    padding: 0;
}

.oz-gate .umbraco-forms-hidden {
    display: none;
}

.oz-gate .umbraco-forms-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.oz-gate .row-fluid {
    margin: 0;
}

.oz-gate .umbraco-forms-container,
.oz-gate .umbraco-forms-navigation > div {
    float: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.oz-gate .umbraco-forms-field {
    margin-bottom: 16px;
}

/* The space above the buttons comes from the navigation alone */
.oz-gate .umbraco-forms-field:last-child {
    margin-bottom: 0;
}

/* The Country Province Dropdown field holds two dropdowns, so space the second like a field of its own. Its label
   is a plain (inline) label, and stays hidden (d-none) until a country with states is picked. */
.oz-gate .region-label:not(.d-none) {
    display: block;
    margin-top: 16px;
}

/* Includes the labels some field types (like Country Province Dropdown) put inside the field itself */
.oz-gate label.umbraco-forms-label,
.oz-gate .umbraco-forms-legend,
.oz-gate .umbraco-forms-field-wrapper > label {
    display: block;
    margin: 0 0 6px;
    color: var(--oz-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.oz-gate .umbraco-forms-indicator {
    color: var(--oz-orange);
}

.oz-gate .umbraco-forms-form input.text,
.oz-gate .umbraco-forms-form input[type="text"],
.oz-gate .umbraco-forms-form input[type="email"],
.oz-gate .umbraco-forms-form input[type="tel"],
.oz-gate .umbraco-forms-form input[type="number"],
.oz-gate .umbraco-forms-form textarea,
.oz-gate .umbraco-forms-form select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: none !important;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--oz-field-border);
    border-radius: 0;
    background-color: #fff;
    color: var(--oz-text);
    font: inherit;
    font-size: 15px;
    box-shadow: none;
}

.oz-gate .umbraco-forms-form textarea {
    height: 120px;
    padding: 8px 12px;
}

.oz-gate .umbraco-forms-form select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    background-position: right 18px center;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.oz-gate .umbraco-forms-form input:focus,
.oz-gate .umbraco-forms-form textarea:focus,
.oz-gate .umbraco-forms-form select:focus {
    border-color: var(--oz-text);
    outline: 0;
}

.oz-gate .umbraco-forms-form input.input-validation-error,
.oz-gate .umbraco-forms-form textarea.input-validation-error,
.oz-gate .umbraco-forms-form select.input-validation-error {
    border-color: #b00020;
    background-color: #fff;
}

.oz-gate .field-validation-error,
.oz-gate .validation-summary-errors {
    display: block;
    margin-top: 6px;
    color: #b00020 !important;
    font-size: 14px;
}

.oz-gate .checkboxlist,
.oz-gate .radiobuttonlist {
    float: none;
    padding: 0;
}

.oz-gate .checkboxlist label,
.oz-gate .radiobuttonlist label {
    float: none;
    font-size: 16px;
}

.oz-gate .umbraco-forms-navigation {
    margin-top: 45px;
    padding: 0;
}

.oz-gate .umbraco-forms-navigation .btn {
    min-width: 190px;
    height: 46px;
    margin: 0 8px 0 0;
    padding: 0 28px;
    border: 0;
    border-radius: 0;
    background: var(--oz-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.oz-gate .umbraco-forms-navigation .btn:hover,
.oz-gate .umbraco-forms-navigation .btn:focus-visible {
    background: var(--oz-navy);
}

.oz-gate .umbraco-forms-navigation .btn.prev {
    border: 1px solid var(--oz-text);
    background: #fff;
    color: var(--oz-text);
}

.oz-gate .umbraco-forms-navigation .btn:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (min-width: 768px) {
    .oz-gate {
        padding: 32px;
    }

    .oz-gate__panel {
        padding: 112px 60px 100px;
    }

    .oz-gate__close {
        top: 34px;
        right: 48px;
    }

    .oz-gate__title {
        font-size: 36px;
    }

    .oz-gate__description {
        margin-bottom: 48px;
        font-size: 15px;
    }

    .oz-gate label.umbraco-forms-label,
    .oz-gate .umbraco-forms-legend,
    .oz-gate .umbraco-forms-field-wrapper > label {
        font-size: 15px;
    }

    .oz-gate .umbraco-forms-navigation .btn {
        min-width: 222px;
        height: 49px;
    }
}
