/**
 * How-To Docs Manager — documentation reader styles.
 * Scoped to reader pages (body.howto-docs-reader). Visual source of truth:
 * child-theme variables.css, general.css, chrome.css, custom.css, and
 * howto-bridge.css (production /how-to/ theme reader).
 *
 * Do not set html { font-size: 62.5% } — that would reflow site chrome.
 * mdBook rem sizes are converted to px equivalents (root 10px → 1.7rem = 17px).
 */

body.howto-docs-reader {
	--sidebar-width: 300px;
	--page-padding: 15px;
	--content-max-width: 920px;
	--menu-bar-height: 50px;
	/*
	 * Offsets are CSS-only (no JS). Elementor sticky header 18384:
	 * 54px nav + 2px/2px padding + 1px border ≈ 59px; 70px covers logo column.
	 */
	--howto-docs-admin-bar: 0px;
	--howto-docs-site-header: 70px;
	--howto-docs-sticky-top: calc(var(--howto-docs-admin-bar) + var(--howto-docs-site-header));
	--howto-docs-available-height: calc(100dvh - var(--howto-docs-sticky-top));

	--bg: #ffffff;
	--fg: #000000;
	--sidebar-bg: #000130;
	--sidebar-fg: #ffffff;
	--sidebar-non-existant: #aaaaaa;
	--sidebar-active: #0088cc;
	--sidebar-spacer: #f4f4f4;
	--scrollbar: #8f8f8f;
	--icons: #747474;
	--icons-hover: #000000;
	--links: #20609f;
	--shufflrr-blue: #0078ff;
	--h1-badge: #3c83f6;
	--h1-badge-hover: #2563eb;
	--inline-code-color: #301900;
	--quote-bg: hsl(197, 37%, 96%);
	--quote-border: hsl(197, 37%, 91%);
	--table-border-color: hsl(0, 0%, 95%);
	--table-header-bg: hsl(0, 0%, 80%);
	--table-alternate-bg: hsl(0, 0%, 97%);
	--searchbar-border-color: #aaa;
	--searchbar-bg: #fafafa;
	--searchbar-fg: #000;
	--searchbar-shadow-color: #aaa;
	--searchresults-header-fg: #666;
	--searchresults-border-color: #888;
	--searchresults-li-bg: #e4f2fe;
	--search-mark-bg: #a2cff5;
	--theme-hover: #e6e6e6;

	background: var(--bg);
}

/* Site header dropdowns above How-To chrome. Do not set z-index on inner
 * .e-con — that makes the frosted header layer paint over nav labels. */
body.howto-docs-reader .ekit-template-content-header,
body.howto-docs-reader .elementor-location-header {
	position: relative;
	z-index: 300;
	overflow: visible !important;
}

body.howto-docs-reader .ekit-template-content-header .elementor-element-0282c7b {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	background: #ffffff;
	box-shadow: none;
}

/*
 * Header dropdown labels (Product / Resources / Company) use one <i> with
 * class icon-down-arrow1. ElementsKit paints that glyph via ekiticons
 * ::before, then font-weight: 900 (Font Awesome solid) paints a second
 * caret on ::after / a synthetic-bold copy. Keep a single line chevron.
 */
body.howto-docs-reader .ekit-template-content-header .elementskit-navbar-nav > li > a.ekit-menu-dropdown-toggle::after,
body.howto-docs-reader .ekit-template-content-header .elementskit-navbar-nav > li > a.ekit-menu-dropdown-toggle::before {
	content: none !important;
	display: none !important;
	border: 0 !important;
	background: none !important;
	width: 0 !important;
	height: 0 !important;
}

body.howto-docs-reader .ekit-template-content-header .elementskit-navbar-nav .elementskit-submenu-indicator {
	float: none !important;
	display: inline-block !important;
	font-family: elementskit !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 10px !important;
	line-height: 1 !important;
	padding: 0 0 0 4px !important;
	margin: 0 0 0 4px !important;
	width: auto !important;
	height: auto !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.howto-docs-reader .ekit-template-content-header .elementskit-navbar-nav .elementskit-submenu-indicator::before {
	content: "\e994" !important;
	font-family: elementskit !important;
	font-weight: 400 !important;
	font-style: normal !important;
	display: inline-block !important;
	speak: never;
}

body.howto-docs-reader .ekit-template-content-header .elementskit-navbar-nav .elementskit-submenu-indicator::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
}

body.howto-docs-reader .ekit-template-content-header .elementskit-navbar-nav .elementskit-dropdown,
body.howto-docs-reader .ekit-template-content-header .elementskit-navbar-nav .elementskit-submenu-panel {
	z-index: 400 !important;
}
body.howto-docs-reader .elementor-location-header,
body.howto-docs-reader .elementor-location-footer,
body.howto-docs-reader .ekit-template-content-header,
body.howto-docs-reader .ekit-template-content-footer,
body.howto-docs-reader #masthead,
body.howto-docs-reader .site-header,
body.howto-docs-reader #colophon,
body.howto-docs-reader .site-footer {
	color: inherit;
}

body.howto-docs-reader #wpadminbar {
	font-size: 13px !important;
}

/* Reader aligns under site header — do not collapse Elementor header geometry. */
body.howto-docs-reader .ekit-template-content-header {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/*
 * Elementor sticky clones header 0282c7b into .elementor-sticky__spacer
 * (inline visibility:hidden) so the fixed bar keeps its height. On How-To
 * that clone was still painting — two logos, two Product/Company carets.
 * Keep the spacer for height; do not display:none it (reader would slide up).
 */
body.howto-docs-reader .elementor-sticky__spacer {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	user-select: none !important;
	overflow: hidden !important;
}

body.howto-docs-reader .elementor-sticky__spacer,
body.howto-docs-reader .elementor-sticky__spacer * {
	visibility: hidden !important;
	pointer-events: none !important;
}

body.howto-docs-reader .elementor-sticky__spacer *::before,
body.howto-docs-reader .elementor-sticky__spacer *::after {
	content: none !important;
	visibility: hidden !important;
	display: none !important;
}

body.howto-docs-reader .howto-docs-sidebar {
	margin-top: 0 !important;
}

body.howto-docs-reader .howto-docs {
	margin-top: 0 !important;
}

/* Contain Elementor / theme styles that corrupt the reader chrome. */
body.howto-docs-reader .howto-docs input,
body.howto-docs-reader .howto-docs textarea,
body.howto-docs-reader .howto-docs select,
body.howto-docs-reader .howto-docs form {
	max-width: none;
	box-sizing: border-box !important;
}

body.howto-docs-reader .howto-docs-page,
body.howto-docs-reader .howto-docs-page-top,
body.howto-docs-reader .howto-docs-main {
	float: none !important;
	clear: both !important;
	width: auto !important;
}

body.howto-docs-reader .howto-docs-page-top {
	display: block !important;
	position: static !important;
	z-index: auto !important;
	background: #ffffff !important;
	overflow: visible !important;
}

body.howto-docs-reader.admin-bar {
	--howto-docs-admin-bar: 32px;
}

@media screen and (max-width: 782px) {
	body.howto-docs-reader.admin-bar {
		--howto-docs-admin-bar: 46px;
	}
}

@media (max-width: 1024px) {
	body.howto-docs-reader {
		--howto-docs-site-header: 80px;
	}
}

@media (max-width: 767px) {
	body.howto-docs-reader {
		--howto-docs-site-header: 90px;
	}
}

body.howto-docs-reader #page,
body.howto-docs-reader #content,
body.howto-docs-reader .site-content,
body.howto-docs-reader #primary,
body.howto-docs-reader .content-area,
body.howto-docs-reader #main,
body.howto-docs-reader .site-main,
body.howto-docs-reader .entry-content {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.howto-docs-reader .entry-header,
body.howto-docs-reader .entry-footer,
body.howto-docs-reader .posted-by,
body.howto-docs-reader .posted-on,
body.howto-docs-reader .post-thumbnail {
	display: none !important;
}

html.howto-docs-nav-lock,
body.howto-docs-nav-lock {
	overflow: hidden;
}

.howto-docs {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	color: var(--fg);
	background: var(--bg);
	font-family: "Open Sans", "Proxima Vara", sans-serif;
	font-size: 17px;
	line-height: 1.45;
	overflow: visible;
}

.howto-docs *,
.howto-docs *::before,
.howto-docs *::after {
	box-sizing: border-box;
}

.howto-docs a:focus-visible,
.howto-docs button:focus-visible:not(.howto-docs-nav__toggle) {
	outline: 2px solid var(--shufflrr-blue);
	outline-offset: 2px;
}

.howto-docs__overlay {
	display: none;
}

/* -------------------------------------------------------------------------
   Sidebar — production light-theme navy
   ------------------------------------------------------------------------- */

.howto-docs-sidebar {
	flex: 0 0 var(--sidebar-width);
	width: var(--sidebar-width);
	background: var(--sidebar-bg);
	color: var(--sidebar-fg);
	overflow: hidden;
	z-index: 20;
	font-size: 14px;
	transition: transform 0.3s ease, margin 0.3s ease;
}

.howto-docs-sidebar__scrollbox {
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 10px 10px 10px 12px;
	overscroll-behavior-y: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar) var(--sidebar-bg);
}

/* Sidebar scrollbar — match production mdBook (thin gray thumb on navy track). */
.howto-docs-sidebar__scrollbox::-webkit-scrollbar {
	width: 8px;
	background: var(--sidebar-bg);
}

.howto-docs-sidebar__scrollbox::-webkit-scrollbar-track {
	background: var(--sidebar-bg);
}

.howto-docs-sidebar__scrollbox::-webkit-scrollbar-thumb {
	background: var(--scrollbar);
	border-radius: 4px;
	border: 2px solid var(--sidebar-bg);
	min-height: 40px;
}

.howto-docs-sidebar__scrollbox::-webkit-scrollbar-thumb:hover {
	background: #a6a6a6;
}

.howto-docs-sidebar__scrollbox::-webkit-scrollbar-button,
.howto-docs-sidebar__scrollbox::-webkit-scrollbar-corner {
	display: none;
	width: 0;
	height: 0;
}

.howto-docs-sidebar__header {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 0.5rem;
	min-height: 32px;
}

.howto-docs-sidebar__brand {
	margin: 0;
	padding: 0;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1.2;
	color: var(--sidebar-fg);
}

.howto-docs-sidebar__title {
	display: none;
}

/*
 * Mobile drawer close control. Font Awesome times icon (same family as
 * hamburger/search) so Elementor cannot hide CSS-drawn bars.
 */
.howto-docs-sidebar__close {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	margin: 0 0 0 auto;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.18) !important;
	background-color: rgba(255, 255, 255, 0.18) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-size: 18px !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	transform: none !important;
	cursor: pointer;
}

.howto-docs-sidebar__close::before,
.howto-docs-sidebar__close::after {
	content: none !important;
	display: none !important;
}

.howto-docs-sidebar__close .fa {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #ffffff !important;
	font-size: 18px !important;
	line-height: 1 !important;
	width: auto !important;
	height: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.howto-docs-sidebar__close:hover,
.howto-docs-sidebar__close:focus {
	background: rgba(255, 255, 255, 0.3) !important;
	background-color: rgba(255, 255, 255, 0.3) !important;
	border-color: #ffffff !important;
	color: #ffffff !important;
}

.howto-docs-sidebar__empty {
	margin: 0.5rem 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9em;
}

.howto-docs-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 2.2em;
}

.howto-docs-nav__children {
	list-style: none;
	margin: 0;
	padding-left: 20px;
	line-height: 1.9em;
}

.howto-docs-nav__item:not(.is-open) > .howto-docs-nav__children {
	display: none;
}

.howto-docs-nav__item--section,
.howto-docs-nav__item--article {
	line-height: 1.5em;
	margin-top: 0.6em;
}

.howto-docs-nav__item--ask-ai {
	margin-top: 0.6em;
	margin-bottom: 0;
}

.howto-docs-nav__row {
	display: flex;
	align-items: center;
	gap: 0;
	min-height: 1.5em;
}

.howto-docs-nav__toggle {
	flex: 0 0 1.2em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2em;
	height: 1.2em;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	color: var(--sidebar-fg);
	opacity: 0.9;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	line-height: 1;
	min-width: 0;
	min-height: 0;
}

body.howto-docs-reader .howto-docs-sidebar .howto-docs-nav__toggle {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	width: 1.2em !important;
	height: 1.2em !important;
	border-radius: 0 !important;
	transform: none !important;
}

body.howto-docs-reader .howto-docs-sidebar .howto-docs-nav__toggle:hover,
body.howto-docs-reader .howto-docs-sidebar .howto-docs-nav__toggle:focus {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--sidebar-fg) !important;
	transform: none !important;
}

body.howto-docs-reader .howto-docs-sidebar .howto-docs-nav__toggle:focus-visible {
	outline: none;
}

body.howto-docs-reader .howto-docs-sidebar .howto-docs-nav__row:focus-within {
	outline: 1px solid rgba(0, 136, 204, 0.45);
	outline-offset: 2px;
}

.howto-docs-nav__chevron {
	display: inline-block;
	width: 1.2em;
	flex-shrink: 0;
	text-align: center;
	font-size: 0.7em;
	line-height: 1;
	transition: transform 0.2s ease;
	user-select: none;
}

.howto-docs-nav__chevron::before {
	content: "▶";
}

.howto-docs-nav__toggle:hover .howto-docs-nav__chevron {
	color: var(--sidebar-active);
}

.howto-docs-nav__item.is-open > .howto-docs-nav__row .howto-docs-nav__chevron {
	transform: rotate(90deg);
}

.howto-docs-nav__heading,
.howto-docs-nav__link {
	flex: 1;
	min-width: 0;
	color: var(--sidebar-fg);
	text-decoration: none;
	line-height: 1.5em;
	opacity: 0.95;
}

.howto-docs-nav__heading {
	font-size: 1em;
	font-weight: 700;
}

.howto-docs-nav__num {
	font-weight: 700;
}

.howto-docs-nav__link {
	display: block;
	font-size: 1em;
	font-weight: 400;
	padding: 0;
}

.howto-docs-nav__link:hover,
.howto-docs-nav__link:focus {
	color: var(--sidebar-active);
	text-decoration: none;
}

.howto-docs-nav__item.is-current > .howto-docs-nav__row .howto-docs-nav__link {
	color: var(--sidebar-active) !important;
	font-weight: 400;
	background: transparent !important;
}

@media (pointer: coarse) {
	.howto-docs-nav__link {
		padding: 5px 0;
	}
}

/* -------------------------------------------------------------------------
   Page + menu bar
   ------------------------------------------------------------------------- */

.howto-docs-page {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	background: var(--bg);
	transition: margin-left 0.3s ease;
}

/*
 * Desktop — sidebar and menubar stick BELOW the site header.
 * top = admin-bar + site-header via --howto-docs-sticky-top (CSS calc, no JS).
 * height = remaining viewport so navy fills to the bottom with no white gap.
 */
@media only screen and (min-width: 1080px) {
	.howto-docs {
		position: relative;
		display: flex;
		align-items: flex-start;
		min-height: var(--howto-docs-available-height);
		overflow: visible;
	}

	.howto-docs-sidebar {
		position: sticky !important;
		top: var(--howto-docs-sticky-top) !important;
		flex: 0 0 var(--sidebar-width);
		align-self: flex-start;
		width: var(--sidebar-width) !important;
		height: var(--howto-docs-available-height) !important;
		max-height: var(--howto-docs-available-height) !important;
		margin-left: 0 !important;
		overflow: hidden !important;
		z-index: 20;
		transform: none;
		transition: transform 0.3s ease;
	}

	.howto-docs-sidebar__scrollbox {
		height: 100%;
		max-height: none;
	}

	.howto-docs-page {
		flex: 1 1 auto;
		min-width: 0;
		margin-left: 0;
		min-height: var(--howto-docs-available-height);
		width: auto;
		overflow: visible !important;
	}

	.howto-docs-main {
		overflow: visible !important;
	}

	.howto-docs.is-sidebar-collapsed .howto-docs-sidebar {
		flex-basis: 0;
		width: 0 !important;
		transform: translateX(calc(-1 * var(--sidebar-width)));
		pointer-events: none;
		overflow: hidden !important;
	}

	.howto-docs.is-sidebar-collapsed .howto-docs-page {
		margin-left: 0;
	}
}

.howto-docs-menubar__placeholder {
	display: none;
}

.howto-docs-menubar {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	position: relative;
	min-height: var(--menu-bar-height);
	margin: 0;
	padding: 0 5px;
	width: 100%;
	box-sizing: border-box;
	border-bottom: 1px solid var(--table-border-color);
	background-color: #ffffff !important;
	color: var(--icons);
	z-index: 16;
}

.howto-docs-menubar.sticky {
	position: -webkit-sticky;
	position: sticky;
	top: var(--howto-docs-sticky-top);
	z-index: 15;
}

body.howto-docs-reader .howto-docs-menubar.sticky {
	z-index: 15;
	pointer-events: auto !important;
}

/* howto-bridge.css — same rules, scoped to the plugin reader. */
body.howto-docs-reader .howto-docs-menubar {
	background-color: #ffffff !important;
	border-bottom: 1px solid #e5e5e5 !important;
	color: #747474 !important;
	align-items: center !important;
}

body.howto-docs-reader .howto-docs-menubar__title,
body.howto-docs-reader .howto-docs-menubar .menu-title {
	font-size: 20px !important;
	font-weight: 200 !important;
	line-height: var(--menu-bar-height) !important;
	color: #747474 !important;
	text-align: center !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

body.howto-docs-reader .howto-docs-menubar__left,
body.howto-docs-reader .howto-docs-menubar__right,
body.howto-docs-reader .howto-docs-menubar .right-buttons {
	background: transparent !important;
	display: flex !important;
	align-items: center !important;
	align-self: center !important;
	height: var(--menu-bar-height) !important;
}

body.howto-docs-reader .howto-docs-menubar button,
body.howto-docs-reader .howto-docs-menubar .icon-button {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	color: #747474 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	height: auto !important;
	width: auto !important;
	padding: 0 8px !important;
	margin: 0 !important;
	border-radius: 0 !important;
	line-height: var(--menu-bar-height) !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer !important;
	display: inline-block !important;
	vertical-align: middle !important;
}

body.howto-docs-reader .howto-docs-menubar button:hover,
body.howto-docs-reader .howto-docs-menubar button:focus,
body.howto-docs-reader .howto-docs-menubar .icon-button:hover,
body.howto-docs-reader .howto-docs-menubar .icon-button:focus {
	background: transparent !important;
	color: #000000 !important;
	box-shadow: none !important;
}

body.howto-docs-reader .howto-docs-menubar i,
body.howto-docs-reader .howto-docs-menubar a,
body.howto-docs-reader .howto-docs-menubar a i,
body.howto-docs-reader .howto-docs-menubar #git-repository-button {
	color: #747474 !important;
}

body.howto-docs-reader .howto-docs-menubar a:hover,
body.howto-docs-reader .howto-docs-menubar a:hover i {
	color: #000000 !important;
}

.howto-docs-menubar__left,
.howto-docs-menubar__right {
	display: flex;
	align-items: center;
	height: var(--menu-bar-height);
	background: transparent !important;
}

/*
 * Elementor / theme button styles paint the hamburger block navy with white icons.
 * Match production mdBook: transparent buttons, grey icons on a white menubar.
 */
.howto-docs-menubar__toggle,
.howto-docs-menubar__search-toggle,
.howto-docs-menubar button {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	border-radius: 0 !important;
	transform: none !important;
}

.howto-docs-menubar__right {
	margin: 0 15px 0 auto;
	gap: 4px;
}

.howto-docs-menubar__title {
	display: inline-block;
	flex: 1;
	margin: 0;
	font-size: 20px;
	font-weight: 200;
	line-height: var(--menu-bar-height);
	text-align: center;
	color: var(--icons);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.howto-docs-menubar .icon-button {
	border: none !important;
	background: none !important;
	background-color: transparent !important;
	padding: 0 8px !important;
	color: inherit !important;
}

.howto-docs-menubar__toggle,
.howto-docs-menubar__search-toggle {
	display: inline-block;
	background: transparent;
	border: none;
	box-shadow: none;
	color: var(--icons);
	min-height: 0;
	min-width: 0;
	height: auto;
	width: auto;
	padding: 0 8px;
	margin: 0;
	cursor: pointer;
	line-height: var(--menu-bar-height);
	vertical-align: middle;
}

.howto-docs-menubar__toggle:hover,
.howto-docs-menubar__search-toggle:hover,
.howto-docs-menubar__toggle:focus,
.howto-docs-menubar__search-toggle:focus,
.howto-docs-menubar__github:hover,
.howto-docs-menubar__github:focus {
	color: var(--icons-hover) !important;
	background: transparent !important;
	background-color: transparent !important;
	text-decoration: none;
	box-shadow: none !important;
	transform: none !important;
}

.howto-docs-menubar i.fa {
	display: inline-block;
	font-size: inherit;
	line-height: var(--menu-bar-height);
	vertical-align: middle;
	color: inherit;
}

.howto-docs-menubar__github {
	display: inline-block;
	color: var(--icons);
	padding: 0 8px;
	line-height: var(--menu-bar-height);
	text-decoration: none;
	vertical-align: middle;
}

/* Search — mdBook #search-wrapper below #menu-bar (chrome.css). */
.howto-docs-search-wrapper {
	display: none;
	clear: both;
	background: #ffffff;
	width: 100%;
	box-sizing: border-box;
	padding: 0 var(--page-padding);
}

.howto-docs-search-wrapper[hidden],
.howto-docs.is-search-open .howto-docs-search-wrapper[hidden] {
	display: none !important;
}

.howto-docs.is-search-open .howto-docs-search-wrapper {
	display: block !important;
}

.howto-docs-searchbar-outer {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--content-max-width);
}

body.howto-docs-reader .howto-docs-search__input {
	width: 100% !important;
	margin: 5px auto 0 !important;
	padding: 10px 16px !important;
	transition: box-shadow 300ms ease-in-out;
	border: 1px solid var(--searchbar-border-color) !important;
	border-radius: 3px !important;
	background-color: var(--searchbar-bg) !important;
	color: var(--searchbar-fg) !important;
	font: inherit !important;
	font-size: 16px !important;
	line-height: normal !important;
	height: auto !important;
	min-height: 0 !important;
	box-shadow: none !important;
	position: static !important;
	float: none !important;
	display: block !important;
}

body.howto-docs-reader .howto-docs-search__input:focus,
body.howto-docs-reader .howto-docs-search__input.active {
	outline: none !important;
	box-shadow: 0 0 3px var(--searchbar-shadow-color) !important;
}

.howto-docs-searchresults-outer {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--content-max-width);
	border-bottom: 1px dashed var(--searchresults-border-color);
}

.howto-docs-search__status {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 18px 0 0 5px;
	font-weight: 700;
	font-size: 1em;
	color: var(--searchresults-header-fg);
}

.howto-docs-search__results {
	list-style: none;
	margin: 0 auto;
	padding: 0 0 8px 20px;
	max-width: var(--content-max-width);
}

.howto-docs-search__results[hidden],
.howto-docs-search__status[hidden] {
	display: none;
}

.howto-docs-search__results li {
	margin: 10px 0;
	padding: 2px;
	border-radius: 2px;
}

.howto-docs-search__results li.is-focus,
.howto-docs-search__results li:hover {
	background: var(--searchresults-li-bg);
}

.howto-docs-search__results a {
	color: var(--links);
	text-decoration: none;
	font-weight: 700;
}

.howto-docs-search__results a:hover {
	text-decoration: underline;
}

.howto-docs-search__teaser {
	display: block;
	clear: both;
	margin: 5px 0 0 20px;
	font-size: 0.8em;
	font-weight: 400;
	color: var(--fg);
}

.howto-docs-search__teaser mark {
	border-radius: 2px;
	padding: 0 3px 1px;
	background: var(--search-mark-bg);
}

/* -------------------------------------------------------------------------
   Article
   ------------------------------------------------------------------------- */

.howto-docs-main {
	padding: 0 var(--page-padding) 50px;
	min-height: 0;
	max-width: 100%;
	overflow-x: clip;
}

.howto-docs-article {
	max-width: var(--content-max-width);
	margin: 0 auto;
	color: #000000;
	font-size: 17px;
	line-height: 1.45;
}

.howto-docs-article__header {
	margin: 0;
}

.howto-docs-article__title {
	margin: 1.5rem 0 1.6rem;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
}

.howto-docs-article__heading-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fdfeff;
	background: var(--h1-badge);
	border: 1px solid var(--h1-badge);
	border-radius: 0;
	padding: 15px 30px;
	margin-left: 0;
	font-family: "Plus Jakarta Sans", "Open Sans", sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.2px;
	min-height: 44px;
	text-decoration: none;
	box-shadow: none;
	box-sizing: border-box;
}

.howto-docs-article__heading-link:hover,
.howto-docs-article__heading-link:focus {
	background: var(--h1-badge-hover);
	border-color: var(--h1-badge-hover);
	color: #fdfeff;
	text-decoration: none;
}

.howto-docs-article__body {
	color: #000000;
	font-size: 17px;
	line-height: 1.45;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

/*
 * Twenty Twenty-One constrains .entry-content children to 610px and centers
 * them. The H1 badge is outside that wrapper, so body copy sat inset from
 * the button. Keep article blocks full-width of the 920px column.
 */
body.howto-docs-reader .howto-docs-article__body > *,
body.howto-docs-reader .howto-docs-article__body.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator) {
	max-width: none;
	width: auto;
	margin-left: 0;
	margin-right: 0;
}

.howto-docs-article__body > *:first-child {
	margin-top: 0;
}

.howto-docs-article__body p,
.howto-docs-article__body li {
	color: #000000;
	font-size: inherit;
	line-height: 1.45em;
	margin-top: 0.8em;
	margin-bottom: 0.8em;
}

.howto-docs-article__body a,
.howto-docs-article__body a:visited {
	color: var(--links);
	text-decoration: none;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.howto-docs-article__body a:hover {
	text-decoration: underline;
}

.howto-docs-article__body h2,
.howto-docs-article__body h3,
.howto-docs-article__body h4,
.howto-docs-article__body h5,
.howto-docs-article__body h6 {
	color: inherit;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: none;
	margin-bottom: 0.8em;
}

.howto-docs-article__body h2 {
	font-size: 24px;
	margin-top: 2.5em;
}

.howto-docs-article__body h3 {
	font-size: 20px;
	margin-top: 2.5em;
}

.howto-docs-article__body h4,
.howto-docs-article__body h5 {
	font-size: 18px;
	margin-top: 2em;
}

.howto-docs-article__body h2 > a,
.howto-docs-article__body h3 > a,
.howto-docs-article__body h4 > a,
.howto-docs-article__body a.header {
	color: var(--shufflrr-blue);
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	text-decoration: none;
	box-shadow: none;
	border-radius: 0;
	display: inline;
}

.howto-docs-article__body h2 > a:hover,
.howto-docs-article__body h3 > a:hover,
.howto-docs-article__body h4 > a:hover,
.howto-docs-article__body a.header:hover {
	text-decoration: none;
}

.howto-docs-article__body h2:not(:nth-child(2))::before {
	display: block;
	margin: 40px auto 30px;
	content: "";
	height: 1px;
	width: 80%;
	background: #cccccc;
}

.howto-docs-article__body ul,
.howto-docs-article__body ol {
	margin: 0.8em 0 1.2em;
	padding-left: 2.2em;
	line-height: 1.45em;
}

.howto-docs-article__body li + li {
	margin-top: 0.35em;
}

.howto-docs-article__body ul ul,
.howto-docs-article__body ol ol,
.howto-docs-article__body ul ol,
.howto-docs-article__body ol ul {
	margin-top: 0.35em;
	margin-bottom: 0.35em;
}

.howto-docs-article__body strong {
	font-weight: 700;
	color: inherit;
}

.howto-docs-article__body img,
.howto-docs-article__body video,
.howto-docs-article__body iframe {
	max-width: 100%;
	height: auto;
}

.howto-docs-article__body figcaption,
.howto-docs-article__body .wp-caption-text {
	font-size: 0.9em;
	color: #555;
	margin-top: 0.4em;
}

.howto-docs-article__body hr {
	border: 0;
	height: 1px;
	background: #cccccc;
	margin: 2em auto;
	width: 80%;
}

.howto-docs-article__body blockquote {
	margin: 20px 0;
	padding: 0 20px;
	color: var(--fg);
	background-color: var(--quote-bg);
	border-top: 0.1em solid var(--quote-border);
	border-bottom: 0.1em solid var(--quote-border);
}

.howto-docs-article__body blockquote > p:first-child {
	padding-left: 2em;
	background-image: url("../img/bug.svg");
	background-size: auto 100%;
	background-repeat: no-repeat;
}

.howto-docs-article__body .player {
	display: flex;
	justify-content: center;
	background: linear-gradient(90deg, rgba(32, 56, 100, 1) 0%, rgba(0, 120, 255, 1) 100%);
	border-radius: 10px;
}

.howto-docs-article__body .player iframe {
	display: block;
	width: calc(100% - 20px);
	max-width: 800px;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 5px;
	margin: 10px;
}

.howto-docs-article__body .table-wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.howto-docs-article__body table {
	margin: 0 auto;
	border-collapse: collapse;
	max-width: 100%;
	overflow-x: auto;
}

.howto-docs-article__body table td,
.howto-docs-article__body table th {
	padding: 3px 20px;
	border: 1px var(--table-border-color) solid;
}

.howto-docs-article__body table thead {
	background: var(--table-header-bg);
}

.howto-docs-article__body table thead td,
.howto-docs-article__body table thead th {
	font-weight: 700;
}

.howto-docs-article__body table thead td {
	border: none;
}

.howto-docs-article__body table thead tr {
	border: 1px var(--table-header-bg) solid;
}

.howto-docs-article__body table tbody tr:nth-child(2n) {
	background: var(--table-alternate-bg);
}

.howto-docs-article__body code,
.howto-docs-article__body kbd,
.howto-docs-article__body samp {
	font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace;
	font-size: 0.875em;
}

.howto-docs-article__body h1 code,
.howto-docs-article__body h2 code,
.howto-docs-article__body h3 code,
.howto-docs-article__body h4 code {
	font-size: unset;
}

.howto-docs-article__body :not(pre) > code {
	color: var(--inline-code-color);
	padding: 0.1em 0.3em;
	border-radius: 3px;
}

.howto-docs-article__body pre {
	position: relative;
	overflow-x: auto;
	max-width: 100%;
	padding: 12px 16px;
	background: #f6f7f6;
	color: #000;
	border-radius: 3px;
	-webkit-overflow-scrolling: touch;
}

.howto-docs-article__body pre code {
	font-size: 0.875em;
	background: transparent;
	padding: 0;
}

/* -------------------------------------------------------------------------
   Prev / next — production side chevrons
   ------------------------------------------------------------------------- */

.howto-docs-chapternav {
	font-size: 2.5em;
	text-align: center;
	text-decoration: none;
	color: #ccc;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
	display: none;
}

/* Prev/next chevrons — don't inherit Elementor / theme button chrome (howto-bridge.css). */
body.howto-docs-reader .howto-docs-chapternav,
body.howto-docs-reader .howto-docs-chapternav--wide {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #ccc !important;
}

.howto-docs-chapternav .fa {
	font-size: inherit;
	line-height: inherit;
}

.howto-docs-chapternav:hover,
.howto-docs-chapternav:focus {
	color: var(--icons-hover);
	text-decoration: none;
	background-color: var(--theme-hover);
}

.howto-docs-chapternav--wide {
	/* Contained in .howto-docs-page — never overlay the site footer. */
	position: absolute;
	top: 0;
	bottom: 0;
	margin: 0;
	max-width: 90px;
	min-width: 50px;
	display: none;
	justify-content: flex-start;
	align-items: center;
	flex-direction: column;
	transition: color 0.5s, background-color 0.5s;
	z-index: 5;
}

.howto-docs-chapternav--wide .fa {
	position: sticky;
	top: calc(var(--howto-docs-sticky-top) + 45vh);
}

.howto-docs-chapternav--wide.howto-docs-chapternav--prev {
	left: 0;
}

.howto-docs.is-sidebar-collapsed .howto-docs-chapternav--wide.howto-docs-chapternav--prev {
	left: 0;
}

.howto-docs-chapternav--wide.howto-docs-chapternav--next {
	right: 0;
}

.howto-docs-chapternav--mobile {
	display: none;
	width: 90px;
	border-radius: 5px;
	background-color: var(--sidebar-bg);
	color: #fff;
	line-height: 1;
	padding: 8px 0;
}

.howto-docs-mobile-nav {
	display: none;
	margin-top: 50px;
}

.howto-docs-mobile-nav .howto-docs-chapternav--prev {
	float: left;
}

.howto-docs-mobile-nav .howto-docs-chapternav--next {
	float: right;
}

.howto-docs-mobile-nav::after {
	content: "";
	display: block;
	clear: both;
}

/* -------------------------------------------------------------------------
   Ask AI
   ------------------------------------------------------------------------- */

.howto-docs-ask-ai {
	border: 1px solid rgba(0, 120, 255, 0.18);
	border-radius: 0;
	background: #fff;
	color: #161b2f;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(4, 27, 62, 0.14);
	max-width: 920px;
	margin: 0 auto 4rem;
}

.howto-docs-ask-ai__messages {
	min-height: 190px;
	max-height: min(56vh, 520px);
	overflow-y: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background:
		radial-gradient(circle at 90% 0%, rgba(0, 120, 255, 0.06), transparent 35%),
		radial-gradient(circle at 0% 100%, rgba(32, 56, 100, 0.08), transparent 40%);
}

.howto-docs-ask-ai__message {
	border-radius: 0;
	font-size: 14px;
	line-height: 1.45;
	padding: 10px 12px;
	border: 1px solid transparent;
	font-family: "Plus Jakarta Sans", "Open Sans", sans-serif;
}

.howto-docs-ask-ai__message--assistant {
	background: rgba(0, 120, 255, 0.09);
	border-color: rgba(0, 120, 255, 0.22);
}

.howto-docs-ask-ai__message--user {
	align-self: flex-end;
	max-width: 82%;
	background: rgba(32, 56, 100, 0.13);
	border-color: rgba(32, 56, 100, 0.28);
}

.howto-docs-ask-ai__refs-title {
	margin-top: 9px;
	font-weight: 700;
	color: var(--links);
}

.howto-docs-ask-ai__refs {
	margin: 6px 0 0;
	padding-left: 18px;
}

.howto-docs-ask-ai__form {
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	border-top: 1px solid rgba(0, 120, 255, 0.16);
	background: rgba(0, 120, 255, 0.04);
	align-items: stretch;
}

.howto-docs-ask-ai__input {
	flex: 1;
	min-width: 0;
	border-radius: 0;
	border: 1px solid rgba(0, 120, 255, 0.25);
	padding: 12px 14px;
	background: #fff;
	color: inherit;
	font-family: "Plus Jakarta Sans", "Open Sans", sans-serif;
	font-size: 15px;
	min-height: 44px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.howto-docs-ask-ai__input:focus {
	outline: none;
	border-color: #3c83f6;
	box-shadow: 0 0 0 3px rgba(60, 131, 246, 0.18);
}

.howto-docs-ask-ai__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #3c83f6 !important;
	border-radius: 0;
	padding: 11px 24px;
	cursor: pointer;
	color: #fdfeff !important;
	font-family: "Plus Jakarta Sans", "Open Sans", sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: -0.2px;
	min-height: 44px;
	background: #3c83f6 !important;
	background-color: #3c83f6 !important;
	background-image: none !important;
	box-shadow: none !important;
	white-space: nowrap;
	transition: background 0.3s ease, border-color 0.3s ease;
	text-transform: none !important;
	transform: none !important;
}

.howto-docs-ask-ai__submit:hover,
.howto-docs-ask-ai__submit:focus {
	background: #2563eb !important;
	background-color: #2563eb !important;
	border-color: #2563eb !important;
	color: #fdfeff !important;
	box-shadow: none !important;
	transform: none !important;
}

.howto-docs-ask-ai__typing {
	opacity: 0.6;
	font-style: italic;
}

.howto-docs-ask-ai__error {
	color: #c53030;
}

/* -------------------------------------------------------------------------
   Desktop prev/next — full-height side chevrons only (never at article end)
   ------------------------------------------------------------------------- */

@media only screen and (min-width: 1080px) {
	.howto-docs-chapternav--wide {
		display: flex;
	}

	.howto-docs-mobile-nav {
		display: none !important;
	}
}

/* -------------------------------------------------------------------------
   Tablet / mobile — working drawer (production currently hides TOC ≤1079px
   as an mdBook-in-WP workaround; the plugin drawer is the intended mobile UX)
   ------------------------------------------------------------------------- */

@media only screen and (max-width: 1079px) {
	.howto-docs {
		display: block;
		overflow: visible;
		height: auto;
		min-height: var(--howto-docs-available-height);
		max-height: none;
	}

	.howto-docs-menubar {
		position: relative;
		top: auto;
		z-index: 1;
	}

	.howto-docs-sidebar__header {
		display: flex;
	}

	.howto-docs-sidebar__close {
		display: inline-flex !important;
	}

	.howto-docs__overlay {
		display: block;
		position: fixed;
		top: calc(var(--howto-docs-sticky-top) + var(--menu-bar-height));
		right: 0;
		bottom: 0;
		left: 0;
		background: rgba(0, 1, 48, 0.45);
		z-index: 80;
	}

	.howto-docs__overlay[hidden] {
		display: none;
	}

	.howto-docs-sidebar {
		position: fixed;
		top: calc(var(--howto-docs-sticky-top) + var(--menu-bar-height)) !important;
		left: 0;
		bottom: 0;
		height: calc(100dvh - var(--howto-docs-sticky-top) - var(--menu-bar-height)) !important;
		width: min(var(--sidebar-width), 86vw);
		max-width: 85vw;
		z-index: 90;
		transform: translateX(-110%);
		margin-left: 0;
		transition: transform 0.3s ease;
		overflow: hidden;
	}

	.howto-docs-sidebar__scrollbox {
		height: 100%;
		max-height: none;
	}

	.howto-docs.is-sidebar-collapsed .howto-docs-sidebar,
	.howto-docs:not(.is-nav-open) .howto-docs-sidebar {
		transform: translateX(-110%);
	}

	.howto-docs.is-nav-open .howto-docs-sidebar {
		transform: translateX(0);
	}

	.howto-docs-main {
		padding: 0 15px 50px;
	}

	.howto-docs-chapternav--wide {
		display: none;
	}

	.howto-docs-mobile-nav {
		display: block;
	}

	.howto-docs-chapternav--mobile {
		display: inline-block;
		text-align: center;
	}

	.howto-docs-ask-ai {
		margin-bottom: 2rem;
	}

	.howto-docs-ask-ai__messages {
		min-height: 160px;
		max-height: 52vh;
	}

	.howto-docs-ask-ai__form {
		flex-direction: column;
	}

	.howto-docs-ask-ai__submit {
		width: 100%;
	}

	/*
	 * Stick menubar + search together under the site header so the search
	 * field is not scrolled/cropped underneath the sticky bar on mobile.
	 */
	body.howto-docs-reader .howto-docs-page-top {
		position: sticky !important;
		top: var(--howto-docs-sticky-top) !important;
		z-index: 100 !important;
		overflow: visible !important;
	}

	.howto-docs.is-search-open .howto-docs-search-wrapper {
		display: block !important;
		padding: 0 12px 12px;
		background: #ffffff;
		box-shadow: 0 10px 18px rgba(0, 1, 48, 0.12);
	}

	.howto-docs.is-search-open .howto-docs-searchresults-outer {
		max-height: min(45dvh, calc(100dvh - var(--howto-docs-sticky-top) - var(--menu-bar-height) - 90px));
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.howto-docs-reader .howto-docs-search__input {
		width: 100% !important;
		max-width: 100% !important;
		margin: 8px 0 0 !important;
		-webkit-appearance: none;
		appearance: none;
	}
}

@media only screen and (max-width: 700px) {
	.howto-docs-menubar__title {
		font-size: 16px;
	}

	.howto-docs-article__title {
		font-size: 20px;
	}

	.howto-docs-article__heading-link {
		padding: 10px 16px;
		white-space: normal;
		text-align: center;
	}
}

@media only screen and (max-width: 480px) {
	.howto-docs-menubar {
		padding: 0 2px;
	}

	.howto-docs-menubar__toggle,
	.howto-docs-menubar__search-toggle {
		padding: 0 5px;
	}

	.howto-docs-main {
		padding: 0 10px 40px;
	}

	.howto-docs-article__body table td,
	.howto-docs-article__body table th {
		padding: 3px 10px;
	}
}

@media only screen and (max-width: 420px) {
	.howto-docs-menubar__title {
		font-size: 14px;
	}
}

/* -------------------------------------------------------------------------
   Late overrides — load after Elementor kit / ElementsKit (enqueue priority 99)
   ------------------------------------------------------------------------- */

body.howto-docs-reader .howto-docs .howto-docs-menubar button,
body.howto-docs-reader .howto-docs .howto-docs-menubar .icon-button,
body.howto-docs-reader .howto-docs .howto-docs-menubar a {
	/* Wins Elementor kit button chrome on .icon-button (navy block + white icon). */
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	transform: none !important;
}

body.howto-docs-reader .howto-docs .howto-docs-ask-ai__submit {
	/* Wins Elementor global .elementor-button styles on Ask AI submit. */
	background: #3c83f6 !important;
	background-color: #3c83f6 !important;
	background-image: none !important;
	border-color: #3c83f6 !important;
	color: #fdfeff !important;
}

body.howto-docs-reader .howto-docs .howto-docs-sidebar__close,
body.howto-docs-reader .howto-docs .howto-docs-sidebar__close .fa {
	color: #ffffff !important;
	opacity: 1 !important;
	visibility: visible !important;
}

body.howto-docs-reader .howto-docs .howto-docs-sidebar__close {
	background: rgba(255, 255, 255, 0.18) !important;
	background-color: rgba(255, 255, 255, 0.18) !important;
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
