/* ==========================================================================
   BetHub 2 - mobile-first styles for the front end AND the block editor.
   Base = phones (360px). Enhanced at 640 / 900 / 1100px.

   Design idea: every offer is a ticket. Bet slips have a dashed tear line and
   half-circle notches; that one device (hero slip, brand rows, bonuses) carries the
   identity. Everything else stays quiet: flat cards, one rule weight, two typefaces.
   Colours, fonts and sizes come from theme.json (Appearance > Editor > Styles).
   ========================================================================== */

:root {
	--bh-primary: var(--wp--preset--color--primary, #0b4f3c);
	--bh-deep: var(--wp--preset--color--deep, #062a20);
	--bh-accent: var(--wp--preset--color--accent, #ffbe1a);
	--bh-ink: var(--wp--preset--color--ink, #0e1a17);
	--bh-muted: var(--wp--preset--color--muted, #51625b);
	--bh-page: var(--wp--preset--color--mist, #eef3f0);
	--bh-paper: var(--wp--preset--color--paper, #ffffff);
	--bh-line: var(--wp--preset--color--line, #d6e1db);
	--bh-ok: #12945a;
	--bh-bad: #c9353a;
	--bh-star: #f2a900;
	--bh-notch: var(--bh-page);
	--bh-display: var(--wp--preset--font-family--heading, "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif);
	--bh-text: var(--wp--preset--font-family--body, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--bh-gutter: 16px;
	--bh-max: 1200px;
	--bh-r-lg: 18px;
	--bh-r-md: 12px;
	--bh-lift: 0 1px 0 rgba(6, 42, 32, .05), 0 12px 26px -16px rgba(6, 42, 32, .35);
	--bh-btn-edge: color-mix(in srgb, var(--bh-accent) 58%, #000);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, iframe, svg { max-width: 100%; height: auto; }
img { display: block; }
:focus-visible { outline: 3px solid var(--bh-primary); outline-offset: 2px; border-radius: 4px; }
.bh-hero :focus-visible,
.bh-footer :focus-visible,
.bh-header__bar :focus-visible,
.bh-section--dark :focus-visible { outline-color: var(--bh-accent); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wp-site-blocks { overflow-x: clip; }

/* ---------- layout containers ---------- */
.bh-wrap {
	width: 100%;
	max-width: calc(var(--bh-max) + var(--bh-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--bh-gutter);
}
.bh-wrap--narrow { max-width: calc(820px + var(--bh-gutter) * 2); }
.bh-wrap--flush { padding-inline: 0; max-width: none; }
.bh-main { min-height: 50vh; padding-bottom: 32px; }

.bh-section { padding-block: 28px; }
.bh-section--paper { background: var(--bh-paper); border-block: 1px solid var(--bh-line); --bh-notch: var(--bh-paper); }
.bh-section--tint { background: color-mix(in srgb, var(--bh-primary) 9%, var(--bh-page)); --bh-notch: color-mix(in srgb, var(--bh-primary) 9%, var(--bh-page)); }
.bh-section--dark { background: var(--bh-deep); color: #fff; --bh-notch: var(--bh-deep); }
.bh-section--dark .bh-section__title,
.bh-section--dark .bh-card__title a { color: #fff; }
.bh-section--dark .bh-more { color: var(--bh-accent); }
.bh-section--dark .bh-card__date,
.bh-section--dark .bh-fineprint { color: rgba(255, 255, 255, .7); }
.bh-wrap--flush .bh-section,
.bh-section .bh-section { padding-block: 0; }

.bh-section__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px;
}
.bh-section__title { font-size: clamp(1.45rem, 4.6vw, 2rem); margin: 0; letter-spacing: -.02em; }
.bh-more {
	flex: none; font-weight: 700; font-size: .9rem; color: var(--bh-primary);
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
	text-decoration-color: var(--bh-accent);
}
.bh-more:hover { text-decoration-color: currentColor; }

.bh-pagehead { padding-block: 22px 6px; }
.bh-section--term { padding-top: 0; }
.bh-page-title { font-size: clamp(1.9rem, 6.6vw, 3rem); letter-spacing: -.025em; margin: 0 0 .35em; }

.bh-empty,
.bh-editor-hint {
	padding: 18px; border: 2px dashed var(--bh-line); border-radius: var(--bh-r-md);
	color: var(--bh-muted); background: rgba(255, 255, 255, .5); text-align: center; font-size: .92rem;
}

/* ---------- buttons ---------- */
.bh-btn,
.wp-block-search__button,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 46px; padding: 10px 20px; border: 0; border-radius: 999px;
	font-family: var(--bh-text); font-weight: 800; font-size: .95rem; line-height: 1.1; text-align: center; text-decoration: none;
	cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bh-btn--primary,
.wp-block-search__button,
.wp-element-button {
	background: var(--bh-accent); color: var(--bh-ink);
	box-shadow: 0 3px 0 var(--bh-btn-edge);
	transition: transform .1s ease, box-shadow .1s ease;
}
.bh-btn--primary:hover,
.wp-block-search__button:hover,
.wp-element-button:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--bh-btn-edge); color: var(--bh-ink); }
.bh-btn--primary:active,
.wp-block-search__button:active { transform: translateY(3px); box-shadow: none; }
.bh-btn--ghost { background: transparent; color: var(--bh-primary); box-shadow: inset 0 0 0 2px var(--bh-line); }
.bh-btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--bh-primary); }
.bh-btn--sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.bh-btn--lg { min-height: 54px; font-size: 1.05rem; padding-inline: 28px; }
.bh-btn--block { width: 100%; }

/* ---------- 18+ ---------- */
.bh-age {
	display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 5px; margin-right: 8px;
	border: 1.5px solid currentColor; border-radius: 6px; font-size: .7rem; font-weight: 800; vertical-align: middle;
}
.bh-disclaimer { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--bh-muted); }
.bh-disc--bar { background: #031a14; color: rgba(255, 255, 255, .78); }
.bh-disc--bar .bh-disclaimer { color: inherit; padding-block: 7px; font-size: .74rem; }
.bh-disc--box { margin-top: 26px; padding: 12px 14px; background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: var(--bh-r-md); }
.bh-disc--footer .bh-disclaimer { color: rgba(255, 255, 255, .72); }

/* ---------- header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
@media (min-width: 783px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; } }

.bh-header__bar { background: var(--bh-deep); color: #fff; }
.bh-header__inner { align-items: center; min-height: 60px; gap: 12px; }
.bh-header__brand { align-items: center; gap: 10px; min-width: 0; }
.bh-header__brand .wp-block-site-title { margin: 0; font-family: var(--bh-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.bh-header__brand .wp-block-site-title a { color: #fff; text-decoration: none; }
.bh-header__brand .wp-block-site-logo img { border-radius: 10px; }
.bh-header__tools { align-items: center; gap: 4px; }
.bh-header__bar .wp-block-navigation { color: #fff; font-weight: 600; font-size: .95rem; }
.bh-header__bar .wp-block-navigation a { color: inherit; text-decoration: none; }
.bh-header__bar .wp-block-navigation .wp-block-navigation-item__content { padding: 10px 12px; border-radius: 10px; }
.bh-header__bar .wp-block-navigation .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, .1); }
.bh-header__bar .wp-block-navigation .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--bh-accent); border-radius: 0; }
.bh-header__bar .wp-block-navigation__responsive-container-open,
.bh-header__bar .wp-block-navigation__responsive-container-close,
.bh-header__bar .wp-block-search__button { color: #fff; background: transparent; box-shadow: none; min-height: 44px; min-width: 44px; padding: 8px; }
.bh-header__bar .wp-block-navigation__responsive-container.is-menu-open { background: var(--bh-deep); color: #fff; padding: 20px var(--bh-gutter); }
.bh-header__bar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--bh-display); font-size: 1.5rem; font-weight: 700; padding: 12px 0; border-radius: 0;
}
.bh-header__bar .wp-block-search__input { background: #fff; color: var(--bh-ink); border: 0; border-radius: 999px; min-height: 40px; padding: 6px 14px; max-width: 60vw; }

/* ---------- hero ---------- */
.bh-hero { position: relative; overflow: hidden; background: var(--bh-deep); color: #fff; --bh-notch: var(--bh-deep); }
.bh-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--bh-primary) 80%, transparent), transparent 72%),
		repeating-radial-gradient(circle at 100% 0, transparent 0 58px, rgba(255, 255, 255, .05) 58px 59px);
}
.bh-hero__inner { position: relative; display: grid; gap: 26px; padding-block: 28px 34px; }
.bh-hero__title {
	margin: 0 0 .4em; color: #fff; font-size: clamp(2.05rem, 8.4vw, 3.9rem); line-height: 1.02;
	letter-spacing: -.03em; text-wrap: balance; max-width: 15ch;
}
.bh-hero__inner--solo .bh-hero__title { max-width: 20ch; }
.bh-hero__sub { margin: 0 0 18px; max-width: 46ch; font-size: 1.05rem; color: rgba(255, 255, 255, .8); }
.bh-hero__points { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.bh-hero__points li { display: flex; gap: 10px; align-items: flex-start; }
.bh-hero__points li::before {
	content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
	background: var(--bh-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a17' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.bh-hero__search { max-width: 520px; }

.bh-searchform { display: flex; gap: 8px; }
.bh-searchform__input,
.wp-block-search__input {
	flex: 1; min-width: 0; min-height: 48px; padding: 8px 18px; border: 2px solid transparent; border-radius: 999px;
	background: #fff; color: var(--bh-ink); font: inherit; font-size: 1rem;
}
.wp-block-search__inside-wrapper { gap: 8px; }
.bh-searchform__input:focus,
.wp-block-search__input:focus { outline: none; border-color: var(--bh-accent); }
.wp-block-search .wp-block-search__input { border: 2px solid var(--bh-line); }

/* The bet slip: the identity of the theme. */
.bh-slip {
	position: relative; overflow: hidden; background: var(--bh-paper); color: var(--bh-ink);
	border-radius: var(--bh-r-lg); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6); container: slip / inline-size;
}
.bh-slip__title {
	position: relative; margin: 0; padding: 16px 18px 14px; font-family: var(--bh-display); font-weight: 800; font-size: 1.1rem;
	border-bottom: 2px dashed var(--bh-line);
}
.bh-slip__title::before,
.bh-slip__title::after {
	content: ""; position: absolute; bottom: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bh-notch);
}
.bh-slip__title::before { left: -11px; }
.bh-slip__title::after { right: -11px; }
.bh-slip__list { margin: 0; padding: 0; list-style: none; }
.bh-slip__item {
	display: grid; grid-template-columns: 22px 48px minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 14px 18px;
}
.bh-slip__item + .bh-slip__item { border-top: 1px solid var(--bh-line); }
.bh-slip__rank { font-family: var(--bh-display); font-weight: 800; font-size: 1.1rem; color: var(--bh-muted); text-align: center; }
.bh-slip__logo .bh-logo { width: 48px; height: 48px; border-radius: 12px; }
.bh-slip__name { display: block; font-weight: 800; color: var(--bh-ink); text-decoration: none; line-height: 1.2; }
.bh-slip__bonus { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; color: var(--bh-muted); line-height: 1.3; margin-top: 2px; }
.bh-slip__item > .bh-btn { grid-column: 2 / -1; }

@container slip (min-width: 460px) {
	.bh-slip__item { grid-template-columns: 22px 48px minmax(0, 1fr) auto auto; }
	.bh-slip__item > .bh-btn { grid-column: auto; }
}

@keyframes bh-print {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.bh-hero .bh-slip__item { animation: bh-print .5s cubic-bezier(.2, .7, .2, 1) both; }
	.bh-hero .bh-slip__item:nth-child(2) { animation-delay: .12s; }
	.bh-hero .bh-slip__item:nth-child(3) { animation-delay: .24s; }
	.bh-hero .bh-slip__item:nth-child(n+4) { animation-delay: .34s; }
}

/* ---------- logos, ratings ---------- */
.bh-logo {
	width: 56px; height: 56px; padding: 4px; object-fit: contain; border-radius: 14px;
	background: #fff; border: 1px solid var(--bh-line);
}
.bh-logo--ph { display: grid; place-items: center; font-family: var(--bh-display); font-weight: 800; font-size: 1.4rem; color: var(--bh-primary); background: color-mix(in srgb, var(--bh-primary) 10%, #fff); }
.bh-rating { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.bh-stars { position: relative; display: inline-block; font-size: 1rem; letter-spacing: 2px; color: #d3dad6; white-space: nowrap; }
.bh-stars::before {
	content: "\2605\2605\2605\2605\2605"; position: absolute; inset: 0 auto 0 0; width: var(--bh-pct, 0%);
	overflow: hidden; white-space: nowrap; color: var(--bh-star);
}
.bh-rating__num { font-weight: 800; font-size: .95rem; }
.bh-score {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 14px;
	background: var(--bh-primary); color: #fff; font-family: var(--bh-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
}

/* ---------- brand comparison table ---------- */
.bh-table-wrap { margin: 0; container: tbl / inline-size; }
.bh-filters { display: grid; gap: 10px; margin-bottom: 16px; }
.bh-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.bh-tabs::-webkit-scrollbar { display: none; }
.bh-tab {
	flex: none; min-height: 42px; padding: 8px 18px; border: 2px solid var(--bh-line); border-radius: 999px;
	background: var(--bh-paper); color: var(--bh-ink); font: 700 .92rem var(--bh-text); cursor: pointer;
}
.bh-tab.is-active { background: var(--bh-ink); border-color: var(--bh-ink); color: #fff; }
.bh-select select {
	width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--bh-line); border-radius: var(--bh-r-md);
	background: var(--bh-paper); font: inherit; color: var(--bh-ink);
}

.bh-table { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bh-row {
	position: relative; overflow: hidden; background: var(--bh-paper); border: 1px solid var(--bh-line);
	border-radius: var(--bh-r-lg); box-shadow: var(--bh-lift);
}
.bh-row[hidden] { display: none; }
.bh-row.is-featured { border-color: var(--bh-accent); box-shadow: 0 0 0 2px var(--bh-accent), var(--bh-lift); }
.bh-row__head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.bh-row__rank { flex: none; width: 22px; font-family: var(--bh-display); font-weight: 800; font-size: 1.15rem; color: var(--bh-muted); text-align: center; }
.bh-row__logo { flex: none; }
.bh-row__main { display: grid; gap: 4px; flex: 1; min-width: 0; justify-items: start; }
.bh-row__name { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.bh-row__name a { color: var(--bh-ink); text-decoration: none; }
.bh-row__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--bh-accent); }
.bh-badge {
	padding: 2px 10px; border-radius: 999px; background: var(--bh-accent); color: var(--bh-ink);
	font-size: .72rem; font-weight: 800; line-height: 1.5;
}
.bh-row__body { position: relative; display: grid; gap: 14px; padding: 16px; border-top: 2px dashed var(--bh-line); }
.bh-row__body::before,
.bh-row__body::after {
	content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--bh-notch); border: 1px solid var(--bh-line);
}
.bh-row__body::before { left: -11px; }
.bh-row__body::after { right: -11px; }
.bh-row__bonus { display: grid; gap: 2px; }
.bh-row__bonus-label { font-size: .78rem; font-weight: 600; color: var(--bh-muted); }
.bh-row__bonus strong { font-family: var(--bh-display); font-size: 1.28rem; line-height: 1.15; letter-spacing: -.015em; color: var(--bh-primary); }
.bh-row__bonus small { font-size: .75rem; color: var(--bh-muted); line-height: 1.35; }
.bh-row__extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; font-size: .86rem; }
.bh-row__extra dt { font-size: .74rem; color: var(--bh-muted); font-weight: 600; }
.bh-row__extra dd { margin: 0; font-weight: 700; }
.bh-row__cta { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.bh-row__cta .bh-btn { padding-inline: 10px; }
.bh-table__empty { padding: 20px; text-align: center; color: var(--bh-muted); }
.bh-fineprint { margin: 12px 0 0; font-size: .75rem; line-height: 1.4; color: var(--bh-muted); }

@container tbl (min-width: 760px) {
	/* Row = horizontal ticket with a vertical tear line */
	.bh-row { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.5fr); }
	.bh-row__head { padding: 18px 20px; }
	.bh-row__body {
		grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding: 18px 22px;
		border-top: 0; border-left: 2px dashed var(--bh-line);
	}
	.bh-row__body::before { top: -11px; left: -11px; }
	.bh-row__body::after { top: auto; right: auto; bottom: -11px; left: -11px; }
	.bh-row__extra { grid-column: 1; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 28px; }
	.bh-row__cta { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 1fr; min-width: 168px; }
	.bh-row__body:not(:has(.bh-row__bonus)) .bh-row__extra { grid-row: 1; }
	.bh-row__bonus strong { font-size: 1.35rem; }
}

/* ---------- post cards ---------- */
.bh-cards {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(76%, 290px); gap: 14px;
	margin-inline: calc(var(--bh-gutter) * -1); padding: 2px var(--bh-gutter) 8px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.bh-cards::-webkit-scrollbar { display: none; }
.bh-cards > * { scroll-snap-align: start; }
.bh-wrap--flush .bh-cards { margin-inline: 0; padding-inline: 0; }
.bh-cards--grid { display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; gap: 24px 18px; }

.bh-catblock + .bh-catblock { margin-top: 36px; }
.bh-catblock .bh-section__head { padding-top: 12px; border-top: 2px solid var(--bh-ink); margin-bottom: 14px; }
.bh-section--dark .bh-catblock .bh-section__head { border-top-color: rgba(255, 255, 255, .4); }

.bh-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bh-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: var(--bh-line); }
.bh-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bh-card__ph {
	display: grid; place-items: center; width: 100%; height: 100%; background:
		repeating-radial-gradient(circle at 100% 0, transparent 0 34px, rgba(255, 255, 255, .06) 34px 35px), var(--bh-primary);
}
.bh-card__ph span { font-family: var(--bh-display); font-weight: 800; font-size: 4.2rem; line-height: 1; color: rgba(255, 255, 255, .22); }
.bh-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bh-card__cat { align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--bh-primary); text-decoration: none; }
.bh-card__cat:hover { text-decoration: underline; }
.bh-card__title { margin: 0; font-size: 1.14rem; line-height: 1.2; letter-spacing: -.01em; }
.bh-card__title a { color: var(--bh-ink); text-decoration: none; }
.bh-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--bh-accent); text-underline-offset: 3px; }
.bh-card__excerpt { margin: 0; font-size: .92rem; color: var(--bh-muted); }
.bh-card__date { margin-top: auto; font-size: .8rem; color: var(--bh-muted); }

/* ---------- bonuses (tickets) ---------- */
.bh-bonuses { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); container: bon / inline-size; }
.bh-bonus {
	position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr);
	background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: var(--bh-r-lg); box-shadow: var(--bh-lift);
}
.bh-bonus__logo { position: relative; grid-row: 1 / span 2; padding: 16px 14px; border-right: 2px dashed var(--bh-line); }
.bh-bonus__logo::before,
.bh-bonus__logo::after {
	content: ""; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--bh-notch); border: 1px solid var(--bh-line);
}
.bh-bonus__logo::before { top: -11px; }
.bh-bonus__logo::after { bottom: -11px; }
.bh-bonus__body { display: grid; gap: 8px; padding: 16px; align-content: start; }
.bh-bonus__type { justify-self: start; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bh-accent) 30%, #fff); font-size: .75rem; font-weight: 700; }
.bh-bonus__title { margin: 0; font-size: 1.05rem; }
.bh-bonus__value { margin: 0; font-family: var(--bh-display); font-weight: 800; font-size: 1.4rem; line-height: 1.15; color: var(--bh-primary); letter-spacing: -.02em; }
.bh-bonus__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: .82rem; }
.bh-bonus__meta div { display: flex; gap: 5px; }
.bh-bonus__meta dt { color: var(--bh-muted); }
.bh-bonus__meta dd { margin: 0; font-weight: 700; }
.bh-bonus__cta { grid-column: 2; padding: 0 16px 16px; }
.bh-bonus__cta .bh-btn { width: 100%; }
.bh-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .85rem; }
.bh-code code { padding: 5px 10px; border: 2px dashed var(--bh-primary); border-radius: 8px; background: color-mix(in srgb, var(--bh-primary) 7%, #fff); font-weight: 800; letter-spacing: .04em; }
.bh-copy { min-height: 36px; padding: 4px 14px; border: 2px solid var(--bh-line); border-radius: 999px; background: var(--bh-paper); color: var(--bh-ink); font: 700 .82rem var(--bh-text); cursor: pointer; }

@container bon (min-width: 460px) {
	.bh-bonus { grid-template-columns: auto minmax(0, 1fr) auto; }
	.bh-bonus__cta { grid-column: 3; grid-row: 1; align-self: center; padding: 16px 18px 16px 0; }
	.bh-bonus__cta .bh-btn { width: auto; }
}
@container bon (min-width: 700px) {
	.bh-bonus__logo { padding: 20px 18px; }
	.bh-bonus__body { padding: 20px; }
	.bh-bonus__cta { padding-right: 22px; }
}

/* ---------- countries, chips ---------- */
.bh-countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.bh-countries a {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--bh-line);
	border-radius: var(--bh-r-md); background: var(--bh-paper); color: var(--bh-ink); font-weight: 700; text-decoration: none;
}
.bh-countries a:hover { border-color: var(--bh-primary); box-shadow: inset 0 0 0 1px var(--bh-primary); }
.bh-flag { font-size: 1.6rem; line-height: 1; }
.bh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bh-chip {
	display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bh-primary) 8%, #fff);
	border: 1px solid var(--bh-line); font-size: .82rem; font-weight: 600; color: var(--bh-ink); text-decoration: none;
}
a.bh-chip:hover { border-color: var(--bh-primary); color: var(--bh-primary); }
.bh-chips--lg { margin: 4px 0 20px; }
.bh-chips--lg .bh-chip { min-height: 42px; padding-inline: 16px; font-size: .92rem; }

/* ---------- brand page ---------- */
.bh-brandhero {
	display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px 16px; align-items: center; margin: 14px 0 22px; padding: 18px;
	background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: 20px; box-shadow: var(--bh-lift);
}
.bh-brandhero__logo { align-self: start; }
.bh-brandhero__logo .bh-logo { width: 72px; height: 72px; border-radius: 18px; }
.bh-brandhero__title { margin: 0 0 6px; font-size: clamp(1.7rem, 6vw, 2.4rem); letter-spacing: -.025em; }
.bh-brandhero__rate { display: flex; align-items: center; gap: 10px; }
.bh-brandhero__tagline { margin: 8px 0 0; color: var(--bh-muted); }
.bh-brandhero__bonus {
	grid-column: 1 / -1; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--bh-r-md);
	background: color-mix(in srgb, var(--bh-accent) 16%, #fff); border-left: 5px solid var(--bh-accent);
}
.bh-brandhero__bonus strong { font-family: var(--bh-display); font-size: 1.3rem; line-height: 1.15; }
.bh-brandhero__bonus small { color: var(--bh-muted); }
.bh-brandhero__cta { grid-column: 1 / -1; }
.bh-brandhero__cta .bh-btn { width: 100%; }

.bh-brandlayout { display: grid; gap: 22px; }
.bh-brandlayout__main { min-width: 0; }
.bh-brandlayout__side { display: grid; gap: 16px; align-content: start; }
.bh-panel { padding: 18px; background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: var(--bh-r-lg); box-shadow: var(--bh-lift); }
.bh-panel__title { margin: 0 0 12px; font-size: 1.15rem; }
.bh-details { display: grid; gap: 10px; margin: 0 0 16px; }
.bh-details > div { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px dashed var(--bh-line); }
.bh-details dt { font-size: .78rem; font-weight: 600; color: var(--bh-muted); }
.bh-details dd { margin: 0; font-weight: 700; }
.bh-bigscore { display: flex; align-items: baseline; gap: 4px; margin: 0 0 14px; }
.bh-bigscore strong { font-family: var(--bh-display); font-size: 3rem; line-height: 1; letter-spacing: -.04em; color: var(--bh-primary); }
.bh-bigscore > span:not(.bh-rating):not(.bh-stars) { margin-right: 8px; color: var(--bh-muted); font-weight: 700; }
.bh-bars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bh-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: .9rem; }
.bh-bars__val { font-weight: 800; }
.bh-bars__track { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--bh-primary) 10%, #fff); }
.bh-bars__track span { display: block; height: 100%; border-radius: 99px; background: var(--bh-primary); }

.bh-proscons { display: grid; gap: 12px; margin-bottom: 22px; }
.bh-pc { padding: 16px 18px; background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: var(--bh-r-lg); }
.bh-pc h2 { margin: 0 0 10px; font-size: 1.1rem; }
.bh-pc ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bh-pc li { position: relative; padding-left: 26px; font-size: .95rem; }
.bh-pc li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.bh-pc--pros { border-top: 4px solid var(--bh-ok); }
.bh-pc--pros li::before { content: "\2713"; color: var(--bh-ok); }
.bh-pc--cons { border-top: 4px solid var(--bh-bad); }
.bh-pc--cons li::before { content: "\2715"; color: var(--bh-bad); }
.bh-subsection { margin-top: 30px; }

.bh-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 8px var(--bh-gutter) calc(8px + env(safe-area-inset-bottom));
	background: var(--bh-paper); border-top: 1px solid var(--bh-line); box-shadow: 0 -10px 24px -12px rgba(6, 42, 32, .35);
	transform: translateY(110%); transition: transform .25s ease;
}
.bh-sticky[hidden] { display: block; visibility: hidden; }
.bh-sticky.is-visible { transform: none; visibility: visible; }
.bh-sticky__inner { display: flex; align-items: center; gap: 12px; max-width: var(--bh-max); margin: 0 auto; }
.bh-sticky .bh-logo { width: 42px; height: 42px; border-radius: 10px; padding: 2px; }
.bh-sticky__txt { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.bh-sticky__txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-sticky__txt span { font-size: .8rem; color: var(--bh-muted); }

/* ---------- breadcrumbs ---------- */
.bh-breadcrumbs { padding-top: 14px; font-size: .82rem; color: var(--bh-muted); }
.bh-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.bh-breadcrumbs li:not(:last-child)::after { content: "\203A"; margin: 0 8px; opacity: .7; }
.bh-breadcrumbs a { color: inherit; }
.bh-breadcrumbs li:last-child { color: var(--bh-ink); font-weight: 600; }

/* ---------- article / prose ---------- */
.bh-article { padding-block: 14px 8px; }
.bh-article .bh-kicker,
.bh-article .bh-kicker a { font-size: .88rem; font-weight: 700; color: var(--bh-primary); text-decoration: none; }
.bh-article__title { margin: 6px 0 12px; font-size: clamp(1.9rem, 6.8vw, 3.1rem); letter-spacing: -.028em; text-wrap: balance; }
.bh-meta { gap: 4px 14px; margin-bottom: 18px; font-size: .86rem; color: var(--bh-muted); }
.bh-meta a { color: inherit; }
.bh-article .wp-block-post-featured-image { margin: 0 0 24px; }
.bh-article .wp-block-post-featured-image img { width: 100%; height: auto; border-radius: 18px; }

.bh-prose { font-size: 1.06rem; line-height: 1.72; overflow-wrap: anywhere; }
.bh-prose > * + * { margin-block-start: 1.15em; }
.bh-prose h2 { margin-block-start: 1.7em; font-size: clamp(1.45rem, 4.4vw, 1.9rem); letter-spacing: -.02em; }
.bh-prose h3 { margin-block-start: 1.5em; font-size: 1.3rem; }
.bh-prose a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.bh-prose img { border-radius: 12px; }
.bh-prose ul, .bh-prose ol { padding-left: 1.3em; }
.bh-prose li + li { margin-top: .4em; }
.bh-prose blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 5px solid var(--bh-accent); color: var(--bh-muted); }
.bh-prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bh-prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.bh-prose th, .bh-prose td { padding: 10px 12px; border: 1px solid var(--bh-line); text-align: left; }
.bh-prose th { background: color-mix(in srgb, var(--bh-primary) 9%, #fff); }
.bh-pagecontent { padding-block: 24px; }
.bh-termtext { margin-top: 30px; }

/* ---------- pagination ---------- */
.bh-pagination { margin: 32px 0 8px; }
.bh-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bh-pagination .page-numbers {
	display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: 2px solid var(--bh-line); border-radius: 12px;
	background: var(--bh-paper); color: var(--bh-ink); font-weight: 700; text-decoration: none;
}
.bh-pagination .current { background: var(--bh-ink); border-color: var(--bh-ink); color: #fff; }

/* ---------- footer ---------- */
.bh-footer { margin-top: 24px; padding: 36px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--bh-deep); color: rgba(255, 255, 255, .78); font-size: .92rem; }
.bh-footer a { color: #fff; }
.bh-footer__top { gap: 24px; margin-bottom: 22px; align-items: flex-start; }
.bh-footer .wp-block-site-title { margin: 0 0 6px; font-family: var(--bh-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.bh-footer .wp-block-site-title a { text-decoration: none; }
.bh-footer .wp-block-site-tagline { margin: 0; max-width: 34ch; color: rgba(255, 255, 255, .7); }
.bh-footer__nav { font-weight: 600; }
.bh-footer__nav a { display: block; padding: 6px 0; text-decoration: none; }
.bh-footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--bh-accent); }
.bh-footer__legal { margin: 14px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.bh-footer__credit { margin: 8px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .6); }

.bh-top {
	position: fixed; right: 14px; bottom: 14px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
	border: 0; border-radius: 50%; background: var(--bh-ink); color: #fff; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5); cursor: pointer;
}
.bh-top[hidden] { display: none; }
body.single-brand .bh-top { bottom: 84px; }

/* ---------- block editor niceties ---------- */
.bh-ed .bh-hero { margin-inline: 0; }
.bh-ed-fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.bh-ed-fieldset legend { margin-bottom: 8px; font-weight: 600; font-size: 11px; text-transform: uppercase; }
.editor-styles-wrapper .bh-sticky { position: static; transform: none; visibility: visible; }
.editor-styles-wrapper .bh-top { display: none; }

/* ==========================================================================
   >= 640px
   ========================================================================== */
@media (min-width: 640px) {
	:root { --bh-gutter: 24px; }
	.bh-section { padding-block: 40px; }
	.bh-filters { grid-template-columns: 1fr auto; align-items: center; }
	.bh-select select { min-width: 220px; }
	.bh-hero__points { grid-template-columns: repeat(2, auto); justify-content: start; gap: 8px 28px; }

	.bh-cards,
	.bh-cards--grid {
		display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; gap: 26px 20px;
	}
	.bh-countries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bh-proscons { grid-template-columns: 1fr 1fr; }
	.bh-brandhero__cta .bh-btn { width: auto; }
	.bh-article .wp-block-post-featured-image img { border-radius: 22px; }
}

/* ==========================================================================
   >= 900px
   ========================================================================== */
@media (min-width: 900px) {
	.bh-header__bar { min-height: 68px; }
	.bh-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; padding-block: 56px 64px; }
	.bh-hero__inner--solo { grid-template-columns: 1fr; }
	.bh-hero__points { grid-template-columns: 1fr; }


	.bh-brandhero { grid-template-columns: 104px minmax(0, 1fr) minmax(220px, auto) auto; gap: 18px 28px; padding: 24px; }
	.bh-brandhero__logo .bh-logo { width: 104px; height: 104px; border-radius: 22px; }
	.bh-brandhero__bonus,
	.bh-brandhero__cta { grid-column: auto; }
	.bh-brandhero:not(:has(.bh-brandhero__bonus)) { grid-template-columns: 104px minmax(0, 1fr) auto; }
	.bh-sticky { display: none !important; }
	body.single-brand .bh-top { bottom: 14px; }

	.bh-countries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bh-footer__top { flex-wrap: nowrap; }
}

/* ==========================================================================
   >= 1100px
   ========================================================================== */
@media (min-width: 1100px) {
	.bh-cards { grid-template-columns: repeat(var(--bh-cols, 3), minmax(0, 1fr)); }
	.bh-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bh-cards--featured .bh-card--lead { grid-column: span 2; }
	.bh-cards--featured .bh-card--lead .bh-card__title { font-size: 1.55rem; }
	.bh-brandlayout { grid-template-columns: minmax(0, 1fr) 350px; gap: 34px; }
	.bh-brandlayout__side { position: sticky; top: 96px; }
	.bh-section { padding-block: 52px; }
	.bh-countries { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.bh-bonuses { grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.bh-header__bar, .bh-disc--bar, .bh-footer, .bh-sticky, .bh-top, .bh-btn { display: none !important; }
}
