.cb2-home .cb2-search{position:static;transform:none;background:transparent;border:0;border-radius:0;box-shadow:none;padding:28px 0 0;grid-column:1/-1;width:100%;min-width:0}
.cb2-home .cb2-hero{row-gap:28px}.cb2-home .cb2-hero:not(.hpj-establishment-info-card){padding-bottom:16px}.cb2-home .cb2-search{padding-top:0}
.cb2-home .cb2-hero__copy{min-width:0}.cb2-home .cb2-hero__actions .cb2-button{max-width:100%;white-space:normal}.cb2-home .cb2-hero__actions .cb2-button>span{text-align:left}
@media(max-width:760px){.cb2-home .cb2-hero{grid-template-columns:minmax(0,1fr)}}
.cb2-home .cb2-icon-picker--target>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.cb2-home .cb2-icon-picker--target a.cb2-icon-option{text-decoration:none;color:inherit}
.cb2-home .cb2-icon-picker--target .cb2-icon-picker__options{display:grid;grid-template-columns:repeat(6,minmax(0,140px));gap:10px;width:100%}
.cb2-home .cb2-icon-picker--target .cb2-icon-option{min-width:0;width:auto}.cb2-home .cb2-icon-picker--target .cb2-icon-option__surface{min-width:0;min-height:96px;padding:10px 6px}
.cb2-home .cb2-hero__actions .cb2-button{display:inline-flex;align-items:center;gap:10px;padding:7px 14px 7px 10px;border:1px solid #cbd8d5;border-radius:12px;background:#f5f8fc;color:#28413d;box-shadow:none;font-size:.9rem}
.cb2-home .cb2-hero__actions .cb2-button img{width:38px;height:38px;object-fit:contain;flex-shrink:0}
.cb2-home .cb2-icon-picker--target.cb2-progressive-search__stage{overflow:visible}
.cb2-home .cb2-icon-picker--target .cb2-icon-option__visual{width:42px;height:42px}
.cb2-home .cb2-hero__actions .cb2-button:hover{background:#edf3f7;box-shadow:none}
.cb2-home .cb2-hero__actions .cb2-button>span:first-of-type{font-size:inherit;transform:none}
.home-establishments{position:relative;isolation:isolate}.home-establishments,.home-establishments *{box-sizing:border-box}.home-establishments [hidden]{display:none!important}.home-establishments [data-preview-page]{display:contents}
.home-establishments .home-feed-filter-toggle,.home-establishments .home-feed-footer button{font:inherit;cursor:pointer;border-radius:9px;border:1px solid #d0e2da;color:#14634e;background:#f5faf7;padding:9px 14px}
.home-establishments .home-feed-filter-panel button{cursor:pointer;font:inherit;border-radius:9px;border:1px solid #d0e2da;color:#14634e;background:#f5faf7;padding:9px 14px}
.home-establishments .home-feed-filter-actions button:first-child{background:#14634e;color:#fff}.home-establishments button:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.cb2-home .cb2-icon-picker--target .cb2-icon-picker__options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cb2-home .cb2-icon-picker--target .cb2-icon-option__surface{min-height:115px;padding:10px 4px}.cb2-home .cb2-icon-picker--target .cb2-icon-option__visual{width:58px;height:58px}.cb2-home .cb2-icon-picker--target .cb2-icon-option__name{font-size:.8rem;white-space:normal}.home-establishments .home-feed-actions{max-width:130px}.home-establishments .home-feed-actions>a{white-space:normal;text-align:right;font-size:.75rem}}

.home-index-main > .cb2-shell { padding-left:0; padding-right:0; }
.home-index-main > .cb2-hero:not(.hpj-establishment-info-card) { padding-top:0; }

/* Abertura da home aprovada no mockup: marca e fotografia. */
.hpj-workspace-topbar:has(.home-brand-link) { display:flex; flex-wrap:wrap; }
.hpj-workspace-topbar:has(.home-brand-link) .hpj-workspace-topbar__start { flex:1; }
.home-brand-link { display:flex; align-items:center; min-width:0; width:clamp(140px,24vw,280px); }
.home-brand-link img { display:block; width:100%; height:auto; }
.cb2-home .home-community-hero {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:"copy photo";
    column-gap:36px; row-gap:22px;
}
.cb2-home .home-community-hero .cb2-hero__copy { grid-area:copy; padding:0; align-self:center; }
.cb2-home .home-community-eyebrow {
    color:#006b60; font-size:.82rem; font-weight:700;
    letter-spacing:.06em; text-transform:uppercase; margin-bottom:12px;
}
.cb2-home .home-community-photo {
    grid-area:photo; display:block; width:100%; min-height:0; align-self:stretch;
    aspect-ratio:4/3; box-shadow:none;
}
.cb2-home .home-community-photo::before { content:none; }
.home-community-photo img { width:100%; height:100%; display:block; object-fit:cover; object-position:center; }
.home-community-hero .hpj-account-actions { margin-top:18px; margin-bottom:0; }
.home-community-hero + .home-search-section { margin-top:var(--home-block-gap); }
/* Teste 3: posts brancos sobre a área de exibição na cor-base da página. */
.home-index-main > .home-feed-preview .home-feed-card { background:#fff; }
.home-index-main > .home-feed-preview .home-feed-viewport { background:var(--cb2-page-background-color); }
.home-search-section + .home-feed-preview { margin-top:var(--home-block-gap); }
.cb2-home .cb2-hero.home-community-hero:not(.hpj-establishment-info-card):has(+ .home-feed-preview) { padding-bottom:0; }
.cb2-home .cb2-hero.home-community-hero + .home-feed-preview { margin-top:var(--home-block-gap); }
.cb2-home .home-community-hero + .home-feed-preview > .home-feed-heading { margin-top:0; }
@media(max-width:760px) {
    .home-brand-link { width:clamp(130px,40vw,220px); }
    .hpj-workspace-topbar:has(.home-brand-link) { gap:8px; }
    .hpj-workspace-topbar:has(.home-brand-link) .hpj-workspace-topbar__start { gap:8px; }
    .hpj-workspace-topbar:has(.home-brand-link) .hpj-workspace-topbar__actions { gap:4px; }
    .cb2-home .home-community-hero { grid-template-columns:minmax(0,1fr); grid-template-areas:"copy" "photo"; gap:18px; }
    .cb2-home .home-community-photo { aspect-ratio:16/9; border-radius:12px; }
    .cb2-home .home-community-hero h1 { margin-bottom:14px; }
}
@container cb2-public-workspace (max-width:760px) {
    .cb2-home .home-community-hero { grid-template-columns:minmax(0,1fr); grid-template-areas:"copy" "photo"; gap:18px; }
    .cb2-home .home-community-photo { display:block; min-height:0; aspect-ratio:16/9; }
}

.hpj-workspace-topbar:has(.home-brand-link) .hpj-workspace-topbar__start { min-width:180px; }
.home-brand-link { flex-shrink:0; }

/* Experimento reversível: remover a classe --image-background restaura a composição anterior. */
.cb2-home .home-community-hero.home-community-hero--image-background {
    display:block;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:rgba(255,255,255,.9);
}
.cb2-home .home-community-hero--image-background .cb2-hero__copy {
    position:relative;
    z-index:1;
    width:70%;
    max-width:70%;
}
.cb2-home .home-community-hero--image-background .home-community-photo {
    position:absolute;
    inset:0 0 auto auto;
    width:auto;
    max-width:70%;
    height:100%;
    border-radius:inherit;
    min-height:0;
    aspect-ratio:1280/853;
    background:none;
    opacity:1;
    pointer-events:none;
    z-index:0;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.15) 35%,#000 100%);
    mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.15) 35%,#000 100%);
}
.cb2-home .home-community-hero--image-background .home-community-photo img {
    object-fit:contain;
    object-position:right top;
}
.cb2-home .home-community-hero--image-background > .hpj-account-actions {
    position:relative;
    z-index:1;
    margin-top:12px;
}
.cb2-home .home-community-hero--image-background .hpj-account-actions > .cb2-outline-button {
    padding:4px 10px;
    min-height:36px;
    flex:0 1 auto;
    width:fit-content;
    max-width:100%;
}
.cb2-home .home-community-hero--image-background .hpj-account-actions > .cb2-outline-button img {
    width:24px;
    height:24px;
    flex-shrink:0;
}
.cb2-home .home-community-hero--image-background:has(+ .home-feed-preview) .home-community-photo {
    height:100%;
}
@media(max-width:760px) {
    .cb2-home .home-community-hero--image-background .home-community-photo { max-width:100%; }
    .cb2-home .home-community-hero--image-background .home-community-photo img { object-fit:cover; }
}
@container cb2-public-workspace (max-width:760px) {
    .cb2-home .home-community-hero--image-background .home-community-photo { max-width:100%; }
    .cb2-home .home-community-hero--image-background .home-community-photo img { object-fit:cover; }
}

.home-establishments-heading { position:relative; }
.home-establishments-heading .hpj-page-head { margin-top:0; margin-bottom:var(--home-block-gap); }
.home-establishments-heading .hpj-page-head > div { min-width:0; }
.home-establishments-heading .home-feed-actions { max-width:100%; flex-wrap:wrap; }
.home-establishments-heading .home-feed-heading-filter { position:relative; }
.home-establishments-heading .home-feed-filter-panel { top:calc(100% + 8px); }

.home-index-main { --home-block-gap:24px; }
.home-index-main > .home-establishments { padding-top:0; padding-bottom:0; margin-top:var(--home-block-gap); }
.home-index-main > .home-establishments + .home-professionals { padding-top:0; margin-top:var(--home-block-gap); }
.home-professionals > .hpj-page-head { margin-top:0; margin-bottom:var(--home-block-gap); }
.home-establishments > .home-feed-footer { min-height:0; padding-top:10px; }
.home-establishments > .home-feed-footer:has(> [data-preview-status]:empty):has(> [data-preview-more][hidden]) { display:none; }
