/* MENU PANELS. Each main-menu item with class "tplg-mega" opens one wide panel of columns
   instead of nested flyouts. Used by About Us, Professionals, Practices and Locations.
   Script: scripts/menu-panels.js */
#masthead li.tplg-mega { position: static; }
#masthead .p7PM3-12 > ul { position: static !important; }
#masthead .mega-panel {
	display: none; position: absolute; left: max(182px, calc(50% - 442px)); right: max(24px, calc(50% - 600px)); top: 100%; z-index: 9999;
	box-sizing: border-box; height: auto; padding: 22px 26px 26px; background: #0E2748;
	border-top: 3px solid #F2A04A; border-radius: 0 0 6px 6px; box-shadow: 0 14px 30px rgba(0,0,0,.35);
	grid-template-columns: repeat(4, 1fr); gap: 0 30px; text-align: left;
}
#masthead .mega-panel.mega-places { grid-template-columns: repeat(5, 1fr); gap: 0 24px; }
#masthead .mega-panel.mega-about { grid-template-columns: 1.15fr 1fr 1.05fr 1.15fr; }
#masthead .mega-panel.mega-people { grid-template-columns: 1.25fr 1.1fr 1.1fr 1fr; }
#masthead .mega-panel.mega-techs { grid-template-columns: 1.25fr 1fr 1fr 1.2fr; }
#masthead .mega-panel.mega-practices { grid-template-columns: 1.5fr 1.1fr 1fr 1.25fr; }
#masthead .mega-panel div { position: static; display: block; top: auto; height: auto; z-index: auto; }
#masthead li.tplg-mega.open > .mega-panel { display: grid; }
#masthead li.tplg-mega.open > a.tplg-mega-link { color: #F2A04A; }
/* the arrow matches the other top-row menu items */
#masthead a.tplg-mega-link::after {
	content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg);
}
#masthead .mega-panel a.mega-head {
	display: block; margin: 0 0 8px; padding: 0 0 9px; border-bottom: 1px solid #2C4A75;
	color: #F2A04A; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: none; line-height: 1.35;
}
#masthead .mega-panel a.mega-head:hover { color: #FFF; background: none; }
#masthead .mega-panel .mega-links a {
	display: block; padding: 6px 8px; margin: 0 -8px; color: #E3E9F2; font-size: 14px; line-height: 1.35;
	white-space: normal; border-radius: 3px; background-image: none; text-decoration: none;
}
#masthead .mega-panel .mega-links a:hover, #masthead .mega-panel .mega-links a:focus { background-color: #1A3D6B; color: #FFF; }
#masthead .mega-panel .mega-foot { grid-column: 1 / -1; display: flex !important; gap: 28px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #2C4A75; }
#masthead .mega-panel .mega-foot a { color: #F2A04A; font-size: 13px; font-weight: 600; letter-spacing: .04em; background: none; padding: 0; }
#masthead .mega-panel .mega-foot a::after { content: " \203A"; }
#masthead .mega-panel .mega-foot a:hover { color: #FFF; }
/* column headings line up along their bottom edge when one of them wraps to two lines */
@media only screen and (min-width: 701px) {
	#masthead .mega-panel a.mega-head { display: flex; align-items: flex-end; min-height: 36px; }
}
/* Patents by Technology: the links stay in the page code and open in place when the visitor asks for them */
#masthead .mega-panel .mega-links a.mega-more::after { content: " +"; color: #F2A04A; font-weight: 600; }
#masthead .mega-panel .mega-links a.mega-more[aria-expanded="true"]::after { content: " \2212"; }
#masthead .mega-panel .mega-links .mega-tech { margin: 2px 0 6px; padding: 0 0 6px 12px; border-left: 2px solid #2C4A75; }
#masthead .mega-panel .mega-links .mega-tech:not(.open) { display: none; }
#masthead .mega-panel .mega-tech-links { display: block; column-count: 2; column-gap: 18px; }
#masthead .mega-panel .mega-tech-links a { break-inside: avoid; padding: 4px 8px; font-size: 13px; }
@media only screen and (max-width: 1200px) {
	#masthead .mega-panel { left: 156px; right: 24px; padding: 18px 18px 22px; gap: 0 18px; }
	#masthead .mega-panel .mega-links a { font-size: 13px; }
}
@media only screen and (min-width: 701px) and (max-width: 900px) {
	#masthead .mega-panel, #masthead .mega-panel.mega-places { left: 12px; right: 12px; gap: 0 14px; padding: 16px 16px 20px; }
}
/* Phones: each column becomes a tap-to-open section inside the menu. */
@media only screen and (max-width: 700px) {
	#masthead .mega-panel { position: static; left: auto; right: auto; display: none; padding: 0 0 6px; border-top: 0; border-radius: 0; box-shadow: none; background: #0B2140; }
	#masthead li.tplg-mega.open > .mega-panel { display: block; }
	#masthead .mega-col { border-top: 1px solid #1E3A63; }
	#masthead .mega-panel a.mega-head { margin: 0; padding: 13px 44px 13px 28px; border: 0; position: relative; color: #FFF; font-size: 14px; letter-spacing: .04em; }
	#masthead .mega-panel a.mega-head::after { content: "+"; position: absolute; right: 22px; top: 10px; font-size: 20px; color: #F2A04A; }
	#masthead .mega-col.open a.mega-head::after { content: "\2212"; }
	#masthead .mega-col > .mega-links { display: none; padding: 0 0 10px 28px; }
	#masthead .mega-col.open > .mega-links { display: block; }
	#masthead .mega-panel .mega-links a { margin: 0; padding: 9px 20px 9px 12px; font-size: 14px; }
	#masthead .mega-panel .mega-tech-links { column-count: 1; }
	#masthead .mega-panel .mega-foot { display: block !important; margin: 0; padding: 0; border-top: 1px solid #1E3A63; }
	#masthead .mega-panel .mega-foot a { display: block; padding: 12px 28px; color: #E3E9F2; font-weight: 400; }
}
