/* Site Builder — Law Firm Blog / Article Template widget styles */

.sb-lf-bt {
	position: relative;
	width: 100%;
	background-color: #ffffff;
	font-family: var(--sb-font-sans);
}

.sb-lf-bt * {
	box-sizing: border-box;
}

.sb-lf-bt a {
	text-decoration: none;
}

.sb-lf-stretch {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sb-lf-bt-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 80px 48px;
}

.sb-lf-bt-layout {
	display: flex;
	align-items: flex-start;
	gap: 64px;
}

/* Article */
.sb-lf-bt-article {
	display: flex;
	gap: 28px;
	flex: 1 1 auto;
	min-width: 0;
}

.sb-lf-bt-date {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-right: 24px;
	border-right: 2px solid #c9a227;
	text-align: center;
}

.sb-lf-bt-date-day {
	color: #c7c3bc;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: 52px;
	line-height: 1;
}

.sb-lf-bt-date-month,
.sb-lf-bt-date-year {
	display: block;
	color: #8a8680;
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sb-lf-bt-date-month {
	margin-top: 4px;
}

.sb-lf-bt-article-body {
	flex: 1 1 auto;
	min-width: 0;
}

/* Masthead — a decorative band behind the article's opening. Purely
   atmospheric (the title is real text below it), so it carries aria-hidden
   and a scrim to keep the page from looking like a photo blog. */
.sb-lf-bt-masthead {
	position: relative;
	height: 190px;
	margin-bottom: 28px;
	border-radius: 8px;
	background-color: #0a1730;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.sb-lf-bt-masthead::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(10, 23, 48, 0.72),
		rgba(10, 23, 48, 0.34) 55%,
		rgba(201, 162, 39, 0.18)
	);
}

.sb-lf-bt-eyebrow {
	margin-bottom: 12px;
	color: #b6912c;
	font-family: var(--sb-font-serif);
	font-style: italic;
	font-weight: 600;
	font-size: 13.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sb-lf-bt-title {
	margin: 0 0 24px;
	color: #151312;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.3;
}

.sb-lf-bt-image {
	display: block;
	height: 320px;
	margin-bottom: 26px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 24px 46px -22px rgba(21, 19, 18, 0.35);
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-lf-bt-article:hover .sb-lf-bt-image {
	transform: scale(1.015);
}

.sb-lf-bt-content {
	color: #4a4742;
	font-size: 16px;
	line-height: 1.85;
}

.sb-lf-bt-content p {
	margin: 0 0 20px;
}

.sb-lf-bt-content p:last-child {
	margin-bottom: 0;
}

.sb-lf-bt-content strong {
	color: #151312;
}

.sb-lf-bt-content a {
	color: #b6912c;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.sb-lf-bt-content a:hover {
	color: #151312;
}

/* ------------------------------------------------------------------
   Article typography

   The body is `apply_filters( 'the_content', … )` echoed straight into
   .sb-lf-bt-content, so every heading, quote and list in a real post lands
   here. Without these rules they fall back to raw browser defaults and a
   long article reads as an undifferentiated wall of text.
   ------------------------------------------------------------------ */

.sb-lf-bt-content h2,
.sb-lf-bt-content h3,
.sb-lf-bt-content h4 {
	color: #151312;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	line-height: 1.32;
}

.sb-lf-bt-content h2 {
	position: relative;
	margin: 52px 0 20px;
	padding-bottom: 14px;
	font-size: clamp(21px, 2vw, 25px);
	letter-spacing: -0.005em;
}

/* A short gold rule, echoing the date rail and the search button. */
.sb-lf-bt-content h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 52px;
	height: 2px;
	background-color: #c9a227;
}

.sb-lf-bt-content h3 {
	margin: 40px 0 14px;
	font-size: clamp(18px, 1.6vw, 20px);
}

.sb-lf-bt-content h4 {
	margin: 32px 0 12px;
	font-size: 17px;
}

.sb-lf-bt-content > h2:first-child,
.sb-lf-bt-content > h3:first-child {
	margin-top: 0;
}

/* Standfirst — the opening summary paragraph. */
.sb-lf-bt-content .sb-lf-bt-standfirst {
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(21, 19, 18, 0.1);
	color: #2f2c28;
	font-family: var(--sb-font-serif);
	font-size: 19px;
	font-style: italic;
	line-height: 1.65;
}

.sb-lf-bt-content blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 28px;
	border-left: 3px solid #c9a227;
	color: #2f2c28;
	font-family: var(--sb-font-serif);
	font-size: 18px;
	line-height: 1.72;
}

.sb-lf-bt-content blockquote p {
	margin: 0 0 14px;
}

.sb-lf-bt-content blockquote p:last-child {
	margin-bottom: 0;
}

.sb-lf-bt-content blockquote em,
.sb-lf-bt-content blockquote i {
	font-style: italic;
}

.sb-lf-bt-content blockquote cite {
	display: block;
	margin-top: 14px;
	color: #6b6863;
	font-family: var(--sb-font-sans);
	font-size: 13.5px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.sb-lf-bt-content blockquote cite::before {
	content: "— ";
}

.sb-lf-bt-content em,
.sb-lf-bt-content i {
	font-style: italic;
}

.sb-lf-bt-content ul,
.sb-lf-bt-content ol {
	margin: 0 0 22px;
	padding-left: 22px;
}

.sb-lf-bt-content li {
	margin-bottom: 10px;
	padding-left: 6px;
}

.sb-lf-bt-content li::marker {
	color: #c9a227;
	font-weight: 700;
}

.sb-lf-bt-content li:last-child {
	margin-bottom: 0;
}

.sb-lf-bt-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.sb-lf-bt-content figure {
	margin: 32px 0;
}

.sb-lf-bt-content figcaption {
	margin-top: 10px;
	color: #8d8981;
	font-size: 13.5px;
	font-style: italic;
}

.sb-lf-bt-content hr {
	margin: 40px 0;
	border: 0;
	border-top: 1px solid rgba(21, 19, 18, 0.1);
}

/* Sign-off — the "instruct him via his clerks" note that closes an article. */
.sb-lf-bt-content .sb-lf-bt-signoff {
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid rgba(21, 19, 18, 0.1);
	color: #6b6863;
	font-size: 15px;
	font-style: italic;
}

/* Wide content must scroll inside itself rather than push the page. */
.sb-lf-bt-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	margin-bottom: 22px;
	font-size: 15px;
}

.sb-lf-bt-content th,
.sb-lf-bt-content td {
	padding: 10px 14px;
	border: 1px solid rgba(21, 19, 18, 0.12);
	text-align: left;
}

.sb-lf-bt-content th {
	background-color: #f6f5f1;
	color: #151312;
	font-weight: 700;
}

/* Sidebar */
.sb-lf-bt-sidebar {
	flex-basis: 28%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* The rail follows the reader down a long article. `top` clears the site's
   sticky header; the sidebar itself is a flex child of an align-items:
   flex-start row, so sticky works without touching the layout.

   Deliberately no max-height here. Constraining the rail's height makes its
   flex children shrink, and .sb-lf-bt-box sets overflow:hidden (for the
   diagonal texture), so the boxes would clip their own text rather than
   overflow. The rail is simply as tall as its content; when that exceeds the
   viewport it sticks at the top and the article scrolls past it. */
.sb-lf-bt-sidebar-rail {
	position: sticky;
	top: 108px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sb-lf-bt-sidebar-rail > .sb-lf-bt-box {
	flex-shrink: 0;
}

/* --- Enquiry card ---
   Two classes deliberately: `.sb-lf-bt-box` sets the light sidebar
   background further down this file, and a single-class selector here would
   lose to it on source order, leaving white text on cream. */
.sb-lf-bt-box.sb-lf-bt-cta-box {
	background: #0a1730;
}

.sb-lf-bt-cta-title {
	margin: 0 0 12px;
	color: #ffffff;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: 20px;
}

.sb-lf-bt-cta-text {
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.66);
	font-size: 14.5px;
	line-height: 1.7;
}

.sb-lf-bt-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 4px;
	background-color: #c9a227;
	color: #151312;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.28s ease, transform 0.28s ease;
}

.sb-lf-bt-cta-btn:hover {
	background-color: #ffffff;
	transform: translateY(-2px);
}

.sb-lf-bt-cta-arrow {
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-lf-bt-cta-btn:hover .sb-lf-bt-cta-arrow {
	transform: translateX(4px);
}

.sb-lf-bt-cta-email {
	display: block;
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 13.5px;
	text-decoration: none;
	word-break: break-all;
	transition: color 0.22s ease;
}

.sb-lf-bt-cta-email:hover {
	color: #c9a227;
}

/* --- More Like This --- */
.sb-lf-bt-related-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-lf-bt-related-item + .sb-lf-bt-related-item {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(21, 19, 18, 0.08);
}

.sb-lf-bt-related-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.sb-lf-bt-related-thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	background-color: #e9e6df;
	background-size: cover;
	background-position: center;
}

.sb-lf-bt-related-body {
	min-width: 0;
}

.sb-lf-bt-related-title {
	display: block;
	color: #151312;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.42;
	transition: color 0.22s ease;
}

.sb-lf-bt-related-link:hover .sb-lf-bt-related-title {
	color: #b6912c;
}

.sb-lf-bt-related-date {
	display: block;
	margin-top: 5px;
	color: #8d8981;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sb-lf-bt-box {
	position: relative;
	overflow: hidden;
	padding: 28px;
	background: #f6f5f1;
	border-radius: 6px;
}

/* Faint diagonal texture behind sidebar boxes, toggleable */
.sb-lf-bt-pattern-yes .sb-lf-bt-box::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.5;
	background-image: repeating-linear-gradient(
		45deg,
		rgba(21, 19, 18, 0.035) 0,
		rgba(21, 19, 18, 0.035) 1px,
		transparent 1px,
		transparent 14px
	);
	pointer-events: none;
}

.sb-lf-bt-box > * {
	position: relative;
	z-index: 1;
}

.sb-lf-bt-search-title,
.sb-lf-bt-categories-title {
	margin: 0 0 18px;
	color: #151312;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: 19px;
}

.sb-lf-bt-search-form {
	display: flex;
	gap: 0;
}

.sb-lf-bt-search-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 13px 16px;
	border: none;
	background: #ffffff;
	color: #151312;
	font-size: 14px;
}

.sb-lf-bt-search-input:focus {
	outline: 2px solid #c9a227;
	outline-offset: -2px;
}

.sb-lf-bt-search-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	background: #c9a227;
	color: #151312;
	border: none;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}

.sb-lf-bt-search-btn:hover {
	background: #151312;
	color: #c9a227;
	transform: scale(1.05);
}

.sb-lf-bt-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sb-lf-bt-cat-item {
	border-bottom: 1px solid rgba(21, 19, 18, 0.08);
	transition: opacity 0.6s ease, transform 0.6s ease;
	transition-delay: var(--sb-delay, 0s);
}

.sb-lf-bt-cat-item:last-child {
	border-bottom: none;
}

.sb-lf-bt-cat-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 4px;
	color: #4a4742;
	font-weight: 600;
	font-size: 14.5px;
	transition: color 0.2s ease, gap 0.25s ease;
}

.sb-lf-bt-cat-link:hover {
	color: #b6912c;
	gap: 14px;
}

.sb-lf-bt-cat-arrow {
	flex: none;
	color: #c9a227;
	font-size: 16px;
	line-height: 1;
	transition: transform 0.25s ease;
}

.sb-lf-bt-cat-link:hover .sb-lf-bt-cat-arrow {
	transform: translateX(3px);
}

.sb-lf-bt-cat-label {
	flex: 1 1 auto;
}

.sb-lf-bt-cat-count {
	flex: none;
	color: #a09c95;
	font-size: 12.5px;
}

/* Scroll-reveal utility — fails open by default (see law-firm-insights.js) */
.sb-lf-reveal {
	transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--sb-delay, 0s);
}

.sb-lf-reveal.sb-lf-pending {
	opacity: 0;
	transform: translateY(28px);
}

.sb-lf-reveal.sb-lf-pending.sb-lf-reveal-zoom {
	transform: scale(0.97);
}

.sb-lf-reveal.sb-lf-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.sb-lf-bt * {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	.sb-lf-reveal.sb-lf-pending {
		opacity: 1;
		transform: none;
	}
}

/* Responsive */
@media (max-width: 900px) {
	.sb-lf-bt-layout {
		flex-direction: column;
		gap: 48px;
	}

	.sb-lf-bt-sidebar {
		flex-basis: auto;
		width: 100%;
	}

	/* Stacked below the article, there is nothing left to stick to. */
	.sb-lf-bt-sidebar-rail {
		position: static;
		max-height: none;
		overflow-y: visible;
	}

	.sb-lf-bt-masthead {
		height: 140px;
	}
}

@media (max-width: 600px) {
	.sb-lf-bt-inner {
		padding: 56px 24px;
	}

	.sb-lf-bt-article {
		flex-direction: column;
		gap: 16px;
	}

	.sb-lf-bt-date {
		flex-direction: row;
		gap: 10px;
		border-right: none;
		border-bottom: 2px solid #c9a227;
		padding: 0 0 12px;
	}

	.sb-lf-bt-date-day {
		font-size: 32px;
	}

	.sb-lf-bt-image {
		height: 220px;
	}
}
