/* Fixed background pattern for all pulse sections */
/* Background image URL is set dynamically via inline styles in page--single.php from ACF field */
article section:last-of-type::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-repeat: repeat;
	background-size: cover;
	opacity: 0.02;
	z-index: 0;
	pointer-events: none;
}

.f0 {
	font-size: 10px;
    line-height: 1.4;
}

/* Ensure section content sits above the background */
article section {
	position: relative;
	z-index: 1;
}

article section#outro::before {
	display: none!important;
}

/* ==========================================================================
   AUTOMATIC SECTION BACKGROUND COLORS
   Uses nth-of-type to alternate between colors - no ACF config needed
   ========================================================================== */

/* --------------------------------------------------------------------------
   DARK MODE (.dark-theme)
   Hero: black | Odd sections: dark grey | Even sections: darker grey
   -------------------------------------------------------------------------- */

/* Hero section - black */
article.dark-theme section:first-of-type:not(#outro),
article.dark-theme section#hero {
	background-color: #27252c !important;
}

/* Odd sections after hero (section 1, 3, 5...) - dark grey #2a282f */
article.dark-theme section:nth-of-type(odd):not(#outro) {
	background-color:  #27252c!important;
}

/* Even sections (section 2, 4, 6...) - darker grey #121212 */
article.dark-theme section:nth-of-type(even):not(#outro) {
	background-color: #2a282f !important;
}

/* Brought to you by section - dark grey */
article.dark-theme section#btyb {
	background-color: #2a282f !important;
}

/* Conclusion section */
article.dark-theme section#conclusion:not(#outro) {
	background-color: #303138!important;
}

/* Form section (uses div, not section) */
article.dark-theme #form {
	background-color: #2a282f!important;
}

/* --------------------------------------------------------------------------
   LIGHT MODE (.light-theme)
   Hero: white | Odd sections: light grey | Even sections: white
   -------------------------------------------------------------------------- */

/* Hero section - white */
article.light-theme section:first-of-type,
article.light-theme section#hero {
	background-color: #ffffff !important;
}

/* Odd sections after hero (section 1, 3, 5...) - light grey */
article.light-theme section:nth-of-type(odd) {
	background-color: #f5f5f5 !important;
}

/* Even sections (section 2, 4, 6...) - white */
article.light-theme section:nth-of-type(even) {
	background-color: #ffffff !important;
}

/* Brought to you by section - light grey */
article.light-theme section#btyb {
	background-color: #f5f5f5 !important;
}

/* Conclusion section */
article.light-theme section#conclusion {
	background-color: #ffffff !important;
}

/* Form section (uses div, not section) */
article.light-theme #form {
	background-color: #f5f5f5 !important;
}

/* Override default white text on primary buttons when contrast class is applied */
.c-btn.c-btn--primary-ui .color-text-grey-8,
.c-btn.c-btn--primary-ui.color-text-grey-8,
.c-btn.c-btn--primary-ui > div.color-text-grey-8 {
	color: #222222 !important;
}

.c-btn.c-btn--primary-ui .color-text-grey-8 .c-icon,
.c-btn.c-btn--primary-ui > div.color-text-grey-8 .c-icon {
	color: #222222 !important;
}

/* Pulse button text color overrides - allow dynamic text colors based on background */
.c-btn--primary-ui.color-text-grey-8 {
	color: #4d4d4d !important;
}
.c-btn--primary-ui.color-text-grey-7 {
	color: #797979 !important;
}
.c-btn--primary-ui.color-text-white {
	color: #ffffff !important;
}

.c-table--border {
	border: none !important;
}

.c-table th {
	background-color: transparent !important;
	font-size: 1.25rem !important;
}
.c-table td:not(:last-of-type),
.c-table th:not(:last-of-type) {
	border-right: none !important;
}

.c-table td,
.c-table th {
	padding: 10px !important;
}

.c-table td,
.c-table th {
	color: inherit;
}

.c-table td {
	font-size: 0.9rem !important;
	border-top: 1px solid #4d4d4d !important;
}

#form .c-content p {
	color: #797979;
}

.chart-container {
	height: 100%;
	position: relative;
}
.chart-watermark {
	display: none;
	position: absolute;
	bottom: 30px;
	right: 50px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	z-index: 10;
}

.chart-watermark .chart-download-timestamp {
	 margin-left: -60px;
}
.chart-watermark .c-chip span.c-chip-wrapper {
    border: 1px solid #eee;
}
.chart-watermark .c-chip span.c-chip-wrapper span {
    top: 0px;
}

.chart-watermark  .c-chip {
	margin-top: -7px;
	margin-left: 34px;
}

.download-chart-php {
	position: absolute;
	right: 15px;
	top: 15px;
	cursor: pointer;
	transition: 0.3s ease all;
}

.download-chart-php:after {
	content: 'Download Chart';
	opacity: 0;
	position: absolute;
	right: -4px;
	top: 30px;
	font-size: 8px;
	z-index: 1000;
}

.download-chart-php:hover {
	transform: scale(1.4);
	transition: 0.3s ease all;
	color: #ffffff;
}

.download-chart-php:hover svg {
	fill: #ffffff;
}

.download-chart-php:hover::after {
	opacity: 1;
	transition: 0.3s ease all;
}

@media (max-width: 768px) {
	.download-chart-btn {
		display: none;
	}
}

.pulsating-circle {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	width: 30px;
	height: 30px;
}
.pulsating-circle:before {
	content: '';
	position: relative;
	display: block;
	width: 300%;
	height: 300%;
	box-sizing: border-box;
	margin-left: -100%;
	margin-top: -100%;
	border-radius: 45px;
	animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.pulsating-circle:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 15px;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
	animation: pulse-dot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
}

@keyframes pulse-ring {
	0% {
		transform: scale(0.33);
	}
	80%,
	100% {
		opacity: 0;
	}
}

@keyframes pulse-dot {
	0% {
		transform: scale(0.8);
	}
	50% {
		transform: scale(1);
	}
	100% {
		transform: scale(0.8);
	}
}

.c-btn--tertiary-light:hover {
	color: #858585 !important;
}

/* #section-4 p {
	letter-spacing: 0;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	margin-bottom: 20px;
	font-size: 0.9rem;
}

#section-4 .small_print p {
	letter-spacing: 0;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	font-size: 0.7rem;
	color: #858585;
} */

#form .c-content p {
	letter-spacing: 0;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	margin-bottom: 20px;
	font-size: 0.9rem;
}

#form svg {
	fill: #222222 !important;
}

body.is-dark-mode #form svg {
	fill: #ffffff !important;
}

/** charts **/
.chart-container {
	display: grid;
}

.chart-container:nth-child(3n),
.chart-container:nth-child(4n) {
	padding-top: 0px !important;
}
.chart-container.two-charts {
	grid-template-columns: 1fr;
}
.chart-container.three-charts {
	grid-template-columns: repeat(2, 1fr);
}
.chart-container.three-charts .chart-item:nth-child(1) {
	padding-right: 20px;
}

.chart-container.three-charts .chart-item:nth-child(2) {
	padding-left: 20px;
}

.chart-container.three-charts .chart-item:nth-child(3) {
	grid-column: span 2;
}

.chart-container.three-charts .chart-item:nth-child(3) .c-copy {
	width: 60%;
}

@media (max-width: 700px) {
	.chart-container.three-charts {
		grid-template-columns: 1fr;
	}

	.chart-container.three-charts .chart-item:nth-child(1),
	.chart-container.three-charts .chart-item:nth-child(2) {
		padding-left: 0;
		padding-right: 0;
	}

	.chart-container.three-charts .chart-item:nth-child(3) {
		grid-column: span 1;
	}

	.chart-container.three-charts .chart-item:nth-child(3) .c-copy {
		width: 100%;
	}
}

.chart-container.four-charts {
	grid-template-columns: repeat(2, 1fr);
	gap: 40px 20px;
}

.chart-container.four-charts .chart-item:nth-child(1),
.chart-container.four-charts .chart-item:nth-child(3) {
	padding-right: 10px;
}

.chart-container.four-charts .chart-item:nth-child(2),
.chart-container.four-charts .chart-item:nth-child(4) {
	padding-left: 10px;
}

.bcr-endpoint-data {
	min-height: 350px;
}
[data-charttype='count'] {
	min-height: 0;
}

.trend-indicator-enhanced {
	display: inline-flex;
	align-items: center;
	margin-left: 10px;
	padding: 0px 4px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 15px;
	position: relative;
	z-index: 10;
	background-color: rgb(138, 197, 57);
	color: white;
	position: absolute;
	top: 94px;
	right: 40px;
}

[class*="featured-image-"] {
	z-index: 10000;
	aspect-ratio: 16/9;
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Featured images animation - when they come into view */
[class*="featured-image-"].animate-in {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered animation for multiple featured images */
.featured-image-0 {
	transition-delay: 0.2s;
}

.featured-image-1 {
	transition-delay: 0.4s;
}

.featured-image-2 {
	transition-delay: 0.6s;
}

/* Static Annotation Labels on Charts */
.annotation-static-label {
    pointer-events: none;
}

.annotation-static-label-bg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.annotation-static-label-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.c-chip span.c-chip-wrapper {
	padding: 0px 8px;
	border: 2px solid #eee;
	border-radius: 50px;
	align-items: center;
	justify-content: center;
}

.c-chip span.c-chip-wrapper span {
    position: relative;
    top: 1px;
}

/* Hide Highcharts legend symbols for emotion charts - show only emoji icons */
[data-endpoint="mentions_detailed_emotions"] .highcharts-legend-item .highcharts-point,
[data-endpoint="mentions_detailed_emotions"] .highcharts-legend-item rect,
[data-endpoint="mentions_detailed_emotions"] .highcharts-legend-item path {
    display: none !important;
}

/* Fix overflow and clipping issues for emotion legend */
.highcharts-legend {
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
}

.highcharts-legend-item {
	overflow: visible !important;
	vertical-align: top !important;
	height: auto !important;
	max-height: none !important;
	display: inline-block !important;
}

/* Color marker for emotion legend */
.emotion-color-marker {
	display: inline-block !important;
	width: 12px !important;
	height: 12px !important;
	min-width: 12px !important;
	min-height: 12px !important;
	border-radius: 2px !important;
	flex-shrink: 0 !important;
	margin-bottom: 4px !important;
}

/* Fix for Highcharts wrapper span - allow it to size properly but not clip content */
.highcharts-legend-item > span:first-of-type {
	display: inline-block !important;
	overflow: visible !important;
	width: auto !important;
	height: auto !important;
	min-width: 60px !important;
	min-height: 50px !important;
}

.highcharts-legend-item text {
	overflow: visible !important;
	height: auto !important;
}

/* Adjust legend item spacing for emotion charts - vertical layout with emoji on top */
.emotion-legend-item {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	min-width: 60px !important;
	min-height: 60px !important;  /* Increased to fit marker */
	padding: 8px 4px !important;
	text-align: center !important;
}

.emotion-legend-item img {
	display: block !important;
	overflow: visible !important;
	height: 24px !important;
	width: 24px !important;
	min-height: 24px !important;
	min-width: 24px !important;
	max-height: none !important;
	flex-shrink: 0 !important;
}

.emotion-legend-item span {
	display: block !important;
	text-align: center !important;
	font-size: 11px !important;
	line-height: 1.2 !important;
}

/* Chart Annotation Tooltip Styles */
.chart-annotation-tooltip {
	position: absolute;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 0;
	min-width: 220px;
	max-width: 320px;
	z-index: 10000;
	font-family: inherit;
	border: 1px solid rgba(0, 0, 0, 0.08);
	animation: tooltipFadeIn 0.2s ease-out;
}

/* Dark mode tooltip */
body.is-dark-mode .chart-annotation-tooltip {
	background: #252328;
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.annotation-tooltip-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 12px 12px 0 0;
}

body.is-dark-mode .annotation-tooltip-header {
	background: linear-gradient(135deg, #27252c 0%, #2a282f 100%);
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.annotation-tooltip-header strong {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
	flex: 1;
	letter-spacing: -0.01em;
}

body.is-dark-mode .annotation-tooltip-header strong {
	color: #ffffff;
}

.annotation-tooltip-close {
	background: rgba(0, 0, 0, 0.04);
	border: none;
	font-size: 18px;
	color: #666;
	cursor: pointer;
	padding: 0;
	margin-left: 10px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.15s ease;
	font-weight: 300;
	line-height: 1;
}

body.is-dark-mode .annotation-tooltip-close {
	background: rgba(255, 255, 255, 0.08);
	color: #aaa;
}

.annotation-tooltip-close:hover {
	background: rgba(0, 0, 0, 0.1);
	color: #000;
	transform: scale(1.05);
}

body.is-dark-mode .annotation-tooltip-close:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.annotation-tooltip-body {
	padding: 14px 18px;
}

.annotation-tooltip-date {
	font-size: 13px;
	color: #666;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	font-weight: 500;
}

body.is-dark-mode .annotation-tooltip-date {
	color: #aaa;
}

.annotation-tooltip-date svg {
	opacity: 0.7;
}

body.is-dark-mode .annotation-tooltip-date svg {
	opacity: 0.8;
}

.annotation-tooltip-desc {
	font-size: 13px;
	color: #4a4a4a;
	line-height: 1.6;
	margin: 0;
}

body.is-dark-mode .annotation-tooltip-desc {
	color: #d0d0d0;
}

/* Tooltip fade-in animation */
@keyframes tooltipFadeIn {
	from {
		opacity: 0;
		transform: translate(-50%, -95%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -100%);
	}
}

/* Static Annotation Labels on Charts */
.annotation-static-label {
	pointer-events: none;
}

.annotation-static-label-bg {
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.annotation-static-label-text {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================================================
   Glowing Border Effect for Hero Chart Container
   ========================================================================== */

/* CSS Variables for gradient - can be overridden inline with page theme colors */
.gradient-border-card {
	--gradient-border: conic-gradient(from 180deg at 50% 50%, var(--pulse-color-1, #ff6d56) 0deg, var(--pulse-color-2, #ff6d56) 112.5deg, rgba(255, 255, 255, 0.3) 228.75deg, rgba(42, 138, 246, 0) 360deg);
	--glowing-gradient: conic-gradient(from 0 at 50% 50%, rgba(255, 255, 255, 0.5) 0deg, rgba(255, 255, 255, 0) 60deg, rgba(255, 255, 255, 0) 310deg, rgba(255, 255, 255, 0.5) 360deg);
	--pulse-border-radius: 8px; /* Default rounded, set to 0 for sharp corners */
	position: relative;
	transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	box-shadow: 0 0 0 1px transparent, 0 2px 4px rgba(0, 0, 0, 0.06), 0 12px 24px transparent;
	z-index: 1;
}

.gradient-border-card i,
.gradient-border-card .glowing-wrapper-icon {
	position: absolute;
	inset: -1px;
	--border-size: 2px;
	--padding: 1px;
	padding: calc(var(--padding) + var(--border-size));
	border-radius: calc(var(--pulse-border-radius) + var(--border-size));
	overflow: hidden;
	display: inline-block;
	z-index: -1;
	backface-visibility: hidden;
	perspective: 1000;
	transform: translateZ(0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
}

.gradient-border-card i::before,
.gradient-border-card .glowing-wrapper-icon::before {
	content: '';
	display: block;
	width: 180%;
	padding-bottom: 180%;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-radius: 100%;
	z-index: -2;
	animation: pulse-glow-spin 15s linear infinite;
	background: var(--gradient-border);
	box-shadow: 0 0 40px 20px var(--gradient-border);
}

.gradient-border-card::before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: calc(var(--pulse-border-radius) + 1px);
	padding: 1px;
	background: radial-gradient(75% 75% at 25% 15%, #fff 0, rgba(255, 255, 255, 0.3) 100%);
	mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
	mask-composite: exclude;
	opacity: 0.5;
	pointer-events: none;
}

@keyframes pulse-glow-spin {
	from {
		transform: translate(-50%, -50%) rotate(1turn);
	}
	to {
		transform: translate(-50%, -50%) rotate(0);
	}
}

/* Glowing wrapper elements */
.glowing-wrapper {
	border-radius: 62.5rem;
	display: inline-block;
	position: relative;
	overflow: hidden;
}

.glowing-wrapper.glowing-wrapper-active {
	background: transparent;
}

.glowing-wrapper-borders-masker,
.glowing-wrapper-animations {
	width: 100%;
	opacity: 0;
	transition: opacity 1s;
	position: absolute;
}

.glowing-wrapper-borders-masker {
	border-radius: 62.5rem;
	padding: 0.11rem;
	line-height: 100%;
	inset: 0;
}

.glowing-wrapper-animations {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.glowing-wrapper-mask {
	opacity: 1;
}

.glowing-wrapper-glow {
	opacity: 0.12;
	filter: blur(8px);
}

.glowing-wrapper-borders {
	width: 100%;
	opacity: 1;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.glowing-wrapper-mask-wrapper {
	opacity: 1;
	mask: url("data:image/svg+xml,%3Csvg width='28' height='24' viewBox='0 0 28 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='28' height='24' fill='black'/%3E%3C/svg%3E");
	mask-repeat: repeat;
	mask-size: auto;
}

.glowing-wrapper-active .glowing-wrapper-animations,
.glowing-wrapper-active .glowing-wrapper-borders-masker {
	opacity: 1;
}

.glowing-wrapper-animations::before,
.glowing-wrapper-borders::before {
	content: '';
	float: left;
	padding-top: 100%;
}

.glowing-wrapper-animations::after,
.glowing-wrapper-borders::after {
	clear: both;
	content: '';
	display: block;
}

.glowing-wrapper-animations * {
	height: 100%;
	inset: 0;
	position: absolute;
}

.glowing-wrapper-borders,
.glowing-wrapper-glow,
.glowing-wrapper-mask {
	animation: pulse-border-turn 4.5s infinite linear;
	background: var(--glowing-gradient) center/cover no-repeat;
}

.glowing-wrapper-borders {
	animation-name: pulse-border-turn-translate;
}

.glowing-wrapper-borders-masker {
	content: '';
	inset: 0;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	pointer-events: none;
}

@keyframes pulse-border-turn {
	to {
		transform: rotate(360deg);
	}
}

@keyframes pulse-border-turn-translate {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* ==========================================================================
   Stale Data Warning Banner
   ========================================================================== */

/**
 * Warning banner displayed when pulse data is stale (> 2 hours old)
 * Shows at the top of the page with dismissible functionality
 */

.bcr-stale-data-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-100%);
	transition: transform 0.3s ease-in-out;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.bcr-stale-data-banner--visible {
	transform: translateY(0);
}

.bcr-stale-data-banner__content {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
}

.bcr-stale-data-banner__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: #ffffff;
	opacity: 0.9;
}

.bcr-stale-data-banner__message {
	flex: 1;
	font-size: 14px;
	line-height: 1.5;
	color: #ffffff;
}

.bcr-stale-data-banner__message strong {
	font-weight: 600;
	margin-right: 4px;
}

.bcr-stale-data-banner__dismiss {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	transition: background 0.2s ease;
	padding: 0;
}

.bcr-stale-data-banner__dismiss:hover {
	background: rgba(255, 255, 255, 0.25);
}

.bcr-stale-data-banner__dismiss:active {
	background: rgba(255, 255, 255, 0.35);
}

.bcr-stale-data-banner__dismiss svg {
	width: 16px;
	height: 16px;
}

/* Dark mode support */
body.is-dark-mode .bcr-stale-data-banner {
	background: linear-gradient(135deg, #d94c1f 0%, #e07a00 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.bcr-stale-data-banner__content {
		padding: 12px 16px;
		gap: 10px;
	}

	.bcr-stale-data-banner__message {
		font-size: 13px;
	}

	.bcr-stale-data-banner__icon {
		width: 18px;
		height: 18px;
	}

	.bcr-stale-data-banner__dismiss {
		width: 28px;
		height: 28px;
	}
}

@media (max-width: 480px) {
	.bcr-stale-data-banner__content {
		flex-direction: row;
		align-items: flex-start;
	}

	.bcr-stale-data-banner__message {
		font-size: 12px;
	}
}

/* Ensure banner doesn't interfere with fixed header if present */
.c-nav {
	margin-top: 0;
	transition: margin-top 0.3s ease-in-out;
}

/* Push content down when banner is visible */
article {
	transition: padding-top 0.3s ease-in-out;
}

.bcr-stale-data-banner--visible ~ article {
	padding-top: 60px;
}

@media (max-width: 768px) {
	.bcr-stale-data-banner--visible ~ article {
		padding-top: 56px;
	}
}

/* ==========================================================================
   Endpoint Error State (Partial Rendering)
   ========================================================================== */

/**
 * Error UI displayed when an individual endpoint fails
 * Allows page to render with partial data instead of failing entirely
 */

.bcr-endpoint-error {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 32px 24px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 2px dashed #dee2e6;
	border-radius: 8px;
	margin: 16px 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.bcr-endpoint-error__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 480px;
	gap: 20px;
}

.bcr-endpoint-error__icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	color: #6c757d;
	margin-bottom: 8px;
}

.bcr-endpoint-error__text {
	color: #495057;
}

.bcr-endpoint-error__title {
	font-size: 18px;
	font-weight: 600;
	color: #212529;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.bcr-endpoint-error__message {
	font-size: 14px;
	line-height: 1.6;
	color: #6c757d;
	margin: 0 0 8px 0;
}

.bcr-endpoint-error__meta {
	font-size: 13px;
	color: #868e96;
	margin: 0 0 8px 0;
}

.bcr-endpoint-error__meta strong {
	color: #495057;
	font-weight: 600;
}

.bcr-endpoint-error__help {
	font-size: 12px;
	color: #868e96;
	margin: 0;
	font-style: italic;
}

/* Dark mode support */
body.is-dark-mode .bcr-endpoint-error {
	background: linear-gradient(135deg, #212529 0%, #343a40 100%);
	border-color: #495057;
}

body.is-dark-mode .bcr-endpoint-error__icon {
	color: #adb5bd;
}

body.is-dark-mode .bcr-endpoint-error__title {
	color: #f8f9fa;
}

body.is-dark-mode .bcr-endpoint-error__message {
	color: #adb5bd;
}

body.is-dark-mode .bcr-endpoint-error__meta {
	color: #868e96;
}

body.is-dark-mode .bcr-endpoint-error__meta strong {
	color: #adb5bd;
}

body.is-dark-mode .bcr-endpoint-error__help {
	color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.bcr-endpoint-error {
		min-height: 180px;
		padding: 24px 16px;
	}

	.bcr-endpoint-error__content {
		gap: 16px;
	}

	.bcr-endpoint-error__icon {
		width: 40px;
		height: 40px;
	}

	.bcr-endpoint-error__title {
		font-size: 16px;
	}

	.bcr-endpoint-error__message {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.bcr-endpoint-error {
		min-height: 160px;
		padding: 20px 12px;
	}

	.bcr-endpoint-error__title {
		font-size: 15px;
	}

	.bcr-endpoint-error__message {
		font-size: 12px;
	}

	.bcr-endpoint-error__meta {
		font-size: 12px;
	}

	.bcr-endpoint-error__help {
		font-size: 11px;
	}
}

/* Manual Data Badge */
.bcr-manual-data-badge {
	display: inline-block;
	margin-left: 10px;
	padding: 4px 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 12px;
	vertical-align: middle;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
	transition: all 0.2s ease;
	cursor: help;
}

.bcr-manual-data-badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* Dark mode variant */
body.is-dark-mode .bcr-manual-data-badge {
	background: linear-gradient(135deg, #7b8af7 0%, #8a5fb8 100%);
	box-shadow: 0 2px 4px rgba(123, 138, 247, 0.4);
}

body.is-dark-mode .bcr-manual-data-badge:hover {
	box-shadow: 0 4px 8px rgba(123, 138, 247, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.bcr-manual-data-badge {
		font-size: 10px;
		padding: 3px 8px;
		margin-left: 6px;
	}
}

/* ═══════════════════════════════════════════════════════════════
   Social Embeds Section
   ═══════════════════════════════════════════════════════════════ */

.social-embeds-section {
	position: relative;
	overflow: hidden;
}

/* 2-Column Grid Layout */
.social-embeds-section .l-grid {
	align-items: stretch;
}

/* Left Column - Text Content */
.social-embeds-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 40px;
}

@media (max-width: 767px) {
	.social-embeds-content {
		padding-right: 0;
		margin-bottom: 40px;
	}
}

/* Right Column - Embeds Stack */
.social-embeds-column {
	display: flex;
	align-items: center;
}

.social-embeds-stack {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Individual Social Embed Item */
.social-embed-item {
	padding: 24px;
	transition: all 0.3s ease;
	overflow: hidden;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Embed Container Responsiveness */
.social-embed-item blockquote,
.social-embed-item iframe,
.social-embed-item .fb-post,
.social-embed-item .youtube-embed-wrapper {
	max-width: 100% !important;
	margin: 0 auto !important;
}

/* Twitter Embeds */
.social-embed-item[data-platform="twitter"] .twitter-tweet {
	margin: 0 auto !important;
}

/* Instagram Embeds */
.social-embed-item[data-platform="instagram"] .instagram-media {
	margin: 0 auto !important;
	min-width: unset !important;
	max-width: 540px !important;
}

/* Facebook Embeds */
.social-embed-item[data-platform="facebook"] .fb-post {
	margin: 0 auto !important;
}

/* TikTok Embeds */
.social-embed-item[data-platform="tiktok"] .tiktok-embed {
	margin: 0 auto !important;
	max-width: 605px !important;
}

/* YouTube Embeds */
.youtube-embed-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	max-width: 100%;
	background: #000;
	border-radius: 8px;
}

.youtube-embed-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Reddit Embeds */
.social-embed-item[data-platform="reddit"] .reddit-embed-bq {
	margin: 0 auto !important;
	max-width: 640px !important;
}

/* Loading State */
.social-embed-item:empty::before {
	content: 'Loading embed...';
	display: block;
	text-align: center;
	padding: 60px 20px;
	opacity: 0.5;
	font-size: 14px;
}

/* Hover Effects */
.social-embed-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.is-dark-mode .social-embed-item:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
	.social-embeds-stack {
		gap: 16px;
	}

	.social-embed-item {
		padding: 16px;
		min-height: 150px;
	}

	.youtube-embed-wrapper {
		border-radius: 4px;
	}
}

/* Tablet Responsiveness */
@media (min-width: 768px) and (max-width: 991px) {
	.social-embeds-content {
		padding-right: 24px;
	}

	.social-embeds-stack {
		gap: 20px;
	}
}

/* Theme-specific adjustments for embeds */
body.is-dark-mode .social-embed-item {
	background-color: #1a1a1a;
}

body.is-dark-mode .youtube-embed-wrapper {
	background: #000;
}

/* Ensure embeds don't overflow on narrow screens */
@media (max-width: 480px) {
	.social-embed-item blockquote,
	.social-embed-item iframe,
	.social-embed-item .fb-post {
		transform: scale(0.95);
		transform-origin: center;
	}
}

/* ==========================================================================
   CHART TODAY PULSE ANIMATION
   Shows animated pulse on "Today" endpoint to indicate data is accumulating
   ========================================================================== */

@keyframes chart-pulse-ring {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}
	100% {
		transform: scale(2.5);
		opacity: 0;
	}
}

@keyframes chart-pulse-dot {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

.chart-today-pulse {
	position: absolute;
	pointer-events: none;
}

.chart-today-pulse .pulse-ring {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: currentColor;
	opacity: 0;
	animation: chart-pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
	transform-origin: center center;
	left: -6px;
	top: -6px;
}

.chart-today-pulse .pulse-ring:nth-child(2) {
	animation-delay: 0.5s;
}

.chart-today-pulse .pulse-dot {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: currentColor;
	animation: chart-pulse-dot 1.5s ease-in-out infinite;
	left: -4px;
	top: -4px;
	box-shadow: 0 0 6px currentColor;
}

.live-data-label {
	position: absolute;
	font-size: 8px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
	padding: 2px 5px;
	border-radius: 2px;
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	pointer-events: none;
}

.light-theme .live-data-label {
	background-color: rgba(255, 255, 255, 0.9);
	color: #333;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
