/* Rumi Dental public navigation v4.1 (2026-11-19)
   Independent, cache-busted layout layer for the v4 grouped mega menus.
   Source: default Rumi public theme; no Ocean Blue or admin-only content.
   This intentionally overrides older v3 mega-menu grid rules. */
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-mega.rf-mega--services,
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-mega.rf-mega--solutions {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  color:var(--rf-ink,#111c39);
  background:#fff;
  border:1px solid #e0e7f5;
  border-radius:0 0 20px 20px;
  box-shadow:0 24px 56px rgba(9,25,71,.18);
  z-index:110;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#bfcae4 transparent;
}
/* Override stale v3 layout: its generic .rf-mega assumes a 250px sidebar. */
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-nav-dropdown>.rf-mega.rf-mega--services {
  display:none;
  grid-template-columns:none;
  gap:0;
  padding:0;
  overflow-x:hidden;
  overflow-y:auto;
  max-height:calc(100vh - 145px);
  max-height:calc(100dvh - 145px);
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-nav-dropdown.is-open>.rf-mega.rf-mega--services {
  display:flex !important;
  flex-direction:column;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top {
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  flex:0 0 auto;
  padding:19px 24px 17px;
  background:linear-gradient(110deg,#f1f5ff 0%,#fff 100%);
  border-bottom:1px solid #e3e9f6;
  min-width:0;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top>div {min-width:0;max-width:700px}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top .rf-mega-eyebrow {
  display:block;font-size:10px;letter-spacing:.12em;font-weight:850;color:var(--rf-primary,#0a38fa);
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top h2 {
  display:block;max-width:none;margin:3px 0 5px;
  padding:0;font:850 22px/1.18 "DM Sans",system-ui,sans-serif;
  letter-spacing:-.045em;color:var(--rf-ink,#111c39);
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top p {
  margin:0;font:500 11.5px/1.55 "DM Sans",system-ui,sans-serif;color:var(--rf-muted,#65708b);
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top-link {
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:11px 15px;min-height:38px;max-width:100%;
  border:0;border-radius:10px;
  background:var(--rf-primary,#0a38fa);color:#fff;text-decoration:none;
  font:800 11px/1.2 "DM Sans",system-ui,sans-serif;white-space:nowrap;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top-link:hover,
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top-link:focus-visible {background:#0627c7;color:#fff}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  align-items:stretch;gap:12px;
  padding:18px 24px 19px;
  min-width:0;max-width:100%;margin:0;
  background:#fff;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group {
  box-sizing:border-box;display:block;min-width:0;
  padding:13px 15px 12px;margin:0;
  border-radius:14px;border:1px solid #e2e8f4;background:#fff;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group h3 {
  display:flex;align-items:center;gap:9px;
  margin:0 0 8px;padding:0;
  font:850 12px/1.35 "DM Sans",system-ui,sans-serif;
  letter-spacing:-.01em;color:var(--rf-ink,#111c39);
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group h3 span {
  width:31px;height:31px;flex:none;display:grid;place-items:center;
  border-radius:9px;background:#edf2ff;color:var(--rf-primary,#0a38fa);
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group ul {
  display:block;list-style:none;list-style-type:none;
  margin:0;padding:0;min-width:0;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group li {
  display:block;margin:0;padding:0;list-style:none;list-style-type:none;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group li::marker {content:none}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group a {
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  margin:0;padding:6px 5px;min-height:27px;
  border-radius:7px;text-decoration:none;
  color:#40506d;font:650 11px/1.35 "DM Sans",system-ui,sans-serif;
  white-space:normal;overflow-wrap:anywhere;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group a svg {flex:none;color:#8c9fc9;opacity:.8}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group a:hover,
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group a:focus-visible {background:#eef3ff;color:var(--rf-primary,#0a38fa)}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-bottom {
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin:0;padding:12px 24px;border-top:1px solid #e3e9f6;
  background:#f7f9fe;color:#65748e;font:500 10.5px/1.45 "DM Sans",system-ui,sans-serif;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-bottom>span,
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-bottom a {display:flex;align-items:center;gap:7px}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-bottom a {
  flex:none;color:var(--rf-primary,#0a38fa);font-weight:800;text-decoration:none;
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-bottom svg {flex:none;color:var(--rf-primary,#0a38fa)}
/* Ensure the role-based menu also has a stable layout if the v4 CSS is stale. */
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-nav-dropdown>.rf-mega.rf-mega--solutions {
  display:none;grid-template-columns:252px minmax(0,1fr);gap:0;padding:0;
  overflow:auto;max-height:calc(100vh - 145px);max-height:calc(100dvh - 145px);
}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-nav-dropdown.is-open>.rf-mega.rf-mega--solutions {display:grid !important}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-solutions-side {min-width:0;background:#f1f5ff;padding:22px;border-inline-end:1px solid #e3e9f6}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-solutions-side h2 {font:850 25px/1.1 "DM Sans",system-ui,sans-serif;color:var(--rf-ink,#111c39);letter-spacing:-.05em;margin:15px 0 10px}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-solutions-side p {font-size:11px;line-height:1.6;color:#64718e}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-role-tabs {display:grid;gap:5px}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-role-tabs button {display:flex;align-items:center;gap:8px;width:100%;background:transparent;border-radius:9px;padding:10px 12px;font-size:11.5px;text-align:start}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-role-tabs button[aria-selected="true"] {background:#fff;color:var(--rf-primary,#0a38fa)}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-solutions-right {min-width:0;padding:23px 26px 15px}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-role-panel[hidden] {display:none !important}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-role-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-role-group ul {list-style:none;margin:0;padding:0}
/* 1120px is the public header's actual mobile-navigation breakpoint. */
@media (max-width:1240px) {
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;padding:14px;gap:9px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top {align-items:flex-start;padding:16px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top h2 {font-size:19px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-bottom {padding:11px 14px}
}
@media (max-width:1120px) {
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-nav-dropdown>.rf-mega.rf-mega--services,
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-nav-dropdown>.rf-mega.rf-mega--solutions {
    position:static !important;inset:auto !important;width:100%;max-width:100%;
    max-height:none !important;overflow:visible !important;
    border-radius:14px;box-shadow:none;
  }
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-nav-dropdown.is-open>.rf-mega.rf-mega--solutions {display:block !important}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-solutions-side {padding:15px;border-inline-end:0;border-bottom:1px solid #e3e9f6}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-solutions-side h2 {font-size:19px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-solutions-right {padding:15px}
}
@media (max-width:620px) {
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top {display:block;padding:15px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top h2 {font-size:18px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-top-link {margin-top:12px;white-space:normal;width:max-content}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-grid {grid-template-columns:minmax(0,1fr) !important;padding:11px;gap:8px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-service-menu-group {padding:12px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-services-bottom {flex-direction:column;align-items:flex-start;gap:8px;padding:11px}
  body.rp-public[data-public-theme="rumi"] .rp-platform-header.rf-header .rf-role-columns {grid-template-columns:minmax(0,1fr)}
}
