/* RMIQ retail media glossary hub. Renders in the page (no shadow DOM, so every link is crawlable),
   so every rule is namespaced under .rgl with at least two classes to outrank theme and Elementor
   kit element styles such as `.elementor-kit-626 h2`. Tokens follow the rmiq.net Elementor kit. */

.rgl {
  --rgl-navy: #130345;
  --rgl-purple: #5930d8;
  --rgl-purple-deep: #3b14b1;
  --rgl-purple-soft: #f4f1ff;
  --rgl-teal: #18c9ae;
  --rgl-teal-text: #047565;
  --rgl-mint: #ebfaf8;
  --rgl-line: #e2eeec;
  --rgl-muted: #56686d;
  --rgl-ring: 0 0 0 3px rgba(89, 48, 216, 0.3);
  --rgl-shadow: 0 1px 2px rgba(19, 3, 69, 0.06), 0 10px 30px rgba(19, 3, 69, 0.08);
  font-family: 'Proxima Nova', proxima-nova, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--rgl-navy);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.rgl *,
.rgl *::before,
.rgl *::after {
  box-sizing: border-box;
}
.rgl .rgl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rgl a:focus-visible,
.rgl button:focus-visible,
.rgl input:focus-visible {
  outline: none;
  box-shadow: var(--rgl-ring);
}

/* Headings: undo the site's global uppercase display type. */
.rgl .rgl-h2,
.rgl .rgl-letter-h,
.rgl .rgl-cta-title {
  font-family: inherit;
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--rgl-navy);
  margin: 0;
  padding: 0;
  line-height: 1.15;
}
.rgl .rgl-h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 16px;
}

/* ---------------------------------------------------------------- toolbar */
.rgl .rgl-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin: 0 0 12px;
}
.rgl .rgl-toolbar-inner {
  background: #fff;
  border: 1px solid var(--rgl-line);
  border-radius: 20px;
  box-shadow: var(--rgl-shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rgl .rgl-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  cursor: text;
}
.rgl .rgl-search-icon {
  position: absolute;
  left: 18px;
  color: var(--rgl-purple);
  pointer-events: none;
}
.rgl .rgl-search-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 52px 0 50px;
  border: 2px solid #ded7fa;
  border-radius: 999px;
  background: var(--rgl-purple-soft);
  color: var(--rgl-navy);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: normal;
  box-shadow: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.rgl .rgl-search-input::placeholder {
  color: #7d7aa0;
  font-weight: 600;
  opacity: 1;
}
.rgl .rgl-search-input:focus {
  border-color: var(--rgl-purple);
  background: #fff;
  box-shadow: var(--rgl-ring);
  outline: none;
}
.rgl .rgl-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}
.rgl .rgl-kbd {
  position: absolute;
  right: 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--rgl-muted);
  background: #fff;
  border: 1px solid #ded7fa;
  border-radius: 6px;
  padding: 1px 7px;
  pointer-events: none;
}
.rgl .rgl-search-input:not(:placeholder-shown) ~ .rgl-kbd,
.rgl .rgl-search-input:focus ~ .rgl-kbd {
  display: none;
}

.rgl .rgl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rgl .rgl-chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 12px;
  border: 1.5px solid var(--rgl-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rgl-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rgl .rgl-chip:hover {
  border-color: var(--rgl-c, var(--rgl-purple));
  background: #fff;
  color: var(--rgl-navy);
}
.rgl .rgl-chip .rgl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rgl-c);
  display: inline-block;
}
.rgl .rgl-chip .rgl-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--rgl-muted);
}
.rgl .rgl-chip.is-on {
  background: var(--rgl-c, var(--rgl-navy));
  border-color: var(--rgl-c, var(--rgl-navy));
  color: #fff;
}
.rgl .rgl-chip.is-on .rgl-dot {
  background: #fff;
}
.rgl .rgl-chip.is-on .rgl-count {
  color: rgba(255, 255, 255, 0.85);
}

.rgl .rgl-az {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--rgl-line);
}
.rgl .rgl-az a,
.rgl .rgl-az span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}
.rgl .rgl-az .rgl-az-on {
  color: var(--rgl-purple);
}
.rgl .rgl-az .rgl-az-on:hover {
  background: var(--rgl-purple-soft);
  color: var(--rgl-purple-deep);
}
.rgl .rgl-az .rgl-az-on[aria-disabled='true'] {
  color: #c3cbce;
  pointer-events: none;
}
.rgl .rgl-az .rgl-az-off {
  color: #c3cbce;
}

.rgl .rgl-status {
  margin: 0 4px 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rgl-muted);
}

/* Stuck: one scrolling row of chips and a slimmer search, so the toolbar covers less of the list. */
.rgl .rgl-sentinel {
  height: 1px;
}
.rgl .rgl-toolbar.is-stuck .rgl-toolbar-inner {
  padding: 10px 12px;
  gap: 8px;
}
.rgl .rgl-toolbar.is-stuck .rgl-search-input {
  height: 44px;
  font-size: 16px;
}
.rgl .rgl-toolbar.is-stuck .rgl-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.rgl .rgl-toolbar.is-stuck .rgl-chips::-webkit-scrollbar {
  display: none;
}
.rgl .rgl-toolbar.is-stuck .rgl-chip {
  flex: none;
}
.rgl .rgl-toolbar.is-stuck .rgl-az {
  padding-top: 6px;
}

/* ---------------------------------------------------------------- start here */
.rgl .rgl-featured {
  margin: 0 0 40px;
}
.rgl .rgl-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.rgl .rgl-feat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: var(--rgl-mint);
  border: 1.5px solid transparent;
  text-decoration: none;
  color: var(--rgl-navy);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.rgl .rgl-feat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: var(--rgl-c, var(--rgl-purple));
}
.rgl .rgl-feat:hover {
  transform: translateY(-2px);
  border-color: var(--rgl-c, var(--rgl-purple));
  box-shadow: var(--rgl-shadow);
  color: var(--rgl-navy);
}
.rgl .rgl-feat-topic {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rgl-teal-text);
}
.rgl .rgl-feat-name {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}
.rgl .rgl-feat-def {
  font-size: 14.5px;
  color: #3d4f55;
  line-height: 1.5;
  flex: 1;
}
.rgl .rgl-feat-more {
  font-size: 13px;
  font-weight: 800;
  color: var(--rgl-purple);
}

/* ---------------------------------------------------------------- A-Z list */
.rgl .rgl-all-h {
  margin-bottom: 8px;
}
.rgl .rgl-letter {
  scroll-margin-top: 190px;
  margin: 0 0 28px;
}
.rgl .rgl-letter-h {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 34px;
  font-weight: 900;
  color: var(--rgl-teal);
  margin: 0 0 12px;
}
.rgl .rgl-letter-h::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--rgl-line);
}
.rgl .rgl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rgl .rgl-card {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--rgl-line);
  border-radius: 16px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.rgl .rgl-card::before {
  content: none;
}
.rgl .rgl-card:hover {
  transform: translateY(-2px);
  border-color: var(--rgl-c, var(--rgl-purple));
  box-shadow: var(--rgl-shadow);
}
.rgl .rgl-card[hidden],
.rgl .rgl-letter[hidden],
.rgl .rgl-featured[hidden],
.rgl .rgl-empty[hidden] {
  display: none;
}
.rgl .rgl-card-link {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--rgl-navy);
  text-decoration: none;
}
.rgl .rgl-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.rgl .rgl-card-link:hover {
  color: var(--rgl-purple);
}
.rgl .rgl-card-link:focus-visible {
  box-shadow: none;
}
.rgl .rgl-card-link:focus-visible::after {
  box-shadow: var(--rgl-ring);
}
.rgl .rgl-tag {
  display: inline-block;
  margin: 7px 0 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--rgl-c, var(--rgl-purple));
  background: color-mix(in srgb, var(--rgl-c, var(--rgl-purple)) 12%, white);
}
.rgl .rgl-def {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rgl-muted);
}

.rgl .rgl-empty {
  padding: 32px;
  border: 2px dashed var(--rgl-line);
  border-radius: 18px;
  text-align: center;
}
.rgl .rgl-empty-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}
.rgl .rgl-empty-body {
  margin: 0;
  color: var(--rgl-muted);
}
.rgl .rgl-empty-body a {
  color: var(--rgl-purple);
  font-weight: 700;
}

/* ---------------------------------------------------------------- call to action */
.rgl .rgl-cta {
  margin: 40px 0 0;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--rgl-navy), var(--rgl-purple-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rgl .rgl-cta-copy {
  max-width: 560px;
}
.rgl .rgl-cta .rgl-cta-title {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 6px;
}
.rgl .rgl-cta-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}
.rgl .rgl-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rgl .rgl-btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--rgl-teal);
  color: var(--rgl-navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s, transform 0.1s;
}
.rgl .rgl-btn:hover {
  background: #3fd6bf;
  color: var(--rgl-navy);
}
.rgl .rgl-btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}
.rgl .rgl-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .rgl .rgl-feat-grid,
  .rgl .rgl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .rgl .rgl-toolbar {
    top: 0;
  }
  .rgl .rgl-toolbar-inner {
    border-radius: 16px;
    padding: 10px;
  }
  .rgl .rgl-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -10px;
    padding: 0 10px;
  }
  .rgl .rgl-chips::-webkit-scrollbar {
    display: none;
  }
  .rgl .rgl-chip {
    flex: none;
  }
  .rgl .rgl-az {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rgl .rgl-az a,
  .rgl .rgl-az span {
    flex: none;
    width: 28px;
  }
  .rgl .rgl-kbd {
    display: none;
  }
  .rgl .rgl-search-input {
    height: 48px;
    font-size: 16px;
  }
  .rgl .rgl-feat-grid,
  .rgl .rgl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rgl .rgl-h2 {
    font-size: 23px;
  }
  .rgl .rgl-letter {
    scroll-margin-top: 180px;
  }
  .rgl .rgl-cta {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rgl *,
  .rgl *::before,
  .rgl *::after {
    transition: none !important;
  }
}
