/*
Theme Name: LancerBill Premium
Theme URI: https://lancerbill.com/
Author: LancerBill
Author URI: https://lancerbill.com/
Description: Premium child theme for LancerBill — free money and business-admin tools for freelancers, solopreneurs, contractors and small businesses. Child of GeneratePress.
Version: 1.0.12
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lancerbill-premium
Template: generatepress
*/

/* ============================================================
   LANCERBILL PREMIUM — DESIGN SYSTEM
   Light premium theme. Deep ink + single emerald accent.
   System font stack only. No frameworks. No external requests.
   ============================================================ */

:root {
	--lb-ink: #0f1b2d;
	--lb-ink-2: #1b2a44;
	--lb-body: #33415c;
	--lb-muted: #5b6b82;
	--lb-faint: #8a97ab;
	--lb-line: #e4e9f1;
	--lb-line-soft: #eef1f6;
	--lb-paper: #ffffff;
	--lb-canvas: #f6f8fb;
	--lb-canvas-2: #eef2f7;
	--lb-accent: #0b7a55;
	--lb-accent-strong: #095c41;
	--lb-accent-bright: #12a56f;
	--lb-accent-soft: #e2f4eb;
	--lb-accent-faint: #f0faf5;
	--lb-gold: #b45309;
	--lb-gold-soft: #fdf3e3;
	--lb-danger: #b42318;
	--lb-danger-soft: #fdeceb;
	--lb-radius: 16px;
	--lb-radius-sm: 10px;
	--lb-shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
	--lb-shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 28px -10px rgba(15, 27, 45, .14);
	--lb-shadow-lg: 0 2px 6px rgba(15, 27, 45, .06), 0 24px 56px -16px rgba(15, 27, 45, .22);
	--lb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--lb-container: 1360px;
	--lb-header-h: 72px;
}

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

html {
	scroll-behavior: smooth;
}

/* Guard for full-bleed bands (does not break sticky positioning) */
html,
body {
	overflow-x: clip;
}

body {
	font-family: var(--lb-font);
	color: var(--lb-body);
	background: var(--lb-paper);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--lb-ink);
	font-weight: 800;
	letter-spacing: -0.022em;
	line-height: 1.22;
}

a {
	color: var(--lb-accent);
	text-decoration: none;
}

a:hover {
	color: var(--lb-accent-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

::selection {
	background: var(--lb-accent-soft);
	color: var(--lb-ink);
}

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

/* Accessible focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--lb-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Layout container used by bespoke templates */
.lb-container {
	max-width: var(--lb-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	width: 100%;
}

/* Full-bleed page shell: GeneratePress wraps the whole page in a 1200px
   #page container. Release it so bespoke sections span edge to edge,
   while inner chrome keeps a comfortable max width. */
#page.site.grid-container.container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.inside-header.grid-container,
.inside-navigation.grid-container,
.inside-site-info.grid-container {
	max-width: 1360px;
}

/* Default (non-bespoke) page templates: constrain the content column. */
.site-content {
	display: block;
}

.site-content > #primary.content-area {
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.lb-section {
	padding-top: clamp(3rem, 7vw, 5.5rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.lb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lb-accent-strong);
	background: var(--lb-accent-soft);
	border: 1px solid #cdeadb;
	padding: .4rem .9rem;
	border-radius: 999px;
	margin-bottom: 1.1rem;
}

/* ---------- Global buttons ---------- */

.lb-btn,
.wp-block-button__link,
button.button,
input[type="submit"].button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 48px;
	padding: .8rem 1.6rem;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.25;
	border-radius: 12px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.lb-btn-primary,
.wp-block-button__link {
	background: var(--lb-accent-strong);
	border-color: var(--lb-accent-strong);
	color: #fff;
	box-shadow: 0 8px 20px -8px rgba(9, 92, 65, .55);
}

.lb-btn-primary:hover,
.wp-block-button__link:hover {
	background: var(--lb-ink);
	border-color: var(--lb-ink);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.lb-btn-secondary {
	background: #fff;
	border-color: var(--lb-line);
	color: var(--lb-ink);
	box-shadow: var(--lb-shadow-sm);
}

.lb-btn-secondary:hover {
	border-color: var(--lb-accent);
	color: var(--lb-accent-strong);
	text-decoration: none;
	transform: translateY(-1px);
}

/* ============================================================
   HEADER — white sticky bar, wordmark, dropdown nav, CTA
   ============================================================ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--lb-line-soft);
}

.site-header .inside-header {
	min-height: var(--lb-header-h);
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

/* Wordmark lockup */
.site-branding .main-title {
	font-size: 1.45rem;
	font-weight: 900;
	letter-spacing: -0.035em;
	margin: 0;
	line-height: 1;
}

.site-branding .main-title a {
	color: var(--lb-ink);
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	text-decoration: none;
}

.site-branding .main-title a::before {
	content: "";
	width: .85em;
	height: .85em;
	border-radius: .28em;
	background: linear-gradient(135deg, var(--lb-accent-bright), var(--lb-accent-strong));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 2px 6px rgba(11, 122, 85, .4);
	flex: none;
}

.site-branding .site-description {
	display: none;
}

/* Primary nav */
.main-navigation {
	margin-left: auto;
}

.main-navigation .main-nav ul {
	display: flex;
	align-items: center;
	gap: .15rem;
	flex-wrap: nowrap;
}

.main-navigation .main-nav ul li a {
	white-space: nowrap;
}

.main-navigation .main-nav ul li a {
	color: var(--lb-body);
	font-weight: 650;
	font-size: .98rem;
	padding: .7rem .85rem;
	border-radius: 10px;
	line-height: 1.3;
}

.main-navigation .main-nav ul li a:hover {
	color: var(--lb-ink);
	background: var(--lb-canvas);
	text-decoration: none;
}

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
	color: var(--lb-accent-strong);
	background: var(--lb-accent-soft);
}

/* Dropdowns — premium cards */
.main-navigation .main-nav ul ul {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 270px;
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	box-shadow: var(--lb-shadow-lg);
	padding: .55rem;
	display: block;
	visibility: hidden;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.main-navigation .main-nav ul li:hover > ul,
.main-navigation .main-nav ul li:focus-within > ul {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

/* Invisible hover bridge: covers the 10px gap between the parent item and
   the dropdown panel so the menu never flickers shut while moving the mouse. */
.main-navigation .main-nav ul ul::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
	background: transparent;
}

.main-navigation .main-nav ul ul li {
	display: block;
}

.main-navigation .main-nav ul ul li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .72rem .9rem;
	font-size: .95rem;
	font-weight: 600;
	border-radius: 10px;
	white-space: nowrap;
}

.main-navigation .main-nav ul ul li a:hover {
	background: var(--lb-accent-faint);
	color: var(--lb-accent-strong);
}

/* Caret on parents (theme renders its own; hide GeneratePress's duplicate toggle) */
.main-navigation .dropdown-menu-toggle {
	display: none !important;
}
.main-navigation .main-nav ul li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: .45em;
	height: .45em;
	margin-left: .45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: .55;
}

/* Header CTA injected via wp_nav_menu_items */
.main-navigation .lb-nav-cta {
	margin-left: .6rem;
}

.main-navigation .lb-nav-cta a {
	background: var(--lb-accent-strong) !important;
	color: #fff !important;
	font-weight: 800;
	padding: .72rem 1.35rem !important;
	border-radius: 12px;
	box-shadow: 0 8px 20px -8px rgba(9, 92, 65, .55);
	white-space: nowrap;
}

.main-navigation .lb-nav-cta a:hover {
	background: var(--lb-ink) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* Header search toggle */
.main-navigation .lb-nav-search {
	position: relative;
}

.main-navigation .lb-nav-search > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	color: var(--lb-body);
}

.main-navigation .lb-nav-search > a:hover {
	background: var(--lb-canvas);
	color: var(--lb-ink);
}

.lb-search-drop {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: min(360px, 86vw);
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	box-shadow: var(--lb-shadow-lg);
	padding: .8rem;
	display: none;
}

.lb-nav-search.open .lb-search-drop {
	display: block;
}

.lb-search-drop form {
	display: flex;
	gap: .5rem;
}

.lb-search-drop input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 1.5px solid var(--lb-line);
	border-radius: 10px;
	padding: .65rem .9rem;
	font-size: 1rem;
	font-family: inherit;
}

.lb-search-drop input[type="search"]:focus {
	border-color: var(--lb-accent);
	outline: none;
}

.lb-search-drop button {
	background: var(--lb-accent-strong);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0 1.1rem;
	font-weight: 800;
	cursor: pointer;
	min-height: 44px;
}

/* Mobile nav — premium panel */
.menu-toggle {
	min-width: 48px;
	min-height: 48px;
	border-radius: 12px;
}

@media (max-width: 1024px) {
	/* Force the hamburger menu at 1024px (GeneratePress default is 768px)
	   so the 8-item desktop nav never wraps to two rows. */
	.main-navigation .menu-toggle {
		display: block;
	}
	.main-navigation .main-nav ul {
		display: none;
	}
	.main-navigation.toggled .main-nav ul {
		display: flex;
	}
	.main-navigation .main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: .25rem;
		background: #fff;
		border: 1px solid var(--lb-line-soft);
		border-radius: var(--lb-radius);
		box-shadow: var(--lb-shadow-lg);
		padding: .9rem;
		margin-top: .6rem;
		max-height: calc(100vh - 120px);
		max-height: calc(100dvh - 120px);
		overflow-y: auto;
	}

	.main-navigation .main-nav ul li a {
		padding: .95rem 1rem;
		font-size: 1.05rem;
		min-height: 48px;
		display: flex;
		align-items: center;
	}

	.main-navigation .main-nav ul ul {
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		box-shadow: none;
		border: 0;
		border-left: 3px solid var(--lb-accent-soft);
		border-radius: 0;
		padding: .2rem 0 .2rem .4rem;
		margin: .2rem 0 .4rem 1rem;
		min-width: 0;
	}

	.main-navigation .main-nav ul ul li a {
		font-size: .98rem;
		padding: .8rem .9rem;
		white-space: normal;
	}

	.main-navigation .lb-nav-cta {
		margin: .5rem 0 0;
	}

	.main-navigation .lb-nav-cta a {
		justify-content: center;
	}

	.main-navigation .lb-nav-search > a {
		display: none;
	}
}

/* ============================================================
   FRONT PAGE — hero, category cards, stats band, popular tools
   ============================================================ */

.lb-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(720px 340px at 12% -8%, rgba(18, 165, 111, .10), transparent 60%),
		radial-gradient(640px 320px at 88% 4%, rgba(180, 83, 9, .07), transparent 60%),
		linear-gradient(180deg, #fbfdfc 0%, #f4f8f5 100%);
	padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
	text-align: center;
}

.lb-hero::before,
.lb-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.lb-hero::before {
	width: 420px;
	height: 420px;
	right: -140px;
	top: -140px;
	background: radial-gradient(circle, rgba(18, 165, 111, .14) 0%, transparent 70%);
}

.lb-hero::after {
	width: 340px;
	height: 340px;
	left: -110px;
	bottom: -130px;
	background: radial-gradient(circle, rgba(15, 27, 45, .07) 0%, transparent 70%);
}

.lb-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
	margin: 0 auto;
}

.lb-hero h1 {
	font-size: clamp(2.4rem, 5.4vw, 3.9rem);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin: 0 0 1.1rem;
	text-wrap: balance;
}

.lb-hero h1 mark {
	background: linear-gradient(180deg, transparent 62%, rgba(18, 165, 111, .35) 62%, rgba(18, 165, 111, .35) 94%, transparent 94%);
	color: inherit;
	padding: 0 .06em;
}

.lb-hero-sub {
	font-size: clamp(1.08rem, 2vw, 1.3rem);
	color: var(--lb-muted);
	max-width: 640px;
	margin: 0 auto 2rem;
	line-height: 1.6;
}

/* Hero tool search */
.lb-hero-search {
	position: relative;
	max-width: 620px;
	margin: 0 auto;
}

.lb-hero-searchbox {
	display: flex;
	background: #fff;
	border: 2px solid var(--lb-line);
	border-radius: 18px;
	box-shadow: var(--lb-shadow-lg);
	padding: .45rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.lb-hero-searchbox:focus-within {
	border-color: var(--lb-accent);
	box-shadow: var(--lb-shadow-lg), 0 0 0 4px rgba(18, 165, 111, .15);
}

.lb-hero-searchbox input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 1.1rem;
	padding: .85rem 1.1rem;
	font-family: inherit;
	color: var(--lb-ink);
}

.lb-hero-searchbox input:focus {
	outline: none;
}

.lb-hero-searchbox button {
	background: var(--lb-accent-strong);
	color: #fff;
	border: 0;
	border-radius: 13px;
	font-weight: 800;
	font-size: 1.02rem;
	padding: 0 1.7rem;
	min-height: 52px;
	cursor: pointer;
	white-space: nowrap;
}

.lb-hero-searchbox button:hover {
	background: var(--lb-ink);
}

.lb-search-results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	box-shadow: var(--lb-shadow-lg);
	overflow: hidden;
	text-align: left;
	display: none;
	z-index: 50;
	max-height: 340px;
	overflow-y: auto;
}

.lb-search-results.open {
	display: block;
}

.lb-search-results a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .8rem 1.1rem;
	color: var(--lb-ink);
	font-weight: 650;
	border-bottom: 1px solid var(--lb-line-soft);
	text-decoration: none;
}

.lb-search-results a:last-child {
	border-bottom: 0;
}

.lb-search-results a:hover,
.lb-search-results a.active {
	background: var(--lb-accent-faint);
	color: var(--lb-accent-strong);
}

.lb-search-results .lb-sr-kind {
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lb-faint);
}

.lb-search-none {
	padding: 1rem 1.1rem;
	color: var(--lb-muted);
	font-size: .95rem;
}

/* Trust chips */
.lb-hero-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
	margin-top: 1.6rem;
}

.lb-chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .88rem;
	font-weight: 700;
	color: var(--lb-ink-2);
	background: rgba(255, 255, 255, .75);
	border: 1px solid var(--lb-line);
	padding: .45rem .95rem;
	border-radius: 999px;
}

.lb-chip svg {
	width: 15px;
	height: 15px;
	stroke: var(--lb-accent-strong);
	flex: none;
}

/* Category cards */
.lb-cats {
	background: var(--lb-paper);
}

.lb-section-head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 2.6rem;
}

.lb-section-head h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	margin: 0 0 .7rem;
}

.lb-section-head p {
	color: var(--lb-muted);
	font-size: 1.08rem;
	margin: 0;
}

/* Centered card grids (all pages): cards wrap and stay centered, so a short
   final row (e.g. 5 category cards) sits balanced instead of left-aligned. */
.lb-cat-grid,
.lb-tool-grid,
.lb-tool-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.4rem;
}

.lb-cat-grid > *,
.lb-tool-grid > *,
.lb-tool-cards > * {
	flex: 0 1 400px;
	min-width: 0;
	max-width: 100%;
}

.lb-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--lb-card-tint, var(--lb-canvas));
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	padding: 1.7rem;
	text-decoration: none;
	transition: transform .16s ease, box-shadow .16s ease;
	overflow: hidden;
}

.lb-cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--lb-shadow-lg);
	text-decoration: none;
}

.lb-cat-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.lb-cat-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--lb-card-accent, var(--lb-accent-strong));
	box-shadow: 0 6px 16px -6px var(--lb-card-accent, var(--lb-accent-strong));
	flex: none;
}

.lb-cat-icon svg {
	width: 26px;
	height: 26px;
	stroke: #fff;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lb-cat-count {
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lb-card-accent, var(--lb-accent-strong));
	background: rgba(255, 255, 255, .8);
	border: 1px solid var(--lb-line-soft);
	padding: .32rem .7rem;
	border-radius: 999px;
	white-space: nowrap;
}

.lb-cat-card h3 {
	font-size: 1.28rem;
	margin: 0 0 .45rem;
	color: var(--lb-ink);
}

.lb-cat-card > p {
	color: var(--lb-muted);
	font-size: .98rem;
	margin: 0 0 1.2rem;
	flex: 1;
}

.lb-cat-link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-weight: 800;
	color: var(--lb-card-accent, var(--lb-accent-strong));
	font-size: .98rem;
}

.lb-cat-link svg {
	width: 17px;
	height: 17px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s ease;
}

.lb-cat-card:hover .lb-cat-link svg {
	transform: translateX(4px);
}

/* Category hub pages: title, intro, tool cards, then page content */
.lb-cat-hub-page {
	padding: 3.5rem 0 4rem;
}

.lb-hub-head {
	max-width: 780px;
	margin: 0 0 1rem;
}

.lb-hub-title {
	font-size: clamp(2.1rem, 4.4vw, 3.1rem);
	font-weight: 900;
	letter-spacing: -.03em;
	margin: 0 0 .9rem;
	color: var(--lb-ink);
}

.lb-hub-intro {
	font-size: 1.18rem;
	color: var(--lb-muted);
	margin: 0;
	line-height: 1.6;
}

.lb-tool-cards {
	margin: 2.6rem 0 3.5rem;
}

.lb-tool-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	padding: 1.7rem;
	text-decoration: none;
	box-shadow: var(--lb-shadow-sm);
	transition: transform .16s ease, box-shadow .16s ease;
	overflow: hidden;
}

.lb-tool-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--lb-shadow-lg);
	text-decoration: none;
}

.lb-tool-card-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--lb-card-tint, var(--lb-canvas));
	color: var(--lb-card-accent, var(--lb-accent-strong));
	margin-bottom: 1.1rem;
	flex: none;
}

.lb-tool-card-icon svg {
	width: 26px;
	height: 26px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lb-tool-card-title {
	font-size: 1.22rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--lb-ink);
	margin-bottom: .45rem;
}

.lb-tool-card-desc {
	color: var(--lb-muted);
	font-size: .97rem;
	line-height: 1.6;
	margin-bottom: 1.3rem;
	flex: 1;
}

.lb-tool-card-cta {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-weight: 800;
	color: var(--lb-card-accent, var(--lb-accent-strong));
	font-size: .98rem;
}

.lb-tool-card:hover .lb-tool-card-cta span:last-child {
	transform: translateX(4px);
}

.lb-tool-card-cta span:last-child {
	display: inline-block;
	transition: transform .15s ease;
}

.lb-hub-content {
	max-width: 780px;
}

/* Stats band */
.lb-stats {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(640px 300px at 15% 0%, rgba(18, 165, 111, .14), transparent 60%),
		radial-gradient(560px 280px at 85% 100%, rgba(109, 40, 217, .16), transparent 60%),
		var(--lb-ink);
	color: #dbe4f0;
	border-top: 1px solid transparent;
}

.lb-stats::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lb-accent), var(--lb-accent-bright), #6d28d9, var(--lb-accent));
}

.lb-stats-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	text-align: center;
}

.lb-stat {
	padding: 0 1rem;
}

.lb-stat + .lb-stat {
	border-left: 1px solid rgba(255, 255, 255, .09);
}

.lb-stat b {
	display: block;
	font-size: clamp(2.4rem, 4.6vw, 3.4rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	color: #fff;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.lb-stat b em {
	font-style: normal;
	color: var(--lb-accent-bright);
}

.lb-stat > span:last-child {
	display: block;
	margin-top: .55rem;
	font-size: .95rem;
	color: #9fb0c7;
	font-weight: 600;
	letter-spacing: .01em;
}

/* Popular tools */
.lb-popular {
	background: var(--lb-canvas);
}

/* Popular tools grid: covered by the centered card grid system above. */

.lb-tool-card {
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	padding: 1.55rem;
	display: flex;
	flex-direction: column;
	gap: .55rem;
	text-decoration: none;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.lb-tool-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--lb-shadow-lg);
	border-color: #cfe6da;
	text-decoration: none;
}

.lb-tool-card .lb-tool-card-kind {
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--lb-accent-strong);
}

.lb-tool-card h3 {
	font-size: 1.18rem;
	margin: 0;
	color: var(--lb-ink);
}

.lb-tool-card p {
	font-size: .94rem;
	color: var(--lb-muted);
	margin: 0;
	flex: 1;
}

.lb-tool-card .lb-card-go {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-weight: 800;
	font-size: .95rem;
	color: var(--lb-accent-strong);
	margin-top: .4rem;
}

.lb-tool-card .lb-card-go svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s ease;
}

.lb-tool-card:hover .lb-card-go svg {
	transform: translateX(4px);
}

/* Front-page editorial content section */
.lb-editorial {
	background: var(--lb-paper);
}

.lb-editorial .lb-container {
	max-width: 800px;
}

.lb-editorial h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 2.6rem 0 1rem;
}

.lb-editorial h2:first-child {
	margin-top: 0;
}

.lb-editorial p {
	margin: 0 0 1.15rem;
}

/* Bottom CTA band */
.lb-cta-band {
	background: linear-gradient(135deg, var(--lb-accent-strong) 0%, #0a4f38 100%);
	color: #fff;
	text-align: center;
}

.lb-cta-band h2 {
	color: #fff;
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	margin: 0 0 .8rem;
}

.lb-cta-band p {
	color: rgba(255, 255, 255, .82);
	max-width: 600px;
	margin: 0 auto 1.8rem;
	font-size: 1.08rem;
}

.lb-cta-band .lb-btn-light {
	background: #fff;
	color: var(--lb-accent-strong);
	border-color: #fff;
	font-weight: 800;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
}

.lb-cta-band .lb-btn-light:hover {
	background: var(--lb-ink);
	border-color: var(--lb-ink);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

@media (max-width: 680px) {
	.lb-cat-grid > *,
	.lb-tool-grid > *,
	.lb-tool-cards > * {
		flex-basis: 100%;
	}

	.lb-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.8rem 1rem;
	}

	.lb-stat + .lb-stat {
		border-left: 0;
	}

	.lb-hero-searchbox button {
		padding: 0 1.2rem;
	}
}

/* ============================================================
   TOOL PAGES — tool as elevated hero card + refined content
   (overrides lancerbill-tools plugin styles with higher
   specificity; plugin CSS loads earlier so these win ties too)
   ============================================================ */

/* Tool hero wrapper injected by the_content filter — full-bleed band */
.lb-tool-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: linear-gradient(180deg, var(--lb-canvas) 0%, var(--lb-paper) 100%);
	border-bottom: 1px solid var(--lb-line-soft);
	padding: clamp(2rem, 5vw, 3.5rem) 0;
	margin-bottom: 0;
}

.lb-tool-hero .lb-tool {
	max-width: 820px;
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: 20px;
	box-shadow: var(--lb-shadow-lg);
	padding: clamp(1.4rem, 3.5vw, 2.6rem);
	margin: 0 auto;
}

/* Fallback: tool not moved (filter off) still looks premium */
.entry-content > .lb-tool {
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: 20px;
	box-shadow: var(--lb-shadow-lg);
	padding: clamp(1.4rem, 3.5vw, 2.6rem);
	margin: 2rem auto;
	max-width: 820px;
}

/* Fieldsets become sections */
.lb-tool fieldset {
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	padding: 1.3rem 1.4rem 1.4rem;
	margin: 0 0 1.4rem;
	background: #fff;
}

.lb-tool legend {
	font-weight: 800;
	font-size: 1.02rem;
	letter-spacing: -0.01em;
	color: var(--lb-ink);
	padding: 0 .6rem;
}

/* Inputs */
.lb-tool .lb-input {
	border: 1.5px solid #c6d0de;
	border-radius: 10px;
	padding: .72rem .85rem;
	font-size: 1.02rem;
	transition: border-color .12s ease, box-shadow .12s ease;
}

.lb-tool .lb-input:hover {
	border-color: #9fb0c6;
}

.lb-tool .lb-input:focus {
	outline: none;
	border-color: var(--lb-accent);
	box-shadow: 0 0 0 4px rgba(18, 165, 111, .14);
}

.lb-tool .lb-field > label,
.lb-tool .lb-radio-label {
	font-weight: 700;
	color: var(--lb-ink);
	font-size: .96rem;
}

.lb-tool .lb-hint {
	color: var(--lb-muted);
}

/* Buttons inside tools */
.lb-tool .lb-btn {
	min-height: 48px;
	border-radius: 12px;
}

.lb-tool .lb-btn-primary {
	background: var(--lb-accent-strong);
	border-color: var(--lb-accent-strong);
	box-shadow: 0 8px 20px -8px rgba(9, 92, 65, .55);
}

.lb-tool .lb-btn-primary:hover {
	background: var(--lb-ink);
	border-color: var(--lb-ink);
}

.lb-tool .lb-btn-secondary {
	border-color: #c6d0de;
}

.lb-tool .lb-btn-secondary:hover {
	border-color: var(--lb-accent);
	color: var(--lb-accent-strong);
	background: var(--lb-accent-faint);
}

.lb-tool .lb-radio-row input[type="radio"] {
	accent-color: var(--lb-accent-strong);
	width: 1.2rem;
	height: 1.2rem;
}

/* Result panel */
.lb-tool .lb-result {
	border: 1px solid #bfe6d2;
	background: linear-gradient(180deg, #f2fbf6 0%, #e9f7ef 100%);
	border-radius: var(--lb-radius);
	box-shadow: var(--lb-shadow);
	padding: 1.5rem 1.6rem;
}

.lb-tool .lb-result h3 {
	font-size: 1.05rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--lb-accent-strong);
	margin-bottom: .9rem;
}

.lb-tool .lb-result-row {
	padding: .6rem 0;
	border-bottom: 1px dashed #c4e2d2;
}

.lb-tool .lb-result-row .lb-k {
	color: var(--lb-body);
}

.lb-tool .lb-result-row .lb-v {
	color: var(--lb-ink);
}

.lb-tool .lb-result-row.lb-total .lb-v {
	color: var(--lb-accent-strong);
	font-size: 1.6rem;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.lb-tool .lb-explainer {
	background: #eef4ff;
	border: 1px solid #c9dbff;
	color: #1e3a8a;
	border-radius: 12px;
}

/* Errors */
.lb-tool .lb-errors {
	border-radius: 12px;
}

/* Disclaimers + notes as premium callouts */
.lb-tool .lb-disclaimer,
.entry-content .lb-disclaimer {
	background: var(--lb-canvas);
	border: 1px solid var(--lb-line-soft);
	border-left: 4px solid var(--lb-accent);
	border-radius: 0 12px 12px 0;
	padding: .9rem 1.1rem;
	color: var(--lb-muted);
	font-size: .9rem;
}

.lb-tool .lb-note-inline {
	border-left: 4px solid var(--lb-gold);
	border-radius: 0 12px 12px 0;
	background: var(--lb-gold-soft);
}

/* Line-item editor */
.lb-tool .lb-items-head {
	color: var(--lb-muted);
	font-size: .8rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.lb-tool .lb-item-remove {
	min-width: 44px;
	min-height: 44px;
}

/* Document preview */
.lb-tool .lb-doc-output {
	margin-top: 1.6rem;
}

.lb-tool .lb-doc-preview {
	border-radius: var(--lb-radius);
	box-shadow: var(--lb-shadow);
}

.lb-tool .lb-doc-totals tr.grand td {
	color: var(--lb-accent-strong);
}

/* ---------- Article typography on tool/guide pages ---------- */

body.lb-has-tool .entry-content,
.lb-prose {
	max-width: 800px;
}

.entry-content h2 {
	font-size: clamp(1.45rem, 2.8vw, 1.9rem);
	margin: 2.8rem 0 1.05rem;
	padding-top: .4rem;
}

.entry-content h2:first-child {
	margin-top: 0;
}

.entry-content h3 {
	font-size: 1.22rem;
	margin: 2rem 0 .7rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-bottom: 1.15rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35rem;
}

.entry-content li {
	margin-bottom: .5rem;
}

.entry-content li::marker {
	color: var(--lb-accent-strong);
	font-weight: 800;
}

/* Tables */
.entry-content table,
.lb-tool table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4rem 0 1.8rem;
	font-size: .97rem;
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--lb-shadow-sm);
	display: block;
	overflow-x: auto;
}

.entry-content thead th,
.lb-tool thead th {
	background: var(--lb-ink);
	color: #fff;
	text-align: left;
	padding: .8rem 1rem;
	font-size: .85rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.entry-content tbody td,
.lb-tool tbody td {
	padding: .75rem 1rem;
	border-top: 1px solid var(--lb-line-soft);
	vertical-align: top;
}

.entry-content tbody tr:nth-child(even),
.lb-tool tbody tr:nth-child(even) {
	background: var(--lb-canvas);
}

/* FAQ accordions (JS-enhanced from h2+h3 markup) */
.lb-faq {
	border: 1px solid var(--lb-line-soft);
	border-radius: 14px;
	background: #fff;
	margin-bottom: .8rem;
	box-shadow: var(--lb-shadow-sm);
	overflow: hidden;
}

.lb-faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.25rem;
	font-weight: 750;
	color: var(--lb-ink);
	font-size: 1.03rem;
}

.lb-faq summary::-webkit-details-marker {
	display: none;
}

.lb-faq summary:hover {
	background: var(--lb-canvas);
}

.lb-faq summary .lb-faq-icon {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--lb-accent-soft);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .18s ease, background .18s ease;
}

.lb-faq summary .lb-faq-icon svg {
	width: 15px;
	height: 15px;
	stroke: var(--lb-accent-strong);
	stroke-width: 2.4;
	fill: none;
	stroke-linecap: round;
}

.lb-faq[open] summary .lb-faq-icon {
	transform: rotate(45deg);
	background: var(--lb-accent-strong);
}

.lb-faq[open] summary .lb-faq-icon svg {
	stroke: #fff;
}

.lb-faq .lb-faq-body {
	padding: 0 1.25rem 1.25rem;
	color: var(--lb-body);
}

.lb-faq .lb-faq-body p:last-child {
	margin-bottom: 0;
}

/* Related-tool cards (JS-enhanced) */
.lb-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	list-style: none;
	padding-left: 0;
	margin: 1.4rem 0 2rem;
}

.lb-related-grid li {
	margin: 0;
}

.lb-related-grid a {
	display: block;
	height: 100%;
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: 14px;
	padding: 1.15rem 1.25rem;
	box-shadow: var(--lb-shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	text-decoration: none;
}

.lb-related-grid a:hover {
	transform: translateY(-3px);
	box-shadow: var(--lb-shadow);
	border-color: #cfe6da;
	text-decoration: none;
}

.lb-related-grid a strong,
.lb-related-grid a b {
	display: block;
	color: var(--lb-ink);
	font-size: 1.02rem;
	margin-bottom: .25rem;
}

.lb-related-grid a span {
	display: block;
	color: var(--lb-muted);
	font-size: .9rem;
}

@media (max-width: 640px) {
	.lb-related-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   CATEGORY HUBS, BREADCRUMBS, ENTRY HEADERS
   ============================================================ */

/* Page hero band for interior pages */
.lb-page-hero {
	background: linear-gradient(180deg, var(--lb-canvas) 0%, var(--lb-paper) 100%);
	border-bottom: 1px solid var(--lb-line-soft);
	padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.8rem, 4vw, 2.8rem);
}

.lb-page-hero h1 {
	font-size: clamp(2rem, 4.4vw, 3rem);
	margin: .7rem 0 .8rem;
	text-wrap: balance;
}

.lb-page-hero .lb-lede {
	font-size: 1.15rem;
	color: var(--lb-muted);
	max-width: 720px;
	margin: 0;
}

/* Breadcrumbs */
.rank-math-breadcrumb,
.lb-breadcrumbs {
	font-size: .86rem;
	font-weight: 600;
	color: var(--lb-faint);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
}

.rank-math-breadcrumb a,
.lb-breadcrumbs a {
	color: var(--lb-muted);
}

.rank-math-breadcrumb a:hover,
.lb-breadcrumbs a:hover {
	color: var(--lb-accent-strong);
}

.rank-math-breadcrumb .separator,
.lb-breadcrumbs .separator {
	color: #c3ccd9;
}

/* Category hub tool lists become rich cards (class added by lb-site.js
   only when every list item leads with a link — advisory lists untouched) */
.entry-content > ul.lb-hub-grid {
	list-style: none;
	padding-left: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.1rem;
	margin: 1.6rem 0 2.2rem;
}

.entry-content > ul.lb-hub-grid > li {
	margin: 0;
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	padding: 1.3rem 1.35rem;
	box-shadow: var(--lb-shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease;
}

.entry-content > ul.lb-hub-grid > li:hover {
	transform: translateY(-3px);
	box-shadow: var(--lb-shadow);
}

.entry-content > ul.lb-hub-grid > li > a:first-child {
	font-weight: 800;
	font-size: 1.08rem;
	color: var(--lb-ink);
	display: inline-block;
	margin-bottom: .3rem;
}

.entry-content > ul.lb-hub-grid > li > a:first-child:hover {
	color: var(--lb-accent-strong);
}

@media (max-width: 680px) {
	.entry-content > ul.lb-hub-grid {
		grid-template-columns: 1fr;
	}
}

/* Trust/legal pages */
body.lb-trust-page .entry-content {
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: 20px;
	box-shadow: var(--lb-shadow);
	padding: clamp(1.6rem, 4vw, 3rem);
	margin-top: 2rem;
	margin-bottom: 3rem;
}

/* Contact email callout */
.lb-contact-card {
	background: var(--lb-ink);
	color: #dbe4f0;
	border-radius: 20px;
	padding: clamp(1.8rem, 4vw, 2.8rem);
	text-align: center;
	margin: 2.2rem 0;
	box-shadow: var(--lb-shadow-lg);
}

.lb-contact-card h2,
.lb-contact-card h3 {
	color: #fff;
	margin-top: 0;
}

.lb-contact-card a {
	color: #7de3b5;
	font-weight: 800;
	font-size: 1.25rem;
	word-break: break-all;
}

/* ============================================================
   FOOTER — dark ink, multi-column, professional
   ============================================================ */

.site-footer .footer-widgets {
	background: var(--lb-ink);
	color: #aebdd2;
	padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

.site-footer .footer-widgets .widget-title,
.site-footer .footer-widgets .widgettitle {
	color: #fff;
	font-size: .95rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 1.1rem;
}

.site-footer .footer-widgets a {
	color: #aebdd2;
}

.site-footer .footer-widgets a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

.site-footer .footer-widgets ul li {
	margin-bottom: .55rem;
}

.site-footer .footer-widgets .widget {
	margin-bottom: 2rem;
}

.footer-widgets .lb-foot-brand {
	color: #fff;
	font-size: 1.3rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	margin-bottom: .8rem;
	display: block;
}

.site-footer .site-info {
	background: #0a1220;
	color: #7e8fa8;
	font-size: .88rem;
	padding: 1.3rem 0;
	text-align: center;
}

.site-footer .site-info a {
	color: #aebdd2;
}

/* ============================================================
   BLOG / SEARCH / 404
   ============================================================ */

.search .site-main .page-header,
.archive .site-main .page-header {
	margin-bottom: 2rem;
}

.lb-results-list {
	display: grid;
	gap: 1.1rem;
}

.lb-results-list article {
	background: #fff;
	border: 1px solid var(--lb-line-soft);
	border-radius: var(--lb-radius);
	padding: 1.4rem 1.5rem;
	box-shadow: var(--lb-shadow-sm);
}

.lb-results-list .entry-title {
	font-size: 1.3rem;
	margin: 0 0 .4rem;
}

.lb-results-list .entry-title a {
	color: var(--lb-ink);
}

.lb-results-list .entry-title a:hover {
	color: var(--lb-accent-strong);
}

.lb-results-list .entry-summary {
	color: var(--lb-muted);
	margin: 0;
}

/* 404 */
.lb-404 {
	text-align: center;
	padding: clamp(3rem, 8vw, 6rem) 0;
}

.lb-404 .lb-404-code {
	font-size: clamp(4.5rem, 12vw, 8rem);
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1;
	background: linear-gradient(135deg, var(--lb-accent-bright), var(--lb-accent-strong));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lb-404 h1 {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	margin: 1rem 0 .8rem;
}

.lb-404 p {
	color: var(--lb-muted);
	max-width: 520px;
	margin: 0 auto 1.8rem;
}

.lb-404 .lb-404-tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .7rem;
	margin-top: 2.2rem;
}

.lb-404 .lb-404-tools a {
	display: inline-flex;
	align-items: center;
	padding: .7rem 1.2rem;
	border: 1px solid var(--lb-line);
	border-radius: 999px;
	font-weight: 700;
	color: var(--lb-ink);
	background: #fff;
	min-height: 48px;
}

.lb-404 .lb-404-tools a:hover {
	border-color: var(--lb-accent);
	color: var(--lb-accent-strong);
	text-decoration: none;
}

/* Search form (404, no-results) */
.search-form {
	display: flex;
	gap: .5rem;
	max-width: 520px;
	margin: 0 auto;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	width: 100%;
	border: 1.5px solid var(--lb-line);
	border-radius: 12px;
	padding: .8rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	min-height: 52px;
}

.search-form .search-field:focus {
	border-color: var(--lb-accent);
	outline: none;
	box-shadow: 0 0 0 4px rgba(18, 165, 111, .14);
}

.search-form .search-submit {
	background: var(--lb-accent-strong);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 0 1.5rem;
	font-weight: 800;
	cursor: pointer;
	min-height: 52px;
}

/* ============================================================
   MOTION + MISC
   ============================================================ */

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

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

/* Keep GP content images tidy */
.entry-content img {
	border-radius: 12px;
}

/* Gutenberg button compat */
.wp-block-buttons {
	gap: .7rem;
}

/* Premium footer */
.lb-footer {
	background:
		radial-gradient(700px 260px at 50% 0%, rgba(18, 165, 111, .08), transparent 65%),
		var(--lb-ink);
	color: #9fb0c7;
	padding: 4rem 0 0;
	margin-top: 0;
}

.lb-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 3rem;
}

.lb-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	color: #fff;
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: -.03em;
	text-decoration: none;
}

.lb-footer-logo:hover {
	text-decoration: none;
	color: #fff;
}

.lb-footer-mark {
	width: 1.05em;
	height: 1.05em;
	border-radius: .3em;
	background: linear-gradient(135deg, var(--lb-accent-bright), var(--lb-accent-strong));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 2px 8px rgba(11, 122, 85, .5);
	flex: none;
}

.lb-footer-brand p {
	margin: 1.1rem 0 0;
	font-size: .95rem;
	line-height: 1.7;
	max-width: 320px;
	color: #8b9cb3;
}

.lb-footer-col h3 {
	color: #fff;
	font-size: .82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .09em;
	margin: 0 0 1.15rem;
}

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

.lb-footer-col li {
	margin: 0 0 .7rem;
}

.lb-footer-col a {
	color: #9fb0c7;
	text-decoration: none;
	font-size: .95rem;
	transition: color .15s ease;
}

.lb-footer-col a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lb-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .09);
	padding: 1.5rem 0;
}

.lb-footer-bottom p {
	margin: 0;
	font-size: .88rem;
	color: #7d8ea6;
	text-align: center;
}

@media (max-width: 900px) {
	.lb-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 540px) {
	.lb-footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.lb-footer {
		padding-top: 3rem;
	}
}

/* Print: keep it clean */
@media print {
	.site-header,
	.site-footer,
	.lb-hero-search,
	.lb-cta-band {
		display: none;
	}
}

/* ==========================================================================
   v1.0.9 — Premium single-post article design
   Readable column, editorial typography, TOC, callouts, FAQs, related posts.
   ========================================================================== */

.single-post #primary .entry-content {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--lb-body);
}
.single-post #primary .entry-content p { margin: 0 0 1.5em; }
.single-post #primary .entry-content ul,
.single-post #primary .entry-content ol { margin: 0 0 1.5em 1.25em; }
.single-post #primary .entry-content li { margin-bottom: .55em; }
.single-post #primary .entry-content li::marker { color: var(--lb-accent); font-weight: 700; }

.lb-post-meta {
	max-width: 780px;
	margin: 0 auto 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	font-size: .875rem;
	color: var(--lb-muted);
}
.lb-post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.lb-post-meta .lb-updated {
	background: var(--lb-accent-faint);
	color: var(--lb-accent-strong);
	border: 1px solid var(--lb-accent-soft);
	border-radius: 999px;
	padding: .15rem .75rem;
	font-weight: 600;
	font-size: .78rem;
}

p.lb-lead {
	font-size: 1.28rem;
	line-height: 1.65;
	color: var(--lb-ink-2);
	font-weight: 500;
}

.single-post #primary .entry-content h2 {
	font-size: 1.65rem;
	line-height: 1.3;
	letter-spacing: -.015em;
	color: var(--lb-ink);
	margin: 2.4em 0 .8em;
	padding-top: .4em;
	border-top: 1px solid var(--lb-line-soft);
	scroll-margin-top: 90px;
}
.single-post #primary .entry-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 1.5em; }
.single-post #primary .entry-content h3 {
	font-size: 1.28rem;
	color: var(--lb-ink);
	margin: 1.8em 0 .6em;
	scroll-margin-top: 90px;
}
.single-post #primary .entry-content h4 { font-size: 1.1rem; color: var(--lb-ink); margin: 1.5em 0 .5em; }

.lb-toc {
	background: var(--lb-canvas);
	border: 1px solid var(--lb-line);
	border-radius: 14px;
	padding: 1.4rem 1.6rem;
	margin: 0 0 2.2rem;
}
.lb-toc-title {
	font-weight: 800;
	color: var(--lb-ink);
	margin: 0 0 .7rem;
	font-size: 1rem;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.lb-toc ol { margin: 0 !important; padding-left: 1.2rem; }
.lb-toc li { margin-bottom: .4rem !important; }
.lb-toc a { color: var(--lb-body); text-decoration: none; border-bottom: 1px dotted var(--lb-faint); }
.lb-toc a:hover { color: var(--lb-accent-strong); border-bottom-color: var(--lb-accent); }

.lb-callout {
	background: var(--lb-accent-faint);
	border: 1px solid var(--lb-accent-soft);
	border-left: 4px solid var(--lb-accent);
	border-radius: 0 12px 12px 0;
	padding: 1.1rem 1.3rem;
	margin: 0 0 1.6em;
}
.lb-callout p:last-child { margin-bottom: 0 !important; }
.lb-callout-warning {
	background: #fff8ec;
	border-color: #f5e3bd;
	border-left-color: var(--lb-gold);
}
.lb-takeaways {
	background: var(--lb-ink);
	color: #e8eef6;
	border-radius: 14px;
	padding: 1.5rem 1.7rem;
	margin: 0 0 2rem;
}
.lb-takeaways-title { font-weight: 800; font-size: 1.05rem; margin: 0 0 .8rem; color: #fff; }
.lb-takeaways ul { margin: 0 !important; padding: 0; list-style: none; }
.lb-takeaways li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem !important; }
.lb-takeaways li::before {
	content: "✓";
	position: absolute; left: 0; top: 0;
	color: var(--lb-accent-bright); font-weight: 800;
}
.lb-takeaways li::marker { content: none; }

.single-post #primary .entry-content blockquote {
	border-left: 4px solid var(--lb-accent);
	background: var(--lb-canvas);
	margin: 0 0 1.6em;
	padding: 1.1rem 1.4rem;
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: var(--lb-ink-2);
}
.single-post #primary .entry-content blockquote p:last-child { margin-bottom: 0; }

table.lb-table { width: 100%; border-collapse: collapse; margin: 0 0 1.8em; font-size: .95rem; }
table.lb-table th {
	background: var(--lb-ink); color: #fff; text-align: left;
	padding: .7rem .9rem; font-weight: 700;
}
table.lb-table th:first-child { border-radius: 10px 0 0 0; }
table.lb-table th:last-child { border-radius: 0 10px 0 0; }
table.lb-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--lb-line); }
table.lb-table tr:nth-child(even) td { background: var(--lb-canvas); }

details.lb-faq {
	border: 1px solid var(--lb-line);
	border-radius: 12px;
	margin-bottom: .8rem;
	background: #fff;
	overflow: hidden;
}
details.lb-faq summary {
	cursor: pointer;
	padding: 1rem 1.25rem;
	font-weight: 700;
	color: var(--lb-ink);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
details.lb-faq summary::-webkit-details-marker { display: none; }
details.lb-faq summary::after {
	content: "+";
	flex: none;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--lb-accent-faint);
	color: var(--lb-accent-strong);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.15rem; font-weight: 700;
}
details.lb-faq[open] summary::after { content: "–"; }
details.lb-faq .lb-faq-a { padding: 0 1.25rem 1.15rem; color: var(--lb-body); }
details.lb-faq .lb-faq-a p:last-child { margin-bottom: 0; }

.single-post #primary .entry-content code {
	background: var(--lb-canvas);
	border: 1px solid var(--lb-line);
	border-radius: 6px;
	padding: .1em .4em;
	font-size: .88em;
	color: var(--lb-accent-strong);
}
.single-post #primary .entry-content a { color: var(--lb-accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.single-post #primary .entry-content a:hover { color: var(--lb-accent); }

.lb-related-wrap { max-width: 1120px; margin: 3.5rem auto 0; }
.lb-related-title { font-size: 1.4rem; color: var(--lb-ink); margin: 0 0 1.2rem; letter-spacing: -.01em; }
.lb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lb-related-card {
	display: block;
	background: #fff;
	border: 1px solid var(--lb-line);
	border-radius: 14px;
	padding: 1.35rem 1.4rem;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease;
}
.lb-related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,27,45,.10); }
.lb-related-card h3 { font-size: 1.05rem; color: var(--lb-ink); margin: 0 0 .5rem; line-height: 1.4; }
.lb-related-card p { font-size: .88rem; color: var(--lb-muted); margin: 0; line-height: 1.6; }
.lb-related-card .lb-related-cta { display: inline-block; margin-top: .7rem; font-size: .85rem; font-weight: 700; color: var(--lb-accent-strong); }

@media (max-width: 860px) {
	.lb-related-grid { grid-template-columns: 1fr; }
	.single-post #primary .entry-content { font-size: 1rem; }
	p.lb-lead { font-size: 1.15rem; }
}
