/*
 * BritishGambler — one-line byline + single-column layout (agent 34, 2026-11-12).
 * Loaded by inc/byline-layout.php after style.css. Undo: delete this file + the require in functions.php.
 */

/* ---------- Byline ---------- */
.bg-byline {
	--bgb-text: #4b5060;
	--bgb-strong: #14161f;
	--bgb-link: #0017bf;
	--bgb-ok: #0b7a4b;
	--bgb-dot: #b9bdcc;
	--bgb-ring: #dfe3f3;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	margin: 16px 0 24px;
	padding: 0;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bgb-text);
}

[data-scheme="dark"] .bg-byline,
[data-site-scheme="dark"] .bg-byline {
	--bgb-text: rgba(255, 255, 255, .72);
	--bgb-strong: #fff;
	--bgb-link: #9db0ff;
	--bgb-ok: #5fd39a;
	--bgb-dot: rgba(255, 255, 255, .35);
	--bgb-ring: rgba(255, 255, 255, .25);
}

.bg-byline__av {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	display: block;
	background: #e9ecf8;
	box-shadow: 0 0 0 1px var(--bgb-ring);
	text-decoration: none;
}

.bg-byline .bg-byline__av img,
.bg-byline .bg-byline__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.bg-byline__mono {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0017bf, #00015a);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
}

.bg-byline__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 2px;
	min-width: 0;
}

.bg-byline__meta > * {
	white-space: nowrap;
}

.bg-byline__meta > * + *::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin: 0 10px;
	border-radius: 50%;
	background: var(--bgb-dot);
	vertical-align: middle;
}

.bg-byline a.bg-byline__name {
	color: var(--bgb-link);
	font-weight: 600;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.bg-byline a.bg-byline__name:hover,
.bg-byline a.bg-byline__name:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bg-byline__fc {
	color: var(--bgb-ok);
	font-weight: 500;
}

.bg-byline__check {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: -2px 4px 0 0;
	fill: currentColor;
	vertical-align: middle;
}

.bg-byline__date time {
	color: var(--bgb-strong);
}

/* Mobile: max two lines — "Name · Updated <date>" / "✓ Fact-checked by BritishGambler". */
@media (max-width: 640px) {
	.bg-byline {
		gap: 10px;
		margin: 12px 0 20px;
		font-size: 13px;
	}

	.bg-byline__av {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
	}

	.bg-byline__meta > * + *::before {
		margin: 0 7px;
	}

	.bg-byline__date {
		order: 2;
	}

	.bg-byline__fc {
		order: 3;
		flex-basis: 100%;
	}

	.bg-byline__fc::before {
		display: none !important;
	}
}

@media (max-width: 370px) {
	.bg-byline {
		font-size: 12.5px;
	}
}

/* Placement tweaks per template. */
.bg-entry__header-content > .bg-byline,
.bg-entry__header-info > .bg-byline {
	margin-bottom: 8px;
}

.entry-content > .bg-byline:first-child {
	margin-top: 0;
}

.bgg-guide > .bg-byline {
	margin: 12px 0 22px;
}

.bg-page-header > .bg-byline,
.bg-page-hero .bg-byline {
	justify-content: center;
}

.bg-page-hero .bg-byline {
	margin: 18px 0 0;
}

@media (max-width: 767px) {
	.bg-page-hero .bg-byline,
	.bg-page-hero .bg-byline__meta {
		justify-content: flex-start;
	}
}

.bg-page-hero .bg-byline__meta {
	justify-content: center;
}

/* ---------- Single-column layout (no right sidebar) ---------- */
/* Content block (TOC + article) a little wider than the theme's 945px, centred in the container. */
.bg-layout-single .bg-site-content.bg-sidebar-disabled {
	--bg-entry-content-width: 1040px;
}

/* Breadcrumbs, H1 and byline printed straight into #primary (bonuses, slots, game-types, payments):
   align them with the centred content block. */
.bg-layout-single #primary > .bg-breadcrumbs,
.bg-layout-single #primary > .bg-page-title,
.bg-layout-single #primary > .bg-byline {
	max-width: var(--bg-entry-content-width);
	margin-left: auto;
	margin-right: auto;
}

/* News / analysis header (image + title): same width as the content block. */
.single-post.bg-layout-single .bg-entry__header > .bg-container {
	max-width: var(--bg-entry-content-width);
}

/* Guides: the article sits centred (no left-aligned column with empty space on the right). */
.bgg-guide-page.bg-layout-single .bgg-guide.no-side {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Author page: neutral article list ---------- */
.bg-author-articles {
	max-width: 1080px;
	margin: 0 auto 64px;
}

.bg-author-articles__heading {
	margin: 0 0 16px;
	font-size: 28px;
}

.bg-author-articles__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--bg-color-border-alt, #eaeaea);
}

.bg-author-articles__item {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 16px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--bg-color-border-alt, #eaeaea);
}

.bg-author-articles__type {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #0017bf;
}

.bg-author-articles__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: inherit;
	text-decoration: none;
}

.bg-author-articles__title:hover {
	text-decoration: underline;
}

.bg-author-articles__date {
	font-size: 13px;
	color: #6c757d;
	white-space: nowrap;
}

.bg-author-articles__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.bg-author-articles__pages .page-numbers {
	padding: 6px 12px;
	border: 1px solid var(--bg-color-border, #d7d7d7);
	text-decoration: none;
}

.bg-author-articles__pages .page-numbers.current {
	background: #0017bf;
	border-color: #0017bf;
	color: #fff;
}

@media (max-width: 640px) {
	.bg-author-articles__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}
}

/* News / analysis: byline under the image + H1 row. */
.single-post .bg-entry__header .bg-container > .bg-byline {
	margin: 24px 0 0 -12px; /* the header wrapper sits at -12px inside its container */
}
