/*
 * Rabat Electric Horizon — Theme API 1.0
 * A bilingual, responsive conference theme for the Event Experience Platform.
 */

body[data-theme="rabat-electric-horizon"] {
  --rh-blue: #07578d;
  --rh-deep: #073854;
  --rh-teal: #00bfb3;
  --rh-sky: #dfeef6;
  --rh-sand: #f8f4ed;
  --rh-ink: #10263a;
  --rh-muted: #617489;
  --rh-line: rgba(7, 87, 141, .13);
  --rh-radius: 24px;
  --rh-content: 1280px;
  --rh-hero-min: 72vh;
  --rh-hero-mobile-height: 700px;
  --rh-hero-title-width: 920px;
  --rh-hero-media-fit: cover;
  --rh-hero-media-x: center;
  --rh-hero-media-y: center;
  --rh-hero-overlay: 54%;
  --rh-hero-overlay-alpha: .54;
  --rh-hero-carousel-fit: cover;
  --rh-hero-carousel-mobile-fit: contain;
  --rh-hero-carousel-background: #073854;
  --rh-hover-lift-neg: -7px;
  --rh-card-motion-duration: .58s;
  --rh-section-padding: clamp(28px, 3.6vw, 48px);
  --rh-sequence-duration: .58s;
  --rh-stats-desktop-columns: 2;
  --rh-stats-tablet-columns: 2;
  --rh-stats-mobile-columns: 1;
  --rh-objectives-desktop-columns: 2;
  --rh-objectives-tablet-columns: 2;
  --rh-objectives-mobile-columns: 1;
  --rh-number-gap: 18px;
  --rh-mobile-section-padding: 18px;
  --rh-mobile-card-padding: 24px;
  --rh-sponsor-logo-height: 96px;
  --rh-sponsor-card-height: 154px;
  --rh-activity-heading: #073854;
  --rh-activity-text: #52677a;
  background:
    radial-gradient(circle at 7% 12%, rgba(0, 191, 179, .08), transparent 25rem),
    linear-gradient(180deg, #fff 0, var(--rh-sand) 55%, #fff 100%);
  color: var(--rh-ink);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html.rh-theme-root,
html:has(body[data-theme="rabat-electric-horizon"]) {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body[data-theme="rabat-electric-horizon"] *,
body[data-theme="rabat-electric-horizon"] *::before,
body[data-theme="rabat-electric-horizon"] *::after { box-sizing: border-box; }

body[data-theme="rabat-electric-horizon"] ::selection { background: rgba(0, 191, 179, .24); color: inherit; }
body[data-theme="rabat-electric-horizon"] .shell { width: min(var(--rh-content), calc(100% - 40px)); max-width: var(--rh-content); margin-inline: auto; }
body[data-theme="rabat-electric-horizon"] main.theme-layout-root { width: 100%; max-width: 100%; gap: 0; overflow-x: clip; }
body[data-theme="rabat-electric-horizon"] main.theme-layout-root > * { min-width: 0; max-width: 100%; }
body[data-theme="rabat-electric-horizon"] .section { position: relative; padding-block: clamp(52px, 6vw, 92px); }
body[data-theme="rabat-electric-horizon"] main.theme-layout-root > :is(section, .stats, .contact, .location-experience):not(.hero) { padding-inline: var(--rh-section-padding) !important; }
body[data-theme="rabat-electric-horizon"] p { color: var(--rh-muted); }

/* Navigation */
body[data-theme="rabat-electric-horizon"] .site-header,
body[data-theme="rabat-electric-horizon"] .program-header {
  --nav-bg: rgba(255, 255, 255, .94);
  --nav-text: var(--rh-ink);
  --nav-border: rgba(7, 87, 141, .1);
  background: rgba(255, 255, 255, .94) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rh-line) !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 38px rgba(7, 56, 84, .08) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
body[data-theme="rabat-electric-horizon"] .site-header .nav-frame { width: min(var(--rh-content), calc(100% - 32px)); min-height: 76px; margin-inline: auto; padding: 0; }
body[data-theme="rabat-electric-horizon"] .nav-brand img { width: auto; max-width: 180px; max-height: 58px; }
body[data-theme="rabat-electric-horizon"] .site-nav-link,
body[data-theme="rabat-electric-horizon"] .site-nav-dropdown-toggle { color: var(--rh-ink) !important; border-radius: 999px; font-weight: 760; }
body[data-theme="rabat-electric-horizon"] .site-nav-link:hover,
body[data-theme="rabat-electric-horizon"] .site-nav-link.active,
body[data-theme="rabat-electric-horizon"] .site-nav-dropdown-toggle:hover,
body[data-theme="rabat-electric-horizon"] .site-nav-dropdown.is-open > .site-nav-dropdown-toggle {
  background: var(--nav-active-bg,rgba(0, 191, 179, .12)) !important;
  color: var(--nav-active-text,var(--rh-blue)) !important;
}
body[data-theme="rabat-electric-horizon"] .site-nav-dropdown-menu { border: 1px solid var(--rh-line); border-radius: 18px; background: #fff; box-shadow: 0 24px 64px rgba(7, 56, 84, .16); }
body[data-theme="rabat-electric-horizon"] .site-nav-dropdown-menu a:hover,
body[data-theme="rabat-electric-horizon"] .site-nav-dropdown-menu a.active { background: var(--rh-sky); color: var(--rh-blue); }
@media (min-width: 761px) {
  body[data-theme="rabat-electric-horizon"] .site-nav-dropdown::after {
    content: "";
    position: absolute;
    z-index: 1099;
    top: 100%;
    inset-inline: -14px;
    height: 18px;
    pointer-events: auto;
  }
}

/* Hero — supplied video and current-language title only. */
body[data-theme="rabat-electric-horizon"] .hero,
body[data-theme="rabat-electric-horizon"] .hero-variant { width: 100%; max-width: none; margin: 0; padding: 0; }
body[data-theme="rabat-electric-horizon"] .hero-stage {
  position: relative;
  min-height: clamp(620px, var(--rh-hero-min), 900px);
  border-radius: 0;
  overflow: hidden;
  background: var(--rh-deep) url("media/hero-poster.jpg") center / cover no-repeat;
  box-shadow: 0 22px 64px rgba(7, 56, 84, .18);
}
body[data-theme="rabat-electric-horizon"] .hero-media { position: absolute; inset: 0; overflow: hidden; }
body[data-theme="rabat-electric-horizon"] .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 33, 54, .76) 0%, rgba(2, 42, 66, .42) 46%, rgba(2, 42, 66, .12) 100%),
    linear-gradient(0deg, rgba(2, 35, 55, .7), transparent 58%);
  opacity: var(--rh-hero-overlay-alpha, .54);
}
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .hero-media::after {
  background:
    linear-gradient(270deg, rgba(2, 33, 54, .76) 0%, rgba(2, 42, 66, .42) 46%, rgba(2, 42, 66, .12) 100%),
    linear-gradient(0deg, rgba(2, 35, 55, .7), transparent 58%);
}
body[data-theme="rabat-electric-horizon"] .hero-media-item,
body[data-theme="rabat-electric-horizon"] .rabat-hero-poster { width: 100%; height: 100%; object-fit: var(--rh-hero-media-fit,cover); object-position: var(--rh-hero-media-x,center) var(--rh-hero-media-y,center); }
body[data-theme="rabat-electric-horizon"] .hero.rh-hero-background-off .hero-stage { background: var(--rh-deep); }
body[data-theme="rabat-electric-horizon"] .hero-media-overlay { display: none; }
body[data-theme="rabat-electric-horizon"] .hero-card {
  width: min(var(--rh-content), calc(100% - 48px));
  min-height: clamp(620px, var(--rh-hero-min), 900px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 78px) 0;
  justify-content: flex-end;
  background: none !important;
  color: #fff;
}
body[data-theme="rabat-electric-horizon"] .hero-card::before,
body[data-theme="rabat-electric-horizon"] .hero-card::after { display: none; }
body[data-theme="rabat-electric-horizon"] .hero-title { align-items: center; width: 100%; max-width: min(var(--rh-hero-title-width,920px), 90%); gap: 0; }
body[data-theme="rabat-electric-horizon"] .hero[data-rh-content-vertical="top"] .hero-card { justify-content: flex-start; }
body[data-theme="rabat-electric-horizon"] .hero[data-rh-content-vertical="center"] .hero-card { justify-content: center; }
body[data-theme="rabat-electric-horizon"] .hero[data-rh-content-vertical="bottom"] .hero-card { justify-content: flex-end; }
body[data-theme="rabat-electric-horizon"] .hero[data-rh-content-align="start"] .hero-title { align-items: flex-start; margin-inline-end: auto; text-align: start; }
body[data-theme="rabat-electric-horizon"] .hero[data-rh-content-align="center"] .hero-title { align-items: center; margin-inline: auto; text-align: center; }
body[data-theme="rabat-electric-horizon"] .hero[data-rh-content-align="end"] .hero-title { align-items: flex-end; margin-inline-start: auto; text-align: end; }
body[data-theme="rabat-electric-horizon"] .hero[data-rh-content-align] .hero-title h1 { text-align: inherit; }
body[data-theme="rabat-electric-horizon"] .hero-title > div:last-child { min-width: 0; }
body[data-theme="rabat-electric-horizon"] .hero-title h1 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.5vw, 82px);
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(0, 28, 48, .38);
}
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .hero-title h1 { letter-spacing: 0; line-height: 1.2; }
body[data-theme="rabat-electric-horizon"] .hero-title p {
  display: none !important;
  max-width: 34ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.45;
  text-shadow: 0 3px 24px rgba(0, 28, 48, .38);
}
body[data-theme="rabat-electric-horizon"] .conference-mark {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #fff;
  box-shadow: none;
  text-shadow: 0 6px 26px rgba(0, 31, 50, .34);
}
body[data-theme="rabat-electric-horizon"] .hero-meta { inset-block-start: clamp(28px, 4vw, 52px); }
body[data-theme="rabat-electric-horizon"] .hero-meta strong {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #fff;
  box-shadow: none;
  text-shadow: 0 3px 18px rgba(0, 31, 50, .62);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-theme="rabat-electric-horizon"] .hero-button,
body[data-theme="rabat-electric-horizon"] .primary-button {
  background: linear-gradient(135deg, var(--rh-teal), #67ddd4) !important;
  color: #043b55 !important;
  border: 0 !important;
  box-shadow: 0 15px 36px rgba(0, 191, 179, .24);
  font-weight: 850;
}
body[data-theme="rabat-electric-horizon"] .hero-button:hover,
body[data-theme="rabat-electric-horizon"] .primary-button:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(0, 191, 179, .32); }

/* Dedicated admin-managed Hero carousel. */
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel { position: absolute; z-index: 1; inset: 0; overflow: hidden; background: var(--rh-hero-carousel-background); outline: none; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-track { position: relative; display: flex; width: 100%; height: 100%; transition: transform .72s cubic-bezier(.22,.76,.26,1); will-change: transform; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-slide > :is(a,img),
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-link { display: block; width: 100%; height: 100%; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-slide img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; object-fit: var(--rh-hero-carousel-fit); background: var(--rh-hero-carousel-background); }
body[data-theme="rabat-electric-horizon"] .hero.rh-hero-carousel-mode .hero-media::after { opacity: 0; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-slide::after { content:"";position:absolute;z-index:2;inset:0;pointer-events:none;background:var(--rh-hero-carousel-overlay-color,#05273a);opacity:var(--rh-hero-overlay-alpha,0); }
body[data-theme="rabat-electric-horizon"] .hero.rh-hero-overlay-disabled .hero-media::after,
body[data-theme="rabat-electric-horizon"] .hero.rh-hero-overlay-disabled .rh-hero-carousel-slide::after { display:none !important; background:none !important; opacity:0 !important; }
body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy { position: absolute; z-index: 3; inset-inline: clamp(24px,7vw,120px); top: 50%; max-width: min(900px,calc(100% - 48px)); color: #fff; transform: translateY(-50%); pointer-events: none; text-align: center; text-shadow: 0 4px 26px rgba(0,20,34,.45); }
body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-align="start"] { margin-inline-end: auto; text-align: start; }body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-align="center"] { margin-inline: auto; }body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-align="end"] { margin-inline-start: auto; text-align: end; }
body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-position="top"] { top: clamp(72px,14%,140px); transform: none; }body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-position="bottom"] { top: auto; bottom: clamp(62px,10%,110px); transform: none; }
body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy h2 { margin: 0; color: inherit; font-size: calc(clamp(36px,5.8vw,88px) * var(--rh-font-scale)); line-height: 1.04; text-wrap: balance; }body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy p { max-width: 64ch; margin: 18px auto 0; color: inherit; font-size: calc(clamp(17px,1.55vw,24px) * var(--rh-font-scale)); line-height: 1.6; }body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-align="start"] p { margin-inline-start: 0; }body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-align="end"] p { margin-inline-end: 0; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel.is-fade .rh-hero-carousel-track { display: block; transform: none !important; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel.is-fade .rh-hero-carousel-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .82s ease,visibility 0s linear .82s; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel.is-fade .rh-hero-carousel-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-arrow { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(5,45,69,.58); color: #fff; box-shadow: 0 12px 30px rgba(0,25,42,.24); backdrop-filter: blur(10px); transform: translateY(-50%); cursor: pointer; transition: background .2s ease,transform .2s ease,opacity .2s ease; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-arrow:hover { background: var(--rh-teal); color: var(--rh-deep); transform: translateY(-50%) scale(1.06); }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-arrow:disabled { opacity: .34; cursor: default; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-arrow.is-prev { left: clamp(12px,2vw,34px); }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-arrow.is-next { right: clamp(12px,2vw,34px); }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-dots { position: absolute; z-index: 4; left: 50%; bottom: clamp(14px,2.2vw,28px); display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 12px; border-radius: 999px; background: rgba(5,45,69,.4); backdrop-filter: blur(9px); transform: translateX(-50%); }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.62); cursor: pointer; transition: width .25s ease,background .25s ease; }
body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-dots button.is-active { width: 26px; border-radius: 999px; background: var(--rh-teal); }
body[data-theme="rabat-electric-horizon"] .hero.rh-hero-carousel-content-hidden .hero-card,
body[data-theme="rabat-electric-horizon"] .hero.rh-hero-carousel-content-hidden .hero-intro { display: none !important; }
body[data-theme="rabat-electric-horizon"] .hero.rh-hero-carousel-mode .hero-stage { background: var(--rh-hero-carousel-background); }

/* The supplied eight-point motif is the visual bullet for every section. */
body[data-theme="rabat-electric-horizon"] .section-heading,
body[data-theme="rabat-electric-horizon"] .about-heading { align-items: center; gap: 16px; margin-bottom: clamp(24px, 3vw, 38px); }
body[data-theme="rabat-electric-horizon"] .section-heading h2,
body[data-theme="rabat-electric-horizon"] .about-heading h2,
body[data-theme="rabat-electric-horizon"] .program-home-heading h2 { color: var(--rh-deep); font-size: clamp(32px, 4vw, 58px); line-height: 1.12; letter-spacing: -.035em; }
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .section-heading h2,
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .about-heading h2,
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .program-home-heading h2 { letter-spacing: 0; line-height: 1.28; }
body[data-theme="rabat-electric-horizon"] .section-symbol {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 0;
  background: transparent url("media/pattern.png") center / contain no-repeat !important;
  box-shadow: none;
}
body[data-theme="rabat-electric-horizon"] .section-symbol i { display: none; }
body[data-theme="rabat-electric-horizon"].rh-pattern-off .section-symbol { background: rgba(0, 191, 179, .12) !important; border-radius: 50%; }
body[data-theme="rabat-electric-horizon"].rh-pattern-off .section-symbol i { display: block; color: var(--rh-teal); }

body[data-theme="rabat-electric-horizon"] .theme-grid article h3,
body[data-theme="rabat-electric-horizon"] .activity-copy h3,
body[data-theme="rabat-electric-horizon"] .objective-grid article > div,
body[data-theme="rabat-electric-horizon"] .about-card-grid article h3 {
  position: relative;
}
body[data-theme="rabat-electric-horizon"] .theme-grid article h3::before,
body[data-theme="rabat-electric-horizon"] .activity-copy h3::before,
body[data-theme="rabat-electric-horizon"] .objective-grid article > div::before,
body[data-theme="rabat-electric-horizon"] .about-card-grid article h3::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-inline-end: 9px;
  vertical-align: -.25em;
  background: url("media/pattern.png") center / contain no-repeat;
}
body[data-theme="rabat-electric-horizon"].rh-pattern-off .theme-grid article h3::before,
body[data-theme="rabat-electric-horizon"].rh-pattern-off .activity-copy h3::before,
body[data-theme="rabat-electric-horizon"].rh-pattern-off .objective-grid article > div::before,
body[data-theme="rabat-electric-horizon"].rh-pattern-off .about-card-grid article h3::before { display: none; }

/* Light card language */
body[data-theme="rabat-electric-horizon"] .stats-grid article,
body[data-theme="rabat-electric-horizon"] .theme-grid article,
body[data-theme="rabat-electric-horizon"] .objective-grid article,
body[data-theme="rabat-electric-horizon"] .activity-grid article,
body[data-theme="rabat-electric-horizon"] .program-home-card,
body[data-theme="rabat-electric-horizon"] .contact-form-card,
body[data-theme="rabat-electric-horizon"] .sponsor-directory-card {
  border: 1px solid var(--rh-line);
  border-radius: var(--rh-radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(7, 56, 84, .08);
  overflow: hidden;
}
body[data-theme="rabat-electric-horizon"] .stats-grid {
  grid-template-columns: repeat(var(--rh-stats-desktop-columns), minmax(0, 1fr));
}
body[data-theme="rabat-electric-horizon"] .objective-grid {
  grid-template-columns: repeat(var(--rh-objectives-desktop-columns), minmax(0, 1fr));
}
body[data-theme="rabat-electric-horizon"] .stats-grid article {
  display: grid;
  grid-template-columns: minmax(max-content, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: var(--rh-number-gap);
  min-height: 150px;
  position: relative;
}
body[data-theme="rabat-electric-horizon"] .stats-grid article::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  inset-inline-end: -18px;
  inset-block-end: -18px;
  background: url("media/pattern.png") center / contain no-repeat;
  opacity: .08;
}
body[data-theme="rabat-electric-horizon"] .stats-grid article,
body[data-theme="rabat-electric-horizon"] .stats-grid span { color: var(--rh-ink) !important; }
body[data-theme="rabat-electric-horizon"] .stats-grid strong { color: var(--rh-blue) !important; }
body[data-theme="rabat-electric-horizon"] .stats-grid strong,
body[data-theme="rabat-electric-horizon"] .objective-grid article > strong {
  min-width: max-content;
  max-width: 100%;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  font-variant-numeric: tabular-nums;
  line-height: .98;
  background: transparent !important;
  box-shadow: none !important;
}
body[data-theme="rabat-electric-horizon"] .stats-grid strong { font-size: clamp(48px, 5.7vw, 88px); }
body[data-theme="rabat-electric-horizon"] .stats-grid span { min-width: 0; }
body[data-theme="rabat-electric-horizon"] .theme-grid article,
body[data-theme="rabat-electric-horizon"] .activity-grid article,
body[data-theme="rabat-electric-horizon"] .program-home-card { transition: transform .28s ease, box-shadow .28s ease; }
body[data-theme="rabat-electric-horizon"] .activity-grid article,
body[data-theme="rabat-electric-horizon"] .activity-grid article h3 { color: var(--rh-ink) !important; }
body[data-theme="rabat-electric-horizon"] .activity-grid article p { color: var(--rh-muted) !important; }
body[data-theme="rabat-electric-horizon"] .theme-grid article:hover,
body[data-theme="rabat-electric-horizon"] .activity-grid article:hover,
body[data-theme="rabat-electric-horizon"] .program-home-card:hover { transform: translateY(var(--rh-hover-lift-neg, -7px)); box-shadow: 0 26px 62px rgba(7, 56, 84, .14); }
body[data-theme="rabat-electric-horizon"] .theme-grid article img,
body[data-theme="rabat-electric-horizon"] .activity-grid article img,
body[data-theme="rabat-electric-horizon"] .program-home-card img,
body[data-theme="rabat-electric-horizon"] .program-home-visit-card img { transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .35s ease; }
body[data-theme="rabat-electric-horizon"] .theme-grid article:hover img,
body[data-theme="rabat-electric-horizon"] .activity-grid article:hover img,
body[data-theme="rabat-electric-horizon"] .program-home-card:hover img,
body[data-theme="rabat-electric-horizon"] .program-home-visit-card:hover img { transform: scale(1.055); filter: saturate(1.08) contrast(1.02); }
body[data-theme="rabat-electric-horizon"] .objective-grid { gap: 14px; }
body[data-theme="rabat-electric-horizon"] .objective-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: var(--rh-number-gap);
  padding: 24px 26px;
}
body[data-theme="rabat-electric-horizon"] .objective-grid article > strong { color: var(--rh-teal); opacity: .7; }
body[data-theme="rabat-electric-horizon"][data-rh-number-alignment="start"] :is(.stats-grid strong, .objective-grid article > strong) { text-align: start; justify-self: start; }
body[data-theme="rabat-electric-horizon"][data-rh-number-alignment="center"] :is(.stats-grid strong, .objective-grid article > strong) { text-align: center; justify-self: center; }
body[data-theme="rabat-electric-horizon"][data-rh-number-alignment="end"] :is(.stats-grid strong, .objective-grid article > strong) { text-align: end; justify-self: end; }

/* History */
body[data-theme="rabat-electric-horizon"] .history-section { padding-block: clamp(50px, 6vw, 88px); }
body[data-theme="rabat-electric-horizon"] .history-lead-title { color: var(--rh-deep); }
body[data-theme="rabat-electric-horizon"] .history-deck-card { border-radius: var(--rh-radius); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 30px 72px rgba(7, 56, 84, .2); }
body[data-theme="rabat-electric-horizon"] .history-dot.is-active { background: var(--rh-teal); }

/* Dark participation and field-experience sections use the white motif. */
body[data-theme="rabat-electric-horizon"] .participation-section,
body[data-theme="rabat-electric-horizon"] .program-home-visits {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rh-deep), #07578d);
}
body[data-theme="rabat-electric-horizon"] .participation-section { width: min(var(--rh-content), calc(100% - 40px)); margin-inline: auto; border-radius: calc(var(--rh-radius) + 8px); padding: clamp(18px, 3vw, 36px); }
body[data-theme="rabat-electric-horizon"] .participation-section::after,
body[data-theme="rabat-electric-horizon"] .program-home-visits::after,
body[data-theme="rabat-electric-horizon"] .site-footer::after {
  content: "";
  position: absolute;
  width: clamp(180px, 24vw, 360px);
  height: clamp(180px, 24vw, 360px);
  inset-inline-end: -80px;
  inset-block-start: -90px;
  background: url("media/pattern-white.png") center / contain no-repeat;
  opacity: .1;
  pointer-events: none;
}
body[data-theme="rabat-electric-horizon"] .attendee-registration-card,
body[data-theme="rabat-electric-horizon"] .speaker-registration-card { min-height: 340px; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--rh-radius); background: var(--rh-card-background,var(--rh-deep)); color: var(--rh-card-text,#fff); box-shadow: none; backdrop-filter: blur(8px); }
body[data-theme="rabat-electric-horizon"] .rh-registration-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--rh-registration-pair-gap, 20px);
  padding-block: clamp(48px, 6vw, 88px);
}
body[data-theme="rabat-electric-horizon"] .rh-registration-pair > :is(.attendee-registration-section,.speaker-registration-section) {
  display: flex;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body[data-theme="rabat-electric-horizon"] .rh-registration-pair > :is(.attendee-registration-section,.speaker-registration-section) > :is(.attendee-registration-card,.speaker-registration-card) {
  width: 100%;
  height: 100%;
  min-height: clamp(380px, 35vw, 540px);
}
body[data-theme="rabat-electric-horizon"] .rh-registration-pair.rh-registration-pair-force-cover .rh-card-background-media { object-fit: cover !important; }
body[data-theme="rabat-electric-horizon"] .attendee-registration-card::before,
body[data-theme="rabat-electric-horizon"] .speaker-registration-card::before { border-color: rgba(255, 255, 255, .08); }
body[data-theme="rabat-electric-horizon"] .attendee-registration-copy h2,
body[data-theme="rabat-electric-horizon"] .speaker-registration-copy h2 { color: var(--rh-card-text,#fff); }
body[data-theme="rabat-electric-horizon"] .attendee-registration-copy > p,
body[data-theme="rabat-electric-horizon"] .speaker-registration-copy > p { color: color-mix(in srgb,var(--rh-card-text,#fff) 78%,transparent); }
body[data-theme="rabat-electric-horizon"] .attendee-highlights span,
body[data-theme="rabat-electric-horizon"] .speaker-requirement-row span { border-color: color-mix(in srgb,var(--rh-card-text,#fff) 24%,transparent); color: var(--rh-card-text,#fff); }
body[data-theme="rabat-electric-horizon"] .program-home-visits { width: 100%; max-width: none; padding-block: clamp(64px, 7vw, 104px); }
body[data-theme="rabat-electric-horizon"] .program-home-visits > .shell { position: relative; z-index: 1; }
body[data-theme="rabat-electric-horizon"] .program-home-heading-light h2,
body[data-theme="rabat-electric-horizon"] .program-home-heading-light p { color: #fff; }

/* Sponsorship, contact and program surfaces */
body[data-theme="rabat-electric-horizon"] .sponsorship-section { border-radius: calc(var(--rh-radius) + 8px); background: linear-gradient(135deg, rgba(223, 238, 246, .72), rgba(255, 255, 255, .95)); color: var(--rh-ink); }
body[data-theme="rabat-electric-horizon"] .sponsorship-section .sponsorship-copy,
body[data-theme="rabat-electric-horizon"] .sponsorship-section .sponsorship-copy h3 { color: var(--rh-deep); }
body[data-theme="rabat-electric-horizon"] .sponsorship-section .sponsorship-copy p { color: var(--rh-muted); }
body[data-theme="rabat-electric-horizon"] .sponsor-tier-row.rh-managed-opportunities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--rh-opportunity-min-width,170px), 1fr));
  align-items: stretch;
  gap: clamp(10px, 1.2vw, 18px);
  width: 100%;
  margin-block: clamp(20px, 3vw, 36px);
  overflow: visible;
}
body[data-theme="rabat-electric-horizon"] .rh-opportunity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: var(--rh-opportunity-card-height,184px);
  padding: 16px 12px;
  border: 1px solid var(--rh-line);
  border-radius: calc(var(--rh-radius) - 6px);
  background: rgba(255, 255, 255, .94);
  color: var(--rh-ink);
  box-shadow: 0 15px 38px rgba(7, 56, 84, .07);
  text-align: center;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
body[data-theme="rabat-electric-horizon"] .rh-opportunity-card:hover {
  transform: translateY(var(--rh-hover-lift-neg, -7px));
  border-color: rgba(0, 191, 179, .36);
  box-shadow: 0 24px 50px rgba(7, 56, 84, .13);
}
body[data-theme="rabat-electric-horizon"] .rh-opportunity-image {
  display: grid;
  place-items: center;
  width: var(--rh-opportunity-icon-width,50%);
  max-width: 100%;
  margin-inline: auto;
  height: var(--rh-opportunity-image-height,96px);
  flex: 0 0 var(--rh-opportunity-image-height,96px);
  overflow: hidden;
}
body[data-theme="rabat-electric-horizon"] .rh-opportunity-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}
body[data-theme="rabat-electric-horizon"] .rh-opportunity-card:hover .rh-opportunity-image img { transform: scale(1.055); filter: saturate(1.06); }
body[data-theme="rabat-electric-horizon"] .rh-opportunity-name {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  color: var(--rh-deep);
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
}
body[data-theme="rabat-electric-horizon"] .rh-opportunity-headline { display:block; font-size:clamp(16px,var(--rh-opportunity-title-size,25px),48px); font-weight:800; line-height:1.1; }
body[data-theme="rabat-electric-horizon"] .rh-opportunity-descriptor { display:block; font-size:clamp(14px,var(--rh-opportunity-descriptor-size,20px),40px); font-weight:700; line-height:1.2; }
html[lang^="en"] body[data-theme="rabat-electric-horizon"] .rh-opportunity-headline { text-transform: uppercase; }
body[data-theme="rabat-electric-horizon"] .rh-opportunity-card.rh-mode-name .rh-opportunity-name { place-items: center; min-height: var(--rh-opportunity-image-height,120px); }
body[data-theme="rabat-electric-horizon"] .rh-opportunity-card.rh-mode-image .rh-opportunity-image { height: var(--rh-opportunity-image-height,96px); flex-basis: var(--rh-opportunity-image-height,96px); }
body[data-theme="rabat-electric-horizon"].rh-opportunities-background .rh-opportunity-card.rh-opportunity-background { position: relative; isolation: isolate; justify-content: flex-end; padding: 0; background: #fff; }
body[data-theme="rabat-electric-horizon"].rh-opportunities-background .rh-opportunity-card.rh-opportunity-background::after { content:""; position:absolute; z-index:1; inset:0; background:rgba(5,39,58,var(--rh-opportunity-background-shade,0)); pointer-events:none; }
body[data-theme="rabat-electric-horizon"].rh-opportunities-background .rh-opportunity-card.rh-opportunity-background .rh-opportunity-image { position:absolute; z-index:0; inset:0; width:100%; height:100%; background-image:var(--rh-opportunity-artwork); background-repeat:no-repeat; background-size:var(--rh-opportunity-background-fit,contain); background-position:var(--rh-opportunity-background-position,center); }
body[data-theme="rabat-electric-horizon"].rh-opportunities-background .rh-opportunity-card.rh-opportunity-background .rh-opportunity-image img { opacity:0; }
body[data-theme="rabat-electric-horizon"].rh-opportunities-background .rh-opportunity-card.rh-opportunity-background .rh-opportunity-name { position:relative; z-index:2; display:grid; place-items:center; min-height:48px; padding:9px 10px; background:rgba(255,255,255,.88); color:var(--rh-deep); backdrop-filter:blur(7px); }
body[data-theme="rabat-electric-horizon"] .contact { padding-block: clamp(58px, 6vw, 86px); border: 1px solid var(--rh-line); border-radius: calc(var(--rh-radius) + 8px); background: #fff; box-shadow: 0 22px 58px rgba(7, 56, 84, .08); }
body[data-theme="rabat-electric-horizon"] .contact-copy h2,
body[data-theme="rabat-electric-horizon"] .contact-form-card h3 { color: var(--rh-deep); }
body[data-theme="rabat-electric-horizon"] .contact,
body[data-theme="rabat-electric-horizon"] .contact strong,
body[data-theme="rabat-electric-horizon"] .contact label { color: var(--rh-ink); }
body[data-theme="rabat-electric-horizon"] .program-home-kicker,
body[data-theme="rabat-electric-horizon"] .sponsorship-eyebrow,
body[data-theme="rabat-electric-horizon"] .location-kicker { color: var(--rh-teal); }

/* Location — a physical-left map blends into the Rabat artwork at the seam. */
body[data-theme="rabat-electric-horizon"] .location-experience {
  --rh-location-overlap: 20px;
  display: grid;
  grid-template-columns: minmax(280px, var(--rh-location-map-weight, 50fr)) minmax(0, var(--rh-location-image-weight, 50fr));
  grid-template-rows: minmax(clamp(420px, 45vw, 640px), auto);
  position: relative;
  direction: ltr;
  min-width: 0;
  min-height: clamp(420px, 45vw, 640px);
  margin-block: clamp(54px, 7vw, 104px);
  column-gap: var(--rh-location-content-gap, 0px);
  padding: var(--rh-location-section-padding, 0px) !important;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}
body[data-theme="rabat-electric-horizon"] .location-image-panel,
body[data-theme="rabat-electric-horizon"] .location-details-panel,
body[data-theme="rabat-electric-horizon"] .location-map-panel { min-width: 0; overflow: hidden; }
body[data-theme="rabat-electric-horizon"] .location-image-panel {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-height: clamp(330px, 45vw, 640px);
  overflow: hidden;
  border: 1px solid var(--rh-line);
  border-radius: 0 var(--rh-radius) var(--rh-radius) 0;
  background: #edf4f7 url("media/location-rabat.png") center / cover no-repeat;
  box-shadow: 0 24px 62px rgba(7, 56, 84, .12);
}
body[data-theme="rabat-electric-horizon"]:not(.rh-custom-location) .location-image-panel img { opacity: 0; }
body[data-theme="rabat-electric-horizon"] .location-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: var(--rh-location-image-fit, cover);
  object-position: var(--rh-location-image-x, center) var(--rh-location-image-y, center);
  transform: scale(var(--rh-location-image-scale, 1));
  transform-origin: var(--rh-location-image-x, center) var(--rh-location-image-y, center);
  transition: opacity .2s ease, filter .35s ease;
}
body[data-theme="rabat-electric-horizon"].rh-bundled-location .location-image-panel img,
body[data-theme="rabat-electric-horizon"].rh-custom-location .location-image-panel img { opacity: 1; }
body[data-theme="rabat-electric-horizon"] .location-image-panel:hover img { filter: saturate(1.04) contrast(1.015); }
body[data-theme="rabat-electric-horizon"] .location-image-panel span {
  left: auto;
  right: 28px;
  bottom: 24px;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--rh-deep);
  box-shadow: none;
  text-align: right;
  text-shadow: 0 2px 14px rgba(255, 255, 255, .9);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-theme="rabat-electric-horizon"] .location-image-panel .rh-location-image-copy {
  position:absolute;
  z-index:4;
  top:clamp(18px,2.2vw,34px);
  left:clamp(18px,2.2vw,34px);
  right:auto;
  width:min(430px,calc(100% - 36px));
  max-height:calc(100% - 36px);
  overflow:auto;
  padding:clamp(18px,2.2vw,30px);
  border:1px solid rgba(255,255,255,.68);
  border-radius:calc(var(--rh-radius) - 6px);
  background:rgba(255,255,255,.88);
  box-shadow:0 18px 48px rgba(7,56,84,.16);
  text-align:left;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .location-image-panel .rh-location-image-copy { left:auto; right:clamp(18px,2.2vw,34px); text-align:right; }
body[data-theme="rabat-electric-horizon"] .rh-location-image-copy h2 { margin:0 0 10px; color:var(--rh-location-title-color,var(--rh-deep)); }
body[data-theme="rabat-electric-horizon"] .rh-location-image-copy .rh-location-subtitle { margin:0 0 12px; color:var(--rh-location-subtitle-color,var(--rh-muted)); }
body[data-theme="rabat-electric-horizon"] .rh-location-image-copy .rh-location-image-location { display:block; color:var(--rh-location-venue-color,var(--rh-deep)); }
body[data-theme="rabat-electric-horizon"] .location-details-panel { display: none !important; }
body[data-theme="rabat-electric-horizon"].rh-location-details .location-experience.has-location-details .location-details-panel {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  z-index: 5;
  display: flex !important;
  width: min(440px, calc(100% - 48px));
  max-height: calc(100% - 48px);
  margin: 24px;
  overflow: auto;
  padding: clamp(20px, 2.6vw, 34px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: calc(var(--rh-radius) - 4px);
  background: rgba(255, 255, 255, .92);
  color: var(--rh-ink);
  box-shadow: 0 20px 55px rgba(7, 56, 84, .18);
  backdrop-filter: blur(14px);
}
body[data-theme="rabat-electric-horizon"].rh-location-details .location-details-panel h2 { color: var(--rh-location-title-color,var(--rh-deep)); }
body[data-theme="rabat-electric-horizon"].rh-location-details .location-details-panel strong { display:block; color: var(--rh-location-venue-color,var(--rh-deep)); }
body[data-theme="rabat-electric-horizon"].rh-location-details .location-details-panel h3 { color: var(--rh-deep); }
body[data-theme="rabat-electric-horizon"].rh-location-details .location-details-panel .rh-location-subtitle { color:var(--rh-location-subtitle-color,var(--rh-muted)); }
body[data-theme="rabat-electric-horizon"].rh-location-details .location-details-panel .rh-location-address,
body[data-theme="rabat-electric-horizon"].rh-location-details .venue-detail-grid p { color: var(--rh-location-address-color,var(--rh-muted)); }
body[data-theme="rabat-electric-horizon"].rh-location-details .venue-detail-grid article { border-top-color: var(--rh-line); }
body[data-theme="rabat-electric-horizon"] .location-map-panel {
  --rh-map-enter-x: -72px;
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  width: calc(100% + var(--rh-location-overlap));
  min-height: clamp(420px, 45vw, 640px);
  border: 1px solid var(--rh-line);
  border-right: 0;
  border-radius: var(--rh-radius) 0 0 var(--rh-radius);
  background: #e7eff1;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 68%, rgba(0, 0, 0, .86) 80%, rgba(0, 0, 0, .34) 92%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 68%, rgba(0, 0, 0, .86) 80%, rgba(0, 0, 0, .34) 92%, transparent 100%);
}
body[data-theme="rabat-electric-horizon"] .location-map-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 24%, rgba(248, 240, 220, .18), transparent 34%),
    linear-gradient(90deg, rgba(227, 217, 192, .15), rgba(255, 251, 241, .04) 60%, rgba(242, 232, 207, .24));
  mix-blend-mode: multiply;
}
body[data-theme="rabat-electric-horizon"].rh-sequence-ready .location-map-panel {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--rh-map-enter-x), 0, 0);
  transition:
    opacity var(--rh-sequence-duration, .58s) ease 260ms,
    transform var(--rh-sequence-duration, .58s) cubic-bezier(.16, .8, .22, 1) 260ms;
}
body[data-theme="rabat-electric-horizon"].rh-sequence-ready .location-experience.is-rh-visible .location-map-panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
body[data-theme="rabat-electric-horizon"] .location-map-panel iframe,
body[data-theme="rabat-electric-horizon"] .location-map-fallback { width: 100%; height: 100%; min-height: 100%; border: 0; color: var(--rh-deep); }
body[data-theme="rabat-electric-horizon"] .location-map-panel iframe { position: relative; z-index: 1; filter: grayscale(.38) sepia(.14) saturate(.78) contrast(.94); }
body[data-theme="rabat-electric-horizon"] .location-map-action { color: var(--rh-deep); }
body[data-theme="rabat-electric-horizon"] .location-map-action a { color: var(--rh-deep); }
body[data-theme="rabat-electric-horizon"] .location-map-fallback,
body[data-theme="rabat-electric-horizon"] .location-map-fallback h3,
body[data-theme="rabat-electric-horizon"] .location-map-fallback a { color: var(--rh-deep); }
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .location-image-panel span,
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .location-map-fallback { direction: rtl; }

body[data-theme="rabat-electric-horizon"] .location-experience.location-map-position-right .location-image-panel { grid-column: 1; border-radius: var(--rh-radius) 0 0 var(--rh-radius); }
body[data-theme="rabat-electric-horizon"] .location-experience.location-map-position-right .location-map-panel {
  --rh-map-enter-x: 72px;
  grid-column: 2;
  justify-self: end;
  border-right: 1px solid var(--rh-line);
  border-left: 0;
  border-radius: 0 var(--rh-radius) var(--rh-radius) 0;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 68%, rgba(0, 0, 0, .86) 80%, rgba(0, 0, 0, .34) 92%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 68%, rgba(0, 0, 0, .86) 80%, rgba(0, 0, 0, .34) 92%, transparent 100%);
}
body[data-theme="rabat-electric-horizon"].rh-location-details .location-experience.location-map-position-right .location-details-panel { grid-column: 1; justify-self: end; }
body[data-theme="rabat-electric-horizon"] .location-experience.has-location-map:not(.has-location-image) { grid-template-columns: 1fr; }
body[data-theme="rabat-electric-horizon"] .location-experience.has-location-map:not(.has-location-image) .location-map-panel { grid-column: 1; width: 100%; border: 1px solid var(--rh-line); border-radius: var(--rh-radius); -webkit-mask-image: none; mask-image: none; }
body[data-theme="rabat-electric-horizon"] .location-experience.has-location-image:not(.has-location-map) { grid-template-columns: 1fr; }
body[data-theme="rabat-electric-horizon"] .location-experience.has-location-image:not(.has-location-map) .location-image-panel { grid-column: 1; border-radius: var(--rh-radius); }
body[data-theme="rabat-electric-horizon"].rh-location-details .location-experience.has-location-details:not(.has-location-image):not(.has-location-map) { display: block; min-height: 0; }
body[data-theme="rabat-electric-horizon"].rh-location-details .location-experience.has-location-details:not(.has-location-image):not(.has-location-map) .location-details-panel { position: static; width: 100%; max-height: none; margin: 0; }

/* Registration and sponsorship modals — bounded widths, no horizontal overflow. */
body[data-theme="rabat-electric-horizon"] .attendee-modal,
body[data-theme="rabat-electric-horizon"] .speaker-modal,
body[data-theme="rabat-electric-horizon"] .sponsorship-modal {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  padding: clamp(12px, 3vw, 32px);
}
body[data-theme="rabat-electric-horizon"] .attendee-modal *,
body[data-theme="rabat-electric-horizon"] .speaker-modal *,
body[data-theme="rabat-electric-horizon"] .sponsorship-modal * { min-width: 0; }
body[data-theme="rabat-electric-horizon"] .attendee-modal-panel,
body[data-theme="rabat-electric-horizon"] .speaker-modal-panel,
body[data-theme="rabat-electric-horizon"] .sponsorship-modal-panel {
  box-sizing: border-box;
  width: min(1120px, calc(100vw - clamp(24px, 6vw, 64px)));
  max-width: 100%;
  max-height: calc(100dvh - clamp(24px, 6vw, 64px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  border: 1px solid var(--rh-line);
  border-radius: calc(var(--rh-radius) + 6px);
  background: #fff;
  color: var(--rh-ink);
  box-shadow: 0 36px 110px rgba(2, 34, 54, .34);
}
body[data-theme="rabat-electric-horizon"] .sponsorship-modal-panel { width: min(1040px, calc(100vw - clamp(24px, 6vw, 64px))); }
body[data-theme="rabat-electric-horizon"] .attendee-modal-head > div,
body[data-theme="rabat-electric-horizon"] .speaker-modal-head > div,
body[data-theme="rabat-electric-horizon"] .sponsorship-modal-head > div,
body[data-theme="rabat-electric-horizon"] .attendee-form-grid > *,
body[data-theme="rabat-electric-horizon"] .speaker-form-grid > *,
body[data-theme="rabat-electric-horizon"] .sponsorship-form-grid > * { min-width: 0; max-width: 100%; }
body[data-theme="rabat-electric-horizon"] .attendee-modal-panel input,
body[data-theme="rabat-electric-horizon"] .attendee-modal-panel select,
body[data-theme="rabat-electric-horizon"] .attendee-modal-panel textarea,
body[data-theme="rabat-electric-horizon"] .speaker-modal-panel input,
body[data-theme="rabat-electric-horizon"] .speaker-modal-panel select,
body[data-theme="rabat-electric-horizon"] .speaker-modal-panel textarea,
body[data-theme="rabat-electric-horizon"] .sponsorship-modal-panel input,
body[data-theme="rabat-electric-horizon"] .sponsorship-modal-panel select,
body[data-theme="rabat-electric-horizon"] .sponsorship-modal-panel textarea { max-width: 100%; background: #fff; color: var(--rh-ink); border-color: rgba(7, 87, 141, .2); }

/* Footer */
body[data-theme="rabat-electric-horizon"] .site-footer,
body[data-theme="rabat-electric-horizon"] .program-footer { position: relative; overflow: hidden; background: var(--rh-deep) !important; color: #fff !important; border-top: 4px solid var(--rh-teal); }
body[data-theme="rabat-electric-horizon"] .site-footer > *,
body[data-theme="rabat-electric-horizon"] .program-footer > * { position: relative; z-index: 1; }
body[data-theme="rabat-electric-horizon"] .site-footer p,
body[data-theme="rabat-electric-horizon"] .program-footer p { color: rgba(255, 255, 255, .7); }

/* Focus, hover and motion */
body[data-theme="rabat-electric-horizon"] :where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--rh-teal); outline-offset: 3px; }
body[data-theme="rabat-electric-horizon"] :where(.primary-button, .hero-button, .program-home-archive-link, .program-home-card-footer a, .contact-actions a, .contact-actions button) i {
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
body[data-theme="rabat-electric-horizon"] :where(.primary-button, .hero-button, .program-home-archive-link, .program-home-card-footer a, .contact-actions a, .contact-actions button):hover i { transform: translate(3px, -3px); }
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] :where(.primary-button, .hero-button, .program-home-archive-link, .program-home-card-footer a, .contact-actions a, .contact-actions button):hover i { transform: translate(-3px, -3px); }
body[data-theme="rabat-electric-horizon"] .section-symbol { transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .35s ease; }
body[data-theme="rabat-electric-horizon"] .section-heading:hover .section-symbol,
body[data-theme="rabat-electric-horizon"] .about-heading:hover .section-symbol { transform: rotate(18deg) scale(1.08); filter: drop-shadow(0 10px 14px rgba(0, 191, 179, .2)); }
body[data-theme="rabat-electric-horizon"] .sponsor-directory-card img,
body[data-theme="rabat-electric-horizon"] .sponsor-logo-card img { transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .3s ease; }
body[data-theme="rabat-electric-horizon"] .sponsor-directory-card:hover img,
body[data-theme="rabat-electric-horizon"] .sponsor-logo-card:hover img { transform: scale(1.07); filter: saturate(1.06); }
body[data-theme="rabat-electric-horizon"] .history-deck-card { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, opacity .35s ease; }
body[data-theme="rabat-electric-horizon"] .history-deck-card.is-active:hover { transform: translateY(var(--rh-hover-lift-neg, -7px)) scale(1.008); box-shadow: 0 38px 86px rgba(7, 56, 84, .28); }

body[data-theme="rabat-electric-horizon"] [data-rh-reveal] {
  --rh-enter-x: 0px;
  --rh-enter-y: 26px;
  opacity: 0;
  transform: translate3d(var(--rh-enter-x), var(--rh-enter-y), 0) scale(var(--rh-enter-scale, 1));
  transition:
    opacity var(--rh-motion-duration, .68s) ease var(--rh-delay, 0ms),
    transform var(--rh-motion-duration, .68s) cubic-bezier(.16, .8, .22, 1) var(--rh-delay, 0ms);
  will-change: opacity, transform;
}
body[data-theme="rabat-electric-horizon"] [data-rh-motion="fade-down"] { --rh-enter-y: -26px; }
body[data-theme="rabat-electric-horizon"] [data-rh-motion="slide-start"] { --rh-enter-x: -46px; --rh-enter-y: 0px; }
body[data-theme="rabat-electric-horizon"] [data-rh-motion="slide-end"] { --rh-enter-x: 46px; --rh-enter-y: 0px; }
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] [data-rh-motion="slide-start"] { --rh-enter-x: 46px; }
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] [data-rh-motion="slide-end"] { --rh-enter-x: -46px; }
body[data-theme="rabat-electric-horizon"] [data-rh-motion="scale-in"] { --rh-enter-y: 12px; --rh-enter-scale: .96; }
body[data-theme="rabat-electric-horizon"] [data-rh-reveal].is-rh-visible { opacity: 1; transform: none; will-change: auto; }

body[data-theme="rabat-electric-horizon"] .rh-card-motion {
  opacity: 0;
  transform: translateY(20px) scale(.985);
  transition:
    opacity var(--rh-card-motion-duration, .58s) ease var(--rh-card-delay, 0ms),
    transform var(--rh-card-motion-duration, .58s) cubic-bezier(.16, .8, .22, 1) var(--rh-card-delay, 0ms),
    box-shadow .28s ease;
}
body[data-theme="rabat-electric-horizon"] .is-rh-visible .rh-card-motion,
body[data-theme="rabat-electric-horizon"] .rh-card-motion.is-rh-visible { opacity: 1; transform: none; }

body[data-theme="rabat-electric-horizon"].rh-sequence-ready .rh-sequence-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--rh-sequence-duration, .58s) ease var(--rh-sequence-delay, 80ms),
    transform var(--rh-sequence-duration, .58s) cubic-bezier(.16, .8, .22, 1) var(--rh-sequence-delay, 80ms);
}
body[data-theme="rabat-electric-horizon"].rh-sequence-ready .is-rh-visible .rh-sequence-item { opacity: 1; transform: none; }
body[data-theme="rabat-electric-horizon"].rh-sequence-ready .location-map-panel.rh-sequence-item { transform: translate3d(var(--rh-map-enter-x), 0, 0); }
body[data-theme="rabat-electric-horizon"].rh-sequence-ready .location-experience.is-rh-visible .location-map-panel.rh-sequence-item { transform: none; }

body[data-theme="rabat-electric-horizon"].rh-hero-ready .hero-title .conference-mark { animation: rhHeroMark .82s cubic-bezier(.16, .9, .24, 1) both; }
body[data-theme="rabat-electric-horizon"].rh-hero-ready .hero-title h1 { animation: rhFadeDown .86s .1s cubic-bezier(.16, .9, .24, 1) both; }
body[data-theme="rabat-electric-horizon"].rh-hero-ready .hero-title p { animation: rhSlideStart .78s .22s cubic-bezier(.16, .9, .24, 1) both; }
body[data-theme="rabat-electric-horizon"].rh-hero-ready .hero-button { animation: rhRise .72s .34s cubic-bezier(.16, .9, .24, 1) both; }
body[data-theme="rabat-electric-horizon"].rh-hero-cinematic .hero-media video { animation: rhVideoBreath 14s ease-in-out infinite alternate; }
body[data-theme="rabat-electric-horizon"] .participation-section::after,
body[data-theme="rabat-electric-horizon"] .program-home-visits::after,
body[data-theme="rabat-electric-horizon"] .site-footer::after { animation: rhPatternFloat 10s ease-in-out infinite alternate; }

@keyframes rhHeroMark { from { opacity: 0; transform: translateY(26px) rotate(-9deg) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes rhFadeDown { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes rhSlideStart { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes rhSlideStartRtl { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] body[data-theme="rabat-electric-horizon"].rh-hero-ready .hero-title p { animation-name: rhSlideStartRtl; }
@keyframes rhRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rhVideoBreath { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes rhPatternFloat { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(-12px, 18px, 0) rotate(10deg); } }

@media (max-width: 980px) {
  body[data-theme="rabat-electric-horizon"] .rh-registration-pair { grid-template-columns: 1fr; }
  body[data-theme="rabat-electric-horizon"] .sponsor-tier-row.rh-managed-opportunities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-theme="rabat-electric-horizon"] .stats-grid { grid-template-columns: repeat(var(--rh-stats-tablet-columns), minmax(0, 1fr)); }
  body[data-theme="rabat-electric-horizon"] .objective-grid { grid-template-columns: repeat(var(--rh-objectives-tablet-columns), minmax(0, 1fr)); }
  body[data-theme="rabat-electric-horizon"] .hero-card { width: min(calc(100% - 36px), var(--rh-content)); }
  body[data-theme="rabat-electric-horizon"] .location-experience {
    grid-template-columns: minmax(250px, var(--rh-location-map-weight, 50fr)) minmax(0, var(--rh-location-image-weight, 50fr));
    grid-template-rows: minmax(380px, 52vw);
    min-height: 380px;
  }
  body[data-theme="rabat-electric-horizon"] .location-image-panel,
  body[data-theme="rabat-electric-horizon"] .location-map-panel { min-height: 380px; }
  body[data-theme="rabat-electric-horizon"] .location-map-panel iframe,
  body[data-theme="rabat-electric-horizon"] .location-map-fallback { min-height: 380px; }
}

@media (max-width: 700px) {
  body[data-theme="rabat-electric-horizon"] { --rh-section-padding: var(--rh-mobile-section-padding, 18px); }
  html.rh-theme-root,
  html:has(body[data-theme="rabat-electric-horizon"]),
  body[data-theme="rabat-electric-horizon"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
  }
  body[data-theme="rabat-electric-horizon"] main.theme-layout-root {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
  }
  body[data-theme="rabat-electric-horizon"] .site-header {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow: visible !important;
    contain: none !important;
  }
  body[data-theme="rabat-electric-horizon"] main.theme-layout-root > *,
  body[data-theme="rabat-electric-horizon"] :is(.stats-grid, .theme-grid, .objective-grid, .activity-grid, .sponsorship-grid, .contact, .location-experience, .program-home-workshop-grid, .program-home-visit-track) {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body[data-theme="rabat-electric-horizon"] :is(h1, h2, h3, p, span, a) { overflow-wrap: anywhere; }
  body[data-theme="rabat-electric-horizon"] :is(img, video, iframe) { max-width: 100%; }
  body[data-theme="rabat-electric-horizon"] .shell { width: min(calc(100% - 24px), var(--rh-content)); }
  body[data-theme="rabat-electric-horizon"] .site-header .nav-frame { width: calc(100% - 22px) !important; max-width: calc(100% - 22px) !important; min-height: 68px; margin-inline: auto !important; }
  body[data-theme="rabat-electric-horizon"] .site-header .site-nav {
    position: fixed !important;
    z-index: 2147483000 !important;
    top: var(--nav-height, 74px) !important;
    bottom: 0 !important;
    left: auto !important;
    right: 0 !important;
    width: min(390px, 92vw) !important;
    height: calc(100dvh - var(--nav-height, 74px)) !important;
    max-width: min(390px, 92vw) !important;
    display: flex !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: scale(.975) !important;
    transform-origin: top right;
    contain: none !important;
  }
  html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .site-header .site-nav {
    left: 0 !important;
    right: auto !important;
    transform: scale(.975) !important;
    transform-origin: top left;
  }
  body[data-theme="rabat-electric-horizon"] .site-header.menu-open .site-nav,
  html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .site-header.menu-open .site-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  body[data-theme="rabat-electric-horizon"] .site-header .site-nav-backdrop {
    position: fixed !important;
    z-index: 2147482990 !important;
    inset: var(--nav-height, 74px) 0 0 !important;
    background: rgba(7, 35, 52, .38) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body[data-theme="rabat-electric-horizon"] .site-header.menu-open .nav-frame {
    position: relative;
    z-index: 2147483001 !important;
    background: #fff !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body[data-theme="rabat-electric-horizon"] .hero-stage,
  body[data-theme="rabat-electric-horizon"] .hero-card { min-height: 640px; }
  body[data-theme="rabat-electric-horizon"] main.theme-layout-root > .hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
    padding: 0 !important;
  }
  body[data-theme="rabat-electric-horizon"] .hero,
  body[data-theme="rabat-electric-horizon"] .hero-stage,
  body[data-theme="rabat-electric-horizon"] .hero-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-inline: 0 !important;
    border-radius: 0 !important;
  }
  body[data-theme="rabat-electric-horizon"] .hero-stage {
    position: relative;
    box-shadow: none;
    overflow: hidden;
  }
  body[data-theme="rabat-electric-horizon"] .hero-media,
  body[data-theme="rabat-electric-horizon"] .hero-media-item,
  body[data-theme="rabat-electric-horizon"] .hero-media video,
  body[data-theme="rabat-electric-horizon"] .rabat-hero-poster {
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
  }
  body[data-theme="rabat-electric-horizon"] .hero-card {
    position: relative;
    padding: 28px 20px 34px !important;
  }
  body[data-theme="rabat-electric-horizon"] .hero-title {
    position: absolute !important;
    z-index: 4;
    top: 50%;
    inset-inline: 20px;
    width: auto;
    max-width: none;
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-align: center;
    transform: translateY(-50%);
  }
  body[data-theme="rabat-electric-horizon"] .hero-title > div:last-child { width: 100%; }
  body[data-theme="rabat-electric-horizon"] .conference-mark { width: 62px; height: 62px; font-size: 34px; }
  body[data-theme="rabat-electric-horizon"] .hero-title h1 {
    width: 100%;
    max-width: 15ch;
    margin: 0 auto;
    font-size: clamp(36px, 10.5vw, 56px);
    text-align: center;
    text-wrap: balance;
  }
  body[data-theme="rabat-electric-horizon"] .hero-title p { font-size: 17px; }
  body[data-theme="rabat-electric-horizon"] .activity-grid article,
  body[data-theme="rabat-electric-horizon"] .activity-grid article :is(h2, h3, h4, strong) { color: var(--rh-ink) !important; }
  body[data-theme="rabat-electric-horizon"] .activity-grid article p { color: var(--rh-muted) !important; }
  body[data-theme="rabat-electric-horizon"] .stats-grid { grid-template-columns: repeat(var(--rh-stats-mobile-columns), minmax(0, 1fr)); }
  body[data-theme="rabat-electric-horizon"] .objective-grid { grid-template-columns: repeat(var(--rh-objectives-mobile-columns), minmax(0, 1fr)); }
  body[data-theme="rabat-electric-horizon"] .stats-grid article,
  body[data-theme="rabat-electric-horizon"] .objective-grid article {
    container-type: inline-size;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--rh-number-gap);
    padding: var(--rh-mobile-card-padding);
    text-align: center !important;
  }
  body[data-theme="rabat-electric-horizon"] .stats-grid strong,
  body[data-theme="rabat-electric-horizon"] .objective-grid article > strong {
    order: -1;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    margin-inline: auto;
    font-size: clamp(34px, 13cqi, 58px);
    line-height: .94;
    white-space: pre !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: center !important;
  }
  body[data-theme="rabat-electric-horizon"] .stats-grid span,
  body[data-theme="rabat-electric-horizon"] .objective-grid article > div { width: 100%; max-width: 32ch; margin-inline: auto; text-align: center !important; }
  body[data-theme="rabat-electric-horizon"][data-rh-number-alignment="start"] :is(.stats-grid strong, .objective-grid article > strong) { align-self: flex-start; margin-inline: 0 auto; }
  body[data-theme="rabat-electric-horizon"][data-rh-number-alignment="center"] :is(.stats-grid strong, .objective-grid article > strong) { align-self: center; margin-inline: auto; }
  body[data-theme="rabat-electric-horizon"][data-rh-number-alignment="end"] :is(.stats-grid strong, .objective-grid article > strong) { align-self: flex-end; margin-inline: auto 0; }
  body[data-theme="rabat-electric-horizon"][data-rh-mobile-card-alignment="center"] :is(.theme-grid article, .activity-grid article, .program-home-card) { align-items: center; text-align: center; }
  body[data-theme="rabat-electric-horizon"][data-rh-mobile-card-alignment="center"] :is(.theme-grid article, .activity-grid article, .program-home-card) :is(img, svg) { margin-inline: auto; }
  body[data-theme="rabat-electric-horizon"][data-rh-mobile-card-alignment="center"] :is(.theme-grid article, .activity-grid article, .program-home-card) :is(h2, h3, p, div) { text-align: center; }
  body[data-theme="rabat-electric-horizon"][data-rh-mobile-card-alignment="start"] :is(.stats-grid article, .objective-grid article, .theme-grid article, .activity-grid article, .program-home-card) { align-items: flex-start; text-align: start; }
  body[data-theme="rabat-electric-horizon"][data-rh-mobile-card-alignment="start"] :is(.stats-grid span, .objective-grid article > div) { margin-inline: 0; text-align: start; }
  body[data-theme="rabat-electric-horizon"][data-rh-mobile-card-alignment="end"] :is(.stats-grid article, .objective-grid article, .theme-grid article, .activity-grid article, .program-home-card) { align-items: flex-end; text-align: end; }
  body[data-theme="rabat-electric-horizon"][data-rh-mobile-card-alignment="end"] :is(.stats-grid span, .objective-grid article > div) { margin-inline: 0; text-align: end; }
  body[data-theme="rabat-electric-horizon"] .sponsor-tier-row.rh-managed-opportunities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body[data-theme="rabat-electric-horizon"] .rh-opportunity-card { min-height: var(--rh-opportunity-card-height,184px); padding: 13px 10px; }
  body[data-theme="rabat-electric-horizon"] .rh-opportunity-image { height: var(--rh-opportunity-image-height,96px); flex-basis: var(--rh-opportunity-image-height,96px); }
  body[data-theme="rabat-electric-horizon"] .rh-opportunity-name { min-height: 42px; font-size: 14px; }
  body[data-theme="rabat-electric-horizon"] .hero-meta { inset-inline: 0; flex-wrap: wrap; }
  body[data-theme="rabat-electric-horizon"] .section-symbol { width: 42px; height: 42px; flex-basis: 42px; }
  body[data-theme="rabat-electric-horizon"] .participation-section { width: calc(100% - 24px); padding: 12px; }
  body[data-theme="rabat-electric-horizon"] .location-experience {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
    row-gap: var(--rh-location-content-gap, 0px);
  }
  body[data-theme="rabat-electric-horizon"] .location-map-panel {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 350px;
    margin-bottom: -56px;
    border: 1px solid var(--rh-line);
    border-bottom: 0;
    border-radius: var(--rh-radius) var(--rh-radius) 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, .7) 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, .7) 86%, transparent 100%);
  }
  body[data-theme="rabat-electric-horizon"] .location-image-panel {
    grid-column: 1;
    grid-row: 2;
    min-height: 300px;
    border-radius: 0 0 var(--rh-radius) var(--rh-radius);
    background-size: cover;
  }
  body[data-theme="rabat-electric-horizon"].rh-location-details .location-experience.has-location-details .location-details-panel {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: center;
    width: calc(100% - 28px);
    max-height: calc(100% - 28px);
    margin: 14px;
  }
  body[data-theme="rabat-electric-horizon"] .location-experience.has-location-map:not(.has-location-image) .location-map-panel {
    grid-row: 1;
    margin-bottom: 0;
    border: 1px solid var(--rh-line);
    border-radius: var(--rh-radius);
    -webkit-mask-image: none;
    mask-image: none;
  }
  body[data-theme="rabat-electric-horizon"] .location-experience.has-location-image:not(.has-location-map) .location-image-panel { grid-row: 1; border-radius: var(--rh-radius); }
  body[data-theme="rabat-electric-horizon"] .location-map-panel iframe,
  body[data-theme="rabat-electric-horizon"] .location-map-fallback { min-height: 350px; }
  body[data-theme="rabat-electric-horizon"] .attendee-modal,
  body[data-theme="rabat-electric-horizon"] .speaker-modal,
  body[data-theme="rabat-electric-horizon"] .sponsorship-modal { padding: 0; align-items: end; place-items: end center; }
  body[data-theme="rabat-electric-horizon"] .attendee-modal-panel,
  body[data-theme="rabat-electric-horizon"] .speaker-modal-panel,
  body[data-theme="rabat-electric-horizon"] .sponsorship-modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    border-radius: 26px 26px 0 0;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  }
}

/* Conference review — bilingual identity, flow, agenda and forms. */
html:has(body[data-theme="rabat-electric-horizon"]) { scroll-padding-top: 108px; }
html:has(body[data-theme="rabat-electric-horizon"].rh-smooth-navigation) { scroll-behavior: smooth; }
body[data-theme="rabat-electric-horizon"] { --rh-font-scale: 1; }
body[data-theme="rabat-electric-horizon"] main.theme-layout-root > section { scroll-margin-top: 108px; }
body[data-theme="rabat-electric-horizon"] :is(.section-heading h2,.history-lead-title,.program-home-heading h2,.contact-copy h2,.location-details-panel h2) { font-size: calc(clamp(30px, 4vw, 58px) * var(--rh-font-scale)); line-height: 1.08; text-wrap: balance; }
body[data-theme="rabat-electric-horizon"] :is(.section-heading p,.history-lead,.activity-grid p,.theme-grid p,.objective-grid p,.contact-copy p) { font-size: calc(clamp(15px, 1.25vw, 18px) * var(--rh-font-scale)); line-height: 1.75; }
body[data-theme="rabat-electric-horizon"] .conference-mark[hidden] { display: none !important; }

body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logos { position: absolute; z-index: 7; inset: 0; pointer-events: none; }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo { position: absolute; display: grid; place-items: center; width: var(--rh-logo-width,148px); min-height: 100px; padding: var(--rh-logo-padding,12px); border: 1px solid rgba(255,255,255,.48); border-radius: 18px; box-shadow: 0 20px 48px rgba(7,56,84,.16); backdrop-filter: blur(10px); }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-side="left"] { left: var(--rh-logo-inset,36px); }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-side="right"] { right: var(--rh-logo-inset,36px); }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-vertical="top"] { top: clamp(92px,14vh,150px); transform: none; }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-vertical="center"] { top: 50%; transform: translateY(-50%); }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-vertical="bottom"] { bottom: clamp(30px,7vh,76px); transform: none; }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-background="transparent"] { border-color: transparent; background: transparent; box-shadow: none; backdrop-filter: none; }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-background="white"] { background: #fff; backdrop-filter: none; }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-background="glass"] { background: rgba(255,255,255,.9); }
body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo img { display: block; width: 100%; height: 78px; object-fit: contain; }

body[data-theme="rabat-electric-horizon"] .rh-conference-topics .section-heading { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 18px; }
body[data-theme="rabat-electric-horizon"] .rh-conference-topics .section-heading > :not(.section-symbol) { grid-column: 2; }
body[data-theme="rabat-electric-horizon"] .rh-topic-slogan { margin: 10px 0 0; color: var(--rh-teal); font-weight: 850; }
body[data-theme="rabat-electric-horizon"] .rh-topic-overview { max-width: 74ch; margin: 18px 0 0; color: var(--rh-muted); }
body[data-theme="rabat-electric-horizon"] .rh-topic-objectives { max-width: 74ch; margin: 10px 0 0; padding-inline-start: 15px; border-inline-start: 3px solid var(--rh-teal); color: var(--rh-deep); font-weight: 700; }
body[data-theme="rabat-electric-horizon"] .rh-topic-details { margin: 6px 0 0; color: var(--rh-muted) !important; line-height: 1.7; }
body[data-theme="rabat-electric-horizon"] .theme-grid article { height: 100%; }
body[data-theme="rabat-electric-horizon"] .objective-grid article > strong[hidden] { display: none !important; }
body[data-theme="rabat-electric-horizon"] .objective-grid article:has(> strong[hidden]) { grid-template-columns: 1fr; }

body[data-theme="rabat-electric-horizon"] :is(.rh-event-dates-section,.rh-countdown-section,.rh-agenda-section) { width: min(var(--rh-content),calc(100% - 40px)); margin: clamp(26px,4vw,56px) auto; border: 1px solid var(--rh-line); border-radius: calc(var(--rh-radius) + 4px); background: #fff; box-shadow: 0 22px 58px rgba(7,56,84,.08); }
body[data-theme="rabat-electric-horizon"] :is(.rh-event-dates-section,.rh-countdown-section,.rh-agenda-section).is-width-full { width: 100%; max-width: none; margin-inline: 0; border-inline: 0; border-radius: 0; }
body[data-theme="rabat-electric-horizon"] .rh-event-dates-section { display: flex; align-items: center; gap: 20px; padding: clamp(24px,4vw,44px); background: linear-gradient(120deg,rgba(0,191,179,.11),rgba(7,87,141,.06) 55%,#fff); }
body[data-theme="rabat-electric-horizon"] .rh-event-dates-section.is-style-card { max-width: min(980px,calc(100% - 40px)); background: #fff; }
body[data-theme="rabat-electric-horizon"] .rh-event-dates-section.is-style-card.is-width-full { max-width: none; }
body[data-theme="rabat-electric-horizon"] .rh-event-dates-section.is-style-minimal { padding-block: clamp(18px,3vw,30px); border-block: 1px solid var(--rh-line); border-inline: 0; border-radius: 0; background: transparent; box-shadow: none; }
body[data-theme="rabat-electric-horizon"] .rh-event-dates-section h2 { margin: 0 0 8px; color: var(--rh-deep); font-size: calc(clamp(27px,3.2vw,46px) * var(--rh-font-scale)); }
body[data-theme="rabat-electric-horizon"] .rh-event-dates-section strong { display: block; color: var(--rh-blue); font-size: clamp(20px,2.4vw,32px); font-weight: 880; }
body[data-theme="rabat-electric-horizon"] .rh-event-dates-section p { max-width: 72ch; margin: 8px 0 0; color: var(--rh-muted); }
body[data-theme="rabat-electric-horizon"] .rh-countdown-section { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); align-items: center; gap: 24px; padding: clamp(24px,4vw,48px); }
body[data-theme="rabat-electric-horizon"] .rh-countdown-section h2 { margin: 0; color: var(--rh-deep); font-size: calc(clamp(28px,3.5vw,50px) * var(--rh-font-scale)); }
body[data-theme="rabat-electric-horizon"] .rh-countdown-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
body[data-theme="rabat-electric-horizon"] .rh-countdown-grid > span { display: grid; place-items: center; min-height: 118px; padding: 14px; border-radius: 18px; background: linear-gradient(145deg,#eef8f8,#fff); color: var(--rh-deep); text-align: center; }
body[data-theme="rabat-electric-horizon"] .rh-countdown-grid strong { color: var(--rh-blue); font-size: clamp(32px,4.2vw,58px); line-height: 1; font-variant-numeric: tabular-nums; }
body[data-theme="rabat-electric-horizon"] .rh-countdown-grid small { margin-top: 8px; color: var(--rh-muted); font-weight: 750; }
body[data-theme="rabat-electric-horizon"] .rh-agenda-section { display: flex; align-items: center; gap: 20px; padding: clamp(24px,4vw,46px); background: linear-gradient(135deg,rgba(7,87,141,.08),rgba(0,191,179,.08)); }
body[data-theme="rabat-electric-horizon"] .rh-agenda-section h2 { margin: 0 0 8px; color: var(--rh-deep); font-size: calc(clamp(28px,3.5vw,48px) * var(--rh-font-scale)); }
body[data-theme="rabat-electric-horizon"] .rh-agenda-section p { margin: 0; color: var(--rh-teal); font-size: 18px; font-weight: 850; }

/* Admin-managed custom homepage sections */
body[data-theme="rabat-electric-horizon"] .rh-custom-section { position: relative; width: 100%; min-width: 0; padding-block: clamp(34px,5vw,76px); color: var(--rh-deep); overflow: clip; }
body[data-theme="rabat-electric-horizon"] .rh-custom-section.rh-custom-style-white { background: #fff; }
body[data-theme="rabat-electric-horizon"] .rh-custom-section.rh-custom-style-soft { background: linear-gradient(135deg,rgba(0,191,179,.08),rgba(7,87,141,.07)); }
body[data-theme="rabat-electric-horizon"] .rh-custom-section.rh-custom-style-dark { background: var(--rh-deep); color: #fff; }
body[data-theme="rabat-electric-horizon"] .rh-custom-section.rh-custom-style-transparent { background: transparent; }
body[data-theme="rabat-electric-horizon"] .rh-custom-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
body[data-theme="rabat-electric-horizon"] .rh-custom-copy h2 { max-width: 18ch; margin: 8px 0 16px; color: inherit; font-size: calc(clamp(30px,4.4vw,64px) * var(--rh-font-scale)); line-height: 1.06; text-wrap: balance; }
body[data-theme="rabat-electric-horizon"] .rh-custom-copy p { max-width: 68ch; margin: 0; color: var(--rh-muted); font-size: clamp(16px,1.5vw,20px); line-height: 1.85; white-space: pre-line; }
body[data-theme="rabat-electric-horizon"] .rh-custom-style-dark .rh-custom-copy p { color: rgba(255,255,255,.78); }
body[data-theme="rabat-electric-horizon"] .rh-custom-eyebrow { color: var(--rh-teal); font-size: 13px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
body[data-theme="rabat-electric-horizon"] .rh-custom-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; margin-top: 24px; border-radius: 999px; background: var(--rh-teal); color: var(--rh-deep); font-weight: 850; text-decoration: none; box-shadow: 0 12px 30px rgba(0,191,179,.2); transition: transform .25s ease,box-shadow .25s ease; }
body[data-theme="rabat-electric-horizon"] .rh-custom-button:hover { color: var(--rh-deep); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,191,179,.28); }
body[data-theme="rabat-electric-horizon"] .rh-custom-media { position: relative; min-width: 0; height: 100%; min-height: 280px; overflow: hidden; border-radius: var(--rh-radius); background: #eaf3f5; }
body[data-theme="rabat-electric-horizon"] .rh-custom-media :is(img,video) { display: block; width: 100%; height: 100%; min-height: inherit; border: 0; object-fit: var(--rh-custom-media-fit,cover); }
body[data-theme="rabat-electric-horizon"] .rh-custom-two-column { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,5vw,72px); align-items: stretch; min-height: var(--rh-custom-height,480px); }
body[data-theme="rabat-electric-horizon"] .rh-custom-two-column > * { min-width: 0; }
body[data-theme="rabat-electric-horizon"] .rh-custom-two-column:not(.has-media) { grid-template-columns: 1fr; min-height: min(56vh,var(--rh-custom-height,480px)); }
body[data-theme="rabat-electric-horizon"] .rh-custom-box { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,4vw,58px); min-height: var(--rh-custom-height,480px); padding: clamp(24px,4vw,54px); border: 1px solid rgba(7,87,141,.12); border-radius: calc(var(--rh-radius) + 8px); background: rgba(255,255,255,.76); box-shadow: 0 22px 65px rgba(5,42,62,.09); }
body[data-theme="rabat-electric-horizon"] .rh-custom-style-dark .rh-custom-box { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
body[data-theme="rabat-electric-horizon"] .rh-custom-box:not(.has-media) { grid-template-columns: 1fr; min-height: min(56vh,var(--rh-custom-height,480px)); }
body[data-theme="rabat-electric-horizon"] .rh-custom-text-shell { display: grid; place-items: center; min-height: min(56vh,var(--rh-custom-height,480px)); text-align: center; }
body[data-theme="rabat-electric-horizon"] .rh-custom-text-shell .rh-custom-copy { align-items: center; text-align: center; }
body[data-theme="rabat-electric-horizon"] .rh-custom-text-shell .rh-custom-copy h2 { max-width: 22ch; }
body[data-theme="rabat-electric-horizon"] .rh-custom-only-media { min-height: var(--rh-custom-height,480px); }
body[data-theme="rabat-electric-horizon"] .rh-custom-only-media .rh-custom-media { min-height: var(--rh-custom-height,480px); }
body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature { position: relative; display: grid; place-items: center; width: 100%; min-height: var(--rh-custom-height,480px); overflow: hidden; }
body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature > .rh-custom-media { position: absolute; inset: 0; min-height: 100%; border-radius: 0; }
body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature > .rh-custom-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,37,55,.78),rgba(5,37,55,.16)); }
html[dir="rtl"] body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature > .rh-custom-media::after { background: linear-gradient(-90deg,rgba(5,37,55,.78),rgba(5,37,55,.16)); }
body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature > .rh-custom-copy { width: min(var(--rh-content),calc(100% - 40px)); min-height: inherit; margin-inline: auto; padding-block: 40px; }
body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature.has-media > .rh-custom-copy { color: #fff; }
body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature.has-media > .rh-custom-copy p { color: rgba(255,255,255,.82); }
body[data-theme="rabat-electric-horizon"] .rh-custom-section-heading { width: min(var(--rh-content),calc(100% - 40px)); margin: 0 auto 28px; }
body[data-theme="rabat-electric-horizon"] .rh-custom-section-heading h2 { max-width: 24ch; font-size: calc(clamp(28px,3.7vw,52px) * var(--rh-font-scale)); }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-shell { --rh-carousel-gap:18px; position: relative; width: min(var(--rh-content),calc(100% - 40px)); margin-inline: auto; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-viewport { width: 100%; overflow: hidden; border-radius: calc(var(--rh-radius) + 4px); }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-track { display: flex; gap: var(--rh-carousel-gap); min-height: var(--rh-custom-carousel-height,520px); transition: transform .65s cubic-bezier(.22,.61,.36,1); will-change: transform; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-slide { position: relative; flex: 0 0 var(--rh-carousel-item-width,100%); min-width: 0; height: var(--rh-custom-carousel-height,520px); overflow: hidden; border-radius: calc(var(--rh-radius) + 4px); background: #eef5f6; opacity: .72; transform: scale(.985); transition: opacity .45s ease,transform .45s ease; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-slide.is-active { opacity: 1; transform: none; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-slide > .rh-custom-media { position: absolute; inset: 0; min-height: 100%; border-radius: inherit; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-slide > .rh-custom-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(5,35,52,.82),transparent 68%); pointer-events: none; }
body[data-theme="rabat-electric-horizon"] .rh-custom-slide-copy { position: absolute; z-index: 2; inset-inline: clamp(20px,4vw,54px); bottom: clamp(20px,4vw,48px); color: #fff; }
body[data-theme="rabat-electric-horizon"] .rh-custom-slide-copy h2 { max-width: 20ch; font-size: clamp(26px,3vw,44px); }
body[data-theme="rabat-electric-horizon"] .rh-custom-slide-copy p { max-width: 60ch; color: rgba(255,255,255,.82); }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-shell.is-fade .rh-custom-carousel-track { position: relative; display: grid; gap: 0; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-shell.is-fade .rh-custom-carousel-slide { grid-area: 1/1; width: 100%; opacity: 0; pointer-events: none; transform: scale(1.018); }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-shell.is-fade .rh-custom-carousel-slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; transform: none; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-arrow { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.9); color: var(--rh-deep); box-shadow: 0 10px 28px rgba(4,32,48,.2); transform: translateY(-50%); }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-arrow.is-prev { left: 16px; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-arrow.is-next { right: 16px; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(7,87,141,.25); transition: width .25s ease,background .25s ease; }
body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-dots button.is-active { width: 28px; background: var(--rh-teal); }

body[data-theme="rabat-electric-horizon"] .theme-section-divider:not(.rh-managed-divider) { display: none !important; }
body[data-theme="rabat-electric-horizon"] main.theme-layout-root > .ornament { display: none !important; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider { position: relative; display: block !important; width: 100vw; max-width: none; height: var(--rh-divider-height,54px); margin-block: var(--rh-divider-spacing,18px); margin-inline: calc(50% - 50vw); overflow: hidden; background: transparent; opacity: 1; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider[data-width="content"] { width: min(var(--rh-content),calc(100% - 40px)); margin-inline: auto; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider::before { content: ""; position: absolute; inset: 0; background-image: var(--rh-divider-image,url("media/pattern.png")); background-repeat: repeat-x; background-position: var(--rh-divider-position,center) center; background-size: auto var(--rh-divider-pattern-height,38px); opacity: var(--theme-divider-opacity,.56); animation: rhDividerMoveLtr var(--theme-divider-speed,32s) linear infinite; will-change: background-position,transform; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider[data-dir="rtl"]::before { animation-name: rhDividerMoveRtl; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider[data-image-mode="contain"]::before { background-repeat: no-repeat; background-size: contain; animation-name: rhDividerBreathe; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider[data-image-mode="cover"]::before { background-repeat: no-repeat; background-size: cover; animation-name: rhDividerBreathe; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider[data-image-mode="stretch"]::before { background-repeat: no-repeat; background-size: 100% 100%; animation-name: rhDividerBreathe; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider[data-motion="stable"]::before { animation: none !important; will-change: auto; }
body[data-theme="rabat-electric-horizon"] .rh-managed-divider::after { display: none !important; }
@keyframes rhDividerMoveLtr { from { background-position-x: 0; } to { background-position-x: -900px; } }
@keyframes rhDividerMoveRtl { from { background-position-x: 0; } to { background-position-x: 900px; } }
@keyframes rhDividerBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) { body[data-theme="rabat-electric-horizon"] .rh-managed-divider::before { animation: none !important; will-change: auto; } }

body[data-theme="rabat-electric-horizon"] #sponsorship .rh-managed-floor-plan { display: grid; place-items: center; min-height: var(--rh-floor-plan-height,620px); overflow: hidden; background: #fff; }
body[data-theme="rabat-electric-horizon"] #sponsorship .rh-managed-floor-plan img { width: 100%; height: 100%; min-height: var(--rh-floor-plan-height,620px); image-rendering: auto; transition: transform .35s ease,filter .35s ease; }
body[data-theme="rabat-electric-horizon"].rh-uniform-sponsor-logos :is(.sponsor-directory-card,.sponsor-carousel-item,.sponsor-slide) img { width: 100%; height: var(--rh-sponsor-logo-height,96px) !important; max-height: var(--rh-sponsor-logo-height,96px) !important; object-fit: contain !important; object-position: center; }
body[data-theme="rabat-electric-horizon"].rh-uniform-sponsor-logos :is(.sponsor-directory-card,.sponsor-carousel-item,.sponsor-slide) { min-height: var(--rh-sponsor-card-height,154px); }

body[data-theme="rabat-electric-horizon"] .rh-registration-source-options { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
body[data-theme="rabat-electric-horizon"] .rh-registration-type-selector { display: grid; gap: 8px; width: 100%; }
body[data-theme="rabat-electric-horizon"] .rh-registration-type-selector > span { color: var(--rh-deep); font-weight: 800; }
body[data-theme="rabat-electric-horizon"] :is(.rh-registration-type-selector select,.attendee-form-grid fieldset select,.sponsorship-form-grid fieldset select) { width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid #cfdcdf; border-radius: 14px; background: #fff; color: var(--rh-deep); font: inherit; }
body[data-theme="rabat-electric-horizon"] :is(.attendee-form-grid fieldset,.sponsorship-form-grid fieldset) { border: 0; padding: 0; margin: 0; }
body[data-theme="rabat-electric-horizon"] :is(.attendee-form-grid fieldset,.sponsorship-form-grid fieldset) label { display: grid; gap: 8px; width: 100%; }
body[data-theme="rabat-electric-horizon"] :is(.attendee-form-grid fieldset,.sponsorship-form-grid fieldset) label > span { color: var(--rh-deep); font-weight: 800; }
body[data-theme="rabat-electric-horizon"] .activity-grid article :is(h2,h3,h4,strong) { color: var(--rh-activity-heading,var(--rh-deep)) !important; }
body[data-theme="rabat-electric-horizon"] .activity-grid article p { color: var(--rh-activity-text,var(--rh-muted)) !important; }
body[data-theme="rabat-electric-horizon"] :is(.attendee-registration-card,.speaker-registration-card).rh-has-managed-artwork { position: relative; isolation: isolate; overflow: hidden; background: var(--rh-card-background,var(--rh-deep)); color: var(--rh-card-text,#fff); }
body[data-theme="rabat-electric-horizon"] :is(.attendee-registration-card,.speaker-registration-card).rh-has-managed-artwork::before,
body[data-theme="rabat-electric-horizon"] :is(.attendee-registration-card,.speaker-registration-card).rh-has-managed-artwork::after { display:none !important; content:none !important; background:none !important; }
body[data-theme="rabat-electric-horizon"] :is(.attendee-registration-card,.speaker-registration-card) > .rh-card-background-media { position:absolute !important; z-index:0 !important; inset:0; display:block !important; width:100% !important; height:100% !important; max-width:none !important; max-height:none !important; margin:0 !important; border:0 !important; border-radius:inherit; transform:none !important; }
body[data-theme="rabat-electric-horizon"] :is(.attendee-registration-card,.speaker-registration-card) > .rh-card-background-overlay { position:absolute !important; z-index:1 !important; inset:0; display:block !important; background:var(--rh-card-overlay,rgba(5,39,58,.72)); pointer-events:none; }
body[data-theme="rabat-electric-horizon"] :is(.attendee-registration-card,.speaker-registration-card).rh-has-managed-artwork > :not(.rh-card-background-media):not(.rh-card-background-overlay) { position: relative; z-index: 2; }
body[data-theme="rabat-electric-horizon"] .attendee-registration-card.rh-clean-full-background .attendee-registration-visual,
body[data-theme="rabat-electric-horizon"] .speaker-registration-card.rh-clean-full-background .speaker-registration-visual { display:none !important; }
body[data-theme="rabat-electric-horizon"] :is(.attendee-registration-card,.speaker-registration-card).rh-clean-full-background { display:block; min-height:clamp(360px,38vw,540px); }
body[data-theme="rabat-electric-horizon"] :is(.attendee-registration-card,.speaker-registration-card).rh-clean-full-background :is(.attendee-registration-copy,.speaker-registration-copy) { width:min(760px,100%); max-width:100%; }

@media (max-width: 900px) {
  body[data-theme="rabat-electric-horizon"] :is(.rh-custom-two-column,.rh-custom-box) { grid-template-columns: 1fr; min-height: 0; }
  body[data-theme="rabat-electric-horizon"] :is(.rh-custom-two-column,.rh-custom-box) .rh-custom-media { min-height: min(62vw,460px); }
}

@media (max-width: 760px) {
  body[data-theme="rabat-electric-horizon"] .hero-stage,
  body[data-theme="rabat-electric-horizon"] .hero-card { min-height: var(--rh-hero-mobile-height,700px); }
  body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo { width: min(var(--rh-logo-width,112px),30vw); min-height: 70px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-side="left"] { left: min(var(--rh-logo-inset,12px),8vw); }
  body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-side="right"] { right: min(var(--rh-logo-inset,12px),8vw); }
  body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo[data-vertical="top"] { top: 94px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-partner-logo img { height: 50px; }
  body[data-theme="rabat-electric-horizon"] .rh-conference-topics .section-heading { grid-template-columns: 1fr; text-align: center; }
  body[data-theme="rabat-electric-horizon"] .rh-conference-topics .section-heading > :not(.section-symbol) { grid-column: 1; }
  body[data-theme="rabat-electric-horizon"] .rh-conference-topics .section-symbol { margin-inline: auto; }
  body[data-theme="rabat-electric-horizon"] .rh-topic-objectives { padding-inline-start: 0; border-inline-start: 0; }
  body[data-theme="rabat-electric-horizon"] :is(.rh-event-dates-section,.rh-countdown-section,.rh-agenda-section) { width: calc(100% - 24px); }
  body[data-theme="rabat-electric-horizon"] .rh-event-dates-section { align-items: center; text-align: center; flex-direction: column; }
  body[data-theme="rabat-electric-horizon"] .rh-countdown-section { grid-template-columns: 1fr; text-align: center; }
  body[data-theme="rabat-electric-horizon"] .rh-countdown-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-theme="rabat-electric-horizon"] .rh-countdown-grid > span { min-height: 100px; }
  body[data-theme="rabat-electric-horizon"] .rh-agenda-section { align-items: center; text-align: center; flex-direction: column; }
  body[data-theme="rabat-electric-horizon"] #sponsorship .rh-managed-floor-plan,
  body[data-theme="rabat-electric-horizon"] #sponsorship .rh-managed-floor-plan img { min-height: min(var(--rh-floor-plan-height,620px),70vh); }
  body[data-theme="rabat-electric-horizon"] .rh-custom-section { padding-block: 30px; }
  body[data-theme="rabat-electric-horizon"] .rh-custom-copy { align-items: center; text-align: center; }
  body[data-theme="rabat-electric-horizon"] .rh-custom-copy h2 { max-width: 18ch; font-size: calc(clamp(28px,9vw,42px) * var(--rh-font-scale)); }
  body[data-theme="rabat-electric-horizon"] .rh-custom-copy p { font-size: 16px; }
  body[data-theme="rabat-electric-horizon"] .rh-custom-box { width: calc(100% - 24px); padding: 20px; }
  body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature > .rh-custom-copy { width: calc(100% - 32px); }
  body[data-theme="rabat-electric-horizon"] .rh-custom-full-feature > .rh-custom-media::after { background: rgba(5,37,55,.58); }
  body[data-theme="rabat-electric-horizon"] :is(.rh-custom-section-heading,.rh-custom-carousel-shell) { width: calc(100% - 24px); }
  body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-slide { height: min(var(--rh-custom-carousel-height,520px),72vh); }
  body[data-theme="rabat-electric-horizon"] .rh-custom-slide-copy { inset-inline: 18px; bottom: 20px; }
  body[data-theme="rabat-electric-horizon"] .rh-custom-slide-copy h2 { font-size: clamp(24px,7vw,34px); }
  body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-arrow { width: 42px; height: 42px; }
  body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-arrow.is-prev { left: 8px; }
  body[data-theme="rabat-electric-horizon"] .rh-custom-carousel-arrow.is-next { right: 8px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-slide img { object-fit: var(--rh-hero-carousel-mobile-fit); }
  body[data-theme="rabat-electric-horizon"] .hero.rh-hero-carousel-mode.rh-hero-carousel-natural-mobile .hero-stage { width: 100% !important; min-height: 0 !important; height: auto !important; aspect-ratio: 5364 / 2250; }
  body[data-theme="rabat-electric-horizon"] .hero.rh-hero-carousel-mode.rh-hero-carousel-natural-mobile .hero-media { position: absolute !important; inset: 0 !important; height: 100% !important; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-arrow { width: 38px; height: 38px; font-size: 14px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-arrow.is-prev { left: 6px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-arrow.is-next { right: 6px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-dots { bottom: 8px; gap: 6px; padding: 6px 9px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-dots button { width: 7px; height: 7px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-carousel-dots button.is-active { width: 20px; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy { inset-inline: 18px; top: 50%; max-width: calc(100% - 36px); transform: translateY(-50%); text-align: center !important; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-position="top"] { top: 18%; transform:none; }body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy[data-position="bottom"] { top:auto; bottom:52px; transform:none; }
  body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy h2 { font-size: calc(clamp(28px,9vw,48px) * var(--rh-font-scale)); }body[data-theme="rabat-electric-horizon"] .rh-hero-slide-copy p { margin-top:12px; font-size:calc(clamp(14px,4vw,18px) * var(--rh-font-scale)); }
}

/* Admin-managed dark mode keeps the Rabat identity while changing readable surfaces. */
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] { --rh-sand:var(--site-dark-surface,#071923);--rh-ink:var(--site-dark-text,#f4fbff);--rh-muted:var(--site-dark-muted,#b5c5cf);--rh-line:rgba(255,255,255,.13);background:var(--site-dark-surface,#071923);color:var(--site-dark-text,#f4fbff); }
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.site-header,.site-header[data-site-header]) { background:color-mix(in srgb,var(--site-dark-card,#0d2734) 88%,transparent)!important;border-color:rgba(255,255,255,.12)!important; }
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.site-nav-link,.site-nav-dropdown-toggle,.language-switch,.color-mode-switch){color:var(--site-dark-text,#f4fbff)!important}html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] .site-nav-dropdown-menu{background:var(--site-dark-card,#0d2734)}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.statistics-section,.history-section,.themes-section,.objectives-section,.activities-section,.sponsorship-section,.contact,.rh-event-dates-section,.rh-countdown-section,.rh-agenda-section,.rh-custom-style-white,.rh-custom-box,.rh-opportunity-card){background:var(--site-dark-card,#0d2734);color:var(--site-dark-text,#f4fbff);border-color:rgba(255,255,255,.13)}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.section-heading h2,.about-heading h2,.history-lead-title,.program-home-heading h2,.contact-copy h2,.contact-form-card h3,.rh-event-dates-section h2,.rh-countdown-section h2,.rh-agenda-section h2,.rh-opportunity-name){color:var(--site-dark-text,#f4fbff)}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.stats-grid article,.theme-grid article,.objective-grid article,.activity-grid article,.program-home-card,.program-home-visit-card,.sponsor-directory-card){background:color-mix(in srgb,var(--site-dark-card,#0d2734) 86%,#ffffff 14%)!important;color:var(--site-dark-text,#f4fbff)!important;border-color:rgba(255,255,255,.16)!important}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.theme-grid article h3,.theme-grid article p,.objective-grid article>div,.objective-grid article h3,.objective-grid article p,.activity-grid article h3,.activity-grid article p,.program-home-card h3,.program-home-card p,.stats-grid span){color:var(--site-dark-text,#f4fbff)!important}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.theme-grid article p,.objective-grid article p,.activity-grid article p,.program-home-card p){color:var(--site-dark-muted,#b5c5cf)!important}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.stats-grid strong,.objective-grid article>strong){color:var(--rh-teal,#00bfb3)!important;opacity:1}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.sponsorship-section .sponsorship-copy,.sponsorship-section .sponsorship-copy h3,.sponsorship-section .sponsorship-copy p){color:var(--site-dark-text,#f4fbff)!important}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"] :is(.contact-form-card,input,select,textarea,.rh-countdown-grid>span){background:color-mix(in srgb,var(--site-dark-card,#0d2734) 82%,#000);color:var(--site-dark-text,#f4fbff);border-color:rgba(255,255,255,.16)}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"].rh-location-details .location-details-panel{background:color-mix(in srgb,var(--site-dark-card,#0d2734) 92%,transparent);border-color:rgba(255,255,255,.18)}
html[data-color-mode="dark"] body[data-theme="rabat-electric-horizon"].rh-opportunities-background .rh-opportunity-card.rh-opportunity-background .rh-opportunity-name{background:color-mix(in srgb,var(--site-dark-card,#0d2734) 88%,transparent);color:var(--site-dark-text,#f4fbff)}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="rabat-electric-horizon"] *,
  body[data-theme="rabat-electric-horizon"] *::before,
  body[data-theme="rabat-electric-horizon"] *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body[data-theme="rabat-electric-horizon"] [data-rh-reveal],
  body[data-theme="rabat-electric-horizon"] .rh-card-motion,
  body[data-theme="rabat-electric-horizon"] .rh-sequence-item,
  body[data-theme="rabat-electric-horizon"] .location-map-panel { opacity: 1 !important; transform: none !important; }
}
