/**
 * Horizon Canvas — assets/css/floating-controls.css.
 *
 * Utility controls stay in the lower corners rather than reserving space for
 * the retired chapter controller. Pixel sizes come from the Customizer.
 *
 * @package Horizon_Canvas
 * @author Dwayne Silvera
 * @since 1.0.0
 */
.rmst-back-to-top {
  right: max(var(--horizon-corner-gap, 12px), env(safe-area-inset-right, 0px));
  bottom: calc(var(--horizon-bottom-gap, 12px) + env(safe-area-inset-bottom, 0px));
  width: var(--horizon-arrow-size, 50px);
  height: var(--horizon-arrow-size, 50px);
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
.rmst-back-to-top .rmst-roof-arrow {
  width: 62%;
  height: 62%;
}
@media (max-width: 1000px) {
  .rmst-back-to-top {
    width: var(--horizon-arrow-size-mobile, 44px);
    height: var(--horizon-arrow-size-mobile, 44px);
  }
}

/* Stable narrow-screen composition avoids repeated large repaints and menu resizing. */
@media (max-width: 420px) {
  #rmsih[class] .site-header {
    padding: 10px 4%;
    gap: 8px;
  }
  #rmsih[class] .site-header .original-logo {
    width: 112px;
  }
  #rmsih[class] .site-header > .menu-toggle {
    padding: 8px;
    font-size: 13px;
  }
  #rmsih[class] .site-header > .header-search {
    margin-left: auto;
  }
  #rmsih[class] .site-header.horizon-header-ready {
    transition: none;
  }
  #rmsih[class] .site-header #rms-navigation {
    max-height: 60svh;
  }
  #rmsih[class] main {
    min-width: 0;
  }
  #rmsih[class] main :is(h1, h2, h3, p, a) {
    overflow-wrap: anywhere;
  }
  #rmsih[class] :is(.reveal, .section-heading, .project-copy, .service-reveal, .safety-reveal) {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  #rmsih[class]
    :is(.hero-photo, .hero-copy, .about-banner-photo, .advisory-hero-photo, .service-card) {
    transform: none !important;
    will-change: auto;
  }
  #rmsih[class] :is(.about-atmosphere, .hero-frame, .roof-blueprint) {
    display: none;
  }
  #rmsih[class] .project-scroll {
    height: auto !important;
    min-height: 0 !important;
  }
  #rmsih[class] .project-sticky {
    position: relative;
    height: auto;
    min-height: 0;
  }
  #rmsih[class] .project-image {
    height: 320px;
    min-height: 0;
    transform: none !important;
  }
}
@media (max-width: 360px) {
  #rmsih[class] .site-header .original-logo {
    width: 96px;
  }
}
