/**
 * Horizon Canvas — shared compact handover presentation.
 * @package Horizon_Canvas
 * @author Dwayne Silvera
 * @since 1.0.0
 */
#rmsih[class] main :is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.18 !important;
  margin-top: 0;
}
#rmsih[class] main :is(h1, h2) {
  margin-bottom: 18px;
}
#rmsih[class] main :is(h3, h4, h5, h6) {
  margin-bottom: 12px;
}
#rmsih[class] main p:not(.eyebrow):not(.small) {
  max-width: 72ch;
}
#rmsih[class] main :is(.about-opening-grid, .service-points) {
  margin-top: 24px;
}
#rmsih[class]
  main
  :is(
    .about-opening-grid,
    .about-people-grid,
    .about-values-grid,
    .service-overview-grid,
    .safety-opening-grid,
    .contact-grid
  ) {
  gap: clamp(20px, 4vw, 44px);
}
#rmsih[class] .original-slider :is(h1, h2) {
  font-size: var(--horizon-font-title, 38px) !important;
  line-height: 1.12 !important;
}
@media (max-width: 680px) {
  #rmsih[class] main :is(h1, h2) {
    margin-bottom: 14px;
  }
  #rmsih[class] main :is(.about-opening-grid, .service-points) {
    margin-top: 18px;
  }
  #rmsih[class] .original-slider :is(h1, h2) {
    font-size: var(--horizon-font-title, 28px) !important;
  }
}

/* Shared cards retain page-specific layouts and always provide readable inner gutters. */
#rmsih[class] .service-information-item > summary,
#rmsih[class] :is(.values-item, .faq-item) > summary {
  padding: 20px 24px !important;
  min-height: 60px;
  gap: 20px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
#rmsih[class] .service-information-item > .service-copy {
  padding: 0 24px 22px !important;
}
#rmsih[class] .service-information-item :is(p, span, strong, em) {
  font-family: inherit !important;
}
#rmsih[class] .service-information-item .service-copy p {
  font-size: var(--horizon-font-body, 16px) !important;
  line-height: 1.55 !important;
}
#rmsih[class] .service-information-item > summary:hover,
#rmsih[class] .service-information-item > summary:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline-offset: -3px;
}
#rmsih[class] :is(.service-point, .service-related-card, .service-resource) {
  padding: clamp(20px, 3vw, 28px);
}
/* Motion remains inside the banner's gutters even on its first painted frame. */
#rmsih[class] :is(.advisory-statement, .statement) {
  padding: 18px 28px !important;
  white-space: normal !important;
  overflow: hidden;
}
#rmsih[class] :is(.advisory-statement, .statement) > span {
  display: block;
  width: auto !important;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  transform: translateX(calc(-6px + 12px * var(--advisory-statement-travel, 0.5)));
}
#rmsih .horizon-contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  vertical-align: -0.18em;
  margin-right: 8px;
}
#rmsih :is(a[href^='tel:'], a[href^='mailto:']) {
  overflow-wrap: anywhere;
}
#rmsih .horizon-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 680px) {
  #rmsih[class] .service-information-item > summary {
    padding: 18px 20px !important;
  }
  #rmsih[class] .service-information-item > .service-copy {
    padding: 0 20px 20px !important;
  }
  #rmsih[class] :is(.advisory-statement, .statement) {
    padding: 16px 20px !important;
  }
  #rmsih[class] :is(.advisory-statement, .statement) > span {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rmsih[class] :is(.advisory-statement, .statement) > span {
    transform: none !important;
  }
}

#rmsih[class] main :is(summary, button, input, select, textarea) {
  font-family: var(--rms-d-font, system-ui, sans-serif) !important;
}
#rmsih[class] main .team-value > summary {
  padding-inline: 24px;
  gap: 20px;
}
#rmsih[class] main .team-value > :not(summary) {
  margin-inline: 24px;
}
#rmsih[class] .site-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Text clarity: keep readable copy out of scroll-fade and scaling layers.
 * Photographs and the independent roof renderer retain their own animation rules.
 */
#rmsih[class]
  :is(
    .reveal,
    .section-heading,
    .project-copy,
    .about-reveal,
    .service-reveal,
    .safety-reveal,
    .hero-copy,
    .advisory-hero-copy,
    .immersive-line
  ):not(img):not(picture):not(canvas):not(svg) {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  will-change: auto !important;
}
#rmsih[class]
  :is(main, .site-header, .site-footer)
  :is(h1, h2, h3, h4, h5, h6, p, li, a, summary, button, label, small) {
  text-shadow: none !important;
  font-kerning: normal;
}
#rmsih[class] main :is(h1, h2, h3, h4, h5, h6) {
  letter-spacing: -0.015em !important;
}
#rmsih[class] main p:not(:where(.original-slider *)) {
  font-weight: 500 !important;
}
#rmsih[class] .site-footer :is(p, a, small) {
  opacity: 1 !important;
}
