/* Phone menu: frosted dark-green glass + chapel stencil (CR, 2026-11-22; mockup "Chapel stencil").
   Every width where the dark-green ☰ menu can open (CR, 2026-11-22: "anything that uses the dark green menu"): up to
   1024px normally, and 1025-1279px when the site falls back to the menu button (enlarged text, narrow touch screens).
   Phones (below 768px): full-screen sheet as before. From 768px: a 480px drawer from the right (round 2, CR: the
   full-width sheet "stays too long" on wide screens), with the page dimmed and softly blurred to its left; tapping
   there closes it as before (Kadence's overlay).
   Everything is drawn as background layers of the menu sheet itself (.drawer-inner), so the menu's markup, spacing,
   fonts, colours, buttons, accordion and close button are untouched, and the layers stay put while the menu scrolls:
   1. chapel-stencil-corner.svg: CR's approved Chapel Stencil 01 (true vector, shapes unchanged), enlarged, upright,
      shown only as a soft diagonal band from the lower-right corner (round 2, CR), ivory at 6.5%, fading up and to the left (all inside that SVG; made by
      _migration/backup-menu-stencil-2026-11-23/make-stencil.py). Anchored to the lower-right corner.
   2. The header's glass texture (glass-a/-b, same 600px + 870px layering as glass-header.css), here at 10% strength.
   3. The existing frosted forest green, as before (.86), with the blur from polish.css kept.
   No blend modes (they would switch off the frosted blur in Chrome). */
@media (max-width: 1279.98px) {
	#mobile-drawer .drawer-inner {
		background-color: rgb(24 56 44 / .86);
		background-image:
			url("chapel-stencil-corner.svg"),
			url("glass-a-green.webp"),
			url("glass-b-green.webp");
		background-repeat: no-repeat, repeat, repeat;
		background-position: right bottom, center top, 63% 40%;
		background-size: min(100%, 760px) auto, 600px auto, 870px auto;
	}
	/* Browsers without frosted glass, and "reduce transparency": solid green, same texture and stencil. */
	@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
		#mobile-drawer .drawer-inner { background-color: #18382c; }
	}
	@media (prefers-reduced-transparency: reduce) {
		#mobile-drawer .drawer-inner { background-color: #18382c; }
	}
}
@media (max-width: 1279.98px) and (forced-colors: active) {
	#mobile-drawer .drawer-inner { background-image: none; }
}

/* Round 2: from 768px the sheet becomes a right-hand drawer (Kadence's side panel), 480px wide. */
@media (min-width: 768px) and (max-width: 1279.98px) {
	#mobile-drawer .drawer-inner { width: min(480px, 100vw); max-width: min(480px, 100vw); left: auto; right: 0; box-shadow: -18px 0 40px -24px rgb(10 24 18 / .55); }
	#mobile-drawer .drawer-content { padding-inline: 32px; }
	#mobile-drawer .drawer-overlay { background: rgb(14 30 22 / .32); }
	@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
		#mobile-drawer .drawer-overlay { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
	}
}
@media (min-width: 768px) and (max-width: 1279.98px) and (prefers-reduced-motion: no-preference) {
	#mobile-drawer .drawer-inner { transform: translateX(100%); transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
	#mobile-drawer.show-drawer.active .drawer-inner { transform: none; }
}

/* Tap highlight fix (2026-11-23, CR: on phones a tapped menu row stayed dark). Kadence's Customizer CSS gives menu
   rows a dark green block (palette 2) on :hover and on the current page's item; touch screens keep :hover after a
   tap, so the block stuck. Now: no dark block on touch; on mouse/trackpad screens only a faint light hover; the
   current page shows in gold text instead of a block; keyboard focus gets a visible gold ring (:focus-visible only);
   the browser's own grey tap flash is off (the brief press feedback from polish.css stays). Open groups keep
   their turned chevron (Kadence), no background. */
@media (max-width: 1279.98px) {
	#mobile-drawer, #mobile-drawer * { -webkit-tap-highlight-color: transparent; }
	#mobile-drawer .mobile-navigation ul li > a:hover,
	#mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap:hover,
	#mobile-drawer .mobile-navigation ul li.current-menu-item > a,
	#mobile-drawer .mobile-navigation ul li.current-menu-item.menu-item-has-children > .drawer-nav-drop-wrap,
	#mobile-drawer .mobile-navigation .drawer-sub-toggle,
	#mobile-drawer .mobile-navigation .drawer-sub-toggle:hover,
	#mobile-drawer .mobile-navigation .drawer-sub-toggle:focus { background: transparent; }
	#mobile-drawer .mobile-navigation ul li > a:hover,
	#mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap:hover { color: var(--global-palette9, #fff); }
	#mobile-drawer .mobile-navigation ul li.current-menu-item > a,
	#mobile-drawer .mobile-navigation ul li.current-menu-item.menu-item-has-children > .drawer-nav-drop-wrap > a { color: #E9D3A0; }
	#mobile-drawer .mobile-navigation :is(a, button):focus:not(:focus-visible) { outline: none; }
	#mobile-drawer .mobile-navigation :is(a, button):focus-visible { outline: 2px solid #E9D3A0; outline-offset: -2px; }
}
@media (max-width: 1279.98px) and (hover: hover) and (pointer: fine) {
	#mobile-drawer .mobile-navigation ul li > a:hover,
	#mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap:hover { background: rgb(255 255 255 / .06); }
}
