/*
Theme Name: Bookmark Blitz
Theme URI: https://bookmarkblitz.com/
Author: Bookmark Blitz
Description: Ultra-modern social bookmarking theme for Bookmark Blitz. Animated front page, bookmark posts, category archives, an active-only Categories grid and a tree-style Sitemap, all with an animated sidebar.
Version: 1.2.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bookmarkblitz
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0b2540;
	--ink-2: #12365a;
	--navy: #032c4c;
	--text: #56667a;
	--muted: #8492a6;
	--line: #e5eaf2;
	--soft: #f5f7fb;
	--white: #fff;
	--a1: #ff5a36;
	--a2: #ffb21e;
	--grad: linear-gradient(100deg, var(--a1) 0%, var(--a2) 100%);
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 18px 45px -18px rgba(11, 37, 64, .22);
	--shadow-lg: 0 34px 70px -28px rgba(11, 37, 64, .35);
	--ease: cubic-bezier(.22, .8, .24, 1);
	--font-head: "Red Hat Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--font-body: "Red Hat Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--a1); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(255, 138, 40, .55); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bb-skip:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }

.bb-container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.bb-center { text-align: center; }
.bb-icon { flex: none; }

.bb-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--a1); margin: 0 0 14px;
}
.bb-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); }
.bb-h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; }
.bb-h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; }
.bb-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.bb-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 16px 30px; border: 0; border-radius: 999px; cursor: pointer; isolation: isolate; overflow: hidden;
	font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1; color: #fff;
	background: var(--grad); box-shadow: 0 14px 30px -12px rgba(255, 90, 54, .65);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .25s;
}
.bb-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.bb-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(11, 37, 64, .55); }
.bb-btn:hover::before { transform: none; }
.bb-btn .bb-icon { transition: transform .35s var(--ease); }
.bb-btn:hover .bb-icon { transform: translateX(4px); }
.bb-btn-sm { padding: 13px 22px; font-size: 14px; }
.bb-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.bb-btn-ghost:hover { box-shadow: none; }
.bb-btn-light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4); }
.bb-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 14px; margin-top: 16px; }
.bb-link:hover .bb-icon { transform: translateX(4px); }
.bb-link .bb-icon { transition: transform .3s var(--ease); width: 16px; height: 16px; }

.bb-chip {
	display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px;
	background: rgba(255, 122, 40, .11); color: #d9480f; font-family: var(--font-head); font-weight: 700; font-size: 12.5px; line-height: 1.3;
	transition: background .3s, color .3s, transform .3s var(--ease);
}
.bb-chip:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Tones ---------- */
.bb-tone-1 { --t1: #ff5a36; --t2: #ffb21e; }
.bb-tone-2 { --t1: #0b6bcb; --t2: #35c1f1; }
.bb-tone-3 { --t1: #7a3cf0; --t2: #c26bff; }
.bb-tone-4 { --t1: #0c9f7e; --t2: #5edc9d; }
.bb-tone-5 { --t1: #e0245e; --t2: #ff8a5b; }
.bb-tone-6 { --t1: #0b2540; --t2: #2f6fa8; }

/* ---------- Progress + header ---------- */
.bb-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.bb-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }

/* The blur lives on a pseudo-element so the header never becomes the containing block for the fixed mobile drawer. */
.bb-header { position: sticky; top: 0; z-index: 100; }
.bb-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: box-shadow .35s, background .35s; }
.bb-header.is-stuck::before { background: rgba(255, 255, 255, .95); box-shadow: 0 10px 34px -20px rgba(11, 37, 64, .45); }
.bb-header-inner { display: flex; align-items: center; gap: 28px; min-height: 86px; transition: min-height .35s var(--ease); }
.bb-header.is-stuck .bb-header-inner { min-height: 70px; }

.bb-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.bb-logo-mark { transition: transform .5s var(--ease); filter: drop-shadow(0 8px 12px rgba(255, 110, 40, .35)); }
.bb-logo:hover .bb-logo-mark { transform: translateY(-3px) rotate(-6deg); }
.bb-logo-text { font-family: var(--font-head); font-weight: 900; font-size: 25px; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.bb-logo-text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.custom-logo { max-height: 48px; width: auto; }

.bb-nav { display: flex; align-items: center; margin-left: auto; }
.bb-menu { display: flex; align-items: center; gap: 2px; }
.bb-menu li { position: relative; }
.bb-menu a { position: relative; display: block; padding: 12px 14px; font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.bb-menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.bb-menu > li > a:hover::after, .bb-menu > .current-menu-item > a::after { transform: scaleX(1); transform-origin: 0 50%; }
.bb-menu a:hover, .bb-menu .current-menu-item > a { color: var(--a1); }
.bb-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; padding: 10px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.bb-menu li:hover > .sub-menu, .bb-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bb-menu .sub-menu a { padding: 9px 12px; border-radius: 8px; white-space: normal; }
.bb-menu .sub-menu a:hover { background: var(--soft); }
.bb-nav-cta { display: none; }

.bb-header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.bb-iconbtn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.bb-iconbtn:hover { background: var(--ink); color: #fff; transform: rotate(8deg); }
.bb-burger { display: none; }
.bb-burger .bb-icon-close { display: none; }
.bb-nav-open .bb-burger .bb-icon-close { display: block; }
.bb-nav-open .bb-burger .bb-icon-menu { display: none; }

.bb-searchbar { border-top: 1px solid var(--line); padding: 18px 0; animation: bbDrop .35s var(--ease); background: #fff; }
.bb-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(11, 37, 64, .5); opacity: 0; visibility: hidden; transition: .35s; }

/* ---------- Search form ---------- */
.bb-search { position: relative; display: flex; }
.bb-search input { width: 100%; height: 58px; padding: 0 64px 0 24px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); outline: 0; transition: border-color .3s, box-shadow .3s; }
.bb-search input::placeholder { color: var(--muted); }
.bb-search input:focus { border-color: var(--a2); box-shadow: 0 0 0 5px rgba(255, 178, 30, .18); }
.bb-search button, .bb-catfilter-ico { position: absolute; right: 6px; top: 6px; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; cursor: pointer; transition: transform .35s var(--ease); }
.bb-search button:hover { transform: rotate(90deg) scale(1.05); }
.bb-catfilter-ico { pointer-events: none; }

/* ---------- Blobs ---------- */
.bb-blob { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; animation: bbFloat 14s ease-in-out infinite; }
.bb-blob-a { width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle at 30% 30%, rgba(255, 178, 30, .36), rgba(255, 90, 54, 0) 70%); }
.bb-blob-b { width: 380px; height: 380px; left: -150px; bottom: -180px; background: radial-gradient(circle at 60% 40%, rgba(53, 150, 241, .22), rgba(53, 150, 241, 0) 70%); animation-delay: -6s; }
.bb-blob-c { width: 340px; height: 340px; right: -80px; top: -150px; background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); }

/* ---------- Hero ---------- */
.bb-hero { position: relative; overflow: hidden; padding: 70px 0 150px; background: linear-gradient(180deg, #fff7f0 0%, #f6f9ff 100%); }
.bb-hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.bb-hero-title { font-size: clamp(42px, 5.6vw, 76px); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 22px; }
.bb-hero-title .bb-grad { display: block; }
.bb-hero-text { font-size: 19px; max-width: 540px; margin-bottom: 28px; }
.bb-hero-search { max-width: 520px; margin-bottom: 22px; }
.bb-hero-search .bb-search input { height: 64px; border-color: transparent; box-shadow: var(--shadow); }
.bb-hero-search .bb-search button { width: 52px; height: 52px; }
.bb-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-in { animation: bbHeroIn .9s var(--ease) both; animation-delay: var(--d, 0s); }

.bb-hero-art { position: relative; min-height: 500px; display: grid; place-items: center; }
.bb-hero-shape { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 42% 58% 56% 44% / 48% 44% 56% 52%; background: var(--grad); opacity: .95; animation: bbMorph 16s ease-in-out infinite; box-shadow: 0 50px 90px -40px rgba(255, 90, 54, .6); }
.bb-hero-shape::after { content: ""; position: absolute; inset: 9%; border-radius: inherit; border: 2px dashed rgba(255, 255, 255, .45); animation: bbSpin 60s linear infinite; }
.bb-stack { position: relative; width: min(430px, 92%); display: grid; gap: 16px; }
.bb-stack-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--ink); transform: translateX(calc((var(--n) - 1) * 26px)); animation: bbBob 6s ease-in-out infinite; animation-delay: calc(var(--n) * -1.6s); transition: transform .4s var(--ease), box-shadow .4s; }
.bb-stack-card:hover { color: var(--ink); animation-play-state: paused; box-shadow: 0 40px 70px -30px rgba(11, 37, 64, .55); }
.bb-stack-ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--t1), var(--t2)); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 22px; }
.bb-stack-body { min-width: 0; flex: 1; display: grid; }
.bb-stack-body small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-stack-body strong { font-family: var(--font-head); font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-stack-body em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-stack-card > .bb-icon { color: var(--a2); fill: var(--a2); }

.bb-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ink); color: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: bbBob 7s ease-in-out infinite; z-index: 2; }
.bb-float-a { left: -6px; top: 14px; }
.bb-float-b { right: -6px; bottom: 10px; background: #fff; color: var(--ink); animation-delay: -3s; }
.bb-float-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.bb-float strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1.1; }
.bb-float div span { display: block; font-size: 13px; opacity: .8; }

/* ---------- Pillars (numbered boxes) ---------- */
.bb-pillars { position: relative; margin-top: -86px; z-index: 3; }
.bb-pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.bb-pillar { position: relative; padding: 40px 30px 34px; border-right: 1px solid var(--line); overflow: hidden; transition: color .4s; }
.bb-pillar:last-child { border-right: 0; }
.bb-pillar::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease); }
.bb-pillar > * { position: relative; }
.bb-pillar-num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 46px; line-height: 1; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .5s var(--ease); }
.bb-pillar h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; transition: color .4s; }
.bb-pillar p { font-size: 15.5px; margin: 0; transition: color .4s; }
.bb-pillar:hover::before { transform: none; }
.bb-pillar:hover h2 { color: #fff; }
.bb-pillar:hover p { color: rgba(255, 255, 255, .78); }
.bb-pillar:hover .bb-pillar-num { transform: translateY(-4px) scale(1.06); }

/* ---------- Sections ---------- */
.bb-section { position: relative; padding: 110px 0; }
.bb-section-top { padding-top: 70px; }
.bb-soft { background: var(--soft); }
.bb-section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.bb-section-head p:last-child { margin-bottom: 0; }

.bb-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.bb-split-art { position: relative; padding: 0 30px 30px 0; }
.bb-split-alt .bb-split-art { padding: 0 0 30px 30px; }
.bb-split-art img { position: relative; width: 100%; border-radius: 34px 34px 34px 120px; box-shadow: var(--shadow-lg); transition: transform .7s var(--ease); }
.bb-split-alt .bb-split-art img { border-radius: 34px 34px 120px 34px; }
.bb-split-art:hover img { transform: translate(-6px, -6px); }
.bb-split-shape { position: absolute; right: 0; bottom: 0; width: 72%; height: 72%; border-radius: 34px; background: var(--grad); opacity: .9; }
.bb-split-alt .bb-split-shape { right: auto; left: 0; }
.bb-split-shape::before { content: ""; position: absolute; left: -44px; top: -44px; width: 120px; height: 120px; background-image: radial-gradient(var(--ink) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .3; }
.bb-split-copy p { font-size: 18px; }
.bb-checks { display: grid; gap: 16px; margin: 26px 0 34px; }
.bb-checks li { display: flex; gap: 14px; align-items: flex-start; }
.bb-checks .bb-icon { margin-top: 3px; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--grad); color: #fff; stroke-width: 2.6; }
.bb-checks strong { color: var(--ink); }
.bb-trio { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bb-trio span { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 14px; background: var(--soft); font-family: var(--font-head); font-weight: 800; color: var(--ink); transition: transform .35s var(--ease), background .35s, color .35s; }
.bb-trio span:hover { transform: translateY(-4px); background: var(--ink); color: #fff; }
.bb-trio .bb-icon { color: var(--a1); }

.bb-dark { background: var(--navy); color: rgba(255, 255, 255, .74); overflow: hidden; }
.bb-dark::before { content: ""; position: absolute; inset: 0; background: var(--bb-bg) center/cover no-repeat; opacity: .16; mix-blend-mode: luminosity; }
.bb-dark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(255, 138, 40, .28), transparent 55%); }
.bb-dark .bb-container { position: relative; z-index: 1; }
.bb-dark .bb-h2 { color: #fff; }
.bb-dark .bb-eyebrow { color: var(--a2); }
.bb-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bb-feature { position: relative; padding: 32px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; transition: transform .45s var(--ease), background .45s, border-color .45s; }
.bb-feature::before, .bb-card::after, .bb-catcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 178, 30, .2), transparent 70%); }
.bb-feature:hover::before, .bb-card:hover::after, .bb-catcard:hover::before { opacity: 1; }
.bb-feature:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 178, 30, .5); }
.bb-feature-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--grad); color: #fff; margin-bottom: 22px; transition: transform .5s var(--ease), border-radius .5s; }
.bb-feature-ico .bb-icon { width: 26px; height: 26px; }
.bb-feature:hover .bb-feature-ico { transform: rotate(-8deg) scale(1.08); border-radius: 50%; }
.bb-feature h3 { color: #fff; font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.bb-feature p { margin: 0; font-size: 15.5px; }

.bb-topcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
.bb-topcat { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border-radius: 16px; border: 1px solid var(--line); color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.bb-topcat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.bb-topcat-ico, .bb-catcard-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--t1), var(--t2)); transition: transform .45s var(--ease), border-radius .45s; }
.bb-topcat:hover .bb-topcat-ico, .bb-catcard:hover .bb-catcard-ico { transform: rotate(-8deg) scale(1.06); border-radius: 50%; }
.bb-topcat-name { font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.25; }
.bb-topcat-count { font-size: 13px; color: var(--muted); }

/* ---------- Cards ---------- */
.bb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bb-cards-2 { grid-template-columns: repeat(2, 1fr); }
.bb-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
.bb-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.bb-card-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--t1), var(--t2)); color: #fff; }
.bb-card-media::before { content: ""; position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; left: -70%; top: -90%; background: rgba(255, 255, 255, .14); transition: transform .9s var(--ease); }
.bb-card-media::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; background-image: radial-gradient(rgba(255, 255, 255, .5) 2px, transparent 2.5px); background-size: 15px 15px; }
.bb-card:hover .bb-card-media::before { transform: scale(1.25) translate(8%, 8%); }
.bb-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); z-index: 1; }
.bb-card:hover .bb-card-media img { transform: scale(1.08); }
.bb-card-initial { position: relative; font-family: var(--font-head); font-weight: 900; font-size: 68px; line-height: 1; text-shadow: 0 10px 24px rgba(0, 0, 0, .18); transition: transform .6s var(--ease); }
.bb-card:hover .bb-card-initial { transform: scale(1.12) rotate(-4deg); }
.bb-card-host { position: absolute; left: 16px; bottom: 14px; z-index: 1; max-width: calc(100% - 32px); padding: 5px 12px; border-radius: 999px; background: rgba(11, 37, 64, .45); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 24px 22px; flex: 1; }
.bb-card-title { font-size: 20px; font-weight: 800; line-height: 1.3; margin: 0; }
.bb-card-title a { color: var(--ink); background: linear-gradient(var(--a1), var(--a1)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.bb-card-title a::before { content: ""; position: absolute; inset: 0; }
.bb-card:hover .bb-card-title a { background-size: 100% 2px; }
.bb-card .bb-chip { position: relative; z-index: 2; }
.bb-card-text { font-size: 15.5px; margin: 0; }
.bb-card-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 16px; width: 100%; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.bb-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bb-card-meta .bb-icon { width: 16px; height: 16px; color: var(--a1); }

/* ---------- Pagination ---------- */
.bb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.bb-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-family: var(--font-head); font-weight: 800; transition: transform .3s var(--ease), background .3s, color .3s; }
.bb-pagination a.page-numbers:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.bb-pagination .current { background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(255, 90, 54, .7); }
.bb-pagination .dots { background: transparent; }

/* ---------- CTA band ---------- */
.bb-cta-band { padding: 0 0 110px; }
.bb-cta-box { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 60px; border-radius: 30px; background: var(--grad); color: rgba(255, 255, 255, .92); box-shadow: 0 40px 70px -40px rgba(255, 90, 54, .8); }
.bb-cta-box > div { position: relative; max-width: 640px; }
.bb-cta-box h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 900; }
.bb-cta-box p { margin: 0; font-size: 18px; }
.bb-cta-box .bb-btn { position: relative; }

/* ---------- Inner page hero ---------- */
.bb-pagehero { position: relative; overflow: hidden; padding: 62px 0 70px; background: linear-gradient(180deg, #fff7f0 0%, #f6f9ff 100%); }
.bb-pagehero .bb-container { position: relative; }
.bb-pagehero .bb-blob-a { width: 420px; height: 420px; top: -220px; }
.bb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; animation: bbHeroIn .7s var(--ease) both; }
.bb-crumbs a { color: var(--ink); font-weight: 500; }
.bb-crumbs a:hover { color: var(--a1); }
.bb-pagehero .bb-eyebrow { animation: bbHeroIn .7s .08s var(--ease) both; }
.bb-pagehero-title { max-width: 900px; font-size: clamp(30px, 4.2vw, 54px); font-weight: 900; letter-spacing: -.03em; margin: 0; animation: bbHeroIn .8s .16s var(--ease) both; }
.bb-pagehero-text { max-width: 720px; margin-top: 16px; font-size: 18px; animation: bbHeroIn .8s .24s var(--ease) both; }
.bb-pagehero-text p:last-child { margin: 0; }
.bb-pagehero-title a { color: inherit; background: linear-gradient(var(--a1), var(--a2)) 0 100% / 0 4px no-repeat; transition: background-size .6s var(--ease), color .3s; }
.bb-pagehero-title a:hover { color: var(--a1); background-size: 100% 4px; }
.bb-herolink { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 18px 10px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; box-shadow: var(--shadow); transition: transform .4s var(--ease), color .3s, box-shadow .4s; }
.bb-herolink .bb-icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--grad); color: #fff; transition: transform .45s var(--ease); }
.bb-herolink span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-herolink:hover { color: var(--a1); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bb-herolink:hover .bb-icon { transform: rotate(45deg); }

/* Featured image in the corner of the post header */
.bb-pagehero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: center; }
.bb-pagehero-main { min-width: 0; }
.bb-pagehero-media { animation: bbHeroIn .9s .3s var(--ease) both; }
.bb-featured { position: relative; margin: 0; padding: 8px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); transform: rotate(4deg); animation: bbBob 7s ease-in-out infinite; transition: transform .6s var(--ease), box-shadow .6s; }
.bb-featured::before { content: ""; position: absolute; inset: 18px -16px -16px 18px; z-index: -1; border-radius: 28px; background: var(--grad); opacity: .85; transition: inset .6s var(--ease); }
.bb-featured:hover { transform: rotate(0deg) scale(1.03); }
.bb-featured:hover::before { inset: 10px -8px -8px 10px; }
.bb-featured img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 21px; }
.bb-featured-badge { position: absolute; right: -14px; top: -14px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--a2); box-shadow: 0 0 0 5px #fff, 0 14px 24px -10px rgba(11, 37, 64, .6); }
.bb-featured-badge .bb-icon { fill: currentColor; width: 22px; height: 22px; }

/* Recent stories thumbnail */
.bb-recent-thumb { position: relative; flex: none; width: 58px; height: 58px; transition: transform .5s var(--ease); }
.bb-recent-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 18px -10px rgba(11, 37, 64, .55); transition: border-radius .5s var(--ease); }
.bb-recent-thumb b { position: absolute; left: -7px; top: -7px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 11px; line-height: 1; box-shadow: 0 0 0 3px #fff; }
.bb-recent li:hover .bb-recent-thumb { transform: rotate(-6deg) scale(1.06); }
.bb-recent li:hover .bb-recent-thumb img { border-radius: 50%; }

/* ---------- Layout + sidebar ---------- */
.bb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 56px; padding-top: 70px; padding-bottom: 110px; align-items: start; }
.bb-content { min-width: 0; }
.bb-sidebar { position: sticky; top: 96px; }
.bb-sidebar-inner { display: grid; gap: 26px; }
.bb-widget { position: relative; padding: 28px 24px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 40px -26px rgba(11, 37, 64, .35); overflow: hidden; transition: box-shadow .45s, transform .45s var(--ease), border-color .45s; }
.bb-widget::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); transform: scaleX(.18); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.bb-widget:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-5px); }
.bb-widget:hover::before { transform: scaleX(1); }
.bb-widget-title { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 900; margin-bottom: 20px; }
.bb-widget-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--grad); color: #fff; box-shadow: 0 10px 18px -8px rgba(255, 90, 54, .7); transition: transform .55s var(--ease), border-radius .55s; }
.bb-widget-ico .bb-icon { width: 19px; height: 19px; }
.bb-widget-ico .bb-icon-bolt { fill: #fff; stroke: none; }
.bb-widget:hover .bb-widget-ico { transform: rotate(-10deg) scale(1.08); border-radius: 50%; }

/* Search widget: dark feature card */
.bb-widget-search { background: linear-gradient(150deg, var(--navy) 0%, #0a3f6b 100%); border: 0; color: rgba(255, 255, 255, .75); }
.bb-widget-search .bb-widget-title { color: #fff; }
.bb-widget-glow { position: absolute; right: -90px; top: -110px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 40, .6), transparent 68%); animation: bbFloat 11s ease-in-out infinite; pointer-events: none; }
.bb-widget-search > *:not(.bb-widget-glow) { position: relative; }
.bb-widget .bb-search input { height: 56px; background: #fff; border-color: transparent; }
.bb-widget .bb-search button { width: 44px; height: 44px; }
.bb-side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.bb-side-stats div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); transition: background .35s, transform .35s var(--ease); }
.bb-side-stats div:hover { background: rgba(255, 255, 255, .15); transform: translateY(-3px); }
.bb-side-stats strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: 21px; line-height: 1.15; color: #fff; }
.bb-side-stats span { font-size: 12.5px; letter-spacing: .04em; }

/* Quick links: icon tiles */
.bb-quicknav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bb-quicknav a { position: relative; display: grid; justify-items: center; gap: 10px; padding: 16px 6px 14px; border-radius: 16px; background: var(--soft); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 13.5px; text-align: center; overflow: hidden; isolation: isolate; transition: color .35s, transform .4s var(--ease), box-shadow .4s; }
.bb-quicknav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateY(101%); transition: transform .45s var(--ease); }
.bb-quicknav a span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--a1); box-shadow: 0 8px 16px -10px rgba(11, 37, 64, .5); transition: transform .5s var(--ease); }
.bb-quicknav a:hover, .bb-quicknav a.is-active { color: #fff; transform: translateY(-5px); box-shadow: 0 16px 26px -14px rgba(255, 90, 54, .8); }
.bb-quicknav a:hover::before, .bb-quicknav a.is-active::before { transform: none; }
.bb-quicknav a:hover span { transform: rotate(-12deg) scale(1.1); }

/* Category navigation with gliding highlight and share bars */
.bb-sidenav { position: relative; margin: 0 -8px; }
.bb-sidenav-glider { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 122, 40, .13), rgba(255, 178, 30, .05)); box-shadow: inset 3px 0 0 var(--a1); opacity: 0; transition: transform .45s var(--ease), height .3s var(--ease), opacity .3s; pointer-events: none; }
.bb-sidenav ul { position: relative; display: grid; }
.bb-sidenav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 16px; color: var(--ink); transition: color .3s, padding-left .4s var(--ease); }
.bb-side-tile { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--t1), var(--t2)); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 16px; transition: transform .5s var(--ease), border-radius .5s; }
.bb-side-name { flex: 1; min-width: 0; display: grid; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.bb-catbar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bb-catbar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: var(--grad); transform-origin: 0 50%; }
.bb-sidenav em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; min-width: 38px; text-align: center; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--text); transition: background .3s, color .3s, transform .4s var(--ease); }
.bb-sidenav a:hover, .bb-sidenav .is-active a { color: var(--a1); padding-left: 16px; }
.bb-sidenav a:hover .bb-side-tile, .bb-sidenav .is-active .bb-side-tile { transform: rotate(-8deg) scale(1.1); border-radius: 50%; }
.bb-sidenav a:hover em, .bb-sidenav .is-active em { background: var(--grad); color: #fff; transform: scale(1.08); }
.bb-side-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 13px; border-radius: 14px; border: 2px dashed var(--line); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 14px; transition: border-color .35s, color .35s, background .35s; }
.bb-side-more .bb-icon { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.bb-side-more:hover { border-color: var(--a2); border-style: solid; color: var(--a1); background: rgba(255, 178, 30, .08); }
.bb-side-more:hover .bb-icon { transform: translateX(5px); }

/* Recent stories */
.bb-recent { display: grid; gap: 14px; }
.bb-recent li { position: relative; display: flex; gap: 14px; align-items: flex-start; transition: transform .4s var(--ease); }
.bb-recent li:hover { transform: translateX(6px); }
.bb-recent-num { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--t1), var(--t2)); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 16px; transition: transform .5s var(--ease), border-radius .5s; }
.bb-recent li:hover .bb-recent-num { transform: rotate(-8deg) scale(1.08); border-radius: 50%; }
.bb-recent div { min-width: 0; }
.bb-recent a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 14.5px; line-height: 1.35; }
.bb-recent a::after { content: ""; position: absolute; inset: 0; }
.bb-recent li:hover a { color: var(--a1); }
.bb-recent p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 5px 0 0; font-size: 12px; color: var(--muted); line-height: 1.3; }
.bb-recent p span { padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--text); font-weight: 500; }

/* Call to action */
.bb-widget-cta { background: var(--grad); border: 0; color: rgba(255, 255, 255, .92); text-align: center; padding: 36px 26px 32px; box-shadow: 0 26px 46px -24px rgba(255, 90, 54, .8); }
.bb-widget-cta::before { display: none; }
.bb-widget-cta > * { position: relative; }
.bb-cta-ring { position: absolute !important; left: 50%; top: -70px; width: 280px; height: 280px; margin-left: -140px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .4); animation: bbSpin 40s linear infinite; }
.bb-widget-cta h2 { color: #fff; font-size: 23px; font-weight: 900; }
.bb-widget-cta p { font-size: 15px; }
.bb-cta-bolt { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--a1); margin-bottom: 16px; animation: bbPulseLight 2.6s ease-out infinite; }
.bb-cta-bolt .bb-icon { width: 30px; height: 30px; fill: var(--a1); stroke: none; }
@keyframes bbPulseLight { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); } 100% { box-shadow: 0 0 0 24px rgba(255, 255, 255, 0); } }

/* ---------- Archive ---------- */
.bb-listhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 22px; margin-bottom: 28px; border-radius: 14px; background: var(--soft); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.bb-listhead span { display: inline-flex; align-items: center; gap: 8px; }
.bb-listhead .bb-icon { color: var(--a1); width: 18px; height: 18px; }
.bb-empty { padding: 50px 40px; border-radius: var(--radius); background: var(--soft); text-align: center; display: grid; gap: 14px; justify-items: center; }
.bb-empty .bb-search { width: min(460px, 100%); }

/* ---------- Single ---------- */
.bb-post { padding: 40px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bb-post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.bb-post-author { display: inline-flex; align-items: center; gap: 12px; }
.bb-avatar { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--a2); }
.bb-post-author small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.bb-post-author a { font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.bb-post-author a:hover { color: var(--a1); }
.bb-post-date { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.bb-post-date .bb-icon { color: var(--a1); width: 18px; height: 18px; }

.bb-linkcard { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 30px; border-radius: 18px; background: var(--soft); color: var(--ink); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s, background .45s; }
.bb-linkcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); transition: width .5s var(--ease); }
.bb-linkcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; color: var(--ink); }
.bb-linkcard:hover::before { width: 9px; }
.bb-linkcard-ico { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--t1), var(--t2)); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 26px; }
.bb-linkcard-body { flex: 1; min-width: 0; display: grid; }
.bb-linkcard-body small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a1); }
.bb-linkcard-body strong { font-family: var(--font-head); font-size: 19px; }
.bb-linkcard-body em { font-style: normal; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-linkcard-go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; transition: transform .35s var(--ease); }
.bb-linkcard:hover .bb-linkcard-go { transform: translateX(4px); }
.bb-linkcard-go .bb-icon { width: 17px; height: 17px; }

.bb-post-thumb { margin: 0 0 28px; border-radius: 18px; overflow: hidden; }
.bb-prose { font-size: 18px; color: #42526a; overflow-wrap: anywhere; }
.bb-prose > *:last-child { margin-bottom: 0; }
.bb-prose h2, .bb-prose h3, .bb-prose h4 { margin-top: 1.5em; }
.bb-prose ul, .bb-prose ol { margin: 0 0 1.2em 1.3em; }
.bb-prose ul { list-style: disc; }
.bb-prose ol { list-style: decimal; }
.bb-prose a { text-decoration: underline; text-decoration-color: rgba(255, 90, 54, .4); text-underline-offset: 3px; }
.bb-prose img { border-radius: 14px; }
.bb-prose blockquote { margin: 1.4em 0; padding: 18px 24px; border-left: 4px solid var(--a2); background: var(--soft); border-radius: 0 14px 14px 0; }
.bb-post-tax { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.bb-post-tax > span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; color: var(--ink); margin-right: 4px; }
.bb-post-tax .bb-icon { color: var(--a1); width: 18px; height: 18px; }

.bb-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.bb-postnav-item { display: grid; gap: 6px; padding: 22px 24px; border-radius: 18px; background: var(--soft); color: var(--ink); transition: transform .4s var(--ease), background .4s, color .4s; }
.bb-postnav-item.is-next { text-align: right; grid-column: 2; }
.bb-postnav-item:hover { background: var(--ink); color: #fff; transform: translateY(-4px); }
.bb-postnav-item small { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--a1); }
.bb-postnav-item.is-next small { justify-content: flex-end; }
.bb-postnav-item small .bb-icon { width: 16px; height: 16px; }
.bb-postnav-item span { font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.35; }
.bb-related { margin-top: 56px; }
.bb-related .bb-h3 { margin-bottom: 24px; }

.comments-area, .comment-respond { margin-top: 50px; }
.comment-list { display: grid; gap: 20px; margin-bottom: 30px; }
.comment-body { padding: 22px; border-radius: 16px; background: var(--soft); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 14px 18px; border: 2px solid var(--line); border-radius: 14px; outline: 0; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--a2); }
.comment-form .submit { padding: 15px 28px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; cursor: pointer; }

/* ---------- Categories page (card grid) ---------- */
.bb-cattools { position: sticky; top: 82px; z-index: 5; display: grid; gap: 14px; padding: 18px; margin-bottom: 34px; border-radius: var(--radius); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bb-catfilter input { height: 54px; background: var(--soft); border-color: transparent; }
.bb-catfilter-ico { width: 42px; height: 42px; }
.bb-az { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-az a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 13.5px; transition: transform .3s var(--ease), background .3s, color .3s; }
.bb-az a:hover { background: var(--grad); color: #fff; transform: translateY(-3px) scale(1.08); }
.bb-catgroup { margin-bottom: 40px; scroll-margin-top: 250px; }
.bb-catgroup-title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.bb-catgroup-title span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 26px; font-weight: 900; }
.bb-catgroup-title i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }
.bb-catgroup-title em { font-style: normal; font-family: var(--font-body); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--text); letter-spacing: 0; }
.bb-catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bb-catcard { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.bb-catcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.bb-catcard-ico { flex: none; width: 44px; height: 44px; font-size: 18px; }
.bb-catcard-body { flex: 1; min-width: 0; display: grid; }
.bb-catcard-body strong { font-family: var(--font-head); font-weight: 800; font-size: 15.5px; line-height: 1.25; }
.bb-catcard-body small { font-size: 12.5px; color: var(--muted); }
.bb-catcard > .bb-icon { width: 18px; height: 18px; color: var(--a1); opacity: 0; transform: translateX(-8px); transition: .35s var(--ease); }
.bb-catcard:hover > .bb-icon { opacity: 1; transform: none; }
.bb-filter-empty { padding: 24px; border-radius: 16px; background: var(--soft); text-align: center; }

/* ---------- Sitemap page (tree + index columns) ---------- */
.bb-tree { position: relative; padding: 0 0 46px 38px; }
.bb-tree::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--a2), var(--line) 30%, var(--line)); }
.bb-tree:last-child { padding-bottom: 0; }
.bb-tree:last-child::before { bottom: 12px; }
.bb-tree-title { display: flex; align-items: center; gap: 14px; margin: 0 0 22px -38px; font-size: 26px; font-weight: 900; }
.bb-tree-title > span { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 6px #fff, 0 12px 22px -10px rgba(255, 90, 54, .8); }
.bb-tree-title em { font-style: normal; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--text); }
.bb-tree-list { display: grid; gap: 2px; }
.bb-tree-pages { grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
.bb-tree-list li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0 9px 22px; }
.bb-tree-list li::before { content: ""; position: absolute; left: -17px; top: 21px; width: 28px; height: 2px; background: var(--line); transition: background .3s, width .35s var(--ease); }
.bb-tree-pages li:nth-child(even)::before { left: 0; width: 12px; }
.bb-tree-list li:hover::before { background: var(--a1); }
.bb-tree-list a { color: var(--ink); font-weight: 500; transition: color .3s, transform .35s var(--ease); display: inline-block; }
.bb-tree-list a:hover { color: var(--a1); transform: translateX(6px); }
.bb-tree-list time { flex: none; font-size: 13px; color: var(--muted); }
.bb-index { columns: 3 220px; column-gap: 34px; }
.bb-index-group { break-inside: avoid; margin-bottom: 26px; }
.bb-index-group h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 900; color: var(--a1); margin-bottom: 8px; }
.bb-index-group h3::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.bb-index-group a { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; color: var(--ink); font-size: 15px; line-height: 1.4; transition: color .25s, padding-left .35s var(--ease); }
.bb-index-group a span { min-width: 0; }
.bb-index-group a i { flex: 1; min-width: 14px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); transition: border-color .3s; }
.bb-index-group a em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: color .3s; }
.bb-index-group a:hover { color: var(--a1); padding-left: 8px; }
.bb-index-group a:hover i { border-color: var(--a2); }
.bb-index-group a:hover em { color: var(--a1); }

/* ---------- Footer ---------- */
.bb-footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, .68); padding: 90px 0 0; overflow: hidden; }
.bb-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.bb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.bb-footer .bb-logo-text { color: #fff; }
.bb-footer-brand p { margin: 20px 0 0; max-width: 330px; font-size: 15.5px; }
.bb-footer-title { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 20px; }
.bb-footer-col li { margin-bottom: 10px; }
.bb-footer-col a { position: relative; color: rgba(255, 255, 255, .68); font-size: 15.5px; transition: color .3s, padding-left .35s var(--ease); }
.bb-footer-col a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--a2); transition: width .35s var(--ease); }
.bb-footer-col a:hover { color: #fff; padding-left: 18px; }
.bb-footer-col a:hover::before { width: 12px; }
.bb-footer .bb-search { margin-top: 20px; }
.bb-footer .bb-search input { height: 52px; background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.bb-footer .bb-search input::placeholder { color: rgba(255, 255, 255, .5); }
.bb-footer .bb-search button { width: 40px; height: 40px; }
.bb-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14.5px; }
.bb-footer-bottom p { margin: 0; }
.bb-footer-bottom a { color: #fff; }
.bb-footer-bottom a:hover { color: var(--a2); }

.bb-totop { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 16px 30px -12px rgba(255, 90, 54, .8); opacity: 0; visibility: hidden; transform: translateY(16px); transition: .4s var(--ease); }
.bb-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.bb-totop:hover { color: #fff; transform: translateY(-4px); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal-left { transform: translateX(-44px); }
.js .reveal-right { transform: translateX(44px); }
.js .reveal-zoom { transform: scale(.94); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* After the entrance, hand transitions back to the component so hover stays snappy. */
.js .bb-card.is-in, .js .bb-catcard.is-in, .js .bb-topcat.is-in, .js .bb-feature.is-in { transition: opacity .8s var(--ease) var(--d, 0s), transform .5s var(--ease), box-shadow .5s, border-color .5s, background .45s; }

.js .side-reveal { opacity: 0; transform: translateX(40px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), box-shadow .45s, border-color .45s; }
.js .side-reveal.is-in { opacity: 1; transform: none; }
.js .side-reveal.is-in:hover { transform: translateY(-5px); transition-delay: 0s; }
.js .side-reveal .bb-sidenav li, .js .side-reveal .bb-recent li { opacity: 0; transform: translateX(18px); }
.js .side-reveal.is-in .bb-sidenav li, .js .side-reveal.is-in .bb-recent li { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--d, 0s) + .2s + var(--i, 0) * 45ms); }
.js .side-reveal.is-in .bb-recent li:hover { transform: translateX(6px); transition-delay: 0s; }
.js .side-reveal .bb-quicknav a { opacity: 0; transform: translateY(18px) scale(.92); }
.js .side-reveal.is-in .bb-quicknav a { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease), color .35s, box-shadow .4s; transition-delay: calc(var(--d, 0s) + .2s + var(--i, 0) * 80ms), calc(var(--d, 0s) + .2s + var(--i, 0) * 80ms), 0s, 0s; }
.js .side-reveal.is-in .bb-quicknav a:hover, .js .side-reveal.is-in .bb-quicknav a.is-active { transform: translateY(-5px); transition-delay: 0s; }
.js .side-reveal .bb-catbar i { transform: scaleX(0); }
.js .side-reveal.is-in .bb-catbar i { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + .45s + var(--i, 0) * 45ms); }

@keyframes bbHeroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bbDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes bbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, 30px) scale(1.08); } }
@keyframes bbBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes bbMorph { 0%, 100% { border-radius: 42% 58% 56% 44% / 48% 44% 56% 52%; } 33% { border-radius: 58% 42% 40% 60% / 54% 60% 40% 46%; } 66% { border-radius: 46% 54% 62% 38% / 40% 52% 48% 60%; } }
@keyframes bbSpin { to { transform: rotate(360deg); } }
@keyframes bbPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 40, .6); } 100% { box-shadow: 0 0 0 22px rgba(255, 138, 40, 0); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js .reveal, .js .side-reveal, .js .side-reveal .bb-sidenav li, .js .side-reveal .bb-recent li, .js .side-reveal .bb-quicknav a, .js .side-reveal .bb-catbar i { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.bb-header-cta { display: none; }
	.bb-features, .bb-topcats { grid-template-columns: repeat(3, 1fr); }
	.bb-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; }
	.bb-catgrid { grid-template-columns: repeat(2, 1fr); }
	.bb-index { columns: 2 200px; }
}
@media (max-width: 1024px) {
	.bb-burger { display: inline-grid; }
	.bb-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(340px, 88vw); margin: 0; padding: 96px 24px 30px; flex-direction: column; align-items: stretch; gap: 20px; background: #fff; box-shadow: -30px 0 60px -30px rgba(11, 37, 64, .5); transform: translateX(105%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; overflow-y: auto; }
	.bb-nav-open .bb-nav { transform: none; visibility: visible; }
	.bb-nav-open .bb-scrim { opacity: 1; visibility: visible; }
	.bb-nav-open { overflow: hidden; }
	.bb-header-actions { margin-left: auto; position: relative; z-index: 111; }
	.bb-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.bb-menu a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); white-space: normal; }
	.bb-menu > li > a::after { display: none; }
	.bb-menu li { opacity: 0; transform: translateX(24px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
	.bb-nav-open .bb-menu li { opacity: 1; transform: none; }
	.bb-nav-open .bb-menu li:nth-child(1) { transition-delay: .10s; }
	.bb-nav-open .bb-menu li:nth-child(2) { transition-delay: .15s; }
	.bb-nav-open .bb-menu li:nth-child(3) { transition-delay: .20s; }
	.bb-nav-open .bb-menu li:nth-child(4) { transition-delay: .25s; }
	.bb-nav-open .bb-menu li:nth-child(5) { transition-delay: .30s; }
	.bb-nav-open .bb-menu li:nth-child(n+6) { transition-delay: .35s; }
	.bb-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; }
	.bb-nav-cta { display: inline-flex; }

	.bb-hero { padding: 50px 0 130px; }
	.bb-hero-grid, .bb-split-grid { grid-template-columns: 1fr; gap: 50px; }
	.bb-hero-art { min-height: 440px; max-width: 560px; width: 100%; margin-inline: auto; }
	.bb-split-alt .bb-split-art { order: -1; }
	.bb-pillars-grid { grid-template-columns: repeat(2, 1fr); }
	.bb-pillar:nth-child(2) { border-right: 0; }
	.bb-pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.bb-cards { grid-template-columns: repeat(2, 1fr); }
	.bb-pagehero-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
	.bb-layout { grid-template-columns: 1fr; }
	.bb-sidebar { position: static; }
	.bb-sidebar-inner { grid-template-columns: repeat(2, 1fr); align-items: start; }
	.bb-footer-grid { grid-template-columns: 1fr 1fr; }
	.bb-section { padding: 80px 0; }
	.bb-catgrid { grid-template-columns: repeat(3, 1fr); }
	.bb-index { columns: 3 200px; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.bb-container { width: min(1240px, 100% - 32px); }
	.bb-header-inner { min-height: 72px; gap: 12px; }
	.bb-logo-text { font-size: 21px; }
	.bb-logo-mark { width: 36px; height: 36px; }
	.bb-iconbtn { width: 42px; height: 42px; }
	.bb-hero-art { min-height: 400px; }
	.bb-stack-card { transform: none; }
	.bb-float-a { left: 0; top: -6px; }
	.bb-float-b { right: 0; bottom: -10px; }
	.bb-features, .bb-topcats, .bb-cards, .bb-cards-2, .bb-catgrid, .bb-sidebar-inner, .bb-footer-grid, .bb-postnav, .bb-tree-pages { grid-template-columns: 1fr; }
	.bb-pillars-grid { grid-template-columns: 1fr; }
	.bb-pillar { border-right: 0; border-bottom: 1px solid var(--line); }
	.bb-pillar:last-child { border-bottom: 0; }
	.bb-postnav-item.is-next { grid-column: auto; }
	.bb-section { padding: 64px 0; }
	.bb-layout { padding-top: 44px; padding-bottom: 70px; }
	.bb-pagehero-grid { grid-template-columns: 1fr; gap: 34px; }
	.bb-pagehero-media { width: min(300px, 82%); }
	.bb-post { padding: 24px 20px; }
	.bb-linkcard { flex-wrap: wrap; }
	.bb-linkcard-go { width: 100%; justify-content: center; }
	.bb-cta-box { padding: 40px 26px; }
	.bb-cta-band { padding-bottom: 70px; }
	.bb-cattools { position: static; }
	.bb-catgroup { scroll-margin-top: 90px; }
	.bb-index { columns: 1; }
	.bb-tree-pages li:nth-child(even)::before { left: -17px; width: 28px; }
	.bb-footer { padding-top: 64px; }
	.bb-footer-grid { gap: 36px; }
	.bb-split-art img { border-radius: 24px 24px 24px 70px; }
}
