/* Styles apply only to the public member detail template. */
.cwi-member-profile {
    --cwi-ink: #152b43;
    --cwi-muted: #536578;
    --cwi-blue: #174f86;
    --cwi-border: #dde5eb;
    --cwi-soft: #f3f7fa;
}
.cwi-member-profile .elementor-location-header .elementor-element-6ace5c07,
.cwi-member-profile #content > .page-header { display: none; }
.cwi-member-profile .elementor-location-header .elementor-element-8175ada { margin-bottom: 0; }
.cwi-member-profile .elementor-location-header .header { background: #fff !important; border-bottom: 1px solid var(--cwi-border); }
.cwi-member-profile .elementor-location-header .header .logo { filter: none; }
.cwi-member-profile .elementor-location-header .header .menu a { color: var(--cwi-ink) !important; }
.cwi-member-profile .elementor-location-header .header .menu a.elementor-sub-item { color: #fff !important; }
.cwi-member-profile .elementor-location-header .header .menu .elementor-nav-menu--dropdown a { color: #fff !important; }
.cwi-member-profile .elementor-location-header .header svg.e-eicon-cart-medium,
.cwi-member-profile .elementor-location-header .header svg.e-fas-caret-down { fill: var(--cwi-ink) !important; }
.cwi-member-profile .elementor-location-header .header .elementor-menu-cart__toggle .elementor-button-text { color: var(--cwi-ink); }
.cwi-member-profile #content.site-main {
    max-width: 1160px;
    width: calc(100% - 96px);
    margin: 0 auto;
    padding: 32px 0 72px;
}
.cwi-member-profile .cwi-profile.wpbdp-listing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 64px;
    padding: 0;
    margin: 0;
    border: 0;
    background: #fff;
    color: var(--cwi-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}
.cwi-profile *, .cwi-profile *::before, .cwi-profile *::after { box-sizing: border-box; }
.cwi-profile a { color: var(--cwi-blue); text-underline-offset: 4px; font-family: inherit; }
.cwi-profile a:hover { color: #0b345d; text-decoration: underline; }
.cwi-profile a:focus-visible { outline: 3px solid #2476c0; outline-offset: 4px; border-radius: 3px; }
.cwi-profile .listing-actions { margin: 0; padding: 0; gap: 12px; align-items: center; }
.cwi-profile-navigation { padding-bottom: 28px; grid-column: 1 / -1; }
.cwi-profile .wpbdp-goback { order: -1; }
.cwi-profile .wpbdp-goback a { font-size: 14px; font-weight: 600; text-decoration: none; }
.cwi-profile .wpbdp-goback a::before { content: "\2190"; margin-right: 10px; font-size: 18px; }
.cwi-profile-heading { grid-column: 1; display: flex; gap: 28px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--cwi-border); }
.cwi-profile-heading-copy { min-width: 0; flex: 1; }
.cwi-profile .cwi-profile-eyebrow { margin: 0 0 14px; color: var(--cwi-muted); font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: 2px; }
.cwi-profile h1#cwi-profile-title { margin: 0; padding: 0; color: var(--cwi-ink); font-size: clamp(34px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -1.3px; font-weight: 700; overflow-wrap: anywhere; }
.cwi-profile-category { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cwi-profile-category a { display: inline-block; background: #eaf2f8; border-radius: 4px; padding: 4px 11px; font-size: 12px; font-weight: 600; line-height: 1.6; text-decoration: none; }
.cwi-profile-summary { max-width: 760px; margin-top: 22px; color: var(--cwi-muted); font-size: 19px; line-height: 1.65; }
.cwi-profile-summary p { margin: 0; }
.cwi-profile-image { flex: 0 0 170px; }
.cwi-profile-image img { max-width: 170px; max-height: 170px; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.cwi-profile-image .wpbdp-single-thumbnail, .cwi-profile-image .wpbdp-excerpt-thumbnail { float: none; margin: 0; padding: 0; }
.cwi-profile-columns { display: contents; }
.cwi-member-profile .cwi-profile:has(.cwi-profile-columns-single) { grid-template-columns: minmax(0, 1fr); }
.cwi-profile-story { grid-column: 1; min-width: 0; padding-top: 28px; }
.cwi-profile h2 { color: var(--cwi-ink); font-size: 23px; line-height: 1.35; letter-spacing: -.35px; font-weight: 700; margin: 0 0 18px; }
.cwi-profile-prose { color: #425366; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.cwi-profile-prose p { margin: 0 0 18px; }
.cwi-profile-prose img, .cwi-profile-prose iframe { max-width: 100%; }
.cwi-profile-contact { grid-column: 2; grid-row: 2 / span 2; align-self: start; padding: 28px; border: 1px solid var(--cwi-border); border-radius: 12px; background: var(--cwi-soft); }
.cwi-profile-contact h2 { font-size: 21px; margin-bottom: 20px; }
.cwi-profile-website a { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 6px; background: var(--cwi-blue); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: center; overflow-wrap: anywhere; text-decoration: none; }
.cwi-profile-website a::after { content: "\2197"; font-size: 18px; }
.cwi-profile-website a:hover { background: #0c3d6c; color: #fff; text-decoration: none; }
.cwi-profile-detail { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--cwi-border); color: var(--cwi-ink); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.cwi-member-profile .cwi-profile .cwi-profile-detail h3 { margin: 0 0 6px; color: var(--cwi-muted); font-size: 11px; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.cwi-profile-phone { display: inline-flex; min-height: 30px; align-items: center; font-weight: 600; text-decoration: none; }
.cwi-profile address { font-style: normal; }
.cwi-profile-zip { display: block; }
.cwi-profile-more { margin-top: 28px; }
.cwi-profile-more .wpbdp-field { margin: 0 0 18px; }
.cwi-profile-more .field-label { display: block; color: var(--cwi-muted); font-size: 13px; margin-bottom: 4px; }
.cwi-profile-more .value { display: block; }
@media (max-width: 900px) {
    .cwi-member-profile #content.site-main { width: calc(100% - 48px); }
    .cwi-member-profile .cwi-profile.wpbdp-listing { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 32px; }
    .cwi-profile-contact { padding: 24px; }
}
@media (max-width: 680px) {
    .cwi-member-profile #content.site-main { width: calc(100% - 40px); padding: 24px 0 48px; }
    .cwi-member-profile .cwi-profile.wpbdp-listing { display: block; }
    .cwi-profile-navigation { padding-bottom: 26px; }
    .cwi-profile-heading { align-items: flex-start; flex-direction: column-reverse; gap: 24px; padding-bottom: 28px; }
    .cwi-profile-heading-copy { width: 100%; }
    .cwi-profile h1#cwi-profile-title { font-size: 36px; letter-spacing: -.8px; }
    .cwi-profile-summary { font-size: 17px; margin-top: 18px; }
    .cwi-profile-columns { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; }
    .cwi-profile-story { padding-top: 0; }
    .cwi-profile-story, .cwi-profile-contact { width: 100%; }
    .cwi-profile h2 { font-size: 21px; }
    .cwi-profile-image { flex: auto; }
    .cwi-profile-image img { max-height: 110px; max-width: 140px; }
    .cwi-profile-prose { font-size: 16px; }
}
