:root {
	--primary-red: #ff3b3b;
	--primary-green: #17C6A3;
	--medium-gray: #666;
	--dark-bg: #121212;
	--card-bg: #202020;
	--callout-bg: #303030;
	--text-gray: #b0b0b0;
	--text-light: #ffffff;
	--link-blue: rgb(81, 168, 255);
	--accent-gold: #c5a059;
	--accent-warn: #f39c12;
	--dark-bg: #121212; /* Warning Orange */
}

body {
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background-color: var(--dark-bg);
	color: var(--text-light);
	margin: 0;
	line-height: 1.6;
}

table {
	border-collapse: collapse;
	border-spacing: 0px;
}

td, th {
	padding: 5px;
}

th {
	text-align: left;
	padding-top: 5px;
	padding-bottom: 4px;
	background-color: rgb(46, 103, 146);
	color: #ffffff;
	border: 1px solid var(--text-gray);
}

.runtitle {
	border-bottom: 1px solid var(--accent-gold);
	width: 100%;
	display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1.0em;
}

.initial-empty-content {
	background-color: black;
	height: 90vh;
}

.basic-table>thead>tr {
	font-weight: bold;
	text-align: left;
	background-color: #DDDDDD;
}

.basic-table td {
	border: 1px solid var(--text-gray);
}

.compact-table td {
	padding-top: 1px;
	padding-right: 5px;
	padding-bottom: 1px;
	padding-left: 5px;
}

a {
	color: var(--link-blue);
}

/* Navigation */
nav {
	background: rgba(18, 18, 18, 0.95);
	padding: 1rem 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid #333;
}

.logo-nav {
	height: 40px;
}

.nav-links span {
	color: var(--text-light);
	text-decoration: none;
	margin-left: 2.5em;
	font-weight: 500;
	transition: color 0.3s;
}

.nav-links a:hover {
	color: var(--primary-red);
}

.link-style-simple {
	cursor: pointer;
	text-decoration: none;
	color: var(--link-blue);
}

.link-content {
	cursor: pointer;
}

.boxed-word {
	border: 2px solid var(--accent-gold);
	padding: 2px 4px; /* Space inside the box */
	margin: 0 -2px;
	/* Negative margin balances padding, prevents line-height change */
	border-radius: 4px;
	display: inline; /* Ensures it stays within the line flow */
}

/* Hero Section */
header {
	text-align: center;
	padding: 3em;
	background-color: #1a1a1a; /* Reliable fallback */
	background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.70)),
		url('../images/sa/sa-background.jpg') no-repeat center center fixed;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	border-bottom: 2px solid var(--accent-gold);
}

.hero-logo {
	max-width: 400px;
	margin-bottom: 20px;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 10px;
}

.tagline {
	font-size: 1.2rem;
	color: var(--text-gray);
	max-width: 600px;
	margin: 0 auto 30px;
}

.full-page-content {
	padding: 3em 5%;
	max-width: 75em;
	margin: 0 auto;
}

/* Features */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	padding: 50px 5%;
}

.feature-card {
	background: var(--card-bg);
	padding: 30px;
	border-radius: 10px;
	border-bottom: 3px solid transparent;
	transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-red);
}

.feature-card h3 {
	color: var(--primary-red);
}

/* Purchase Section */
.purchase {
	background: #181818;
	padding: 3em 2em;
	text-align: center;
	border-top: 2px solid var(--accent-gold);
}

.btn-purchase {
	background-color: var(--primary-red);
	color: white;
	padding: 15px 40px;
	font-size: 1.2rem;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	display: inline-block;
	transition: background 0.3s, transform 0.2s;
}

.btn-purchase:hover {
	background-color: #d32f2f;
	transform: scale(1.05);
}

footer {
	padding: 40px 5%;
	text-align: center;
	font-size: 0.9rem;
	color: #666;
	border-top: 1px solid #333;
}

/* Responsive */
@media ( max-width : 768px) {
	header {
		padding: 60px 5%;
	}
	h1 {
		font-size: 1.8rem;
	}
}

/**********************************************/
/* STORY type pages                           */
/**********************************************/
.story-container {
	display: flex;
	flex-wrap: wrap;
	min-height: 100vh;
}

/* Left Side: Sticky Visuals */
.story-visual {
	flex: 1;
	min-width: 400px;
	background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)),
		url('../images/sa/brent-ninaber-C8gib_msapY-unsplash.jpg') no-repeat
		center center fixed;
	background-size: cover;
	background-position: center;
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-right: 1px solid #222;
}

.visual-overlay-logo {
	max-width: 250px;
	filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

/* Right Side: Scrolling Narrative */
.story-content {
	flex: 1.2;
	min-width: 400px;
	padding: 80px 10%;
	background-color: var(--dark-bg);
}

.story-header {
	margin-bottom: 60px;
}

.kicker {
	color: var(--primary-red);
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 0.8rem;
	font-weight: bold;
	display: block;
	margin-bottom: 10px;
}

.story-h1 {
	font-size: 3.5rem;
	margin: 0;
	line-height: 1.1;
	font-weight: 300;
}

.intro-lead {
	font-size: 1.5rem;
	color: var(--accent-gold);
	line-height: 1.4;
	margin-top: 30px;
	font-style: italic;
}

.story-body {
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--text-gray);
	margin-bottom: 25px;
}

.highlight-box {
	background: var(--card-bg);
	padding: 30px;
	border-left: 4px solid var(--primary-red);
	margin: 40px 0;
}

.highlight-box h3 {
	margin-top: 0;
	color: var(--text-light);
}

.note-box {
	background: var(--callout-bg);
	padding: 25px;
	border-left: 4px solid var(--accent-gold);
	margin: 20px 30px;
	font-size: 90%;
}

.nonte-box h3 {
	margin-top: 0;
	color: var(--text-light);
}

.status-list {
	list-style: none;
	padding: 0;
}

.status-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	font-weight: bold;
}

.dot {
	height: 12px;
	width: 12px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 15px;
}

.signature {
	margin-top: 60px;
	font-family: 'Brush Script MT', cursive;
	font-size: 2rem;
	color: var(--text-light);
}

.btn-link-style {
	cursor: pointer;
	display: inline-block;
	text-decoration: none;
	transition: color 0.3s;
	background: var(--link-color);
	color: var(--link-blue);
	padding: 12px 24px;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	cursor: pointer;
	margin: 5px;
}

.btn-link-style:hover {
	color: var(--primary-red);
}

/* Mobile Adjustments */
@media ( max-width : 850px) {
	.story-visual {
		position: relative;
		height: 40vh;
		min-width: 100%;
	}
	.story-content {
		min-width: 100%;
		padding: 40px 8%;
	}
	h1 {
		font-size: 2.5rem;
	}
}

/**********************************************/
/* Installation                               */
/**********************************************/

/* Header & Badges */
.main-header {
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 20px;
	margin-bottom: 30px;
}

.badge-row {
	margin: 10px 0;
}

.badge {
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: bold;
	margin-right: 10px;
	text-transform: uppercase;
}

.difficulty {
	background: #444;
	color: #fff;
}

.time {
	background: #2c3e50;
	color: #fff;
}

/* Callout Boxes */
.callout {
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.warning-box {
	background-color: rgba(243, 156, 18, 0.1);
	border-left: 5px solid var(--accent-warn);
}

.warning-box h4 {
	margin-top: 0;
	color: var(--accent-warn);
}

.pro-tip {
	background: var(--callout-bg);
	padding: 15px;
	border-radius: 6px;
	font-size: 0.9rem;
	color: var(--text-dim);
	margin-top: 15px;
}

.tools-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	list-style: none;
	padding: 0;
	gap: 10px;
}

.tools-list li {
	background: var(--card-bg);
	padding: 10px;
	border-radius: 4px;
	border: 1px solid var(--border-color);
}
/* Step Cards */
.step-card {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	background: var(--card-bg);
	padding: 30px;
	border-radius: 12px;
	margin-bottom: 40px;
	align-items: center;
}

.step-info {
	flex: 1;
	min-width: 300px;
}

.step-num {
	font-size: 3rem;
	font-weight: 800;
	text-decoration: underline;
	color: var(--text-gray);
	display: block;
	line-height: 1;
}

.step-image {
	flex: 1;
	min-width: 300px;
}

.placeholder-img {
	background: var(--callout-bg);
	width: 100%;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed #444;
	color: #666;
	border-radius: 8px;
}
/* Buttons */
.footer-cta {
	text-align: center;
	padding: 40px 0;
}

.btn {
	background: var(--link-color);
	color: white;
	padding: 12px 24px;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	cursor: pointer;
	margin: 5px;
}

.btn.secondary {
	background: transparent;
	border: 1px solid var(--link-color);
	color: var(--link-color);
}

/* Responsive Tweak */
@media ( max-width : 600px) {
	.step-card {
		padding: 20px;
	}
}

/* Supplementary styles for form elements */
input[type="text"], input[type="number"], input[type="email"], select,
	textarea {
	width: 100%;
	padding: 12px;
	margin: 10px 0 25px 0;
	background-color: var(--callout-bg);
	border: 1px solid #444;
	border-radius: 5px;
	color: var(--text-light);
	font-size: 1rem;
}

label {
	font-weight: bold;
	color: var(--text-light);
	display: block;
}

.form-section {
	background: var(--card-bg);
	padding: 40px;
	border-radius: 10px;
	border-left: 4px solid var(--primary-red);
	margin-top: 20px;
}

.submit-container {
	text-align: center;
	margin-top: 30px;
}

.qnote {
	padding-left: 1.2em;
}

/*------------- Compatibility Check tool ------------------*/
.check-card {
	background: var(--card-bg);
	padding: 40px;
	border-radius: 12px;
	border-bottom: 3px solid var(--accent-gold);
	min-height: 400px;
	display: none; /* Hidden by default */
	flex-direction: column;
}

.option-button {
	display: block;
	width: 100%;
	padding: 15px;
	margin: 10px 0;
	background: var(--callout-bg);
	border: 1px solid #444;
	color: var(--text-light);
	text-align: left;
	cursor: pointer;
	border-radius: 6px;
	transition: 0.3s;
}

.option-button:hover {
	border-color: var(--primary-red);
	background: #383838;
}

.check-photo {
	margin: 15px 0;
	border: 1px solid #444;
	border-radius: 4px;
	height: 15em;
}

/* Lightbox overlay */
#lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 3000;
	justify-content: center;
	align-items: center;
	cursor: zoom-out;
}

#lightboxImg {
	max-width: 90%;
	max-height: 90%;
	border: 3px solid var(--accent-gold);
	border-radius: 8px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#lightboxClose, #purchaseDialogClose {
	position: absolute;
	top: 20px;
	right: 20px;
	color: white;
	font-size: 2rem;
	font-weight: bold;
	cursor: pointer;
}

.dialog {
	background: var(--card-bg);
	padding: 30px;
	border-radius: 10px;
	border-bottom: 3px solid transparent;
	transition: transform 0.3s, border-color 0.3s;
}

/* Add a zoom cursor to images to let users know they are clickable */
.zoomable {
	cursor: zoom-in;
	transition: opacity 0.3s;
	border: 2px solid transparent;
	/* Add a transparent border to prevent layout shift on hover */
	border-radius: 5px;
}

.zoomable:hover {
	border: 2px solid var(--accent-gold);
}

/*
.pcb-photo img:hover, .step-image img:hover {
	opacity: 0.8;
}
*/

/*------------ Q and A page --------------*/
.qa-container {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 5%;
}

.qa-item {
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #333;
}

.qa-question {
	background-color: var(--card-bg);
	padding: 1em;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.3s;
	font-weight: bold;
	color: var(--text-light);
}

.qa-question:hover {
	background-color: var(--callout-bg);
}

.qa-question::after {
	content: '+';
	color: var(--primary-red);
	font-size: 1.5rem;
}

.qa-item.active .qa-question::after {
	content: '−';
}

.qa-answer {
	max-height: 0;
	overflow: hidden;
	background-color: var(--dark-bg);
	transition: max-height 0.3s ease-out, padding 0.3s ease;
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--text-gray);
}

.qa-item.active .qa-answer {
	max-height: 500px; /* Adjust as needed */
	padding: 20px;
	border-top: 1px solid #333;
}

/*------------- Usage page -----------------*/
.status-container {
	max-width: 850px;
	margin: 50px auto;
	padding: 0 20px;
}

.led-row {
	display: flex;
	align-items: top;
	background: var(--card-bg);
	margin-bottom: 25px;
	padding: 30px;
	border-radius: 12px;
	border: 1px solid #333;
	position: relative;
}
.led-row h3 {
	margin-top: 0;
	padding-top: 0;
}

/* Individual Mute Control on Left Margin */
.mute-control {
	margin-top: 0.5em;
	position: absolute;
	left: -160px; /* Positions it in the left margin area */
	width: 140px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.mute-control label {
	cursor: pointer;
	font-size: 0.75rem;
	color: var(--text-gray);
	text-transform: uppercase;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
}

.mute-control input[type="checkbox"] {
	margin-left: 10px;
	cursor: pointer;
	accent-color: var(--primary-red);
}

.led-indicator {
	flex: none; /* Prevents it from stretching */
	width: 3em;
	height: 1em;
	margin-top: 0.5em;
	background-color: #1a0000;
	border: 1px solid var(--medium-gray);
	margin-right: 40px;
	box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
	transition: background-color 0.05s;
}

.led-on {
	background-color: var(--primary-red);
	box-shadow: 0 0 15px var(--primary-red), inset 0 0 5px
		rgba(255, 255, 255, 0.3);
}

/* Individual Mute Logic */
.row-muted .led-on {
	background-color: #1a0000 !important;
	box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

.status-text h3 {
	margin: 0 0 5px 0;
	color: var(--text-light);
}

.status-text p {
	color: var(--text-gray);
}

/* Mobile Adjustment for side-labels */
@media ( max-width : 1100px) {
	.mute-control {
		position: static;
		width: auto;
		margin-bottom: 15px;
		justify-content: flex-start;
	}
	.led-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.led-indicator {
		margin-bottom: 20px;
	}
}