/* Calculators hub — compact spot strip + tool tiles */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.calc-top-ad-wrap {
	margin-left: 0;
	margin-bottom: 0;
	padding-top: 0;
	min-height: 0;
}

.calc-top-ad-wrap--empty {
	display: none;
	margin: 0;
	padding: 0;
	min-height: 0;
	overflow: hidden;
}

.calc-top-ad {
	display: none;
	text-align: center;
	margin: 0 auto;
	padding: 0;
	min-height: 0;
}

.calc-top-ad--filled {
	display: block;
	padding-top: 10px;
	margin-bottom: 4px;
}

.calc-top-ad__desktop {
	display: inline-block;
}

.calc-top-ad__mobile {
	display: none;
}

@media only screen and (max-width: 767px), only screen and (max-device-width: 767px) {
	.calc-top-ad__desktop {
		display: none;
	}

	.calc-top-ad__mobile {
		display: inline-block;
	}
}

.spot-strip-compact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	padding: 12px 16px;
	margin-bottom: 20px;
}

.spot-strip-compact__cells {
	display: flex;
	flex: 1 1 280px;
	align-items: stretch;
	gap: 0;
	min-width: 0;
}

.spot-strip-compact__cell {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 12px;
}

.spot-strip-compact__cell:first-child {
	padding-left: 0;
}

.spot-strip-compact__divider {
	width: 1px;
	background: #e6e8ec;
	align-self: stretch;
	flex-shrink: 0;
}

.spot-strip-compact__label-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.spot-strip-compact__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9ca3af;
	flex-shrink: 0;
}

.spot-strip-compact__dot--live {
	background: #16a34a;
}

.spot-strip-compact__metal {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
}

.spot-strip-compact__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
}

.spot-strip-compact__price {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.spot-strip-compact__change {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.spot-strip-compact__change--up {
	color: #16a34a;
}

.spot-strip-compact__change--down {
	color: #dc2626;
}

.spot-strip-compact__change--flat {
	color: #6b7280;
}

.spot-strip-compact__sub {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 2px;
}

.spot-strip-compact__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	font-size: 12px;
	color: #6b7280;
	white-space: nowrap;
}

.spot-strip-compact__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #16a34a;
	animation: calc-spot-pulse 1.8s ease-in-out infinite;
}

@keyframes calc-spot-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 767px) {
	.spot-strip-compact {
		flex-direction: column;
		align-items: stretch;
	}

	.spot-strip-compact__cells {
		flex-direction: column;
	}

	.spot-strip-compact__divider {
		width: 100%;
		height: 1px;
		margin: 8px 0;
	}

	.spot-strip-compact__cell {
		padding: 0;
	}

	.spot-strip-compact__meta {
		justify-content: flex-end;
		padding-top: 4px;
		border-top: 1px solid #e6e8ec;
	}
}

/* Tool tile grid */

.calc-hub-section {
	margin-bottom: 32px;
}

.calc-hub-section h2 {
	font-size: 22px;
	margin: 0 0 16px;
}

.calc-tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.calc-tile {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 10px;
	padding: 16px 18px;
	min-height: 168px;
	height: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.calc-tile__body {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.calc-tile__icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	min-width: 34px;
	max-width: 34px;
	border-radius: 9px;
	background: #eef3f9;
	color: #23527c;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	line-height: 0;
}

.calc-tile__icon svg,
.calc-tile__icon-svg {
	width: 19px;
	height: 19px;
	min-width: 19px;
	max-width: 19px;
	max-height: 19px;
	display: block;
	flex-shrink: 0;
}

.calc-tile__content {
	flex: 1;
	min-width: 0;
}

.calc-tile--live {
	cursor: pointer;
}

a.calc-tile--live:hover,
a.calc-tile--live:focus {
	text-decoration: none;
	color: inherit;
	border-color: #c5cad3;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.calc-tile--live .calc-tile__icon {
	background: #eef3f9;
	color: #23527c;
}

.calc-tile--soon {
	cursor: default;
	border-style: dashed;
	background: #fafafa;
	opacity: 0.82;
}

.calc-tile--soon .calc-tile__icon {
	background: #eef0f2;
	color: #9aa3ad;
}

.calc-tile--soon .calc-tile__title,
.calc-tile--soon .calc-tile__desc {
	color: #6b7280;
}

.calc-tile__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.calc-tile__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
	color: #111827;
}

.calc-tile__pill {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #6b7280;
	white-space: nowrap;
	flex-shrink: 0;
}

.calc-tile__desc {
	font-size: 14px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0;
}

.calc-tile__cue {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
}

.calc-tile__cue--soon {
	color: #9ca3af;
	font-weight: 500;
}

.calc-hub-funnel {
	background: #f8fafc;
	border: 1px solid #e6e8ec;
	border-radius: 10px;
	padding: 16px 20px;
	margin: 28px 0;
	font-size: 15px;
	line-height: 1.6;
}

.calc-hub-faq dt {
	font-weight: 700;
	margin-top: 16px;
}

.calc-hub-faq dd {
	margin-left: 0;
	color: #4b5563;
	line-height: 1.55;
}

.calc-hub-browse {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #e6e8ec;
	font-size: 14px;
}

.calc-hub-browse a {
	margin-right: 12px;
}

/* Calculator subpages */

.calc-page-content {
	margin-top: 24px;
}

.calc-module {
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	padding: 18px 20px;
	margin: 20px 0 28px;
}

.calc-module__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: flex-end;
	margin-bottom: 12px;
}

.calc-module__field {
	flex: 1 1 160px;
	min-width: 140px;
}

.calc-module__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 4px;
}

.calc-module__result {
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #111827;
	margin: 8px 0 4px;
}

.calc-module__sub {
	font-size: 14px;
	color: #4b5563;
	font-variant-numeric: tabular-nums;
}

.calc-module__example {
	background: #f8fafc;
	border: 1px solid #e6e8ec;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.calc-page-funnel {
	margin: 28px 0;
}

.calc-related__row {
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.calc-related__more {
	margin: 8px 0 0;
	font-size: 14px;
}

.calc-page-content h2 {
	font-size: 22px;
	margin: 28px 0 12px;
}

.calc-page-content p,
.calc-page-content li {
	line-height: 1.6;
	color: #39424f;
}

.calc-page-content table {
	font-variant-numeric: tabular-nums;
}

.calc-unavailable {
	color: #6b7280;
	font-style: italic;
	margin: 16px 0;
}

/* Compact spot card (calculator tool pages) */
.calculators-page .calc-spot-card-wrap {
	margin: 0 0 20px;
}

.calculators-page .calc-spot-card {
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	padding: 16px 18px;
	width: 340px;
	max-width: 100%;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	display: flex;
	flex-direction: column;
}

.calculators-page .calc-spot-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.calculators-page .calc-spot-card__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #374151;
}

.calculators-page .calc-spot-card__livedot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #16a34a;
	display: inline-block;
	margin-right: 5px;
	vertical-align: middle;
}

.calculators-page .calc-spot-card__chip {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
}

.calculators-page .calc-spot-card__chip--down {
	background: #fde8e8;
	color: #dc2626;
}

.calculators-page .calc-spot-card__chip--up {
	background: #e7f6ec;
	color: #16a34a;
}

.calculators-page .calc-spot-card__chip--flat {
	background: #eef0f2;
	color: #4b5563;
}

.calculators-page .calc-spot-card__sparkline {
	margin: 10px 0 8px;
	width: 100%;
	height: 46px;
	display: block;
	position: relative;
}

.calculators-page .calc-spot-card__sparkline canvas {
	display: block;
	width: 100%;
	height: 46px;
}

.calculators-page .calc-spot-card__value {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.calculators-page .calc-spot-card__val {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.calculators-page .calc-spot-card__delta {
	font-size: 13px;
	font-weight: 600;
}

.calculators-page .calc-spot-card__delta--down {
	color: #dc2626;
}

.calculators-page .calc-spot-card__delta--up {
	color: #16a34a;
}

.calculators-page .calc-spot-card__delta--flat {
	color: #6b7280;
}

.calculators-page .calc-spot-card__stats {
	display: flex;
	gap: 14px;
	margin-top: 11px;
	padding-top: 11px;
	border-top: 1px solid #f1f2f4;
	font-size: 12px;
	color: #6b7280;
	flex-wrap: wrap;
}

.calculators-page .calc-spot-card__stats b {
	display: block;
	color: #1a1d23;
	font-size: 13px;
	font-weight: 700;
	margin-top: 1px;
	font-variant-numeric: tabular-nums;
}

.calculators-page .calc-spot-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 11px;
	gap: 8px;
	flex-wrap: wrap;
}

.calculators-page .calc-spot-card__ts {
	font-size: 11px;
	color: #9aa1ab;
}

.calculators-page .calc-spot-card__link {
	font-size: 12px;
	font-weight: 600;
	color: #c2410c;
	text-decoration: none;
}

.calculators-page .calc-spot-card__link:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.calculators-page .calc-spot-card {
		width: 100%;
	}
}
