/* Broker 2.0: only existing project sections are enhanced, scoped to pilot IDs. */
body.postid-2922 #bpm-project .bkg-phase-section,
body.postid-3532 #bpm-project .bkg-phase-section{background:#FFFDF9;border:1px solid #D7D1C6;border-radius:15px;padding:19px 22px;box-shadow:none}
#bpm-project .bkg-phase-section .bdf-hyde-phase-grid.bkg-phase-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 20px!important;list-style:none!important;margin:10px 0 0!important;padding:0!important;border-top:1px solid #E8E2D9}
#bpm-project .bkg-phase-section .bkg-phase-grid>li{display:block!important;min-width:0!important;border:0!important;border-bottom:1px solid #E8E2D9!important;box-shadow:none!important;margin:0!important;padding:0!important;background:transparent!important}
#bpm-project .bkg-phase-button{appearance:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:66px!important;width:100%!important;border:0!important;background:transparent!important;color:#292B29!important;text-align:right!important;padding:9px 7px!important;cursor:pointer!important;box-shadow:none!important}
#bpm-project .bkg-phase-button:hover,#bpm-project .bkg-phase-button[aria-expanded=true]{background:#F8F5EF!important}
#bpm-project .bkg-phase-name{display:flex;flex-direction:column;gap:0;min-width:0;overflow-wrap:anywhere}
#bpm-project .bkg-phase-name strong{font-weight:700;font-size:15px;line-height:1.5}
#bpm-project .bkg-phase-name small{font-size:12px;line-height:1.6;color:#625F58}
#bpm-project .bkg-phase-arrow{font-size:18px;color:#825B37;flex-shrink:0}
#bpm-project .bkg-phase-detail{border:1px solid #E4DBCE;background:#F7F4EF;margin-top:13px;padding:12px 15px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:15px}
#bpm-project .bkg-phase-detail[hidden]{display:none!important}
#bpm-project .bkg-phase-selected-name{font-weight:700;font-size:13px}
#bpm-project .bkg-phase-link{color:#825B37;display:inline-flex;align-items:center;text-decoration:none;font-size:13px;font-weight:700;min-height:44px}
#bpm-project #bhu-panel-units[data-bkg-enhanced="1"] > :not(.bkg-type-wrapper){display:none!important}
#bpm-project .bkg-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
#bpm-project .bkg-type-card{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-height:194px;width:100%;padding:18px 13px 0;border:1px solid #D7D1C6;border-radius:13px;background:#FFFDF9;color:#292B29;cursor:pointer;text-align:center;box-shadow:0 3px 8px rgba(41,43,41,.025)}
#bpm-project .bkg-type-card:hover{border-color:#825B37;box-shadow:inset 0 0 0 1px rgba(130,91,55,.18)}
#bpm-project .bkg-type-card .bkg-icon{width:42px;height:42px;display:block;color:#825B37}
#bpm-project .bkg-type-card .bkg-icon svg{width:100%;height:100%;stroke-width:1.5}
#bpm-project .bkg-type-card>strong{font-size:20px;font-weight:800;line-height:1.45}
#bpm-project .bkg-type-card>small{font-size:12px;color:#625F58}
#bpm-project .bkg-type-action{margin-top:auto;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;border-top:1px solid #EAE4DC;color:#825B37;font-size:13px;font-weight:700}
#bpm-project .bkg-other-types{margin-top:13px}
#bpm-project .bkg-other-types summary{display:flex;justify-content:center;align-items:center;min-height:44px;cursor:pointer;border-radius:9px;border:1px solid #E2D9CE;background:#F7F3ED;color:#825B37;font-size:13px;font-weight:700}
#bpm-project .bkg-other-types .bkg-type-grid{margin-top:13px}
body.postid-2922 #bpm-project .hpacc-prices:empty,
body.postid-3532 #bpm-project .hpacc-prices:empty{display:none!important}
body.postid-2922 #bpm-project .hpacc-summary:not(:has(.hpacc-prices)){grid-template-columns:1fr!important}
body.postid-3532 #bpm-project .hpacc-prices.bkg-developer-prices{display:block!important;max-width:100%!important}
body.postid-3532 #bpm-project .bkg-developer-prices .bkg-price-primary{display:block!important;width:100%!important;min-width:0!important}
body.postid-3532 #bpm-project .bkg-sqm-line{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #E6DFD4;margin-top:7px;padding-top:9px;color:#625F58;font-size:12px;align-items:center;flex-wrap:wrap}
body.postid-3532 #bpm-project .bkg-sqm-line strong{font-size:16px;color:#292B29;white-space:nowrap}
body.postid-3532 #bpm-project .bkg-source-link{display:inline-block;color:#825B37;text-decoration:underline;font-size:11px;margin-top:6px}
/* Contact choice parity: native Fluent Forms keeps its inputs and values.
   The original Bloomfields presents all three offer sources side by side. */
body:is(.postid-2922,.postid-3532) #bpm-project #broker-project-contact .ff-el-input--content:has(input[name="checkbox[]"]){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:10px 0 0!important}
body:is(.postid-2922,.postid-3532) #bpm-project #broker-project-contact .ff-el-input--content:has(input[name="checkbox[]"])>.ff-el-form-check{display:block!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
body:is(.postid-2922,.postid-3532) #bpm-project #broker-project-contact .ff-el-input--content:has(input[name="checkbox[]"]) .ff-el-form-check-label{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-height:64px!important;margin:0!important;padding:12px 14px!important;border:1.5px solid #CCC5B8!important;border-radius:10px!important;background:#FFF!important;box-shadow:none!important;color:#292B29!important;font-size:15px!important;white-space:normal!important;cursor:pointer!important}
body:is(.postid-2922,.postid-3532) #bpm-project #broker-project-contact .ff-el-input--content:has(input[name="checkbox[]"]) input[type="checkbox"]{appearance:auto!important;position:static!important;opacity:1!important;flex:none!important;width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;accent-color:#825B37!important}
body:is(.postid-2922,.postid-3532) #bpm-project #broker-project-contact .ff-el-input--content:has(input[name="checkbox[]"]) label:has(input:checked){background:#EBEEE7!important;border-color:#59624F!important}
@media(max-width:680px){body:is(.postid-2922,.postid-3532) #bpm-project #broker-project-contact .ff-el-input--content:has(input[name="checkbox[]"]){grid-template-columns:1fr!important}}
/*
 * Broker desktop rhythm v0.1.9
 * Approved pilots only. Equal width and internal scale, not artificial equal
 * section heights: content length naturally differs by project.
 */
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-main>.bpm-section,
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-main>.bpm-contact-wrap{margin-bottom:24px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-main>.bpm-section h2{font-size:24px!important;line-height:1.5!important;letter-spacing:0!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #broker-calculator{padding:22px!important;border-radius:16px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #broker-calculator>h2{padding-bottom:10px!important;margin-bottom:12px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #broker-calculator>p{font-size:14px!important;line-height:1.65!important;margin-bottom:12px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-calc-controls{gap:12px!important;margin-bottom:12px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-calc-controls select,
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-selected-plan{min-height:52px!important;margin-top:6px!important;padding:9px 12px!important;font-size:15px!important;line-height:1.5!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:14px 0 18px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-result-grid>div{min-width:0!important;min-height:95px!important;padding:14px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-result-grid span{font-size:13px!important;line-height:1.65!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-result-grid strong{font-size:clamp(17px,1.3vw,20px)!important;line-height:1.45!important;margin-top:6px!important;overflow-wrap:anywhere!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #bfp-plan-cta{min-height:46px!important;padding:9px 16px!important;font-size:14px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-price-grid{gap:12px!important;margin-bottom:16px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-price{padding:16px!important;border-radius:12px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-price strong{font-size:22px!important;margin-top:6px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #broker-finance{padding:22px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bkg-type-card{min-height:174px!important;padding:13px 10px 0!important;gap:5px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bkg-type-card .bkg-icon{width:38px!important;height:38px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bkg-type-card>strong{font-size:18px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-contact-wrap{padding:28px 24px!important}
@media(max-width:767px){
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-result-grid{grid-template-columns:1fr!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-result-grid>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:68px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-result-grid strong{margin:0!important;text-align:left!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #broker-calculator{padding:18px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-contact-wrap{padding:20px 16px!important}
}
/* Broker 2.0 calm surfaces: warm background, subtle edge depth (pilot only).
   Gallery and summary preserve the original Bloomfields positions and spacing. */
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .hpacc-wrap{background:#F8F5EF!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .hpacc-gallery{border-radius:14px!important;overflow:hidden!important;box-shadow:0 3px 10px rgba(41,43,41,.035)!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .hpacc-summary{background:#FFFDF9!important;border:1px solid #D9D1C5!important;border-radius:17px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 3px 10px rgba(51,45,37,.035),0 13px 30px rgba(51,45,37,.045)!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-section-nav{background:#FFFDF9!important;border:1px solid #D9D1C5!important;box-shadow:0 2px 8px rgba(51,45,37,.03)!important;border-radius:11px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] :is(#broker-finance,#broker-calculator,.bfp-phases-compact,#broker-project-contact,.bpm-sidebar .bpm-side-panel){border-color:#DAD2C6!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 3px 10px rgba(51,45,37,.03),0 10px 24px rgba(51,45,37,.03)!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] :is(.bfp-price,.bfp-result-grid>div,.bkg-type-card){background:#FFFDF9!important;border:1px solid #DED6CA!important;border-radius:13px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 3px 9px rgba(51,45,37,.035)!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-result-grid>div{background:#F9F6F1!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bkg-type-card:hover{border-color:#A88D70!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.8),0 5px 16px rgba(51,45,37,.065)!important}
html:root body:is(.postid-2922,.postid-3532) #bpm-project#bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-developer-feature{background:#F1EADF!important;box-shadow:inset -5px 0 0 rgba(169,140,105,.19),0 4px 15px rgba(51,45,37,.045)!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-contact-wrap{background:transparent!important;border:0!important;box-shadow:none!important}
/* Broker consultant pass: clear keyboard location and quiet interaction affordances.
   No layout dimensions, image behaviour or canonical Bloomfields styles change. */
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] :is(#broker-overview,#broker-units,#broker-prices,#broker-payment,#broker-location,#broker-developer,#broker-project-contact){scroll-margin-top:96px}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] :is(.hpacc-shortcut,.bpm-section-nav a,.bfp-phase-group summary,.bkg-type-card,.bkg-other-types summary){transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bfp-phase-group summary:hover{background:#F8F5EF}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] :is(.hpacc-shortcut,.bpm-section-nav a,.bfp-phase-group summary,.bkg-other-types summary,.bkg-type-card,#broker-calculator select,#broker-project-contact input,#broker-project-contact textarea,#broker-project-contact button):focus-visible{outline:2px solid #825B37!important;outline-offset:3px!important;box-shadow:0 0 0 4px rgba(130,91,55,.12)!important}
@media(prefers-reduced-motion:reduce){body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] :is(.hpacc-shortcut,.bpm-section-nav a,.bfp-phase-group summary,.bkg-type-card,.bkg-other-types summary){transition:none!important}}
/* Keep a single developer-price offer visually balanced, rather than a
   half-width orphan card; the source price/model itself never changes. */
@media(min-width:768px){
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #broker-prices .bfp-price-grid:has(>.bfp-price:only-child){grid-template-columns:minmax(0,1fr)!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #broker-prices .bfp-price-grid>.bfp-price:only-child{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:18px 24px!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] #broker-prices .bfp-price-grid>.bfp-price:only-child strong{margin-top:0!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .bpm-contact-wrap{padding-inline:28px!important}
}
/* Gallery previews remain quieter than the active image without appearing
   desaturated to the point of looking disabled or broken. */
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .hpacc-tile:not(.is-active) img{filter:grayscale(.72) brightness(.92)!important}
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] .hpacc-tile:not(.is-active):is(:hover,:focus-visible) img{filter:grayscale(.25) brightness(1)!important}
/* Small-screen readability: the model label could collapse to 9px, while the
   gallery hint and breadcrumbs were 11px. Meet Broker's 12px text minimum. */
body:is(.postid-2922,.postid-3532) #bpm-project[data-broker-pilot="bloomfields-shared-v1"] :is(.hpacc-model,.bpm-breadcrumb,.hpacc-mobile-count span){font-size:12px!important;line-height:1.65!important}
.bkg-dialog-open{overflow:hidden!important}
.bkg-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:0;border:1px solid #D7D1C6;border-radius:16px;width:min(1050px,calc(100% - 32px));max-width:none;max-height:85dvh;color:#292B29;background:#FFFDF9;box-shadow:0 22px 90px rgba(22,25,22,.18);flex-direction:column;overflow:hidden}
.bkg-dialog[open]{display:flex}
.bkg-dialog::backdrop{background:rgba(28,30,28,.48);backdrop-filter:blur(2px)}
.bkg-modal-header{padding:18px 24px;display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #E7E1D8;flex-shrink:0}
.bkg-modal-header h2{font-size:22px!important;line-height:1.5;margin:0!important}
.bkg-close{appearance:none;display:flex;align-items:center;justify-content:center;border:1px solid #DDD6CB;background:#F6F4F0;border-radius:50%;font-size:27px;color:#292B29;width:44px;height:44px;flex-shrink:0;cursor:pointer}
.bkg-modal-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;padding:18px 24px;overscroll-behavior:contain;scrollbar-gutter:stable}
.bkg-modal-notice{font-size:13px;color:#625F58;margin:0 0 10px}
.bkg-modal-notice:empty{display:none}
.bkg-modal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bkg-unit-card{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:178px;border:1px solid #E3DCD2;border-radius:11px;background:#FFFDF9;padding:16px}
.bkg-unit-title{font-size:17px;color:#292B29;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.bkg-unit-id,.bkg-unit-area{font-size:12px;color:#625F58}
.bkg-unit-price{font-size:18px;color:#292B29;font-weight:800}
.bkg-unit-link{display:flex;align-items:center;min-height:44px;border-top:1px solid #EEE8E0;margin-top:auto;padding-top:8px;font-size:13px;color:#825B37;text-decoration:none;font-weight:700}
.bkg-modal-footer{background:#FAF8F4;border-top:1px solid #E7E1D8;padding:13px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#625F58;flex-shrink:0}
.bkg-more{appearance:none;cursor:pointer;border:1px solid #A68A6E;border-radius:9px;background:#FFFDF9;color:#825B37;padding:8px 16px;font-size:13px;font-weight:700;min-height:44px}
.bkg-more:disabled{opacity:.6;cursor:progress}
.bkg-phase-button:focus-visible,.bkg-type-card:focus-visible,.bkg-close:focus-visible,.bkg-more:focus-visible,.bkg-unit-link:focus-visible,.bkg-phase-link:focus-visible{outline:3px solid #825B37!important;outline-offset:3px!important}
@media(max-width:850px){.bkg-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#bpm-project .bkg-phase-section .bdf-hyde-phase-grid.bkg-phase-grid{grid-template-columns:1fr!important;gap:0!important}#bpm-project .bkg-phase-button{min-height:58px!important}#bpm-project .bkg-type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#bpm-project .bkg-type-card{min-height:180px}.bkg-dialog{width:100%;max-height:100dvh;height:100dvh;border:0;border-radius:0}.bkg-modal-header{padding:15px 17px}.bkg-modal-header h2{font-size:20px!important}.bkg-modal-scroll{padding:13px 17px;flex:1}.bkg-modal-footer{padding:12px 17px}}
@media(max-width:560px){.bkg-modal-grid{grid-template-columns:1fr}.bkg-unit-card{min-height:155px}.bkg-modal-footer{font-size:12px}}
