* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #f3f4f2;
  color: #243038;
}
/* Seul le document embarqué est verrouillé ; main porte alors le scroll. */
html.in-iframe,
html.in-iframe body.explorer-page {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
html.in-iframe #explorer-main{height:100%;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}#explorer-main{padding:calc(22px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) calc(42px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px))}.explorer-heading,#explorer-status,#explorer-retry,#explorer-activities{max-width:760px;margin-left:auto;margin-right:auto}.explorer-heading{margin-bottom:28px}.explorer-heading p{line-height:1.6;color:#53636a}h1{font-size:clamp(30px,6vw,42px);margin:4px 0}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:12px;margin:22px 0 0}a{color:inherit}button{font:inherit;cursor:pointer}#explorer-retry{display:block;padding:10px 18px;border:1px solid #bac5c4;border-radius:10px;background:#fff}#explorer-retry[hidden]{display:none}#explorer-activities{display:grid;gap:18px}.explorer-card{background:#fff;border:1px solid #dde3e0;border-radius:16px;overflow:hidden}.explorer-card img{display:block;width:100%;max-height:260px;object-fit:cover}.explorer-card-content{padding:20px}.explorer-card h2{font-size:21px;line-height:1.35;margin:8px 0 12px}.explorer-card p{line-height:1.6;margin:8px 0}.explorer-date{font-weight:650;color:#3b6264}.explorer-description{color:#53636a;white-space:pre-line;overflow-wrap:anywhere}.explorer-badges{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.explorer-badges span{font-size:12px;border-radius:20px;background:#eef3f0;padding:5px 10px}.explorer-event-link{display:inline-block;margin-top:10px;font-weight:650;text-underline-offset:4px}:focus-visible{outline:3px solid #977c38;outline-offset:4px}@media(min-width:800px){#explorer-main{padding-top:38px}.explorer-card-content{padding:24px}}

/* Réserver le bandeau partagé, y compris dans le scroll interne de l’iframe. */
body.explorer-page #explorer-main {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* Même cadre, grande image et fondu blanc que les cartes Autres sources. */
.explorer-card.tribunes-item {
  border: 3px solid #000;
  border-radius: 8px;
  cursor: default;
}
.explorer-card .explorer-card-media {
  aspect-ratio: 1.65 / 1;
  background: #e5e7eb center / cover no-repeat;
}
.explorer-card .explorer-card-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: 0;
}
.explorer-card .explorer-card-media img.is-loaded { opacity: 1; }
.explorer-card-placeholder { display: none; }
.explorer-card-media-empty .explorer-card-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: #89979d;
  font-size: clamp(48px, 12vw, 90px);
  background: linear-gradient(145deg, #e8eeeb, #c3cfd0);
}
.explorer-card .explorer-card-content {
  gap: 7px;
  padding: 1px 14px 16px;
}
.explorer-card h2.tribunes-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.explorer-card-content p { margin: 0; }
.explorer-card .explorer-description {
  cursor: pointer;
  color: #000;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.explorer-card .explorer-description.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  cursor: pointer;
}
.explorer-card .explorer-description-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  /* Rapproché de la description, un peu plus d'air avant les boutons. */
  margin: -5px auto 7px;
  padding: 2px 8px;
  gap: 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #6b7880;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  opacity: .88;
}
.explorer-description-toggle .debate-card-context-chevron { font-size: 8px; }
.explorer-card .explorer-date { font-size: .85rem; }
.explorer-card .explorer-badges {
  margin: -2px 0 -2px;
  justify-content: center;
}
.explorer-card .explorer-event-link {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 0;
  padding: 4px 8px;
  border: 1px solid #243038;
  border-radius: 999px;
  color: #fff;
  background: #243038;
  text-decoration: none;
}
#explorer-activities { gap: 16px; }

/* Bandeau Mon fil : logo centré, menu à gauche, compte à droite.
   Il défile dans le même document que les cartes, y compris en iframe. */
body.explorer-page #explorer-main { padding-top: 0; }
body.explorer-page .topbar {
  position: relative;
  top: auto;
  max-width: none;
  margin: 0 calc(-1 * max(18px, env(safe-area-inset-right, 0px))) 24px calc(-1 * max(18px, env(safe-area-inset-left, 0px)));
}
body.explorer-page .topbar-inner {
  position: relative;
  justify-content: center !important;
  padding: 2px 0 !important;
}
body.explorer-page .home-brand-block {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}
.explorer-topbar-actions {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
body.is-standalone.explorer-page .topbar--mnoria-uniform > .standalone-header-power {
  display: inline-flex !important;
  position: absolute !important;
  top: 50% !important;
  right: 20px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
}
@media (max-width: 520px) {
  body.explorer-page .topbar-inner { padding: 0 !important; }
  body.is-standalone.explorer-page .topbar--mnoria-uniform > .standalone-header-power {
    top: calc(18px + env(safe-area-inset-top, 0px)) !important;
    transform: none !important;
  }
}

/* Présentation du titre reprise d’Autres sources. */
html:has(body.explorer-page),
body.explorer-page,
body.explorer-page #explorer-main {
  background: #243038;
}
body.explorer-page #explorer-status {
  color: #c7ced4;
  margin-top: 2px;
  margin-bottom: 13px;
}
.explorer-heading {
  margin-bottom: 4px;
  padding: 2px 16px 10px;
  border-radius: 8px 8px 0 0;
  background: #243038;
  text-align: center;
}
.explorer-heading h1 {
  margin: 0 0 16px;

  font-size: 34px;
  line-height: 1;
  color: #e8e8e8;
}
.explorer-heading p {
  margin: 0 0 12px;
  color: #c7ced4;
  line-height: 1.45;
}

/* Flèches fixes : mêmes dimensions et positions que sur Autres actus. */
body.explorer-page .app-floating-refresh-btn.index-floating-scroll-btn {
  width: 36px;
  height: 36px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
}
body.explorer-page .index-floating-scroll-btn i { font-size: 16px; }
body.explorer-page .index-floating-scroll-up { left: calc(50% - 55px) !important; }
body.explorer-page .index-floating-scroll-down { left: calc(50% + 55px) !important; }
@media (max-width: 768px) {
  body.explorer-page .app-floating-refresh-btn.index-floating-scroll-btn {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    bottom: 82px !important;
  }
  body.explorer-page .index-floating-scroll-btn i { font-size: 13px !important; }
  body.explorer-page .index-floating-scroll-up { left: calc(50% - 40px) !important; }
  body.explorer-page .index-floating-scroll-down { left: calc(50% + 40px) !important; }
}

/* Dimensions et typographie exactes du loader de rafraîchissement Accueil.
   Sa chronologie et sa sortie utilisent initMnoriaStartupLoader du script partagé. */
body.explorer-page .mnoria-startup-loader {

}
body.explorer-page .mnoria-startup-brand {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.explorer-page .mnoria-startup-logo-img {
  width: 270px;
  min-height: 0;
}
body.explorer-page .mnoria-startup-lines { transform: translateY(-20px); }
body.explorer-page .mnoria-startup-line {
  margin: 9px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.45);
}
body.explorer-page .mnoria-startup-line.is-playing {
  animation: mnoriaStartupLineIn 1.4s ease forwards;
}
html.mnoria-startup-active body.explorer-page .app-floating-refresh-btn {
  visibility: hidden !important;
}
html.mnoria-startup-active:has(#mnoria-startup-loader:not(.is-hiding)) body.explorer-page .home-bottom-nav {
  opacity: 0 !important;
}

/* Retour porté par le document Explorer, au-dessus de sa navigation. */
#explorer-close-frame[hidden] { display: none !important; }
html.in-iframe #explorer-close-frame:not([hidden]) {
  display: inline-flex !important;
  position: fixed;
  left: calc(20% - 13px);
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  z-index: 500;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgba(26,39,47,.94), rgba(26,39,47,.94)) padding-box,
    linear-gradient(to bottom, #f3f4f6 0%, #d1d5db 42%, #111827 58%, #111827 100%) border-box;
  color: #e5edf3;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
@media (max-width: 768px) {
  html.in-iframe #explorer-close-frame:not([hidden]) {
    bottom: 82px;
  }
}

#explorer-sort-search-wrap {
  position: sticky;
  top: calc(-14px + env(safe-area-inset-top, 0px));
  z-index: 150;
  max-width: 760px;
  margin: -2px auto 2px;
  padding: 3px 0 0;
  background: transparent;
}
body.explorer-page #explorer-sort-search-wrap .index-explorer-topbar { margin-top: 0px; }
body.explorer-page .index-sort-toggle {
  padding: 8px 16px;
  gap: 7px;
  font-size: 13.5px;
  border: 2px solid #000;
}
#explorer-controls { border: 2px solid #000; margin-top: 12px; }
#explorer-controls[hidden] { display: none !important; }

#explorer-zone-bar {
  max-width: 760px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.explorer-zone-button {
  max-width: 100%;
}
.explorer-zone-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.explorer-zone-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 290;
}
.explorer-zone-picker-backdrop[hidden] { display: none !important; }
.explorer-zone-picker {
  position: fixed;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  z-index: 291;
  width: min(420px, calc(100% - 32px));
  max-height: 72vh;
  background: #ffffff;
  color: #111827;
  border: 2px solid #000;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.explorer-zone-picker[hidden] { display: none !important; }
.explorer-zone-picker-inner {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  gap: 10px;
  overflow: hidden;
}
.explorer-zone-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.explorer-zone-picker-header h2 {
  margin: 0;
  font-size: 1.05rem;
}
#explorer-zone-search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 15px;
}
.explorer-zone-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
}
.explorer-zone-results {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}
.explorer-zone-result {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.explorer-zone-result:hover,
.explorer-zone-result:focus-visible {
  background: #f3f4f6;
  outline: none;
}
.explorer-zone-result-name { font-weight: 700; }
.explorer-zone-result-sub { font-size: 0.78rem; color: #6b7280; }
.explorer-zone-result-territory .explorer-zone-result-name::before {
  content: "🌐 ";
}

.explorer-card-details {
  display: block;
  font-size: .85rem;
  line-height: 1.45;
}
.explorer-card-details > span {
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
}

.explorer-participation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 3px 0;
}
.explorer-participation-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px 8px;
  border: 1px solid #243038;
  border-radius: 999px;
  background: #fff;
  color: #243038;
}
.explorer-participation-button[aria-pressed="true"] {
  border-color: #b8860b;
  color: #946b08;
  box-shadow: inset 0 0 0 1px #b8860b;
}

.explorer-card .explorer-participation-feedback {
  text-align: center;
  font-size: .8rem;
  color: #53636a;
}
.explorer-participation-button:disabled { opacity: .55; cursor: wait; }

/* Bandeaux de rubriques : même visuel que les thèmes d’Autres actus. */
.explorer-rubric { min-width: 0; padding-top: 4px; }
.explorer-rubric-heading {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0 -8px 8px;
  padding: 10px 8px 12px;
}
.explorer-rubric-heading::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    linear-gradient(90deg, #f3f4f6 0%, #d1d5db 25%, #9ca3af 50%, #374151 75%, #111827 100%) top / 100% 5px no-repeat,
    linear-gradient(90deg, #111827 0%, #374151 25%, #9ca3af 50%, #d1d5db 75%, #f3f4f6 100%) bottom / 100% 5px no-repeat,
    #e9ebec;
}
.explorer-rubric-heading h2 {
  margin: 0;
  color: #000;

  font-size: 34px;
  white-space: nowrap;
  font-weight: 900;
  line-height: .98;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: none;
}
.explorer-rubric-cards { display: grid; gap: 28px; }
.explorer-rubric-empty { color: #c7ced4; text-align: center; padding: 12px; }
@media (max-width: 520px) {
  .explorer-rubric-heading { margin-left: -10px; margin-right: -10px; padding: 9px 8px 10px; }
  .explorer-rubric-heading h2 { font-size: clamp(22px, 6vw, 30px); }
}

/* La carte fermée ne montre que son aperçu ; Voir plus révèle tous les détails. */
.explorer-card .explorer-card-details[hidden],
.explorer-card .explorer-badges[hidden],
.explorer-card .explorer-participation[hidden],
.explorer-card .explorer-event-link[hidden],
.explorer-card .explorer-participation-feedback[hidden] {
  display: none !important;
}

/* Dimensions conservées ; typographie partagée dans mnoria-typography.css. */
body.explorer-page .explorer-card .explorer-description { font-size: 15px; line-height: 1.45; }
body.explorer-page .explorer-card-details { font-size: 14px; }
/* Boutons du bas des cartes : taille de référence = « Commenter cet événement ». */
body.explorer-page :is(.explorer-event-link, .explorer-participation-button) {
  font: 600 11px/1.05 var(--font-ui) !important; letter-spacing: normal !important; text-transform: none !important;
}
body.explorer-page .explorer-card .explorer-description-toggle { font-size: 12px; }

/* Navigateur mobile : alignement des trois flèches sur Mon fil.
   Le placement standalone validé conserve ses règles précédentes. */
@media (max-width: 768px) {
  body.explorer-page:not(.is-standalone) .app-floating-refresh-btn.index-floating-scroll-btn,
  html.in-iframe body.explorer-page:not(.is-standalone) #explorer-close-frame:not([hidden]) {
    bottom: calc(48px + var(--mnoria-embedded-bottom-ext, 0px)) !important;
  }
}

.explorer-card .explorer-category { font-size: 12px; color: #aebfc5; margin-bottom: 6px; }

/* Commentaires d'événement : même bouton et même panneau que les cartes de Mon fil. */
.explorer-card .explorer-conversation { display: flex; flex-direction: column; align-items: center; margin-top: 10px; padding-top: 0; }
.explorer-conversation .mon-fil-conversation-toggle.mon-fil-card-action.button {
  display: inline-flex; align-items: center; gap: 5px; min-height: 0; margin: 0 auto; padding: 4px 8px;
  border: 1px solid #2c3e50; border-radius: 999px; background: #fff !important; color: #2c3e50;
  font: 600 11px/1.05 var(--font-ui) !important; letter-spacing: normal !important; text-transform: none !important;
  white-space: normal; box-shadow: none;
}
.explorer-conversation .mon-fil-conversation-toggle.mon-fil-card-action.button:is(:hover, :focus-visible) { background: #edf1f3 !important; color: #2c3e50; }
.explorer-conversation .mon-fil-conversation-toggle.mon-fil-card-action.button::before {
  content: "\f075"; color: #8b969d; font-family: "Font Awesome 6 Free"; font-size: 9px; font-weight: 900; line-height: 1; flex: 0 0 auto;
}
.explorer-conversation .mon-fil-conversation-panel { align-self: stretch; width: 100%; text-align: left; }
.explorer-conversation .mon-fil-conversation-message p { margin: 3px 0; }
.explorer-conversation :is(.mon-fil-conversation-like, .mon-fil-conversation-page) {
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 5px 9px; background: #fff; color: #234a50; font: inherit; cursor: pointer;
}
.explorer-conversation :is(.mon-fil-conversation-like[aria-pressed="true"], .mon-fil-conversation-page[aria-current="page"]) { background: #234a50; border-color: #234a50; color: #fff; }
.explorer-conversation .mon-fil-conversation-like { margin-right: 8px; }
.explorer-conversation .mon-fil-conversation-like:disabled { opacity: .6; cursor: wait; }
.explorer-conversation .mon-fil-conversation-like-status { font-size: .8rem; color: #9f1239; }
.explorer-conversation .mon-fil-conversation-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }

/* Carte sans catégorie reconnue : le titre ne colle pas à l'image. */
.explorer-card .explorer-card-content > .explorer-title-row:first-child { margin-top: 12px; }

/* Actions de suivi et republication en haut à gauche du média. */
.explorer-title-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.explorer-title-row > h2.tribunes-title { flex: 1; min-width: 0; }
.explorer-title-bell {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px;
  width: 22px; height: 22px; margin-top: .3em; padding: 0; box-sizing: border-box;
  border: 1.25px solid rgba(26, 31, 36, .5); border-radius: 50%; background: #fff; color: #1a1f24;
  font-size: 10px; line-height: 1; cursor: pointer;
}
.explorer-title-bell[aria-pressed="true"] { background: #234a50; color: #fff; border-color: #234a50; }
.explorer-title-bell:disabled { opacity: .55; cursor: wait; }

.explorer-card-corner-actions {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.explorer-card-corner-actions > .explorer-title-bell {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  margin: 0;
}

/* Même format que les actions des cartes de l’accueil. */
body.explorer-page .explorer-card-corner-actions { top:7px; left:8px; gap:5px; }
body.explorer-page .explorer-card-corner-actions > :is(.explorer-title-bell, .social-repost-button, .activity-share-btn) {
  position:static; display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 24px; box-sizing:border-box; width:24px; min-width:24px;
  height:24px; min-height:24px; padding:3px; margin:0;
  border:1.5px solid rgba(26,31,36,.5); border-radius:999px;
  background:#f7f7f7; color:#1a1f24;
  -webkit-appearance:none; appearance:none;
}
body.explorer-page .explorer-card-corner-actions > .activity-share-btn svg {
  width:17px; height:17px; fill:currentColor; stroke:none; filter:none;
}
body.explorer-page .explorer-card-corner-actions > :is(.activity-share-btn, .social-repost-button, .explorer-title-bell):focus-visible {
  outline:2px solid #2f8a62; outline-offset:3px;
}
body.explorer-page .explorer-card-corner-actions > .social-repost-button.is-reposted { background:#1a1f24; color:#fff; }
body.explorer-page .explorer-card-corner-actions > .explorer-title-bell[aria-pressed="true"] { background:#234a50; color:#fff; border-color:#234a50; }
/* Cœur : même pastille de 24px que la cloche, compteur en petite bulle au coin. */
body.explorer-page .explorer-card-corner-actions > .social-like-button {
  flex:0 0 24px; width:24px; min-width:24px; height:24px; min-height:24px;
  border:1.5px solid rgba(26,31,36,.5); background:#f7f7f7; box-shadow:none;
}
body.explorer-page .explorer-card-corner-actions > .social-like-button svg { width:13px; height:13px; }
body.explorer-page .explorer-card-corner-actions > .social-like-button.is-liked { background:#1a1f24; color:#fff; border-color:#1a1f24; }

/* Pagination : « Voir plus » sous le fil, masqué quand tout est chargé. */
#explorer-more {
  display: block;
  margin: 22px auto 0;
  padding: 11px 26px;
  border: 1px solid #5d6f78;
  border-radius: 999px;
  background: transparent;
  color: #e7ecef;
  font-weight: 650;
}
#explorer-more[hidden] { display: none; }
#explorer-more:disabled { opacity: .6; cursor: progress; }

/* Même pagination que l’accueil, scroll natif sans intercepter les actions des cartes. */
.explorer-rubric-cards {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y pinch-zoom;
  scrollbar-width: none;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.explorer-rubric-cards::-webkit-scrollbar { display: none; }
.explorer-rubric-cards > .explorer-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.explorer-rubric > .theme-carousel-dots {
  flex-wrap: wrap;
  gap: 22px;
  padding: 10px 12px;
  margin-bottom: 4px;
  box-sizing: border-box;
}
.explorer-rubric .theme-carousel-dot { padding: 0; border: 0; flex: 0 0 7px; }
@media (prefers-reduced-motion: reduce) {
  .explorer-rubric-cards { scroll-behavior: auto; }
}

/* Contour noir conservé également sur la carte active. */
.explorer-rubric-cards > .explorer-card { transition: border-color .24s ease; }
.explorer-rubric-cards > .explorer-card.index-card-active { border-color: #000; }

/* Le tag appartient au même bloc sticky que Trier / Rechercher. */
#explorer-zone-tag-wrap { display: flex; justify-content: center; padding: 2px 0 8px; }
#explorer-zone-tag-wrap[hidden], #explorer-zone-save-status[hidden] { display: none; }
#explorer-zone-tag {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 5px 11px; border: 1px solid #000; border-radius: 999px;
  background: #E9EBEC; color: #111; font-size: 12px; font-weight: 650;
}
#explorer-zone-tag-label { overflow-wrap: anywhere; }
#explorer-zone-save-status { margin: 2px 0 8px; color: #fff; font-size: 12px; text-align: center; }

#explorer-search[hidden] { display: none !important; }

#explorer-zone-save {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 12px; padding: 11px 16px;
  border: 2px solid #000; border-radius: 999px;
  background: #fff; color: #111; font-weight: 700;
}
#explorer-zone-save:disabled { opacity: .55; cursor: default; }
#explorer-zone-save[aria-busy="true"] { opacity: 1; cursor: wait; }
#explorer-zone-save .load-more-spinner[hidden] { display: none; }
.explorer-zone-result[aria-selected="true"] { background: #e2e8e6; outline: 2px solid #000; outline-offset: -2px; }

#explorer-controls .search-box { gap: 8px; }

/* Recherche de zone directement visible dans les options, sans fenêtre supplémentaire. */
#explorer-controls .explorer-zone-picker {
  position: static; inset: auto; transform: none; z-index: auto;
  width: 100%; max-height: none; background: transparent;
  border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
#explorer-controls .explorer-zone-picker-inner { padding: 0; overflow: visible; }
#explorer-controls .explorer-zone-picker-header { display: none; }
#explorer-controls .explorer-zone-results { max-height: 220px; flex: 0 1 auto; }
