/**
 * A Guide section.
 *
 * Brand colours: ink #1E1F1E · slate #454645 · brand #119100 ·
 *                sky #35AFC9 · cloud #F3EFE3
 */

.nops-guide {
	position: relative;
	width: 100%;
	background: #1e1f1e; /* darker default; overridable via field */
	color: #f3efe3; /* cloud */
	padding: 98px 0;
}

/* ---- Left: dropdown (small) vs button list (large) ---- */
.nops-guide-select-wrap {
	display: block;
	margin-bottom: 40px;
}

.nops-guide-tabs {
	display: none;
}

@media (min-width: 1024px) {
	.nops-guide-select-wrap {
		display: none;
	}

	.nops-guide-tabs {
		display: flex;
		flex-direction: column;
		gap: 20px; /* 20px between each */
		padding-right: 48px;
	}
}

.nops-guide-tab {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-size: 20px; /* 20px */
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f3efe3;
	opacity: 0.6; /* 60% */
	transition: opacity 0.2s ease, color 0.2s ease;
}

.nops-guide-tab:hover,
.nops-guide-tab.is-active {
	opacity: 1;
	color: #ffffff; /* white on hover / select */
}

/* 12px blue dot, visible on the active tab. */
.nops-guide-tab-dot {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #35afc9; /* blue */
	opacity: 0;
	transition: opacity 0.2s ease;
}

.nops-guide-tab.is-active .nops-guide-tab-dot {
	opacity: 1;
}

/* ---- Right: box ---- */
.nops-guide-box {
	display: flex;
	flex-direction: column;
	background: #454645; /* default; overridable via field */
	padding: 60px 55px; /* 60 top/bottom, 55 left/right */
}

.nops-guide-title {
	margin: 0;
	font-weight: 400;
	line-height: 1.1;
	color: #f3efe3;
	font-size: clamp(2rem, 2.6vw, 50px); /* 50px */
}

/* Download links */
.nops-guide-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	margin-top: 50px; /* 50px below the main title */
}

.nops-guide-dl {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 8px;
	font-size: 20px; /* 20px */
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f3efe3;
	text-decoration: none;
	border-bottom: 1px solid #35afc9; /* 1px blue line */
}

.nops-guide-dl-icon {
	flex: 0 0 auto;
}

/* ---- Swapping content, pinned towards the bottom ---- */
.nops-guide-panels {
	margin-top: auto;    /* push to the bottom of the box */
	padding-top: 260px;  /* at least 260px above */
}

.nops-guide-panel {
	display: none;
}

.nops-guide-panel.is-active {
	display: block;
}

.nops-guide-subtitle {
	margin: 0;
	font-weight: 400;
	line-height: 1.1;
	color: #f3efe3;
	font-size: clamp(1.75rem, 2.08vw, 40px); /* 40px */
}

.nops-guide-text {
	/* blue line 31px below subtitle, text 33px below the line */
	margin-top: 31px;
	padding-top: 33px;
	border-top: 1px solid #35afc9; /* full-width blue line */
	font-size: clamp(1rem, 1.04vw, 20px); /* 20px */
	letter-spacing: 0.015em;
	line-height: 28px;
	color: #f3efe3;
}

.nops-guide-text p {
	margin: 0;
}

.nops-guide-text p + p {
	margin-top: 38px; /* 38px gap between paragraphs */
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.nops-guide-tabs {
		padding-right: 0;
		margin-bottom: 48px;
	}

	.nops-guide-panels {
		padding-top: 80px;
	}
}

@media (max-width: 640px) {
	.nops-guide-box {
		padding: 40px 24px;
	}

	.nops-guide-downloads {
		gap: 24px;
	}
}

/* ---- Tom Select styling for the guide dropdown ---- */
.nops-guide .ts-control {
	min-height: 54px;
	padding: 0 44px 0 20px;
	display: flex;
	align-items: center;
	font-family: "open-sans", sans-serif;
	font-size: 18px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f3efe3; /* cloud */
	background: transparent;
	border: 1px solid #35afc9; /* sky */
	border-radius: 0;
	box-shadow: none;
}

.nops-guide .ts-wrapper.single .ts-control,
.nops-guide .ts-control input {
	color: #f3efe3;
}

.nops-guide .ts-wrapper.focus .ts-control {
	outline: 2px solid #35afc9;
	outline-offset: 2px;
}

/* Keep the control transparent (not white) when focused / open. */
.nops-guide .ts-wrapper.focus .ts-control,
.nops-guide .ts-wrapper.input-active .ts-control,
.nops-guide .ts-wrapper.dropdown-active .ts-control {
	background: transparent;
}

.nops-guide .ts-wrapper.focus .ts-control,
.nops-guide .ts-wrapper.input-active .ts-control,
.nops-guide .ts-wrapper.dropdown-active .ts-control,
.nops-guide .ts-wrapper.focus .ts-control input,
.nops-guide .ts-wrapper.input-active .ts-control input,
.nops-guide .ts-wrapper.dropdown-active .ts-control input {
	color: #f3efe3; /* cloud */
}

/* chevron */
.nops-guide .ts-wrapper.single .ts-control::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 14px;
	height: 8px;
	transform: translateY(-50%);
	background-color: #f3efe3;
	clip-path: polygon(0 15%, 50% 100%, 100% 15%, 88% 0, 50% 78%, 12% 0);
	pointer-events: none;
}

.nops-guide .ts-wrapper.single.dropdown-active .ts-control::after {
	transform: translateY(-50%) rotate(180deg);
}

.nops-guide .ts-dropdown {
	margin-top: 2px;
	background: #454645; /* slate */
	border: 1px solid #35afc9;
	border-radius: 0;
}

.nops-guide .ts-dropdown .option {
	font-family: "open-sans", sans-serif;
	font-size: 16px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f3efe3;
	padding: 12px 20px;
}

.nops-guide .ts-dropdown .option.active {
	background: #35afc9;
	color: #1e1f1e;
}
