/* regn public mobile hamburger menu - modern look (2026-11-30, operator request).
   LOOK ONLY: overrides the inline <style> in /header_m.php and /m/header_m.php.
   No markup, link, order or JS change. Loaded by one <link> line in each header file.
   REVERT: remove that <link> line (or empty this file).
   2026-11-30 v2: highlight follows the current page (.mm-active from /js/regn-menu-active.js); Home only by default. See /root/regn-backups/20261130-mobile-menu/REVERT.txt */

/* ── Hamburger button ── */
.mm-topbar .mm-burger {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e6fd0 0%, #0c4f9e 100%);
  box-shadow: 0 6px 16px -4px rgba(12, 79, 158, .45), inset 0 1px 0 rgba(255,255,255,.18);
  font-size: 19px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mm-topbar .mm-burger:hover { background: linear-gradient(135deg, #2a7be0 0%, #11599f 100%); filter: brightness(1.05); }
.mm-topbar .mm-burger:active { transform: scale(.94); box-shadow: 0 3px 8px -2px rgba(12, 79, 158, .45); }
.mm-topbar .mm-burger:focus-visible,
#rightMenu .mm-close-btn:focus-visible,
#rightMenu .mm-nav li a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* ── Backdrop ── */
#menuBackdrop {
  background: rgba(15, 23, 42, .48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: mmFade .25s ease both;
}
@keyframes mmFade { from { opacity: 0; } to { opacity: 1; } }

/* ── Drawer ── */
#rightMenu.w3-sidebar {
  width: min(86%, 330px) !important;
  background: #ffffff !important;
  border-right: none;
  border-radius: 0 22px 22px 0;
  box-shadow: 12px 0 40px -8px rgba(15, 23, 42, .35) !important;
  animation: none !important;            /* w3-animate-left would fight the slide transition */
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* ── Head: logo + close, brand accent on top ── */
#rightMenu .mm-head {
  padding: 16px 16px 14px 20px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  box-shadow: none;
  border-top-right-radius: 22px;
}
#rightMenu .mm-head::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #0c4f9e 0%, #1e6fd0 50%, #38bdf8 100%);
  border-top-right-radius: 22px;
}
#rightMenu .mm-head img { height: 44px; }
#rightMenu .mm-close-btn {
  width: 38px; height: 38px;
  background: #f1f5f9;
  color: #334155;
  font-size: 16px;
  transition: background .15s, color .15s, transform .25s;
}
#rightMenu .mm-close-btn:hover { background: #e2e8f0; color: #0f172a; transform: rotate(90deg); }

/* ── Nav list ── */
#rightMenu .mm-nav { padding: 12px 12px 28px; }
#rightMenu .mm-nav li { border-bottom: none; margin: 0 0 2px; }

#rightMenu .mm-nav li a {
  padding: 10px 12px !important;
  border-radius: 14px;
  color: #0f172a !important;
  font-size: 14.5px; font-weight: 600;
  letter-spacing: .1px;
  transition: background .15s, color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
#rightMenu .mm-nav li a:hover { background: #f1f6fd !important; color: #0c4f9e !important; }
#rightMenu .mm-nav li a:active { transform: scale(.985); background: #e6effb !important; }

/* icon tile */
#rightMenu .mm-nav li a .mm-icon {
  width: 38px; height: 38px;
  margin-right: 14px;
  border-radius: 11px;
  background: #eef4fc;
  color: #1e5ea8;
  font-size: 15px;
  transition: background .15s, color .15s;
}
#rightMenu .mm-nav li a:hover .mm-icon { background: #dce9fa; color: #0c4f9e; }
#rightMenu .mm-nav li a .mm-icon img { width: 20px; height: 20px; }
/* "Public Corner" icon (fa-user-friends) was blank on the live site (not in the loaded icon set): draw the
   same "users" glyph from whichever Font Awesome is loaded (FA6 all.min / FA5 kit). Display only. */
#rightMenu .mm-nav li a .mm-icon .fa-user-friends::before {
  content: "\f500";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
}

/* Hindi sub-label */
#rightMenu .mm-nav li a .mm-deva {
  font-size: 11px; font-weight: 400;
  color: #64748b; margin-top: 1px;
  letter-spacing: 0;
}

/* chevron */
#rightMenu .mm-nav li a .mm-arr {
  font-size: 11px; color: #a3b1c4;
  transition: transform .18s, color .18s;
}
#rightMenu .mm-nav li a:hover .mm-arr { color: #1e5ea8; transform: translateX(3px); }

/* Highlighted item = the CURRENT page (.mm-active, set by /js/regn-menu-active.js).
   If no item matches the page, Home is highlighted (default). */
#rightMenu:not(.mm-has-active) .mm-nav li a.mm-home-link,
#rightMenu .mm-nav li a.mm-active {
  background: linear-gradient(90deg, #e8f1fe 0%, #f4f8ff 100%) !important;
  color: #0c4f9e !important;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #1e6fd0;
}
#rightMenu:not(.mm-has-active) .mm-nav li a.mm-home-link .mm-icon,
#rightMenu .mm-nav li a.mm-active .mm-icon {
  background: linear-gradient(135deg, #1e6fd0 0%, #0c4f9e 100%);
  color: #fff;
  box-shadow: 0 4px 10px -3px rgba(12, 79, 158, .5);
}
#rightMenu .mm-nav li a.mm-active .mm-icon img { filter: brightness(0) invert(1); }
#rightMenu:not(.mm-has-active) .mm-nav li a.mm-home-link .mm-arr,
#rightMenu .mm-nav li a.mm-active .mm-arr { color: #1e6fd0; }
#rightMenu .mm-nav li a.mm-active .mm-deva { color: #3b6fb0; }
/* another page is active: Home looks like a normal item (cancels the header's own .mm-home-link colour) */
#rightMenu.mm-has-active .mm-nav li a.mm-home-link:not(.mm-active) { color: #0f172a !important; font-weight: 600; }

/* Login gets a little space under it, separating account links from site links */
#rightMenu .mm-nav li:nth-child(2) { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #e2e8f0; }

/* ── Items glide in when the drawer opens ── */
#rightMenu.mm-open .mm-nav li { animation: mmItemIn .38s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes mmItemIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
#rightMenu.mm-open .mm-nav li:nth-child(1)  { animation-delay: .04s; }
#rightMenu.mm-open .mm-nav li:nth-child(2)  { animation-delay: .07s; }
#rightMenu.mm-open .mm-nav li:nth-child(3)  { animation-delay: .10s; }
#rightMenu.mm-open .mm-nav li:nth-child(4)  { animation-delay: .13s; }
#rightMenu.mm-open .mm-nav li:nth-child(5)  { animation-delay: .16s; }
#rightMenu.mm-open .mm-nav li:nth-child(6)  { animation-delay: .19s; }
#rightMenu.mm-open .mm-nav li:nth-child(7)  { animation-delay: .22s; }
#rightMenu.mm-open .mm-nav li:nth-child(8)  { animation-delay: .25s; }
#rightMenu.mm-open .mm-nav li:nth-child(n+9) { animation-delay: .28s; }

/* ── Dark theme (GIGW a11y bar) ── */
html[data-theme="dark"] #rightMenu.w3-sidebar { background: #0f172a !important; }
html[data-theme="dark"] #rightMenu .mm-head { background: #0f172a; border-bottom-color: #1e293b; }
html[data-theme="dark"] #rightMenu .mm-close-btn { background: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] #rightMenu .mm-nav li a { color: #e5e7eb !important; }
html[data-theme="dark"] #rightMenu .mm-nav li a:hover { background: #1e293b !important; color: #93c5fd !important; }
html[data-theme="dark"] #rightMenu .mm-nav li a .mm-icon { background: #1e293b; color: #93c5fd; }
html[data-theme="dark"] #rightMenu .mm-nav li a .mm-icon:has(img) { background: #e2e8f0; }
html[data-theme="dark"] #rightMenu .mm-nav li a .mm-deva { color: #94a3b8; }
html[data-theme="dark"] #rightMenu:not(.mm-has-active) .mm-nav li a.mm-home-link,
html[data-theme="dark"] #rightMenu .mm-nav li a.mm-active { background: #172554 !important; color: #bfdbfe !important; }
html[data-theme="dark"] #rightMenu:not(.mm-has-active) .mm-nav li a.mm-home-link .mm-icon,
html[data-theme="dark"] #rightMenu .mm-nav li a.mm-active .mm-icon { background: linear-gradient(135deg, #1e6fd0 0%, #0c4f9e 100%); color: #fff; }
html[data-theme="dark"] #rightMenu.mm-has-active .mm-nav li a.mm-home-link:not(.mm-active) { color: #e5e7eb !important; }
html[data-theme="dark"] #rightMenu .mm-nav li:nth-child(2) { border-bottom-color: #1e293b; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  #rightMenu.w3-sidebar, #menuBackdrop, #rightMenu.mm-open .mm-nav li,
  #rightMenu .mm-close-btn, .mm-topbar .mm-burger { animation: none !important; transition: none !important; }
}
