.cbl-page + * {
    clear: both;
}

body #header {
    border-bottom: 1px solid #d9e3ee;
    background: #ffffff;
    font-family: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.cbl-page),
body:has(.cbl-page) .wp-site-blocks {
    background: #f6f8fc;
}

body:has(.cbl-page) > footer,
body:has(.cbl-page) .wp-site-blocks > footer.wp-block-template-part {
    display: none !important;
}

body:has(.cbl-page) header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(217, 227, 238, .9);
    background: rgba(246, 248, 252, .94);
    backdrop-filter: blur(14px);
    font-family: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cbl-theme-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(217, 227, 238, .9);
    background: rgba(246, 248, 252, .94);
    backdrop-filter: blur(14px);
    font-family: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cbl-theme-header .container {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cbl-theme-brand {
    color: #17151c;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.cbl-theme-header nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.cbl-theme-header nav a {
    color: #2b313b;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.cbl-theme-header nav a:first-child {
    border-radius: 10px;
    background: #0b5cad;
    padding: 10px 14px;
    color: #ffffff;
}

body:has(.cbl-page) header.wp-block-template-part > * {
    max-width: 1180px;
    margin-inline: auto;
}

body:has(.cbl-page) header.wp-block-template-part a {
    color: #17151c;
    text-decoration: none;
}

body:has(.cbl-page) header.wp-block-template-part .wp-block-site-title,
body:has(.cbl-page) header.wp-block-template-part .wp-block-site-title a {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
}

body #headerimg {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
}

body #headerimg h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0;
}

body #headerimg h1 a {
    color: #0b5cad;
    text-decoration: none;
    font-weight: 800;
}

body #headerimg h1 a:hover {
    color: #073f78;
}

body > hr,
#page > hr {
    display: none;
}

.cbl-page {
    --cbl-ink: #172133;
    --cbl-muted: #637083;
    --cbl-line: #d9e3ee;
    --cbl-soft: #f6f8fc;
    --cbl-softer: #eef6f8;
    --cbl-accent: #0b5cad;
    --cbl-accent-dark: #073f78;
    --cbl-teal: #0e8f7e;
    --cbl-panel: #ffffff;
    --bs-primary: var(--cbl-accent);
    --bs-primary-rgb: 11, 92, 173;
    min-height: 100vh;
    background: var(--cbl-soft);
    color: var(--cbl-ink);
    font-family: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home .wp-block-post-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cbl-page a {
    color: var(--cbl-accent);
    text-decoration: none;
}

.cbl-page a:hover {
    text-decoration: underline;
}

.cbl-page a:focus-visible,
.cbl-page button:focus-visible,
.cbl-page .btn:focus-visible,
.cbl-page input:focus-visible,
body #headerimg h1 a:focus-visible {
    outline: 3px solid rgba(14, 143, 126, .38);
    outline-offset: 3px;
    box-shadow: none;
}

.cbl-hero,
.cbl-listing-hero,
.cbl-profile-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--cbl-line);
    background:
        radial-gradient(circle at 12% 18%, rgba(47, 107, 237, .16), transparent 30%),
        linear-gradient(180deg, #f6f8fc 0%, #f6f8fc 72%, #ffffff 100%);
    padding: 74px 0 48px;
}

.cbl-hero::after,
.cbl-listing-hero::after,
.cbl-profile-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cbl-accent), var(--cbl-teal));
}

.cbl-hero h1,
.cbl-listing-hero h1,
.cbl-profile-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(42px, 5.4vw, 76px);
    line-height: 1.04;
    letter-spacing: 0;
}

.cbl-kicker {
    display: inline-flex;
    margin: 0 0 12px;
    border-left: 4px solid var(--cbl-teal);
    padding-left: 10px;
    color: var(--cbl-accent-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cbl-lede,
.cbl-location {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--cbl-muted);
    font-size: 18px;
    line-height: 1.58;
}

.cbl-hero-note,
.cbl-profile-badge {
    border: 1px solid rgba(11, 92, 173, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 35px rgba(23, 33, 51, .08);
    padding: 18px;
    color: var(--cbl-muted);
    font-size: 15px;
    line-height: 1.5;
}

.cbl-search-panel {
    margin-top: 28px;
    border: 1px solid var(--cbl-line);
    border-radius: 18px;
    background: var(--cbl-panel);
    box-shadow: 0 18px 48px rgba(23, 33, 51, .09);
    padding: 18px;
}

.cbl-hero-center {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cbl-hero-center .cbl-kicker {
    margin-inline: auto;
}

.cbl-hero-center h1,
.cbl-hero-center .cbl-lede {
    margin-inline: auto;
}

.cbl-hero-search {
    margin-top: 0;
}

.cbl-hero-center .cbl-hero-search {
    margin-top: 30px;
    text-align: left;
}

.cbl-stats-centered {
    max-width: 760px;
    margin-inline: auto;
}

.cbl-search-panel .form-label {
    color: var(--cbl-muted);
    font-size: 13px;
    font-weight: 800;
}

.cbl-search-panel .form-control {
    border-color: var(--cbl-line);
    border-radius: 6px;
    color: var(--cbl-ink);
}

.cbl-search-panel .form-control:focus {
    border-color: var(--cbl-accent);
    box-shadow: 0 0 0 .2rem rgba(11, 92, 173, .16);
}

.cbl-button,
.cbl-page .btn-primary {
    border-color: var(--cbl-accent);
    background: var(--cbl-accent);
    color: #fff;
    font-weight: 800;
}

.cbl-button:hover,
.cbl-page .btn-primary:hover {
    border-color: var(--cbl-accent-dark);
    background: var(--cbl-accent-dark);
    color: #fff;
    text-decoration: none;
}

.cbl-stats {
    margin-top: 26px;
}

.cbl-stat,
.cbl-filter-panel,
.cbl-contact-card,
.cbl-section,
.cbl-card {
    border: 1px solid var(--cbl-line);
    border-radius: 18px;
    background: var(--cbl-panel);
    box-shadow: 0 10px 28px rgba(23, 33, 51, .055);
}

.cbl-stat {
    height: 100%;
    padding: 18px;
}

.cbl-stat strong {
    display: block;
    color: var(--cbl-accent-dark);
    font-size: 30px;
    line-height: 1;
}

.cbl-stat span {
    color: var(--cbl-muted);
    font-size: 14px;
}

.cbl-main-band {
    padding: 48px 0 72px;
    background: var(--cbl-soft);
}

.cbl-filter-panel,
.cbl-contact-card,
.cbl-section {
    padding: 22px;
}

.cbl-filter-panel.position-sticky,
.cbl-contact-card.position-sticky {
    top: 24px;
}

.cbl-filter-panel h2,
.cbl-contact-card h2,
.cbl-section h2 {
    margin: 0 0 16px;
    color: var(--cbl-ink);
    font-size: 21px;
    line-height: 1.22;
}

.cbl-link-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cbl-link-list-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cbl-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.cbl-card-grid {
    display: grid;
    gap: 16px;
}

.cbl-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cbl-map-band {
    padding: 28px 0 18px;
    background: var(--cbl-soft);
}

.cbl-map-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 28px;
    overflow: hidden;
    border: 1px solid var(--cbl-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(23, 33, 51, .08);
    padding: 28px;
}

.cbl-map-card-compact {
    margin-top: -18px;
}

.cbl-map-page .cbl-map-band {
    padding-top: 0;
    padding-bottom: 72px;
}

.cbl-map-page .cbl-map-card {
    min-height: 620px;
}

.cbl-map-search {
    margin-top: 24px;
    border: 1px solid var(--cbl-line);
    border-radius: 16px;
    background: #f6f8fc;
    padding: 12px;
}

.cbl-map-search .form-control {
    min-height: 46px;
    border-color: var(--cbl-line);
    border-radius: 10px;
}

.cbl-map-copy h2 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: 0;
}

.cbl-map-copy p {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--cbl-muted);
    font-size: 17px;
    line-height: 1.6;
}

.cbl-city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.cbl-city-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--cbl-line);
    border-radius: 999px;
    background: #f6f8fc;
    padding: 0 14px;
    color: var(--cbl-ink);
    font-size: 14px;
    font-weight: 800;
}

.cbl-city-pills a:hover {
    border-color: var(--cbl-accent);
    color: var(--cbl-accent-dark);
    text-decoration: none;
}

.cbl-map-visual {
    position: relative;
    min-height: 310px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(11, 92, 173, .10), transparent 45%),
        linear-gradient(180deg, #edf3fa 0%, #f8fbff 100%);
}

.cbl-map-visual::before {
    content: "";
    position: absolute;
    inset: 54px 34px 48px;
    border-radius: 45% 55% 42% 58%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15)),
        #dfeaf5;
    clip-path: polygon(5% 54%, 18% 42%, 25% 22%, 42% 16%, 58% 24%, 72% 18%, 94% 35%, 84% 58%, 90% 76%, 64% 70%, 52% 86%, 32% 74%, 16% 80%);
    box-shadow: inset 0 0 0 1px rgba(11, 92, 173, .10);
}

.cbl-map-pin {
    position: absolute;
    z-index: 2;
    width: 16px;
    height: 16px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--cbl-accent);
    box-shadow: 0 8px 20px rgba(11, 92, 173, .26);
}

.cbl-pin-vancouver { left: 20%; top: 47%; }
.cbl-pin-calgary { left: 31%; top: 45%; }
.cbl-pin-toronto { left: 66%; top: 55%; }
.cbl-pin-montreal { left: 73%; top: 49%; }
.cbl-pin-halifax { left: 86%; top: 58%; }

.cbl-map-label {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(11, 92, 173, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    padding: 8px 12px;
    color: var(--cbl-muted);
    font-size: 13px;
    font-weight: 800;
}

.cbl-label-west { left: 12%; bottom: 24px; }
.cbl-label-east { right: 12%; top: 24px; }

.cbl-site-footer {
    border-top: 1px solid var(--cbl-line);
    background: #ffffff;
    padding: 56px 0 28px;
}

.cbl-site-footer h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 800;
}

.cbl-site-footer h3 {
    margin: 0 0 12px;
    color: var(--cbl-ink);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cbl-site-footer p {
    max-width: 440px;
    margin: 0;
    color: var(--cbl-muted);
    line-height: 1.6;
}

.cbl-site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--cbl-muted);
    font-weight: 700;
}

.cbl-footer-bottom {
    margin-top: 38px;
    border-top: 1px solid var(--cbl-line);
    padding-top: 18px;
    color: #7a8594;
    font-size: 14px;
}

.cbl-card:hover {
    border-color: rgba(11, 92, 173, .35);
    box-shadow: 0 16px 42px rgba(23, 33, 51, .09);
    transform: translateY(-1px);
}

.cbl-card-top {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.cbl-avatar {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cbl-accent), var(--cbl-teal));
    color: #fff;
    font-weight: 800;
}

.cbl-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.cbl-card p {
    margin: 0;
}

.cbl-card-meta,
.cbl-card-location,
.cbl-card-firm {
    color: var(--cbl-muted);
}

.cbl-card-practice {
    color: var(--cbl-ink);
    font-size: 14px;
    line-height: 1.5;
}

.cbl-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.cbl-action {
    border-radius: 6px;
    font-weight: 800;
}

.cbl-page .btn-outline-secondary {
    border-color: var(--cbl-line);
    color: var(--cbl-ink);
}

.cbl-page .btn-outline-secondary:hover {
    border-color: var(--cbl-accent);
    background: var(--cbl-soft);
    color: var(--cbl-accent-dark);
}

.cbl-profile-main {
    display: grid;
    gap: 16px;
}

.cbl-contact-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.cbl-contact-card dt {
    color: var(--cbl-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cbl-contact-card dd {
    margin: -6px 0 4px;
    overflow-wrap: anywhere;
}

.cbl-section p {
    color: var(--cbl-muted);
    line-height: 1.62;
}

.cbl-section ul {
    margin: 0;
}

.cbl-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.cbl-tag-list li {
    border: 1px solid rgba(14, 143, 126, .22);
    border-radius: 999px;
    background: var(--cbl-softer);
    padding: 7px 11px;
    color: var(--cbl-ink);
    font-size: 14px;
}

@media (max-width: 991px) {
    .cbl-hero,
    .cbl-listing-hero,
    .cbl-profile-hero {
        padding: 44px 0 30px;
    }

    .cbl-link-list-columns {
        grid-template-columns: 1fr;
    }

    .cbl-map-card {
        grid-template-columns: 1fr;
    }

    .cbl-map-visual {
        min-height: 260px;
    }

    .cbl-filter-panel.position-sticky,
    .cbl-contact-card.position-sticky {
        position: static !important;
    }
}

@media (max-width: 575px) {
    .cbl-theme-header .container {
        min-height: 58px;
    }

    .cbl-theme-brand {
        font-size: 21px;
    }

    .cbl-theme-header nav a:not(:first-child) {
        display: none;
    }

    .cbl-theme-header nav a:first-child {
        padding: 9px 12px;
        font-size: 14px;
    }

    .cbl-hero,
    .cbl-listing-hero,
    .cbl-profile-hero {
        padding: 38px 0 24px;
    }

    .cbl-hero h1,
    .cbl-listing-hero h1,
    .cbl-profile-hero h1 {
        font-size: 40px;
    }

    .cbl-hero-note {
        display: none;
    }

    .cbl-hero-center {
        text-align: left;
    }

    .cbl-hero-center .cbl-kicker,
    .cbl-hero-center h1,
    .cbl-hero-center .cbl-lede {
        margin-inline: 0;
    }

    .cbl-hero-center .cbl-hero-search {
        margin-top: 24px;
    }

    .cbl-stats > [class*="col"] {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .cbl-stat {
        padding: 12px 8px;
    }

    .cbl-stat strong {
        font-size: 21px;
    }

    .cbl-stat span {
        display: block;
        font-size: 11px;
        line-height: 1.2;
    }

    .cbl-search-panel,
    .cbl-filter-panel,
    .cbl-contact-card,
    .cbl-section,
    .cbl-card {
        border-radius: 16px;
    }

    .cbl-map-card {
        border-radius: 20px;
        padding: 18px;
    }

    .cbl-map-card-compact {
        margin-top: 0;
    }

    .cbl-map-search {
        padding: 10px;
    }

    .cbl-map-visual {
        min-height: 220px;
    }

    .cbl-card-top {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .cbl-avatar {
        width: 40px;
        height: 40px;
    }
}
