/* One compact header row at every viewport size. */
:root[data-theme] .site-header{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding:16px clamp(16px,5vw,72px);gap:16px;height:auto;min-height:80px;direction:ltr}
:root[data-theme] .site-header>.brand{flex:0 0 auto;margin:0}
:root[data-theme] .site-header #navigation.compact-navigation{display:flex;flex:0 0 auto;align-self:center;align-items:center;justify-content:flex-end;gap:10px;width:auto;height:auto;margin:0;padding:0;border:0;overflow:visible}
:root[data-theme] .site-header #navigation.compact-navigation>a,:root[data-theme] .site-header #navigation.compact-navigation>button{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--text);margin:0}
:root[data-theme] .site-header #navigation.compact-navigation>a::after{display:none}
.site-header #navigation svg{display:block;width:22px;height:22px}
:root[data-theme] .site-header #navigation.compact-navigation>button:hover,:root[data-theme] .site-header #navigation.compact-navigation>a:hover{border-color:var(--pink);color:var(--pink)}
:root[data-theme] footer{flex-wrap:wrap}
.footer-preferences{flex:1 0 100%;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:22px;margin-top:4px}
:root[data-theme] .footer-preferences .language-picker{display:block;position:relative;margin:0;max-width:100%}
:root[data-theme] .footer-preferences .language-select{display:block;width:190px;max-width:100%;min-height:44px;font-size:16px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:8px 16px}
:root[data-theme] .footer-preferences .theme-switch{display:flex;position:static;margin:0}
:root[data-theme] dialog.explore-menu{position:fixed;inset:0 0 0 auto;width:min(560px,100%);max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:clamp(20px,5vw,40px);border:0;border-inline-start:1px solid var(--line);border-radius:0;background:var(--bg);color:var(--text);overflow-y:auto;overscroll-behavior:contain;box-shadow:-20px 0 80px #0005}
.explore-menu::backdrop{background:#08061199;backdrop-filter:blur(8px)}
.explore-menu-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.explore-menu-top strong{font-size:24px}
.menu-close{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:1px solid var(--line);border-radius:50%;background:var(--panel);font-size:30px;line-height:1}
.explore-menu-links{display:flex;flex-direction:column}
.explore-menu-links a{display:block;padding:19px 0;border-bottom:1px solid var(--line);font-size:clamp(18px,3vw,24px);font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.explore-menu-links a:hover{color:var(--pink)}
body:has(.explore-menu[open]){overflow:hidden}
@media(max-width:480px){:root[data-theme] .site-header{padding:12px 16px;gap:10px;min-height:72px}:root[data-theme] .site-header #navigation.compact-navigation{gap:8px}}

/* Keep the same logo and home shortcut in the open navigation. */
.explore-menu-top{direction:ltr}
.menu-logo{display:block;flex:0 0 64px;width:64px;height:64px}
.menu-logo img{display:block;width:100%;height:100%;object-fit:contain}
.menu-actions{display:flex;align-items:center;gap:10px}
.menu-home{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--text)}
.menu-home svg{width:22px;height:22px}
.menu-home:hover{border-color:var(--pink);color:var(--pink)}

/* Four expandable navigation groups share the existing glass surface. */
.explore-menu-links{gap:10px;padding-top:20px}
.menu-group{border:1px solid var(--line);border-radius:18px;background:var(--panel);overflow:hidden}
.menu-group h2{margin:0;font:inherit}
.menu-group-toggle{display:flex;align-items:center;gap:14px;width:100%;min-height:76px;padding:18px;text-align:start;color:var(--text);background:transparent;border:0;font:inherit;font-size:clamp(18px,3vw,22px);font-weight:650;line-height:1.35;cursor:pointer}
.menu-group-toggle>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.menu-group-icon{display:grid;place-items:center;flex:0 0 32px;color:var(--pink)}
.menu-group-icon svg{width:26px;height:26px}
.menu-group-chevron{width:20px;height:20px;flex:0 0 20px}
.menu-group-toggle[aria-expanded="true"] .menu-group-chevron{transform:rotate(90deg)}
.menu-group-toggle:hover,.menu-group-toggle[aria-expanded="true"]{background:color-mix(in srgb,var(--pink) 8%,transparent)}
.menu-group-pages[hidden]{display:none!important}
.menu-group-pages{padding:0 18px 12px}
.explore-menu-links .menu-group-pages a{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 8px;font-size:17px;border-bottom:1px solid var(--line);line-height:1.4}
.menu-group-pages a:last-child{border-bottom:0}
.menu-group-pages a svg{width:19px;height:19px;flex:0 0 19px;color:var(--pink)}
.menu-group-toggle:focus-visible,.menu-group-pages a:focus-visible{outline:2px solid var(--pink);outline-offset:-4px;border-radius:12px}
[dir="rtl"] .menu-group-chevron{transform:rotate(180deg)}
[dir="rtl"] .menu-group-toggle[aria-expanded="true"] .menu-group-chevron{transform:rotate(90deg)}
@media(max-width:480px){.menu-group-toggle{padding:15px;min-height:68px;gap:10px}.menu-group-pages{padding-inline:12px}}
