/* Exercise single — Qurios brand colors (scoped), mirrors catalog light island */

/*
 * Page background override for this singular view only.
 * Source of the site-wide black bg: Elementor Site Settings kit
 * (uploads/elementor/css/post-13.css → .elementor-kit-13 { background-color:#000000 }).
 *
 * Apply light bg only to the page canvas + main. Do NOT paint Elementor
 * Theme Builder footer wrappers (data-elementor-type="footer").
 */
body.single-exercises,
body.single-exercises.elementor-kit-13 {
	background-color: #f8fafc !important;
}

body.single-exercises #content.exercise-single,
body.single-exercises main.exercise-single,
body.single-exercises .site-main.exercise-single {
	background-color: #f8fafc !important;
}

/*
 * Light theme for Theme Builder header only on this singular view.
 * Footer keeps the site's original dark styling.
 */
html body.single-exercises [data-elementor-type="header"],
html body.single-exercises .elementor-location-header,
html body.single-exercises .elementor-location-header .elementor-section,
html body.single-exercises .elementor-location-header .e-con,
html body.single-exercises .elementor-location-header .elementor-element {
	background-color: #f8fafc !important;
	background-image: none !important;
}

/* Nav / text: override Elementor + Royal Addons menu white text */
html body.single-exercises [data-elementor-type="header"] *,
html body.single-exercises .elementor-location-header *,
html body.single-exercises .elementor-location-header .wpr-menu-item,
html body.single-exercises .elementor-location-header .wpr-nav-menu .wpr-menu-item,
html body.single-exercises .elementor-location-header .wpr-nav-menu > .menu-item-has-children > .wpr-sub-icon,
html body.single-exercises .elementor-location-header .wpr-menu-item:hover,
html body.single-exercises .elementor-location-header .wpr-menu-item.wpr-active-menu-item,
html body.single-exercises .elementor-location-header .wpr-mobile-menu-item,
html body.single-exercises .elementor-location-header .wpr-mobile-nav-menu a,
html body.single-exercises .elementor-location-header .elementor-heading-title,
html body.single-exercises .elementor-location-header a,
html body.single-exercises .elementor-606 .wpr-nav-menu .wpr-menu-item,
html body.single-exercises .elementor-606 .wpr-nav-menu > .menu-item-has-children > .wpr-sub-icon {
	color: #383939 !important;
	fill: #383939 !important;
}

/* Contact Us button — beat Elementor secondary blue (#77C6FF) */
html body.single-exercises [data-elementor-type="header"] .elementor-button,
html body.single-exercises [data-elementor-type="header"] a.elementor-button,
html body.single-exercises [data-elementor-type="header"] .elementor-button-link,
html body.single-exercises .elementor-location-header .elementor-button,
html body.single-exercises .elementor-location-header a.elementor-button,
html body.single-exercises .elementor-location-header .elementor-button-link,
html body.single-exercises .elementor-location-header .elementor-button:hover,
html body.single-exercises .elementor-location-header .elementor-button:focus,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button:hover,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button:focus {
	background-color: #383939 !important;
	background-image: none !important;
	color: #ffffff !important;
	fill: #ffffff !important;
	border-color: #383939 !important;
}

html body.single-exercises [data-elementor-type="header"] .elementor-button *,
html body.single-exercises [data-elementor-type="header"] .elementor-button-link *,
html body.single-exercises .elementor-location-header .elementor-button *,
html body.single-exercises .elementor-location-header .elementor-button-link *,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button * {
	color: #ffffff !important;
	fill: #ffffff !important;
}

/* Mobile burger (Royal Addons) — lines use primary white; force dark on light header */
html body.single-exercises .elementor-location-header .wpr-mobile-toggle,
html body.single-exercises .elementor-606 .wpr-mobile-toggle,
html body.single-exercises .elementor-location-header .wpr-mobile-toggle:hover,
html body.single-exercises .elementor-606 .wpr-mobile-toggle:hover {
	color: #383939 !important;
	border-color: #383939 !important;
}

html body.single-exercises .elementor-location-header .wpr-mobile-toggle-line,
html body.single-exercises .elementor-606 .wpr-mobile-toggle-line,
html body.single-exercises .elementor-location-header .wpr-mobile-toggle:hover .wpr-mobile-toggle-line,
html body.single-exercises .elementor-606 .wpr-mobile-toggle:hover .wpr-mobile-toggle-line,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-fbc2dff .wpr-mobile-toggle-line,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-fbc2dff .wpr-mobile-toggle:hover .wpr-mobile-toggle-line {
	background-color: #383939 !important;
}

html body.single-exercises .elementor-location-header .wpr-mobile-toggle-text,
html body.single-exercises .elementor-606 .wpr-mobile-toggle-text,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-fbc2dff .wpr-mobile-toggle-text,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-fbc2dff .wpr-mobile-toggle:hover .wpr-mobile-toggle-text {
	color: #383939 !important;
}

.exercise-single {
	--q-bg: #f8fafc;
	--q-action: #383939;
	--q-action-hover: #4a4b4b;
	--q-accent: #237481;
	--q-text: #1a1a1a;
	--q-border: #d9dee3;
	--q-muted: #555555;

	width: 100%;
	margin: 0;
	padding: 1.5rem 1rem 3rem;
	box-sizing: border-box;
	background: var(--q-bg) !important;
	color: var(--q-text) !important;
	/* Inherit Elementor kit fonts (Josefin Sans / Open Sans) */
	font-family: inherit;
}

.exercise-single *,
.exercise-single *::before,
.exercise-single *::after {
	box-sizing: border-box;
}

.exercise-single__container {
	max-width: 1000px;
	margin: 0 auto;
	width: 100%;
}

/* Featured image: full container width, cropped height ≤ 30vh */
.exercise-single__media {
	display: block;
	width: 100%;
	max-height: 30vh;
	overflow: hidden;
	border-radius: 24px;
	background: #ffffff;
}

.exercise-single__media img {
	display: block;
	width: 100%;
	height: 30vh;
	max-height: 30vh;
	object-fit: cover;
	object-position: center;
}

.exercise-single__media-placeholder {
	display: block;
	width: 100%;
	height: 30vh;
	max-height: 30vh;
	background: #f3f5f7;
}

/* Text column: additional side inset so content ≤ 800px */
.exercise-single__text {
	max-width: 800px;
	margin: 1.75rem auto 0;
	padding: 0 1rem;
	width: 100%;
}

.exercise-single__title,
h1.exercise-single__title {
	margin: 0 0 1rem !important;
	font-family: inherit !important;
	font-size: 36px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	color: var(--q-text) !important;
}

.exercise-single__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1.5rem;
}

.exercise-single__tag {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border: 1px solid #237481 !important;
	border-radius: 999px !important;
	background: transparent !important;
	font-size: 0.75rem;
	line-height: 1.3;
	color: #237481 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

a.exercise-single__tag:hover,
a.exercise-single__tag:focus {
	background: rgba(35, 116, 129, 0.12) !important;
	color: #237481 !important;
	text-decoration: none !important;
}

a.exercise-single__tag:focus {
	outline: 2px solid var(--q-accent) !important;
	outline-offset: 2px;
}

.exercise-single__content {
	font-size: 1rem !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
	color: var(--q-text) !important;
}

.exercise-single__content > *:first-child {
	margin-top: 0 !important;
}

.exercise-single__content > *:last-child {
	margin-bottom: 0 !important;
}

.exercise-single__content p,
.exercise-single__content li,
.exercise-single__content td,
.exercise-single__content th {
	color: var(--q-text) !important;
}

.exercise-single__content a {
	color: var(--q-accent) !important;
}

.exercise-single__content h1,
.exercise-single__content h2,
.exercise-single__content h3,
.exercise-single__content h4,
.exercise-single__content h5,
.exercise-single__content h6 {
	color: var(--q-text) !important;
	font-family: inherit !important;
}

.exercise-single__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2rem;
	position: relative;
}

.exercise-single__download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 1.5rem;
	border: 1px solid var(--q-action) !important;
	border-radius: 999px !important;
	background: var(--q-action) !important;
	color: #ffffff !important;
	font: inherit;
	font-size: 0.95rem !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.exercise-single__download-btn:hover,
.exercise-single__download-btn:focus {
	background: var(--q-action-hover) !important;
	border-color: var(--q-action-hover) !important;
	color: #ffffff !important;
	text-decoration: none !important;
}

.exercise-single__download-btn:focus {
	outline: 2px solid var(--q-accent) !important;
	outline-offset: 2px;
}

.exercise-single__icon-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	position: relative;
}

.exercise-single__icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 2rem !important;
	min-height: 2rem !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #383939 !important;
	cursor: pointer;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.exercise-single__icon-btn svg {
	display: block !important;
	width: 1.5rem !important;
	height: 1.5rem !important;
	min-width: 1.5rem !important;
	min-height: 1.5rem !important;
	max-width: none !important;
	flex-shrink: 0;
	stroke: #383939 !important;
	fill: none !important;
	color: #383939 !important;
}

.exercise-single__icon-btn svg * {
	stroke: #383939 !important;
	fill: none !important;
	color: #383939 !important;
}

.exercise-single__icon-btn:hover:not(:disabled),
.exercise-single__icon-btn:focus:not(:disabled) {
	color: #237481 !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.exercise-single__icon-btn:hover:not(:disabled) svg,
.exercise-single__icon-btn:hover:not(:disabled) svg *,
.exercise-single__icon-btn:focus:not(:disabled) svg,
.exercise-single__icon-btn:focus:not(:disabled) svg * {
	stroke: #237481 !important;
	color: #237481 !important;
}

.exercise-single__icon-btn:focus:not(:disabled) {
	outline: 2px solid var(--q-accent) !important;
	outline-offset: 2px;
}

.exercise-single__icon-btn:disabled {
	opacity: 0.4 !important;
	cursor: not-allowed;
	color: #383939 !important;
}

.exercise-single__share-toast {
	position: absolute;
	left: 0;
	bottom: calc(100% + 0.5rem);
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	background: var(--q-action) !important;
	color: #ffffff !important;
	font-size: 0.8rem !important;
	line-height: 1.3 !important;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.exercise-single__share-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 600px) {
	.exercise-single__title,
	h1.exercise-single__title {
		font-size: 28px !important;
	}

	.exercise-single__text {
		padding: 0 0.25rem;
	}
}

/* ==========================================================================
   EXPERIMENT: magenta (#981193) — header Contact Us on exercise single
   Transparent bg, text + border #981193
   To revert: delete or comment out this entire EXPERIMENT block.
   Original button rules above remain untouched.
   ========================================================================== */
html body.single-exercises [data-elementor-type="header"] .elementor-button,
html body.single-exercises [data-elementor-type="header"] a.elementor-button,
html body.single-exercises [data-elementor-type="header"] .elementor-button-link,
html body.single-exercises .elementor-location-header .elementor-button,
html body.single-exercises .elementor-location-header a.elementor-button,
html body.single-exercises .elementor-location-header .elementor-button-link,
html body.single-exercises .elementor-location-header .elementor-button:hover,
html body.single-exercises .elementor-location-header .elementor-button:focus,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button:hover,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button:focus {
	background-color: transparent !important;
	background-image: none !important;
	color: #981193 !important;
	fill: #981193 !important;
	border-color: #981193 !important;
	border-width: 1px !important;
	border-style: solid !important;
}

html body.single-exercises [data-elementor-type="header"] .elementor-button *,
html body.single-exercises [data-elementor-type="header"] .elementor-button-link *,
html body.single-exercises .elementor-location-header .elementor-button *,
html body.single-exercises .elementor-location-header .elementor-button-link *,
html body.single-exercises .elementor-606 .elementor-element.elementor-element-3dcdd0a .elementor-button * {
	color: #981193 !important;
	fill: #981193 !important;
}
/* ===== END EXPERIMENT: magenta header button ===== */
