/* FBF Builder: base front-end styles. Per-page styles live in uploads/fbf/css/post-{id}.css */

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

/* ---------- Structure ---------- */

.fbf-section {
	position: relative;
	display: block;
}

.fbf-section > .fbf-container {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	margin-inline: auto;
}

.fbf-section-boxed > .fbf-container {
	max-width: 1140px;
}

.fbf-section-full > .fbf-container {
	max-width: none;
}

/* Inner sections fill their column. */
.fbf-section-inner {
	width: 100%;
}
.fbf-section-inner > .fbf-container {
	max-width: none;
}

.fbf-overlay {
	position: absolute;
	inset: 0;
	opacity: 0.5;
	pointer-events: none;
}

.fbf-column {
	position: relative;
	display: flex;
	min-width: 0;
	padding: 10px;
}

.fbf-column-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.fbf-widget {
	position: relative;
	min-width: 0;
}

@media (max-width: 767px) {
	.fbf-reverse-mobile > .fbf-container {
		flex-direction: column-reverse;
	}
}

/* ---------- Visibility ---------- */

@media (min-width: 1025px) {
	body:not(.fbf-editing) .fbf-hidden-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	body:not(.fbf-editing) .fbf-hidden-tablet { display: none !important; }
}
@media (max-width: 767px) {
	body:not(.fbf-editing) .fbf-hidden-mobile { display: none !important; }
}

/* ---------- Motion ---------- */

.fbf-js body:not(.fbf-editing) .fbf-anim:not(.fbf-in) {
	opacity: 0;
}
.fbf-js body:not(.fbf-editing) .fbf-anim-fade-up:not(.fbf-in) { transform: translateY(40px); }
.fbf-js body:not(.fbf-editing) .fbf-anim-fade-down:not(.fbf-in) { transform: translateY(-40px); }
.fbf-js body:not(.fbf-editing) .fbf-anim-fade-left:not(.fbf-in) { transform: translateX(40px); }
.fbf-js body:not(.fbf-editing) .fbf-anim-fade-right:not(.fbf-in) { transform: translateX(-40px); }
.fbf-js body:not(.fbf-editing) .fbf-anim-zoom-in:not(.fbf-in) { transform: scale(0.85); }
.fbf-anim {
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
	.fbf-js body .fbf-anim { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Icons ---------- */

.fbf-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	vertical-align: middle;
}

/* ---------- Heading / Text ---------- */

.fbf-heading-title {
	margin: 0;
	padding: 0;
}
.fbf-heading-title a {
	color: inherit;
	text-decoration: none;
}

.fbf-text-editor > :first-child { margin-top: 0; }
.fbf-text-editor > :last-child { margin-bottom: 0; }

/* ---------- Image ---------- */

.fbf-image {
	margin: 0;
}
.fbf-image img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}
.fbf-image figcaption {
	margin-top: 8px;
	font-size: 0.875em;
	opacity: 0.75;
}

/* ---------- Button ---------- */

.fbf-button-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.fbf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	border-radius: 4px;
	background-color: #1d4ed8;
	color: #fff;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, filter 0.2s, box-shadow 0.2s;
}
.fbf-button:hover,
.fbf-button:focus-visible {
	color: #fff;
	filter: brightness(0.92);
}
.fbf-size-sm { padding: 10px 18px; font-size: 13px; }
.fbf-size-md { padding: 14px 26px; font-size: 15px; }
.fbf-size-lg { padding: 18px 34px; font-size: 17px; }
.fbf-size-xl { padding: 22px 44px; font-size: 19px; }

/* ---------- Spacer / Divider ---------- */

.fbf-spacer { height: 50px; }

.fbf-divider {
	display: flex;
	padding-block: 15px;
}
.fbf-divider-line {
	display: block;
	width: 100%;
	border-top: 1px solid #d5d8dc;
}

/* ---------- Icon ---------- */

.fbf-icon-wrap {
	display: inline-flex;
	font-size: var(--fbf-icon-size, 50px);
	line-height: 1;
	color: var(--fbf-icon-primary, #1f2937);
	text-decoration: none;
}
.fbf-view-stacked,
.fbf-view-framed {
	padding: var(--fbf-icon-padding, 0.5em);
}
.fbf-view-stacked {
	background: var(--fbf-icon-primary, #1f2937);
	color: var(--fbf-icon-secondary, #fff);
}
.fbf-view-framed {
	border: 2px solid var(--fbf-icon-primary, #1f2937);
	background: var(--fbf-icon-secondary, transparent);
}
.fbf-shape-circle { border-radius: 50%; }
.fbf-shape-rounded { border-radius: 18%; }
.fbf-shape-square { border-radius: 0; }

/* ---------- Icon list ---------- */

.fbf-icon-list {
	display: flex;
	flex-direction: column;
	align-items: var(--fbf-list-align, flex-start);
	gap: var(--fbf-list-gap, 8px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.fbf-icon-list.fbf-layout-inline {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: var(--fbf-list-align, flex-start);
	gap: var(--fbf-list-gap, 8px) calc(var(--fbf-list-gap, 8px) * 3);
}
.fbf-icon-list-item,
.fbf-icon-list-item > a {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	color: inherit;
	text-decoration: none;
}
.fbf-icon-list-icon {
	display: inline-flex;
	color: #1d4ed8;
}

/* ---------- Video ---------- */

.fbf-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}
.fbf-video iframe,
.fbf-video video,
.fbf-video-facade,
.fbf-video-empty {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.fbf-video-facade {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #000;
	box-shadow: none;
	cursor: pointer;
}
.fbf-video-facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.92;
	transition: opacity 0.2s;
}
.fbf-video-facade:hover img { opacity: 1; }
.fbf-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
}
.fbf-video-play svg { width: 100%; height: 100%; }
.fbf-video-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #eef0f3;
	color: #6b7280;
	font-size: 14px;
	text-align: center;
}

/* ---------- Icon box ---------- */

/* Icon on top: plain block flow, so the Alignment setting moves the icon with the text. */
.fbf-icon-box-top .fbf-icon-box-icon {
	margin-bottom: var(--fbf-ib-gap, 16px);
}
.fbf-icon-box-left,
.fbf-icon-box-right {
	display: flex;
	align-items: flex-start;
	gap: var(--fbf-ib-gap, 16px);
}
.fbf-icon-box-right {
	flex-direction: row-reverse;
}
.fbf-icon-box-icon {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 44px;
	line-height: 1;
	color: var(--fbf-c-primary, #1d4ed8);
}
.fbf-icon-box-icon a {
	display: inline-flex;
	color: inherit;
}
.fbf-icon-box-content {
	flex: 1;
	min-width: 0;
}
.fbf-icon-box-title {
	margin: 0 0 8px;
}
.fbf-icon-box-title a {
	color: inherit;
	text-decoration: none;
}
.fbf-icon-box-desc {
	margin: 0;
}
@media (max-width: 767px) {
	.fbf-icon-box-left,
	.fbf-icon-box-right {
		flex-direction: column;
	}
}

/* ---------- Testimonial ---------- */

.fbf-testimonial {
	margin: 0;
	text-align: center;
}
.fbf-testimonial-stars {
	margin-bottom: 10px;
	color: #d97706; /* 3.2:1 on white: meets the 3:1 contrast for meaningful graphics */
	font-size: 18px;
	letter-spacing: 2px;
}
.fbf-testimonial-content {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	font-size: 1.125em;
	font-style: italic;
	quotes: none;
}
.fbf-testimonial-content::before,
.fbf-testimonial-content::after {
	content: none;
}
.fbf-testimonial-content > :last-child {
	margin-bottom: 0;
}
.fbf-testimonial-meta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-align: left;
}
.fbf-testimonial-img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}
.fbf-testimonial-who {
	display: flex;
	flex-direction: column;
}
.fbf-testimonial-name {
	font-style: normal;
	font-weight: 700;
}
.fbf-testimonial-job {
	font-size: 0.875em;
	opacity: 0.75;
}

/* ---------- Tabs ---------- */

.fbf-tabset {
	--fbf-tab-border: #d5d8dc;
	--fbf-tab-accent: var(--fbf-c-primary, #1d4ed8);
}
.fbf-tab-list {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	border-bottom: 1px solid var(--fbf-tab-border);
	scrollbar-width: none;
}
/* Scoped under .fbf so theme rules like [type="button"] can't restyle these buttons. */
.fbf .fbf-tab-title {
	all: unset;
	box-sizing: border-box;
	flex-shrink: 0;
	margin-bottom: -1px;
	padding: 12px 18px;
	border-bottom: 3px solid transparent;
	font: inherit;
	font-weight: 600;
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
	white-space: nowrap;
}
.fbf-tab-title:hover {
	opacity: 1;
}
.fbf-tab-title[aria-selected="true"] {
	border-bottom-color: var(--fbf-tab-accent);
	opacity: 1;
}
.fbf-tab-title:focus-visible {
	outline: 2px solid var(--fbf-tab-accent);
	outline-offset: -2px;
}
.fbf-tab-panel {
	padding: 20px 4px;
}
.fbf-tab-panel > :first-child { margin-top: 0; }
.fbf-tab-panel > :last-child { margin-bottom: 0; }
.fbf-tabset-vertical {
	display: grid;
	grid-template-columns: minmax(140px, 25%) 1fr;
}
.fbf-tabset-vertical .fbf-tab-list {
	flex-direction: column;
	border-bottom: 0;
	border-right: 1px solid var(--fbf-tab-border);
}
.fbf-tabset-vertical .fbf-tab-title {
	margin: 0 -1px 0 0;
	border-bottom: 0;
	border-right: 3px solid transparent;
	white-space: normal;
}
.fbf-tabset-vertical .fbf-tab-title[aria-selected="true"] {
	border-right-color: var(--fbf-tab-accent);
}
.fbf-tabset-vertical .fbf-tab-panel {
	grid-column: 2;
	grid-row: 1 / span 99;
	padding: 4px 24px;
}
@media (max-width: 767px) {
	.fbf-tabset-vertical {
		display: block;
	}
	.fbf-tabset-vertical .fbf-tab-list {
		flex-direction: row;
		border-right: 0;
		border-bottom: 1px solid var(--fbf-tab-border);
	}
	.fbf-tabset-vertical .fbf-tab-title {
		margin: 0 0 -1px;
		border-right: 0;
		border-bottom: 3px solid transparent;
		white-space: nowrap;
	}
	.fbf-tabset-vertical .fbf-tab-title[aria-selected="true"] {
		border-bottom-color: var(--fbf-tab-accent);
	}
	.fbf-tabset-vertical .fbf-tab-panel {
		padding: 20px 4px;
	}
}

/* ---------- Accordion ---------- */

.fbf-accordion {
	--fbf-acc-border: #d5d8dc;
	display: flex;
	flex-direction: column;
	gap: var(--fbf-acc-gap, 0px);
}
.fbf-accordion-item {
	border: 1px solid var(--fbf-acc-border);
}
/* Touching items share one border line; spaced items each keep their own. */
.fbf-accordion-item + .fbf-accordion-item {
	margin-top: min(0px, calc(var(--fbf-acc-gap, 0px) - 1px));
}
.fbf-accordion-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.fbf-accordion-title::-webkit-details-marker {
	display: none;
}
.fbf-accordion-title:focus-visible {
	outline: 2px solid var(--fbf-c-primary, #1d4ed8);
	outline-offset: -2px;
}
.fbf-accordion-icon {
	position: relative;
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	transition: transform 0.2s;
}
.fbf-acc-icon-chevron .fbf-accordion-icon {
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.fbf-acc-icon-chevron [open] > summary .fbf-accordion-icon {
	transform: translateY(2px) rotate(-135deg);
}
.fbf-acc-icon-plus .fbf-accordion-icon::before,
.fbf-acc-icon-plus .fbf-accordion-icon::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 0;
	width: 12px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s;
}
.fbf-acc-icon-plus .fbf-accordion-icon::after {
	transform: rotate(90deg);
}
.fbf-acc-icon-plus [open] > summary .fbf-accordion-icon::after {
	transform: rotate(0deg);
}
.fbf-acc-icon-none .fbf-accordion-icon {
	display: none;
}
.fbf-accordion-content {
	padding: 0 20px 18px;
}
.fbf-accordion-content > :first-child { margin-top: 0; }
.fbf-accordion-content > :last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */

.fbf-gallery {
	display: grid;
	grid-template-columns: repeat(var(--fbf-gallery-cols, 4), minmax(0, 1fr));
	gap: 10px;
}
.fbf-gallery-item {
	margin: 0;
	overflow: hidden;
}
.fbf-gallery-item a {
	display: block;
	overflow: hidden;
}
.fbf-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease, opacity 0.3s;
}
.fbf-hover-zoom .fbf-gallery-item a:hover img { transform: scale(1.06); }
.fbf-hover-fade .fbf-gallery-item a:hover img { opacity: 0.8; }
.fbf-gallery-item figcaption {
	margin-top: 6px;
	font-size: 0.875em;
	opacity: 0.75;
}

/* Lightbox, built by frontend.js */
.fbf-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 56px 64px;
	background: rgba(10, 12, 16, 0.92);
	color: #fff;
}
.fbf-lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
}
.fbf-lightbox-caption {
	margin-top: 12px;
	font-size: 14px;
	text-align: center;
}
.fbf-lightbox button {
	all: unset;
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.fbf-lightbox button:hover,
.fbf-lightbox button:focus-visible {
	background: rgba(255, 255, 255, 0.15);
}
.fbf-lightbox-close { top: 10px; right: 10px; }
.fbf-lightbox-prev { top: 50%; left: 10px; transform: translateY(-50%); }
.fbf-lightbox-next { top: 50%; right: 10px; transform: translateY(-50%); }
@media (max-width: 767px) {
	.fbf-lightbox { padding: 56px 12px; }
	.fbf-lightbox-prev,
	.fbf-lightbox-next { top: auto; bottom: 10px; transform: none; }
}

/* ---------- Slider ---------- */

.fbf-slider {
	--fbf-slider-nav: #fff;
	position: relative;
	overflow: hidden;
}
.fbf-slider-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.fbf-slider-track::-webkit-scrollbar {
	display: none;
}
.fbf-slide {
	position: relative;
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	min-height: 500px;
	padding: 60px 70px;
	overflow: hidden;
	scroll-snap-align: start;
	background-color: #1e293b;
	color: #fff;
}
.fbf-slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fbf-slide-overlay {
	position: absolute;
	inset: 0;
}
.fbf-slide-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 760px;
	text-align: center;
}
.fbf-slide-heading {
	margin: 0 0 14px;
	color: inherit;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.15;
}
.fbf-slide-text {
	margin-bottom: 24px;
	font-size: 1.125em;
}
.fbf-slide-text > :last-child { margin-bottom: 0; }
.fbf .fbf-slider-arrow {
	all: unset;
	position: absolute;
	z-index: 2;
	top: 50%;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.3);
	color: var(--fbf-slider-nav);
	font-size: 20px;
	transform: translateY(-50%);
	cursor: pointer;
	transition: background 0.2s;
}
.fbf-slider-arrow:hover {
	background: rgba(0, 0, 0, 0.55);
}
.fbf-slider-arrow.is-prev { left: 14px; }
.fbf-slider-arrow.is-next { right: 14px; }
.fbf-slider-dots {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 16px;
	left: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.fbf .fbf-slider-dots button {
	all: unset;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--fbf-slider-nav);
	opacity: 0.45;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
}
.fbf .fbf-slider-dots button[aria-current="true"] {
	opacity: 1;
	transform: scale(1.2);
}
.fbf-slider-dots button:focus-visible,
.fbf-slider-arrow:focus-visible {
	outline: 2px solid var(--fbf-slider-nav);
	outline-offset: 2px;
}
@media (max-width: 767px) {
	.fbf-slide { padding: 50px 24px 60px; }
	.fbf .fbf-slider-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.fbf-slider-track { scroll-behavior: auto; }
}

/* ---------- Google Maps ---------- */

.fbf-map {
	height: 400px;
	overflow: hidden;
	background: #e5e7eb;
}
.fbf-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Posts ---------- */

.fbf-posts {
	display: grid;
	grid-template-columns: repeat(var(--fbf-posts-cols, 3), minmax(0, 1fr));
	gap: 24px;
}
.fbf-post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.fbf-post-thumb {
	display: block;
	overflow: hidden;
}
.fbf-post-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.fbf-post-thumb:hover img {
	transform: scale(1.04);
}
.fbf-post-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 16px 0;
}
.fbf-post-date {
	font-size: 0.8125em;
	opacity: 0.7;
}
.fbf-post-title {
	margin: 0;
	font-size: 1.25em;
	line-height: 1.3;
}
.fbf-post-title a {
	color: inherit;
	text-decoration: none;
}
.fbf-post-title a:hover {
	text-decoration: underline;
}
.fbf-post-excerpt {
	margin: 0;
}
.fbf-post-more {
	margin-top: auto;
	color: var(--fbf-c-primary, #1d4ed8);
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Form ---------- */

.fbf-form .gform_wrapper {
	margin: 0;
}

/* ---------- Theme Builder locations ---------- */

/* No box of its own, so a sticky header section sticks to the page, not to this wrapper. */
.fbf-location-header,
.fbf-location-footer {
	display: contents;
}
.fbf-sticky {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 99;
}
/* Skip link: hidden until a keyboard user tabs to it, whatever the theme provides. */
.fbf-skip-link:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.fbf-skip-link:focus {
	position: fixed;
	z-index: 100000;
	top: 8px;
	left: 8px;
	padding: 10px 16px;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ---------- Nav menu ---------- */

.fbf-nav {
	--fbf-nav-link: inherit;
	--fbf-nav-hover: var(--fbf-c-primary, #1d4ed8);
	--fbf-nav-gap: 28px;
	--fbf-nav-drop-bg: #fff;
	--fbf-nav-drop-link: #1f2937;
	--fbf-nav-mobile-bg: #fff;
	position: relative;
	display: flex;
	justify-content: var(--fbf-nav-justify, flex-start);
}
.fbf-nav-list,
.fbf-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.fbf-nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--fbf-nav-justify, flex-start);
	gap: 8px var(--fbf-nav-gap);
	width: 100%;
}
.fbf-nav-vertical .fbf-nav-list {
	flex-direction: column;
	align-items: var(--fbf-nav-justify, flex-start);
	gap: 10px;
}
.fbf-nav li {
	position: relative;
	margin: 0;
}
.fbf-nav a {
	display: block;
	padding: 6px 0;
	color: var(--fbf-nav-link);
	text-decoration: none;
	transition: color 0.15s;
}
.fbf-nav a:hover,
.fbf-nav a:focus-visible,
.fbf-nav .current-menu-item > a,
.fbf-nav .current-menu-ancestor > a {
	color: var(--fbf-nav-hover);
}
.fbf-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin: 0 0 3px 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
/* Dropdowns: open on hover and on keyboard focus. */
.fbf-nav-horizontal .sub-menu {
	position: absolute;
	z-index: 100;
	top: 100%;
	left: -14px;
	min-width: 200px;
	padding: 8px 0;
	border-radius: 6px;
	background: var(--fbf-nav-drop-bg);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.fbf-nav-horizontal .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
}
.fbf-nav-horizontal li:hover > .sub-menu,
.fbf-nav-horizontal li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.fbf-nav-horizontal .sub-menu a {
	padding: 8px 16px;
	color: var(--fbf-nav-drop-link);
}
.fbf-nav-vertical .sub-menu {
	padding: 6px 0 0 14px;
}
.fbf .fbf-nav-toggle {
	all: unset;
	box-sizing: border-box;
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px;
	color: inherit;
	font-weight: 600;
	cursor: pointer;
}
.fbf .fbf-nav-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.fbf-nav-bars,
.fbf-nav-bars::before,
.fbf-nav-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transition: transform 0.2s, opacity 0.2s;
}
.fbf-nav-bars {
	position: relative;
}
.fbf-nav-bars::before,
.fbf-nav-bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.fbf-nav-bars::before { top: -7px; }
.fbf-nav-bars::after { top: 7px; }
.fbf-nav.is-open .fbf-nav-bars { background: transparent; }
.fbf-nav.is-open .fbf-nav-bars::before { transform: translateY(7px) rotate(45deg); }
.fbf-nav.is-open .fbf-nav-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Folded menu: a button, and the list drops down below it. */
@media (max-width: 1024px) {
	.fbf .fbf-nav-bp-tablet .fbf-nav-toggle { display: inline-flex; }
	.fbf-nav-bp-tablet .fbf-nav-list { display: none; }
}
@media (max-width: 767px) {
	.fbf .fbf-nav-bp-mobile .fbf-nav-toggle { display: inline-flex; }
	.fbf-nav-bp-mobile .fbf-nav-list { display: none; }
}
@media (max-width: 1024px) {
	.fbf-nav-bp-tablet.is-open .fbf-nav-list {
		position: absolute;
		z-index: 200;
		top: 100%;
		right: 0;
		left: auto;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: min(320px, 90vw);
		padding: 10px 18px;
		border-radius: 8px;
		background: var(--fbf-nav-mobile-bg);
		box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
		color: #1f2937;
	}
	.fbf-nav-bp-tablet .sub-menu {
		position: static;
		padding: 0 0 6px 14px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
	}
}
@media (max-width: 767px) {
	.fbf-nav-bp-mobile.is-open .fbf-nav-list {
		position: absolute;
		z-index: 200;
		top: 100%;
		right: 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: min(320px, 90vw);
		padding: 10px 18px;
		border-radius: 8px;
		background: var(--fbf-nav-mobile-bg);
		box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
		color: #1f2937;
	}
	.fbf-nav-bp-mobile .sub-menu {
		position: static;
		padding: 0 0 6px 14px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
	}
}

/* ---------- Site logo ---------- */

.fbf-site-logo a {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}
.fbf-site-logo img {
	display: block;
	width: 160px;
	max-width: 100%;
	height: auto;
}
.fbf-site-logo-text {
	font-size: 1.375em;
	font-weight: 800;
}

/* ---------- Search form ---------- */

.fbf-search {
	display: flex;
	overflow: hidden;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
}
.fbf .fbf-search-input {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	box-shadow: none;
}
.fbf .fbf-search-input:focus {
	outline: 2px solid var(--fbf-c-primary, #1d4ed8);
	outline-offset: -2px;
}
.fbf .fbf-search-button {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	padding: 0 18px;
	background: var(--fbf-c-accent, #1d4ed8);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.fbf .fbf-search-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

/* ---------- Post info ---------- */

.fbf-post-info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375em;
}
.fbf-post-info li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.fbf-post-info a {
	color: inherit;
}
.fbf-post-info .fbf-icon {
	opacity: 0.7;
}

/* ---------- Pagination ---------- */

.fbf-pagination {
	margin-top: 32px;
}
.fbf-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fbf-pagination a,
.fbf-pagination span {
	display: block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: inherit;
	text-align: center;
	text-decoration: none;
}
.fbf-pagination .current {
	border-color: var(--fbf-c-primary, #1d4ed8);
	background: var(--fbf-c-primary, #1d4ed8);
	color: #fff;
}
