/* =========================================================================
   /european-vs-american-roulette/: builds on learn.css.
   ========================================================================= */

/* ---------- Hero: at-a-glance table ---------- */

.wv-verdict__table {
	width: 100%;
	margin: 4px 0 18px;
	border-collapse: collapse;
	font-size: 14.5px;
}

.wv-verdict__table th,
.wv-verdict__table td {
	padding: 9px 0;
	border-bottom: 1px solid var(--rw-ink-line);
	text-align: right;
	vertical-align: middle;
}

.wv-verdict__table thead th {
	padding-top: 0;
	color: var(--rw-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wv-verdict__table tbody th {
	color: var(--rw-on-dark-3);
	font-weight: 600;
	text-align: left;
}

.wv-verdict__table td {
	padding-left: 12px;
	color: #FFFFFF;
	font-weight: 700;
	white-space: nowrap;
}

.wv-verdict__table tr:last-child th,
.wv-verdict__table tr:last-child td {
	border-bottom: 0;
}

.wv-verdict__table td.is-good {
	color: #4FD196;
}

.wv-verdict__table td.is-bad {
	color: #FF7A8C;
}

/* ---------- Wheel diagrams ---------- */

.wv-wheels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin-top: 28px;
}

.wv-wheel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin: 0;
	padding: 26px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: 20px;
}

.wv-wheel__svg {
	display: block;
	width: 100%;
	max-width: 380px;
	height: auto;
	margin: 0 auto;
}

.wv-num {
	fill: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 15px;
	font-weight: 700;
	text-anchor: middle;
	dominant-baseline: central;
}

.wv-num--zero {
	font-size: 16px;
	font-weight: 800;
}

.wv-pocket--zero {
	stroke: #D4A84B;
	stroke-width: 2;
}

.wv-center {
	fill: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 64px;
	font-weight: 800;
	text-anchor: middle;
	letter-spacing: -.02em;
}

.wv-center-sub {
	fill: #D4A84B;
	font-family: var(--rw-body);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .14em;
	text-anchor: middle;
	text-transform: uppercase;
}

.wv-wheel figcaption {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wv-wheel__k {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.wv-wheel__k--good {
	background: var(--rw-green-soft);
	color: var(--rw-green-ink);
}

.wv-wheel__k--bad {
	background: #FBEEF0;
	color: var(--rw-red-dark);
}

.wv-wheel figcaption strong {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 19px;
	line-height: 1.25;
}

.wv-wheel figcaption span:last-child {
	color: var(--rw-text-2);
	font-size: 15px;
	line-height: 1.6;
}

/* ---------- Odds table ---------- */

.wv-odds td.wv-good {
	color: var(--rw-green-ink);
	font-weight: 700;
}

.wv-odds td.wv-bad {
	color: var(--rw-red-dark);
	font-weight: 700;
}

/* ---------- Cost calculator ---------- */

.wv-calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
	gap: 22px;
	margin-top: 26px;
	padding: 24px;
	background: var(--rw-paper);
	border: 1px solid var(--rw-line);
	border-radius: 20px;
}

.wv-calc__inputs {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wv-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
}

.wv-input {
	position: relative;
	display: block;
}

.wv-input input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 13px 14px;
	background: var(--rw-white);
	border: 1px solid #CFD2CC;
	border-radius: 12px;
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 20px;
	font-weight: 700;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.wv-input--money input {
	padding-left: 32px;
}

.wv-input--money::before {
	content: "$";
	position: absolute;
	top: 50%;
	left: 15px;
	color: var(--rw-muted);
	font-family: var(--rw-display);
	font-size: 20px;
	font-weight: 700;
	transform: translateY(-50%);
	pointer-events: none;
}

.wv-input input:focus {
	border-color: var(--rw-gold);
	outline: none;
	box-shadow: 0 0 0 3px rgba(212, 168, 75, .3);
}

.rw-home .wv-calc__total {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--rw-line);
	color: var(--rw-text-2);
	font-size: 15px;
}

.wv-calc__total strong {
	color: var(--rw-ink);
}

.wv-calc__out {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-content: start;
	gap: 12px;
}

.wv-res {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-top: 3px solid var(--rw-gold);
	border-radius: 14px;
}

.wv-res--good {
	border-top-color: var(--rw-green);
}

.wv-res--bad {
	border-top-color: var(--rw-red);
}

.wv-res--diff {
	background: var(--rw-ink);
	border-color: var(--rw-ink);
	border-top-color: var(--rw-gold);
}

.wv-res__k {
	color: var(--rw-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .07em;
	line-height: 1.35;
	text-transform: uppercase;
}

.wv-res strong {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.wv-res > span:last-child {
	color: var(--rw-text-2);
	font-size: 13.5px;
	line-height: 1.4;
}

.wv-res--diff .wv-res__k {
	color: var(--rw-gold);
}

.wv-res--diff strong {
	color: #FFFFFF;
}

.wv-res--diff > span:last-child {
	color: var(--rw-on-dark);
}

.rw-home .wv-calc__note {
	grid-column: 1 / -1;
	color: var(--rw-text-2);
	font-size: 14.5px;
	line-height: 1.55;
}

.wv-calc__note strong {
	color: var(--rw-green-ink);
}

/* ---------- Martingale on three wheels ---------- */

.wv-mart {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 26px;
}

.wv-mart__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
}

.wv-mart__k {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 17px;
	font-weight: 800;
}

.wv-mart__k em {
	color: var(--rw-muted);
	font-family: var(--rw-body);
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
}

.wv-mart__card strong {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1;
}

.wv-mart__bar {
	display: block;
	height: 10px;
	background: var(--rw-paper);
	border-radius: 999px;
	overflow: hidden;
}

.wv-mart__bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--rw-gold);
}

.wv-mart__card.is-best .wv-mart__bar i {
	background: var(--rw-green);
}

.wv-mart__card.is-bad .wv-mart__bar i {
	background: var(--rw-red);
}

.wv-mart__card.is-bad strong {
	color: var(--rw-red-dark);
}

.wv-mart__card > span:last-child {
	color: var(--rw-text-2);
	font-size: 14px;
}

.rw-home .wv-mart__note {
	max-width: 860px;
	margin-top: 20px;
	color: var(--rw-text-2);
	font-size: 16px;
	line-height: 1.65;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px) {
	.wv-calc {
		grid-template-columns: minmax(0, 1fr);
	}

	.wv-calc__inputs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}

	.rw-home .wv-calc__total {
		grid-column: 1 / -1;
		margin-top: 0;
	}
}

@media (max-width: 860px) {
	.wv-wheels,
	.wv-mart {
		grid-template-columns: minmax(0, 1fr);
	}

	.wv-wheel {
		padding: 20px;
	}

	.wv-mart__card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 6px 14px;
	}

	.wv-mart__card strong {
		grid-row: 1 / 3;
		grid-column: 2;
		font-size: 34px;
	}

	.wv-mart__bar,
	.wv-mart__card > span:last-child {
		grid-column: 1;
	}
}

@media (max-width: 640px) {
	.wv-calc {
		padding: 18px;
	}

	.wv-calc__inputs,
	.wv-calc__out {
		grid-template-columns: minmax(0, 1fr);
	}

	.wv-res {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 2px 12px;
		padding: 14px 16px;
	}

	.wv-res strong {
		grid-row: 1 / 3;
		grid-column: 2;
		font-size: 26px;
	}
}
