.ibws-bd-profile {
    --ibws-bd-color-ink: #172033;
    --ibws-bd-color-muted: #596579;
    --ibws-bd-color-line: #dfe5ec;
    --ibws-bd-color-surface: #ffffff;
    --ibws-bd-color-soft: #f5f7fa;
    --ibws-bd-color-brand: #176b4d;
    --ibws-bd-color-brand-dark: #0e5138;
    box-sizing: border-box;
    color: var(--ibws-bd-color-ink);
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    padding: 1rem 0 2.5rem;
}

.ibws-bd-profile *,
.ibws-bd-profile *::before,
.ibws-bd-profile *::after {
    box-sizing: inherit;
}

.ibws-bd-profile__container {
    margin: 0 auto;
    max-width: 1160px;
    padding: 0 1rem;
    width: 100%;
}

.ibws-bd-profile__breadcrumbs {
    color: var(--ibws-bd-color-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.ibws-bd-profile__breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ibws-bd-profile__breadcrumb-list li:not(:last-child)::after {
    color: #8b95a5;
    content: "/";
    margin-left: 0.35rem;
}

.ibws-bd-profile__breadcrumb-list a,
.ibws-bd-profile__details a,
.ibws-bd-profile__contact-list a,
.ibws-bd-profile__related-card a {
    color: var(--ibws-bd-color-brand-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.ibws-bd-profile__hero {
    align-items: center;
    background: linear-gradient(135deg, #f8faf9 0%, #eef6f2 100%);
    border: 1px solid var(--ibws-bd-color-line);
    border-radius: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 1rem;
}

.ibws-bd-profile__logo-wrap {
    align-items: center;
    background: var(--ibws-bd-color-surface);
    border: 1px solid var(--ibws-bd-color-line);
    border-radius: 0.875rem;
    display: flex;
    height: 80px;
    justify-content: center;
    overflow: hidden;
    width: 80px;
}

.ibws-bd-profile__logo {
    display: block;
    height: auto;
    max-height: 76px;
    max-width: 76px;
    width: auto;
}

.ibws-bd-profile__logo-placeholder {
    align-items: center;
    background: var(--ibws-bd-color-brand);
    color: #ffffff;
    display: flex;
    font-size: 1.75rem;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.ibws-bd-profile__hero-copy {
    min-width: 0;
}

.ibws-bd-profile__eyebrow {
    color: var(--ibws-bd-color-brand-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 0.2rem;
    text-transform: uppercase;
}

.ibws-bd-profile__title {
    color: var(--ibws-bd-color-ink);
    font-size: clamp(1.55rem, 5vw, 2.25rem);
    line-height: 1.2;
    margin: 0;
    overflow-wrap: anywhere;
}

.ibws-bd-profile__summary {
    align-items: center;
    color: var(--ibws-bd-color-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.45rem 0 0;
}

.ibws-bd-profile__tagline {
    color: var(--ibws-bd-color-ink);
    margin: 0.5rem 0 0;
}

.ibws-bd-profile__actions {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
    margin: 1rem 0;
}

.ibws-bd-profile__action {
    align-items: center;
    background: var(--ibws-bd-color-surface);
    border: 1px solid var(--ibws-bd-color-brand);
    border-radius: 0.65rem;
    color: var(--ibws-bd-color-brand-dark);
    display: flex;
    flex-direction: column;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    text-align: center;
    text-decoration: none;
}

.ibws-bd-profile__action--primary {
    background: var(--ibws-bd-color-brand);
    color: #ffffff;
}

.ibws-bd-profile__action small {
    font-size: 0.78rem;
    font-weight: 500;
}

.ibws-bd-profile__action:hover {
    background: var(--ibws-bd-color-brand-dark);
    color: #ffffff;
}

.ibws-bd-profile__action:focus-visible,
.ibws-bd-profile__breadcrumb-list a:focus-visible,
.ibws-bd-profile__details a:focus-visible,
.ibws-bd-profile__contact-list a:focus-visible,
.ibws-bd-profile__related-card a:focus-visible {
    outline: 3px solid #f3b63a;
    outline-offset: 3px;
}

.ibws-bd-profile__content-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.ibws-bd-profile__main-column,
.ibws-bd-profile__side-column {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.ibws-bd-profile__card,
.ibws-bd-profile__related {
    background: var(--ibws-bd-color-surface);
    border: 1px solid var(--ibws-bd-color-line);
    border-radius: 0.85rem;
    padding: 1rem;
}

.ibws-bd-profile__card h2,
.ibws-bd-profile__related h2 {
    color: var(--ibws-bd-color-ink);
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 0.85rem;
}

.ibws-bd-profile__description p:first-child {
    margin-top: 0;
}

.ibws-bd-profile__description p:last-child,
.ibws-bd-profile__description ul:last-child,
.ibws-bd-profile__description ol:last-child {
    margin-bottom: 0;
}

.ibws-bd-profile__details {
    margin: 0;
}

.ibws-bd-profile__detail-row {
    border-top: 1px solid var(--ibws-bd-color-line);
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0;
}

.ibws-bd-profile__detail-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.ibws-bd-profile__detail-row:last-child {
    padding-bottom: 0;
}

.ibws-bd-profile__detail-row dt {
    color: var(--ibws-bd-color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ibws-bd-profile__detail-row dd {
    margin: 0;
    min-width: 0;
}

.ibws-bd-profile__hours,
.ibws-bd-profile__service-areas,
.ibws-bd-profile__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ibws-bd-profile__hours li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
}

.ibws-bd-profile__service-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ibws-bd-profile__service-areas li {
    background: var(--ibws-bd-color-soft);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

.ibws-bd-profile__contact-list {
    display: grid;
    gap: 0.75rem;
}

.ibws-bd-profile__contact-list li {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.ibws-bd-profile__contact-list strong {
    color: var(--ibws-bd-color-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.ibws-bd-profile__gallery {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ibws-bd-profile__gallery-item {
    align-items: center;
    background: var(--ibws-bd-color-soft);
    border-radius: 0.65rem;
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 130px;
    overflow: hidden;
    padding: 0.35rem;
}

.ibws-bd-profile__gallery-image {
    display: block;
    height: auto;
    max-height: 360px;
    max-width: 100%;
    width: auto;
}

.ibws-bd-profile__related {
    margin-top: 1rem;
}

.ibws-bd-profile__related-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
}

.ibws-bd-profile__related-card {
    background: var(--ibws-bd-color-soft);
    border-radius: 0.65rem;
    padding: 0.85rem;
}

.ibws-bd-profile__related-card h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
}

.ibws-bd-profile__related-card p {
    color: var(--ibws-bd-color-muted);
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
}

.ibws-bd-profile__directory-note {
    color: var(--ibws-bd-color-muted);
    font-size: 0.875rem;
    margin: 1rem 0 0;
    text-align: center;
}

@media (min-width: 520px) {
    .ibws-bd-profile__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ibws-bd-profile__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .ibws-bd-profile {
        padding: 1.5rem 0 3.5rem;
    }

    .ibws-bd-profile__container {
        padding: 0 1.5rem;
    }

    .ibws-bd-profile__hero {
        gap: 1.4rem;
        grid-template-columns: 112px minmax(0, 1fr);
        padding: 1.35rem;
    }

    .ibws-bd-profile__logo-wrap {
        height: 112px;
        width: 112px;
    }

    .ibws-bd-profile__logo {
        max-height: 106px;
        max-width: 106px;
    }

    .ibws-bd-profile__actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ibws-bd-profile__content-grid {
        align-items: start;
        grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    }

    .ibws-bd-profile__card,
    .ibws-bd-profile__related {
        padding: 1.25rem;
    }

    .ibws-bd-profile__gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ibws-bd-profile__related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
