.tls2 { position: relative; display: flex; color: inherit; }
.tls2--header, .tls2--mobile { position: static; } /* panel anchors to the header bar, not the small button wrapper */
/* Above the themes' scroll-to-top button (bottom right); a top corner collides with the sticky menus. */
.tls2--floating { position: fixed; bottom: 96px; right: 28px; z-index: 9990; }
.tls2__btn {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color .3s, color .3s;
}
.tls2__btn svg { width: 24px; height: 24px; }
.tls2__btn:hover, .tls2__btn[aria-expanded="true"] { background: var(--tlt-theme, #e3ff04); color: #0a0c00; }
.tls2__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tls2--floating .tls2__btn { background: #fff; color: #0a0c00; box-shadow: 0 4px 16px rgba(10, 12, 0, .18); }
.tls2--floating .tls2__btn:hover, .tls2--floating .tls2__btn[aria-expanded="true"] { background: var(--tlt-theme, #e3ff04); }

.tls2__panel {
	position: absolute; top: calc(100% + 8px); right: 16px; z-index: 30; box-sizing: border-box;
	width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 230px); overflow-y: auto; overscroll-behavior: contain;
	padding: 24px 24px 12px; background: #fff; color: #0a0c00; text-align: left; box-shadow: 0 12px 40px rgba(10, 12, 0, .18);
	font-size: 14px; line-height: 1.4; letter-spacing: normal; text-transform: none;
}
.tls2--floating .tls2__panel { top: auto; bottom: calc(100% + 12px); right: 0; width: min(1040px, calc(100vw - 76px)); max-height: calc(100vh - 180px); } /* the globe sits 28 px from the edge; 100vw includes the scrollbar */
.tls2__panel[hidden] { display: none; }
.tls2 .tls2__head {
	position: sticky; top: -24px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: -24px -24px 0; padding: 20px 16px 8px 24px; background: #fff;
}
.tls2 .tls2__close {
	display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: #0a0c00; cursor: pointer;
}
.tls2 .tls2__close:hover { background: #f1f2ec; }
.tls2 .tls2__close:focus-visible { outline: 2px solid #0a0c00; outline-offset: 2px; }
.tls2 .tls2__title { margin: 0; font-family: var(--tlt-font-title, inherit); font-size: 22px; font-weight: 700; line-height: 1.25; color: #0a0c00; }
.tls2 .tls2__group {
	margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid #e4e5df;
	font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #55574c;
}
.tls2 .tls2__head + .tls2__group { margin-top: 8px; border-top: 0; padding-top: 0; }
.tls2 .tls2__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.tls2 .tls2__grid li { margin: 0; padding: 0; list-style: none; }
.tls2 .tls2__grid li::before, .tls2 .tls2__grid li::marker { content: none; }
.tls2 a.tls2__item {
	display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; box-sizing: border-box;
	color: #0a0c00; text-decoration: none; background: transparent; transition: background-color .2s;
}
.tls2 a.tls2__item:hover, .tls2 a.tls2__item:focus-visible { background: #f1f2ec; color: #0a0c00; }
.tls2 a.tls2__item:focus-visible { outline: 2px solid #0a0c00; outline-offset: -2px; }
.tls2 a.tls2__item[aria-current="page"] { background: #0a0c00; color: #fff; }
.tls2 .tls2__flag { flex: none; width: 28px; height: 21px; margin: 2px 0 0; box-shadow: 0 0 0 1px rgba(10, 12, 0, .15); }
.tls2 .tls2__text { display: block; min-width: 0; }
.tls2 .tls2__name { display: block; font-family: var(--tlt-font-title, inherit); font-size: 15px; font-weight: 600; line-height: 1.3; }
.tls2 .tls2__desc { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 1.4; color: #55574c; }
.tls2 a.tls2__item[aria-current="page"] .tls2__desc { color: #d6d8cc; }

@media (max-width: 991px) {
	.tls2--floating { bottom: 72px; right: 14px; }
	.tls2__panel, .tls2--floating .tls2__panel {
		position: fixed; top: 72px; bottom: auto; right: 16px; left: 16px; width: auto; max-height: calc(100vh - 136px); padding: 20px 16px 72px;
	}
	.tls2 .tls2__head { top: -20px; margin: -20px -16px 0; padding: 12px 8px 8px 16px; }
	.tls2 .tls2__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.tls2__btn, .tls2 a.tls2__item { transition: none; }
}
