/* Streamova installation hub: scoped extensions of the approved page system. */
body.page-template-page-installation-guide-php .sv-page-content { display: none; }

.sv-installation-hub {
	--sv-guide-line: rgba(35, 36, 39, .10);
	color: var(--sr-home-ink, #2e3034);
}

.sv-installation-hero__intro {
	max-width: 720px;
	margin-top: 24px;
	color: #b8b9bd;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.65;
}

body.page:not(.home).wp-child-theme-onehundred .oh-main .sv-installation-hero h1 {
	color: #f7f7f6 !important;
}

.sv-installation-hero__actions { margin-top: 32px; }

.sv-installation-content {
	width: calc(100% - 128px);
	max-width: 1180px;
	margin-inline: auto;
	padding: 96px 0 20px;
}

.sv-installation-content :is(h2, h3, p) { margin-top: 0; }
.sv-installation-content .sv-eyebrow { color: #b4232e; }

/* The editorial colour-mode variables turn --oh-ink light in dark mode. This
 * page deliberately keeps the approved light marketing surfaces, so lock
 * their type to the matching charcoal palette in both modes. */
html[data-oh-theme="dark"] body.page:not(.home).wp-child-theme-onehundred .oh-main .sv-installation-content :is(h2, h3, h4, strong),
body.page:not(.home).wp-child-theme-onehundred .oh-main .sv-installation-content :is(h2, h3, h4, strong) {
	color: #2e3034 !important;
}

.sv-installation-primer {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: center;
	padding: 52px;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 36px;
	background: linear-gradient(135deg, #fafaf8, #f2f3f3);
	box-shadow: inset 0 1px 0 #fff, var(--sr-shadow-soft);
}

.sv-installation-primer h2,
.sv-installation-heading h2,
.sv-installation-support h2 {
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.045em;
}

.sv-installation-primer > div > p:last-child {
	max-width: 520px;
	margin: 22px 0 0;
	color: #61636a;
	font-size: 16px;
	line-height: 1.75;
}

.sv-installation-primer ul { display: grid; gap: 12px; list-style: none; }
.sv-installation-primer li {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 18px;
	padding: 20px 22px;
	border: 1px solid var(--sv-guide-line);
	border-radius: 20px;
	background: #fff;
}
.sv-installation-primer li strong { color: #2e3034; font-size: 14px; }
.sv-installation-primer li span { color: #66686e; font-size: 14px; line-height: 1.55; }

.sv-installation-section { padding-top: 112px; scroll-margin-top: 24px; }
.sv-installation-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 40px;
}
.sv-installation-heading > div { max-width: 760px; }
.sv-installation-heading > p {
	max-width: 360px;
	margin: 0;
	color: #696b70;
	font-size: 15px;
	line-height: 1.65;
}

.sv-device-selector-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.sv-device-selector-card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 22px;
	gap: 16px;
	align-items: center;
	min-width: 0;
	min-height: 116px;
	padding: 18px;
	border: 1px solid rgba(35, 36, 39, .08);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--sr-shadow-soft);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sv-device-selector-card:hover {
	transform: translateY(-3px);
	border-color: rgba(243,75,85, .28);
	box-shadow: 0 22px 40px -25px rgba(35, 36, 39, .42);
}
.sv-device-selector-card:hover > svg,
.sv-device-selector-card:focus-visible > svg { color: var(--streamova-accent); }
.sv-device-selector-card__mark {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	padding: 8px;
	border-radius: 18px;
	background: #f3f3f1;
	overflow: hidden;
}
.sv-device-selector-card__mark img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.sv-device-selector-card__mark > span { color: var(--sv-coral); font-size: 16px; font-weight: 700; }
.sv-device-selector-card__mark[data-device-mark="smart-tv"] img,
.sv-device-selector-card__mark[data-device-mark="roku"] img,
.sv-device-selector-card__mark[data-device-mark="nvidia-shield"] img { border-radius: 10px; }
.sv-device-selector-card__mark[data-device-mark="formuler"] img { filter: brightness(0); }
.sv-device-selector-card strong { display: block; color: #2e3034; font-size: 16px; line-height: 1.25; }
.sv-device-selector-card small { display: block; margin-top: 6px; color: #6b6b6b; font-size: 12px; line-height: 1.4; }
.sv-device-selector-card > svg { width: 20px; color: #9a9ba0; }

.sv-device-guide-list { display: grid; gap: 14px; }
.sv-device-guide {
	scroll-margin-top: 24px;
	border: 1px solid var(--sv-guide-line);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 14px 30px -26px rgba(35, 36, 39, .4);
	overflow: clip;
}
.sv-device-guide[open] { box-shadow: 0 22px 46px -30px rgba(35, 36, 39, .5); }
.sv-device-guide summary {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 26px;
	gap: 18px;
	align-items: center;
	padding: 22px 26px;
	cursor: pointer;
	list-style: none;
}
.sv-device-guide summary::-webkit-details-marker { display: none; }
.sv-device-guide__number {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: #f2f2ef;
	color: #b4232e;
	font-size: 13px;
	font-weight: 700;
}
.sv-device-guide summary strong { display: block; font-size: 21px; letter-spacing: -.025em; }
.sv-device-guide summary small { display: block; margin-top: 4px; color: #6b6b6b; font-size: 13px; }
.sv-device-guide summary > svg { width: 24px; transition: transform .2s ease; }
.sv-device-guide[open] summary > svg { transform: rotate(180deg); }
.sv-device-guide__content { padding: 8px 26px 30px 96px; }
.sv-device-guide__intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 24px;
}
.sv-device-guide__intro > p,
.sv-device-guide__intro aside {
	margin: 0;
	padding: 20px;
	border-radius: 18px;
	background: #f4f5f5;
	color: #5d5f64;
	font-size: 14px;
	line-height: 1.65;
}
.sv-device-guide__intro aside { border-left: 3px solid var(--sv-coral); }
.sv-device-guide__intro aside strong { display: block; margin-bottom: 5px; color: #2e3034; }
.sv-device-guide__intro aside span { display: block; }

.sv-setup-steps { display: grid; gap: 10px; list-style: none; counter-reset: none; }
.sv-setup-steps li {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 14px 0;
	border-top: 1px solid var(--sv-guide-line);
}
.sv-setup-steps li > span {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #171719;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.sv-setup-steps p { margin: 3px 0 0; color: #56585d; font-size: 15px; line-height: 1.7; }
.sv-device-guide__actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
.sv-device-guide__actions a { color: #b4232e; }

.sv-app-guidance-grid,
.sv-troubleshooting-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.sv-app-guidance-grid article,
.sv-troubleshooting-grid article {
	min-width: 0;
	padding: 28px;
	border: 1px solid rgba(35, 36, 39, .08);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--sr-shadow-soft);
}
.sv-app-guidance-grid article > span {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 32px;
	border-radius: 14px;
	background: #f2f2ef;
	color: #b4232e;
	font-size: 12px;
	font-weight: 700;
}
.sv-app-guidance-grid h3,
.sv-troubleshooting-grid h3 { margin-bottom: 12px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.sv-app-guidance-grid p,
.sv-troubleshooting-grid p { margin: 0; color: #66686e; font-size: 14px; line-height: 1.7; }

.sv-download-code-note {
	display: grid;
	grid-template-columns: .7fr 1.3fr auto;
	gap: 32px;
	align-items: center;
	margin-top: 22px;
	padding: 30px;
	border-radius: 26px;
	background: #dedfdf;
}
.sv-download-code-note .sv-eyebrow { margin-bottom: 8px; }
.sv-download-code-note h3 { font-size: 23px; }
.sv-download-code-note > p { margin: 0; color: #55575c; font-size: 14px; line-height: 1.7; }
.sv-download-code-note .sv-button { white-space: nowrap; }

.sv-troubleshooting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sv-troubleshooting-grid article { position: relative; padding-left: 68px; }
.sv-troubleshooting-grid article::before {
	content: "!";
	position: absolute;
	top: 28px;
	left: 26px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(243,75,85,.12);
	color: #f34b55;
	font-size: 13px;
	font-weight: 750;
}

.sv-installation-support {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 48px;
	align-items: end;
	margin-top: 112px;
	padding: 62px;
	border-radius: 36px;
	background: radial-gradient(circle at 78% 25%, rgba(243,75,85, .23), transparent 30%), #171719;
	color: #f7f7f4;
	box-shadow: 0 28px 64px -34px rgba(0, 0, 0, .7);
}
.sv-installation-support .sv-eyebrow { color: #f34b55; }
body.page:not(.home).wp-child-theme-onehundred .oh-main .sv-installation-support h2 { color: #f7f7f4 !important; }
html[data-oh-theme="dark"] body.page:not(.home).wp-child-theme-onehundred .oh-main .sv-installation-support :is(h2, h3, h4, strong),
body.page:not(.home).wp-child-theme-onehundred .oh-main .sv-installation-support :is(h2, h3, h4, strong) { color: #f7f7f4 !important; }
.sv-installation-support p:last-child { max-width: 660px; margin: 22px 0 0; color: #b7b8bc; line-height: 1.7; }
.sv-installation-support .sv-actions { justify-content: flex-end; }

@media (max-width: 1023px) {
	.sv-installation-content { width: calc(100% - 80px); padding-top: 80px; }
	.sv-installation-primer { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
	.sv-device-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sv-app-guidance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sv-download-code-note { grid-template-columns: 1fr 1.5fr; }
	.sv-download-code-note .sv-button { grid-column: 1 / -1; justify-self: start; }
	.sv-installation-support { grid-template-columns: 1fr; align-items: start; padding: 48px; }
	.sv-installation-support .sv-actions { justify-content: flex-start; }
}

@media (max-width: 767px) {
	.sv-installation-content { width: calc(100% - 48px); padding-top: 64px; }
	.sv-installation-section { padding-top: 80px; }
	.sv-installation-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
	.sv-installation-heading > p { max-width: 600px; }
	.sv-device-guide__content { padding: 4px 22px 26px; }
	.sv-device-guide__intro { grid-template-columns: 1fr; }
	.sv-installation-support { margin-top: 80px; }
}

@media (max-width: 639px) {
	.sv-installation-hero__actions { flex-direction: column; align-items: stretch; }
	.sv-installation-content { width: calc(100% - 32px); }
	.sv-installation-primer { padding: 28px 24px; border-radius: 28px; }
	.sv-installation-primer li { grid-template-columns: 1fr; gap: 6px; }
	.sv-device-selector-grid,
	.sv-app-guidance-grid,
	.sv-troubleshooting-grid { grid-template-columns: 1fr; }
	.sv-device-selector-card { min-height: 100px; }
	.sv-device-guide summary { grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 12px; padding: 18px; }
	.sv-device-guide__number { width: 44px; height: 44px; border-radius: 14px; }
	.sv-device-guide summary strong { font-size: 18px; }
	.sv-device-guide__content { padding: 0 18px 24px; }
	.sv-setup-steps p { font-size: 14px; }
	.sv-download-code-note { grid-template-columns: 1fr; padding: 26px 22px; }
	.sv-download-code-note .sv-button { grid-column: auto; width: 100%; }
	.sv-troubleshooting-grid article { padding: 26px 24px 26px 64px; }
	.sv-installation-support { margin-top: 80px; padding: 36px 24px; border-radius: 28px; }
	.sv-installation-support .sv-actions { flex-direction: column; align-items: stretch; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.sv-installation-hub *,
	.sv-installation-hub *::before,
	.sv-installation-hub *::after { scroll-behavior: auto !important; transition: none !important; }
}
