/* Spot price chart containers and tooltips */
.spot-chart-wrapper {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 24px;
	position: relative;
}

.spot-chart-wrapper canvas {
	touch-action: pan-y;
}

.spot-period-controls {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.spot-period-controls .btn {
	background: #fff;
	color: #555;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-weight: 600;
	font-size: 13px;
	padding: 5px 14px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.spot-period-controls .btn:hover {
	background: #f5f5f5;
	color: #333;
}

.spot-period-controls .btn.active {
	background: rgb(66, 103, 178);
	color: #fff;
	border-color: rgb(66, 103, 178);
}

.spot-tooltip {
	position: absolute;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	padding: 12px 16px;
	font-family: Arial, sans-serif;
	font-size: 13px;
	color: #333;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s ease, left 0.08s ease, top 0.08s ease;
	z-index: 100;
	white-space: nowrap;
	min-width: 180px;
}

.spot-tooltip-date {
	font-weight: 600;
	font-size: 13px;
	color: #555;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eee;
}

.spot-tooltip-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 0;
}

.spot-tooltip-swatch {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.spot-tooltip-label {
	color: #666;
	flex: 1;
}

.spot-tooltip-value {
	font-weight: 600;
	color: #222;
	font-variant-numeric: tabular-nums;
}

.spot-tooltip-premium,
.spot-tooltip-change {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #eee;
	font-weight: 600;
	color: #444;
}

/* Hub landing card grid (WS8) */
.spot-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 24px 0;
}

@media (max-width: 1024px) {
	.spot-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.spot-card-grid { grid-template-columns: 1fr; }
}

.spot-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 20px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
	text-decoration: none;
	display: block;
	color: inherit;
}

.spot-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	border-color: #ccc;
	text-decoration: none;
	color: inherit;
}

.spot-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.spot-card-metal {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	display: flex;
	align-items: center;
	gap: 8px;
}

.spot-card-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

.spot-card-unit {
	font-size: 12px;
	color: #999;
}

.spot-card-price {
	font-size: 28px;
	font-weight: 700;
	color: #222;
	margin: 4px 0;
	font-variant-numeric: tabular-nums;
}

.spot-card-change {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
}

.spot-card-change.up { color: #28a745; }
.spot-card-change.down { color: #dc3545; }

.spot-card-updated {
	font-size: 13px;
	color: #999;
	margin-bottom: 12px;
}

.spot-card-sparkline {
	width: 100%;
	height: 48px;
	margin-bottom: 12px;
	display: block;
}

.spot-card-link {
	font-size: 13px;
	font-weight: 600;
	color: rgb(66, 103, 178);
	display: flex;
	align-items: center;
	gap: 4px;
}

.spot-card-link .arrow {
	transition: transform 0.15s ease;
}

.spot-card:hover .spot-card-link .arrow {
	transform: translateX(3px);
}

/* Footer nav (WS7) */
.spot-footer-nav {
	padding: 20px 0;
	border-top: 1px solid #e0e0e0;
	margin-top: 32px;
}

.spot-footer-section {
	margin-bottom: 12px;
}

.spot-footer-heading {
	font-weight: 600;
	color: #333;
	margin-right: 12px;
	font-size: 14px;
}

.spot-footer-links a {
	color: #555;
	text-decoration: none;
	font-size: 14px;
}

.spot-footer-links a:hover {
	color: rgb(66, 103, 178);
	text-decoration: underline;
}

.dot-sep {
	color: #bbb;
	margin: 0 6px;
}

.spot-related-pages-nav {
	margin: 8px 0 24px;
	line-height: 1.8;
}

.spot-related-pages-nav a {
	color: #555;
	text-decoration: none;
	font-size: 14px;
}

.spot-related-pages-nav a:hover {
	color: rgb(66, 103, 178);
	text-decoration: underline;
}

.h1-20 {
	font-size: 20px;
	font-weight: bold;
}

.spot-chart-wrapper .chartjs-legend {
	font-family: Arial, sans-serif;
	font-size: 12px;
}
