/* Flowing prose: keep the final line natural and let French words wrap cleanly. */
body.tsg-site-shell #tsg-main#tsg-main :is(p, li, dd, blockquote),
body.tsg-site-shell .tsg-footer :is(p, li, dd, blockquote),
.tsg-elementor-page :is(p, li, dd, blockquote) {
  text-align: justify !important;
  text-align-last: start;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
/* Short labels and interactive controls retain their intentional alignment. */
body.tsg-site-shell #tsg-main#tsg-main :is(nav, button, [role="button"]) :is(p, li),
body.tsg-site-shell .tsg-footer :is(nav, button, [role="button"]) :is(p, li),
.tsg-elementor-page :is(nav, button, [role="button"]) :is(p, li) {
  text-align: inherit !important;
  text-align-last: auto;
  hyphens: none;
}

/* The black news summaries are readable on the active card and the side cards. */
body.tsg-site-shell #tsg-main .tsg-showcase__stage,
.tsg-elementor-page .tsg-showcase__stage {
  height: 680px !important;
}
@media (max-width: 1100px) {
  body.tsg-site-shell #tsg-main .tsg-showcase__stage,
  .tsg-elementor-page .tsg-showcase__stage {
    height: 620px !important;
  }
}
body.tsg-site-shell #tsg-main .tsg-showcase-card .tsg-showcase-card__meta p,
.tsg-elementor-page .tsg-showcase-card .tsg-showcase-card__meta p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
  min-height: 3.2em !important;
  height: auto !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}
body.tsg-site-shell #tsg-main .tsg-news-card__body p,
.tsg-elementor-page .tsg-news-card__body p {
  font-size: 16px !important;
  line-height: 1.7 !important;
}
@media (max-width: 760px) {
  body.tsg-site-shell #tsg-main .tsg-showcase__stage,
  .tsg-elementor-page .tsg-showcase__stage {
    height: 580px !important;
  }
  body.tsg-site-shell #tsg-main .tsg-showcase-card .tsg-showcase-card__meta p,
  .tsg-elementor-page .tsg-showcase-card .tsg-showcase-card__meta p {
    font-size: 15px !important;
  }
}

/* Category controls keep the same geometry before, during and after selection. */
body.tsg-site-shell #tsg-main .tsg-map360__legend,
.tsg-elementor-page .tsg-map360__legend {
  bottom: 18px !important;
  justify-content: flex-start !important;
  scroll-padding-inline: 8px;
}
body.tsg-site-shell #tsg-main .tsg-map360__legend button,
.tsg-elementor-page .tsg-map360__legend button {
  display: flex !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  transform: none !important;
  text-align: center !important;
  line-height: 1.2 !important;
  transition-property: background-color, color, border-color, box-shadow !important;
}
.tsg-map360__legend button:first-child { margin-inline-start: auto !important; }
.tsg-map360__legend button:last-child { margin-inline-end: auto !important; }
body.tsg-site-shell #tsg-main .tsg-map360__legend button > i,
.tsg-elementor-page .tsg-map360__legend button > i {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-sizing: border-box;
  font-style: normal;
}
body.tsg-site-shell #tsg-main .tsg-map360__legend button > span,
.tsg-elementor-page .tsg-map360__legend button > span {
  display: block !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* The place card owns the close button; only its inner content scrolls. */
body.tsg-site-shell #tsg-main .tsg-map360__spotlight,
.tsg-elementor-page .tsg-map360__spotlight {
  top: 108px !important;
  bottom: auto !important;
  max-height: calc(100% - 284px) !important;
  overflow: hidden !important;
  flex-direction: column;
}
body.tsg-site-shell #tsg-main .tsg-map360__spotlight:not([hidden]),
.tsg-elementor-page .tsg-map360__spotlight:not([hidden]) {
  display: flex;
}
.tsg-map360__spotlight-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7badc transparent;
}
body.tsg-site-shell #tsg-main .tsg-map360__close,
.tsg-elementor-page .tsg-map360__close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 3;
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  border-radius: 50% !important;
  background: #3b1e7b !important;
  color: #fff !important;
  line-height: 1 !important;
  transform: none !important;
  cursor: pointer;
}
.tsg-map360__close svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  pointer-events: none;
}
.tsg-map360__close:focus-visible {
  outline: 3px solid #8faf74 !important;
  outline-offset: 3px;
}
.tsg-map360__photo[hidden] + .tsg-map360__content {
  padding-top: 58px;
}

/* A dedicated feedback row sits clear of both the card and the category bar. */
body.tsg-site-shell #tsg-main .tsg-map360__selection,
.tsg-elementor-page .tsg-map360__selection {
  left: 50% !important;
  right: auto !important;
  bottom: 86px !important;
  transform: translateX(-50%) !important;
  width: max-content;
  max-width: min(380px, calc(100% - 36px)) !important;
  min-height: 64px !important;
  box-sizing: border-box;
}
.tsg-map360__viewport:has(.tsg-map360__selection:not([hidden])) .tsg-map360__zoom-status {
  display: none !important;
}
@media (max-width: 760px) {
  body.tsg-site-shell #tsg-main .tsg-map360__legend,
  .tsg-elementor-page .tsg-map360__legend {
    bottom: 12px !important;
  }
  body.tsg-site-shell #tsg-main .tsg-map360__spotlight,
  .tsg-elementor-page .tsg-map360__spotlight {
    top: 86px !important;
    max-height: calc(100% - 266px) !important;
  }
  body.tsg-site-shell #tsg-main .tsg-map360__selection,
  .tsg-elementor-page .tsg-map360__selection {
    bottom: 82px !important;
    max-width: calc(100% - 24px) !important;
    min-height: 58px !important;
  }
}

/* Keep the hovered submenu above a different branch retaining keyboard focus. */
.tsg-header .tsg-nav__item:hover > .tsg-submenu {
  z-index: 121;
}
