
/* RFOS v4.1.36.1 — scoped stability repair built only from v4.1.36.
   This file intentionally changes only: footer motion stability, News Search spacing,
   and dark-mode title/surface consistency. It does not alter publication geometry,
   Awareness layout, X Spaces dimensions, mobile header/menu, or protected wording. */

/* Footer auto-hide stability: keep the protected shell geometry constant while the
   footer moves. Never resize the workspace or move floating controls during hide/show. */
@media (max-width:1180px){
  body.rfos-fixed-shell.rfos-footer-autohide>footer{
    transition:transform .22s cubic-bezier(.2,.7,.2,1)!important;
    will-change:transform!important;
    backface-visibility:hidden!important;
    -webkit-backface-visibility:hidden!important;
  }
  body.rfos-fixed-shell.rfos-footer-autohide.rfos-footer-hidden>footer{
    transform:translate3d(0,105%,0)!important;
  }
  body.rfos-fixed-shell.rfos-footer-autohide.rfos-footer-hidden .rfos-app-workspace{
    bottom:var(--rfos-footer-height,56px)!important;
  }
}

/* News Updates: preserve the v4.1.36 publication/card geometry and create one real
   centimetre between the Search tools and the three content columns on wide screens. */
@media (min-width:1301px){
  html[data-page-title="News updates"] .rfos-updates-layout{
    margin-top:1cm!important;
  }
}

/* News Updates dark mode: only colour/contrast. No dimensions or grid geometry. */
html[data-rfos-theme="dark"][data-page-title="News updates"] .rfos-updates-quotes>.rfos-managed-heading,
html[data-rfos-theme="dark"][data-page-title="News updates"] .rfos-updates-advertisements>.rfos-advertisement-heading{
  background:linear-gradient(135deg,#031f54,#062d71)!important;
  color:#e5b72f!important;
  -webkit-text-fill-color:#e5b72f!important;
}
html[data-rfos-theme="dark"][data-page-title="News updates"] .rfos-updates-main>.rfos-managed-heading{
  background:linear-gradient(135deg,#0b43a8,#1263d8)!important;
  color:#e5b72f!important;
  -webkit-text-fill-color:#e5b72f!important;
}
html[data-rfos-theme="dark"][data-page-title="News updates"] .rfos-updates-main #newsFeed .rfos-publication{
  background:#111f34!important;
  border-color:#31527f!important;
  color:#f5f7fb!important;
}
html[data-rfos-theme="dark"][data-page-title="News updates"] .rfos-updates-main #newsFeed .rfos-news-preview-title,
html[data-rfos-theme="dark"][data-page-title="News updates"] .rfos-updates-main #newsFeed h2{
  color:#f2c44f!important;
  -webkit-text-fill-color:#f2c44f!important;
}
html[data-rfos-theme="dark"][data-page-title="News updates"] .rfos-updates-main #newsFeed :is(.rfos-meta,.rfos-meta span,.rfos-news-preview-copy,.rfos-news-preview-copy p,.rfos-body,.rfos-body p){
  color:#eef3ff!important;
  -webkit-text-fill-color:#eef3ff!important;
}

/* X Spaces dark mode: colour/contrast only, keeping every stable v4.1.36 dimension. */
html[data-rfos-theme="dark"][data-page-title="X Spaces"] body,
html[data-rfos-theme="dark"][data-page-title="X Spaces"] .rfos-app-workspace{
  background:#07111f!important;
  color:#f5f7fb!important;
}
html[data-rfos-theme="dark"][data-page-title="X Spaces"] :is(.intro,.published-spaces,.account-section){
  background:#0e1a2c!important;
  border-color:#31527f!important;
  color:#f7f9ff!important;
}
html[data-rfos-theme="dark"][data-page-title="X Spaces"] :is(.intro h2,.published-spaces>h2,.account-section>h2,.space-card h2,.space-card h3,.published-space-body h3){
  color:#f2c44f!important;
  -webkit-text-fill-color:#f2c44f!important;
}
html[data-rfos-theme="dark"][data-page-title="X Spaces"] :is(.intro p,.space-card p,.published-space-description,.published-space-meta,.account-section p){
  color:#eef3ff!important;
  -webkit-text-fill-color:#eef3ff!important;
}
html[data-rfos-theme="dark"][data-page-title="X Spaces"] :is(.space-card,.published-space-card){
  background:#13233a!important;
  border-color:#31527f!important;
  color:#fff!important;
}


/* RFOS v4.1.36.2 — two-point stability patch requested by owner.
   1) News: make the visible Search-to-columns gap exactly one centimetre by
      removing the inherited desktop top offset from the three columns.
   2) Mobile/tablet: when the protected footer auto-hides, let the reading
      workspace occupy the vacated footer area. No card/layout geometry is changed. */
@media (min-width:1301px){
  html[data-page-title="News updates"] .rfos-updates-layout{
    margin-top:1cm!important;
  }
  body.rfos-news-shell :is(.rfos-updates-quotes,.rfos-updates-main,.rfos-updates-advertisements){
    top:auto!important;
  }
}
@media (max-width:1180px){
  body.rfos-fixed-shell.rfos-footer-autohide.rfos-footer-hidden .rfos-app-workspace{
    bottom:0!important;
  }
}
