/* ==========================================================================
   OddsBoom Odds Board
   Layout and component styles. Colour and type tokens come from theme.json.
   ========================================================================== */

:root {
	--ob-radius: 4px;
	--ob-shadow: 0 1px 2px rgba(14, 22, 32, 0.06), 0 8px 24px rgba(14, 22, 32, 0.06);
	--ob-transition: 160ms ease;
}

*:focus-visible {
	outline: 3px solid var(--wp--preset--color--amber);
	outline-offset: 2px;
}

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

/* --------------------------------------------------------------------------
   Utility bar: thin strip above the masthead
   -------------------------------------------------------------------------- */

.ob-utility-bar {
	background: var(--wp--preset--color--ink);
	color: #A9B4C0;
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.75rem;
	letter-spacing: 0.03em;
}

.ob-utility-bar a,
.ob-utility-bar .wp-block-navigation a {
	color: #A9B4C0;
}

.ob-utility-bar a:hover {
	color: var(--wp--preset--color--amber);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Masthead: one bar carrying the wordmark and the navigation
   -------------------------------------------------------------------------- */

.ob-masthead {
	background: var(--wp--preset--color--ink);
	border-bottom: 3px solid var(--wp--preset--color--amber);
	position: sticky;
	top: 0;
	z-index: 60;
}

.admin-bar .ob-masthead {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ob-masthead {
		top: 46px;
	}
}

/* Every header row shares the same box as the page content below it.
   The !important flags override the max-width WordPress applies to children of
   a constrained group, which otherwise squeezes these rows to reading width. */
.ob-utility-bar > .wp-block-group,
.ob-masthead > .wp-block-group,
.ob-footer > .wp-block-group {
	max-width: 1240px !important;
	margin-inline: auto;
	padding-inline: 1rem;
	box-sizing: border-box;
}

.ob-utility-bar > .wp-block-group > .wp-block-group,
.ob-masthead .ob-bar {
	max-width: none !important;
	width: 100%;
	margin-inline: 0;
}

.ob-masthead .ob-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 1.5rem;
	padding-block: 0.8rem;
}

.ob-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex: 0 0 auto;
	max-width: none !important;
}

.ob-masthead .wp-block-site-logo {
	margin: 0;
	line-height: 0;
}

.ob-masthead .wp-block-site-logo img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 4px;
	display: block;
}

.ob-masthead .wp-block-site-title {
	margin: 0;
}

.ob-masthead .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.4rem;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #FFFFFF;
}

.ob-masthead .wp-block-site-title a:hover {
	color: var(--wp--preset--color--amber);
	text-decoration: none;
}

/* Navigation inside the bar */
.ob-masthead .wp-block-navigation {
	color: #FFFFFF;
	flex: 0 1 auto;
	justify-content: flex-end;
	flex-wrap: nowrap;
	max-width: none !important;
	margin-left: auto;
}

.ob-masthead .wp-block-navigation a {
	color: #FFFFFF;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: color var(--ob-transition);
}

.ob-masthead .wp-block-navigation a:hover {
	color: var(--wp--preset--color--amber);
	text-decoration: none;
}

.ob-masthead .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--board);
	border: 0;
	border-top: 3px solid var(--wp--preset--color--amber);
	padding-block: 0.4rem;
	min-width: 240px;
}

.ob-masthead .wp-block-navigation__submenu-container a {
	padding-block: 0.5rem;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.875rem;
	font-weight: 500;
}

.ob-masthead .wp-block-navigation__responsive-container-open,
.ob-masthead .wp-block-navigation__responsive-container-close {
	color: #FFFFFF;
}

@media (max-width: 1100px) {
	.ob-masthead .wp-block-navigation a {
		font-size: 0.75rem;
	}

	.ob-masthead .ob-bar {
		gap: 1rem;
	}

	.ob-masthead .wp-block-navigation {
		gap: 1rem;
	}
}

@media (max-width: 782px) {
	.ob-masthead .ob-bar {
		flex-wrap: wrap;
	}

	.ob-utility-bar .wp-block-navigation {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Section headers: "Football   [rule]   View all >"
   -------------------------------------------------------------------------- */

.ob-section-head {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	border-bottom: 3px solid var(--wp--preset--color--ink);
	padding-bottom: 0.6rem;
	margin-bottom: 1.75rem;
}

.ob-section-head h2,
.ob-section-head h1 {
	margin: 0;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.ob-section-head .ob-view-all {
	margin-left: auto;
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
}

.ob-section-head .ob-view-all a::after {
	content: " \2192";
}

/* Eyebrow label, used above titles */
.ob-eyebrow,
.ob-eyebrow a {
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--wp--preset--color--steam);
	font-weight: 700;
}

.ob-eyebrow a:hover {
	color: var(--wp--preset--color--ink);
}

/* --------------------------------------------------------------------------
   Cards and query loops
   -------------------------------------------------------------------------- */

.ob-card {
	background: var(--wp--preset--color--paper);
}

.ob-card .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--ob-radius);
	margin-bottom: 0.75rem;
}

.ob-card .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 400ms ease;
}

.ob-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.ob-card .wp-block-post-title {
	font-size: 1.0625rem;
	line-height: 1.25;
	margin: 0.35rem 0 0.4rem;
}

.ob-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--slate);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* Lead story */
.ob-lead .wp-block-post-title {
	font-size: clamp(1.6rem, 4.2vw, 2.35rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0.5rem 0 0.6rem;
}

.ob-lead .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
}

/* Compact list rows: thumbnail left, title right */
.ob-list .wp-block-post-template > li {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 0.9rem;
	align-items: start;
	padding-block: 0.95rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ob-list .wp-block-post-template > li:first-child {
	padding-top: 0;
}

.ob-list .wp-block-post-template > li:last-child {
	border-bottom: 0;
}

.ob-list .wp-block-post-featured-image {
	margin: 0;
	border-radius: var(--ob-radius);
	overflow: hidden;
}

.ob-list .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ob-list .wp-block-post-title {
	font-size: 0.9375rem;
	line-height: 1.3;
	margin: 0.15rem 0 0.3rem;
}

/* Front-page hero grid */
.ob-hero-grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (max-width: 900px) {
	.ob-hero-grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

/* Three-across grids */
.ob-grid-3 .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

@media (max-width: 780px) {
	.ob-grid-3 .wp-block-post-template {
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem;
	}
}

@media (max-width: 520px) {
	.ob-grid-3 .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Signature: the odds board
   -------------------------------------------------------------------------- */

.ob-odds-board {
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--wp--preset--color--ink);
	border-radius: var(--ob-radius);
	overflow: hidden;
	margin: 2rem 0;
	background: var(--wp--preset--color--paper);
}

.ob-odds-board__head {
	background: var(--wp--preset--color--ink);
	color: #FFFFFF;
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
}

.ob-odds-board__head .ob-updated {
	font-family: var(--wp--preset--font-family--data);
	font-weight: 400;
	font-size: 0.6875rem;
	letter-spacing: 0.05em;
	color: #A9B4C0;
	text-transform: none;
}

.ob-odds-board table {
	font-variant-numeric: tabular-nums;
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.ob-odds-board th,
.ob-odds-board td {
	padding: 0.7rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	font-size: 0.9375rem;
}

.ob-odds-board thead th {
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--wp--preset--color--slate);
	background: var(--wp--preset--color--mist);
	font-weight: 700;
}

.ob-odds-board tbody tr:last-child td {
	border-bottom: 0;
}

.ob-odds-board tbody tr:nth-child(odd) td {
	background: rgba(238, 241, 244, 0.45);
}

/* Price column: tabular figures so fractions line up */
.ob-odds-board td:nth-child(2),
.ob-odds-board th:nth-child(2),
.ob-odds-board td:nth-child(3),
.ob-odds-board th:nth-child(3) {
	font-family: var(--wp--preset--font-family--data);
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.ob-odds-board td:nth-child(2) {
	font-weight: 600;
	font-size: 1rem;
}

.ob-move {
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
}

.ob-move--in {
	color: var(--wp--preset--color--steam);
}

.ob-move--in::before {
	content: "\25BC ";
}

.ob-move--out {
	color: var(--wp--preset--color--drift);
}

.ob-move--out::before {
	content: "\25B2 ";
}

.ob-odds-board__foot {
	padding: 0.65rem 1rem;
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.6875rem;
	color: var(--wp--preset--color--slate);
	background: var(--wp--preset--color--mist);
	border-top: 1px solid var(--wp--preset--color--line);
}

/* --------------------------------------------------------------------------
   Authority box
   -------------------------------------------------------------------------- */

.ob-authority {
	background: var(--wp--preset--color--ink);
	color: #E4E9EE;
	border-radius: var(--ob-radius);
	padding: 1.6rem 1.75rem;
	margin: 2.25rem 0;
	border-left: 5px solid var(--wp--preset--color--amber);
}

.ob-authority h3,
.ob-authority h2 {
	color: #FFFFFF;
	font-size: 1.15rem;
	margin: 0 0 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.ob-authority p {
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0 0 0.75rem;
	color: #C6CFD8;
}

.ob-authority p:last-child {
	margin-bottom: 0;
}

.ob-authority a {
	color: var(--wp--preset--color--amber);
	text-decoration: underline;
}

.ob-authority a:hover {
	color: #FFC24D;
}

/* ----/* --------------------------------------------------------------------------
   bet365 offer boxes
   One layout, used at article width and full width. Colours follow bet365.
   -------------------------------------------------------------------------- */

.ob-offer {
	--ob-green: #027B5B;
	--ob-green-dark: #01543E;
	--ob-green-line: #CFE7DD;
	--ob-green-text: #3C5A4E;

	border: 1px solid var(--ob-green-line);
	border-left: 4px solid var(--ob-green);
	border-radius: var(--ob-radius);
	background: #F7FBF9;
	padding: 1.5rem 1.75rem;
	margin: 2.25rem 0;
}

.ob-offer__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	flex-wrap: wrap;
}

.ob-offer__lockup {
	display: flex;
	align-items: center;
	gap: 1.15rem;
	flex: 1 1 320px;
	min-width: 0;
}

.ob-offer__brand {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	background: #FFFFFF;
	border: 1px solid var(--ob-green-line);
	border-radius: 4px;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ob-offer__brand img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 2px;
}

.ob-offer__label {
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ob-green);
	margin: 0 0 0.3rem;
	line-height: 1;
}

.ob-offer__headline {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ob-green-dark);
	margin: 0;
}

.ob-offer__sub {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ob-green-text);
	margin: 0.5rem 0 0;
	max-width: 56ch;
}

.ob-offer__action {
	flex: 0 0 auto;
}

.ob-offer .ob-offer__cta {
	display: inline-block;
	background: var(--ob-green);
	color: #FFFFFF;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	padding: 0.9rem 2.1rem;
	border-radius: 3px;
	text-decoration: none;
	transition: background var(--ob-transition);
}

.ob-offer .ob-offer__cta:hover,
.ob-offer .ob-offer__cta:focus-visible {
	background: var(--ob-green-dark);
	color: #FFFFFF;
	text-decoration: none;
}

.ob-offer__legal {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 1.35rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--ob-green-line);
}

.ob-offer__age {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	border: 1.5px solid var(--ob-green);
	border-radius: 50%;
	color: var(--ob-green);
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.625rem;
	font-weight: 600;
}

.ob-offer__terms {
	font-size: 0.6875rem;
	line-height: 1.6;
	color: #6B8779;
	margin: 0;
}

.ob-offer__terms a {
	color: var(--ob-green);
	text-decoration: underline;
}

@media (max-width: 560px) {
	.ob-offer {
		padding: 1.25rem;
	}

	.ob-offer__action,
	.ob-offer .ob-offer__cta {
		width: 100%;
		text-align: center;
	}
}

----------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */

.ob-article-head .wp-block-post-title {
	font-size: clamp(1.9rem, 5vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin: 0.5rem 0 0.75rem;
}

.ob-standfirst {
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--wp--preset--color--slate);
}

.ob-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.9rem 0;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.8125rem;
	letter-spacing: 0;
	color: var(--wp--preset--color--slate);
}

.ob-byline .wp-block-post-author-name a,
.ob-byline .wp-block-post-author-name {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ob-entry-content > * + * {
	margin-top: 1.35rem;
}

.ob-entry-content h2 {
	margin-top: 2.5rem;
	font-size: 1.6rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--wp--preset--color--line);
}

.ob-entry-content h3 {
	margin-top: 2rem;
	font-size: 1.25rem;
}

.ob-entry-content a {
	color: #14508C;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ob-entry-content a:hover {
	color: var(--wp--preset--color--steam);
}

.ob-entry-content ul,
.ob-entry-content ol {
	padding-left: 1.3rem;
}

.ob-entry-content li + li {
	margin-top: 0.4rem;
}

.ob-entry-content blockquote {
	border-left: 4px solid var(--wp--preset--color--amber);
	padding: 0.25rem 0 0.25rem 1.25rem;
	margin-left: 0;
	font-size: 1.05rem;
}

/* Author box */
.ob-author-box {
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--wp--preset--color--amber);
	border-radius: var(--ob-radius);
	padding: 1.5rem;
	margin-top: 3rem;
	background: var(--wp--preset--color--mist);
}

.ob-author-box .wp-block-post-author {
	gap: 1.1rem;
}

.ob-author-box .wp-block-post-author__avatar img {
	border-radius: 50%;
}

.ob-author-box .wp-block-post-author__byline {
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--slate);
}

.ob-author-box .wp-block-post-author__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.05rem;
}

.ob-author-box .wp-block-post-author__bio {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--wp--preset--color--slate);
	margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   Archive intro (renders the category description, which Google reads)
   -------------------------------------------------------------------------- */

.ob-archive-intro {
	background: var(--wp--preset--color--mist);
	border-radius: var(--ob-radius);
	padding: 1.5rem 1.75rem;
	margin-bottom: 2.5rem;
}

.ob-archive-intro .wp-block-term-description p {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	line-height: 1.65;
}

.ob-archive-intro .wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--data);
	font-variant-numeric: tabular-nums;
	font-size: 0.8125rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.wp-block-query-pagination-numbers .page-numbers {
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	margin-right: 0.25rem;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--ink);
	color: #FFFFFF;
	border-color: var(--wp--preset--color--ink);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.ob-footer {
	background: var(--wp--preset--color--ink);
	color: #A9B4C0;
	font-size: 0.875rem;
}

.ob-footer h2,
.ob-footer h3,
.ob-footer h4 {
	color: #FFFFFF;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.9rem;
	font-family: var(--wp--preset--font-family--data);
	font-weight: 700;
}

.ob-footer a {
	color: #A9B4C0;
}

.ob-footer a:hover {
	color: var(--wp--preset--color--amber);
	text-decoration: none;
}

.ob-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ob-footer li + li {
	margin-top: 0.5rem;
}

.ob-legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.75rem;
	line-height: 1.6;
	color: #7C8794;
}

.ob-safer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ob-safer__badges {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	flex-wrap: wrap;
	min-height: 40px;
}

.ob-age-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	color: #FFFFFF;
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.ob-safer__logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.ob-safer__logo:hover {
	text-decoration: none;
	opacity: 0.85;
}

.ob-safer__logo img {
	display: block;
	max-height: 34px;
	width: auto;
}

/* Use this variant if the artwork is dark and would vanish against the footer */
.ob-safer__logo--plate {
	background: #FFFFFF;
	border-radius: 3px;
	padding: 0.4rem 0.7rem;
}

.ob-safer__line {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #A9B4C0;
	max-width: 62ch;
}

.ob-safer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-family: var(--wp--preset--font-family--data);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	.ob-card:hover .wp-block-post-featured-image img {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
	.ob-utility-bar,
	.ob-masthead,
	.ob-footer,
	.ob-offer {
		display: none !important;
	}
}
