/*
Theme Name: TradeBit Blog
Theme URI: https://blog.tradebit.pro
Author: TradeBit
Author URI: https://tradebit.pro
Description: Custom child theme of GeneratePress for the TradeBit Blog — crypto magazine layout with featured hero, card grids, category sections, Polylang-ready, SEO-friendly and responsive.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: generatepress
Text Domain: tradebit-blog
Domain Path: /languages
Tags: blog, news, crypto, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns
*/

/* ==========================================================================
   TradeBit Blog — child of GeneratePress
   --------------------------------------------------------------------------
   1. CSS custom properties (:root)
   2. Base / reset complementing GeneratePress
   3. Layout container
   4. Header + navigation + search + lang switcher + mobile panel
   5. Font Awesome icon mapping (documented, see §11 below)
   6. Homepage: hero, card grid, category sections, CTA
   7. Archives / search / pagination
   8. Single article: breadcrumbs, meta, content, TOC, related, CTA
   9. Footer
   10. Gutenberg / content elements
   11. Utilities, focus, reduced motion, responsive, print
   ========================================================================== */

/* --------------------------------------------------------------------------
   §11. FONT AWESOME ICON MAPPING (existing assets: css/all.css + webfonts/)
   --------------------------------------------------------------------------
   Installed: Font Awesome Pro 6.0.0 files, family name "Font Awesome 7 Pro"
   (see css/all.css @font-face). Weights available: 100 (thin), 300 (light),
   400 (regular), 900 (solid), plus Brands 400 and Duotone 900.

   Theme convention (pseudo-element approach, no emoji/unicode substitutes):

     <nav class="footer_menu"><a href="/" class="i_home">Home</a></nav>
     .i_home::before { content: "\f015"; }
     .footer_menu a::before {
         font-family: var(--awesome);
         font-weight: 900;
         margin-right: 10px;
     }

   --awesome is defined below as "Font Awesome 7 Pro".
   All interface icons use ::before with font-weight 900 (solid).
   Verified FA6 solid code points used by this theme:

     Class         Code      FA name / usage
     -----------   ------    ---------------------------------------
     .i_home       \f015     house — Home link
     .i_search     \f002     magnifying-glass — search toggle/submit
     .i_menu       \f0c9     bars — open mobile menu
     .i_close      \f00d     xmark — close mobile menu / dialog
     .i_globe      \f0ac     globe — language switcher
     .i_chart      \f201     chart-line — Trading Strategies
     .i_money      \f0d6     money-bill — Make Money with Crypto
     .i_analysis   \f080     chart-bar — Market Analysis
     .i_exchange   \f0ec     arrow-right-arrow-left — Crypto Exchanges
     .i_book       \f02d     book — Guides & Tutorials
     .i_tag        \f02b     tag — sponsored / tags
     .i_calendar   \f073     calendar — publication date
     .i_user       \f007     user — author
     .i_clock      \f017     clock — reading time
     .i_arrow      \f061     arrow-right — read more / CTA
     .i_external   \f08e     arrow-up-right-from-square — TradeBit.pro
     .i_chevron    \f078     chevron-down — submenu indicator
     .i_comment    \f075     comment — comments count
     .i_folder     \f07b     folder — categories
     .i_bars-stag  (alias of .i_menu)

   If an icon does not render, check css/all.css @font-face paths
   (relative "webfonts/...") and that the woff2 files exist. Do not add
   another icon CDN or inline SVG for these UI icons.
   ------------------------------------------------------------------------ */

:root {
	/* Brand palette (inspired by TradeBit.pro) */
	--tbb-navy: #101827;
	--tbb-navy-2: #17243a;
	--tbb-blue: #2563eb;
	--tbb-blue-dark: #1d4ed8;
	--tbb-cyan: #06b6d4;
	--tbb-bg: #ffffff;
	--tbb-bg-soft: #f3f6fa;
	--tbb-text: #172033;
	--tbb-text-2: #64748b;
	--tbb-border: #e2e8f0;
	--tbb-white: #ffffff;

	/* Layout */
	--tbb-container: 1240px;
	--tbb-container-narrow: 780px;
	--tbb-gutter: 24px;
	--tbb-gutter-mobile: 16px;

	/* Spacing scale */
	--tbb-space-xs: 6px;
	--tbb-space-sm: 12px;
	--tbb-space-md: 20px;
	--tbb-space-lg: 32px;
	--tbb-space-xl: 48px;
	--tbb-space-2xl: 72px;

	/* Radii & shadows */
	--tbb-radius-sm: 8px;
	--tbb-radius-md: 14px;
	--tbb-radius-lg: 20px;
	--tbb-shadow-sm: 0 1px 2px rgba(16, 24, 39, 0.06);
	--tbb-shadow-md: 0 8px 24px rgba(16, 24, 39, 0.08);
	--tbb-shadow-lg: 0 18px 48px rgba(16, 24, 39, 0.14);

	/* Typography (system stack, no external fonts) */
	--tbb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--tbb-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tbb-size-base: 17px;
	--tbb-size-sm: 14px;
	--tbb-size-xs: 12.5px;
	--tbb-lh: 1.65;

	/* Icons */
	--awesome: "Font Awesome 7 Pro";

	/* Header/footer */
	--tbb-header-bg: var(--tbb-navy);
	--tbb-footer-bg: var(--tbb-navy);
}

/* ---------- Base ---------- */

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

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

body.tbb {
	font-family: var(--tbb-font);
	font-size: var(--tbb-size-base);
	line-height: var(--tbb-lh);
	color: var(--tbb-text);
	background: var(--tbb-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.tbb h1,
body.tbb h2,
body.tbb h3,
body.tbb h4 {
	font-family: var(--tbb-font-heading);
	line-height: 1.22;
	letter-spacing: -0.01em;
	color: var(--tbb-navy);
}

body.tbb a {
	color: var(--tbb-blue);
}

body.tbb a:hover {
	color: var(--tbb-blue-dark);
}

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

/* Visible keyboard focus everywhere */
.tbb :focus-visible {
	outline: 3px solid var(--tbb-cyan);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Skip link (kept from GeneratePress, restyled) */
.tbb .screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 200;
	background: var(--tbb-navy);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	clip: auto;
	width: auto;
	height: auto;
}

/* ---------- Layout container ---------- */

.tbb-container {
	width: 100%;
	max-width: var(--tbb-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--tbb-gutter);
	padding-right: var(--tbb-gutter);
}

.tbb-main {
	padding-top: var(--tbb-space-lg);
	padding-bottom: var(--tbb-space-xl);
}

/* Neutralize GeneratePress sidebars for our full-width magazine templates */
body.tbb .site-content {
	display: block;
}

body.tbb .content-area {
	width: 100%;
	float: none;
	margin: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.tbb-topbar {
	background: var(--tbb-navy-2);
	color: #cbd5e1;
	font-size: var(--tbb-size-xs);
}

.tbb-topbar .tbb-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 7px;
	padding-bottom: 7px;
}

.tbb-topbar p {
	margin: 0;
}

.tbb-topbar a {
	color: #e2e8f0;
	text-decoration: none;
}

.tbb-topbar a:hover {
	color: #fff;
}

.tbb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--tbb-header-bg);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tbb-header-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.tbb-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	min-width: 0;
	text-decoration: none;
}

.tbb-brand .custom-logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}

.tbb-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	color: #fff;
	text-decoration: none;
}

.tbb-brand-name {
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -0.01em;
	color: #fff;
	white-space: nowrap;
}

.tbb-brand-name span {
	color: var(--tbb-cyan);
}

.tbb-brand-tag {
	font-size: var(--tbb-size-xs);
	color: #94a3b8;
}

.tbb-nav-desktop {
	display: flex;
	align-items: center;
}

.tbb-nav-desktop ul {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbb-nav-desktop a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #e2e8f0;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 9px 12px;
	border-radius: 9px;
	white-space: nowrap;
}

.tbb-nav-desktop a:hover,
.tbb-nav-desktop .current-menu-item > a,
.tbb-nav-desktop .current-post-ancestor > a,
.tbb-nav-desktop .current-category-ancestor > a {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* Submenus */
.tbb-nav-desktop li {
	position: relative;
}

.tbb-nav-desktop ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	flex-direction: column;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--tbb-border);
	border-radius: 12px;
	box-shadow: var(--tbb-shadow-md);
	padding: 8px;
	z-index: 120;
}

.tbb-nav-desktop li:hover > ul,
.tbb-nav-desktop li:focus-within > ul {
	display: flex;
}

.tbb-nav-desktop ul ul a {
	color: var(--tbb-text);
	width: 100%;
}

.tbb-nav-desktop ul ul a:hover {
	background: var(--tbb-bg-soft);
	color: var(--tbb-navy);
}

.tbb-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 8px;
}

/* Icon buttons (search, menu) */
.tbb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border-radius: 11px;
	cursor: pointer;
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
}

.tbb-icon-btn:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.tbb-icon-btn::before {
	font-family: var(--awesome);
	font-weight: 900;
	font-style: normal;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

.tbb-search-toggle::before {
	content: "\f002";
}

.tbb-menu-toggle::before {
	content: "\f0c9";
}

.tbb-menu-toggle[aria-expanded="true"]::before {
	content: "\f00d";
}

/* CTA */
.tbb-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: linear-gradient(135deg, var(--tbb-blue), var(--tbb-cyan));
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	padding: 11px 18px;
	border-radius: 12px;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.tbb-cta-btn:hover {
	color: #fff;
	filter: brightness(1.06);
}

.tbb-cta-btn::after {
	content: "\f08e";
	font-family: var(--awesome);
	font-weight: 900;
	font-size: 13px;
}

/* Language switcher (header) */
.tbb-lang {
	position: relative;
}

.tbb-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #e2e8f0;
	border-radius: 11px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tbb-lang-btn::before {
	content: "\f0ac";
	font-family: var(--awesome);
	font-weight: 900;
}

.tbb-lang-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.tbb-lang-list {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 190px;
	background: #fff;
	border: 1px solid var(--tbb-border);
	border-radius: 12px;
	box-shadow: var(--tbb-shadow-md);
	list-style: none;
	margin: 0;
	padding: 8px;
	z-index: 130;
}

.tbb-lang.open .tbb-lang-list {
	display: block;
}

.tbb-lang-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 11px;
	border-radius: 8px;
	color: var(--tbb-text);
	text-decoration: none;
	font-size: 14px;
}

.tbb-lang-list a:hover {
	background: var(--tbb-bg-soft);
}

.tbb-lang-list .current-lang a {
	font-weight: 800;
	color: var(--tbb-blue);
}

/* Header search panel */
.tbb-search-panel {
	display: none;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--tbb-navy);
	padding: 12px 0 16px;
}

.tbb-search-panel.open {
	display: block;
}

.tbb-search-form {
	display: flex;
	gap: 10px;
}

.tbb-search-form label {
	flex: 1;
}

.tbb-search-form input[type="search"] {
	width: 100%;
	padding: 13px 15px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 16px;
}

.tbb-search-form input[type="search"]::placeholder {
	color: #94a3b8;
}

.tbb-search-form button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--tbb-blue);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 0 20px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.tbb-search-form button::before {
	content: "\f002";
	font-family: var(--awesome);
	font-weight: 900;
}

.tbb-search-form button:hover {
	background: var(--tbb-blue-dark);
}

/* Mobile panel */
.tbb-mobile-panel {
	display: none;
	background: var(--tbb-navy-2);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	max-height: calc(100vh - 70px);
	overflow-y: auto;
}

.tbb-mobile-panel.open {
	display: block;
}

.tbb-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 10px 0;
}

.tbb-mobile-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #e2e8f0;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	padding: 12px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tbb-mobile-nav a:hover {
	color: #fff;
}

.tbb-mobile-nav a::before {
	font-family: var(--awesome);
	font-weight: 900;
	font-style: normal;
	width: 26px;
	text-align: center;
	color: var(--tbb-cyan);
	font-size: 16px;
}

/* Default icon for items without explicit mapping */
.tbb-mobile-nav a::before {
	content: "\f061";
}

/* Explicit per-item icon mapping (mobile menu must contain icons — §10) */
.tbb-mobile-nav a.i_home::before,
.tbb-nav-desktop a.i_home::before {
	content: "\f015";
}

.tbb-mobile-nav a.i_strategies::before {
	content: "\f201";
}

.tbb-mobile-nav a.i_money::before {
	content: "\f0d6";
}

.tbb-mobile-nav a.i_analysis::before {
	content: "\f080";
}

.tbb-mobile-nav a.i_exchanges::before {
	content: "\f0ec";
}

.tbb-mobile-nav a.i_guides::before {
	content: "\f02d";
}

.tbb-mobile-nav a.i_search::before {
	content: "\f002";
}

.tbb-mobile-nav a.i_lang::before {
	content: "\f0ac";
}

.tbb-mobile-nav a.i_tradebit::before {
	content: "\f08e";
}

.tbb-mobile-nav a.i_privacy::before {
	content: "\f007";
}

.tbb-mobile-foot {
	padding: 14px 0 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ==========================================================================
   Homepage hero (featured article)
   ========================================================================== */

.tbb-hero {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 0;
	background: var(--tbb-navy);
	color: #fff;
	border-radius: var(--tbb-radius-lg);
	overflow: hidden;
	margin-bottom: var(--tbb-space-lg);
	box-shadow: var(--tbb-shadow-md);
}

.tbb-hero-media {
	position: relative;
	min-height: 340px;
	background: var(--tbb-navy-2);
}

.tbb-hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbb-hero-media.tbb-no-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--tbb-navy-2), #1e3a5f 60%, #0e7490);
}

.tbb-hero-media.tbb-no-thumb::before {
	content: "\f201";
	font-family: var(--awesome);
	font-weight: 900;
	font-size: 72px;
	color: rgba(255, 255, 255, 0.25);
}

.tbb-hero-body {
	padding: clamp(22px, 4vw, 44px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
}

.tbb-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	background: rgba(6, 182, 212, 0.16);
	color: #67e8f9;
	font-size: var(--tbb-size-xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 7px 12px;
	border-radius: 999px;
	text-decoration: none;
}

a.tbb-kicker:hover {
	color: #fff;
	background: rgba(6, 182, 212, 0.3);
}

.tbb-hero-title {
	margin: 0;
	font-size: clamp(26px, 3.6vw, 42px);
	color: #fff;
}

.tbb-hero-title a {
	color: #fff;
	text-decoration: none;
}

.tbb-hero-title a:hover {
	color: #bae6fd;
}

.tbb-hero-excerpt {
	margin: 0;
	color: #cbd5e1;
	font-size: 17px;
}

.tbb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: var(--tbb-size-sm);
	color: var(--tbb-text-2);
}

.tbb-hero .tbb-meta {
	color: #94a3b8;
}

.tbb-meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.tbb-meta span::before {
	font-family: var(--awesome);
	font-weight: 900;
	font-size: 13px;
}

.tbb-meta .tbb-date::before {
	content: "\f073";
}

.tbb-meta .tbb-author::before {
	content: "\f007";
}

.tbb-meta .tbb-reading::before {
	content: "\f017";
}

.tbb-meta .tbb-comments::before {
	content: "\f075";
}

.tbb-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	background: #fff;
	color: var(--tbb-navy);
	font-weight: 800;
	text-decoration: none;
	padding: 13px 22px;
	border-radius: 12px;
	font-size: 15.5px;
}

.tbb-btn::after {
	content: "\f061";
	font-family: var(--awesome);
	font-weight: 900;
	font-size: 14px;
}

.tbb-btn:hover {
	background: var(--tbb-cyan);
	color: var(--tbb-navy);
}

.tbb-btn-primary {
	background: linear-gradient(135deg, var(--tbb-blue), var(--tbb-cyan));
	color: #fff;
}

.tbb-btn-primary:hover {
	color: #fff;
	filter: brightness(1.07);
}

/* ==========================================================================
   Section headings + card grid
   ========================================================================== */

.tbb-section {
	margin-top: var(--tbb-space-xl);
}

.tbb-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: var(--tbb-space-md);
	border-bottom: 2px solid var(--tbb-border);
	padding-bottom: 12px;
}

.tbb-section-title {
	margin: 0;
	font-size: clamp(21px, 2.6vw, 28px);
	display: flex;
	align-items: center;
	gap: 11px;
}

.tbb-section-title::before {
	content: "";
	width: 6px;
	height: 26px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--tbb-blue), var(--tbb-cyan));
	display: inline-block;
}

.tbb-section-link {
	font-size: var(--tbb-size-sm);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.tbb-section-link::after {
	content: "\f061";
	font-family: var(--awesome);
	font-weight: 900;
	margin-left: 7px;
	font-size: 12px;
}

.tbb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.tbb-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

.tbb-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tbb-border);
	border-radius: var(--tbb-radius-md);
	overflow: hidden;
	box-shadow: var(--tbb-shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	height: 100%;
}

.tbb-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--tbb-shadow-md);
}

.tbb-card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--tbb-bg-soft);
	display: block;
}

.tbb-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tbb-card-media.tbb-no-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--tbb-navy-2), #1e40af 65%, #0e7490);
}

.tbb-card-media.tbb-no-thumb::before {
	content: "\f201";
	font-family: var(--awesome);
	font-weight: 900;
	font-size: 44px;
	color: rgba(255, 255, 255, 0.35);
}

.tbb-card-cat {
	position: absolute;
	left: 12px;
	top: 12px;
	background: var(--tbb-navy);
	color: #fff;
	font-size: var(--tbb-size-xs);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 11px;
	border-radius: 999px;
	text-decoration: none;
}

a.tbb-card-cat:hover {
	background: var(--tbb-blue);
	color: #fff;
}

.tbb-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	flex: 1;
}

.tbb-card-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
}

.tbb-card-title a {
	color: var(--tbb-navy);
	text-decoration: none;
}

.tbb-card-title a:hover {
	color: var(--tbb-blue);
}

.tbb-card-excerpt {
	margin: 0;
	font-size: 15px;
	color: var(--tbb-text-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tbb-card .tbb-meta {
	margin-top: auto;
	padding-top: 6px;
	font-size: 13px;
}

/* Horizontal (compact) card for category sections */
.tbb-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.tbb-card-h {
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--tbb-border);
	border-radius: var(--tbb-radius-md);
	padding: 14px;
	box-shadow: var(--tbb-shadow-sm);
}

.tbb-card-h-media {
	flex: 0 0 168px;
	width: 168px;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tbb-bg-soft);
	position: relative;
	display: block;
}

.tbb-card-h-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tbb-card-h-media.tbb-no-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--tbb-navy-2), #1e40af);
}

.tbb-card-h-media.tbb-no-thumb::before {
	content: "\f201";
	font-family: var(--awesome);
	font-weight: 900;
	color: rgba(255, 255, 255, 0.4);
	font-size: 28px;
}

.tbb-card-h-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tbb-card-h-title {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.35;
}

.tbb-card-h-title a {
	color: var(--tbb-navy);
	text-decoration: none;
}

.tbb-card-h-title a:hover {
	color: var(--tbb-blue);
}

/* ==========================================================================
   Conversion CTA band
   ========================================================================== */

.tbb-cta-band {
	margin-top: var(--tbb-space-xl);
	background: linear-gradient(120deg, var(--tbb-navy) 20%, #1e3a8a 65%, #0e7490 100%);
	border-radius: var(--tbb-radius-lg);
	color: #fff;
	padding: clamp(28px, 5vw, 54px);
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 24px;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.tbb-cta-band::before {
	content: "\f201";
	font-family: var(--awesome);
	font-weight: 900;
	position: absolute;
	right: -30px;
	bottom: -50px;
	font-size: 240px;
	color: rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.tbb-cta-band h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(22px, 3vw, 32px);
}

.tbb-cta-band p {
	margin: 0;
	color: #cbd5e1;
	font-size: 16.5px;
	max-width: 60ch;
}

/* Inline single-article CTA */
.tbb-cta-inline {
	border: 1px solid var(--tbb-border);
	border-left: 5px solid var(--tbb-cyan);
	background: var(--tbb-bg-soft);
	border-radius: var(--tbb-radius-md);
	padding: 22px;
	margin: var(--tbb-space-lg) 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	justify-content: space-between;
}

.tbb-cta-inline h3 {
	margin: 0 0 6px;
	font-size: 19px;
}

.tbb-cta-inline p {
	margin: 0;
	color: var(--tbb-text-2);
	font-size: 15px;
}

/* ==========================================================================
   Archives / search
   ========================================================================== */

.tbb-archive-head {
	background: var(--tbb-bg-soft);
	border: 1px solid var(--tbb-border);
	border-radius: var(--tbb-radius-lg);
	padding: clamp(22px, 4vw, 38px);
	margin-bottom: var(--tbb-space-md);
}

.tbb-archive-head h1 {
	margin: 0 0 8px;
	font-size: clamp(26px, 3.4vw, 38px);
}

.tbb-archive-head p {
	margin: 0;
	color: var(--tbb-text-2);
	max-width: 75ch;
}

.tbb-crumbs {
	font-size: var(--tbb-size-sm);
	color: var(--tbb-text-2);
	margin-bottom: 12px;
}

.tbb-crumbs a {
	text-decoration: none;
}

.tbb-crumbs .sep {
	margin: 0 8px;
	color: #b6c2d2;
}

.tbb-empty {
	background: #fff;
	border: 1px dashed var(--tbb-border);
	border-radius: var(--tbb-radius-md);
	padding: 40px 24px;
	text-align: center;
	color: var(--tbb-text-2);
}

.tbb-empty::before {
	content: "\f002";
	font-family: var(--awesome);
	font-weight: 900;
	display: block;
	font-size: 34px;
	color: #b6c2d2;
	margin-bottom: 12px;
}

/* Pagination */
.tbb-pagination {
	margin-top: var(--tbb-space-lg);
	display: flex;
	justify-content: center;
}

.tbb-pagination .nav-links,
.tbb-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbb-pagination a,
.tbb-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--tbb-border);
	border-radius: 11px;
	background: #fff;
	color: var(--tbb-text);
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
}

.tbb-pagination a:hover {
	border-color: var(--tbb-blue);
	color: var(--tbb-blue);
}

.tbb-pagination .current {
	background: var(--tbb-navy);
	border-color: var(--tbb-navy);
	color: #fff;
}

/* ==========================================================================
   Single article
   ========================================================================== */

.tbb-article {
	max-width: var(--tbb-container-narrow);
	margin-left: auto;
	margin-right: auto;
}

.tbb-article-head {
	text-align: left;
	margin-bottom: var(--tbb-space-md);
}

.tbb-article-head h1 {
	font-size: clamp(28px, 4vw, 42px);
	margin: 12px 0;
	text-wrap: balance;
}

.tbb-article-lead {
	font-size: 19px;
	color: var(--tbb-text-2);
	margin: 0 0 16px;
}

.tbb-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	padding: 14px 0;
	border-top: 1px solid var(--tbb-border);
	border-bottom: 1px solid var(--tbb-border);
	margin-bottom: var(--tbb-space-md);
	font-size: var(--tbb-size-sm);
	color: var(--tbb-text-2);
}

.tbb-article-meta .avatar {
	border-radius: 50%;
}

.tbb-article-thumb {
	margin: 0 0 var(--tbb-space-md);
	border-radius: var(--tbb-radius-md);
	overflow: hidden;
}

.tbb-article-thumb img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.tbb-article-thumb figcaption {
	font-size: var(--tbb-size-sm);
	color: var(--tbb-text-2);
	padding: 10px 4px 0;
}

/* Article body — Gutenberg-friendly */
.tbb-content {
	font-size: 18px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.tbb-content > *:first-child {
	margin-top: 0;
}

.tbb-content h2 {
	font-size: 27px;
	margin: 1.8em 0 0.6em;
	scroll-margin-top: 90px;
}

.tbb-content h3 {
	font-size: 22px;
	margin: 1.6em 0 0.5em;
	scroll-margin-top: 90px;
}

.tbb-content h4 {
	font-size: 18px;
	margin: 1.4em 0 0.5em;
}

.tbb-content p,
.tbb-content ul,
.tbb-content ol {
	margin: 0 0 1.25em;
}

.tbb-content ul,
.tbb-content ol {
	padding-left: 1.4em;
}

.tbb-content li {
	margin-bottom: 0.45em;
}

.tbb-content blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--tbb-cyan);
	background: var(--tbb-bg-soft);
	border-radius: 0 var(--tbb-radius-sm) var(--tbb-radius-sm) 0;
}

.tbb-content blockquote p:last-child {
	margin-bottom: 0;
}

.tbb-content img,
.tbb-content figure {
	border-radius: var(--tbb-radius-sm);
}

.tbb-content figcaption {
	font-size: var(--tbb-size-sm);
	color: var(--tbb-text-2);
	text-align: center;
}

.tbb-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 16px;
	display: block;
	overflow-x: auto;
}

.tbb-content th,
.tbb-content td {
	border: 1px solid var(--tbb-border);
	padding: 10px 14px;
	text-align: left;
}

.tbb-content th {
	background: var(--tbb-navy);
	color: #fff;
}

.tbb-content pre {
	background: var(--tbb-navy);
	color: #e2e8f0;
	padding: 20px;
	border-radius: var(--tbb-radius-sm);
	overflow-x: auto;
	font-size: 14.5px;
}

.tbb-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tbb-content :not(pre) > code {
	background: var(--tbb-bg-soft);
	padding: 2px 7px;
	border-radius: 6px;
	font-size: 0.9em;
}

.tbb-content .wp-block-image,
.tbb-content .wp-block-embed,
.tbb-content .wp-block-table,
.tbb-content .wp-block-quote {
	margin-left: 0;
	margin-right: 0;
}

.tbb-content iframe,
.tbb-content embed,
.tbb-content object {
	max-width: 100%;
}

/* Table of contents */
.tbb-toc {
	border: 1px solid var(--tbb-border);
	border-radius: var(--tbb-radius-md);
	background: var(--tbb-bg-soft);
	padding: 20px 22px;
	margin: 0 0 var(--tbb-space-md);
}

.tbb-toc-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--tbb-navy);
}

.tbb-toc-title::before {
	content: "\f02d";
	font-family: var(--awesome);
	font-weight: 900;
	color: var(--tbb-blue);
}

.tbb-toc ol {
	margin: 0;
	padding-left: 20px;
	font-size: 15.5px;
}

.tbb-toc li {
	margin-bottom: 6px;
}

.tbb-toc a {
	text-decoration: none;
	color: var(--tbb-text);
}

.tbb-toc a:hover {
	color: var(--tbb-blue);
}

.tbb-toc .tbb-toc-h3 {
	margin-left: 14px;
	font-size: 14.5px;
}

/* Tags / cats */
.tbb-tax-row {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: var(--tbb-space-md);
}

.tbb-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--tbb-bg-soft);
	border: 1px solid var(--tbb-border);
	color: var(--tbb-text);
	font-size: var(--tbb-size-sm);
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	text-decoration: none;
}

.tbb-chip::before {
	font-family: var(--awesome);
	font-weight: 900;
	font-size: 12px;
	color: var(--tbb-text-2);
}

.tbb-chip-cat::before {
	content: "\f07b";
}

.tbb-chip-tag::before {
	content: "\f02b";
}

a.tbb-chip:hover {
	border-color: var(--tbb-blue);
	color: var(--tbb-blue);
}

/* Author box */
.tbb-author-box {
	display: flex;
	gap: 16px;
	border: 1px solid var(--tbb-border);
	border-radius: var(--tbb-radius-md);
	padding: 20px;
	margin-top: var(--tbb-space-md);
	background: #fff;
}

.tbb-author-box img {
	border-radius: 50%;
	flex-shrink: 0;
}

.tbb-author-box h3 {
	margin: 0 0 6px;
	font-size: 17px;
}

.tbb-author-box p {
	margin: 0;
	font-size: 15px;
	color: var(--tbb-text-2);
}

/* Related */
.tbb-related {
	max-width: var(--tbb-container);
	margin: var(--tbb-space-xl) auto 0;
}

/* Comments */
.tbb-comments {
	max-width: var(--tbb-container-narrow);
	margin: var(--tbb-space-lg) auto 0;
}

.tbb-comments .comment-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.tbb-comments .comment-body {
	border: 1px solid var(--tbb-border);
	border-radius: var(--tbb-radius-sm);
	padding: 16px;
	margin-bottom: 14px;
}

.tbb-comments .comment-form input,
.tbb-comments .comment-form textarea {
	width: 100%;
	border: 1px solid var(--tbb-border);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 16px;
	font-family: inherit;
}

.tbb-comments .comment-form .submit {
	background: var(--tbb-navy);
	color: #fff;
	border: 0;
	border-radius: 11px;
	padding: 13px 26px;
	font-weight: 700;
	cursor: pointer;
	width: auto;
}

.tbb-comments .comment-form .submit:hover {
	background: var(--tbb-blue);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tbb-footer {
	background: var(--tbb-footer-bg);
	color: #cbd5e1;
	margin-top: var(--tbb-space-2xl);
}

.tbb-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-top: var(--tbb-space-xl);
	padding-bottom: var(--tbb-space-lg);
}

.tbb-footer-brand p {
	font-size: 15px;
	color: #94a3b8;
}

.tbb-footer h3 {
	color: #fff;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin: 0 0 14px;
}

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

.tbb-footer li {
	margin-bottom: 4px;
}

.tbb-footer a {
	color: #cbd5e1;
	text-decoration: none;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 5px 0;
}

.tbb-footer a::before {
	font-family: var(--awesome);
	font-weight: 900;
	font-size: 13px;
	color: var(--tbb-cyan);
	content: "\f061";
}

.tbb-footer a:hover {
	color: #fff;
}

/* Per-link footer icons */
.tbb-footer a.i_home::before {
	content: "\f015";
}

.tbb-footer a.i_tradebit::before {
	content: "\f08e";
}

.tbb-footer a.i_privacy::before {
	content: "\f007";
}

.tbb-footer a.i_search::before {
	content: "\f002";
}

.tbb-footer a.i_globe::before {
	content: "\f0ac";
}

.tbb-footer-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 18px;
	padding-bottom: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	justify-content: space-between;
	font-size: var(--tbb-size-sm);
	color: #94a3b8;
}

.tbb-footer-bar a {
	color: #cbd5e1;
}

.tbb-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbb-footer-legal a::before {
	content: none;
}

/* Back to top */
.tbb-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	border: 0;
	background: var(--tbb-navy);
	color: #fff;
	cursor: pointer;
	display: none;
	z-index: 90;
	box-shadow: var(--tbb-shadow-md);
	font-size: 17px;
}

.tbb-to-top.show {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tbb-to-top::before {
	content: "\f077";
	font-family: var(--awesome);
	font-weight: 900;
}

/* 404 */
.tbb-404 {
	text-align: center;
	padding: var(--tbb-space-2xl) 0;
}

.tbb-404 h1 {
	font-size: clamp(60px, 12vw, 120px);
	margin: 0;
	background: linear-gradient(135deg, var(--tbb-blue), var(--tbb-cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Page template */
.tbb-page {
	max-width: var(--tbb-container-narrow);
	margin: 0 auto;
}

.tbb-page h1 {
	font-size: clamp(28px, 4vw, 40px);
	margin: 0 0 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
	.tbb-nav-desktop {
		display: none;
	}

	.tbb-header-cta {
		display: none;
	}

	.tbb-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tbb-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.tbb-hero {
		grid-template-columns: 1fr;
	}

	.tbb-hero-media {
		min-height: 240px;
	}

	.tbb-list {
		grid-template-columns: 1fr;
	}

	.tbb-cta-band {
		grid-template-columns: 1fr;
	}

	.tbb-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1021px) {
	.tbb-menu-toggle {
		display: none;
	}

	.tbb-mobile-panel {
		display: none !important;
	}
}

@media (max-width: 640px) {
	.tbb-container {
		padding-left: var(--tbb-gutter-mobile);
		padding-right: var(--tbb-gutter-mobile);
	}

	.tbb-header-inner {
		gap: 10px;
	}

	.tbb-brand-tag {
		display: none;
	}

	.tbb-brand-name {
		font-size: 17px;
	}

	.tbb-lang-btn .tbb-lang-current {
		display: none;
	}

	.tbb-grid,
	.tbb-grid-4 {
		grid-template-columns: 1fr;
	}

	.tbb-card-h {
		flex-direction: column;
	}

	.tbb-card-h-media {
		width: 100%;
		flex-basis: auto;
	}

	.tbb-footer-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.tbb-content {
		font-size: 17px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* Print */
@media print {
	.tbb-header,
	.tbb-footer,
	.tbb-cta-band,
	.tbb-cta-inline,
	.tbb-related,
	.tbb-to-top,
	.tbb-mobile-panel {
		display: none !important;
	}
}
