/* Barra Site Fixes: phone and tablet menu (the theme switches to the phone menu at 1080px). */
@media (max-width: 1080px) {
	/* The header blur squashed the menu panel to one line; give the panel the full screen height. */
	.bpt-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); }
	.bpt-nav { height: calc(100vh - var(--bpt-header-h)); height: calc(100dvh - var(--bpt-header-h)); }
	.admin-bar .bpt-nav { height: calc(100dvh - var(--bpt-header-h) - 46px); }

	/* Fold sub-menus away until their arrow is tapped. */
	.bpt-nav .menu-item-has-children.bsf-ready { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: stretch; }
	.bpt-nav .menu-item-has-children.bsf-ready > .sub-menu { grid-column: 1 / -1; display: none; }
	.bpt-nav .menu-item-has-children.bsf-open > .sub-menu { display: block; }

	.bsf-sub-toggle {
		display: flex; align-items: center; justify-content: center;
		margin: 0; padding: 0; min-height: 48px;
		background: none; border: 0; border-bottom: 1px solid var(--bpt-line, #e3e1db);
		color: var(--bpt-navy, #002d62); cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.bsf-sub-toggle::before {
		content: ""; width: 10px; height: 10px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: translateY(-3px) rotate(45deg); transition: transform .2s;
	}
	.bsf-open > .bsf-sub-toggle::before { transform: translateY(3px) rotate(-135deg); }
	.bsf-open > a { color: var(--bpt-gold-dark, #c1913a); }
	.bsf-sub-toggle:focus-visible { outline: 2px solid var(--bpt-gold, #d9a84e); outline-offset: -2px; }
}
@media (min-width: 1081px) {
	.bsf-sub-toggle { display: none; }
}
