/* Header mega menu (content/header.mjs) and the phone drawer. */
.nd-mm { flex: 1 1 auto; display: flex; justify-content: center; }
.nd-mm ul { list-style: none; margin: 0; padding: 0; }
.nd-mm__bar { display: flex; align-items: stretch; gap: 0.25rem; height: 64px; }
.nd-mm__li { display: flex; align-items: stretch; }
.nd-mm__li--rel { position: relative; }
.nd-mm__top {
	position: relative; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0 0.85rem;
	font: inherit; font-size: 0.9375rem; font-weight: 450; color: var(--nd-muted); background: none; border: 0; cursor: pointer;
	text-decoration: none !important; transition: color 0.15s;
}
.nd-mm__top:hover, .nd-mm__top[aria-expanded="true"] { color: var(--nd-fg); }
.nd-mm__top[aria-expanded="true"]::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--nd-blue-text); }
.nd-mm__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.nd-mm__top[aria-expanded="true"] .nd-mm__chev { transform: rotate(180deg); }

/* The full-width panel, inside the hairline frame */
.nd-mm__panel { position: absolute; left: -1px; right: -1px; top: calc(100% + 1px); z-index: 60; }
/* The header row is already the frame's width, so the panel fills it from rail to rail. */
.nd-mm__panel .nd-mm__inner { width: 100%; max-width: none; }
.nd-mm__panel[hidden] { display: none; }
.nd-mm__inner {
	width: calc(100% - 2 * var(--nd-gut)); max-width: var(--nd-max); margin-inline: auto; box-sizing: border-box;
	display: grid; grid-template-columns: minmax(0, 1fr) 320px;
	background: #000; border: 1px solid var(--nd-frame); border-top: 0;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 30px 120px -60px rgba(11, 87, 227, 0.45);
}
.nd-motion .nd-mm__panel:not([hidden]) .nd-mm__inner { animation: nd-mm-in 0.22s var(--nd-ease) both; }
@keyframes nd-mm-in { from { opacity: 0; transform: translateY(-6px); } }
.nd-mm__main { display: flex; flex-direction: column; min-width: 0; }
.nd-mm__cols { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; flex: 1; }
.nd-mm__col { padding: 1.75rem 1.5rem 1.5rem; border-right: 1px solid var(--nd-frame); }
.nd-mm__col:last-child { border-right: 0; }
.nd-mm__h { margin: 0 0 0.9rem !important; padding-bottom: 0.75rem; border-bottom: 1px solid var(--nd-frame); color: var(--nd-fg) !important; font-size: 0.9375rem !important; font-weight: 500; }
.nd-mm__h span { color: var(--nd-blue-text); font-weight: 600; }
.nd-mm__col:nth-child(2) .nd-mm__h span { color: #8db5ff; }
.nd-mm__col:nth-child(3) .nd-mm__h span { color: #a5b4fc; }
.nd-mm__item { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.6rem 0.6rem; margin-inline: -0.6rem; border-radius: 10px; text-decoration: none !important; transition: background-color 0.15s; }
.nd-mm__item:hover { background: #0e0e11; }
.nd-mm__item b { display: block; color: var(--nd-fg); font-size: 0.9rem; font-weight: 500; line-height: 1.3; }
.nd-mm__item b em { font-style: normal; font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nd-blue-soft); border: 1px solid rgba(110, 160, 255, 0.35); border-radius: 999px; padding: 0.05rem 0.4rem; margin-left: 0.25rem; vertical-align: 1px; }
.nd-mm__item small { display: block; margin-top: 0.15rem; color: #8b8b95; font-size: 0.8125rem; line-height: 1.4; }
.nd-mm__ic { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--nd-frame); background: #0a0a0c; color: var(--nd-blue-soft); }
.nd-mm__ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nd-mm__item:hover .nd-mm__ic { border-color: rgba(110, 160, 255, 0.4); background: rgba(11, 87, 227, 0.12); }

.nd-mm__strip { display: flex; align-items: center; gap: 0.9rem; margin: 0 1.5rem 1.5rem; padding: 0.9rem 1rem; border: 1px solid var(--nd-frame); border-radius: 12px; background: #070709; text-decoration: none !important; }
.nd-mm__strip b { display: block; color: var(--nd-fg); font-size: 0.9rem; font-weight: 600; }
.nd-mm__strip small { display: block; color: #8b8b95; font-size: 0.8125rem; }
.nd-mm__strip em { margin-left: auto; font-style: normal; color: var(--nd-blue-text); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.nd-mm__strip:hover { border-color: #33333a; }

.nd-mm__aside { padding: 1.5rem; border-left: 1px solid var(--nd-frame); }
.nd-mm__promo {
	display: flex; flex-direction: column; gap: 0.5rem; height: 100%; box-sizing: border-box; padding: 1.4rem; border-radius: 14px; text-decoration: none !important;
	background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(110, 160, 255, 0.35), transparent 60%), linear-gradient(160deg, #0b57e3, #0a3fae 70%, #082f84);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nd-mm__promo-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, 0.16); color: #fff; margin-bottom: 0.5rem; }
.nd-mm__promo-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nd-mm__promo small { font-family: var(--wp--preset--font-family--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.nd-mm__promo b { color: #fff; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.nd-mm__promo span { color: rgba(255, 255, 255, 0.82); font-size: 0.875rem; line-height: 1.5; }
.nd-mm__promo em { margin-top: auto; padding-top: 0.75rem; font-style: normal; color: #fff; font-weight: 600; font-size: 0.9rem; }
.nd-mm__side .nd-mm__h { margin-top: 0.25rem !important; }
.nd-mm__side ul { display: grid; gap: 0.6rem; }
.nd-mm__item--box { margin: 0; padding: 0.8rem; border: 1px solid var(--nd-frame); align-items: center; }
.nd-mm__item--box i { margin-left: auto; font-style: normal; color: #71717a; font-size: 1.2rem; }

.nd-mm__panel--small { left: 50%; right: auto; top: calc(100% + 1px); transform: translateX(-50%); width: 320px; padding: 0.6rem; background: #000; border: 1px solid var(--nd-frame); border-radius: 0 0 14px 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.nd-mm__list { display: grid; gap: 0.1rem; }
.nd-mm__list .nd-mm__item { margin: 0; }

/* Right side of the header */
.nd-mm__actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.nd-mm__signin { color: var(--nd-fg); font-size: 0.9375rem; text-decoration: none !important; padding: 0.45rem 0.6rem; }
.nd-mm__signin:hover { color: var(--nd-blue-text); }
.nd-mm__cta, .nd-mm__ghost {
	display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0.95rem; border-radius: 9px; font-size: 0.875rem; font-weight: 500; text-decoration: none !important; white-space: nowrap;
}
.nd-mm__cta { background: var(--nd-blue); color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(11, 87, 227, 0.9), 0 10px 30px -10px var(--nd-glow); }
.nd-mm__cta:hover { background: var(--nd-blue-hover); }
.nd-mm__ghost { color: var(--nd-fg) !important; border: 1px solid var(--nd-line-2); }
.nd-mm__burger { display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--nd-line-2); background: none; cursor: pointer; position: relative; }
.nd-mm__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--nd-fg); transition: transform 0.2s, top 0.2s; }
.nd-mm__burger span:first-child { top: 15px; }
.nd-mm__burger span:last-child { top: 23px; }
.nd-mm__burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nd-mm__burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Phone drawer */
.nd-drawer { position: fixed; inset: 64px 0 0; z-index: 70; overflow-y: auto; background: #000; border-top: 1px solid var(--nd-frame); }
body.admin-bar .nd-drawer { top: 110px; }
.nd-drawer[hidden] { display: none; }
.nd-drawer__inner { padding: 0.5rem var(--nd-pad) 2rem; }
.nd-drawer__acc { border-bottom: 1px solid var(--nd-frame); }
.nd-drawer__acc summary, .nd-drawer__link { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; color: var(--nd-fg); font-size: 1.125rem; font-weight: 500; cursor: pointer; list-style: none; text-decoration: none !important; }
.nd-drawer__link { border-bottom: 1px solid var(--nd-frame); }
.nd-drawer__acc summary::-webkit-details-marker { display: none; }
.nd-drawer__acc[open] .nd-mm__chev { transform: rotate(180deg); }
.nd-drawer__acc ul { list-style: none; margin: 0 0 1rem; padding: 0 0 0 0.25rem; display: grid; gap: 0.15rem; }
.nd-drawer__acc a { display: block; padding: 0.45rem 0; color: var(--nd-muted); text-decoration: none !important; }
.nd-drawer__acc a:hover { color: var(--nd-fg); }
.nd-drawer__actions { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.nd-drawer__actions a { padding: 0.8rem; font-size: 1rem; }
body.nd-drawer-open { overflow: hidden; }

@media (max-width: 1080px) {
	.nd-mm__inner { grid-template-columns: minmax(0, 1fr); }
	.nd-mm__aside { border-left: 0; border-top: 1px solid var(--nd-frame); }
	.nd-mm__promo { flex-direction: row; flex-wrap: wrap; align-items: center; height: auto; }
	.nd-mm__promo span { display: none; }
}
@media (max-width: 960px) {
	.nd-mm, .nd-mm__signin { display: none; }
	.nd-mm__burger { display: inline-block; }
	.nd-mm__actions { margin-left: auto; }
}
@media (max-width: 600px) { body.admin-bar .nd-drawer { top: 64px; } }
