/* NeviLex: the header. See header.php / header.js. Only the theme's header-builder header is touched. */
html.nvxh-on { --nvxh-bar: #1E396B; --nvxh-ink: #1c2633; --nvxh-mut: #5f6f82; --nvxh-line: #dfe5ee; --nvxh-mint: #7fd3ab; }

/* ---------- Wide screens ---------- */
@media (min-width: 1025px) {
	html.nvxh-on header.shfb-desktop .shfb-main_header_row { background: var(--nvxh-bar) !important; padding-top: 0 !important; padding-bottom: 0 !important; }
	html.nvxh-on header.shfb-desktop .shfb-main_header_row .shfb-row { display: flex !important; align-items: stretch; gap: 0; min-height: 76px; }
	html.nvxh-on header.shfb-desktop .shfb-main_header_row .shfb-column { display: flex; align-items: stretch; }
	html.nvxh-on header.shfb-desktop .shfb-main_header_row .shfb-column-1 { flex: none; }
	html.nvxh-on header.shfb-desktop .shfb-main_header_row .shfb-column-2 { flex: 0 1 auto; justify-content: flex-start; }
	html.nvxh-on header.shfb-desktop .shfb-builder-item { display: flex; align-items: center; }

	/* Logo and the section switcher */
	html.nvxh-on header.shfb-desktop .site-branding { display: flex; align-items: center; gap: 12px; margin-inline-end: 22px; position: relative; }
	/* The theme gives the logo a fixed width; keep its own proportions instead. */
	html.nvxh-on header.shfb-desktop .site-branding .site-logo { width: auto !important; height: 50px !important; max-height: none !important; max-width: none !important; object-fit: contain; }
	html.nvxh-on header.shfb-desktop .site-branding > a { flex: none; display: block; line-height: 0; }
	.nvxh-sw { position: relative; }
	.nvxh-sw-btn { width: 30px; height: 30px; padding: 0 !important; min-height: 0 !important; border-radius: 50% !important; border: 2px solid rgba(255, 255, 255, .75) !important; background: transparent !important; color: #fff !important; display: grid; place-items: center; cursor: pointer; box-shadow: none !important; transition: background .15s, transform .2s; }
	.nvxh-sw-btn:hover { background: rgba(255, 255, 255, .12) !important; }
	.nvxh-sw.is-open .nvxh-sw-btn { background: #fff !important; color: var(--nvxh-bar) !important; }
	.nvxh-sw.is-open .nvxh-sw-btn .nvxh-chev { transform: rotate(180deg); }
	.nvxh-sw-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
	.nvxh-sw-panel { position: absolute; top: calc(100% + 28px); right: -14px; z-index: 1000; width: 300px; padding: 8px; background: #fff; border: 1px solid var(--nvxh-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(14, 30, 60, .18); animation: nvxh-pop .18s cubic-bezier(.2, .7, .3, 1) both; text-align: right; }
	.nvxh-sw-panel[hidden] { display: none; }
	.nvxh-sw-panel a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--nvxh-ink) !important; text-decoration: none !important; line-height: 1.6; }
	.nvxh-sw-panel a b { display: block; font-weight: 400; font-size: 16px; }
	.nvxh-sw-panel a small { display: block; font-size: 12px; color: var(--nvxh-mut); }
	.nvxh-sw-panel a:hover, .nvxh-sw-panel a:focus-visible { background: #eef3f9; outline: none; }
	.nvxh-sw-panel a.is-on { background: var(--nvxh-bar); color: #fff !important; }
	.nvxh-sw-panel a.is-on small { color: #c9d6ee; }
	.nvxh-sw-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #eef3f9; color: var(--nvxh-bar); display: grid; place-items: center; }
	.nvxh-sw-panel a.is-on .nvxh-sw-ic { background: rgba(255, 255, 255, .15); color: #fff; }

	/* Menu items: bigger, an arrow on those with a dropdown, a line under the section you are in */
	html.nvxh-on header.shfb-desktop #site-navigation, html.nvxh-on header.shfb-desktop #site-navigation > div, html.nvxh-on header.shfb-desktop #site-navigation .menu { display: flex; align-items: stretch; height: 100%; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li { position: relative; display: flex; align-items: stretch; margin: 0 !important; padding: 0 !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li > a { display: flex !important; align-items: center; gap: 7px; padding: 0 16px !important; font-size: 18px !important; line-height: 1 !important; color: #fff !important; white-space: nowrap; transition: background .15s; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li > a:hover, html.nvxh-on header.shfb-desktop #site-navigation .menu > li:hover > a, html.nvxh-on header.shfb-desktop #site-navigation .menu > li:focus-within > a { background: rgba(255, 255, 255, .09); }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li > .dropdown-symbol { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 10px; opacity: .8; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li.menu-item-has-children > a { padding-left: 24px !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li > a .nvxh-chev { width: 13px; height: 13px; opacity: .8; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li.nvxh-here > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--nvxh-mint); }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li.nvx-sep { margin-inline-start: 8px !important; padding-inline-start: 8px !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li.nvx-sep::before { content: ""; position: absolute; right: 0; top: 24px; bottom: 24px; width: 1px; background: rgba(255, 255, 255, .3); }

	/* Dropdowns: white panels */
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li > .sub-menu { top: 100% !important; right: 0 !important; left: auto !important; min-width: 230px; padding: 8px !important; background: #fff !important; border: 1px solid var(--nvxh-line); border-top: 0; border-radius: 0 0 14px 14px !important; box-shadow: 0 18px 40px rgba(14, 30, 60, .18) !important; text-align: right; }
	/* Closed panels are truly out of the way: no hover is caught by an invisible panel (it sat over the
	   breadcrumb and opened the menu). A short pause before opening and closing, so a passing mouse does nothing. */
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li > .sub-menu { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li:hover > .sub-menu, html.nvxh-on header.shfb-desktop #site-navigation .menu > li:focus-within > .sub-menu { visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; transform: none; transition: opacity .16s ease .14s, transform .16s ease .14s, visibility 0s linear .14s !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu li { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu li a { display: block; padding: 9px 12px !important; border-radius: 9px; color: var(--nvxh-ink) !important; font-size: 15.5px !important; line-height: 1.6 !important; background: none !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu li a:hover, html.nvxh-on header.shfb-desktop #site-navigation .sub-menu li a:focus-visible { background: #eef3f9 !important; color: var(--nvxh-bar) !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu .current-menu-item > a { color: var(--nvxh-bar) !important; font-weight: 700; }
	/* Two columns: the menu's own links, and the latest laws / judgments */
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu.nvxh-mega { display: grid !important; grid-template-columns: minmax(200px, auto) 320px; grid-auto-flow: row; column-gap: 18px; padding: 14px 16px !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu.nvxh-mega > li:not(.nvxh-col) { grid-column: 1; }
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu.nvxh-mega > .nvxh-col { grid-column: 2; grid-row: 1 / span 30; border-inline-start: 1px solid #eef1f5 !important; padding-inline-start: 16px !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu.nvxh-mega:not(:has(> li:not(.nvxh-col))) { grid-template-columns: 320px; }
	html.nvxh-on header.shfb-desktop #site-navigation .sub-menu.nvxh-mega:not(:has(> li:not(.nvxh-col))) > .nvxh-col { grid-column: 1; border: 0 !important; padding: 0 !important; }
	.nvxh-col-h, html.nvxh-on header.shfb-desktop #site-navigation .nvxh-col-h { margin: 0 0 4px !important; padding: 0 12px !important; font-size: 12.5px !important; color: var(--nvxh-mut) !important; line-height: 1.8; }
	html.nvxh-on header.shfb-desktop #site-navigation .nvxh-col a { padding: 7px 10px !important; border-bottom: 1px solid #f0f3f7 !important; border-radius: 0 !important; font-size: 14.5px !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .nvxh-col a b { font: 600 13px system-ui, sans-serif; color: var(--nvxh-bar); unicode-bidi: isolate; }
	html.nvxh-on header.shfb-desktop #site-navigation .nvxh-col a small { display: block; font-size: 12px; color: var(--nvxh-mut); }
	html.nvxh-on header.shfb-desktop #site-navigation .nvxh-col a.nvxh-all { border: 0 !important; color: #2F6DB5 !important; font-weight: 700; padding-top: 10px !important; }

	/* Search box and light/dark at the far end */
	.nvxh-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; padding-inline-start: 16px; }
	.nvxh-search { display: flex; align-items: center; gap: 10px; height: 42px; width: clamp(200px, 22vw, 320px); padding: 0 14px !important; min-height: 0 !important; border-radius: 10px !important; background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .25) !important; color: rgba(255, 255, 255, .8) !important; font: inherit !important; font-size: 14.5px !important; cursor: text; box-shadow: none !important; transition: background .15s, border-color .15s; text-align: right; }
	.nvxh-search:hover { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .45) !important; }
	.nvxh-search span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.nvxh-search kbd { flex: none; font: 11px system-ui, sans-serif; border: 1px solid rgba(255, 255, 255, .35); border-radius: 5px; padding: 1px 6px; color: rgba(255, 255, 255, .8); background: none; box-shadow: none; direction: ltr; }
	.nvxh-dark { width: 42px; height: 42px; padding: 0 !important; min-height: 0 !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .25) !important; background: transparent !important; color: #fff !important; display: grid; place-items: center; cursor: pointer; box-shadow: none !important; }
	.nvxh-dark:hover { background: rgba(255, 255, 255, .12) !important; }
	.nvxh-dark > span { display: grid; place-items: center; }
	html:not(.nvxl-dark) .nvxh-dark .nvxd-sun, html.nvxl-dark .nvxh-dark .nvxd-moon { display: none !important; }
	html.nvxh-on.nvxh-has-dark .nvxd-btn.is-float { display: none !important; } /* the header has it now */
	.nvxh-search:focus-visible, .nvxh-dark:focus-visible, html.nvxh-on header.shfb-desktop #site-navigation a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li > a { font-size: 16.5px !important; padding: 0 11px !important; }
	.nvxh-search { width: 46px; padding: 0 !important; justify-content: center; }
	.nvxh-search span, .nvxh-search kbd { display: none; }
}

/* ---------- Phones and tablets ---------- */
@media (max-width: 1024px) {
	html.nvxh-on header.shfb-mobile .shfb-component-mobile_hamburger { display: flex; align-items: center; gap: 8px; }
	.nvxh-msearch { width: 40px; height: 40px; padding: 0 !important; min-height: 0 !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .25) !important; background: transparent !important; color: #fff !important; display: grid; place-items: center; box-shadow: none !important; }
	.nvxh-msearch .nvxh-i { width: 19px; height: 19px; }
	html.nvxh-on .sydney-offcanvas-menu .mainnav ul li a, html.nvxh-on .sydney-offcanvas-menu #mainnav ul li a { font-size: 17px !important; padding-top: 12px !important; padding-bottom: 12px !important; }
}

.nvxh-i, .nvxh-chev { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nvxh-chev { transition: transform .2s; }
@keyframes nvxh-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Dark mode: the panels go dark too */
html.nvxl-dark.nvxh-on { --nvxh-ink: #dbe3ec; --nvxh-mut: #9fb0c4; --nvxh-line: #2b3a4c; }
html.nvxl-dark .nvxh-sw-panel, html.nvxl-dark.nvxh-on header.shfb-desktop #site-navigation .menu > li > .sub-menu { background: #161f2b !important; }
html.nvxl-dark .nvxh-sw-panel a:hover, html.nvxl-dark.nvxh-on header.shfb-desktop #site-navigation .sub-menu li a:hover { background: #1d2a3a !important; color: #cfe0f5 !important; }
html.nvxl-dark .nvxh-sw-ic { background: #1d2a3a; color: #cfe0f5; }
html.nvxl-dark.nvxh-on header.shfb-desktop #site-navigation .nvxh-col a b { color: #8fb4e6; }
html.nvxl-dark.nvxh-on header.shfb-desktop #site-navigation .nvxh-col a, html.nvxl-dark.nvxh-on header.shfb-desktop #site-navigation .sub-menu.nvxh-mega > .nvxh-col { border-color: #233042 !important; }

@media (prefers-reduced-motion: reduce) {
	.nvxh-sw-panel { animation: none !important; }
	html.nvxh-on header.shfb-desktop #site-navigation .menu > li > .sub-menu { transition: none !important; transform: none; }
	.nvxh-chev, .nvxh-sw-btn, .nvxh-search { transition: none !important; }
}
@media print { .nvxh-tools, .nvxh-sw { display: none !important; } }
