/*
 * Mobile menu (modules/mobile_menu.php, Figma "Menu · Mobile"): the full-height sheet opened by the burger, on the site
 * (modules/header.php, after css/v1.css) and on the blog (WordPress theme header.php, after the theme's own CSS).
 * One copy for both, so they cannot drift apart (2026-11-16: the blog still had the old side panel that pushed the
 * page aside). The site's navbar on phones (logo, Download, burger) is in css/v1.css; the blog's is at the end here.
 */

/* the sheet stays hidden until the burger opens it (html.wsk-menu-open); on the blog the burger and the Download button
 * show below 980px only (on computers the blog keeps its own menus and App Store icon) */
.wsk-menu,
.wsk-blog-navbar .wsk-burger,
.wsk-blog-navbar .wsk-blog-download {
	display: none;
}

/* FontAwesome 3.0.1 icons of the menu and the burger. The site has them everywhere (css/wisuki.css); the blog theme has
 * only Bootstrap's image icons, so here they are scoped to the menu. */
@font-face {
	font-family: FontAwesome;
	src: url(../font/fontawesome-webfont.woff) format('woff'), url(../font/fontawesome-webfont.ttf) format('truetype');
	font-weight: normal;
	font-style: normal;
}
.wsk-menu [class^="icon-"],
.wsk-burger [class^="icon-"],
.wsk-blog-download [class^="icon-"] {
	display: inline;
	width: auto;
	height: auto;
	margin-top: 0;
	line-height: normal;
	vertical-align: baseline;
	background-image: none;
	font-family: FontAwesome;
	font-weight: normal;
	font-style: normal;
}
.wsk-menu .icon-user:before { content: "\f007"; }
.wsk-menu .icon-chevron-right:before { content: "\f054"; }
.wsk-menu .icon-globe:before { content: "\f0ac"; }
.wsk-burger .icon-reorder:before { content: "\f0c9"; }
.wsk-blog-download .icon-download-alt:before { content: "\f019"; }

/* below 980px: on the site the burger only shows below 768px (css/v1.css), the blog's navbar collapses below 980px */
@media (max-width: 979px) {

	html.wsk-menu-open,
	html.wsk-menu-open body {
		overflow: hidden;
	}
	html.wsk-menu-open .wsk-menu {
		display: block;
		position: fixed;
		z-index: 1040;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		padding-bottom: 24px;
	}
	.wsk-menu-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 48px;
		padding: 0 12px;
		border-bottom: 1px solid #eee;
	}
	.wsk-menu-head img {
		filter: invert(.8); /* the white navbar logo, dark on the white sheet */
	}
	.wsk-menu-close {
		background: none;
		border: 0;
		padding: 0 4px;
		font-size: 30px;
		line-height: 30px;
		color: #333;
	}
	.wsk-menu ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.wsk-menu-main {
		padding: 8px 12px !important;
	}
	.wsk-menu-main a {
		display: block;
		padding: 9px 10px;
		font-size: 15px;
		font-weight: bold;
		color: #333;
		text-decoration: none;
		border-radius: 4px;
	}
	.wsk-menu-main .active a {
		color: #fff;
		background: #08c;
	}
	.wsk-menu-login {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 4px 12px 12px;
		padding: 10px 12px;
		color: #333;
		text-decoration: none;
		background: #f5f5f5;
		border: 1px solid #ddd;
		border-radius: 4px;
	}
	.wsk-menu-login span {
		flex: 1;
	}
	.wsk-menu-login strong,
	.wsk-menu-login small {
		display: block;
	}
	.wsk-menu-login small {
		color: #999;
	}
	.wsk-menu-section {
		margin: 8px 12px 0;
		padding: 8px 10px 4px;
		font-size: 11px;
		font-weight: bold;
		text-transform: uppercase;
		color: #999;
		border-top: 1px solid #eee;
	}
	.wsk-menu-links {
		padding: 0 12px !important;
	}
	.wsk-menu-links a {
		display: block;
		position: relative;
		padding: 9px 10px;
		font-size: 14px;
		color: #08c;
		text-decoration: none;
		border-bottom: 1px solid #eee;
	}
	.wsk-menu-links a:after {
		content: "\f054"; /* FontAwesome chevron-right */
		font-family: FontAwesome;
		position: absolute;
		right: 10px;
		font-size: 10px;
		color: #999;
	}
	.wsk-menu-language {
		display: flex;
		align-items: center;
		gap: 8px;
		margin: 16px 12px 0;
		padding: 10px 12px;
		font-weight: bold;
		color: #333;
		border: 1px solid #ddd;
		border-radius: 4px;
	}
	.wsk-menu-language span {
		flex: 1;
	}
	.wsk-menu-language select {
		width: auto;
		margin: 0;
		border: 0;
		background: none;
		color: #999;
		text-align: right;
	}

	/* --- blog (theme header.php, .navbar.wsk-blog-navbar): logo on the left, Download and the burger on the right as on
	 *     the site (css/v1.css), instead of the theme's side panel (.nav-panel, opened by .btn-navbar) --- */
	.wsk-blog-navbar .btn-navbar,
	.wsk-blog-navbar .nav-panel {
		display: none !important;
	}
	.wsk-blog-navbar .container-fluid {
		position: relative;
	}
	.wsk-blog-navbar .brand {
		text-align: left;
	}
	.wsk-blog-navbar .brand object {
		margin-left: 0;
	}
	.wsk-blog-navbar .wsk-burger {
		display: block;
		position: absolute;
		top: 50%;
		right: 12px;
		margin-top: -15px;
		padding: 2px 4px;
		background: none;
		border: 0;
		color: #fff;
		font-size: 22px;
		line-height: 26px;
	}
	.wsk-blog-navbar .wsk-blog-download {
		display: block;
		position: absolute;
		top: 50%;
		right: 47px; /* 8px left of the burger */
		margin-top: -15px;
	}
	.wsk-blog-navbar .wsk-blog-download .btn {
		padding: 4px 12px;
		font-size: 13px;
		font-weight: bold;
		line-height: 20px;
		color: #fff;
		white-space: nowrap;
	}
	.wsk-blog-navbar .wsk-blog-download .btn [class^="icon-"] {
		margin-right: 4px;
	}
}
