/* BetWinner Nigeria: tokens, base, buttons, content blocks. Also loaded in the editor. */

/* Tokens ------------------------------------------------------------------- */

:root {
	--g9: #0b3d29;
	--g8: #0f4a32;
	--g7: #155c3e;
	--g6: #1d6e4b;
	--g5: #2a8a5e;
	--tint: #e3f0e8;
	--y: #ffd100;
	--y-hover: #ffdc3d;
	--y-ink: #10291c;
	--paper: #eef2ef;
	--paper-2: #f7f9f8;
	--line: #dce3de;
	--ink: #10231a;
	--text: #2b3a33;
	--muted: #5b6b63;
	--mint: #a9c4b6;
	--red: #d62f26;
	--new: #44c266;
	--ink-dark: #141b18;
	--r: 10px;
	--r-lg: 16px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base --------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--head-h, 0px) + 16px);
}

body {
	margin: 0;
	background: var(--paper);
	font: 15px/1.55 var(--font);
	color: var(--ink);
}

/* The page scrollbar in the colours of the site: a green rounded thumb on a light track (Chrome,
   Edge, Safari); Firefox takes the two colours. */
@supports not selector(::-webkit-scrollbar) {
	html {
		scrollbar-color: var(--g6) #dfe7e2;
	}
}

html::-webkit-scrollbar {
	width: 14px;
}

html::-webkit-scrollbar-track {
	background: #dfe7e2;
}

html::-webkit-scrollbar-thumb {
	min-height: 48px;
	border: 3px solid #dfe7e2;
	border-radius: 999px;
	background: var(--g6);
}

html::-webkit-scrollbar-thumb:hover {
	background: var(--g5);
}

html::-webkit-scrollbar-thumb:active {
	background: var(--g7);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 800;
	line-height: 1.2;
	color: inherit;
}

h3,
h4,
h5,
h6 {
	font-weight: 700;
}

p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

b,
strong {
	font-weight: 700;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

[hidden] {
	display: none !important;
}

[role="link"] {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--y);
	outline-offset: 2px;
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute;
	top: -60px;
	left: 12px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: var(--r);
	background: var(--y);
	font-weight: 700;
	color: var(--y-ink);
}

.skip:focus {
	top: 12px;
}

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Icons: our own solid two-tone set (inc/icon-set.php), sized by font-size, coloured by color. */
.i {
	flex: none;
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: -.15em;
}

/* Own icons (pictures): the same box as the outline icons. */
.i-img {
	flex: none;
	width: 1em;
	height: 1em;
	object-fit: contain;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: var(--r);
	background: none;
	font: 700 14px/1 var(--font);
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}

.btn--yellow {
	background: var(--y);
	color: var(--y-ink);
}

.btn--yellow:hover {
	background: var(--y-hover);
}

.btn--green {
	background: var(--g6);
	color: #fff;
}

.btn--green:hover {
	background: var(--g5);
}

.btn--ghost {
	border-color: rgb(255 255 255 / .25);
	color: #fff;
}

.btn--ghost:hover {
	border-color: var(--y);
}

.btn--line {
	border-color: var(--line);
	background: #fff;
	color: var(--ink);
}

.btn--line:hover {
	border-color: var(--g6);
}

.btn--lg {
	height: 48px;
	padding: 0 22px;
	font-size: 15px;
}

.btn--sm {
	height: 34px;
	padding: 0 14px;
	font-size: 13px;
	border-radius: 8px;
}

.btn--block {
	display: flex;
	width: 100%;
}

/* Button block of the editor, two styles: «Fill» (yellow, the default) and «Outline» (green
   frame, fills green on hover). */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wp-block-buttons .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid var(--y);
	border-radius: var(--r);
	background: var(--y);
	font: 700 15px/1.2 var(--font);
	color: var(--y-ink);
	text-decoration: none;
	transition: background-color .15s, border-color .15s, color .15s;
}

.wp-block-buttons .wp-block-button__link:hover {
	border-color: var(--y-hover);
	background: var(--y-hover);
}

.wp-block-buttons .is-style-outline > .wp-block-button__link {
	border-color: var(--g6);
	background: transparent;
	color: var(--g6);
}

.wp-block-buttons .is-style-outline > .wp-block-button__link:hover {
	background: var(--g6);
	color: #fff;
}

/* App download button: platform icon, two lines, download arrow. */
.dl {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	padding: 10px 20px 10px 22px;
	border-radius: 14px;
	background: var(--y);
	color: var(--y-ink);
	text-align: left;
	text-decoration: none;
	transition: background-color .15s;
}

.dl:hover {
	background: var(--y-hover);
}

.dl .i {
	font-size: 26px;
}

.dl__text {
	display: flex;
	flex-direction: column;
}

.dl__text b {
	font-size: 17px;
	line-height: 1.2;
}

.dl__text small {
	font-size: 12px;
	color: #4a5420;
}

.dl .dl__go {
	margin-left: 6px;
	font-size: 22px;
}

/* Small pieces ------------------------------------------------------------- */

.chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border: 1px solid rgb(255 255 255 / .18);
	border-radius: 999px;
	font-size: 13px;
	color: #fff;
}

.chip:hover {
	border-color: var(--y);
}

.chip--line {
	height: 32px;
	padding: 0 12px;
	border-color: var(--line);
	border-radius: 8px;
	color: var(--ink);
}

.chip--line:hover {
	border-color: var(--g6);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: #fff;
	font-size: 14px;
	color: var(--ink);
}

.pill .i {
	font-size: 18px;
	color: var(--g6);
}

a.pill:hover {
	border-color: var(--g6);
}

.badge {
	padding: 0 6px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}

.badge--new {
	background: var(--new);
	color: #05301a;
}

.count {
	min-width: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--y);
	font-size: 12px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
	color: var(--y-ink);
}

.age {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border: 2px solid var(--g6);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 800;
	color: var(--g6);
}

.age--light {
	width: 38px;
	height: 38px;
	border: 1.5px solid var(--mint);
	color: #fff;
}

.ph-note {
	padding: 16px;
	border: 1px dashed var(--line);
	border-radius: var(--r);
	background: #fff;
	font-size: 13px;
	color: var(--muted);
}

/* Sections of the theme blocks ------------------------------------------- */

.sec__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 16px;
}

.sec__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 24px;
}

.sec__title::before {
	content: "";
	flex: none;
	width: 4px;
	height: 22px;
	border-radius: 2px;
	background: var(--y);
}

.sec__lead {
	flex-basis: 100%;
	margin-top: -4px;
	font-size: 15px;
	color: var(--muted);
}

.sec__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--g6);
}

/* Content: core blocks ----------------------------------------------------- */

.content > *,
.editor-styles-wrapper .is-style-card {
	margin-top: 0;
	margin-bottom: 44px;
}

.content > :last-child {
	margin-bottom: 0;
}

.is-style-card {
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
	line-height: 1.7;
	color: var(--text);
}

.is-style-card > * + *,
.prose > * + * {
	margin-top: 16px;
	margin-bottom: 0;
}

.is-style-card > h3,
.prose > h3 {
	margin-top: 28px;
}

.is-style-card h2,
.prose h2 {
	font-size: 26px;
	line-height: 1.25;
	color: var(--ink);
}

.is-style-card h3,
.prose h3 {
	font-size: 20px;
	line-height: 1.3;
	color: var(--ink);
}

.is-style-card h4,
.prose h4 {
	font-size: 16px;
	color: var(--g6);
}

.is-style-card strong,
.prose strong {
	color: var(--ink);
}

.is-style-card p a,
.is-style-card li a,
.prose p a,
.prose li a {
	color: var(--g6);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.content .wp-block-list,
.editor-styles-wrapper .wp-block-list {
	display: grid;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.content ul.wp-block-list > li,
.editor-styles-wrapper ul.wp-block-list > li {
	position: relative;
	padding-left: 30px;
}

/* Bullets: a tinted round marker with a chevron, centred on the first line. */
.content ul.wp-block-list > li::before,
.editor-styles-wrapper ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	top: .2em;
	top: calc((1lh - 20px) / 2);
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6e4b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7l5 5l-5 5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* List styles «Checks» and «Crosses»: pros and cons. */
.content ul.is-style-checks > li::before,
.editor-styles-wrapper ul.is-style-checks > li::before {
	background-color: var(--g6);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4l8 -9'/%3E%3C/svg%3E");
}

.content ul.is-style-cross > li::before,
.editor-styles-wrapper ul.is-style-cross > li::before {
	background-color: #fde7e5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f26' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M16 8l-8 8M8 8l8 8'/%3E%3C/svg%3E");
}

/* Nested lists: a small ring. */
.content .wp-block-list .wp-block-list,
.editor-styles-wrapper .wp-block-list .wp-block-list {
	margin-top: 8px;
}

.content ul.wp-block-list ul.wp-block-list > li::before,
.editor-styles-wrapper ul.wp-block-list ul.wp-block-list > li::before {
	top: .55em;
	top: calc((1lh - 8px) / 2);
	left: 7px;
	width: 8px;
	height: 8px;
	border: 2px solid var(--g5);
	background: none;
}

.content ol.wp-block-list,
.editor-styles-wrapper ol.wp-block-list {
	counter-reset: item;
}

.content ol.wp-block-list > li,
.editor-styles-wrapper ol.wp-block-list > li {
	position: relative;
	padding-left: 34px;
	counter-increment: item;
}

.content ol.wp-block-list > li::before,
.editor-styles-wrapper ol.wp-block-list > li::before {
	content: counter(item);
	position: absolute;
	top: 2px;
	left: 0;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--g7);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: var(--y);
}

.content .wp-block-table,
.editor-styles-wrapper .wp-block-table {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.content .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}

.content .wp-block-table th,
.content .wp-block-table td,
.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table td {
	padding: 10px 14px;
	border: 0;
	text-align: left;
}

.content .wp-block-table th,
.editor-styles-wrapper .wp-block-table th {
	background: var(--g7);
	font-weight: 700;
	color: #fff;
}

.content .wp-block-table td,
.editor-styles-wrapper .wp-block-table td {
	border-top: 1px solid var(--line);
}

.content .wp-block-table tr:nth-child(even) td,
.editor-styles-wrapper .wp-block-table tr:nth-child(even) td {
	background: var(--paper-2);
}

.content .wp-block-table thead,
.editor-styles-wrapper .wp-block-table thead {
	border: 0;
}

.content .wp-block-table figcaption,
.editor-styles-wrapper .wp-block-table figcaption {
	margin: 0;
	padding: 8px 14px;
	border-top: 1px solid var(--line);
	background: var(--paper-2);
	font-size: 13px;
	color: var(--muted);
}

.content .wp-block-quote,
.editor-styles-wrapper .wp-block-quote {
	margin: 0;
	padding: 18px 22px;
	border: 0;
	border-left: 4px solid var(--y);
	background: var(--tint);
}

.content .wp-block-quote p,
.editor-styles-wrapper .wp-block-quote p {
	font-size: 18px;
	line-height: 1.5;
	color: var(--ink);
}

.content .wp-block-quote cite,
.editor-styles-wrapper .wp-block-quote cite {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-style: normal;
	color: var(--muted);
}

.is-style-note {
	padding: 18px 22px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #f4f7f5;
}

.is-style-note > * + * {
	margin-top: 6px;
}

.content .wp-block-columns,
.editor-styles-wrapper .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 0;
}

.content .wp-block-column,
.editor-styles-wrapper .wp-block-column {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.content .wp-block-column > * + *,
.editor-styles-wrapper .wp-block-column > * + * {
	margin-top: 6px;
}

.content .wp-block-image img,
.editor-styles-wrapper .wp-block-image img {
	border-radius: 14px;
}

.content .wp-block-image figcaption,
.editor-styles-wrapper .wp-block-image figcaption {
	margin-top: 8px;
	font-size: 13px;
	text-align: center;
	color: var(--muted);
}

@media (max-width: 640px) {
	.btn {
		height: 44px;
	}

	.btn--lg {
		height: 50px;
	}

	.btn--sm {
		height: 40px;
	}

	.content > * {
		margin-bottom: 32px;
	}

	.sec__title {
		font-size: 20px;
	}

	.is-style-card {
		padding: 20px;
	}

	.is-style-card h2,
	.prose h2 {
		font-size: 21px;
	}

	.content .wp-block-table table {
		font-size: 13px;
	}

	.content .wp-block-table th,
	.content .wp-block-table td {
		padding: 8px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
