/* Mega menu panels (ADR 0055): a glass card laid under the pill, opened by an item's chevron. Without JavaScript the
   icon links still go to their pages and the panel shows while the item has focus. */
.hor-navpill .hor-navitem { display: contents; }
.hor-navpill .hor-navitem:not(:first-child) > .hor-navbtn:not(.cb-last-true) { border-radius: var(--hor-nav-inner-radius); }
.hor-navpill .cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hor-navpill .hor-navmore { display: inline-grid; place-items: center; position: relative; width: 22px; height: 38px; margin-left: -2px; border-radius: 8px; color: var(--hor-ink-3); }
.hor-navpill .hor-navmore::after { content: ""; position: absolute; inset: -5px -3px; }
.hor-navpill .hor-navmore:hover, .hor-navpill .hor-navmore[aria-expanded="true"] { color: var(--hor-ink); background: var(--hor-chip); }
.hor-navpill svg[viewBox="0 0 20 20"] { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hor-navpill .hor-navmore svg { transition: transform .2s var(--hor-ease); }
.hor-navpill .hor-navmore[aria-expanded="true"] svg { transform: rotate(180deg); }
.hor-navpill .cb-mega { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%); width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 96px - env(safe-area-inset-top)); overflow: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid var(--hor-line); border-radius: var(--hor-radius-deck); background: var(--hor-panel); box-shadow: var(--hor-shadow-panel); text-align: left; }
.hor-navpill .cb-mega[data-open], .hor-navpill:not([data-cb-mounted]) .hor-navitem:focus-within > .cb-mega { display: block; }
.hor-navpill .cb-mega__head { display: flex; align-items: center; gap: 12px; padding: 0 0 10px 6px; border-bottom: 1px solid var(--hor-line); }
.hor-navpill .cb-mega__title { margin: 0 auto 0 0; }
.hor-navpill .cb-mega__all, .hor-navpill .cb-mega__close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.hor-navpill .cb-mega__close { justify-content: center; min-width: 44px; border-radius: 12px; color: var(--hor-ink-2); }
.hor-navpill .cb-mega__close:hover { background: var(--hor-chip); color: var(--hor-ink); }
.hor-navpill .cb-mega__body { display: grid; gap: 14px; padding-top: 12px; }
.hor-navpill .cb-mega__cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hor-navpill .cb-mega__heading { display: flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.hor-navpill .cb-mega__col[data-cols="2"] { grid-column: span 2; }
.hor-navpill .cb-mega__col[data-cols="2"] > .cb-mega__links { columns: 2; }
.hor-navpill .cb-mega__col[data-cols="3"] { grid-column: 1 / -1; }
.hor-navpill .cb-mega__col[data-cols="3"] > .cb-mega__links { columns: 3 150px; }
.hor-navpill .cb-mega__links li { break-inside: avoid; }
.hor-navpill .cb-mega__links--sub { padding-left: 14px; border-left: 1px solid var(--hor-line); margin-left: 16px; }
.hor-navpill .cb-mega__link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 12px; color: var(--hor-ink-2); }
.hor-navpill .cb-mega__link:hover, .hor-navpill .cb-mega__link[aria-current="page"] { background: var(--hor-chip); color: var(--hor-ink); }
.hor-navpill .cb-mega__icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; }
.hor-navpill .cb-mega__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.hor-navpill .cb-mega__icon[data-icon-kind="mask"] { mask: var(--ve-nav-icon) center / contain no-repeat; background: currentColor; }
.hor-navpill .cb-mega__text, .hor-navpill .cb-mega__promo { display: grid; gap: 2px; }
.hor-navpill .cb-mega__label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.hor-navpill .cb-mega__note { font-size: 12px; color: var(--hor-ink-3); }
.hor-navpill .cb-mega__badge { padding: 1px 6px; border: 1px solid var(--hor-line); border-radius: 999px; font: 500 10px/1.5 var(--font-hor-mono), ui-monospace, monospace; text-transform: uppercase; color: var(--hor-accent); }
.hor-navpill .cb-mega__lock svg { width: 12px; height: 12px; }
.hor-navpill .cb-mega__aside { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hor-navpill .cb-mega__tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.hor-navpill .cb-mega__tile, .hor-navpill .cb-mega__promo { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--hor-line); border-radius: 14px; font-size: 13px; color: var(--hor-ink-2); }
.hor-navpill .cb-mega__tile:hover, .hor-navpill .cb-mega__promo:hover { border-color: var(--hor-line-strong); color: var(--hor-ink); }
.hor-navpill .cb-mega img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
.hor-navpill .cb-mega__promo strong { font-weight: 500; color: var(--hor-ink); }
.hor-navpill .cb-mega[data-layout="drawer"] .cb-mega__cols { grid-template-columns: 1fr; }
@media (max-width: 639px) { .hor-navpill .cb-mega__col[data-cols] { grid-column: auto; } .hor-navpill .cb-mega__col[data-cols] > .cb-mega__links { columns: 1; } }
