/* "more" menu in every header: index · market · launch … more ▾ · docs · wallet.
   Holds updates, flywheel, rewards, genesis, mining, explorer. Same type as the neighbouring header links. */
.site-more{position:relative;display:inline-flex;align-items:center;flex:none}
.site-more-toggle{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#e7e8eb;font:13px/1.4 var(--font-ui,monospace);white-space:nowrap}
.site-more-toggle svg{flex:none!important;display:block!important;width:9px!important;height:9px!important;min-width:0!important;margin:1px 0 0!important;padding:0!important;fill:none!important;overflow:visible}
/* Site themes tint buttons on hover; this one stays the colour of the links beside it. */
.site-more .site-more-toggle:is(:hover,:focus,:active){color:#e7e8eb!important;background:none!important;border:0!important;box-shadow:none!important}
.site-more-toggle:focus-visible{outline:2px solid #ff914f;outline-offset:4px}
.site-more-toggle>span{text-underline-offset:5px}
.site-more-toggle:hover>span,.site-more[data-current]>.site-more-toggle>span,.site-more[data-open]>.site-more-toggle>span{text-decoration:underline}
/* The menu's top padding bridges the gap to the header edge so the pointer can travel into it. */
.site-more-menu{display:none;position:absolute;top:100%;left:-14px;z-index:1000;padding-top:12px}
.site-more-list{display:flex;flex-direction:column;min-width:150px;padding:6px;border:1px solid #41454b;border-radius:5px;background:#232529;box-shadow:0 12px 28px rgba(0,0,0,.4)}
.site-more-list>a{display:block;padding:8px 10px;border-radius:3px;color:#e7e8eb!important;font:13px/1.4 var(--font-ui,monospace)!important;white-space:nowrap;text-decoration:none!important}
.site-more-list>a:is(:hover,:focus-visible){background:#2f3237;outline:none}
.site-more-list>a[aria-current="page"]{text-decoration:underline!important;text-underline-offset:5px}
.site-more[data-open]>.site-more-menu,.site-more:not([data-js]):focus-within>.site-more-menu{display:block}
@media(hover:hover){.site-more:hover>.site-more-menu{display:block}.site-more:hover>.site-more-toggle svg{transform:rotate(180deg)}}
.site-more[data-open]>.site-more-toggle svg{transform:rotate(180deg)}

/* Placement: the menu takes the auto margin; docs sits beside it. */
body>header>.site-more,#root>.launch-site-header>.site-more{order:2!important;margin-left:auto!important}
:is(body>header,#root>.launch-site-header,header.site):has(>nav[aria-label="Main navigation"]):has(>.site-more)>.site-docs{margin-left:0!important}
/* Monero Market (body.mk) orders its utility links 2; the Move page keeps document order and 14px links. */
body>header.site>.site-more{order:0!important}
body.mk>header.site>.site-more{order:2!important}
body:not(.mk)>header.site>.site-more .site-more-toggle{font-size:14px}
/* React launch header: the menu takes the type of the docs link beside it. */
#root>.launch-site-header .site-more-toggle{font:inherit}
/* React launch header: the pages now inside the menu leave the main row. */
#root>.launch-site-header>nav[aria-label="Main navigation"]>a:is([href="/flywheel/"],[href="/genesis/"],[href="/rewards/"]){display:none!important}

/* Narrow screens: logo and wallet on the first row, then index · market · launch on the left and more · docs on the right. */
@media(max-width:860px){
 :is(body>header,#root>.launch-site-header):has(>nav[aria-label="Main navigation"]):has(.site-more){height:auto!important;flex-wrap:wrap!important;padding:12px 16px!important;gap:12px 18px!important}
 :is(body>header,#root>.launch-site-header):has(>nav[aria-label="Main navigation"]):has(.site-more)::after{content:""!important;display:block!important;order:1!important;flex:0 0 100%!important;height:0!important;margin:-6px 0!important}
 :is(body>header,#root>.launch-site-header):has(>nav[aria-label="Main navigation"]):has(.site-more)>.wordmark{order:0!important;margin-right:auto!important}
 :is(body>header,#root>.launch-site-header):has(>nav[aria-label="Main navigation"]):has(.site-more)>:is(.header-actions,.launch-header-actions){display:contents!important}
 :is(body>header,#root>.launch-site-header):has(>nav[aria-label="Main navigation"]):has(.site-more) :is(#xmr20-wallet-root,.wallet-nav){order:0!important;flex-basis:auto!important;margin:0!important}
 :is(body>header,#root>.launch-site-header):has(>nav[aria-label="Main navigation"]):has(.site-more)>nav[aria-label="Main navigation"]{display:flex!important;order:2!important;flex:0 0 auto!important;width:auto!important;gap:18px!important}
 :is(body>header,#root>.launch-site-header):has(>nav[aria-label="Main navigation"]):has(.site-more) .site-more{order:3!important;margin:0 0 0 auto!important}
 :is(body>header,#root>.launch-site-header):has(>nav[aria-label="Main navigation"]):has(.site-more) :is(.site-docs,.header-docs){order:4!important;margin:0!important;font-size:13px!important;min-height:0!important}
 :is(body>header,#root>.launch-site-header):has(.site-more) .site-more-menu{left:auto;right:-14px}
 #root>.launch-site-header .site-more{font-size:13px!important}
}
/* The Monero Market hides its navigation on narrow screens and the menu follows; Move and Trade keep theirs, so the menu stays beside it. */
@media(max-width:860px){body.mk>header.site>.site-more{display:none}body:not(.mk)>header.site .site-more-menu{left:auto;right:-14px}body:not(.mk)>header.site:has(>.site-more){overflow:visible!important}}
