/*
Theme Name: Finbaa
Theme URI: https://finbaa.com
Author: Finbaa
Description: "The Finbaa Journal" — clean editorial blog theme: photo hero with search and topic pills, featured story, popular topics, latest articles, goal cards, most-read list, newsletter and a navy footer.
Version: 3.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: finbaa
*/

/* ══ Tokens ══ */
:root {
	--blue: #0B5CF5;
	--blue-dk: #0847C4;
	--blue-soft: #EAF2FE;
	--heading: #0B1B4F;
	--text: #4A5578;
	--muted: #6B7591;
	--faint: #8F98B0;
	--line: #E4E9F2;
	--line-soft: #EEF1F7;
	--bg: #FFFFFF;
	--bg-soft: #F6F9FE;
	--footer: #0A1F4E;

	--tint-blue: #EAF2FE;
	--tint-peach: #FFF0E8;
	--tint-amber: #FFF4E6;
	--tint-green: #E9F7EF;
	--tint-violet: #F1ECFE;

	/* names used by the article / comment styles */
	--navy: var(--blue);
	--navy-ink: var(--heading);
	--ink: var(--heading);
	--ink-mid: var(--text);
	--ink-muted: var(--muted);
	--ink-faint: var(--faint);
	--link: var(--blue);
	--hero-navy: var(--heading);
	--hero-sub: var(--text);
	--cta-1: var(--blue);
	--cta-2: var(--blue);
	--t-blue: var(--blue-soft);
	--orange: #EE730E;
	--green: #16A34A;

	--r-sm: 8px;
	--r: 12px;
	--r-lg: 16px;
	--shadow-1: 0 1px 2px rgba(16, 24, 64, .04), 0 4px 14px rgba(16, 24, 64, .05);
	--shadow-2: 0 2px 6px rgba(16, 24, 64, .05), 0 14px 32px -10px rgba(16, 24, 64, .16);
	--topbar-h: 76px;
	--font-head: 'Inter', 'Segoe UI', system-ui, sans-serif;
	--font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ══ Base ══ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 20px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.25;
	color: var(--heading);
	margin: 0 0 .5em;
}
a { color: var(--blue); text-decoration: none; transition: color .18s; }
a:hover { color: var(--blue-dk); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: #CFE0FE; color: var(--heading); }
svg { flex-shrink: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-2);
}

.fb-wrap { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px)  { .fb-wrap { padding: 0 28px; } }
@media (min-width: 1100px) { .fb-wrap { padding: 0 40px; } }

/* ══ Buttons & links ══ */
.fb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 6px; border: 0; cursor: pointer;
	font-size: 14.5px; font-weight: 600; line-height: 1.2; color: #fff;
	background: var(--blue);
	box-shadow: 0 6px 16px -6px rgba(11, 92, 245, .55);
	transition: background .2s, transform .2s var(--ease), box-shadow .2s;
	white-space: nowrap;
}
.fb-btn:hover { color: #fff; background: var(--blue-dk); transform: translateY(-1px); }
.fb-btn:active { transform: scale(.98); }
.fb-btn svg { width: 17px; height: 17px; }
.fb-btn--lg { padding: 17px 34px; font-size: 16px; border-radius: 8px; }

.fb-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--blue); white-space: nowrap; }
.fb-link svg { width: 15px; height: 15px; transition: transform .2s; }
.fb-link:hover svg { transform: translateX(3px); }

.fb-chev { color: var(--heading); display: flex; margin-left: auto; transition: transform .2s; }
.fb-chev svg { width: 18px; height: 18px; }

/* ══ Reading progress ══ */
.fb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 260; pointer-events: none; }
.fb-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--blue); }
.admin-bar .fb-progress { top: 32px; }

/* ══ Header ══ */
.fb-topbar {
	position: sticky; top: 0; z-index: 200;
	background: #fff;
	border-bottom: 1px solid var(--line-soft);
	transition: box-shadow .2s;
}
.fb-scrolled .fb-topbar { box-shadow: 0 6px 24px -14px rgba(16, 24, 64, .25); }
.admin-bar .fb-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .fb-topbar { top: 46px; } .admin-bar .fb-progress { top: 46px; } }

.fb-topbar-inner {
	max-width: 1380px; margin: 0 auto; height: var(--topbar-h);
	display: flex; align-items: center; gap: 28px; padding: 0 16px;
}
@media (min-width: 760px)  { .fb-topbar-inner { padding: 0 28px; } }
@media (min-width: 1100px) { .fb-topbar-inner { padding: 0 40px; } }

.fb-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.fb-logo { height: 46px; width: auto; object-fit: contain; }

.fb-hamburger, .fb-icon-btn, .fb-nav-close {
	width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	background: transparent; color: var(--heading);
	transition: background .2s, color .2s;
}
.fb-hamburger:hover, .fb-icon-btn:hover, .fb-nav-close:hover { background: var(--bg-soft); color: var(--blue); }
.fb-icon-btn svg { width: 22px; height: 22px; }
.fb-hamburger { display: none; margin-left: -8px; }

.fb-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.fb-nav-head, .fb-nav-cta { display: none; }
.fb-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.fb-menu li { position: relative; }
.fb-menu a {
	position: relative; display: block; padding: 10px 12px;
	font-size: 14.5px; font-weight: 500; color: var(--heading); white-space: nowrap;
}
.fb-menu a:hover { color: var(--blue); }
.fb-menu .current-menu-item > a, .fb-menu .current-cat > a, .fb-menu .is-current > a { color: var(--blue); font-weight: 600; }
.fb-menu .current-menu-item > a::after, .fb-menu .current-cat > a::after, .fb-menu .is-current > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue);
}
.fb-menu .sub-menu {
	list-style: none; margin: 8px 0 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: var(--r); box-shadow: var(--shadow-2); border: 1px solid var(--line-soft);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.fb-menu li:hover > .sub-menu, .fb-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fb-menu .sub-menu a { border-radius: 8px; }
.fb-menu .sub-menu a::after { display: none; }
.fb-menu .sub-menu a:hover { background: var(--bg-soft); }

.fb-top-right { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }

.fb-search-panel { border-top: 1px solid var(--line-soft); padding: 16px 0 18px; background: #fff; }
.fb-search-panel[hidden] { display: none; }
.fb-search-panel-inner { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.fb-scrim { position: fixed; inset: 0; background: rgba(11, 27, 79, .35); backdrop-filter: blur(3px); z-index: 290; }
.fb-scrim[hidden] { display: none; }

@media (max-width: 1180px) {
	.fb-topbar-inner { gap: 16px; }
	.fb-menu a { padding: 10px 8px; font-size: 14px; }
	.fb-menu .is-current > a::after, .fb-menu .current-menu-item > a::after { left: 8px; right: 8px; }
}
@media (max-width: 1020px) {
	.fb-hamburger { display: flex; }
	.fb-nav {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 300;
		width: min(320px, 86vw); display: flex; flex-direction: column; gap: 18px; justify-content: flex-start;
		background: #fff; padding: 18px;
		transform: translateX(-104%); transition: transform .3s var(--ease);
		box-shadow: 20px 0 40px rgba(11, 27, 79, .18); overflow-y: auto;
	}
	.fb-menu-open .fb-nav { transform: none; }
	.fb-nav-head { display: flex; align-items: center; justify-content: space-between; }
	.fb-nav-close { font-size: 26px; line-height: 1; }
	.fb-nav-cta { display: inline-flex; margin-top: auto; }
	.fb-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.fb-menu a { padding: 12px 14px; font-size: 15px; border-radius: 8px; }
	.fb-menu a:hover { background: var(--bg-soft); }
	.fb-menu .is-current > a, .fb-menu .current-menu-item > a { background: var(--blue-soft); }
	.fb-menu .is-current > a::after, .fb-menu .current-menu-item > a::after { display: none; }
	.fb-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; margin: 0; }
}
@media (max-width: 560px) {
	:root { --topbar-h: 64px; }
	.fb-top-cta { display: none; }
	.fb-logo { height: 36px; }
	.fb-top-right { gap: 6px; }
}

/* ══ Hero ══ */
.fb-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(90deg, #F2F8FE 0%, #EDF5FE 45%, #E6F0FC 100%);
	border-bottom: 1px solid var(--line-soft);
}
.fb-hero-art {
	position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 54%;
	background-repeat: no-repeat; background-size: cover; background-position: right center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%);
	mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
.fb-hero-inner { position: relative; }
.fb-hero-copy { max-width: 580px; padding: 40px 0 44px; display: flex; flex-direction: column; align-items: flex-start; }
.fb-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.fb-hero-title {
	margin: 0; font-size: clamp(34px, 3.75vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -.045em; color: var(--heading);
}
.fb-hero-title span { color: var(--blue); }
.fb-hero-sub { margin: 16px 0 0; font-size: clamp(16px, 1.45vw, 18.5px); line-height: 1.5; color: var(--text); max-width: 46ch; }
.fb-hero-search { width: 100%; max-width: 520px; margin-top: 26px; }
.fb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fb-pill {
	padding: 9px 16px; border-radius: 999px; background: #fff;
	border: 1px solid var(--line); color: var(--heading); font-size: 13.5px; font-weight: 500;
	transition: border-color .2s, color .2s, background .2s;
}
.fb-pill:hover { border-color: var(--blue); color: var(--blue); }
.fb-pill.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (min-width: 1100px) { .fb-hero-copy { padding: 44px 0 46px; } }
@media (max-width: 900px) {
	.fb-hero { display: flex; flex-direction: column; }
	.fb-hero-art {
		position: relative; order: 2; width: 100%; height: 240px; z-index: 0;
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
		mask-image: linear-gradient(180deg, transparent 0, #000 22%);
	}
	.fb-hero-copy { max-width: 620px; padding-bottom: 8px; }
}
@media (max-width: 520px) { .fb-hero-art { height: 190px; } }

.fb-hero--compact .fb-hero-copy { padding: 40px 0; max-width: 720px; }
.fb-hero--compact .fb-hero-title { font-size: clamp(30px, 3.6vw, 44px); }
.fb-hero--compact .fb-hero-search { margin-top: 22px; }
.fb-hero--center .fb-hero-copy { margin: 0 auto; align-items: center; text-align: center; }
.fb-hero--center .fb-btn { margin-top: 20px; }
.fb-404 { margin: 0 0 8px; font-size: clamp(72px, 10vw, 120px); font-weight: 900; line-height: 1; color: var(--blue); letter-spacing: -.05em; }

/* ══ Search field ══ */
.fb-search {
	display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid #D6DEEB; border-radius: 8px; padding: 4px 4px 4px 18px;
	box-shadow: 0 4px 18px -8px rgba(16, 24, 64, .12);
	transition: border-color .2s, box-shadow .2s;
}
.fb-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 92, 245, .15); }
.fb-search-ic { display: flex; color: var(--heading); }
.fb-search-ic svg { width: 20px; height: 20px; }
.fb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--heading); padding: 12px 0; }
.fb-search input::placeholder { color: var(--faint); }
.fb-search input::-webkit-search-cancel-button { display: none; }
.fb-search button {
	width: 48px; height: 46px; border: 0; cursor: pointer; border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
	color: #fff; background: var(--blue); transition: background .2s;
}
.fb-search button svg { width: 20px; height: 20px; }
.fb-search button:hover { background: var(--blue-dk); }

/* ══ Section labels ══ */
.fb-block { margin-top: 36px; }
.fb-label { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); }
.fb-block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fb-block-head .fb-label { margin: 0; }
.fb-h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.fb-note { color: var(--muted); font-size: 14.5px; }

/* ══ Home layout ══ */
.fb-home-top { display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .fb-home-top { grid-template-columns: minmax(0, 1fr) 320px; } }
.fb-home-bottom { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .fb-home-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Chips */
.fb-chip {
	position: relative; z-index: 2; align-self: flex-start;
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	background: #EEF2F8; color: var(--text);
	font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5;
}
.fb-chip:hover { background: var(--blue-soft); color: var(--blue); }

/* Meta line */
.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 12.5px; }
.fb-meta-author { display: inline-flex; align-items: center; gap: 8px; }
.fb-meta-author img { border-radius: 50%; width: 26px; height: 26px; }
.fb-meta-author strong { font-weight: 500; color: var(--heading); }
.fb-sep { width: 1px; height: 12px; background: var(--line); }

/* ══ Featured story ══ */
.fb-feature {
	display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr);
	padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
	box-shadow: var(--shadow-1);
}
@media (min-width: 700px) { .fb-feature { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); align-items: center; } }
.fb-feature-media { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10.4; background: var(--blue-soft); }
.fb-feature-media a, .fb-feature-media img { display: block; width: 100%; height: 100%; }
.fb-feature-media img { object-fit: cover; transition: transform .6s var(--ease); }
.fb-feature:hover .fb-feature-media img { transform: scale(1.04); }
.fb-flag {
	position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
	background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.fb-feature-body { display: flex; flex-direction: column; gap: 12px; padding: 6px 10px 6px 0; }
@media (max-width: 699px) { .fb-feature-body { padding: 0 6px 8px; } }
.fb-feature-title { margin: 0; font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; line-height: 1.22; letter-spacing: -.03em; }
.fb-feature-title a { color: var(--heading); }
.fb-feature-title a:hover { color: var(--blue); }
.fb-feature-excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.fb-feature .fb-meta-author img { width: 32px; height: 32px; }
.fb-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--blue); }
.fb-more svg { width: 17px; height: 17px; transition: transform .2s; }
.fb-more:hover svg { transform: translateX(3px); }

/* ══ Popular topics ══ */
.fb-topics { display: flex; flex-direction: column; gap: 12px; }
.fb-topic, .fb-goal {
	display: flex; align-items: center; gap: 16px;
	padding: 14px 16px 14px 14px; border-radius: var(--r);
	background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
	transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.fb-topic:hover, .fb-goal:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #D3DDF0; }
.fb-topic:hover .fb-chev, .fb-goal:hover .fb-chev { transform: translateX(3px); color: var(--blue); }
.fb-tile {
	width: 60px; height: 60px; flex-shrink: 0; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
}
.fb-tile svg { width: 34px; height: 34px; }
.fb-topic-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fb-topic-text strong { font-size: 15px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.fb-topic-text span { font-size: 13px; line-height: 1.45; color: var(--muted); }

.tint-blue .fb-tile, .fb-tile.tint-blue { background: var(--tint-blue); }
.tint-peach .fb-tile, .fb-tile.tint-peach { background: var(--tint-peach); }
.tint-amber .fb-tile, .fb-tile.tint-amber { background: var(--tint-amber); }
.tint-green .fb-tile, .fb-tile.tint-green { background: var(--tint-green); }
.tint-violet .fb-tile, .fb-tile.tint-violet { background: var(--tint-violet); }

/* ══ Post cards ══ */
.fb-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.fb-grid--wide { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fb-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-1);
	transition: transform .25s var(--ease), box-shadow .25s;
}
.fb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.fb-card-media { display: block; aspect-ratio: 16 / 8.6; overflow: hidden; background: var(--blue-soft); }
.fb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fb-card:hover .fb-card-media img { transform: scale(1.05); }
.fb-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 0 14px 16px; }
.fb-chip--tab { margin-top: -11px; background: #fff; border: 1px solid var(--line); font-size: 10px; }
.fb-card-body > .fb-card-title:first-child { margin-top: 16px; }
.fb-card-title { margin: 2px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.fb-card-title a { color: var(--heading); }
.fb-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fb-card:hover .fb-card-title a { color: var(--blue); }
.fb-card-excerpt {
	margin: 0; font-size: 14px; line-height: 1.6; color: var(--text);
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.fb-card .fb-meta { margin-top: auto; padding-top: 4px; font-size: 11.5px; gap: 6px 10px; }
.fb-card .fb-meta-author img { width: 24px; height: 24px; }

/* ══ CTA band ══ */
.fb-cta {
	position: relative; overflow: hidden;
	margin-top: 36px; padding: 22px 26px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px;
	border-radius: var(--r-lg); border: 1px solid #DCE8FB;
	background: linear-gradient(90deg, #E2EEFD 0%, #EDF4FE 55%, #E8F1FD 100%);
}
.fb-cta-art { width: 170px; height: auto; margin: -4px 0 -10px; }
.fb-cta-text { flex: 1 1 340px; }
.fb-cta h2 { margin: 0 0 6px; font-size: clamp(22px, 2.3vw, 28px); font-weight: 800; letter-spacing: -.035em; color: #0A1A6B; }
.fb-cta p { margin: 0; font-size: clamp(15px, 1.4vw, 17px); color: var(--text); }
@media (min-width: 900px) { .fb-cta { flex-wrap: nowrap; padding: 6px 22px 6px 26px; } .fb-cta .fb-btn { margin-left: auto; } }
@media (max-width: 600px) { .fb-cta-art { width: 130px; } .fb-cta .fb-btn { width: 100%; } }

/* ══ Explore by goal ══ */
.fb-goals { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .fb-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fb-goals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fb-goal { padding: 16px 18px 16px 16px; }
.fb-goal.tint-blue { background: #F4F8FF; border-color: #E1EBFB; }
.fb-goal.tint-peach { background: #FFF7F2; border-color: #FBE7DA; }
.fb-goal.tint-green { background: #F3FAF6; border-color: #DDF0E4; }
.fb-goal.tint-violet { background: #F8F5FF; border-color: #E8E1FA; }
.fb-goal .fb-tile { width: 56px; height: 56px; }
.fb-goal.tint-blue .fb-tile { background: #E1ECFE; }
.fb-goal.tint-peach .fb-tile { background: #FFE6D6; }
.fb-goal.tint-green .fb-tile { background: #D9F1E3; }
.fb-goal.tint-violet .fb-tile { background: #E8DEFD; }

/* ══ Most read ══ */
.fb-rank { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-1); overflow: hidden; }
.fb-rank li + li { border-top: 1px solid var(--line-soft); }
.fb-rank a { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 14px; color: var(--heading); transition: background .2s; }
.fb-rank a:hover { background: var(--bg-soft); }
.fb-rank a:hover .fb-rank-title { color: var(--blue); }
.fb-rank-n { width: 22px; flex-shrink: 0; text-align: center; font-size: 18px; font-weight: 500; color: var(--heading); }
.fb-rank-img { width: 46px; height: 38px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: var(--blue-soft); }
.fb-rank-img img { width: 100%; height: 100%; object-fit: cover; }
.fb-rank-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; transition: color .2s; }
.fb-rank-time { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.fb-rank .fb-chev { margin-left: 8px; }
.fb-rank .fb-chev svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .fb-rank-time { display: none; } }

/* ══ Newsletter ══ */
.fb-news {
	position: relative; overflow: hidden; margin-top: 36px;
	padding: 30px 28px 26px; border-radius: var(--r-lg);
	border: 1px solid #DCE8FB;
	background: linear-gradient(135deg, #EAF2FE 0%, #F5F9FF 60%, #EEF4FE 100%);
}
@media (min-width: 900px) { .fb-news { margin-top: 30px; } }
.fb-news-plane { position: absolute; right: 18px; top: 16px; width: 92px; pointer-events: none; }
.fb-news h2 { margin: 0 0 10px; font-size: clamp(22px, 2.3vw, 27px); font-weight: 800; letter-spacing: -.035em; color: #0A1A6B; padding-right: 90px; }
.fb-news > p { margin: 0 0 22px; font-size: 15px; color: var(--text); max-width: 46ch; }
.fb-news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-news-field {
	flex: 1 1 240px; display: flex; align-items: center; gap: 10px;
	padding: 0 16px; border-radius: 6px; border: 1px solid #D6DEEB; background: #fff; color: var(--muted);
}
.fb-news-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 92, 245, .15); }
.fb-news-field svg { width: 19px; height: 19px; }
.fb-news-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 0; font-size: 15px; color: var(--heading); }
.fb-news-field input::placeholder { color: var(--faint); }
.fb-news-form .fb-btn { padding: 13px 28px; font-size: 15px; }
@media (max-width: 520px) { .fb-news-form .fb-btn { width: 100%; } }
.fb-news-perks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.fb-news-perks li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--heading); }
.fb-news-perks svg { width: 22px; height: 22px; color: var(--blue); }
.fb-news-msg { margin: -8px 0 14px; padding: 10px 14px; border-radius: 8px; font-size: 14px; background: #FDECEC; color: #B42318; }
.fb-news-msg.is-ok { background: #E7F7EE; color: #127A3E; }

/* ══ Empty ══ */
.fb-empty { text-align: center; padding: 48px 16px; border-radius: var(--r-lg); background: var(--bg-soft); }

/* ══ Pagination ══ */
.fb-pagination { margin-top: 40px; }
.fb-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fb-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 14px; border-radius: 6px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line); background: #fff; color: var(--heading);
	font-weight: 600; font-size: 14px; transition: border-color .2s, color .2s, background .2s;
}
.fb-pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.fb-pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ══ Footer ══ */
.ft { margin-top: 56px; padding: 44px 0 36px; background: linear-gradient(180deg, #0B2256 0%, #081B47 100%); color: #C9D3EA; }
.ft-grid { display: grid; gap: 32px 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ft-brand, .ft-follow { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
	.ft-grid { grid-template-columns: 1.55fr .75fr .9fr .9fr 1.45fr; gap: 0; }
	.ft-brand, .ft-follow { grid-column: auto; }
	.ft-col { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
	.ft-col + .ft-col { margin-left: 0; }
	.ft-brand { padding-right: 40px; }
	.ft-follow { padding-left: 32px; display: flex; flex-direction: column; }
}
.ft-brand .fb-logo { height: 48px; }
.ft-brand p { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: #D5DCEE; max-width: 40ch; }
.ft h3 { margin: 4px 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: #fff; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ft-col a { font-size: 13.5px; color: #C9D3EA; }
.ft-col a:hover { color: #fff; }
.ft-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-social a {
	width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
	transition: background .2s, transform .2s var(--ease);
}
.ft-social a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.ft-social svg { width: 18px; height: 18px; }
.ft-copy { margin: 26px 0 0; font-size: 12.5px; color: #C9D3EA; }
@media (min-width: 1000px) { .ft-copy { margin-top: auto; padding-top: 26px; } }

/* ══ Entrance motion ══ */
@media (prefers-reduced-motion: no-preference) {
	.fb-hero-copy > *, .fb-single-head > * { animation: fb-rise .6s var(--ease) both; }
	.fb-hero-copy > *:nth-child(2), .fb-single-head > *:nth-child(2) { animation-delay: .05s; }
	.fb-hero-copy > *:nth-child(3), .fb-single-head > *:nth-child(3) { animation-delay: .1s; }
	.fb-hero-copy > *:nth-child(4), .fb-single-head > *:nth-child(4) { animation-delay: .15s; }
	.fb-hero-copy > *:nth-child(5) { animation-delay: .2s; }
}
@keyframes fb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ══ Single post ══ */
.fb-single-head { max-width: 860px; padding-top: 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (min-width: 760px) { .fb-single-head { padding-top: 64px; } }
.fb-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.fb-crumbs a { color: var(--link); padding: 4px 12px; border-radius: 999px; background: var(--t-blue); }
.fb-crumbs a:hover { background: var(--navy); color: #fff; }
.fb-crumbs span { align-self: center; }
.fb-single-title { margin: 0; font-size: clamp(30px, 4.8vw, 54px); line-height: 1.1; letter-spacing: -.035em; color: var(--navy-ink); }
.fb-single-lead { margin: 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-muted); max-width: 60ch; }
.fb-single-head .fb-meta { justify-content: center; }

.fb-single-cover { max-width: 1160px; margin: 40px auto 0; }
.fb-single-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }

.fb-single-body { max-width: 900px; margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1100px) {
	.fb-single-body { max-width: 980px; grid-template-columns: 56px minmax(0, 1fr); gap: 48px; }
	.fb-single-body--page { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
}

.fb-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; order: 2; padding-top: 24px; border-top: 1px solid var(--line); }
.fb-rail-l { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-right: 6px; }
@media (min-width: 1100px) {
	.fb-rail { order: 0; flex-direction: column; align-self: start; position: sticky; top: calc(var(--topbar-h) + 32px); padding-top: 0; border-top: 0; }
	.fb-rail-l { margin: 0 0 4px; font-size: 10px; }
}
.fb-share-btn {
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	background: var(--bg-soft); color: var(--ink-mid);
	transition: background .2s, color .2s, transform .2s var(--ease);
}
.fb-share-btn svg { width: 18px; height: 18px; }
.fb-share-btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.fb-copy.is-done { background: var(--green); color: #fff; }

/* ══ Prose ══ */
.fb-prose { min-width: 0; font-size: 18px; line-height: 1.8; color: #2E3656; }
.fb-prose > *:first-child { margin-top: 0; }
.fb-prose p, .fb-prose ul, .fb-prose ol, .fb-prose blockquote, .fb-prose figure, .fb-prose table, .fb-prose pre, .fb-prose .wp-block-group { margin: 0 0 1.4em; }
.fb-prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.8em 0 .6em; color: var(--navy-ink); }
.fb-prose h3 { font-size: 22px; margin: 1.6em 0 .5em; }
.fb-prose h4 { font-size: 19px; margin: 1.4em 0 .5em; }
.fb-prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(37, 64, 216, .25); text-underline-offset: 4px; }
.fb-prose a:hover { text-decoration-color: var(--orange); }
.fb-prose ul, .fb-prose ol { padding-left: 1.4em; }
.fb-prose li { margin-bottom: .5em; padding-left: .2em; }
.fb-prose li::marker { color: var(--orange); font-weight: 700; }
.fb-prose strong { color: var(--navy-ink); font-weight: 650; }
.fb-prose blockquote {
	position: relative; padding: 24px 28px 24px 32px; border-radius: var(--r);
	background: linear-gradient(115deg, #E4EEFD, #F2F7FF); color: var(--hero-navy);
	font-family: var(--font-head); font-size: 20px; font-weight: 500; line-height: 1.55; letter-spacing: -.01em;
}
.fb-prose blockquote::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--orange); }
.fb-prose blockquote p:last-child { margin-bottom: 0; }
.fb-prose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--hero-sub); }
.fb-prose img { border-radius: var(--r); }
.fb-prose figcaption { font-size: 13.5px; color: var(--ink-faint); text-align: center; margin-top: 10px; }
.fb-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.fb-prose .wp-block-table { overflow-x: auto; }
@media (max-width: 600px) { .fb-prose table { display: block; overflow-x: auto; } }
.fb-prose th, .fb-prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.fb-prose tr:last-child td { border-bottom: 0; }
.fb-prose th { background: var(--bg-soft); color: var(--navy-ink); font-family: var(--font-head); font-weight: 600; }
.fb-prose code { background: var(--t-blue); color: var(--hero-navy); padding: 2px 7px; border-radius: 6px; font-size: .88em; }
.fb-prose pre { background: var(--navy-ink); color: #E6ECFD; padding: 20px; border-radius: var(--r); overflow-x: auto; font-size: 14px; }
.fb-prose pre code { background: none; color: inherit; padding: 0; }
.fb-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.fb-prose .wp-block-button__link { background: linear-gradient(120deg, var(--cta-1), var(--cta-2)); border-radius: 999px; text-decoration: none; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px; padding: 13px 26px; }
.fb-prose .has-drop-cap:not(:focus)::first-letter { font-family: var(--font-head); color: var(--hero-navy); font-weight: 700; }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 1099px) { .alignwide { margin-left: 0; margin-right: 0; } }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.fb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.fb-prose .fb-tags a { text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-mid); font-size: 13.5px; font-weight: 500; }
.fb-prose .fb-tags a:hover { background: var(--t-blue); color: var(--navy); }

.fb-author {
	display: flex; gap: 18px; align-items: flex-start;
	margin-top: 36px; padding: 24px; border-radius: var(--r-lg); background: var(--bg-soft);
}
.fb-author img { border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 4px #fff; }
.fb-author-k { display: block; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.fb-author strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink); margin: 2px 0 4px; }
.fb-author p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }


/* ══ Comments ══ */
.fb-comments { max-width: 820px; margin: 56px auto 0; padding: 28px 22px; border-radius: var(--r-lg); background: var(--bg-soft); }
@media (min-width: 760px) { .fb-comments { padding: 40px 44px; } }
.fb-section-title { font-size: 22px; margin: 0 0 18px; }
.fb-comment-list, .fb-comment-list .children { list-style: none; margin: 0; padding: 0; }
.fb-comment-list .children { padding-left: 20px; margin-left: 20px; border-left: 2px solid var(--line); }
.fb-comment-body { padding: 18px 20px; margin-bottom: 12px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); }
.fb-comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fb-comment-head img { border-radius: 50%; }
.fb-comment-head strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 14.5px; }
.fb-comment-head strong a { color: inherit; }
.fb-comment-head time { font-size: 12.5px; color: var(--ink-faint); }
.fb-comment-text { font-size: 15px; color: var(--ink-mid); }
.fb-comment-text p { margin: 0 0 .6em; }
.comment-reply-link { font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.comment-respond { margin-top: 28px; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--ink-muted); }
.comment-form label { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 13px 16px; border: 0; border-radius: var(--r-sm); background: #fff; color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--orange); }
.comment-form p { margin: 0 0 16px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--font-body); font-weight: 400; color: var(--ink-muted); }


/* WordPress core classes */
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--ink-faint); }
.sticky .fb-card-title a::before { content: "📌 "; }
.bypostauthor > .fb-comment-body .fb-comment-head strong::after { content: " · Author"; color: var(--orange); font-weight: 500; }
