/* ==========================================================================
   Mega menu (inc/mega-menu.php). Computers only: the phone menu is unchanged.
   ========================================================================== */

.has-mega-menu .masthead { position: relative; }
.primary-menu > li.has-mega { position: static; }
.mm, .mm-dim { display: none; }

@media (min-width: 1081px) {
	.mm {
		display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 61;
		max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain;
		background: #fff; color: var(--ink); border-top: 3px solid #FBBF00;
		box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
		opacity: 0; visibility: hidden; transform: translateY(-4px);
		transition: opacity .12s, transform .12s, visibility 0s .12s;
	}
	/* invisible bridge over the gap between the menu item and the panel */
	.mm::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; }
	.primary-menu > li.has-mega:hover > .mm,
	.primary-menu > li.has-mega:focus-within > .mm,
	.primary-menu > li.has-mega.is-open > .mm {
		opacity: 1; visibility: visible; transform: none;
		transition: opacity .15s .09s, transform .15s .09s, visibility 0s .09s;
	}
	.mm::before { pointer-events: none; }
	.primary-menu > li.has-mega:hover > .mm::before { pointer-events: auto; }

	.primary-menu > li.has-mega:hover > a,
	.primary-menu > li.has-mega.is-open > a,
	.primary-menu > li.has-mega:hover > .nav-sub-toggle,
	.primary-menu > li.has-mega.is-open > .nav-sub-toggle { color: #FBBF00; }
	.primary-menu > li.has-mega .nav-sub-toggle svg { transition: transform .15s; }
	.primary-menu > li.has-mega:hover > .nav-sub-toggle svg,
	.primary-menu > li.has-mega.is-open > .nav-sub-toggle svg { transform: rotate(180deg); }

	/* the page behind dims while a panel is open; the header stays bright */
	.mm-dim { display: block; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, visibility 0s .15s; }
	.site-header:has(.has-mega:hover > .mm, .has-mega.is-open > .mm, .has-mega:focus-within > .mm) .mm-dim { opacity: 1; visibility: visible; transition: opacity .15s .09s, visibility 0s .09s; }
}

.mm-in { max-width: var(--container, 1240px); margin: 0 auto; padding: 30px var(--gutter, 28px) 28px; display: grid; grid-template-columns: var(--mm-cols); gap: 36px; align-items: start; font-family: var(--font-body); }
.mm-col--opt { display: block; }
@media (max-width: 1279px) {
	.mm-in { grid-template-columns: var(--mm-cols-s); gap: 28px; }
	.mm-col--opt { display: none; }
}
.mm a { text-decoration: none; color: var(--ink); }
.mm-k { margin: 0 0 14px; font: 800 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8A8A87; }

/* simple list */
.mm-plain a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EEECE6; font: 700 15px/1.3 var(--font-display); }
.mm-plain a:first-child { border-top: 0; padding-top: 2px; }
.mm-plain a:hover > span:first-child { text-decoration: underline; }
.mm-plain a > span + span { font: 600 12px var(--font-body); color: #8A8A87; }
.mm-n { font-style: normal; min-width: 22px; text-align: center; background: #FBBF00; color: #141414; border-radius: 999px; font: 800 11px/1 var(--font-body); padding: 4px 7px; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mm-chips a { border: 1.5px solid #DCDAD3; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.mm-chips a:hover { border-color: var(--ink); }

/* icon links */
.mm-links { display: flex; flex-direction: column; gap: 2px; }
.mm-link { display: flex; gap: 12px; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; }
.mm-link:hover, .mm-link:focus-visible { background: #F6F6F3; }
.mm-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #141414; display: flex; align-items: center; justify-content: center; }
.mm-ic svg { width: 20px; height: 20px; stroke: #FBBF00; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mm-link b { display: block; font: 700 15px/1.2 var(--font-display); }
.mm-link small { display: block; font-size: 12.5px; line-height: 1.35; color: #6E6E6B; margin-top: 2px; }

/* places, stories, series */
.mm-place { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #EEECE6; }
.mm-place:nth-child(2) { border-top: 0; padding-top: 0; }
.mm-place img, .mm-place .mm-ph { flex: none; width: 72px; height: 52px; border-radius: 9px; object-fit: cover; background: #EEECE6; }
.mm-place b, .mm-ser b { display: block; font: 700 14px/1.25 var(--font-display); }
.mm-place small, .mm-post small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A8A87; margin-top: 3px; }
.mm-place:hover b, .mm-post:hover b, .mm-ser:hover b, .mm-ev:hover .mm-ti { text-decoration: underline; }
.mm-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mm-post { display: block; }
.mm-post img, .mm-post .mm-ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: #EEECE6; }
.mm-post small { margin: 10px 0 4px; }
.mm-post b { display: block; font: 700 15px/1.3 var(--font-display); }
.mm-ser { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #EEECE6; }
.mm-ser:nth-child(2) { border-top: 0; padding-top: 0; }
.mm-ser span { flex: none; font-size: 11px; font-weight: 700; color: #8F5C0F; background: #FBF0DC; border-radius: 6px; padding: 3px 7px; }

/* agenda */
.mm-day { margin: 14px 0 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A8A87; }
.mm-k + .mm-day { margin-top: 0; }
.mm-ev { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #EEECE6; }
.mm-day + .mm-ev { border-top: 0; }
.mm-tm { flex: none; width: 64px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.mm-ti { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.mm-ti i { display: block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A8A87; margin-top: 2px; }

/* questions */
.mm-q { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid #EEECE6; font-size: 15px; font-weight: 600; line-height: 1.35; }
.mm-k + .mm-q { border-top: 0; padding-top: 0; }
.mm-q::after { content: "›"; flex: none; font-size: 20px; color: #8A8A87; }
.mm-q:hover { text-decoration: underline; }

/* black card */
.mm-card { position: relative; overflow: hidden; background: #000; color: #fff; border-radius: 18px; padding: 22px; }
.mm-card .mm-k { color: #FBBF00; margin-bottom: 8px; }
.mm-card-t { margin: 0 0 8px; padding-right: 34px; font: 700 20px/1.25 var(--font-display); color: #fff; }
.mm-card-d { margin: 0 0 16px; font-size: 13.5px; line-height: 1.45; color: #D6D6D2; }
.mm-ticks { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: #D6D6D2; }
.mm-ticks li::before { content: "✓"; color: #FBBF00; margin-right: 8px; }
.mm .mm-btn { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 11px; background: #fff; color: #141414; font-weight: 700; font-size: 14px; }
.mm .mm-btn:hover { background: #FBBF00; }
.mm .mm-card-sub { display: block; margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: #D6D6D2; }
.mm .mm-card-sub:hover { color: #fff; text-decoration: underline; }
.mm-paw { position: absolute; right: 16px; top: 14px; width: 40px; height: 40px; fill: #FBBF00; opacity: .35; transform: rotate(18deg); }
.mm-saved { display: flex; flex-direction: column; margin: 4px 0 16px; }
.mm .mm-saved a { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #2A2A2A; color: #fff; }
.mm .mm-saved a:first-child { border-top: 0; }
.mm-saved b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.mm-badge { flex: none; width: 40px; height: 40px; border-radius: 9px; background: #1F1F1F; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 800 15px/1 var(--font-display); }
.mm-badge span { font: 700 9px/1 var(--font-body); text-transform: uppercase; color: #FBBF00; margin-bottom: 2px; }

/* bottom strip */
.mm-foot { border-top: 1px solid #EEECE6; background: #FAFAF8; }
.mm-foot-in { max-width: var(--container, 1240px); margin: 0 auto; padding: 14px var(--gutter, 28px); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13.5px; color: #6E6E6B; }
.mm-foot-links { display: flex; gap: 22px; flex: none; }
.mm-foot-links a { font-weight: 700; }
.mm-foot-links a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.mm, .mm-dim, .primary-menu > li.has-mega .nav-sub-toggle svg { transition: none !important; }
}
