/* Shared website navigation: desktop dropdowns and mobile disclosures. */
.app-sidebar{z-index:50}

/* Sidebar brand masthead: one lockup for every page. These rules used to be
   scoped to .live-rates-page in ma-reference-live.css, so only the rate board
   received the centred full-width logo. They live here because
   ma-navigation.css is the final stylesheet every page loads, which makes it the
   single source of truth for the header. */
.app-sidebar .sidebar-brand-link{width:180px;justify-content:center;margin-inline:auto}
.sidebar-brand .reference-logo{width:180px;height:130px;background-position:center}
.sidebar-logo,.reference-logo{filter:drop-shadow(0 8px 18px rgba(77,12,6,.3))}
.sidebar-brand .mark{width:60px;height:60px;flex:0 0 60px;border-radius:16px;font-size:27px}
.sidebar-brand .name{font-size:16px}
.sidebar-brand .name small{font-size:11.5px}
@media(min-width:901px){
  .app-sidebar .sidebar-brand{grid-column:1/-1;justify-content:center;min-height:132px;padding-block:0}
}
@media(max-width:900px){
  .app-sidebar .sidebar-brand{min-height:92px}
}
.app-sidebar .ma-navigation{display:block;overflow:visible;padding:0;min-width:0}
.ma-menu,.ma-submenu{list-style:none;margin:0;padding:0}
.ma-menu{display:flex;align-items:stretch;gap:8px;width:100%}
.ma-menu>li{position:relative;margin:0}
.ma-menu-link,.ma-menu-trigger{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 20px;border:0;border-radius:0;background:transparent;color:#ffe4cd;font:600 13px/1.4 "Trebuchet MS",Verdana,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
.ma-menu-link:hover,.ma-menu-trigger:hover,.ma-menu-trigger[aria-expanded=true]{background:rgba(236,77,8,.2);color:#fff;text-decoration:none}
.ma-menu-link[aria-current=page],.ma-menu-trigger.is-current{color:#fff;box-shadow:inset 0 -3px #ec4d08}
.ma-menu-link:focus-visible,.ma-menu-trigger:focus-visible{outline:2px solid #ffe4cd;outline-offset:-3px}
.ma-chevron{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px;transition:transform .15s}
.ma-menu-trigger[aria-expanded=true] .ma-chevron{transform:rotate(225deg);margin-top:3px}
.ma-submenu{position:absolute;top:100%;left:0;min-width:235px;padding:7px;background:#fffdf8;border:1px solid #f1a166;border-radius:0 0 10px 10px;box-shadow:0 12px 26px rgba(77,12,6,.18);z-index:60}
.ma-submenu[hidden]{display:none}
.ma-submenu .ma-menu-link{min-height:44px;padding:11px 14px;border-radius:5px;font-size:13px;color:#8a5344}
.ma-submenu .ma-menu-link:hover{background:#ffe8c9;color:#a91d00}
.ma-submenu .ma-menu-link[aria-current=page]{background:#ffe8c9;color:#a91d00;box-shadow:none}
.ma-menu .ma-menu-account{margin-left:auto;align-self:center}
.ma-menu-account .ma-menu-link{min-height:36px;padding:8px 18px;background:var(--brand-field);color:#fffdf8;border-radius:6px}
.ma-menu-account .ma-menu-link:hover{background:#fff0dc;color:#4d0c06}
@media(min-width:901px){
  .app-sidebar .sidebar-foot{font-size:12px;line-height:1.7}
}
@media(max-width:1050px) and (min-width:901px){.ma-menu{gap:2px}.ma-menu-link,.ma-menu-trigger{padding-inline:14px}}
@media(max-width:900px){
  .app-sidebar .ma-navigation{overflow-y:auto;padding:8px 0}
  .ma-menu{display:block}
  .ma-menu-link,.ma-menu-trigger{width:100%;justify-content:space-between;min-height:48px;padding:13px 14px;font-size:14px;border-radius:6px;text-align:left;color:#ffe4cd}
  .ma-submenu{position:static;min-width:0;padding:2px 0 8px 14px;border:0;box-shadow:none;background:transparent}
  .ma-submenu .ma-menu-link{font-size:13px;white-space:normal;color:#ffe4cd}
  .ma-submenu .ma-menu-link:hover{background:rgba(236,77,8,.18);color:#fff}
  .ma-submenu .ma-menu-link[aria-current=page]{background:rgba(236,77,8,.22);color:#fff}
  .ma-menu .ma-menu-account{margin:14px 0 8px}
  .ma-menu-account .ma-menu-link{justify-content:center;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.ma-chevron{transition:none}}

/* ---------------------------------------------------------------------- */
/* Animated icons: header menu + footer menus                              */
/* ---------------------------------------------------------------------- */
.ma-menu-link .glyph,.ma-menu-trigger .glyph{display:grid;place-items:center;pointer-events:none}
.ma-menu-link .glyph{width:20px;height:20px;flex:0 0 20px}
.ma-menu-trigger .glyph{width:17px;height:17px;flex:0 0 17px}
.ma-submenu .ma-menu-link .glyph{width:16px;height:16px;flex:0 0 16px}
.ma-menu>li:nth-child(-n+5)>.ma-menu-link>.glyph,
.ma-menu>li:nth-child(-n+5)>.ma-menu-trigger>.glyph{
  transform-origin:50% 72%;
  animation:maHeaderIconLoop 4.2s cubic-bezier(.16,1,.3,1) infinite both;
}
.ma-menu>li:nth-child(2)>.ma-menu-trigger>.glyph{animation-delay:-.7s}
.ma-menu>li:nth-child(3)>.ma-menu-trigger>.glyph{animation-delay:-1.4s}
.ma-menu>li:nth-child(4)>.ma-menu-trigger>.glyph{animation-delay:-2.1s}
.ma-menu>li:nth-child(5)>.ma-menu-trigger>.glyph{animation-delay:-2.8s}
.ma-menu-link .glyph .nav-svg,.ma-menu-trigger .glyph .nav-svg{display:block;width:100%;height:100%;object-fit:contain;filter:brightness(0) invert(1) drop-shadow(0 2px 3px rgba(77,12,6,.3));transition:transform .28s cubic-bezier(.16,1,.3,1),filter .28s ease}
.ma-menu-account .ma-menu-link .glyph .nav-svg{filter:none}
.ma-menu-link:hover .glyph .nav-svg,.ma-menu-trigger:hover .glyph .nav-svg,.ma-menu-trigger[aria-expanded=true] .glyph .nav-svg{animation:maIconNudge .55s ease}
.ma-menu-link[aria-current=page] .glyph .nav-svg{filter:brightness(0) invert(1) drop-shadow(0 0 6px rgba(236,77,8,.9));animation:maIconGlow 2.6s ease-in-out infinite}
.ma-menu-trigger.is-current .glyph .nav-svg{filter:brightness(0) invert(1) drop-shadow(0 0 5px rgba(236,77,8,.78))}
.ma-menu-account .ma-menu-link:hover .glyph .nav-svg{animation:maIconGlowDark 2.6s ease-in-out infinite}
/* Dropdown panels are light, so icons carry the natural dark colour there. */
.ma-submenu .ma-menu-link .glyph .nav-svg{filter:none}
.ma-submenu .ma-menu-link:hover .glyph .nav-svg{filter:drop-shadow(0 0 4px rgba(241,161,102,.6))}
.ma-submenu .ma-menu-link[aria-current=page] .glyph .nav-svg{filter:none;animation:maIconGlowDark 2.6s ease-in-out infinite}
@keyframes maIconNudge{0%,100%{transform:translateX(0) rotate(0) scale(1)}30%{transform:translateX(2px) rotate(-8deg) scale(1.15)}65%{transform:translateX(-1px) rotate(6deg) scale(.95)}}
@keyframes maIconGlow{0%,100%{filter:brightness(0) invert(1) drop-shadow(0 0 3px rgba(236,77,8,.5))}50%{filter:brightness(0) invert(1) drop-shadow(0 0 10px rgba(236,77,8,1))}}
@keyframes maIconGlowDark{0%,100%{filter:drop-shadow(0 0 2px rgba(90,14,4,.4))}50%{filter:drop-shadow(0 0 7px rgba(90,14,4,.55))}}
@keyframes maHeaderIconLoop{
  0%,36%,100%{transform:translateY(0) rotate(0) scale(1)}
  10%{transform:translateY(-2px) rotate(-6deg) scale(1.08)}
  19%{transform:translateY(1px) rotate(4deg) scale(.98)}
  27%{transform:translateY(0) rotate(0) scale(1)}
}

.footer-acc .acc-body a{display:flex;align-items:center}
.foot-menu-svg{width:13px;height:13px;flex:0 0 13px;margin-right:8px;vertical-align:-2px;object-fit:contain;filter:brightness(0) invert(1);transition:transform .28s cubic-bezier(.16,1,.3,1),filter .28s ease}
:where(.app-footer.ma-icons-visible) .foot-menu-svg{transform-origin:50% 70%;animation:maFooterIconLoop 4.6s cubic-bezier(.16,1,.3,1) infinite both}
.footer-acc .acc-body a:nth-child(2) .foot-menu-svg{animation-delay:-.65s}
.footer-acc .acc-body a:nth-child(3) .foot-menu-svg{animation-delay:-1.3s}
.footer-acc .acc-body a:nth-child(4) .foot-menu-svg{animation-delay:-1.95s}
.footer-acc .acc-body a:nth-child(5) .foot-menu-svg{animation-delay:-2.6s}
.footer-acc .acc-body a:hover .foot-menu-svg{animation:maIconNudge .5s ease;filter:brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,217,184,.9))}

.footer-social a .social-svg{transition:transform .3s cubic-bezier(.16,1,.3,1),filter .3s ease}
:where(.app-footer.ma-icons-visible) .footer-social a .social-svg{animation:maSocialLoop 4.2s cubic-bezier(.16,1,.3,1) infinite both}
:where(.app-footer.ma-icons-visible) .footer-social a:nth-child(2) .social-svg{animation-delay:-2.1s}
.footer-social a:hover{border-color:var(--accent);box-shadow:0 8px 18px rgba(77,12,6,.24)}
.footer-social a:hover .social-svg{animation:maSocialNudge .55s cubic-bezier(.16,1,.3,1);filter:drop-shadow(0 4px 8px rgba(236,77,8,.6))}
@keyframes maSocialNudge{0%,100%{transform:translateY(0) scale(1)}45%{transform:translateY(-4px) scale(1.14) rotate(-5deg)}}
@keyframes maFooterIconLoop{
  0%,32%,100%{transform:translateX(0) rotate(0) scale(1)}
  9%{transform:translateX(2px) rotate(-8deg) scale(1.12)}
  18%{transform:translateX(-1px) rotate(5deg) scale(.98)}
  25%{transform:translateX(0) rotate(0) scale(1)}
}
@keyframes maSocialLoop{
  0%,38%,100%{transform:translateY(0) rotate(0) scale(1)}
  12%{transform:translateY(-3px) rotate(-5deg) scale(1.1)}
  23%{transform:translateY(0) rotate(3deg) scale(1)}
  30%{transform:translateY(0) rotate(0) scale(1)}
}
.ma-motion-paused .glyph,.ma-motion-paused .foot-menu-svg,.ma-motion-paused .social-svg{animation-play-state:paused!important}
@media(max-width:900px){.ma-menu-link .glyph,.ma-menu-trigger .glyph{flex:0 0 auto}.ma-menu-trigger .glyph .nav-svg,.ma-menu-link .glyph .nav-svg{width:18px;height:18px}.ma-menu>li:first-child>.ma-menu-link,.ma-submenu .ma-menu-link{justify-content:flex-start}.ma-submenu .ma-menu-link .glyph .nav-svg{filter:brightness(0) invert(1)}.ma-submenu .ma-menu-link[aria-current=page] .glyph .nav-svg{filter:brightness(0) invert(1);animation:maIconGlow 2.6s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){.ma-menu .glyph,.foot-menu-svg,.social-svg{animation:none!important}}
.sidebar-foot{
  display: none;
}
