/* =========================================================================
   Martingale guide (/roulette-strategies/martingale/). Loaded on that page
   only, after strat.css, whose tester, table and card styles it reuses.
   ========================================================================= */

/* ---------- Calculator ---------- */

.mc .rst-grid {
	margin-top: 18px;
}

.mc-charts {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.mc-bar {
	fill: #D4A84B;
}

.mc-bar--over {
	fill: rgba(201, 90, 102, .28);
	stroke: #C95A66;
	stroke-width: 1.5;
	stroke-dasharray: 4 3;
}

.mc-val {
	fill: #FFFFFF;
	font-family: var(--rw-body);
	font-size: 11.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mc-val--over {
	fill: #F08A95;
}

.mc-left-l {
	stroke: #D4A84B;
	stroke-width: 2.5;
}

.mc-max-l {
	stroke: #8E95A0;
	stroke-width: 1;
	stroke-dasharray: 5 4;
}

.mc-max-t {
	fill: var(--rw-on-dark-2);
	font-family: var(--rw-body);
	font-size: 11px;
	font-weight: 700;
}

.mc-tablebox {
	max-height: 232px;
	margin-top: 8px;
	overflow: auto;
	border: 1px solid var(--rw-ink-line);
	border-radius: 10px;
	overscroll-behavior: contain;
}

.rw-home .mc-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	color: #E6E9ED;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	line-height: 1.35;
}

.rw-home .mc-table th,
.rw-home .mc-table td {
	padding: 7px 9px;
	border: 0;
	border-bottom: 1px solid #23272E;
	text-align: left;
	vertical-align: middle;
}

.rw-home .mc-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #1B1F25;
	color: var(--rw-on-dark-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.rw-home .mc-table tbody th {
	color: var(--rw-on-dark-3);
	font-weight: 700;
}

.rw-home .mc-table td.rst-pos {
	color: #2FAE73;
}

.rw-home .mc-table tr.mc-over td,
.rw-home .mc-table tr.mc-over th {
	background: rgba(201, 90, 102, .14);
	color: #F08A95;
	font-weight: 700;
}

.mc:not(.mc-ready) [data-mc-bars] {
	min-height: 240px;
}

/* ---------- How it works ---------- */

.mg-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.rw-home .mg-steps li {
	padding: 22px;
	background: var(--rw-paper);
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
}

.mg-steps__n {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 12px;
	background: var(--rw-red);
	border-radius: 50%;
	color: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 16px;
	font-weight: 800;
}

.rw-home .mg-steps h3 {
	color: var(--rw-ink);
	font-size: 18px;
	font-weight: 800;
}

.rw-home .mg-steps p {
	margin-top: 6px;
	color: var(--rw-text-2);
	font-size: 15px;
	line-height: 1.6;
}

.mg-seq {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-width: 860px;
	margin: 16px 0 18px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.rw-home .mg-seq__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	background: var(--rw-ink);
	border-radius: 14px;
	color: var(--rw-on-dark-2);
	font-size: 13.5px;
}

.mg-seq__item strong {
	color: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.mg-seq__k {
	color: var(--rw-on-dark-3);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mg-seq__item--lose {
	border-bottom: 4px solid #C95A66;
}

.mg-seq__item--win {
	border-bottom: 4px solid #2FAE73;
}

.mg-seq__item--win span:last-child {
	color: #2FAE73;
	font-weight: 800;
}

/* ---------- Tables ---------- */

.rw-home .mg-sub {
	display: block;
	margin-top: 1px;
	color: var(--rw-muted);
	font-size: 12.5px;
	font-weight: 500;
}

.rw-home .rw-table.mg-chart,
.rw-home .rw-table.mg-streaks {
	min-width: 720px;
}

.rw-home .rw-table.mg-bank {
	min-width: 620px;
}

.rw-home .rw-table.mg-limits {
	min-width: 820px;
}

.rw-home .mg-limits th a {
	color: var(--rw-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rw-home a.mg-go {
	display: inline-block;
	padding: 7px 14px;
	background: var(--rw-red);
	border-radius: 8px;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.rw-home a.mg-go:hover {
	background: var(--rw-red-dark);
	color: #FFFFFF;
}

.rw-section--paper .rst-tips li {
	background: var(--rw-white);
}

/* ---------- Does it work ---------- */

.mg-outcomes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 24px;
}

.rw-home .mg-outcome {
	padding: 20px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
}

.rw-home .mg-outcome__k {
	color: var(--rw-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mg-outcome strong {
	display: block;
	margin: 4px 0 6px;
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 40px;
	font-weight: 800;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.mg-outcome--win strong {
	color: var(--rw-green);
}

.mg-outcome--lose strong {
	color: var(--rw-red);
}

.rw-home .mg-outcome p:last-child {
	color: var(--rw-text-2);
	font-size: 14.5px;
	line-height: 1.55;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.mc-charts {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 860px) {
	.mg-steps,
	.mg-outcomes {
		grid-template-columns: minmax(0, 1fr);
	}

	.mg-seq {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mg-seq__item strong {
		font-size: 24px;
	}

	.rw-home .mc-table th,
	.rw-home .mc-table td {
		padding: 7px 7px;
		font-size: 12.5px;
	}

	.rw-home .mc-table thead th {
		font-size: 10px;
	}

	.mg-outcome strong {
		font-size: 34px;
	}
}
