/**
 * Lariback Finance — institutional palette for Twenty Twenty-Five (+ legacy Blocksy selectors harmless if unused).
 */

:root {
	--lb-bg-page: #f4f6f9;
	--lb-bg-surface: #ffffff;
	--lb-border: #e2e8f0;
	--lb-text: #1e293b;
	--lb-text-muted: #64748b;
	--lb-heading: #0f2744;
	--lb-link: #1e4976;
	--lb-link-hover: #14365a;
	--lb-accent: #b8860b;
	--lb-accent-soft: rgba(184, 134, 11, 0.12);
	--lb-radius: 6px;
	--lb-shadow: 0 1px 2px rgba(15, 39, 68, 0.06), 0 4px 12px rgba(15, 39, 68, 0.04);
}

html {
	-webkit-font-smoothing: antialiased;
}

body {
	font-family:
		Inter,
		system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	color: var(--lb-text);
	background-color: var(--lb-bg-page);
	line-height: 1.65;
}

/* ---------- Twenty Twenty-Five / block theme shell ---------- */

.wp-site-blocks {
	min-height: 100vh;
}

.wp-site-blocks > header,
header.wp-block-template-part {
	background-color: var(--lb-bg-surface) !important;
	border-bottom: 1px solid var(--lb-border);
	box-shadow: 0 1px 0 rgba(15, 39, 68, 0.04);
}

.wp-site-blocks > footer,
footer.wp-block-template-part {
	background-color: #0f2744 !important;
	color: #e8eef5 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-site-blocks > footer a,
footer.wp-block-template-part a {
	color: #cbd5e1 !important;
}

.wp-site-blocks > footer a:hover,
footer.wp-block-template-part a:hover {
	color: #ffffff !important;
}

.wp-block-navigation-item__content {
	font-weight: 500;
}

.wp-block-navigation .wp-block-navigation-item__content {
	color: var(--lb-heading);
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--lb-link-hover);
}

.wp-block-site-title a,
.wp-block-site-title .wp-block-site-title__link {
	color: var(--lb-heading) !important;
	text-decoration: none;
	font-weight: 700 !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
	font-family: Inter, system-ui, sans-serif !important;
	color: var(--lb-heading) !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em !important;
}

h1 {
	font-weight: 700 !important;
	letter-spacing: -0.03em !important;
}

/* Links */
a {
	color: var(--lb-link);
	text-underline-offset: 3px;
	transition:
		color 0.15s ease,
		opacity 0.15s ease;
}

a:hover,
a:focus {
	color: var(--lb-link-hover);
}

/* Legacy Blocksy wrappers (no-op on TT5) */
.ct-container,
.ct-section-inner-wrap,
.site-content,
#main {
	background-color: transparent;
}

body:not(.home) .ct-section-inner-wrap {
	max-width: min(1140px, 92vw);
}

.hero-section {
	display: none !important;
}

/* Single posts — TT5 blocks + legacy meta */
.single-post .entry-meta,
.single-post .meta-author,
.single-post .meta-date,
.single-post .meta-categories,
.single-post .meta-tags,
.single-post .ct-meta-element-author,
.single-post .ct-meta-element-date,
.single-post .wp-block-post-author,
.single-post .wp-block-post-author-name,
.single-post .wp-block-post-date,
.single-post .wp-block-post-terms,
.single-post .taxonomy-category.wp-block-post-terms {
	display: none !important;
}

.single-post .ct-comments-container,
.single-post #comments,
.single-post .comments-area,
.single-post .ct-comments,
.single-post .comment-respond,
.single-post .wp-block-comments,
.single-post .wp-block-comments-pagination {
	display: none !important;
}

/* Sidebar widgets column */
#secondary,
aside.ct-sidebar,
#sidebar {
	display: none !important;
}

/* Homepage — Blocksy paths */
body.home #main .ct-container-full,
body.home #main .ct-container {
	max-width: none !important;
	width: 100% !important;
}

body.home #main .ct-section-inner-wrap {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.ct-divider,
hr.wp-block-separator {
	border-color: var(--lb-border) !important;
	opacity: 1 !important;
}

.wp-block-group.has-background,
.ct-frosted,
.stk-block-column.is-style-default {
	border-radius: var(--lb-radius);
}

.wp-block-group.has-background {
	box-shadow: var(--lb-shadow);
	border: 1px solid var(--lb-border);
	background-color: var(--lb-bg-surface) !important;
}

.wp-block-button__link,
.ct-button,
button[type='submit'],
input[type='submit'],
.btn.btn-primary {
	font-family: Inter, system-ui, sans-serif !important;
	font-weight: 600 !important;
	border-radius: var(--lb-radius) !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease !important;
}

.wp-block-button__link:not(.has-text-color),
.ct-button:not(.ghost):not(.outline),
.btn-primary {
	background-color: var(--lb-heading) !important;
	border: 1px solid var(--lb-heading) !important;
	color: #ffffff !important;
}

.wp-block-button__link:not(.has-text-color):hover,
.ct-button:not(.ghost):not(.outline):hover,
.btn-primary:hover {
	background-color: var(--lb-link-hover) !important;
	border-color: var(--lb-link-hover) !important;
	color: #ffffff !important;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.ct-button.ghost,
.ct-button.outline {
	background-color: transparent !important;
	border: 1px solid var(--lb-border) !important;
	color: var(--lb-heading) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.ct-button.ghost:hover {
	border-color: var(--lb-heading) !important;
	background-color: var(--lb-accent-soft) !important;
	color: var(--lb-heading) !important;
}

header#header,
.ct-header {
	background-color: var(--lb-bg-surface) !important;
	border-bottom: 1px solid var(--lb-border);
	box-shadow: 0 1px 0 rgba(15, 39, 68, 0.04);
}

footer#footer,
.ct-footer {
	background-color: #0f2744 !important;
	color: #e8eef5 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer#footer a,
.ct-footer a {
	color: #cbd5e1 !important;
}

footer#footer a:hover,
.ct-footer a:hover {
	color: #ffffff !important;
}

p,
.ct-text-block,
.wp-block-paragraph {
	color: var(--lb-text);
}

.text-muted,
.ct-meta {
	color: var(--lb-text-muted) !important;
}

.has-accent-underline mark,
.lb-accent-text {
	color: var(--lb-accent);
	font-weight: 600;
}
