/* Shared website navigation: desktop dropdowns and mobile disclosures. */
.app-sidebar{z-index:50}
.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:#f8dda0;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(232,191,98,.18);color:#fff;text-decoration:none}
.ma-menu-link[aria-current=page],.ma-menu-trigger.is-current{color:#fff;box-shadow:inset 0 -3px #e8bf62}
.ma-menu-link:focus-visible,.ma-menu-trigger:focus-visible{outline:2px solid #e8bf62;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 #e2cfa2;border-radius:0 0 10px 10px;box-shadow:0 12px 26px rgba(3,23,36,.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:#52677a}
.ma-submenu .ma-menu-link:hover{background:#f6edd3;color:#062235}
.ma-submenu .ma-menu-link[aria-current=page]{background:#f6edd3;color:#062235;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:#e8bf62;color:#062235;border-radius:6px}
.ma-menu-account .ma-menu-link:hover{background:#f8dda0;color:#031724}
@media(min-width:901px){
  .app-sidebar .sidebar-brand-link{width:370px}
  .app-sidebar .sidebar-brand{min-height:124px;padding:14px 0}
  .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:flex-start;min-height:48px;padding:13px 14px;font-size:14px;border-radius:6px;text-align:left;color:#f8dda0}
  .ma-menu-trigger .ma-chevron{margin-left:auto;flex-shrink:0}
  .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:#cdd9e2}
  .ma-submenu .ma-menu-link:hover{background:rgba(232,191,98,.16);color:#fff}
  .ma-submenu .ma-menu-link[aria-current=page]{background:rgba(232,191,98,.2);color:#fff}
  .ma-menu .ma-menu-account{margin:14px 0 8px}
  .ma-menu-account .ma-menu-link{justify-content:flex-start;min-height:44px;padding-inline:14px}
}
@media(prefers-reduced-motion:reduce){.ma-chevron{transition:none}}

/* Center the larger mobile identity above the market ticker and trade action. */
@media(max-width:900px){
  .app-main .app-topbar{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 44px;
    grid-template-rows:76px 44px;
    column-gap:0;
    row-gap:0;
    height:auto;
    min-height:120px;
    padding:0 max(12px,env(safe-area-inset-left)) 8px max(12px,env(safe-area-inset-right));
  }
  .app-topbar .topbar-toggle{grid-column:1;grid-row:1;width:44px;height:44px}
  .app-topbar .mobile-brand{
    grid-column:2;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:center;
    justify-self:center;
    gap:10px;
    width:auto;
    height:auto;
    min-width:0;
    overflow:visible;
    color:#062235;
    text-decoration:none;
  }
  .app-topbar .mobile-brand .reference-mark{
    width:clamp(70px,8vw,72px);
    height:clamp(70px,8vw,72px);
    max-width:none;
    flex-shrink:0;
    aspect-ratio:auto;
    background-size:contain;
    background-position:center;
  }
  .mobile-brand-name{font:700 clamp(22px,5.8vw,30px)/1.15 Georgia,'Times New Roman',serif;white-space:nowrap}
  .live-rates-page .mobile-brand{color:#f8dda0}
  .app-topbar .ticker{grid-column:1 / -1;grid-row:2;min-width:0;margin-right:104px}
  .app-topbar .topbar-actions{grid-column:1 / -1;grid-row:2;justify-self:end}
  .app-topbar .topbar-actions .pill-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .app-topbar .mobile-brand:focus-visible{outline:2px solid #c99734;outline-offset:4px}
}

/* ---------------------------------------------------------------------- */
/* 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-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(3,23,36,.45));transition:transform .28s cubic-bezier(.34,1.56,.64,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(232,191,98,.95));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(232,191,98,.85))}
.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(201,151,52,.65))}
.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(232,191,98,.55))}50%{filter:brightness(0) invert(1) drop-shadow(0 0 10px rgba(232,191,98,1))}}
@keyframes maIconGlowDark{0%,100%{filter:drop-shadow(0 0 2px rgba(6,34,53,.4))}50%{filter:drop-shadow(0 0 7px rgba(6,34,53,.85))}}

.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(.34,1.56,.64,1),filter .28s ease}
.footer-acc .acc-body a:hover .foot-menu-svg{animation:maIconNudge .5s ease;filter:brightness(0) invert(1) drop-shadow(0 0 5px rgba(248,221,160,.9))}

.footer-social a .social-svg{transition:transform .3s cubic-bezier(.34,1.56,.64,1),filter .3s ease}
.footer-social a:hover{border-color:var(--accent);box-shadow:0 8px 18px rgba(3,23,36,.35)}
.footer-social a:hover .social-svg{animation:maSocialBounce .55s ease;filter:drop-shadow(0 4px 8px rgba(232,191,98,.7))}
@keyframes maSocialBounce{0%,100%{transform:translateY(0) scale(1)}40%{transform:translateY(-4px) scale(1.18) rotate(-6deg)}70%{transform:translateY(1px) scale(.95)}}
@media(max-width:900px){.ma-menu-link .glyph,.ma-menu-trigger .glyph{width:20px;height:20px;flex:0 0 20px}.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}}
