/* C328 final footer row law: three horizontal rows everywhere.
   Rows may scroll on small screens, but links never stack into a vertical list
   and the brand never splits into separate words. */
html body .site-foot,
html body.ovh .site-foot {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  text-align: center !important;
}

html body .site-foot .ft-strip,
html body.ovh .site-foot .ft-strip {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body .site-foot .ft-main,
html body.ovh .site-foot .ft-main {
  grid-row: 1 !important;
  order: 1 !important;
}

html body .site-foot .ft-lg,
html body.ovh .site-foot .ft-lg {
  grid-row: 2 !important;
  order: 2 !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-height: 1.05 !important;
}

html body .site-foot .ft-main,
html body.ovh .site-foot .ft-main,
html body .site-foot .ft-legal,
html body.ovh .site-foot .ft-legal {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

html body .site-foot .ft-legal,
html body.ovh .site-foot .ft-legal {
  grid-row: 3 !important;
  order: 3 !important;
}

/* LB38 (CYCLE129): on mobile the legal row is forced flex-wrap:nowrap + white-space:nowrap, so all
   7 items (FAQ/Privacy/Terms/Security/Support/INFO@1031INTEL.COM/(c)) crammed onto ONE line and the
   font collapsed to ~8px -- unreadable, INFO email illegible. Let the row WRAP to multiple lines at
   a readable size on phones. */
@media (max-width: 760px) {
  html body .site-foot .ft-legal,
  html body.ovh .site-foot .ft-legal {
    flex-wrap: wrap !important;
    white-space: normal !important;
    justify-content: center !important;
    gap: 6px 12px !important;
  }
  html body.ovh .site-foot .ft-legal a,
  html body.ovh .site-foot .ft-legal .ft-note {
    font-size: 11px !important;
    white-space: nowrap !important;
  }
}

html body .site-foot .ft-nav,
html body.ovh .site-foot .ft-nav,
html body .site-foot nav.ft-nav,
html body.ovh .site-foot nav.ft-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
}

html body .site-foot .ft-nav a,
html body.ovh .site-foot .ft-nav a,
html body .site-foot .ft-nav span,
html body.ovh .site-foot .ft-nav span,
html body .site-foot .ft-note,
html body.ovh .site-foot .ft-note {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media (max-width: 900px) {
  html body .site-foot .ft-nav,
  html body.ovh .site-foot .ft-nav,
  html body .site-foot nav.ft-nav,
  html body.ovh .site-foot nav.ft-nav {
    justify-content: flex-start !important;
    padding-inline: 4px !important;
  }
}

/* C328 final float lock: the last-loaded stylesheet owns report/room launcher
   placement so room-specific mobile rules cannot pull Xavier back into the map. */
html body.ovh.report-body .site-guide-launch-row,
html body.ovh.room-body .room-chat-launch-row {
  top: auto !important;
  right: 28px !important;
  bottom: 128px !important;
  left: auto !important;
  z-index: 78 !important;
  width: auto !important;
  transform: none !important;
}

html body.ovh.report-body .site-guide-launch .site-guide-launch-copy,
html body.ovh.room-body .room-chat-launch .room-chat-launch-copy {
  display: none !important;
}

html body.ovh.report-body .site-guide-launch,
html body.ovh.room-body .room-chat-launch {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 5px !important;
  border-radius: 50% !important;
  gap: 0 !important;
  justify-content: center !important;
  align-items: center !important;
}

html body.ovh.report-body .site-guide-launch .site-guide-launch-mark,
html body.ovh.room-body .room-chat-launch .room-chat-launch-mark {
  width: 34px !important;
  height: 34px !important;
}

html body.ovh.report-body .site-guide-launch::after,
html body.ovh.room-body .room-chat-launch::after {
  position: absolute !important;
  left: 42px !important;
  right: auto !important;
  bottom: 13px !important;
  margin-left: 0 !important;
}

html body.ovh.report-body .view-controls,
html body.ovh.room-body .view-controls {
  top: auto !important;
  right: 84px !important;
  bottom: 137px !important;
  left: auto !important;
  z-index: 79 !important;
}

html body.ovh.report-body .view-controls-panel,
html body.ovh.room-body .view-controls-panel {
  top: auto !important;
  right: 0 !important;
  bottom: 36px !important;
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  border-radius: 18px !important;
}

html body.ovh.report-body .view-controls-group,
html body.ovh.room-body .view-controls-group,
html body.ovh.report-body .view-controls-density,
html body.ovh.room-body .view-controls-density {
  grid-template-columns: repeat(3, 22px) !important;
  gap: 3px !important;
}

html body.ovh.report-body .view-controls-group button,
html body.ovh.room-body .view-controls-group button,
html body.ovh.report-body .view-controls-density button,
html body.ovh.room-body .view-controls-density button {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
}

@media (min-width: 901px) {
  html body.ovh.report-body .hybrid-report-list,
  html body.ovh.report-body .report-list.hybrid-report-list {
    padding-right: 150px !important;
  }

  html body.ovh.room-body .room-list-panel .room-list {
    padding-right: 150px !important;
  }

  html body.ovh.report-body main.shell.report-page .report-board .hybrid-report-row,
  html body.ovh.report-body main.shell.report-page .report-board .hybrid-report-row > button,
  html body.ovh.room-body .room-export-grid.simplified-room-grid .room-list-panel .room-list .hybrid-report-row,
  html body.ovh.room-body .room-export-grid.simplified-room-grid .room-list-panel .room-list .hybrid-report-row > button {
    width: calc(100% - 170px) !important;
    max-width: calc(100% - 170px) !important;
    margin-right: 170px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 720px) {
  html body.ovh.report-body .site-guide-launch-row,
  html body.ovh.room-body .room-chat-launch-row {
    top: auto !important;
    right: 14px !important;
    bottom: 108px !important;
  }

  html body.ovh.report-body .view-controls,
  html body.ovh.room-body .view-controls {
    top: auto !important;
    right: 72px !important;
    bottom: 116px !important;
  }

  html body.ovh.report-body .view-controls-panel,
  html body.ovh.room-body .view-controls-panel {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 84px !important;
  }

  html body.ovh.home .view-controls-panel {
    bottom: 154px !important;
  }

  html body.ovh.report-body main.shell.report-page .report-map-card .leaflet-report-map-shell:not(.is-expanded) .report-map-controls,
  html body.ovh.report-body .leaflet-report-map-shell:not(.is-expanded) .report-map-controls,
  html body.ovh.room-body .room-map-shell:not(.is-expanded) .room-map-controls {
    top: 18px !important;
    right: 18px !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    height: 36px !important;
    min-height: 36px !important;
    max-width: calc(100% - 36px) !important;
    gap: 6px !important;
  }

  html body.ovh.report-body .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-expand,
  html body.ovh.room-body .room-map-shell:not(.is-expanded) .room-map-controls .map-control-expand {
    order: 0 !important;
    margin-bottom: 0 !important;
    grid-column: auto !important;
  }

  html body.ovh.report-body main.shell.report-page .report-map-card .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-zoom,
  html body.ovh.report-body main.shell.report-page .report-map-card .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-expand,
  html body.ovh.report-body .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-zoom,
  html body.ovh.report-body .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-expand,
  html body.ovh.room-body .room-map-shell:not(.is-expanded) .room-map-controls .map-control-zoom,
  html body.ovh.room-body .room-map-shell:not(.is-expanded) .room-map-controls .map-control-expand {
    display: inline-flex !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    flex: 0 0 36px !important;
  }
}
