/*
New header and footer (v2). Loaded by inc/header/header-v2.php only on sites
with iphc_header_v2 set; everything is scoped under body.hv2.
*/

.hv2 {
	--hv2-bar: #0e0f11;
	--hv2-ink: #15171a;
	--hv2-muted: #5b6168;
	--hv2-text: #c9cdd1;
	--hv2-line: rgba(255, 255, 255, .08);
	--hv2-accent: #6DD0F6;
	--hv2-accent-ink: #0b1a20;
	--hv2-hover: #eef6f9;
	--hv2-family-h: 36px;
	--hv2-bar-h: 76px;
	--hv2-top: var(--wp-admin--admin-bar--height, 0px);
}

/* Reset what main.css puts on buttons, links and lists inside the header */
/* :where() keeps the reset at element specificity so the rules below win */
:where(.hv2 .hv2-family, .hv2 .hv2-bar, .hv2 .hv2-mobile, .hv2 .hv2-search) button {
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	letter-spacing: normal;
	line-height: inherit;
	margin: 0;
	min-height: 0;
	padding: 0;
	text-transform: none;
	transition: none;
	width: auto;
}
:where(.hv2 .hv2-family, .hv2 .hv2-bar, .hv2 .hv2-mobile, .hv2 .hv2-search, .hv2 .hv2-foot) a { color: inherit; text-decoration: none; transition: none; }
/* main.css also styles button:hover and a:hover; these tie on specificity and load later */
:where(.hv2 .hv2-family, .hv2 .hv2-bar, .hv2 .hv2-mobile, .hv2 .hv2-search) button:is(:hover, :focus) { background: none; color: inherit; }
:where(.hv2 .hv2-family, .hv2 .hv2-bar, .hv2 .hv2-mobile, .hv2 .hv2-search, .hv2 .hv2-foot) a:hover { color: inherit; }
:where(.hv2 .hv2-bar) ul { list-style: none; margin: 0; padding: 0; }
.hv2 .hv2-family,
.hv2 .hv2-bar,
.hv2 .hv2-mobile,
.hv2 .hv2-search,
.hv2 .hv2-foot { font-family: proxima-nova, sans-serif; -webkit-font-smoothing: antialiased; }
.hv2 .hv2-family svg,
.hv2 .hv2-bar svg,
.hv2 .hv2-mobile svg,
.hv2 .hv2-search svg { flex-shrink: 0; }

.hv2 .hv2-wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

.hv2 .hv2-eyebrow { display: block; padding: 4px 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hv2-muted); }
.hv2 .hv2-ext { color: var(--hv2-muted); }

/* ---------- Family bar ---------- */

.hv2 .hv2-family { position: relative; z-index: 45; height: var(--hv2-family-h); background: #000; color: #8b9097; font-size: 13px; }
.hv2 .hv2-family .hv2-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hv2 .hv2-family-left,
.hv2 .hv2-family-right { position: relative; display: flex; align-items: center; gap: 14px; }
.hv2 .hv2-family-right[hidden] { display: none; }
.hv2 .hv2-fam-btn { display: flex; align-items: center; gap: 8px; color: #d6d9dc; font-weight: 600; }
.hv2 .hv2-fam-btn:hover { color: #fff; }
.hv2 .hv2-fam-btn img { height: 18px; width: auto; border-radius: 3px; }

.hv2 .hv2-dark-menu { position: absolute; top: 32px; display: none; padding: 8px; background: #16181b; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.hv2 .hv2-dark-menu.open { display: block; }
.hv2 .hv2-dark-menu a,
.hv2 .hv2-dark-menu button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; color: #e8eaec; font-size: 14px; text-align: left; }
.hv2 .hv2-dark-menu a:hover,
.hv2 .hv2-dark-menu button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hv2 .hv2-dark-menu .current { color: #fff; background: rgba(109, 208, 246, .12); }
.hv2 .hv2-dark-menu .current svg { color: var(--hv2-accent); }
.hv2 .hv2-sites { left: 0; width: 300px; }
.hv2 .hv2-langs { right: 0; width: 180px; }

/* ---------- Main bar ---------- */

.hv2 .hv2-bar { position: sticky; top: var(--hv2-top); z-index: 40; background: var(--hv2-bar); border-bottom: 1px solid var(--hv2-line); color: #fff; transition: background-color .25s; }
.hv2 .hv2-bar.is-scrolled { background: rgba(14, 15, 17, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hv2 .hv2-bar > .hv2-wrap { height: var(--hv2-bar-h); display: flex; align-items: center; gap: 32px; transition: height .25s; }
.hv2 .hv2-bar.is-scrolled > .hv2-wrap { height: 60px; }

.hv2 .hv2-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: #fff; }
.hv2 .hv2-brand img { display: block; height: 34px; width: auto; transition: height .25s; }
.hv2 .hv2-brand span { font-size: 11px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.hv2 .hv2-bar.is-scrolled .hv2-brand img { height: 28px; }
.hv2 .hv2-bar.is-scrolled .hv2-brand span { display: none; }

.hv2 .hv2-nav { margin-left: auto; height: 100%; }
.hv2 .hv2-nav > ul { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.hv2 .hv2-nav > ul > li { position: relative; display: flex; }
.hv2 .hv2-nav-link { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 16px; font-weight: 700; color: #fff; }
.hv2 .hv2-nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: transparent; transition: background-color .15s; }
.hv2 .hv2-nav-link:hover,
.hv2 .hv2-nav-link[aria-expanded="true"] { color: #fff; }
.hv2 .hv2-nav-link:hover::after,
.hv2 .hv2-nav-link[aria-expanded="true"]::after { background: var(--hv2-accent); }
.hv2 .hv2-nav-link svg { transition: transform .2s; }
.hv2 .hv2-nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.hv2 .hv2-nav-link:focus:not(:focus-visible),
.hv2 .hv2-fam-btn:focus:not(:focus-visible) { outline: none; }

.hv2 .hv2-panel { position: absolute; top: 100%; left: 0; margin-top: 8px; display: none; width: 320px; padding: 12px; background: #fff; color: var(--hv2-ink); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.hv2 .hv2-panel.open { display: block; }
.hv2 .hv2-panel-cols.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 580px; left: -120px; padding: 20px; }
.hv2 .hv2-panel-cols > div + div { border-left: 1px solid #eceef0; padding-left: 16px; }
.hv2 .hv2-nav > ul > li:nth-last-child(-n+2) .hv2-panel { left: auto; right: -40px; }
.hv2 .hv2-panel a,
.hv2 .hv2-mega a:not(.hv2-feature) { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--hv2-ink); }
.hv2 .hv2-panel a:hover,
.hv2 .hv2-mega a:not(.hv2-feature):hover { background: var(--hv2-hover); color: var(--hv2-ink); }

.hv2 .hv2-mega { position: absolute; top: 100%; left: 0; right: 0; display: none; background: #fff; color: var(--hv2-ink); border-top: 1px solid #eceef0; box-shadow: 0 30px 60px rgba(0, 0, 0, .18); }
.hv2 .hv2-mega.open { display: block; }
.hv2 .hv2-mega > .hv2-wrap { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 32px; padding-bottom: 32px; align-items: start; }
.hv2 .hv2-feature { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 180px; padding: 22px; border-radius: 14px; background: var(--hv2-bar); color: #fff; }
.hv2 .hv2-feature .hv2-eyebrow { padding: 0; color: var(--hv2-accent); }
.hv2 .hv2-feature strong { display: block; font-size: 24px; line-height: 1.2; }
.hv2 .hv2-feature-link { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: #d6d9dc; }
.hv2 .hv2-feature:hover .hv2-feature-link { color: #fff; }

.hv2 .hv2-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hv2 .hv2-icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: #fff; }
.hv2 .hv2-icon-btn:hover { background: rgba(255, 255, 255, .1); }
.hv2 .hv2-give { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 24px; border-radius: 999px; background: var(--hv2-accent); color: var(--hv2-accent-ink); font-weight: 700; font-size: 16px; }
.hv2 .hv2-give:hover { filter: brightness(1.08); color: var(--hv2-accent-ink); }
.hv2 .hv2-menu-btn { display: none; }
.hv2 .hv2-i-close { display: none; }
.hv2 .hv2-menu-btn[aria-expanded="true"] .hv2-i-open { display: none; }
.hv2 .hv2-menu-btn[aria-expanded="true"] .hv2-i-close { display: flex; }
.hv2 .hv2-i-open,
.hv2 .hv2-i-close { align-items: center; }
.hv2 .hv2-i-open { display: flex; }

.hv2 .hv2-scrim { position: fixed; inset: 0; z-index: 30; display: none; background: rgba(0, 0, 0, .25); }
.hv2 .hv2-scrim.open { display: block; }

/* ---------- Transparent header ---------- */
/* The page's first section slides up behind the bar; the bar turns solid on scroll or with a menu open. */

.hv2-transparent .hv2-family { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hv2-transparent .hv2-bar { background: transparent; border-bottom-color: transparent; }
.hv2-transparent .hv2-bar.is-scrolled,
.hv2-transparent .hv2-bar.menu-open { background: rgba(14, 15, 17, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--hv2-line); }
.hv2-transparent .site-inner { margin-top: calc(-1 * (var(--hv2-family-h) + var(--hv2-bar-h))); padding-top: 0; }

/* ---------- Search ---------- */

.hv2 .hv2-search { position: fixed; inset: 0; z-index: 100000; display: none; justify-content: center; align-items: flex-start; padding: 120px 16px 0; background: rgba(10, 11, 13, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hv2 .hv2-search.open { display: flex; }
.hv2 .hv2-search-box { width: 640px; max-width: 100%; margin: 0; background: #fff; border-radius: 16px; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.hv2 .hv2-search-field { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 18px; border-bottom: 1px solid #eceef0; color: var(--hv2-muted); }
.hv2 .hv2-search-field input[type="search"] { flex: 1; height: auto; margin: 0; padding: 0; border: 0; outline: none; box-shadow: none; background: transparent; font: inherit; font-size: 20px; color: var(--hv2-ink); }
.hv2 .hv2-search-field button { font-size: 12px; color: var(--hv2-muted); border: 1px solid #d9dde1; border-radius: 6px; padding: 3px 8px; }
.hv2 .hv2-search-pop { padding: 18px; }
.hv2 .hv2-search-pop .hv2-eyebrow { padding: 0 0 12px; }
.hv2 .hv2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hv2 .hv2-chips a { padding: 8px 14px; border-radius: 999px; background: #f0f2f4; font-weight: 600; color: var(--hv2-ink); }
.hv2 .hv2-chips a:hover { background: #e4e8eb; }

/* ---------- Mobile menu ---------- */

.hv2 .hv2-mobile { position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--hv2-top) + 64px); z-index: 39; display: none; flex-direction: column; background: var(--hv2-bar); color: #fff; }
.hv2 .hv2-mobile.open { display: flex; }
.hv2 .hv2-mobile-scroll { flex: 1; overflow-y: auto; padding: 8px 16px; }
.hv2 .hv2-acc { border-bottom: 1px solid var(--hv2-line); }
.hv2 .hv2-acc > button,
.hv2 .hv2-acc > a { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 700; text-align: left; color: #fff; }
.hv2 .hv2-acc > button svg { color: var(--hv2-accent); transition: transform .2s; }
.hv2 .hv2-acc > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.hv2 .hv2-acc-sub { display: none; flex-direction: column; padding-bottom: 12px; }
.hv2 .hv2-acc-sub.open { display: flex; }
.hv2 .hv2-acc-sub a { padding: 11px 12px; border-radius: 8px; font-size: 17px; color: var(--hv2-text); }
.hv2 .hv2-acc-sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.hv2 .hv2-mobile-give { padding: 12px 16px 20px; border-top: 1px solid var(--hv2-line); }
.hv2 .hv2-mobile-give .hv2-give { height: 52px; font-size: 17px; }

/* ---------- Footer ---------- */

.hv2 .hv2-foot { padding: 72px 0 32px; background: var(--hv2-bar); color: #a9aeb4; font-size: 15px; }
.hv2 .hv2-foot > .hv2-wrap:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.hv2 .hv2-foot-brand img { height: 40px; width: auto; }
.hv2 .hv2-foot-brand p { margin: 16px 0 0; color: #a9aeb4; font-size: 15px; line-height: 1.6; }
.hv2 .hv2-foot-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.hv2 .hv2-foot-cols h2 { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hv2 .hv2-foot-cols a { display: block; padding: 5px 0; color: #c9cdd1; }
.hv2 .hv2-foot a:hover { color: #fff; }
.hv2 .hv2-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hv2-line); font-size: 13px; color: #8b9097; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
	.hv2 { --hv2-family-h: 0px; --hv2-bar-h: 64px; }
	.hv2 .hv2-family { display: none; }
	.hv2 .hv2-nav,
	.hv2 .hv2-actions > .hv2-give { display: none; }
	.hv2 .hv2-menu-btn { display: flex; }
	.hv2 .hv2-actions { margin-left: auto; gap: 0; }
	.hv2 .hv2-bar > .hv2-wrap { padding: 0 8px 0 16px; }
	.hv2 .hv2-bar.is-scrolled > .hv2-wrap { height: 64px; }
	.hv2 .hv2-brand img { height: 28px; }
	.hv2 .hv2-brand span { display: none; }
	.hv2 .hv2-wrap { padding: 0 16px; }
}

@media (max-width: 600px) {
	.hv2 .hv2-foot-cols { gap: 32px; }
	.hv2 .hv2-search { padding-top: 72px; }
}
