/* RIME_INDEX_BENTO_V2_1_HOTFIX */
/* exact background unification */
:root{
  --rb-bg:#f7f8fb;
}
html[data-theme="dark"]{
  --rb-bg:#111315;
}

/* Remove the visible split between logo/header zone and content. */
html,body,
body[data-rime-search-only],
body[data-rime-search-only] .site-head,
body[data-rime-search-only] header.site-head,
body[data-rime-search-only] main.wrap{
  background:var(--rb-bg)!important;
}
body[data-rime-search-only] .site-head{
  border-bottom-color:transparent!important;
  box-shadow:none!important;
}
body[data-rime-search-only] .site-head::before,
body[data-rime-search-only] .site-head::after{
  background:transparent!important;
  box-shadow:none!important;
}

/* No old-grid flash while Bento renderer is starting. */
html.rime-bento-boot body[data-rime-search-only] #services{
  visibility:hidden!important;
}
html.rime-bento-boot body[data-rime-search-only] #home-search-row,
html.rime-bento-boot body[data-rime-search-only] #cat-chips,
html.rime-bento-boot body[data-rime-search-only] .popbox{
  visibility:hidden!important;
}

/* once Bento succeeds, old content stays out of layout */
html.rime-bento-done body[data-rime-search-only] #services,
html.rime-bento-done body[data-rime-search-only] #home-search-row,
html.rime-bento-done body[data-rime-search-only] #cat-chips,
html.rime-bento-done body[data-rime-search-only] .popbox{
  display:none!important;
}

/* dark cards: keep separation from bg, without looking blue/gray */
html[data-theme="dark"] .rb-card{
  --svc-dark:#181b1f;
  background:var(--svc-dark)!important;
  border-color:#2b3036!important;
}
html[data-theme="dark"] .rb-card-icon{
  background:#131619!important;
}
html[data-theme="dark"] .rb-hero{
  border-color:#30343b!important;
}

/* footer/background continuity */
body[data-rime-search-only] footer,
body[data-rime-search-only] .site-footer{
  background:var(--rb-bg)!important;
}
