/* ==========================================================================
   Arbitres — map left · mock-up carousel right · media gallery bottom
   Mock: fyi-grokb/referee_slides.png
   ========================================================================== */

/* Bare dark theme: green only on .is-selected */
body.arbitres-page .region-list-btn {
  background: rgba(14, 14, 14, 0.95) !important;
  color: #f0f0f0 !important;
  border: 1.5px solid #1a7a4c !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
body.arbitres-page .region-list-btn:hover {
  border-color: #e8c872 !important;
  color: #fff !important;
  background: rgba(22, 22, 22, 0.98) !important;
  box-shadow: 0 0 0 1px rgba(232, 200, 114, 0.22), 0 0 14px rgba(232, 200, 114, 0.16) !important;
}
body.arbitres-page .region-list-btn.is-selected {
  background: #1a7a4c !important;
  color: #fff !important;
  border-color: #e8c872 !important;
  box-shadow:
    0 0 0 2px rgba(232, 200, 114, 0.55),
    0 0 16px rgba(26, 122, 76, 0.45) !important;
}
body.arbitres-page .cmr-map .region {
  fill: #1c1c1c !important;
  fill-opacity: 0.95 !important;
  stroke: rgba(232, 200, 114, 0.28) !important;
  stroke-width: 1 !important;
  filter: none !important;
  animation: none !important;
  cursor: pointer;
}
body.arbitres-page .cmr-map .region:hover {
  fill: #2a2a2a !important;
  stroke: rgba(232, 200, 114, 0.65) !important;
}
body.arbitres-page .cmr-map .region.is-selected {
  fill: #1a7a4c !important;
  stroke: #e8c872 !important;
  stroke-width: 1.5 !important;
  filter: drop-shadow(0 0 10px rgba(26, 122, 76, 0.55)) !important;
  animation: arbitres-region-pulse 1.8s ease-in-out infinite !important;
}
@keyframes arbitres-region-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(26, 122, 76, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(232, 200, 114, 0.45)) brightness(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  body.arbitres-page .cmr-map .region.is-selected {
    animation: none !important;
  }
}

/* Taller map+panel so profile photo fits */
@media (min-width: 900px) {
  body.arbitres-page .ligues-map-layout {
    min-height: min(72vh, 580px);
    height: min(72vh, 580px);
  }
}

/* Hide in-nav breadcrumb duplicate (path lives under menu only) */
body.arbitres-page .ligues-crumb {
  display: none !important;
}

/* ---------- Panel shell (mock-up) ---------- */
#arbitres-panel.is-open {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.arb-panel-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.arb-panel-empty-region {
  padding: 1.25rem 1.1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Meta: badge + count · person 1/2 */
.arb-panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem 0.4rem;
  flex-shrink: 0;
}
.arb-panel-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}
.arb-panel-meta .status-badge {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}
.arb-panel-count {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--gold, #e8c872);
  white-space: nowrap;
}
.arb-person-counter {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Person navigator: ‹ NAME › + title (gold) */
.arb-person-nav {
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.25rem;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem 0.45rem;
  flex-shrink: 0;
}
.arb-person-identity {
  text-align: center;
  min-width: 0;
}
.arb-person-name {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #f4f4f4;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.arb-person-role {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--gold, #e8c872);
  line-height: 1.3;
}

/* Shared chevrons */
.arb-nav-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.arb-nav-chev:hover {
  transform: scale(1.12);
  color: #fff;
}
.arb-nav-chev.is-spacer {
  visibility: hidden;
  pointer-events: none;
}
.arb-nav-chev-sm {
  width: 2rem;
  height: 2rem;
  font-size: 1.4rem;
}

/* Content slide nav: ‹ dots › */
.arb-content-nav {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.45rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.arb-content-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.arb-content-dots .hist-dot,
.arb-content-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(232, 200, 114, 0.28);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.arb-content-dots .hist-dot.is-active,
.arb-content-dot.is-active {
  background: var(--gold, #e8c872);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(232, 200, 114, 0.45);
}

/* Slide viewport — no scroll on profile */
.arb-slide-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(26, 122, 76, 0.07), transparent 55%),
    #0a0a0a;
  display: flex;
  flex-direction: column;
}
.arb-slide-viewport > * {
  flex: 1;
  min-height: 0;
}

/* Profile slide — photo left · logo + bio right (name/title only in top nav) */
.arb-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0.75rem 0.9rem;
  align-items: stretch;
  padding: 0.7rem 0.85rem 0.65rem;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.arb-profile-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #080808;
  border: 1px solid rgba(232, 200, 114, 0.2);
  min-height: 0;
  height: 100%;
  max-height: 100%;
  align-self: stretch;
}
.arb-profile-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.arb-profile-photo-ph {
  min-height: 140px;
  height: 100%;
  background: #121212;
}
/* Right column: logo fully visible on top, bio fills rest without scroll */
.arb-profile-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  gap: 0.55rem;
  overflow: hidden;
  padding-top: 0.15rem;
}
.arb-profile-logo-wrap {
  flex-shrink: 0;
  margin: 0;
  line-height: 0;
}
.arb-profile-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 200, 114, 0.45);
  background: #000;
  cursor: zoom-in;
  display: block;
}
.arb-profile-bio {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  font-size: clamp(0.72rem, 1.35vw, 0.84rem);
  color: #c8c8c8;
  line-height: 1.4;
  overflow: hidden;
  /* Fit bio in remaining space — no carousel scroll */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
  line-clamp: 9;
  word-break: break-word;
}

/* Values / Missions / Achievements content */
.arb-content-slide {
  padding: 0.85rem 1rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  scrollbar-width: thin;
  box-sizing: border-box;
  height: 100%;
}
.arb-content-logo {
  margin-bottom: 0.4rem;
}
.arb-content-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 200, 114, 0.35);
  background: #000;
}
.arb-content-tag {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #e8c872);
}
.arb-content-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f0f0f0;
  line-height: 1.25;
}
.arb-slide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 28rem;
  display: grid;
  gap: 0.45rem;
}
.arb-slide-values li {
  font-size: 0.86rem;
  font-weight: 650;
  color: #f0f0f0;
  padding: 0.55rem 0.75rem;
  background: rgba(26, 122, 76, 0.16);
  border: 1px solid rgba(26, 122, 76, 0.35);
  border-radius: 10px;
  line-height: 1.35;
  text-align: center;
}
.arb-slide-missions {
  list-style: disc;
  padding-left: 1.15rem;
  text-align: left;
  max-width: 32rem;
}
.arb-slide-missions li {
  font-size: 0.82rem;
  color: #d8d8d8;
  line-height: 1.45;
  padding: 0.2rem 0;
}
.arb-slide-achievements {
  margin: 0;
  font-size: 0.9rem;
  color: #f0f0f0;
  line-height: 1.5;
  padding: 0.85rem 1rem;
  background: rgba(232, 200, 114, 0.08);
  border: 1.5px solid rgba(232, 200, 114, 0.4);
  border-radius: 12px;
  text-align: left;
  max-width: 28rem;
}

/* Gallery CTA */
.arb-panel-cta-row {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.arb-panel-cta-row .league-panel-cta {
  width: 100%;
}

@media (max-width: 640px) {
  .arb-profile {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .arb-profile-photo {
    max-height: 180px;
  }
  .arb-profile-photo img {
    max-height: 180px;
    min-height: 120px;
  }
  .arb-profile-logo {
    width: 72px;
    height: 72px;
  }
  .arb-profile-bio {
    -webkit-line-clamp: 5;
    line-clamp: 5;
    font-size: 0.78rem;
  }
  .arb-person-name {
    font-size: 1rem;
  }
  .arb-person-role {
    font-size: 0.8rem;
  }
}

/* ---------- Bottom media gallery ---------- */
.arbitres-gallery-section {
  padding: 1.75rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050505;
}
.arbitres-gallery-section[hidden] {
  display: none !important;
}
.arbitres-gallery-head {
  text-align: center;
  margin-bottom: 1.25rem;
}
.arbitres-gallery-head h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #f4f4f4;
}
.arbitres-gallery-sub {
  font-size: 0.88rem;
  color: #8a8a8a;
  margin: 0;
}
.arbitres-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.arb-media-item {
  margin: 0;
  background: #0a0a0a;
  border: 1px solid var(--border-mid, #222);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.arb-media-item:hover {
  border-color: rgba(232, 200, 114, 0.4);
  transform: translateY(-2px);
}
.arb-media-frame {
  aspect-ratio: 4 / 3;
  background: #080808;
  overflow: hidden;
}
.arb-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  cursor: zoom-in;
}
.arb-media-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.arb-media-item figcaption {
  padding: 0.65rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.arb-media-cap {
  font-size: 0.86rem;
  font-weight: 650;
  color: #f0f0f0;
  line-height: 1.3;
}
.arb-media-role {
  font-size: 0.72rem;
  color: #8a8a8a;
  line-height: 1.35;
}
.arbitres-gallery-empty {
  text-align: center;
  color: #7a7a7a;
  font-size: 0.92rem;
  padding: 2rem 1rem;
  margin: 0;
}
.arbitres-gallery-empty[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .arbitres-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
}
