/* /frontend/css/seo-style.css */
/* Consolidated styles for SEO pages served by the main platform */
/* Updated: 2025-11-28 with FORCE COLOR FIX #333333 */

/* === BASE STYLES === */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: #ffffff !important;
	color: #333333;
	margin: 0;
	padding: 10px;
	line-height: 1.6;
	box-sizing: border-box;
}

.main-content {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	background-color: #ffffff;
}

/* === HEADER STYLES (Dark Theme) === */
.main-header {
	display: flex;
	flex-direction: column;
	padding-top: 12px;
	background-color: #000000;
	color: #fff;
	margin: -10px -10px 10px -10px;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 10px;
}

.header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
	flex-wrap: wrap;
	gap: 10px;
}

.header-row .info-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.header-row .info-item.center {
	flex-grow: 1;
	justify-content: center;
}

.header-row .info-item.right {
	margin-left: auto;
}

/* Header Links (White) */
.header-link,
.client-link,
.exit-btn {
	color: white;
	text-decoration: none;
	font-weight: bold;
	font-size: 22px;
	line-height: 1;
	padding: 5px;
	border-radius: 5px;
	transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	background: none;
	border: none;
	font-family: inherit;
	gap: 5px;
}

.client-link {
	font-size: 21px;
}

.header-link:hover,
.client-link:hover,
.exit-btn:hover {
	background-color: #fff;
	color: #000;
	text-decoration: none;
	padding: 5px 10px;
}

/* Dropdowns */
.dropdown-container {
	position: relative;
	display: inline-flex;
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #f9f9f9;
	min-width: 120px;
	border: 1px solid #ccc;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	border-radius: 4px;
	padding: 5px 0;
}

.dropdown-menu a {
	color: black;
	padding: 8px 12px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: normal;
	white-space: nowrap;
}

.dropdown-menu a:hover {
	background-color: #f1f1f1;
	color: black;
}

.dropdown-container:hover .dropdown-menu {
	display: block;
}

/* === CONTENT STYLES === */
h1 {
	text-align: center;
	color: #000000;
	margin-top: 20px;
	margin-bottom: 20px;
	font-size: 2.5em;
	font-weight: 700;
}

h2.cluster-header {
	background-color: #f8f9fa;
	padding: 15px 20px;
	border-left: 5px solid #007bff;
	margin-top: 50px;
	margin-bottom: 20px;
	font-size: 1.8em;
	border-radius: 4px;
	color: #2c3e50;
	scroll-margin-top: 50px;
}

h3 {
	margin-top: 30px;
	margin-bottom: 15px;
	color: #333;
	font-size: 1.4em;
	font-weight: 600;
	border-bottom: none;
	scroll-margin-top: 50px;
}

.indicator-section {
	margin-bottom: 10px;
	background-color: #ffffff;
	border-bottom: none;
	padding-bottom: 0;
}

p {
	font-size: 16px;
	color: #444;
	margin-bottom: 20px;
	max-width: 100%;
	text-align: justify;
}

.error-block {
	color: #721c24;
	background-color: #f8d7da;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.info-block {
	color: #004085;
	background-color: #cce5ff;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.chart-image-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin-top: 15px;
	margin-bottom: 5px !important;
	border: none;
	border-radius: 0;
	overflow: hidden;
	background-color: #ffffff;
	box-shadow: none;
}

.chart-image-container img {
	display: block;
	width: 100%;
	height: auto;
	background-color: #ffffff;
}

/* === TOC STYLES (FLEX MONOLITH ARCHITECTURE) === */

.toc-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

/* 1. TOP BUTTON */
.toc-button#toc-button {
	font-size: 200%;
	text-align: center;
	font-weight: bold;
	width: 100%;
	background-color: #f0f0f0;
	color: #333;
	border: 1px solid #ccc;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	border-bottom-left-radius: 0; 
	border-bottom-right-radius: 0;
	border-bottom: none;
	padding: 15px;
	cursor: pointer;
	margin: 0;
	box-sizing: border-box;
	flex-shrink: 0;
	transition: background-color 0.2s;
}

.toc-button#toc-button:hover {
	background-color: #e0e0e0;
}

/* 2. OVERLAY (Middle Content) */
.toc-overlay {
	width: 100%;
	max-height: 0;
	overflow: hidden; 
	transition: max-height 0.3s ease-out;
	background-color: #fff;
	box-sizing: border-box;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	border-top: none;
	border-bottom: none; 
	margin: 0;
	padding: 0; 
	border-radius: 0;
}

.toc-overlay.active {
	max-height: 20000px;
}

/* List Styling */
.toc-list-root {
	padding: 20px 40px; 
	margin: 0;
	list-style: none;
	box-sizing: border-box;
}

.toc-list-root ul {
	padding-left: 15px; 
	list-style: none;
	margin: 0;
}

.toc-list-root a {
	display: block;
	text-decoration: none;
	color: #0000EE;
	padding: 4px 0;
}

.toc-list-root a:hover {
	text-decoration: underline;
	background-color: #f9f9f9;
}

.toc-list-root li:last-child {
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.toc-overlay-title {
	font-weight: bold;
	text-align: center;
	margin-bottom: 20px;
	font-size: 200%; 
}

/* 3. BOTTOM BUTTON (Sibling) */
.toc-collapse-btn {
	font-size: 200% !important; 
	text-align: center !important;
	font-weight: bold !important;
	width: 100%;
	background-color: #f0f0f0 !important;
	color: #333333 !important; /* FIX: FORCE #333333 */
	font-family: inherit !important;
	
	border: 1px solid #ccc !important;
	border-radius: 0 0 5px 5px !important;
	border-top: none !important;
	
	padding: 15px !important;
	cursor: pointer;
	margin: 0 !important; 
	box-sizing: border-box;
	flex-shrink: 0;
	
	display: none; /* Controlled by JS */
}

.toc-collapse-btn:hover {
	background-color: #e0e0e0 !important;
}

/* === FOOTER STYLES (Light Theme) === */
.main-footer {
	width: 100%;
	background-color: #ffffff;
	color: #333;
	padding: 20px 0;
	box-sizing: border-box;
	margin-top: 40px;
	text-align: left;
	line-height: 1.6;
	font-size: 14px;
	border-top: 1px solid #ccc;
}

.main-footer a {
	color: #0000FF;
	text-decoration: none;
}

.main-footer a:hover {
	text-decoration: underline;
}

hr { display: none !important; }
footer, .footer { border-top: none !important; margin-top: 0 !important; }