/* Top menu, account menu, mobile menu and quick search (layout.cfm). Brand blue #015A84. */

/* Carried over from the retired newsite/2013.css */
.small { font-size: .8rem; }

.nv-navbar { border-radius: 8px; transition: box-shadow .2s, background-color .2s, border-radius .2s; }
.nv-logo img { width: 167px; height: 42px; max-width: none; transition: width .2s, height .2s; }
.nv-navbar .uk-navbar-nav > li > a { position: relative; gap: 6px; }
.nv-caret { font-size: 10px; opacity: .7; }
.nv-navbar .uk-navbar-nav > li.uk-active > a,
.nv-navbar .uk-navbar-nav > li > a[aria-expanded="true"] { color: #015A84; }
.nv-navbar .uk-navbar-nav > li.uk-active > a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: #015A84; }

/* Status dots */
.nv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 2px; flex: none; }
.nv-dot-blue { background: #015A84; }
.nv-dot-amber { background: #e8a13a; }

/* Right-hand items */
.nv-right .uk-navbar-item { padding-left: 6px; padding-right: 6px; }
.nv-right .nv-tight { padding-left: 2px; padding-right: 2px; }
.nv-right > .uk-navbar-item:last-child { padding-right: 15px; }
.nv-search { display: inline-flex; align-items: center; gap: 10px; width: 240px; height: 40px; padding: 0 12px; border: 1px solid #d0d4da; border-radius: 500px; background: #fff; color: #666; font: inherit; font-size: 14px; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; text-transform: none; }
.nv-search:hover { border-color: #015A84; color: #015A84; }
.nv-search > span { flex: 1; }
.nv-search-block { width: 100%; margin: 4px 0 10px; }
.nv-kbd { display: inline-block; font: inherit; font-size: 12px; line-height: 1.4; border: 1px solid #d0d4da; border-radius: 4px; padding: 0 6px; color: #666; background: #fff; }
.nv-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #444; font-size: 18px; cursor: pointer; text-decoration: none; }
.nv-icon:hover, .nv-icon[aria-expanded="true"] { background: #eceef1; color: #015A84; text-decoration: none; }
.nv-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #015A84; color: #fff; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em; cursor: pointer; box-shadow: 0 0 0 3px #f8f8f8, 0 0 0 5px #015A84; }
.nv-avatar:hover, .nv-avatar[aria-expanded="true"] { background: #01496b; }
.nv-avatar-lg { width: 44px; height: 44px; box-shadow: none; cursor: default; }
.nv-avatar-inv { background: #fff; color: #015A84; box-shadow: none; cursor: default; }

/* Dropdowns */
.nv-drop { padding: 10px; border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.16); background: #fff; }
.uk-navbar-dropdown.nv-drop { width: 250px; }
.uk-navbar-dropdown.nv-drop-wide { width: 340px; }
.nv-drop-account { width: 300px; }
.nv-drop-translate { width: 260px; }
.nv-drop-title { margin: 4px 8px 10px; font-size: .875rem; font-weight: 600; color: #333; }
.nv-list > li > a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 6px; color: #333; font-size: .95rem; text-transform: none; }
.nv-list > li > a:hover, .nv-list > li.uk-active > a { background: #f2f6f8; color: #015A84; }
.nv-list > li > a > i { width: 18px; text-align: center; color: #015A84; flex: none; }
.nv-list .uk-nav-header { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #777; }
.nv-list .uk-nav-divider { margin: 6px 4px; border-top-color: #eef0f2; }
.nv-grow { flex: 1; min-width: 0; }
.nv-count { font-size: 13px; color: #777; }
.nv-new { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #CB2A48; color: #fff; border-radius: 3px; padding: 1px 6px; }
.nv-state { font-size: 13px; font-weight: 600; color: #8a929c; }
.nv-state.is-on { color: #146c3a; }
.nv-list > li > a.nv-logout, .nv-list > li > a.nv-logout > i { color: #CB2A48; }
.nv-who { display: flex; align-items: center; gap: 12px; padding: 8px 10px 6px; }
.nv-who-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: #666; }
.nv-who-text strong { font-size: 15px; color: #333; }
.nv-who-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Slim bar once the page scrolls (uk-sticky adds nv-compact) */
.nv-navbar.nv-compact { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.1); border-radius: 0 0 8px 8px; }
.nv-navbar.nv-compact .uk-navbar-nav > li > a,
.nv-navbar.nv-compact .uk-navbar-item,
.nv-navbar.nv-compact .uk-navbar-toggle { min-height: 56px; }
.nv-navbar.nv-compact .nv-logo img { width: 134px; height: 34px; }
.nv-navbar.nv-compact .nv-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #015A84; }

/* Mobile menu */
.uk-offcanvas-bar.nv-off { padding: 0; background: #fff; color: #333; width: 300px; }
.nv-off-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: #015A84; color: #fff; }
.nv-off-head .nv-who-text, .nv-off-head .nv-who-text strong { color: #fff; }
.nv-off-head .nv-who-text span { opacity: .85; }
.nv-off-close { margin-left: auto; color: #fff; }
.nv-off-body { padding: 10px; }
.nv-off .uk-nav-default > li > a { color: #333; }
.nv-off .nv-sub > a { padding-left: 42px; font-size: .9rem; }
.nv-off .uk-offcanvas-close { color: #333; }
.nv-translate-mobile { padding: 4px 12px 10px 42px; }

/* Quick search */
.nv-search-modal { padding-top: 90px; }
.nv-search-dialog { width: 720px; max-width: calc(100% - 32px); padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.nv-search-head { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 18px; border-bottom: 1px solid #eef0f2; color: #015A84; font-size: 18px; }
.nv-search-head input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font: inherit; font-size: 18px; color: #1d2733; background: transparent; }
.nv-results { max-height: min(60vh, 560px); overflow-y: auto; padding: 8px 10px; }
.nv-results.is-loading { opacity: .6; }
.nv-hint, .nv-none { margin: 0; padding: 8px 12px 10px 42px; font-size: 13px; color: #777; }
.nv-hint { padding-left: 12px; }
.nv-res-label { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.nv-res { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px; border-radius: 6px; color: #333; text-decoration: none; }
.nv-res:hover, .nv-res.is-active { background: #f2f6f8; color: #015A84; text-decoration: none; }
.nv-res > i { width: 18px; margin-top: 3px; text-align: center; color: #015A84; flex: none; }
.nv-res-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nv-res-text strong { font-weight: 600; }
.nv-res-text span { font-size: 13px; color: #666; }
.nv-res-all { padding-left: 42px; font-size: 13px; font-weight: 600; color: #015A84; }
.nv-search-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid #eef0f2; background: #fafbfc; font-size: 12px; color: #666; }
@media (max-width: 639px) { .nv-search-modal { padding-top: 16px; } }

/* Backup reminders switch in the account menu */
.nv-switch-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: #333; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.nv-switch-row:hover { background: #f2f6f8; color: #015A84; }
.nv-switch-row > i { width: 18px; text-align: center; color: #015A84; flex: none; }
.nv-switch-row:disabled { opacity: .6; cursor: progress; }
.nv-toggle { flex: none; position: relative; width: 36px; height: 20px; border-radius: 10px; background: #c4cad1; transition: background .15s; }
.nv-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.nv-toggle.is-on { background: #015A84; }
.nv-toggle.is-on::after { left: 19px; }
.nv-switch-row:focus-visible { outline: 2px solid #015A84; outline-offset: -2px; }

/* Link on the right of the logo-only bar (layout.cfm barLink) */
.nv-barlink { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: #015A84; text-transform: none; }
.nv-barlink:hover { color: #01496b; text-decoration: none; }

/* Keep the menu and its dropdowns above sticky page content, such as the University video player */
.nv-navbar { position: relative; z-index: 1010; }
.nv-navbar.uk-sticky, .nv-navbar.uk-sticky-fixed, .nv-navbar.uk-active { z-index: 1010; }
