/*
 * Hover menu on the small chart icon next to each price row on the
 * homepage (gold/coin boxes). Pure CSS reveal + real <a> links (added
 * by price-chart-hover.js) so it's just as accessible/clickable as any
 * other link, opens in a new tab, and has zero server cost per hover —
 * everything needed is already on the page.
 */

.tt-chart-hover {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.tt-chart-hover__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 50%;
	transform: translateX(50%) translateY(-6px);
	background: #fff;
	border: 1px solid #d2ab67;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
	padding: 6px;
	min-width: 170px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 60;
	white-space: nowrap;
}

.tt-chart-hover:hover .tt-chart-hover__menu,
.tt-chart-hover:focus-within .tt-chart-hover__menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(50%) translateY(0);
}

.tt-chart-hover__menu::after {
	content: '';
	position: absolute;
	bottom: 100%;
	right: 50%;
	transform: translateX(50%);
	border: 6px solid transparent;
	border-bottom-color: #d2ab67;
}

.tt-chart-hover__menu a {
	display: block;
	padding: 7px 12px;
	border-radius: 5px;
	color: #232323;
	font-size: 13px;
	text-decoration: none;
}
.tt-chart-hover__menu a:hover {
	background: #f7efe0;
	color: #a9782f;
}
