/**
 * Foliora: primary menu (assets/js/navigation.js).
 *
 * Desktop (992px and up): a row of links with dropdowns that open on hover
 * or keyboard focus. Mobile: the same list as a panel under the header,
 * opened by a <button>; each sub-menu has its own toggle button.
 * Without JavaScript (no .foliora-js on <html>) the mobile menu stays open.
 */

/* Menu items are the positioning box for their dropdowns and sub-menu
   buttons. Zero specificity, like the template rule it replaces
   (default.css "ul li"), so rules that place one item differently win. */
:where(#inner-navigation .nav) li {
	position: relative;
}

/* ---------- Menu button (mobile) ---------- */
.foliora-menu-toggle {
	display: none;
}

@media (max-width: 991px) {
	.foliora-js .foliora-menu-toggle {
		--foliora-toggle-edge: 12px;
		position: absolute;
		top: 50%;
		/* 42px wide: the 18px icon sits on the content edge and the button
		   ends exactly at the screen edge on phones (44px stuck out 1px). */
		inset-inline-end: calc(var(--foliora-toggle-edge) - 12px);
		display: flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 44px;
		margin-top: -22px;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: none;
		color: var(--foliora-text);
		cursor: pointer;
		z-index: 2;
	}

	/* Hamburger / close: SVG masks coloured with currentColor, 18x16px (an
	   even height keeps the lines on whole pixels in the 44px button). Thin
	   lines: 2px on standard screens (1.5px would blur across two pixels),
	   1.5px on screens with 1.25 or more device pixels per CSS pixel (Windows
	   scaling 125%, phones, Retina); the close cross is 1.5px. */
	.foliora-menu-toggle::before {
		content: "";
		width: 18px;
		height: 16px;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Crect y='2' width='18' height='2' rx='1'/%3E%3Crect y='7' width='18' height='2' rx='1'/%3E%3Crect y='12' width='18' height='2' rx='1'/%3E%3C/svg%3E") center / 18px 16px no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Crect y='2' width='18' height='2' rx='1'/%3E%3Crect y='7' width='18' height='2' rx='1'/%3E%3Crect y='12' width='18' height='2' rx='1'/%3E%3C/svg%3E") center / 18px 16px no-repeat;
	}

	.foliora-menu-toggle[aria-expanded="true"]::before {
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M3.5 2.5l11 11M14.5 2.5l-11 11' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M3.5 2.5l11 11M14.5 2.5l-11 11' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	}

	.foliora-menu-toggle:focus-visible {
		outline: 2px solid var(--foliora-link);
		outline-offset: 0;
	}
}

/* Scaled and high-density screens (125% and up): 1.5px lines. Weaker than the open
   state's cross above, which still wins. */
@media (max-width: 991px) and (min-resolution: 1.25dppx) {
	.foliora-menu-toggle::before {
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Crect y='2' width='18' height='1.5' rx='0.75'/%3E%3Crect y='7' width='18' height='1.5' rx='0.75'/%3E%3Crect y='12' width='18' height='1.5' rx='0.75'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Crect y='2' width='18' height='1.5' rx='0.75'/%3E%3Crect y='7' width='18' height='1.5' rx='0.75'/%3E%3Crect y='12' width='18' height='1.5' rx='0.75'/%3E%3C/svg%3E");
	}
}

/* Line the button's icon up with the container edge, like the site title. */
@media (min-width: 576px) and (max-width: 991px) {
	.foliora-js .foliora-menu-toggle {
		--foliora-toggle-edge: calc((100% - 540px) / 2 + 12px);
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.foliora-js .foliora-menu-toggle {
		--foliora-toggle-edge: calc((100% - 720px) / 2 + 12px);
	}
}

/* Search label: shown in the mobile panel only. */
.foliora-menu-search-label {
	display: none;
}

/* ---------- Desktop dropdowns ---------- */
@media (min-width: 992px) {
	#inner-navigation .foliora-submenu-toggle {
		display: none;
	}

	#inner-navigation .nav.navbar-nav li:hover > ul,
	#inner-navigation .nav.navbar-nav li:focus-within > ul {
		display: block;
		animation: foliora-dropdown 0.25s ease both;
	}

	/* Opening on hover waits a moment, so passing the pointer across the
	   menu doesn't flash dropdowns open. */
	#inner-navigation .nav.navbar-nav li:hover:not(:focus-within) > ul {
		animation-delay: 0.15s;
	}

	/* Escape closes the dropdown until the pointer or focus leaves it. */
	#inner-navigation .nav.navbar-nav li.is-dismissed > ul {
		display: none;
	}

	/* An invisible bridge over the gap between the link and its dropdown,
	   so the dropdown stays open while the pointer crosses it. */
	#inner-navigation .nav.navbar-nav > li > ul::before {
		content: "";
		position: absolute;
		inset-inline-start: 0;
		inset-inline-end: 0;
		bottom: 100%;
		height: 20px;
	}

	#inner-navigation .nav.navbar-nav a:focus-visible {
		outline: 3px solid var(--foliora-link);
		outline-offset: 3px;
	}

	/* Items with their own sub-menu: a small arrow, centred on the item's
	   height (titles can wrap) and kept clear of the text. The padding stays
	   the same on hover so the arrow doesn't move. */
	#inner-navigation .nav.navbar-nav li ul li.menu-item-has-children > a,
	#inner-navigation .nav.navbar-nav li ul li.menu-item-has-children:hover > a {
		position: relative;
		padding-inline-end: 40px;
	}

	#inner-navigation .nav.navbar-nav li ul li a .arrow-indicator {
		position: absolute;
		top: 50%;
		inset-inline-end: 18px;
		display: flex;
		float: none;
		margin-top: -5px;
		color: var(--foliora-muted);
		transition: transform 0.2s ease, color 0.2s ease;
	}

	#inner-navigation .nav.navbar-nav li ul li a .arrow-indicator .foliora-icon {
		width: 10px;
		height: 10px;
		vertical-align: top;
	}

	#inner-navigation .nav.navbar-nav li ul li:hover > a .arrow-indicator,
	#inner-navigation .nav.navbar-nav li ul li:focus-within > a .arrow-indicator {
		color: var(--foliora-text);
		transform: translateX(calc(2px * var(--foliora-dir, 1)));
	}

	#inner-navigation .nav.navbar-nav li ul a:focus-visible {
		outline-offset: -3px;
	}
}

@keyframes foliora-dropdown {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Menu drop-down animation (Customizer > Header). Fade, the default, is
   the animation above. Slide down: the drop-down unfolds from the menu bar
   (the clip keeps 24px around it for the shadow and the hover bridge).
   None: no movement, but the short hover delay stays, so passing the
   pointer across the menu still doesn't flash drop-downs open. Only the
   name and length change, so the hover delay above still applies. */
@keyframes foliora-dropdown-slide {
	from {
		opacity: 0.4;
		clip-path: inset(-24px -24px 100% -24px);
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		clip-path: inset(-24px);
		transform: none;
	}
}

@keyframes foliora-dropdown-none {
	from {
		visibility: hidden;
	}

	to {
		visibility: visible;
	}
}

@media (min-width: 992px) {
	.foliora-menu-slide #inner-navigation .nav.navbar-nav li:hover > ul,
	.foliora-menu-slide #inner-navigation .nav.navbar-nav li:focus-within > ul {
		animation-name: foliora-dropdown-slide;
		animation-duration: 0.28s;
		/* The clip is only for the opening: kept after it ends (fill "both")
		   it also cut off the sub-menu that opens beside this drop-down. */
		animation-fill-mode: backwards;
	}

	.foliora-menu-none #inner-navigation .nav.navbar-nav li:hover > ul,
	.foliora-menu-none #inner-navigation .nav.navbar-nav li:focus-within > ul {
		animation-name: foliora-dropdown-none;
		animation-duration: 1ms;
		animation-timing-function: step-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	#inner-navigation .nav.navbar-nav li > ul {
		animation: none !important;
	}
}

/* ---------- Menu panel ---------- */
/* Phones and tablets, in every layout. */
@media (max-width: 991px) {
	/* Rows: every row the same height with the capitals centred. Where the
	   browser can trim the line to the cap height (text-box) the padding is
	   equal; otherwise 12/12 with a 20px line (measured for Mukta 13px). */
	#inner-navigation #navbar {
		--foliora-mm-pad-top: 12px;
		--foliora-mm-pad-bottom: 12px;
		--foliora-mm-line: color-mix(in srgb, var(--foliora-on-accent) 10%, transparent);
		--foliora-mm-text: color-mix(in srgb, var(--foliora-on-accent) 82%, var(--foliora-accent));
		--foliora-mm-hover: color-mix(in srgb, var(--foliora-on-accent) 12%, var(--foliora-accent));
		--foliora-mm-sub: color-mix(in srgb, var(--foliora-on-accent) 6%, var(--foliora-accent));
		/* Without JavaScript: a full-width block below the title (the header
		   container is a wrapping flex row). */
		flex: 0 0 calc(100% + 24px);
		width: calc(100% + 24px);
		margin: 21px -12px -21px;
		text-align: start;
		background: var(--foliora-accent);
	}

	@supports (text-box: trim-both cap alphabetic) {
		#inner-navigation #navbar {
			--foliora-mm-pad-top: 18px;
			--foliora-mm-pad-bottom: 18px;
		}

		#inner-navigation #navbar a {
			text-box: trim-both cap alphabetic;
		}
	}

	/* With JavaScript the panel is closed until the button opens it, and it
	   floats over the page under the header. */
	.foliora-js #inner-navigation #navbar {
		display: none;
		position: absolute;
		top: 100%;
		inset-inline-start: 0;
		inset-inline-end: 0;
		width: auto;
		margin: 0;
		max-height: calc(100vh - 100%);
		max-height: calc(100dvh - 100%);
		overflow-y: auto;
		overscroll-behavior: contain;
		z-index: 1;
	}

	.foliora-js #inner-navigation.is-menu-open #navbar {
		display: block;
	}

	#inner-navigation #navbar .nav.navbar-nav {
		display: block;
		float: none;
		margin: 0;
		padding: 0;
	}

	#inner-navigation #navbar li {
		position: relative;
		display: block;
		margin: 0;
		padding: 0;
		background: none;
	}

	/* Link + toggle side by side; the sub-menu spans the full width below. */
	#inner-navigation #navbar li.foliora-has-submenu {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 50px;
	}

	#inner-navigation #navbar li.foliora-has-submenu > ul {
		grid-column: 1 / -1;
	}

	#inner-navigation #navbar a {
		display: block;
		padding: var(--foliora-mm-pad-top) 20px var(--foliora-mm-pad-bottom) !important;
		border: 0;
		border-bottom: 1px solid var(--foliora-mm-line);
		border-radius: 0;
		background: none;
		color: var(--foliora-mm-text) !important;
		/* Phone menu style: small capitals in the body font, unless the Menu
		   options in Typography say otherwise. */
		font-family: var(--foliora-font-menu, var(--foliora-font-body));
		font-size: calc(13px * var(--foliora-menu-scale, 1));
		font-weight: var(--foliora-menu-weight, 400);
		line-height: 20px;
		letter-spacing: var(--foliora-menu-spacing, normal);
		text-transform: var(--foliora-menu-transform, uppercase);
		text-align: start;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	#inner-navigation #navbar a:hover,
	#inner-navigation #navbar .foliora-submenu-toggle:hover {
		background: var(--foliora-mm-hover);
		color: var(--foliora-on-accent) !important;
	}

	#inner-navigation #navbar a:focus-visible,
	#inner-navigation #navbar .foliora-submenu-toggle:focus-visible {
		outline: 2px solid var(--foliora-on-accent);
		outline-offset: -4px;
		background: var(--foliora-mm-hover);
		color: var(--foliora-on-accent) !important;
	}

	/* Desktop arrows are replaced by the toggle buttons. */
	#inner-navigation #navbar a .foliora-icon--chevron-down,
	#inner-navigation #navbar a .arrow-indicator {
		display: none;
	}

	/* Sub-menu toggle: a 50px cell with a plus (closed) or minus (open). */
	#inner-navigation .foliora-submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 50px;
		padding: 0;
		border: 0;
		border-inline-start: 1px solid var(--foliora-mm-line);
		border-bottom: 1px solid var(--foliora-mm-line);
		border-radius: 0;
		background: none;
		color: var(--foliora-mm-text);
		font-size: 14px;
		cursor: pointer;
	}

	#inner-navigation .foliora-submenu-toggle .foliora-icon--minus,
	#inner-navigation .foliora-submenu-toggle[aria-expanded="true"] .foliora-icon--plus {
		display: none;
	}

	#inner-navigation .foliora-submenu-toggle[aria-expanded="true"] .foliora-icon--minus {
		display: inline-block;
	}

	/* Sub-menus: closed until toggled; indented 16px per level on a lighter
	   shade. Without JavaScript they are always shown. */
	#inner-navigation #navbar li ul {
		position: static;
		display: block;
		width: auto;
		margin: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: var(--foliora-mm-sub);
		animation: none;
	}

	.foliora-js #inner-navigation #navbar li ul {
		display: none;
	}

	.foliora-js #inner-navigation #navbar li.is-open > ul {
		display: block;
	}

	#inner-navigation #navbar li ul a {
		padding-inline-start: 36px !important;
	}

	#inner-navigation #navbar li ul ul a {
		padding-inline-start: 52px !important;
	}

	/* Search row: icon plus a visible label. */
	#inner-navigation #navbar .menu-item-search a {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	#inner-navigation #navbar .menu-item-search .foliora-menu-search-label {
		display: inline;
	}

	#inner-navigation #navbar .menu-item-search .foliora-icon {
		width: 14px;
		height: 14px;
	}

	/* No row line under the last link (the header button, when it is last,
	   keeps its own border). */
	#inner-navigation #navbar .nav.navbar-nav > li:last-child > a:not(.foliora-header-btn) {
		border-bottom: 0;
	}
}

/* ---------- Slide-in panel ----------
   Customizer > Header > Phone menu "Slide-in panel" (header class
   foliora-header--offcanvas; navigation.js adds the head, the backdrop and
   the dialog behaviour). The panel is the page colour, not the accent:
   inside it the accent variables are pointed at the page colours, so the
   drop-down panel's own rules (rows, lines, hover, sub-menus, the dark-mode
   switch) draw it in neutral tones. The header button keeps the real accent
   (--foliora-oc-brand). Without JavaScript the menu stays a list under the
   header, as before. */
/* The panel's head and backdrop (added by navigation.js) only show in
   panel mode; on a wide screen the menu is a row and they stay hidden. */
.foliora-oc-head,
.foliora-oc-backdrop {
	display: none;
}

@media (max-width: 991px) {
	.foliora-js #inner-navigation.foliora-header--offcanvas {
		--foliora-oc-brand: var(--foliora-accent);
		--foliora-oc-on-brand: var(--foliora-on-accent);
	}

	/* Dark mode: the dark accent is made for light text on it and is too dim
	   as text or an outline on the dark panel (3.1:1). The header button
	   takes the text colour, as it does in the dark header (header.css). */
	html.foliora-dark.foliora-js #inner-navigation.foliora-header--offcanvas {
		--foliora-oc-brand: var(--foliora-text);
		--foliora-oc-on-brand: var(--foliora-bg);
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar {
		--foliora-accent: var(--foliora-bg);
		--foliora-on-accent: var(--foliora-text);
		--foliora-mm-text: var(--foliora-text);
		--foliora-mm-line: var(--foliora-line);
		--foliora-mm-hover: var(--foliora-surface);
		--foliora-mm-sub: var(--foliora-surface);
		display: block;
		position: fixed;
		/* Under the admin bar when there is one (navigation.js measures it). */
		top: var(--foliora-oc-top, 0px);
		inset-inline-end: 0;
		bottom: 0;
		inset-inline-start: auto;
		width: min(380px, 88vw);
		height: calc(100vh - var(--foliora-oc-top, 0px));
		height: calc(100dvh - var(--foliora-oc-top, 0px));
		max-height: none;
		margin: 0;
		padding: 0 0 32px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--foliora-bg);
		border-radius: 0;
		box-shadow: calc(-12px * var(--foliora-dir, 1)) 0 40px rgb(0 0 0 / 0.18);
		transform: translateX(calc(105% * var(--foliora-dir, 1)));
		visibility: hidden;
		transition: transform 0.3s ease, visibility 0s linear 0.3s;
		z-index: 100001;
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas.is-menu-open #navbar {
		transform: none;
		visibility: visible;
		transition: transform 0.3s ease;
	}

	/* Layouts with the menu button at the start (left in left-to-right): the
	   panel comes from that side. */
	.foliora-js #inner-navigation.foliora-header--offcanvas.foliora-header--oc-left #navbar {
		inset-inline-end: auto;
		inset-inline-start: 0;
		box-shadow: calc(12px * var(--foliora-dir, 1)) 0 40px rgb(0 0 0 / 0.18);
		transform: translateX(calc(-105% * var(--foliora-dir, 1)));
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas.foliora-header--oc-left.is-menu-open #navbar {
		transform: none;
	}

	/* The page behind does not scroll while the panel is open. */
	html.foliora-oc-open,
	html.foliora-oc-open body {
		overflow: hidden;
	}

	.foliora-oc-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100000;
		background: rgb(10 12 18 / 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0s linear 0.3s;
	}

	html.foliora-oc-open .foliora-oc-backdrop {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.3s ease;
	}

	/* Head: the site name and a close button. */
	.foliora-oc-head {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		min-height: 68px;
		padding-block: 0;
		padding-inline: 24px 12px;
		border-bottom: 1px solid var(--foliora-line);
		background: var(--foliora-bg);
	}

	.foliora-oc-head__title {
		min-width: 0;
		overflow: hidden;
		font-family: var(--foliora-font-heading);
		font-size: 18px;
		font-weight: 600;
		line-height: 1.3;
		color: var(--foliora-text);
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.foliora-oc-close {
		display: flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: none;
		color: var(--foliora-text);
		cursor: pointer;
	}

	.foliora-oc-close::before {
		content: "";
		width: 18px;
		height: 16px;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M3.5 2.5l11 11M14.5 2.5l-11 11' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px 16px no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M3.5 2.5l11 11M14.5 2.5l-11 11' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px 16px no-repeat;
	}

	.foliora-oc-close:hover {
		background: var(--foliora-surface);
	}

	.foliora-oc-close:focus-visible {
		outline: 2px solid var(--foliora-link);
		outline-offset: -2px;
	}

	/* The list: search first (navigation.js moves it there), then the
	   links, the dark-mode switch and the header button. Rows are a little
	   roomier than in the drop-down. */
	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .nav.navbar-nav > li.menu-item-search {
		padding: 20px 24px 12px;
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar a {
		padding-inline-end: 24px !important;
		padding-inline-start: 24px !important;
		font-size: calc(14px * var(--foliora-menu-scale, 1));
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar li ul a {
		padding-inline-start: 40px !important;
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar li ul ul a {
		padding-inline-start: 56px !important;
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar a:focus-visible,
	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .foliora-submenu-toggle:focus-visible {
		outline-color: var(--foliora-link);
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .menu-item-mode .foliora-mode-toggle {
		padding-inline-end: 24px;
		padding-inline-start: 24px;
		border-bottom-color: var(--foliora-line);
		font-size: 14px;
	}

	/* Search: a field-like button that opens the search panel. */
	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .menu-item-search > a {
		gap: 10px;
		min-height: 48px;
		padding: 0 18px !important;
		border: 1px solid var(--foliora-line-strong, var(--foliora-line));
		border-radius: calc(12px * var(--foliora-corner-scale, 1));
		background: var(--foliora-surface);
		color: var(--foliora-muted) !important;
		font-family: var(--foliora-font-body);
		font-size: 15px;
		letter-spacing: 0;
		text-transform: none;
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .menu-item-search > a:hover {
		border-color: var(--foliora-text);
		color: var(--foliora-text) !important;
	}

	/* The header button in the real accent colour, like everywhere else. */
	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .nav.navbar-nav > li.menu-item-button > a.foliora-header-btn.foliora-header-btn--filled {
		border-color: var(--foliora-oc-brand);
		background: var(--foliora-oc-brand);
		color: var(--foliora-oc-on-brand) !important;
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .nav.navbar-nav > li.menu-item-button > a.foliora-header-btn.foliora-header-btn--outline {
		border-color: var(--foliora-oc-brand);
		background: transparent;
		color: var(--foliora-oc-brand) !important;
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .nav.navbar-nav > li.menu-item-button > a.foliora-header-btn.foliora-header-btn--filled:hover,
	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .nav.navbar-nav > li.menu-item-button > a.foliora-header-btn.foliora-header-btn--outline:hover {
		border-color: var(--foliora-oc-brand);
		background: color-mix(in srgb, var(--foliora-oc-brand) 88%, var(--foliora-text));
		color: var(--foliora-oc-on-brand) !important;
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .nav.navbar-nav > li.menu-item-button > a.foliora-header-btn:focus-visible {
		outline-color: var(--foliora-link);
	}

	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar .nav.navbar-nav > li.menu-item-button {
		margin: 0; /* The row's gap before the button (wide screens). */
		padding: 20px 24px 0;
	}
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
	.foliora-js #inner-navigation.foliora-header--offcanvas #navbar,
	.foliora-oc-backdrop {
		transition: none !important;
	}
}
