/* GridCircuits revamp: round 2 fixes (loads after gc-revamp.css). */

/* Mega panels span the full header width. */
body.gcrv #site-navigation .primary-menu-container,
body.gcrv #site-navigation .gc2-menu { position: static !important; }
@media (min-width: 1025px) {
	body.gcrv #site-navigation .gc2-mega > .sub-menu > li { width: 100% !important; min-width: 0; }
	body.gcrv #site-navigation .gc2-menu .sub-menu li,
	body.gcrv #site-navigation .gc2-menu .sub-menu a { width: auto !important; min-width: 0 !important; }
	body.gcrv #site-navigation .gc2-mega > .sub-menu > li.gc2-feature { display: flex; }
	body.gcrv #site-navigation .gc2-mega > .sub-menu > li.gc2-feature > a { flex: 1; }
}

/* The menu's CTA item shares a class name with the old homepage box; undo the box styles on it. */
body.gcrv li.gc2-cta { position: static; isolation: auto; overflow: visible; border-radius: 0; padding: 0; color: inherit; background: none; }
body.gcrv li.gc2-cta::before { content: none; }
body.gcrv #site-navigation .gc2-menu > li.gc2-cta { margin-left: 10px; display: flex; align-items: center; }

/* Contributor box (renamed). */
body.gcrv .gc2-cbox { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: clamp(40px, 6vw, 72px); color: #d6e2ef; background: var(--gc2-navy); }
body.gcrv .gc2-cbox::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 32, 70, .94) 0%, rgba(8, 60, 140, .78) 45%, rgba(10, 111, 224, .12) 100%); }
body.gcrv .gc2-cbox h2 { font: 800 clamp(26px, 3vw, 36px)/1.15 var(--gc2-font); color: #fff; margin: 0 0 14px; letter-spacing: -.02em; }
body.gcrv .gc2-cbox .gc2-eyebrow { color: #cfe2ff; }
body.gcrv .gc2-cbox p { font-size: 17px; line-height: 1.6; }

/* Let more of the hero photo show. */
body.gcrv .gc2-hero-img { object-position: 30% 70%; }
body.gcrv .gc2-hero::before {
	background:
		linear-gradient(90deg, rgba(6, 18, 34, .9) 0%, rgba(6, 18, 34, .62) 45%, rgba(6, 18, 34, .05) 100%),
		linear-gradient(0deg, rgba(6, 18, 34, .8) 0%, rgba(6, 18, 34, 0) 40%);
}
