/**
 * Bhinnobritto — main.css
 * Design tokens, reset, typography, layout, header, ticker, footer.
 * Hand written, no build step, no framework. Tokens marked (inline) are
 * overridden from the Customizer by bb_inline_tokens() in inc/enqueue.php.
 */

/* ------------------------------------------------------------------ *
 * 1. Tokens
 * ------------------------------------------------------------------ */
:root {
	color-scheme: light;

	--bb-primary: #FABF24;          /* inline */
	--bb-primary-dark: #d99f0a;     /* inline */
	--bb-primary-soft: #fff6dc;     /* inline */
	--bb-on-primary: #12141a;       /* inline */
	--bb-ink: #12141a;              /* inline */
	--bb-breaking: #d7263d;         /* inline */
	--bb-link: #0b4f9e;             /* inline */
	--bb-container: 1240px;         /* inline */
	--bb-fs-base: 17px;             /* inline */

	--bb-muted: #5f6672;
	--bb-faint: #8b919c;
	--bb-line: #e6e8ec;
	--bb-line-soft: #f0f1f4;
	--bb-bg: #ffffff;
	--bb-bg-alt: #f6f7f9;
	--bb-bg-deep: #101318;
	--bb-live: #e0245e;
	--bb-verified: #128c5a;

	--bb-radius: 10px;
	--bb-radius-sm: 6px;
	--bb-radius-lg: 16px;
	--bb-shadow-sm: 0 1px 2px rgba(16, 19, 24, .06), 0 1px 3px rgba(16, 19, 24, .04);
	--bb-shadow: 0 4px 16px rgba(16, 19, 24, .08);
	--bb-shadow-lg: 0 12px 40px rgba(16, 19, 24, .14);

	--bb-gap: 20px;
	--bb-gap-sm: 12px;
	--bb-gap-lg: 34px;
	--bb-pad: 16px;

	--bb-font-bn: "Noto Serif Bengali", "Noto Sans Bengali", "SolaimanLipi", "Kalpurush", system-ui, sans-serif;
	--bb-font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bb-font-body: var(--bb-font-bn);
	--bb-font-head: var(--bb-font-bn);

	--bb-lh-body: 1.85;
	--bb-lh-head: 1.35;

	--bb-header-h: 64px;
	--bb-transition: 180ms cubic-bezier(.4, 0, .2, 1);
	--bb-max-prose: 760px;
	--bb-surface: rgba(255,255,255,.78);
    --bb-surface-strong: rgba(255,255,255,.92);
    --bb-glass-border: rgba(18,20,26,.09);
    --bb-glass-shadow: 0 14px 40px rgba(18,20,26,.09);
    --bb-shadow-soft: 0 8px 28px rgba(18,20,26,.07);
    --bb-radius-xl: 22px;
    --bb-radius-xxl: 28px;
    --bb-section-space: clamp(42px, 5vw, 72px);
}
/* Latin UI when the site language is English. */
html[lang^="en"] {
	--bb-font-body: var(--bb-font-en);
	--bb-font-head: var(--bb-font-en);
}

/* ------------------------------------------------------------------ *
 * 2. Reset
 * ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

/* Several elements (search panel, drawer, load-more wrapper, back-to-top) ship
   with the hidden attribute and are revealed by assets/js/main.js. Flex and
   grid display values beat the UA sheet's [hidden] rule, so restate it once. */
[hidden] { display: none !important; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--bb-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bb-bg);
	color: var(--bb-ink);
	font-family: var(--bb-font-body);
	font-size: var(--bb-fs-base);
	line-height: var(--bb-lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

img,
svg,
video,
iframe { max-width: 100%; }

img,
video {
	height: auto;
	display: block;
}

svg { flex: none; }

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus-visible { color: var(--bb-link); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-family: var(--bb-font-head);
	font-weight: 700;
	line-height: var(--bb-lh-head);
	letter-spacing: -.005em;
}

p, ul, ol, figure, blockquote, table, pre { margin: 0 0 1.1em; }

ul, ol { padding-inline-start: 1.3em; }

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

:focus-visible {
	outline: 3px solid var(--bb-link);
	outline-offset: 2px;
	border-radius: 3px;
}

hr {
	border: 0;
	border-top: 1px solid var(--bb-line);
	margin: 2em 0;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	border: 1px solid var(--bb-line);
	padding: 8px 10px;
	text-align: start;
}

/* ------------------------------------------------------------------ *
 * 3. Accessibility helpers
 * ------------------------------------------------------------------ */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Skip link. header.php ships both bb-skip-link and screen-reader-text, so the
   focus rule has to win over the sr-only clip. */
.bb-skiplink,
.bb-skip-link {
	position: absolute;
	inset-inline-start: 8px;
	top: -60px;
	z-index: 999;
	background: var(--bb-primary);
	color: var(--bb-on-primary);
	padding: 10px 18px;
	border-radius: var(--bb-radius-sm);
	font-weight: 600;
	transition: top var(--bb-transition);
}

.bb-skiplink:focus,
.bb-skip-link:focus {
	top: 8px;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	clip: auto !important;
	clip-path: none !important;
	overflow: visible;
	color: var(--bb-on-primary);
}

/* ------------------------------------------------------------------ *
 * 4. Layout
 * ------------------------------------------------------------------ */
.bb-container {
	width: 100%;
	max-width: var(--bb-container);
	margin-inline: auto;
	padding-inline: var(--bb-pad);
}

body.bb-layout-wide .bb-container { max-width: 96vw; }

.bb-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: var(--bb-gap-lg);
	align-items: start;
}

.bb-columns__main { min-width: 0; }

.bb-layout--full .bb-columns,
.bb-no-sidebar .bb-columns { grid-template-columns: minmax(0, 1fr); }

.bb-layout--sidebar-left .bb-columns { grid-template-columns: 330px minmax(0, 1fr); }
.bb-layout--sidebar-left .bb-columns__main { order: 2; }
.bb-layout--sidebar-left .bb-columns__side { order: 1; }

.bb-grid {
	display: grid;
	gap: var(--bb-gap);
	grid-template-columns: repeat(var(--bb-cols, 3), minmax(0, 1fr));
}

.bb-grid--2 { --bb-cols: 2; }
.bb-grid--3 { --bb-cols: 3; }
.bb-grid--4 { --bb-cols: 4; }
.bb-grid--5 { --bb-cols: 5; }

.bb-stack {
	display: flex;
	flex-direction: column;
	gap: var(--bb-gap);
}

#bb-content { display: block; }

.bb-single-wrap,
.bb-archive-wrap,
.bb-page-wrap,
.bb-404 { padding-block: 26px 46px; }

/* ------------------------------------------------------------------ *
 * 5. Buttons, chips, flags
 * ------------------------------------------------------------------ */
.bb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid var(--bb-line);
	background: var(--bb-bg);
	font-weight: 600;
	font-size: .95em;
	line-height: 1.2;
	transition: background var(--bb-transition), border-color var(--bb-transition), color var(--bb-transition), transform var(--bb-transition);
	transition: transform var(--bb-motion-fast) var(--bb-ease);
}

.bb-btn:hover {
	border-color: var(--bb-primary);
	background: var(--bb-primary-soft);
	color: var(--bb-ink);
	transform: translateY(-1px);
}

.bb-btn--primary {
	background: var(--bb-primary);
	border-color: var(--bb-primary);
	color: var(--bb-on-primary);
}

.bb-btn--primary:hover {
	background: var(--bb-primary-dark);
	border-color: var(--bb-primary-dark);
	color: var(--bb-on-primary);
}

.bb-btn--ghost { background: transparent; }

.bb-btn--block {
	width: 100%;
	justify-content: center;
}

.bb-btn[disabled] {
	opacity: .55;
	cursor: default;
}

.bb-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--bb-line);
	background: var(--bb-bg);
	transition: background var(--bb-transition), border-color var(--bb-transition);
}

.bb-icon-btn:hover {
	background: var(--bb-primary-soft);
	border-color: var(--bb-primary);
}

.bb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--bb-bg-alt);
	border: 1px solid var(--bb-line);
	font-size: .78em;
	font-weight: 600;
	color: var(--bb-muted);
	line-height: 1.6;
}

.bb-chip--link:hover {
	background: var(--bb-primary-soft);
	border-color: var(--bb-primary);
	color: var(--bb-ink);
}

.bb-chip--place { color: var(--bb-ink); }

.bb-chip--verified {
	color: var(--bb-verified);
	border-color: rgba(18, 140, 90, .35);
	background: rgba(18, 140, 90, .08);
}

/* Flags: breaking, live, lead, sponsored… */
.bb-flag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: var(--bb-radius-sm);
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: none;
	background: #12141a;
	color: #fff;
	line-height: 1.7;
}

.bb-flag--breaking { background: var(--bb-breaking); }
.bb-flag--live { background: var(--bb-live); }
.bb-flag--ended { background: var(--bb-muted); }
.bb-flag--lead,
.bb-flag--pick {
	background: var(--bb-primary);
	color: var(--bb-on-primary);
}
.bb-flag--sponsored {
	background: var(--bb-bg-alt);
	color: var(--bb-muted);
	border: 1px solid var(--bb-line);
}
.bb-flag--video { background: #1a1d24; }
.bb-flag--fact { background: var(--bb-verified); }
.bb-flag--photo { background: #6b4ee6; }

.bb-pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	animation: bb-pulse 1.4s ease-in-out infinite;
}

@keyframes bb-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .35; transform: scale(.75); }
}

/* ------------------------------------------------------------------ *
 * 6. Top bar
 * ------------------------------------------------------------------ */
.bb-topbar {
	background: var(--bb-ink);
	color: rgba(255, 255, 255, .82);
	font-size: .82em;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bb-topbar__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 38px;
	flex-wrap: wrap;
}

.bb-topbar a { color: inherit; }
.bb-topbar a:hover { color: var(--bb-primary); }

.bb-topbar__date {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}

.bb-topbar__menu ul,
.bb-topbar__links ul {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.bb-topbar__right {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	gap: 14px;
}

.bb-topbar__link {
	font-weight: 600;
	color: var(--bb-primary);
}

/* Language switcher */
.bb-langswitch {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	overflow: hidden;
}

.bb-langswitch__item {
	padding: 3px 11px;
	font-size: .92em;
	font-weight: 600;
	line-height: 1.7;
}

.bb-langswitch__item.is-active {
	background: var(--bb-primary);
	color: var(--bb-on-primary);
}

.bb-langswitch__item.is-active:hover { color: var(--bb-on-primary); }

/* Social icon rows */
.bb-social {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-social__link {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	transition: background var(--bb-transition), color var(--bb-transition);
}

.bb-social__link svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.bb-social--top .bb-social__link:hover {
	background: rgba(255, 255, 255, .12);
	color: var(--bb-primary);
}

/* Brand colours on hover, matching the sidebar social widget so the two rows
   behave the same way. Only the platform's own colour is used, and only on
   hover, so the resting header stays monochrome. */
.bb-social--lg .bb-social__link--facebook:hover,
.bb-social--footer .bb-social__link--facebook:hover { background: #1877f2; color: #fff; }

.bb-social--lg .bb-social__link--youtube:hover,
.bb-social--footer .bb-social__link--youtube:hover { background: #ff0000; color: #fff; }

.bb-social--lg .bb-social__link--instagram:hover,
.bb-social--footer .bb-social__link--instagram:hover { background: #c13584; color: #fff; }

.bb-social--lg .bb-social__link--x:hover,
.bb-social--footer .bb-social__link--x:hover { background: #0f1419; color: #fff; }

.bb-social--lg .bb-social__link--tiktok:hover,
.bb-social--footer .bb-social__link--tiktok:hover { background: #010101; color: #fff; }

.bb-social--lg .bb-social__link--linkedin:hover,
.bb-social--footer .bb-social__link--linkedin:hover { background: #0a66c2; color: #fff; }

.bb-social--lg .bb-social__link--whatsapp:hover,
.bb-social--footer .bb-social__link--whatsapp:hover { background: #25d366; color: #fff; }

.bb-social--lg .bb-social__link--telegram:hover,
.bb-social--footer .bb-social__link--telegram:hover { background: #229ed9; color: #fff; }

.bb-social--lg .bb-social__link--rss:hover,
.bb-social--footer .bb-social__link--rss:hover { background: #f26522; color: #fff; }

.bb-social--footer .bb-social__link {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, .08);
}

.bb-social--footer .bb-social__link:hover {
	background: var(--bb-primary);
	color: var(--bb-on-primary);
}

/* ------------------------------------------------------------------ *
 * 7. Header / masthead
 * ------------------------------------------------------------------ */

.bb-header {
    position: sticky;
    top: 0;
    z-index: 999;
    isolation: isolate;
    background: transparent;
    border: 0;
    padding-block: 10px;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bb-header__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: var(--bb-header-h);
    min-height: var(--bb-header-h);
    border: 0;
    border-radius: 0;
    background: var(--bb-surface);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: none;
    box-sizing: border-box;
}

.bb-header__navbar {
    margin-top: 8px;
    border: 0;
    border-radius: 0;
    background: rgba(18, 20, 26, .92);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: none;
}


/* =========================================================
   STICKY HEADER
   ========================================================= */

.bb-header--sticky {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Same height in both states */
.bb-header--sticky,
.bb-header--sticky.is-stuck {
    padding-block: 10px;
}

.bb-header--sticky .bb-header__inner,
.bb-header--sticky .bb-header__navbar {
    transition: none !important;
}
.bb-header--sticky.is-stuck .bb-header__inner,
.bb-header--sticky.is-stuck .bb-header__navbar {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* MENU — NORMAL */
.bb-header--sticky:not(.is-stuck) .bb-header__navbar {
    width: 100%;
    max-width: var(--bb-container);
    margin: 8px auto 0;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    overflow: hidden;

    background: rgba(15, 17, 21, .92);

    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);

    box-shadow: none;
}


/* MENU — SCROLL / CAPSULE */
.bb-header--sticky.is-stuck .bb-header__navbar {
    width: 100%;
    max-width: var(--bb-container);
    margin: 8px auto 0;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;

    overflow: hidden;

    background: rgba(15, 17, 21, .92);

    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}


/* Keep logo and tools vertically centered */
.bb-header__brand,
.bb-header__tools {
    display: flex;
    align-items: center;
}

.bb-header__brand {
    margin-inline-end: 4px;
}


/* =========================================================
   ADMIN BAR
   ========================================================= */

body.admin-bar .bb-header--sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .bb-header--sticky {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .bb-header--sticky {
        top: 0;
    }
}


/* No extra shadow on outer header */
.bb-header.is-stuck {
    box-shadow: none;
}

.bb-header__brand {
	display: flex;
	align-items: center;
	margin-inline-end: 4px;
}

/* ---- header_layout ------------------------------------------------- *
 * compact  logo, menu and tools on one row (default flex order below)
 * centered logo centred on the masthead row, menu in its own dark bar
 * left     logo left, ad slot right, menu in its own dark bar
 * The dark bar is the classic newspaper reading of a masthead and gives the
 * ten-odd section links room to breathe without wrapping.
 * -------------------------------------------------------------------- */

.bb-header__navbar .bb-header__nav {
	display: flex;
	align-items: center;
	min-height: 46px;
}

.bb-header__navbar .bb-menu--bar > li {
	position: relative;
}

.bb-header__navbar .bb-menu--bar > li > a {
	padding: 9px 15px;

	background: transparent;
	color: rgba(255,255,255,.72);
	transition:
		color var(--bb-transition),
		background var(--bb-transition),
		transform var(--bb-transition);
}

.bb-header__navbar .bb-menu--bar > li > a:hover,
.bb-header__navbar .bb-menu--bar > li:focus-within > a {
	background: rgba(255,255,255,.07);
	color: #fff;
	transform: translateY(-1px);
}

.bb-header__navbar .bb-menu--bar > li.current-menu-item > a,
.bb-header__navbar .bb-menu--bar > li.current-menu-parent > a,
.bb-header__navbar .bb-menu--bar > li.current-menu-ancestor > a {
	color: var(--bb-primary);
	background: rgba(255,255,255,.06);
}

.bb-header__navbar .bb-menu--bar > li > a:hover,
.bb-header__navbar .bb-menu--bar > li:focus-within > a {
	background: transparent;
	color: #fff;
}


.bb-header__navbar .bb-menu--bar > li.current-menu-item > a,
.bb-header__navbar .bb-menu--bar > li.current-menu-parent > a,
.bb-header__navbar .bb-menu--bar > li.current-menu-ancestor > a {
	background: transparent;
	color: var(--bb-primary);
	box-shadow: none;
	font-weight: 600;
}

/* Explicit three-column template, so the middle cell stays true centre whether
   or not the burger is rendered (it is display:none above 1024px). */
.bb-header--centered .bb-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	padding-block: 10px;
}

.bb-header--centered .bb-nav-toggle {
	grid-area: 1 / 1;
	justify-self: start;
}

.bb-header--centered .bb-header__brand {
	grid-area: 1 / 2;
	justify-self: center;
	margin-inline-end: 0;
}

.bb-header--centered .bb-header__tools {
	grid-area: 1 / 3;
	justify-self: end;
}

.bb-header--centered .bb-logo { font-size: 1.75em; }
.bb-header--centered .bb-logo-img { max-height: 60px; }
.bb-header--centered .bb-header__navbar .bb-header__nav { justify-content: center; }

.bb-header--left .bb-header__promo {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
	min-width: 0;
}

.bb-header--left .bb-header__promo .bb-ad { margin: 0; }

.bb-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 1.42em;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--bb-ink);
}

.bb-logo:hover { color: var(--bb-ink); }

.bb-logo-img {
	max-height: 46px;
	width: auto;
	object-fit: contain;
}

.bb-logo-icon {
	width: 42px;
	height: 42px;
	border-radius: var(--bb-radius-sm);
	object-fit: cover;
}

.bb-logo-mark {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: var(--bb-radius-sm);
	background: var(--bb-primary);
	color: var(--bb-on-primary);
	font-size: 1.05em;
	font-weight: 800;
}

.bb-logo-text { white-space: nowrap; }

.bb-brand--sm { font-size: 1.15em; }
.bb-brand--sm .bb-logo-img { max-height: 34px; }
.bb-brand--sm .bb-logo-mark,
.bb-brand--sm .bb-logo-icon {
	width: 32px;
	height: 32px;
}

/* ------------------------------------------------------------------ *
 * 8. Primary menu + submenus
 * ------------------------------------------------------------------ */
.bb-header__nav { min-width: 0; }

.bb-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-menu > li { position: relative; }

.bb-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 9px 12px;
	border-radius: var(--bb-radius-sm);
	font-weight: 600;
	font-size: .98em;
	white-space: nowrap;
	transition: background var(--bb-transition), color var(--bb-transition);
}

.bb-menu > li > a:hover,
.bb-menu > li:focus-within > a {
	background: var(--bb-primary-soft);
	color: var(--bb-ink);
}

.bb-menu > li.current-menu-item > a,
.bb-menu > li.current-menu-parent > a,
.bb-menu > li.current-menu-ancestor > a {
	color: var(--bb-ink);
	box-shadow: inset 0 -3px 0 var(--bb-primary);
}

.bb-menu--primary > li.bb-has-children > a { padding-inline-end: 4px; }

.bb-submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: var(--bb-muted);
	font-size: .8em;
	line-height: 1;
	transition: transform var(--bb-transition), color var(--bb-transition);
}

.bb-submenu-toggle:hover { color: var(--bb-ink); }
.bb-submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }

.bb-submenu {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 4px);
	z-index: 70;
	min-width: 230px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--bb-bg);
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	box-shadow: var(--bb-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--bb-transition), transform var(--bb-transition), visibility var(--bb-transition);
}

.bb-menu > li:hover > .bb-submenu,
.bb-menu > li:focus-within > .bb-submenu,
.bb-menu > li.is-open > .bb-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bb-submenu li { position: relative; }

.bb-submenu a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--bb-radius-sm);
	font-size: .95em;
	font-weight: 500;
}

.bb-submenu a:hover {
	background: var(--bb-bg-alt);
	color: var(--bb-ink);
}

.bb-submenu .bb-submenu {
	inset-inline-start: calc(100% + 4px);
	top: -6px;
}

.bb-submenu .bb-submenu-toggle {
	position: absolute;
	inset-inline-end: 4px;
	top: 6px;
}

/* ------------------------------------------------------------------ *
 * 9. Header tools, burger, live pill
 * ------------------------------------------------------------------ */
.bb-header__tools {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bb-fontsize {
	display: flex;
	align-items: center;
	gap: 4px;
}

.bb-fontsize .bb-icon-btn {
	width: 34px;
	height: 34px;
	font-size: .84em;
	font-weight: 700;
}

.bb-dark-toggle .bb-icon-sun { display: none; }
.bb-dark .bb-dark-toggle .bb-icon-sun { display: block; }
.bb-dark .bb-dark-toggle .bb-icon-moon { display: none; }

.bb-btn--live {
	padding: 8px 15px;
	background: var(--bb-live);
	border-color: var(--bb-live);
	color: #fff;
	font-size: .88em;
}

.bb-btn--live:hover {
	background: #c31d4f;
	border-color: #c31d4f;
	color: #fff;
}

/* .bb-dot is the ticker/live pill marker; .bb-pulse is its flag equivalent. */
.bb-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
	animation: bb-pulse 1.4s ease-in-out infinite;
}

.bb-nav-toggle { display: none; }

.bb-burger {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: background var(--bb-transition), transform var(--bb-transition);
}

.bb-burger::before,
.bb-burger::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--bb-transition), top var(--bb-transition);
}

.bb-burger::before { top: -6px; }
.bb-burger::after { top: 6px; }

.bb-nav-toggle[aria-expanded="true"] .bb-burger { background: transparent; }
.bb-nav-toggle[aria-expanded="true"] .bb-burger::before {
	top: 0;
	transform: rotate(45deg);
}
.bb-nav-toggle[aria-expanded="true"] .bb-burger::after {
	top: 0;
	transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ *
 * 10. Search bar + live results
 * ------------------------------------------------------------------ */
.bb-searchbar {
	background: var(--bb-bg-alt);
	border-top: 1px solid var(--bb-line);
	padding-block: 14px;
}

.bb-searchbar[hidden] { display: none; }

.bb-searchform {
	position: relative;
	display: flex;
	align-items: center;
}

.bb-searchform input[type="search"],
.bb-searchform input[type="text"] {
	width: 100%;
	padding: 12px 48px 12px 16px;
	border: 1px solid var(--bb-line);
	border-radius: 999px;
	background: var(--bb-bg);
	font-size: 1em;
	transition: border-color var(--bb-transition), box-shadow var(--bb-transition);
}

.bb-searchform input[type="search"]:focus,
.bb-searchform input[type="text"]:focus {
	outline: none;
	border-color: var(--bb-primary);
	box-shadow: 0 0 0 3px rgba(250, 191, 36, .28);
}

.bb-searchform__submit {
	position: absolute;
	inset-inline-end: 5px;
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--bb-primary);
	color: var(--bb-on-primary);
	transition: background var(--bb-transition);
}

.bb-searchform__submit:hover { background: var(--bb-primary-dark); }
.bb-searchform__submit svg {
	width: 18px;
	height: 18px;
}

.bb-live-results {
	margin-top: 10px;
	background: var(--bb-bg);
	border-radius: var(--bb-radius);
	box-shadow: var(--bb-shadow);
	overflow: hidden;
}

.bb-live-results:empty {
	box-shadow: none;
	margin-top: 0;
}

.bb-live-results__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--bb-line-soft);
}

.bb-live-results__item:last-child { border-bottom: 0; }
.bb-live-results__item:hover { background: var(--bb-primary-soft); }

.bb-live-results__thumb {
	width: 62px;
	height: 42px;
	border-radius: var(--bb-radius-sm);
	object-fit: cover;
	flex: none;
}

.bb-live-results__title {
	font-weight: 600;
	font-size: .95em;
	line-height: 1.5;
}

.bb-live-results__date {
	display: block;
	font-size: .8em;
	color: var(--bb-faint);
}

.bb-live-results__more,
.bb-live-results__empty {
	display: block;
	padding: 11px 14px;
	text-align: center;
	font-weight: 600;
	font-size: .92em;
	color: var(--bb-muted);
	background: var(--bb-bg-alt);
}

/* ------------------------------------------------------------------ *
 * 11. Mobile drawer
 * ------------------------------------------------------------------ */
.bb-drawer {
	position: fixed;
	inset: 0;
	z-index: 998;
}

.bb-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 19, 24, .55);
	opacity: 0;
	transition: opacity var(--bb-transition);
}

.bb-drawer__panel {
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: min(88vw, 340px);
	padding: 16px 18px 32px;
	background: var(--bb-surface-strong);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	box-shadow: var(--bb-glass-shadow);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(-102%);
	transition: transform 220ms cubic-bezier(.4, 0, .2, 1);
}

.bb-drawer[hidden] { display: none; }

[dir="rtl"] .bb-drawer__panel { transform: translateX(102%); }

.bb-drawer.is-open .bb-drawer__panel { transform: translateX(0); }
.bb-drawer.is-open .bb-drawer__backdrop { opacity: 1; }

.bb-drawer-close {
	font-size: 1.5em;
	line-height: 1;
}

.bb-drawer .bb-searchform { margin-bottom: 16px; }

.bb-menu--drawer {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.bb-menu--drawer > li {
	border-bottom: 1px solid var(--bb-line-soft);
}

.bb-menu--drawer > li > a,
.bb-menu--drawer .bb-submenu a {
	display: block;
	padding: 12px 4px;
	border-radius: 0;
	font-size: 1.02em;
	white-space: normal;
}

.bb-menu--drawer > li > a:hover,
.bb-menu--drawer .bb-submenu a:hover { background: transparent; color: var(--bb-link); }

.bb-menu--drawer li.bb-has-children { position: relative; }

.bb-menu--drawer .bb-submenu-toggle {
	position: absolute;
	inset-inline-end: 0;
	top: 10px;
	width: 30px;
	height: 30px;
	background: var(--bb-bg-alt);
}

.bb-menu--drawer .bb-submenu {
	position: static;
	min-width: 0;
	padding: 0 0 8px 14px;
	border: 0;
	border-inline-start: 2px solid var(--bb-primary-soft);
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
	display: none;
}

.bb-menu--drawer li.is-open > .bb-submenu { display: block; }
.bb-menu--drawer .bb-submenu a { padding: 9px 4px; font-size: .96em; }

.bb-drawer__social {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--bb-line);
}

.bb-drawer__social .bb-social__link {
	width: 36px;
	height: 36px;
	background: var(--bb-bg-alt);
}

.bb-drawer__social .bb-social__link:hover {
	background: var(--bb-primary);
	color: var(--bb-on-primary);
}

body.bb-drawer-open { overflow: hidden; }

/* ------------------------------------------------------------------ *
 * 12. Breaking ticker
 * ------------------------------------------------------------------ */
.bb-ticker {
	background: var(--bb-bg-alt);
	border-bottom: 1px solid var(--bb-line);
	overflow: hidden;
}

.bb-ticker__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 46px;
}

.bb-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: none;
	padding: 6px 14px;
	border-radius: var(--bb-radius-sm);
	background: var(--bb-breaking);
	color: #fff;
	font-weight: 700;
	font-size: .86em;
	letter-spacing: .01em;
	white-space: nowrap;
}

.bb-ticker__viewport {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.bb-ticker__track {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
	will-change: transform;
}

.bb-ticker__item { flex: none; }

.bb-ticker__item > a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: .96em;
	font-weight: 600;
}

.bb-ticker__time {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--bb-primary-soft);
	border: 1px solid rgba(250, 191, 36, .45);
	color: var(--bb-muted);
	font-size: .8em;
	font-weight: 600;
	flex: none;
}

.bb-ticker__ctrl {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
}

.bb-ticker__btn {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--bb-line);
	background: var(--bb-bg);
	color: var(--bb-muted);
	font-size: .8em;
	line-height: 1;
	transition: background var(--bb-transition), color var(--bb-transition), border-color var(--bb-transition);
}

.bb-ticker__btn:hover {
	background: var(--bb-primary);
	border-color: var(--bb-primary);
	color: var(--bb-on-primary);
}

.bb-ticker__btn.is-paused {
	background: var(--bb-ink);
	border-color: var(--bb-ink);
	color: #fff;
}

/* ------------------------------------------------------------------ *
 * 13. Ads, reading progress, back to top
 * ------------------------------------------------------------------ */
.bb-ad {
	margin-block: var(--bb-gap);
	text-align: center;
}

.bb-ad-header,
.bb-ad-footer { margin-block: 14px; }

.bb-ad-label {
	display: block;
	margin-bottom: 4px;
	font-size: .7em;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bb-faint);
}

.bb-ad iframe,
.bb-ad img { margin-inline: auto; }

.bb-progress {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 300;
	height: 3px;
	background: var(--bb-primary);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 90ms linear;
	pointer-events: none;
}

.bb-totop {
	position: fixed;
	inset-inline-end: 18px;
	bottom: 20px;
	z-index: 150;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bb-ink);
	color: #fff;
	font-size: 1.1em;
	box-shadow: var(--bb-shadow);
	transition: background var(--bb-transition), transform var(--bb-transition), opacity var(--bb-transition);
}

.bb-totop[hidden] { display: none; }

.bb-totop:hover {
	background: var(--bb-primary);
	color: var(--bb-on-primary);
	transform: translateY(-2px);
}

/* ------------------------------------------------------------------ *
 * 14. Footer
 * ------------------------------------------------------------------ */
.bb-footer {
	margin-top: 48px;
	background: var(--bb-bg-deep);
	color: rgba(255, 255, 255, .76);
	font-size: .96em;
}

.bb-footer a { color: inherit; }
.bb-footer a:hover { color: var(--bb-primary); }

.bb-footer__widgets {
	padding-block: 40px 30px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bb-footer__cols {
	display: grid;
	gap: var(--bb-gap-lg);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bb-footer__cols--1 { grid-template-columns: minmax(0, 1fr); }
.bb-footer__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-footer__cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bb-footer .widget { margin-bottom: 22px; }
.bb-footer .widget:last-child { margin-bottom: 0; }

.bb-footer .widget-title {
	margin-bottom: 14px;
	color: #fff;
	font-size: 1.02em;
	letter-spacing: .01em;
}

.bb-footer .widget-title span {
	display: inline-block;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--bb-primary);
}

.bb-linklist,
.bb-footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-linklist li,
.bb-footer .widget ul li {
	padding-block: 6px;
	border-bottom: 1px dashed rgba(255, 255, 255, .08);
	line-height: 1.6;
}

.bb-linklist li:last-child,

.bb-footer .widget_categories ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.bb-footer .widget_categories ul li {
	border-bottom: 0;
	padding: 5px 12px;
	background: rgba(255, 255, 255, .06);
	border-radius: 999px;
	line-height: 1.4;
}

.bb-footer .widget_categories ul li a {
	white-space: nowrap;
}
.bb-footer .widget ul li:last-child { border-bottom: 0; }

.bb-footer__brandbar { padding-block: 32px; }

.bb-footer__brandbar-inner {
	display: grid;
	gap: var(--bb-gap-lg);
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	align-items: start;
}

.bb-footer-title {
	display: block;
	margin-bottom: 10px;
	color: #fff;
	font-family: var(--bb-font-head);
	font-size: 1.5em;
	font-weight: 800;
	letter-spacing: -.02em;
}

.bb-footer__about {
	max-width: 62ch;
	margin-bottom: 16px;
	color: rgba(255, 255, 255, .66);
}

.bb-footer__contact p { margin-bottom: 8px; }
.bb-footer__contact strong { color: #fff; font-weight: 600; }

.bb-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: rgba(0, 0, 0, .22);
	padding-block: 16px;
	font-size: .92em;
}

.bb-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.bb-footer__copy { margin: 0; }

.bb-menu--footer,
.bb-menu--topbar { gap: 0; }

.bb-menu--footer > li > a,
.bb-menu--topbar > li > a {
	padding: 4px 10px;
	font-weight: 500;
	font-size: 1em;
}

.bb-menu--footer > li > a:hover,
.bb-menu--topbar > li > a:hover {
	background: transparent;
	color: var(--bb-primary);
}

.bb-menu--footer > li + li,
.bb-menu--topbar > li + li { border-inline-start: 1px solid rgba(255, 255, 255, .16); }

.bb-menu--footer .bb-submenu,
.bb-menu--topbar .bb-submenu,
.bb-menu--footer .bb-submenu-toggle,
.bb-menu--topbar .bb-submenu-toggle { display: none; }

/* ------------------------------------------------------------------ *
 * 15. Utilities
 * ------------------------------------------------------------------ */
.bb-main { display: block; }

.bb-clamp-1,
.bb-clamp-2,
.bb-clamp-3,
.bb-clamp-4 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bb-clamp-1 { -webkit-line-clamp: 1; }
.bb-clamp-2 { -webkit-line-clamp: 2; }
.bb-clamp-3 { -webkit-line-clamp: 3; }
.bb-clamp-4 { -webkit-line-clamp: 4; }

.bb-hide { display: none !important; }
.bb-center { text-align: center; }
.bb-muted { color: var(--bb-muted); }

.bb-sep {
	color: var(--bb-line);
	user-select: none;
}

/* Skeleton used while AJAX content is in flight. */
.bb-is-loading {
	position: relative;
	pointer-events: none;
	opacity: .55;
}

.bb-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: bb-spin .7s linear infinite;
}

@keyframes bb-spin { to { transform: rotate(360deg); } }


@media (hover: hover) {
	.bb-card__media img {
		will-change: transform;
	}

	.bb-card:hover .bb-card__media img {
		transform: scale(1.025);
	}
}

.bb-card:focus-within {
	outline: 0;
}

.bb-card:focus-within .bb-card__title a {
	color: var(--bb-link);
}

.bb-grid {
	row-gap: clamp(24px, 2.8vw, 38px);
}

.bb-river {
	margin-top: 0;
}

/* =========================================================
   HEADER FIX — keep logo/tools unchanged
   ========================================================= */

/* Logo + tools header */
.bb-header--sticky .bb-header__inner {
	width: 100%;
	box-sizing: border-box;
}

/* Normal state — don't stretch the inner content area */
.bb-header--sticky:not(.is-stuck) .bb-header__inner {
	width: 100%;
	max-width: var(--bb-container);
	margin-inline: auto;

	height: var(--bb-header-h);
	min-height: var(--bb-header-h);

	padding-inline: var(--bb-pad);

	border: 0;
	border-radius: var(--bb-radius-xl);
	box-shadow: none;
}

/* Scrolled state — logo header must also become rounded capsule */
.bb-header--sticky.is-stuck .bb-header__inner {
	width: 100%;
	max-width: var(--bb-container);
	margin-inline: auto;

	height: var(--bb-header-h);
	min-height: var(--bb-header-h);

	border: 1px solid var(--bb-glass-border);
	border-radius: var(--bb-radius-xl);
	background: var(--bb-surface);

	box-shadow: none;

	overflow: hidden;
}

/* Keep logo, live button, search and other tools at their original size */
.bb-header__brand,
.bb-header__tools,
.bb-header__brand > *,
.bb-header__tools > * {
	flex-shrink: 0;
}

/* Menu is ALWAYS capsule */
.bb-header--sticky .bb-header__navbar {
	width: 100%;
	max-width: var(--bb-container);
	margin: 8px auto 0;

	border: 1px solid rgba(255,255,255,.08);
	border-radius: 999px;
	overflow: hidden;

	background: rgba(15, 17, 21, .92);

	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);

	box-shadow: none;
}
