/* Scoped to the main navigation: the legacy page and forum keep their styles. */
.tv-nav, .tv-nav * { box-sizing: border-box; }
.tv-nav { position: relative; z-index: 20; margin: 0 12px 14px; font: 600 13px/1.4 Verdana, Arial, sans-serif; color: #4a49a8; }
.tv-nav ul { list-style: none; margin: 0; padding: 0; }
.tv-nav__groups { display: flex; gap: 4px; padding: 5px !important; border: 1px solid #8a8ccc; border-radius: 12px; background: #cbcbef; background: linear-gradient(#e1e1f7, #cbcbef); box-shadow: 0 3px 10px rgba(24, 34, 79, .2); }
.tv-nav__groups > li { flex: 1 1 auto; min-width: 0; }
.tv-nav__group { position: relative; }
.tv-nav summary { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 12px; border-radius: 8px; color: #4a49a8; cursor: pointer; list-style: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.tv-nav summary::-webkit-details-marker { display: none; }
.tv-nav summary::marker { content: ''; }
.tv-nav summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.tv-nav summary:hover, .tv-nav__group[open] > summary { color: #fff; background: #4a49a8; }
.tv-nav__group[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.tv-nav summary:focus-visible, .tv-nav a:focus-visible { outline: 3px solid #4a49a8; outline-offset: 3px; }
.tv-nav .tv-nav__links { position: absolute; top: calc(100% + 6px); left: 0; z-index: 21; width: 260px; max-width: calc(100vw - 32px); padding: 7px; border: 1px solid #8a8ccc; border-radius: 10px; background: #e1e1f7; box-shadow: 0 10px 24px rgba(24, 34, 79, .26); max-height: min(65vh, 520px); overflow-y: auto; }
.tv-nav__groups > li:nth-last-child(-n+2) .tv-nav__links { left: auto; right: 0; }
.tv-nav .tv-nav__links a { display: block; padding: 11px 12px; border-radius: 6px; color: #39387f; font: 500 13px/1.5 Verdana, Arial, sans-serif; text-decoration: none; overflow-wrap: break-word; transition: background-color .15s, color .15s; }
.tv-nav .tv-nav__links li + li { border-top: 1px solid rgba(138, 140, 204, .25); }
.tv-nav .tv-nav__links a:hover, .tv-nav .tv-nav__links a:focus-visible { background: #4a49a8; color: #fff; }
.tv-nav .tv-nav__links a[aria-current="page"] { background: #cbcbef; color: #39387f; font-weight: 700; box-shadow: inset 3px 0 #4a49a8; }
.tv-nav .tv-nav__links a[aria-current="page"]:hover, .tv-nav .tv-nav__links a[aria-current="page"]:focus-visible { background: #4a49a8; color: #fff; }
@media (max-width: 640px) {
  .tv-nav__groups { flex-wrap: wrap; }
  .tv-nav__groups > li { flex: 1 1 30%; }
  .tv-nav summary { white-space: normal; }
  .tv-nav__groups > li .tv-nav__links { left: 0; right: auto; }
  .tv-nav__groups > li:nth-child(3n) .tv-nav__links { left: auto; right: 0; }
}
@media (prefers-reduced-motion: reduce) { .tv-nav *, .tv-nav summary::after { transition: none; } }
