/**
 * Play Blackjack article components.
 * Loaded only on the WordPress page with the play-blackjack slug.
 */

.ce-bj-page {
	--ce-bj-accent: #c9302c;
	--ce-bj-accent-dark: #a02622;
	--ce-bj-ink: #292524;
	--ce-bj-muted: #57534e;
	--ce-bj-border: #e7e5e4;
	--ce-bj-surface: #ffffff;
	--ce-bj-surface-soft: #fafaf9;
	--ce-bj-warning: #fff7ed;
	--ce-bj-warning-border: #fb923c;
	color: var(--ce-bj-ink);
	font-size: 16px;
	line-height: 1.7;
}

.ce-bj-page,
.ce-bj-page * {
	box-sizing: border-box;
}

.ce-bj-page > :first-child {
	margin-top: 0;
}

.ce-bj-page > :last-child {
	margin-bottom: 0;
}

.ce-bj-page h2,
.ce-bj-page h3,
.ce-bj-page h4 {
	color: var(--ce-bj-ink);
	line-height: 1.25;
}

.ce-bj-page a:not(.ce-bj-btn) {
	color: var(--ce-bj-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.ce-bj-page a:not(.ce-bj-btn):hover {
	color: var(--ce-bj-accent);
}

.ce-bj-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 2rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	background:
		linear-gradient(135deg, rgba(201, 48, 44, 0.08), rgba(255, 255, 255, 0) 58%),
		var(--ce-bj-surface);
	border: 1px solid var(--ce-bj-border);
	border-top: 4px solid var(--ce-bj-accent);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(41, 37, 36, 0.08);
}

.ce-bj-hero > :last-child {
	margin-bottom: 0;
}

.ce-bj-kicker {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0.75rem;
	color: var(--ce-bj-accent-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ce-bj-lead {
	max-width: 72ch;
	margin: 0 0 1.5rem;
	color: var(--ce-bj-muted);
	font-size: clamp(1.05rem, 2vw, 1.22rem);
	line-height: 1.65;
}

.ce-bj-note,
.ce-bj-warning {
	margin: 1.5rem 0;
	padding: 1rem 1.125rem;
	border-radius: 10px;
}

.ce-bj-note {
	background: var(--ce-bj-surface-soft);
	border: 1px solid var(--ce-bj-border);
	border-left: 4px solid var(--ce-bj-accent);
}

.ce-bj-warning {
	background: var(--ce-bj-warning);
	border: 1px solid #fed7aa;
	border-left: 4px solid var(--ce-bj-warning-border);
}

.ce-bj-note > :first-child,
.ce-bj-warning > :first-child {
	margin-top: 0;
}

.ce-bj-note > :last-child,
.ce-bj-warning > :last-child {
	margin-bottom: 0;
}

.ce-bj-card-grid,
.ce-bj-offer-grid,
.ce-bj-link-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0 2rem;
}

.ce-bj-card,
.ce-bj-offer-card {
	min-width: 0;
	padding: 1.35rem;
	background: var(--ce-bj-surface);
	border: 1px solid var(--ce-bj-border);
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(41, 37, 36, 0.06);
}

.ce-bj-card {
	height: 100%;
}

.ce-bj-offer-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	border-top: 3px solid var(--ce-bj-accent);
}

.ce-bj-card > :first-child,
.ce-bj-offer-card > :first-child {
	margin-top: 0;
}

.ce-bj-card > :last-child,
.ce-bj-offer-card > :last-child {
	margin-bottom: 0;
}

.ce-bj-offer-card .ce-bj-btn:last-child {
	margin-top: auto;
}

.ce-bj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.72rem 1.15rem;
	border: 2px solid transparent;
	border-radius: 7px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ce-bj-btn:hover {
	transform: translateY(-1px);
}

.ce-bj-btn:focus-visible,
.ce-bj-details > summary:focus-visible {
	outline: 3px solid rgba(201, 48, 44, 0.28);
	outline-offset: 3px;
}

.ce-bj-btn-primary {
	background: var(--ce-bj-accent);
	border-color: var(--ce-bj-accent);
	color: #ffffff !important;
}

.ce-bj-btn-primary:hover {
	background: var(--ce-bj-accent-dark);
	border-color: var(--ce-bj-accent-dark);
	color: #ffffff !important;
}

.ce-bj-btn-secondary {
	background: #ffffff;
	border-color: var(--ce-bj-accent);
	color: var(--ce-bj-accent-dark) !important;
}

.ce-bj-btn-secondary:hover {
	background: #fff5f5;
	border-color: var(--ce-bj-accent-dark);
	color: var(--ce-bj-accent-dark) !important;
}

.ce-bj-table-wrap {
	max-width: 100%;
	margin: 1.5rem 0 2rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--ce-bj-surface);
	border: 1px solid var(--ce-bj-border);
	border-radius: 10px;
}

.ce-bj-table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	color: var(--ce-bj-ink);
	font-size: 0.94rem;
}

.ce-bj-table th,
.ce-bj-table td {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--ce-bj-border);
	text-align: left;
	vertical-align: top;
}

.ce-bj-table th {
	background: #f5f5f4;
	color: var(--ce-bj-ink);
	font-weight: 700;
	white-space: nowrap;
}

.ce-bj-table tbody tr:nth-child(even) {
	background: #fcfcfb;
}

.ce-bj-table tbody tr:last-child td {
	border-bottom: 0;
}

.ce-bj-details {
	margin: 0 0 0.85rem;
	background: var(--ce-bj-surface);
	border: 1px solid var(--ce-bj-border);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(41, 37, 36, 0.04);
}

.ce-bj-details[open] {
	border-color: #d6d3d1;
}

.ce-bj-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	padding: 0.9rem 3.25rem 0.9rem 1.1rem;
	position: relative;
	color: var(--ce-bj-ink);
	font-weight: 700;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.ce-bj-details > summary::-webkit-details-marker {
	display: none;
}

.ce-bj-details > summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 1.1rem;
	color: var(--ce-bj-accent);
	font-size: 1.45rem;
	font-weight: 500;
	line-height: 1;
	transform: translateY(-50%);
}

.ce-bj-details[open] > summary {
	border-bottom: 1px solid var(--ce-bj-border);
}

.ce-bj-details[open] > summary::after {
	content: "\2212";
}

.ce-bj-details-body {
	padding: 1rem 1.1rem 1.2rem;
	color: var(--ce-bj-muted);
}

.ce-bj-details-body > :first-child {
	margin-top: 0;
}

.ce-bj-details-body > :last-child {
	margin-bottom: 0;
}

.ce-bj-link-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1.25rem 0 2rem;
}

.ce-bj-link-grid > a,
.ce-bj-link-columns > a,
.ce-bj-link-columns > div {
	display: block;
	min-width: 0;
	padding: 1rem;
	background: var(--ce-bj-surface);
	border: 1px solid var(--ce-bj-border);
	border-radius: 9px;
}

.ce-bj-link-grid > a,
.ce-bj-link-columns > a {
	font-weight: 650;
	text-decoration: none;
}

.ce-bj-link-grid > a:hover,
.ce-bj-link-columns > a:hover {
	background: #fffafa;
	border-color: rgba(201, 48, 44, 0.45);
}

.ce-bj-faq {
	margin: 1.5rem 0 2rem;
}

.ce-bj-faq > .ce-bj-details:last-child {
	margin-bottom: 0;
}

/* Current WordPress markup and legacy-theme cleanup. */
.page #main .row > section .ce-bj-page h2 {
	margin: 44px 0 18px !important;
	padding: 0 0 10px;
	border-bottom: 1px solid rgba(201, 48, 44, 0.28);
	color: var(--ce-bj-ink) !important;
	font-size: clamp(25px, 2.5vw, 30px) !important;
	font-weight: 700;
	letter-spacing: normal !important;
	line-height: 1.25;
	text-shadow: none !important;
}

.page #main .row > section .ce-bj-page h3 {
	color: var(--ce-bj-ink) !important;
	font-size: 20px !important;
	font-weight: 700;
	letter-spacing: normal !important;
	line-height: 1.35;
	text-shadow: none !important;
}

.page #main .row > section .ce-bj-page .ce-bj-card h3,
.page #main .row > section .ce-bj-page .ce-bj-offer-card h3 {
	margin: 0 0 10px !important;
	font-size: 20px !important;
	line-height: 1.3;
}

.page #main .row > section .ce-bj-page .ce-bj-details-body h3 {
	margin: 28px 0 10px !important;
	padding: 0 0 7px;
	border-bottom: 1px solid var(--ce-bj-border);
	font-size: 19px !important;
	line-height: 1.35;
}

.page #main .row > section .ce-bj-page .ce-bj-details-body h3:first-child {
	margin-top: 0 !important;
}

/* WordPress inserts <br> elements between these links; remove them visually. */
.ce-bj-page .ce-bj-hero > p:last-child > br,
.ce-bj-page .ce-bj-offer-card > p:last-child > br,
.ce-bj-page .ce-bj-link-columns > br {
	display: none;
}

.page #main .row > section .ce-bj-page .ce-bj-hero > p:last-child {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.page #main .row > section .ce-bj-page .ce-bj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 20px;
	margin: 0;
	border: 2px solid transparent;
	border-radius: 7px;
	float: none;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
}

.page #main .row > section .ce-bj-page .ce-bj-btn.ce-bj-btn-primary {
	background: var(--ce-bj-accent);
	border-color: var(--ce-bj-accent);
	color: #ffffff !important;
}

.page #main .row > section .ce-bj-page .ce-bj-btn.ce-bj-btn-secondary {
	background: #ffffff;
	border-color: var(--ce-bj-accent);
	color: var(--ce-bj-accent-dark) !important;
}

.ce-bj-page .ce-bj-hero .ce-bj-btn {
	flex: 0 1 auto;
	min-width: 210px;
}

.ce-bj-page .ce-bj-hero .ce-bj-btn + .ce-bj-btn {
	margin-left: 0;
}

.ce-bj-page .ce-bj-offer-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
	width: 100%;
}

.ce-bj-page .ce-bj-offer-card {
	height: 100%;
	padding: 24px;
	gap: 12px;
}

.page #main .row > section .ce-bj-page .ce-bj-offer-card > p {
	margin: 0 0 14px !important;
}

.page #main .row > section .ce-bj-page .ce-bj-offer-card > p:last-child {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.page #main .row > section .ce-bj-page .ce-bj-offer-card .ce-bj-btn {
	flex: 1 1 190px;
	width: auto;
	margin: 0;
}

.ce-bj-page .ce-bj-link-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 12px;
	width: 100%;
}

.page #main .row > section .ce-bj-page .ce-bj-link-columns > a {
	display: flex;
	align-items: center;
	align-self: stretch;
	justify-self: stretch;
	width: 100% !important;
	min-width: 0;
	min-height: 52px;
	margin: 0 !important;
	padding: 14px 16px;
	float: none !important;
	line-height: 1.35;
}

@media (max-width: 991px) {
	.ce-bj-card-grid,
	.ce-bj-offer-grid,
	.ce-bj-link-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ce-bj-page .ce-bj-offer-grid,
	.ce-bj-page .ce-bj-link-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ce-bj-page {
		font-size: 15px;
	}

	.ce-bj-hero {
		padding: 1.25rem;
		border-radius: 12px;
	}

	.ce-bj-card-grid,
	.ce-bj-offer-grid,
	.ce-bj-link-grid,
	.ce-bj-link-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.9rem;
	}

	.ce-bj-page .ce-bj-offer-grid,
	.ce-bj-page .ce-bj-link-columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.ce-bj-card,
	.ce-bj-offer-card {
		padding: 1.1rem;
	}

	.ce-bj-btn {
		width: 100%;
		min-height: 48px;
	}

	.ce-bj-table {
		min-width: 560px;
	}

	.ce-bj-table th,
	.ce-bj-table td {
		padding: 0.75rem 0.85rem;
	}

	.ce-bj-details > summary {
		min-height: 58px;
		padding-left: 1rem;
		padding-right: 3rem;
	}

	.ce-bj-page .ce-bj-hero > p:last-child {
		flex-direction: column;
		gap: 10px;
		width: 100%;
	}

	.ce-bj-page .ce-bj-hero .ce-bj-btn,
	.ce-bj-page .ce-bj-offer-card .ce-bj-btn {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ce-bj-btn {
		transition: none;
	}
}
