/**
 * Codehive Product Manager: Pages in the website layout: page content in the main area.
 *
 * From Codehive WARC Manager 1.0.287, made Codehive's own.
 *
 * Build:     1.0.5
 * Changelog:
 * 1.0.5 New.
 */

/* Header bar: logo | menu | buttons. */
.chpm-mp .chpm-mk-bar-inner,
.chpm-mp .chpm-mk-frame:not(.chpm-mk-side-none) .chpm-mk-bar-inner {
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px 20px;
}

.chpm-mp-menu {
	min-width: 0;
}

.chpm-mp-menu-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chpm-mp-menu-list li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chpm-mp-menu-list a {
	display: block;
	padding: 8px 12px;
	border-radius: 4px;
	color: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.chpm-mp-menu-list a:hover,
.chpm-mp-menu-list a:focus-visible {
	background: rgba(0, 0, 0, 0.05);
}

.chpm-mp-menu-list .current-menu-item > a,
.chpm-mp-menu-list .current-menu-ancestor > a,
.chpm-mp-menu-list .current_page_item > a {
	box-shadow: inset 0 -3px 0 var(--chpm-mk-accent, #2e7d32);
	border-radius: 4px 4px 0 0;
}

/* Drop-down for second-level items. */
.chpm-mp-menu-list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	display: none;
	min-width: 200px;
	margin: 0;
	padding: 6px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	background: var(--chpm-mk-bar-bg, #fff);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	list-style: none;
}

.chpm-mp-menu-list li:hover > .sub-menu,
.chpm-mp-menu-list li:focus-within > .sub-menu {
	display: block;
}

.chpm-mp-menu-list .sub-menu a {
	font-weight: 500;
}

/* Menu button (tablets and phones). */
.chpm-mp-menu-toggle {
	display: none;
}

.chpm-mp-burger,
.chpm-mp-burger::before,
.chpm-mp-burger::after {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.chpm-mp-burger {
	position: relative;
}

.chpm-mp-burger::before,
.chpm-mp-burger::after {
	content: "";
	position: absolute;
	left: 0;
}

.chpm-mp-burger::before {
	top: -6px;
}

.chpm-mp-burger::after {
	top: 6px;
}

/* The page's own content. */
.chpm-mp-title {
	margin-bottom: 20px;
}

.chpm-mp-content {
	font-size: 16px;
	line-height: 1.6;
}

.chpm-mp-content > *:first-child {
	margin-top: 0;
}

.chpm-mp-content img,
.chpm-mp-content video,
.chpm-mp-content iframe {
	max-width: 100%;
	height: auto;
}

@media (max-width: 1000px) {
	.chpm-mp .chpm-mk-bar-inner,
	.chpm-mp .chpm-mk-frame:not(.chpm-mk-side-none) .chpm-mk-bar-inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.chpm-mp-menu-toggle {
		display: inline-flex;
	}

	.chpm-mp-menu,
	.chpm-mp-menu-gap {
		display: none;
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.chpm-mp-menu.is-open {
		display: block;
	}

	.chpm-mp-menu-list {
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 8px;
	}

	.chpm-mp-menu-list a {
		white-space: normal;
	}

	.chpm-mp-menu-list .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
		background: none;
	}
}

/* The sidebar has no Filters above the featured area on these pages. */
.chpm-mp .chpm-mk-side-top > .chpm-mk-feature:first-child {
	padding-top: 18px;
}

/* ---------- Build 1.0.102: sidebar content (1.0.103: Sidebar Content, written in Main Pages) ---------- */
.chpm-mp-widgets {
	padding: 0 16px 8px;
	font-size: 14px;
	line-height: 1.5;
}

.chpm-mk-side-top > .chpm-mp-widgets:first-child {
	padding-top: 18px;
}

.chpm-mp-widget {
	margin: 0 0 20px;
}

.chpm-mp-widget ul {
	margin: 0;
	padding: 0 0 0 18px;
}

.chpm-mp-widget li {
	margin: 0 0 6px;
}

.chpm-mp-widget img {
	max-width: 100%;
	height: auto;
}

.chpm-mp-widget p:last-child {
	margin-bottom: 0;
}

/* Tablets and phones: the widgets go after the page content, with the Featured Area. */
@media (max-width: 1000px) {
	.chpm-mp-widgets {
		order: 4;
		width: 100%;
		padding: 20px 24px;
		border-top: 1px solid rgba(0, 0, 0, 0.1);
		background: var(--chpm-mk-side-bg, #eceef1);
	}

	.chpm-mp-widgets > * {
		max-width: 600px;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 600px) {
	.chpm-mp-widgets {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Sidebar Content (1.0.103). */
.chpm-mp-side-content h2,
.chpm-mp-side-content h3,
.chpm-mp-side-content h4 {
	margin: 0 0 10px;
	color: #1d2327;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.chpm-mp-side-content p,
.chpm-mp-side-content ul,
.chpm-mp-side-content ol {
	margin: 0 0 14px;
}

.chpm-mp-side-content ul,
.chpm-mp-side-content ol {
	padding-left: 18px;
}

.chpm-mp-side-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* Several header bar buttons (1.0.107): they wrap rather than squeeze. */
.chpm-mp .chpm-mk-tools {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.chpm-mp .chpm-mk-tools .chpm-mk-btn1 {
	margin-left: 0;
}

/* ---------- Build 1.0.119: menu as on the news page (capitals, and a red line under the page you are on) ---------- */
.chpm-mp-menu-list {
	gap: 4px 22px;
}

.chpm-mp-menu-list > li > a,
.chpm-mp-menu-list a {
	padding: 8px 0 6px;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.chpm-mp-menu-list a:hover,
.chpm-mp-menu-list a:focus-visible {
	background: none;
	border-bottom-color: currentColor;
}

.chpm-mp-menu-list .current-menu-item > a,
.chpm-mp-menu-list .current-menu-ancestor > a,
.chpm-mp-menu-list .current_page_item > a,
.chpm-mp-menu-list .current_page_parent > a {
	box-shadow: none;
	border-radius: 0;
	border-bottom-color: var(--chpm-mp-menu-line, #d63638);
}

/* Drop-down items: a plain list, no lines. */
.chpm-mp-menu-list .sub-menu a {
	padding: 8px 10px;
	border-bottom: 0;
	font-size: 12px;
}

.chpm-mp-menu-list .sub-menu a:hover,
.chpm-mp-menu-list .sub-menu a:focus-visible {
	background: rgba(0, 0, 0, 0.05);
}

.chpm-mp-menu-list .sub-menu .current-menu-item > a {
	color: var(--chpm-mp-menu-line, #d63638);
}

/* Tablets and phones (menu button): the red line sits under the words only. */
@media (max-width: 1000px) {
	.chpm-mp-menu-list {
		gap: 2px;
	}

	.chpm-mp-menu-list > li > a {
		display: inline-block;
	}
}
