/* TASK-210: page navigation and operation sidebar are independent. */
#navbar.navbar, #header .main-header {
 min-height:56px;background-color:#123b9a!important;
 background-image:url('../images/theme/gold-dust.svg'),radial-gradient(ellipse at 84% 8%,rgba(255,214,120,.19),transparent 58%);
 background-size:43.25px 34.25px,auto;
}
#navbar #navbar-container.mo-topbar, #header .main-header > .mo-topbar {
 display:flex;align-items:center;gap:12px;flex-wrap:nowrap;position:relative;
 width:100%;max-width:none;height:56px;min-height:56px;margin:0;padding:0 12px;box-sizing:border-box;
}
.mo-topbar::before,.mo-topbar::after {display:none!important;}
.mo-topbar .mo-logo {flex:none;display:flex;align-items:center;height:56px;margin:0!important;padding:0;}
.mo-topbar .mo-logo img {display:block;width:135px;height:45px;object-fit:contain;margin:0!important;border-radius:14px;}/* TASK-390: owner-chosen, close to the bar's 16px corner. */
/* TASK-465: new logo. Full wordmark on wide screens; square icon on tablets/phones (<=1024px) or when the bar is too full. */
.mo-topbar .mo-logo img.mo-logo-full {width:179px;height:30px;border-radius:0;}
.mo-topbar .mo-logo img.mo-logo-on-light, .mo-topbar .mo-logo img.mo-logo-mark {display:none;}
.mo-topbar .mo-logo img.mo-logo-mark {width:40px;height:40px;border-radius:10px;}
.mo-topbar.mo-logo-hidden > .mo-logo {display:flex;}
.mo-topbar.mo-logo-hidden .mo-logo img.mo-logo-full {display:none!important;}
.mo-topbar.mo-logo-hidden .mo-logo img.mo-logo-mark {display:block;}
@media (max-width:1024px) {
 .mo-topbar .mo-logo img.mo-logo-full {display:none!important;}
 .mo-topbar .mo-logo img.mo-logo-mark {display:block;}
}
.mo-topbar .mo-page-nav {display:flex;flex:none;align-items:center;margin:0 0 0 auto;padding:0;border:0;}
.mo-topbar .mo-actions {display:flex;align-items:center;flex:none;height:56px;margin:0 0 0 auto;gap:0;}
.mo-topbar .mo-actions > .dropdown {position:relative;flex:none;height:56px;}
.mo-topbar .mo-page-nav > a,.mo-topbar .mo-actions > .dropdown > a,.mo-topbar .mo-auth-toggle {
 display:flex;align-items:center;gap:8px;height:56px;box-sizing:border-box;padding:0 12px;margin:0;
 color:#fff!important;background:transparent;border:0;font-size:18px;line-height:22px;white-space:nowrap;text-decoration:none;
}
.mo-topbar .mo-page-nav > a:hover,.mo-topbar .mo-actions > .dropdown > a:hover,.mo-topbar .mo-auth-toggle:hover {background:#194b94;}
.mo-topbar .mo-account-name {display:inline;max-width:none;white-space:nowrap;}
.mo-topbar .mo-account-short-name {display:none;}
.mo-topbar.mo-account-short .mo-account-name {display:none;}
.mo-topbar.mo-account-short .mo-account-short-name {display:inline;}
.mo-topbar .mo-actions > .mo-notices > a.mo-notice-toggle,
.mo-topbar .mo-actions > .mo-notices > a.mo-notice-toggle:hover,
.mo-topbar .mo-actions > .mo-notices > a.mo-notice-toggle:focus,
.mo-topbar .mo-actions > .mo-notices > a.mo-notice-toggle:active,
.mo-topbar .mo-notices.open > a.mo-notice-toggle {background:transparent;}
.mo-topbar .mo-notice-toggle .fa-bell {color:#ffb45c;}
.mo-topbar .mo-notice-count {font-size:12px;line-height:18px;min-width:18px;padding:0 3px;text-align:center;border-radius:9px;background:#e60000;color:#fff;box-shadow:0 0 0 1px #fff;}
.mo-topbar .mo-page-toggle {display:none;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:0;margin:0;border:0;border-radius:4px;color:#fff;background:transparent;font-size:24px;cursor:pointer;}
/* TASK-466: compact H1 dashboard menu capsule (<992px): 26px M icon + tight Menu + down chevron; flips up and turns white when open. */
#navbar #menu-toggler.mo-sidebar-toggle {
 position:relative;flex:none;float:none;align-items:center;justify-content:center;
 width:auto;height:34px;min-height:34px;margin:0;padding:2px 8px 2px 3px;
 border:1px solid rgba(255,255,255,.32)!important;border-radius:10px!important;
 background:rgba(16,43,92,.42)!important;color:#fff!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.18)!important;
 line-height:1;text-shadow:none;cursor:pointer;
 transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
#navbar #menu-toggler.mo-sidebar-toggle::after {content:"";position:absolute;inset:-5px -4px;}
#navbar #menu-toggler.mo-sidebar-toggle:hover,
#navbar #menu-toggler.mo-sidebar-toggle:focus {background:rgba(16,43,92,.54)!important;color:#fff!important;}
#navbar #menu-toggler.mo-sidebar-toggle.display,
#navbar #menu-toggler.mo-sidebar-toggle.display:hover,
#navbar #menu-toggler.mo-sidebar-toggle.display:focus {
 background:#fff!important;color:#1A4570!important;border-color:#fff!important;
 box-shadow:0 4px 12px rgba(20,44,78,.22)!important;
}
#navbar #menu-toggler .mo-sidebar-mark {display:inline-flex;flex-direction:row;align-items:center;gap:5px;vertical-align:middle;}
#navbar #menu-toggler .mo-sidebar-logo {display:block;width:26px;height:26px;flex:none;border-radius:7px;margin:0!important;}
#navbar #menu-toggler .mo-sidebar-label {font-size:13px;font-weight:600;line-height:1;letter-spacing:-.01em;white-space:nowrap;}
#navbar #menu-toggler .mo-sidebar-chevron {display:block;width:12px;height:12px;flex:none;transition:transform .2s cubic-bezier(.25,.8,.25,1);}
#navbar #menu-toggler.mo-sidebar-toggle.display .mo-sidebar-chevron {transform:rotate(180deg);}
@media (max-width:991px) {
 #navbar #menu-toggler.mo-sidebar-toggle {display:inline-flex;}
 #navbar #menu-toggler ~ .mo-logo {display:none!important;}
}
@media (min-width:992px) {
 #navbar #menu-toggler.mo-sidebar-toggle {display:none!important;}
}
@media (prefers-reduced-motion:reduce) {
 #navbar #menu-toggler.mo-sidebar-toggle,
 #navbar #menu-toggler .mo-sidebar-chevron {transition:none;}
}
/* TASK-465: the logo no longer disappears when the bar is full; it switches to the square icon (rules above). */
.mo-topbar.mo-nav-collapsed .mo-page-toggle {display:flex;}
.mo-topbar.mo-nav-collapsed .mo-page-nav {display:none;position:absolute;top:56px;right:0;left:auto;width:max-content;max-width:100%;margin:0;background:#123b9a;box-shadow:0 4px 8px #0003;z-index:10002;}
#navbar.navbar-fixed-top ~ #main-container {padding-top:56px;}
#main-container > #sidebar.sidebar-fixed, #main-container #sidebar2.mailsout-context-nav {top:56px!important;}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav {display:flex;flex-direction:column;align-items:stretch;}
.mo-topbar .dropdown-menu {position:absolute;top:100%;left:auto;right:0;margin:0;min-width:175px;max-width:calc(100vw - 24px);padding:0;border:0;border-radius:0 0 4px 4px;background:#123b9a;color:#fff;z-index:10003;}
.mo-topbar .dropdown-menu > li > a {display:block;padding:10px 16px;color:#fff;white-space:normal;font-size:16px;line-height:24px;}
.mo-topbar .dropdown-menu > li > a:hover,.mo-topbar .dropdown-menu > li > a:focus {background:#194b94;color:#fff;}
.mo-topbar .dropdown-header {color:#fff;padding:10px 16px;font-size:14px;white-space:normal;overflow-wrap:anywhere;}
.mo-topbar .mo-notices .dropdown-menu {width:280px;}
.mo-topbar a:focus-visible,.mo-topbar button:focus-visible {outline:2px solid #fff;outline-offset:-3px;}
.mo-terms-link {display:inline-block;padding:8px 0;white-space:nowrap;}
#footer .footer-bottom {position:relative;}
#footer .footer-bottom .mo-terms-link {float:left;margin-left:12px;color:#fff;}
.footer .footer-content {position:relative;}
.footer .footer-content .mo-terms-link {position:absolute;left:12px;bottom:0;}
@media (max-width:600px) {
 .mo-topbar .mo-page-nav > a,.mo-topbar .mo-actions > .dropdown > a,.mo-topbar .mo-auth-toggle {padding-left:8px;padding-right:8px;}
 /* TASK-405: on phones the bell list opens from the bar's right edge, so it is never cut off on the left. */
 .mo-topbar .mo-actions > .mo-notices {position:static;}
 .footer .footer-content {padding-bottom:32px;}
}
/* TASK-408: Log In and Sign Up are two direct buttons; Sign Up uses the brand orange of the Get rates button. */
.mo-topbar .mo-actions > .mo-auth {display:flex;align-items:center;flex:none;gap:8px;margin-right:4px;}
.mo-topbar .mo-auth > a.mo-auth-toggle.mo-auth-signup {height:40px;padding:0 16px;border:1px solid #943b25;border-radius:10px;background:#a94b2f!important;color:#fff!important;font-weight:600;}
.mo-topbar .mo-auth > a.mo-auth-toggle.mo-auth-signup:hover,.mo-topbar .mo-auth > a.mo-auth-toggle.mo-auth-signup:focus {background:#92351f!important;color:#fff!important;}
/* On the homepage the Log In button is a 46px rounded box; Sign Up matches it. */
.mo-homepage .mo-topbar .mo-auth > a.mo-auth-toggle.mo-auth-signup {height:46px;border-radius:12px;}
@media (max-width:600px) {
 .mo-topbar .mo-actions > .mo-auth {gap:6px;margin-right:2px;}
 .mo-topbar .mo-auth > a.mo-auth-toggle.mo-auth-signup {height:36px;padding:0 11px;}
 .mo-homepage .mo-topbar .mo-auth > a.mo-auth-toggle,.mo-homepage .mo-topbar .mo-auth > a.mo-auth-toggle.mo-auth-signup {height:38px;border-radius:10px;}
}
/* TASK-409: the bell and the account button sit in the middle of the bar (the homepage bar is taller than their 56px box). */
.mo-topbar .mo-actions > .mo-notices,.mo-topbar .mo-actions > .mo-account {display:flex;align-items:center;}
/* TASK-409: tidier account menu - the name reads as a heading, icons line up, one divider under the name. */
.mo-topbar .mo-account .dropdown-menu {min-width:210px;padding:6px;}
.mo-topbar .mo-account .dropdown-menu > li.mo-full-account {margin:0 0 6px;padding:10px 12px 12px;border-bottom:1px solid rgba(91,118,149,.2);color:#1b344d!important;font-size:16px;font-weight:600;line-height:22px;}
.mo-topbar .mo-account .dropdown-menu > li.divider {display:none;}
.mo-topbar .mo-account .dropdown-menu > li > a {display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;font-size:15px;line-height:22px;}
.mo-topbar .mo-account .dropdown-menu > li > a > .fa {flex:none;width:18px;text-align:center;}
/* TASK-410: Home / Get Rates / How Ship / Contact sit in a capsule; a lighter block slides (with a little spring) to the link under the mouse and rests on the current page. Only when the script has set it up (.mo-pill-nav) and the links are in the bar, not the phone menu. */
.mo-topbar .mo-page-nav > .mo-nav-pill {display:none;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav {position:relative;padding:4px;border-radius:14px;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > .mo-nav-pill {display:block;position:absolute;top:4px;bottom:4px;left:0;width:0;border-radius:10px;background:rgba(255,255,255,.24);opacity:0;pointer-events:none;transition:transform .5s cubic-bezier(.34,1.4,.64,1),width .5s cubic-bezier(.34,1.4,.64,1),opacity .2s;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav.mo-pill-on > .mo-nav-pill {opacity:1;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav.mo-pill-jump > .mo-nav-pill {transition:opacity .2s;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > a {position:relative;z-index:1;height:40px;border-radius:10px;transition:color .25s;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > a:hover,.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > a:focus {background:transparent!important;}
/* Homepage: light bar, so a soft tinted capsule with a white block; links not under the block are a little lighter. */
.mo-homepage .mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav {background:rgba(27,52,77,.06);box-shadow:inset 0 0 0 1px rgba(27,52,77,.05);}
.mo-homepage .mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > .mo-nav-pill {background:#fff;box-shadow:0 1px 3px rgba(27,52,77,.14),0 0 0 1px rgba(27,52,77,.04);}
.mo-homepage .mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > a {height:38px;color:#4d6279!important;}
.mo-homepage .mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > a.mo-current,.mo-homepage .mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > a:hover,.mo-homepage .mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-pill-nav > a:focus-visible {color:#1b344d!important;}
/* Phone menu: links come in one after another; the current page is marked. */
@keyframes mo-nav-in {from {opacity:0;transform:translateY(-6px);} to {opacity:1;transform:none;}}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav > a {animation:mo-nav-in .3s cubic-bezier(.34,1.4,.64,1) both;}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav > a:nth-of-type(2) {animation-delay:.04s;}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav > a:nth-of-type(3) {animation-delay:.08s;}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav > a:nth-of-type(4) {animation-delay:.12s;}
/* TASK-410: the same capsule in the folded phone/tablet menu, sliding up and down to the touched link and resting on the current page. */
.mo-topbar.mo-nav-collapsed .mo-page-nav.mo-pill-nav {padding:6px;}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav.mo-pill-nav > .mo-nav-pill {display:block;position:absolute;top:0;left:0;width:0;height:0;border-radius:10px;background:rgba(255,255,255,.18);opacity:0;pointer-events:none;transition:transform .45s cubic-bezier(.34,1.4,.64,1),width .45s cubic-bezier(.34,1.4,.64,1),height .45s cubic-bezier(.34,1.4,.64,1),opacity .2s;}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav.mo-pill-nav.mo-pill-on > .mo-nav-pill {opacity:1;}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav.mo-pill-nav.mo-pill-jump > .mo-nav-pill {transition:opacity .2s;}
.mo-topbar.mo-nav-collapsed .mo-page-nav.mo-pill-nav > a {position:relative;z-index:1;border-radius:10px;}
.mo-topbar.mo-nav-collapsed .mo-page-nav.mo-pill-nav > a:hover,.mo-topbar.mo-nav-collapsed .mo-page-nav.mo-pill-nav > a:focus {background:transparent!important;}
@media (prefers-reduced-motion:reduce) {
 .mo-topbar .mo-page-nav.mo-pill-nav > .mo-nav-pill {transition:opacity .2s!important;}
 .mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav > a {animation:none;}
}
/* TASK-437: Tools drop-down. Desktop: shows on hover or keyboard focus, under the right end of the page links.
   Folded phone/tablet menu: the five tools are listed under Tools. */
.mo-topbar .mo-page-nav .mo-tools-link .fa-caret-down {margin-left:4px;font-size:12px;opacity:.8;}
.mo-topbar .mo-page-nav > .mo-tools-menu {display:none;}
/* r2: opened by script (mo-tools-open) with a short close delay, placed right under Tools with no gap; keyboard focus still opens it. */
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu {position:absolute;top:100%;left:0;z-index:10003;width:290px;padding-top:8px;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav.mo-tools-open > .mo-tools-menu,
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-link:focus-visible + .mo-tools-menu,
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu:focus-within {display:block;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu::before {content:"";display:block;position:absolute;inset:8px 0 0;background:#fff;border:1px solid #dbe5ef;border-radius:14px;box-shadow:0 16px 36px rgba(22,55,91,.18);}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu > a {position:relative;display:block;margin:0 8px;padding:9px 12px;border-radius:10px;color:#173655!important;font-size:15px;font-weight:600;line-height:1.3;text-decoration:none!important;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu > a:first-child {margin-top:8px;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu > a:last-child {margin-bottom:8px;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu > a span {display:block;font-size:12px;font-weight:400;color:#50647a;}
.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu > a:hover,.mo-topbar:not(.mo-nav-collapsed) .mo-page-nav > .mo-tools-menu > a:focus-visible {background:#edf4fc;}
.mo-topbar.mo-nav-collapsed.mo-menu-open .mo-page-nav > .mo-tools-menu {display:flex;flex-direction:column;}
.mo-topbar.mo-nav-collapsed .mo-page-nav > .mo-tools-menu > a {display:block;padding:8px 16px 8px 30px;color:#fff!important;font-size:14px;font-weight:500;text-decoration:none!important;border-radius:10px;}
.mo-topbar.mo-nav-collapsed .mo-page-nav > .mo-tools-menu > a:hover {background:rgba(255,255,255,.14);}
.mo-topbar.mo-nav-collapsed .mo-page-nav > .mo-tools-menu > a span {display:none;}
