/* Final theme compatibility for Chamber pages. Never reset the host theme globally. */
body.sbd-public-surface {
 --sbd-page-gutter: clamp(20px, 4vw, 64px);
 --sbd-chamber-ink: #12384d;
 --sbd-chamber-link: #176b91;
 --sbd-chamber-red: #b72035;
 --sbd-chamber-line: #cbdde6;
 background: #f5f8fa;
}
/* Hello Biz can render a second, unstyled brand below the custom site header.
   Hide only the branding-only header when the replacement header is present. */
body.sbd-public-surface.wp-theme-hello-biz:has(.wpcl-header) #site-header:not(:has(nav, button, input)) { display: none; }
body.sbd-public-surface.wp-theme-hello-biz main.site-main {
 width: 100%;
 max-width: none;
 padding: 0;
 margin-inline: auto;
}
body.sbd-public-surface .wpcl-header {
 background: #fff;
 color: #12384d;
 border-bottom: 1px solid #dce6ec;
}
body.sbd-public-surface .wpcl-header .wpcl-brand-name { color: #12384d; }
body.sbd-public-surface .wpcl-header .wpcl-button {
 background: #b72035;
 color: #fff;
 border-color: #b72035;
 border-radius: 4px;
}
body.sbd-public-surface .wpcl-header .wpcl-button:hover { background: #941a2b; }
body.sbd-public-surface :is(.sbd-directory-explorer, .sbd-tier-page, .sbd-member-signup, .sbd-owner-portal, .sbd-chamber-content-page) {
 font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
 box-sizing: border-box;
 min-width: 0;
}
body.sbd-public-surface :is(.sbd-directory-explorer, .sbd-tier-page) {
 width: 100%;
 max-width: none;
 margin: 0;
}
body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header {
 padding: clamp(28px, 5vw, 64px);
 border-radius: 8px;
 border-bottom: 4px solid #b72035;
 background: #12384d;
 box-shadow: none;
}
/* Explicit foregrounds beat the legacy theme-wide heading/link color rules. */
body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header :is(h1, h2) {
 color: #fff !important;
 font-size: clamp(2rem, 4.5vw, 3.8rem);
 font-weight: 750;
 line-height: 1.08;
 letter-spacing: -.045em;
 max-width: 19ch;
 margin: 12px 0 22px;
}
body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header p { color: #d9ebf3; max-width: 58ch; }
body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header .sbd-section-kicker {
 color: #b6def2 !important;
 font-size: 11px;
 letter-spacing: .13em;
 line-height: 1.6;
}
body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header .sbd-card__action {
 display: inline-flex;
 padding: 12px 18px;
 border: 1px solid #fff;
 border-radius: 4px;
 color: #12384d !important;
 background: #fff;
 text-decoration: none;
}
body.sbd-public-surface .sbd-search__form {
 border: 1px solid #cbdde6;
 border-radius: 8px;
 box-shadow: 0 8px 28px #12384d08;
}
body.sbd-public-surface .sbd-filter-submit :is(button, .sbd-button) {
 background: #176b91;
 border-color: #176b91;
 color: #fff;
 border-radius: 4px;
 min-height: 46px;
}
body.sbd-public-surface .sbd-filter-more { box-shadow: none; }
body.sbd-public-surface .sbd-tier-page.sbd-tier-page {
 border-radius: 8px;
 background: #fff;
 border: 1px solid #dce6ec;
}
body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__sticky-nav { background: #fff; }
body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__hero {
 background: #eaf3f8;
 border-block: 1px solid #dce6ec;
}
body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__title { font-weight: 750; }
body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__card { border-radius: 8px; }
body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__button {
 background: #b72035;
 border-color: #b72035;
 color: #fff;
 border-radius: 4px;
 min-height: 46px;
}
body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__button:hover { background: #941a2b; }
body.sbd-public-surface .sbd-member-signup--clean {
 width: 100%;
 max-width: none;
 margin: 0;
 padding: clamp(20px, 4vw, 48px);
 border: 1px solid #dce6ec;
 border-radius: 8px;
 background: #fff;
}
body.sbd-public-surface .sbd-member-signup--clean .sbd-member-signup__header h2 { font-weight: 750; }
body.sbd-public-surface .sbd-member-navigation { border-color: #cbdde6; }
body.sbd-public-surface .sbd-owner-portal--logged-out { width: 100%; max-width: none; margin: 0; padding: 32px var(--sbd-page-gutter) 64px; }
body.sbd-public-surface .sbd-owner-portal--logged-out .sbd-owner-portal__signin {
 border-radius: 8px;
 border-top: 4px solid #b72035;
 box-shadow: 0 12px 40px #12384d08;
}
body.sbd-public-surface :is(.sbd-directory-explorer, .sbd-tier-page, .sbd-member-signup, .sbd-owner-portal) :is(a, button, input, select, textarea, summary):focus-visible {
 outline: 3px solid #087aa5;
 outline-offset: 3px;
}
body.sbd-public-surface .sbd-page-shell__header :is(a, button):focus-visible { outline-color: #b6def2; }
@media (max-width: 640px) {
 body.sbd-public-surface :is(.sbd-directory-explorer, .sbd-tier-page, .sbd-member-signup--clean) { width: 100%; margin: 0; }
 body.sbd-public-surface .sbd-member-signup--clean { padding: 20px 16px; }
 body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header { padding: 28px 22px; }
 body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__wrap { width: calc(100% - 32px); }
}
/* Grid items and fieldsets must shrink inside padded phone layouts. */
body.sbd-public-surface .sbd-member-signup--clean,
body.sbd-public-surface .sbd-member-signup--clean .sbd-member-signup__form {
 grid-template-columns: minmax(0, 1fr);
}
body.sbd-public-surface .sbd-member-signup--clean :is(form, fieldset, legend, details, section, nav, header, label, input, select, textarea) {
 min-width: 0;
 max-width: 100%;
 box-sizing: border-box;
}
body.sbd-public-surface .sbd-member-signup--clean > *,
body.sbd-public-surface .sbd-member-signup__form > * { min-width: 0; }
body.sbd-public-surface .sbd-member-signup--clean :is(h2, h3, legend) { overflow-wrap: anywhere; }
body.sbd-public-surface .sbd-directory-explorer .sbd-search__form button[type=submit] {
 background: #176b91;
 border-color: #176b91;
 color: #fff;
}
body.sbd-public-surface .sbd-member-signup--clean .sbd-member-signup__panel,
body.sbd-public-surface .sbd-member-signup--clean .sbd-member-signup__review { grid-template-columns: minmax(0, 1fr); }
body.sbd-public-surface .sbd-member-signup--clean * { min-width: 0; }
body.sbd-public-surface .sbd-member-signup--clean .sbd-button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* Full-width page canvas: remove theme containers rather than overflowing them
   with 100vw, which includes the scrollbar and causes horizontal scrolling. */
body.sbd-public-surface { margin: 0; padding: 0; }
body.sbd-public-surface :is(#page, #content, #primary, .site-content, main.site-main, .content-area, .page-content, .entry-content, .wp-block-post-content, .wp-site-blocks) {
 box-sizing: border-box;
 width: 100% !important;
 max-width: none !important;
 min-width: 0;
 margin-inline: 0 !important;
 padding-inline: 0 !important;
}
body.sbd-public-surface main.site-main,
body.sbd-public-surface :is(.page-content, .entry-content, .wp-block-post-content) { margin-block: 0; padding-block: 0; }
/* Hide only theme-generated titles. Plugin hero headings and navigation remain. */
body.sbd-public-surface main.site-main > .page-header,
body.sbd-public-surface .hentry > .entry-header,
body.sbd-public-surface main .entry-title,
body.sbd-public-surface main .wp-block-post-title,
body.sbd-public-surface #site-header .site-title,
body.sbd-public-surface #site-header .site-description { display: none !important; }
body.sbd-public-surface #site-header:not(:has(nav, button, input, .custom-logo, .site-logo)) { display: none !important; }
/* Block themes apply their own content width to direct post-content children. */
body.sbd-public-surface :is(.entry-content, .wp-block-post-content) > :is(.sbd-page-shell, .sbd-tier-page, .sbd-member-signup, .sbd-owner-portal, .sbd-chamber-content-page, .sbd-home-v2) {
 width: 100% !important;
 max-width: none !important;
 margin-inline: 0 !important;
}
body.sbd-public-surface :is(.sbd-directory-explorer, .sbd-tier-page.sbd-tier-page, .sbd-member-signup--clean, .sbd-chamber-content-page) {
 border: 0;
 border-radius: 0;
 box-shadow: none;
}
body.sbd-public-surface .sbd-directory-explorer { padding: 0 0 48px; }
body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header {
 border-radius: 0;
 margin-top: 0;
 padding-inline: var(--sbd-page-gutter);
}
body.sbd-public-surface .sbd-directory-explorer__sections > :not(.sbd-page-shell__header) {
 margin-inline: var(--sbd-page-gutter);
}
body.sbd-public-surface .sbd-tier-page.sbd-tier-page :is(.sbd-tier-page__wrap, .sbd-member-navigation) {
 box-sizing: border-box;
 width: calc(100% - var(--sbd-page-gutter) * 2);
 max-width: none;
}
body.sbd-public-surface .sbd-member-signup--clean { padding: 32px var(--sbd-page-gutter) 64px; }
/* Full-width backgrounds; keep long forms and sign-in fields comfortable to read. */
body.sbd-public-surface .sbd-member-signup--clean > * { width: 100%; max-width: 1000px; margin-inline: auto; }
body.sbd-public-surface .sbd-owner-portal--logged-out > * { box-sizing: border-box; width: 100%; max-width: 520px; margin-inline: auto; }
@media (max-width: 640px) {
 body.sbd-public-surface { --sbd-page-gutter: 16px; }
 body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header { padding-block: 32px; }
}
/* Chamber color fills the canvas; white cards keep tasks easy to read. */
body.sbd-public-surface {
 background: #eaf3f8;
 background-image: linear-gradient(135deg, #e5f1f8 0%, #f3f7fb 60%, #faeef0 100%);
}
body.sbd-public-surface :is(.sbd-directory-explorer, .sbd-member-signup--clean, .sbd-owner-portal--logged-out, .sbd-chamber-content-page) {
 background-color: #eaf3f8;
 background-image: radial-gradient(ellipse at 100% 0, #bd263510, transparent 45%), linear-gradient(135deg, #e5f1f8, #f3f7fb 65%, #faeef0);
}
body.sbd-public-surface .sbd-tier-page.sbd-tier-page { background: #edf4f9; }
body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__hero {
 background: linear-gradient(115deg, #dceef8, #ecf4fa 65%, #f6e9ee);
 border-block-color: #c6dae6;
}
body.sbd-public-surface .sbd-tier-page.sbd-tier-page :is(.sbd-tier-page__sticky-nav, .sbd-member-navigation) { background: transparent; }
body.sbd-public-surface .sbd-tier-page.sbd-tier-page .sbd-tier-page__sticky-nav { background: #edf4f9; }
body.sbd-public-surface .sbd-directory-explorer .sbd-page-shell__header {
 background: linear-gradient(115deg, #102f45, #174961);
}
body.sbd-public-surface .sbd-owner-portal--logged-out { min-height: 70vh; }
body.sbd-public-surface :is(.sbd-page-shell, .sbd-owner-portal, .sbd-chamber-content-page, .sbd-saved-page, .sbd-compare-page) {
 box-sizing: border-box;
 width: 100%;
 max-width: none;
 margin-inline: 0;
}
body.sbd-public-surface .sbd-owner-portal--workspace {
 padding-inline: var(--sbd-page-gutter);
 background: linear-gradient(135deg, #e5f1f8, #f3f7fb 65%, #faeef0);
}
/* The chamber header's 100vw breakout includes the scrollbar on profile pages. */
body.sbd-public-surface:has(.sbd-page-studio,.sbd-home-v2) .wpcl-header,
body.sbd-public-surface:has(.sbd-page-studio,.sbd-home-v2) .wpcl-header-shell { width:100%; max-width:100%; margin-inline:0; }
