
/* top menu, as on settel.io: three of the items open a small menu */
html .glinks, html .nav .links { overflow: visible; }
html .glinks .dd, html .nav .links .dd { position: relative; display: inline-flex; align-items: center; }
html .glinks .dd-t, html .nav .links .dd-t { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; cursor: pointer; user-select: none; }
html .glinks .dd-t svg, html .nav .links .dd-t svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
html .glinks .dd.open .dd-t svg, html .nav .links .dd.open .dd-t svg { transform: rotate(180deg); }
html .glinks .dd-t:focus-visible, html .nav .links .dd-t:focus-visible, html .ddm a:focus-visible { outline: 2px solid light-dark(#833CEF, #b794ff); outline-offset: 3px; border-radius: 8px; }
html .ddm { position: absolute; top: 100%; left: -14px; z-index: 80; display: block; width: 290px; padding: 8px; border: 1px solid light-dark(rgba(23, 20, 28, 0.09), rgba(223,218,230,0.09)); border-radius: 16px; background: light-dark(#fff, #272033); box-shadow: 0 24px 50px -24px rgba(23, 20, 28, 0.35), 0 2px 8px rgba(23, 20, 28, 0.06); white-space: normal; text-align: left; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; }
html .ddm::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }   /* the pointer can cross the gap */
html .dd:last-child .ddm { left: auto; right: -14px; }
html .dd.open .ddm { visibility: visible; opacity: 1; transform: translateY(0); transition: opacity 0.18s ease, transform 0.18s ease; }
html .glinks .ddm a, html .nav .links .ddm a { display: block; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.35; letter-spacing: 0; color: light-dark(#17141C, #f4f0fa) !important; text-decoration: none !important; box-shadow: none !important; white-space: normal; }
html .glinks .ddm a::before, html .glinks .ddm a::after, html .nav .links .ddm a::before, html .nav .links .ddm a::after { content: none !important; }
html .glinks .ddm a:hover, html .nav .links .ddm a:hover { background: light-dark(#F4EEFE, #1c132a); }
html .ddm b { display: flex; align-items: center; gap: 7px; font-weight: 600; }
html .ddm small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: light-dark(#635D6C, #ada2bb); }
html .ddm em { padding: 1px 7px; border: 1px solid light-dark(#E5DEF2, #211733); border-radius: 999px; font-size: 10.5px; font-style: normal; font-weight: 600; color: light-dark(#5B25B8, #b69de1); }
html .gpanel .gh { flex: none; margin: 0; padding: 18px 0 4px; font: 600 13px/1.4 Inter, system-ui, sans-serif; letter-spacing: 0.04em; color: light-dark(#6A2AD4, #b79de1); }
html .gpanel a.sub { padding: 10px 0 10px 14px; font-size: 18px; line-height: 24px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { html .ddm, html .glinks .dd-t svg { transition: none !important; transform: none; } }
/* once the page has moved, the bar turns to light frosted glass: what passes underneath shows faintly through */
html .gnav.scrolled, html .nav.scrolled { background: light-dark(rgba(247, 245, 242, 0.70), rgba(40,33,23,0.7)); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.65), 0 1px 0 rgba(23, 20, 28, 0.06), 0 10px 28px -18px rgba(23, 20, 28, 0.28); }
html .gnav.dark.scrolled { background: light-dark(rgba(21, 17, 29, 0.68), rgba(222,217,232,0.68)); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.10), 0 10px 28px -18px rgba(0, 0, 0, 0.55); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { html .gnav.scrolled, html .nav.scrolled { background: light-dark(rgba(247, 245, 242, 0.97), rgba(40,33,23,0.97)); } html .gnav.dark.scrolled { background: light-dark(rgba(21, 17, 29, 0.97), rgba(222,217,232,0.97)); } }
@media (prefers-reduced-transparency: reduce) { html .gnav.scrolled, html .nav.scrolled { background: light-dark(#F7F5F2, #15111d); -webkit-backdrop-filter: none; backdrop-filter: none; } html .gnav.dark.scrolled { background: light-dark(#15111D, #ded9e8); } }
html.menu-open .gnav, html.menu-open .nav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
