/* =========================================================
 * Tech Resolve — WordPress Content Control
 * ======================================================= */

.tr-wordpress-control {
	position: relative;
	overflow: hidden;

	padding:
		clamp(110px, 11vw, 185px)
		var(--tr-gutter);

	color: #fff;

	background: #06100d;
}


.tr-wordpress-control__background,
.tr-wordpress-control__grid,
.tr-wordpress-control__glow {
	position: absolute;

	pointer-events: none;
}


.tr-wordpress-control__background {
	inset: 0;
}


.tr-wordpress-control__grid {
	inset: 0;

	opacity: .14;

	background-image:
		linear-gradient(
			rgba(255,255,255,.04) 1px,
			transparent 1px
		),
		linear-gradient(
			90deg,
			rgba(255,255,255,.04) 1px,
			transparent 1px
		);

	background-size:
		52px 52px;
}


.tr-wordpress-control__glow {
	top: -210px;
	right: 9%;

	width: 700px;
	height: 700px;

	background:
		radial-gradient(
			circle,
			rgba(25,224,120,.1),
			transparent 68%
		);
}


.tr-wordpress-control__shell {
	position: relative;
	z-index: 2;

	width:
		min(100%, var(--tr-container));

	margin:
		0 auto;
}


/* =========================================================
 * Header
 * ======================================================= */

.tr-wordpress-control__header {
	display: grid;
	grid-template-columns:
		minmax(0, 1.1fr)
		minmax(340px, .9fr);
	align-items: end;
	gap:
		clamp(50px, 8vw, 120px);

	margin-bottom: 65px;
}


.tr-wordpress-control__eyebrow {
	display: block;

	margin-bottom: 17px;

	color: #19e078;

	font-size: 9px;
	font-weight: 800;
	letter-spacing: .15em;
}


.tr-wordpress-control__header h2 {
	max-width: 900px;
	margin: 0;

	color: #fff;

	font-size:
		clamp(44px, 5.3vw, 76px);

	font-weight: 800;
	line-height: .99;
	letter-spacing: -.055em;
}


.tr-wordpress-control__header > p {
	margin: 0;

	color:
		rgba(255,255,255,.49);

	font-size: 14px;
	line-height: 1.78;
}


/* =========================================================
 * Workspace
 * ======================================================= */

.tr-wordpress-control__workspace {
	display: grid;
	grid-template-columns:
		minmax(300px, .68fr)
		minmax(0, 1.32fr);

	overflow: hidden;

	background:
		linear-gradient(
			145deg,
			rgba(255,255,255,.045),
			rgba(255,255,255,.012)
		);

	border:
		1px solid rgba(255,255,255,.085);

	border-radius: 24px;

	box-shadow:
		0 40px 100px rgba(0,0,0,.24);
}


/* =========================================================
 * Capabilities
 * ======================================================= */

.tr-wordpress-control__capabilities {
	border-right:
		1px solid rgba(255,255,255,.075);
}


.tr-wordpress-control__capabilities-head {
	display: flex;
	align-items: center;
	justify-content: space-between;

	min-height: 51px;
	padding: 0 18px;

	color:
		rgba(255,255,255,.3);

	border-bottom:
		1px solid rgba(255,255,255,.075);

	font-size: 7px;
	font-weight: 800;
	letter-spacing: .12em;
}


.tr-wordpress-control__capabilities-head i {
	width: 6px;
	height: 6px;

	background: #19e078;

	border-radius: 50%;
}


.tr-wordpress-control__capability {
	position: relative;

	display: grid;
	grid-template-columns:
		35px
		minmax(0,1fr)
		6px;
	gap: 12px;
	align-items: start;

	min-height: 125px;
	padding: 20px;

	border-bottom:
		1px solid rgba(255,255,255,.065);

	transition:
		background 180ms ease;
}


.tr-wordpress-control__capability:hover {
	background:
		linear-gradient(
			90deg,
			rgba(25,224,120,.055),
			transparent
		);
}


.tr-wordpress-control__number {
	color: #19e078;

	font-size: 8px;
	font-weight: 800;
}


.tr-wordpress-control__capability h3 {
	margin: 0;

	color: #fff;

	font-size: 14px;
	line-height: 1.2;
}


.tr-wordpress-control__capability p {
	margin: 8px 0 0;

	color:
		rgba(255,255,255,.4);

	font-size: 9px;
	line-height: 1.65;
}


.tr-wordpress-control__capability > i {
	width: 5px;
	height: 5px;
	margin-top: 4px;

	background: #19e078;

	border-radius: 50%;
}


/* =========================================================
 * Editor
 * ======================================================= */

.tr-wordpress-control__editor {
	min-width: 0;
}


.tr-wordpress-control__editor-top {
	display: flex;
	align-items: center;
	justify-content: space-between;

	min-height: 51px;
	padding: 0 18px;

	color:
		rgba(255,255,255,.3);

	border-bottom:
		1px solid rgba(255,255,255,.075);

	font-size: 7px;
	font-weight: 800;
	letter-spacing: .12em;
}


.tr-wordpress-control__editor-top > div {
	display: flex;
	align-items: center;
	gap: 7px;

	color: #19e078;
}


.tr-wordpress-control__editor-top i {
	width: 6px;
	height: 6px;

	background: #19e078;

	border-radius: 50%;
}


/* =========================================================
 * Editor Body
 * ======================================================= */

.tr-wordpress-control__editor-body {
	display: grid;
	grid-template-columns:
		57px
		minmax(0,1fr);

	min-height: 620px;

	background: #eef2ef;
}


/* Sidebar */

.tr-wordpress-control__editor-sidebar {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 18px;

	padding-top: 16px;

	background: #0a1812;
}


.tr-wordpress-control__editor-sidebar .is-logo {
	display: grid;
	place-items: center;

	width: 31px;
	height: 31px;

	color: #06100d;

	background: #19e078;

	border-radius: 7px;

	font-size: 9px;
	font-weight: 800;
}


.tr-wordpress-control__editor-sidebar > span {
	width: 21px;
	height: 5px;

	background:
		rgba(255,255,255,.12);

	border-radius: 999px;
}


.tr-wordpress-control__editor-sidebar > span.is-active {
	background: #19e078;
}


/* =========================================================
 * Canvas
 * ======================================================= */

.tr-wordpress-control__editor-canvas {
	min-width: 0;
}


.tr-wordpress-control__editor-toolbar {
	display: grid;
	grid-template-columns:
		1fr
		auto
		1fr;
	align-items: center;

	min-height: 53px;
	padding: 0 16px;

	background: #fff;

	border-bottom:
		1px solid #dbe3de;
}


.tr-wordpress-control__editor-toolbar > div {
	display: flex;
	gap: 5px;
}


.tr-wordpress-control__editor-toolbar > div span {
	width: 6px;
	height: 6px;

	background: #d2d9d5;

	border-radius: 50%;
}


.tr-wordpress-control__editor-toolbar > strong {
	color: #77827c;

	font-size: 7px;
	letter-spacing: .12em;
}


.tr-wordpress-control__editor-toolbar > i {
	justify-self: end;

	padding:
		8px 11px;

	color: #06100d;

	background: #19e078;

	border-radius: 999px;

	font-size: 6px;
	font-weight: 800;
	font-style: normal;
}


/* =========================================================
 * Content Editor
 * ======================================================= */

.tr-wordpress-control__editor-content {
	display: grid;
	grid-template-columns:
		180px
		minmax(0,1fr);

	gap: 18px;

	padding: 18px;
}


/* Page Tree */

.tr-wordpress-control__page-tree {
	display: grid;
	align-content: start;
	gap: 7px;

	padding: 15px;

	background: #fff;

	border:
		1px solid #dce4df;

	border-radius: 10px;
}


.tr-wordpress-control__page-tree > span {
	margin-bottom: 6px;

	color: #98a29c;

	font-size: 6px;
	font-weight: 800;
	letter-spacing: .12em;
}


.tr-wordpress-control__page-tree strong {
	padding:
		10px 9px;

	color: #6f7a74;

	background: #f5f7f5;

	border-radius: 6px;

	font-size: 8px;
	font-weight: 650;
}


.tr-wordpress-control__page-tree strong.is-active {
	color: #087b41;

	background:
		rgba(25,224,120,.09);

	box-shadow:
		inset 2px 0 0 #19e078;
}


/* Fields */

.tr-wordpress-control__fields {
	padding: 18px;

	background: #fff;

	border:
		1px solid #dce4df;

	border-radius: 10px;
}


.tr-wordpress-control__fields > div {
	margin-bottom: 22px;
}


.tr-wordpress-control__fields > div > span {
	display: block;

	margin-bottom: 8px;

	color: #929d97;

	font-size: 6px;
	font-weight: 800;
	letter-spacing: .11em;
}


.tr-wordpress-control__fields > div > strong {
	display: block;

	width: 100%;
	height: 35px;
	margin-top: 6px;

	background: #f3f6f4;

	border:
		1px solid #dce4df;

	border-radius: 6px;
}


.tr-wordpress-control__media-field > i {
	display: block;

	width: 100%;
	height: 145px;

	background:
		linear-gradient(
			145deg,
			rgba(25,224,120,.1),
			rgba(20,215,232,.045)
		);

	border:
		1px solid rgba(8,185,93,.13);

	border-radius: 8px;
}


.tr-wordpress-control__editor-save {
	display: flex;
	align-items: center;
	justify-content: space-between;

	margin-bottom: 0 !important;
	padding-top: 15px;

	border-top:
		1px solid #e1e6e3;
}


.tr-wordpress-control__editor-save > span {
	margin: 0 !important;

	color: #08b95d !important;
}


.tr-wordpress-control__editor-save > strong {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;

	width: auto !important;
	height: 30px !important;
	margin: 0 !important;
	padding:
		0 11px;

	color: #06100d;

	background: #19e078 !important;

	border: 0 !important;
	border-radius: 999px !important;

	font-size: 6px;
}


/* =========================================================
 * Bottom
 * ======================================================= */

.tr-wordpress-control__editor-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 13px;

	min-height: 48px;

	color:
		rgba(255,255,255,.27);

	border-top:
		1px solid rgba(255,255,255,.07);

	font-size: 7px;
	font-weight: 800;
	letter-spacing: .11em;
}


.tr-wordpress-control__editor-bottom i {
	width: 18px;
	height: 1px;

	background:
		rgba(25,224,120,.18);
}


@media (max-width: 1050px) {

	.tr-wordpress-control__header,
	.tr-wordpress-control__workspace {
		grid-template-columns: 1fr;
	}


	.tr-wordpress-control__capabilities {
		border-right: 0;

		border-bottom:
			1px solid rgba(255,255,255,.075);
	}

}