/* Regulus mega menu (light theme) - responsive */
:root {
  --rmm-surface: #ffffff;
  --rmm-panel: #f2f5fa;
  --rmm-ink: #172033;
  --rmm-muted: #647087;
  --rmm-line: #d9e0ea;
  --rmm-brand: #2563eb;
}

/* ---------- header layout: logo | centered nav | buttons ---------- */
.ul-2-header-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ul-2-header-logo-container {
  flex: 0 0 auto;
}

.ul-2-header-bottom-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ul-header-nav-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.ul-header-nav-wrapper > .to-go-to-sidebar-in-mobile {
  width: 100%;
}

.ul-2-header-bottom-btns {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- desktop nav ---------- */
.rmm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
}

.rmm-item {
  position: relative;
}

.rmm-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--rmm-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}

.rmm-trigger:hover,
.rmm-trigger[aria-expanded="true"] {
  background: var(--rmm-panel);
  color: var(--rmm-brand);
}

.rmm-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}

.rmm-trigger[aria-expanded="true"] .rmm-caret {
  transform: rotate(-135deg) translate(-2px, -2px);
}

/* ---------- panel ---------- */
.rmm-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 12px;
  z-index: 200;
}

.rmm-item.rmm-align-right .rmm-panel {
  left: auto;
  right: 0;
}

.rmm-item.rmm-open .rmm-panel {
  display: block;
}

.rmm-inner {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--rmm-surface);
  border: 1px solid var(--rmm-line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, .15);
  max-width: calc(100vw - 32px);
}

/* featured side panel */
.rmm-featured {
  flex: 0 0 220px;
  width: 220px;
  padding: 24px 22px;
  background: var(--rmm-panel);
  border-right: 1px solid var(--rmm-line);
}

.rmm-featured-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--rmm-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rmm-featured-title {
  margin: 0 0 14px;
  color: var(--rmm-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.rmm-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rmm-brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.rmm-featured-cta:hover {
  text-decoration: underline;
}

.rmm-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 22px 28px;
  padding: 24px 26px;
}

.rmm-grid.rmm-cols-1 {
  grid-template-columns: minmax(210px, 1fr);
}

.rmm-grid.rmm-cols-3 {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.rmm-grid.rmm-cols-4 {
  grid-template-columns: repeat(2, minmax(170px, 1fr));
}

@media screen and (min-width: 1400px) {
  .rmm-grid.rmm-cols-4 {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }
}

.rmm-col h3 {
  margin: 0 0 12px;
  color: var(--rmm-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rmm-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rmm-col li + li {
  margin-top: 2px;
}

.rmm-col a {
  display: block;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 6px;
  color: var(--rmm-ink);
  font-size: 14px;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}

.rmm-col a:hover {
  background: rgba(37, 99, 235, .07);
  color: var(--rmm-brand);
}

/* ---------- tighten spacing on smaller desktops ---------- */
@media screen and (max-width: 1399px) {
  .rmm-trigger {
    font-size: 13px;
    padding: 11px 9px;
  }
}

/* ---------- below 1200px: use the sidebar instead of the top nav ---------- */
@media screen and (max-width: 1199px) {
  .ul-header-nav-wrapper {
    display: none;
  }

  .ul-2-header-bottom-right {
    justify-content: flex-end;
  }

  .ul-header-sidebar-opener {
    display: flex !important;
  }
}

/* ---------- mobile / sidebar: accordion ---------- */
@media screen and (max-width: 991px) {
  .ul-2-header-container {
    flex-wrap: nowrap;
  }

  .ul-2-header-logo-container img {
    max-width: 130px;
    height: auto;
  }
}

.ul-sidebar .rmm-nav,
.ul-sidebar-header-nav-wrapper .rmm-nav {
  display: block;
}

.ul-sidebar .rmm-item,
.ul-sidebar-header-nav-wrapper .rmm-item {
  border-bottom: 1px solid var(--rmm-line);
}

.ul-sidebar .rmm-trigger,
.ul-sidebar-header-nav-wrapper .rmm-trigger {
  width: 100%;
  justify-content: space-between;
  padding: 14px 4px;
  border-radius: 0;
}

.ul-sidebar .rmm-panel,
.ul-sidebar-header-nav-wrapper .rmm-panel {
  position: static;
  padding-top: 0;
}

.ul-sidebar .rmm-inner,
.ul-sidebar-header-nav-wrapper .rmm-inner {
  display: block;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ul-sidebar .rmm-featured,
.ul-sidebar-header-nav-wrapper .rmm-featured {
  width: auto;
  flex: none;
  margin: 8px 0 4px;
  padding: 14px 16px;
  border-right: 0;
  border-radius: 10px;
}

.ul-sidebar .rmm-grid,
.ul-sidebar-header-nav-wrapper .rmm-grid {
  grid-template-columns: 1fr !important;
  gap: 16px;
  padding: 4px 8px 16px;
}