/*
 * Menu icons without an icon font (2026-11-17).
 *
 * The header's hamburger, close, submenu and search glyphs came from the
 * fontello icon font. Content blockers and Lockdown-style font blocking stop
 * that file, and the glyphs then render as empty boxes. These rules draw the
 * same icons as inline SVG masks painted with currentColor, so every template's
 * existing colour rule (ink on light headers, white on dark headers and in the
 * open drawer) still decides the colour. Nothing here is fetched.
 *
 * Specificity: the repeated class outranks every per-template ::before rule
 * that sets content or size (strongest today: 0,4,3 in jt-sys-archive.css);
 * colour declarations stay with their owners.
 */

:root {
	--jt-icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6.75h18M3 12h18M3 17.25h18' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	--jt-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 5.5l13 13M18.5 5.5l-13 13' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	--jt-icon-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.25l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--jt-icon-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 14.75l6-6 6 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--jt-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.25' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M15.25 15.25L20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Hamburger and its open-state close mark. */
html body .menu-toggle.menu-toggle.menu-toggle.menu-toggle.menu-toggle::before {
	content: "";
	display: block;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	font: 0/0 a;
	line-height: 0;
	background: currentColor;
	box-shadow: none;
	border-radius: 0;
	-webkit-mask: var(--jt-icon-menu) center / contain no-repeat;
	mask: var(--jt-icon-menu) center / contain no-repeat;
	transform: none;
	transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

html body .menu-toggle.menu-toggle.menu-toggle.menu-toggle.menu-toggle.activated::before {
	-webkit-mask-image: var(--jt-icon-close);
	mask-image: var(--jt-icon-close);
}

/* Submenu disclosure in the drawer. */
html body .sub-menu-toggle.sub-menu-toggle.sub-menu-toggle.sub-menu-toggle::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin: 0;
	font: 0/0 a;
	line-height: 0;
	vertical-align: middle;
	background: currentColor;
	-webkit-mask: var(--jt-icon-down) center / contain no-repeat;
	mask: var(--jt-icon-down) center / contain no-repeat;
	transform: none;
}

html body .sub-menu-toggle.sub-menu-toggle.sub-menu-toggle.sub-menu-toggle.activated::before {
	-webkit-mask-image: var(--jt-icon-up);
	mask-image: var(--jt-icon-up);
}

/* Search toggle and submit inside the menu. */
html body .jt-menu-search .jt-menu-search__toggle.jt-menu-search__toggle span::before,
html body .jt-menu-search .jt-menu-search__submit.jt-menu-search__submit span::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	font: 0/0 a;
	line-height: 0;
	vertical-align: middle;
	background: currentColor;
	-webkit-mask: var(--jt-icon-search) center / contain no-repeat;
	mask: var(--jt-icon-search) center / contain no-repeat;
}

/* The open drawer is opaque: the page under it no longer shows through, and the
   header bar and the list share one ground. */
@media only screen and (max-width: 1299px) {
	html body.fullb.fullb .site-header,
	html body.fullb.fullb .site-header:has(.menu-toggle.activated),
	html body.js.fullb .site-header nav.nav-header {
		background: #141a16;
		background: oklch(20.5% .012 155);
	}
}

@media (prefers-reduced-motion: reduce) {
	html body .menu-toggle.menu-toggle.menu-toggle.menu-toggle.menu-toggle::before { transition: none; }
}
