/* Site Builder — Law Firm Insights Hub widget styles */

.sb-lf-hub {
	position: relative;
	width: 100%;
	font-family: var(--sb-font-sans);
}

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

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

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

/* ------------------------------------------------------------------
   Intro band — heading + the three choice cards
   ------------------------------------------------------------------ */

.sb-lf-hub-intro {
	position: relative;
	background-color: #0a1730;
	overflow: hidden;
}

/* A faint diagonal weave, so the navy block is not a flat slab. */
.sb-lf-hub-intro::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.022) 0,
		rgba(255, 255, 255, 0.022) 1px,
		transparent 1px,
		transparent 9px
	);
	pointer-events: none;
}

.sb-lf-hub-intro-inner,
.sb-lf-hub-main-inner {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	padding: 96px 48px;
}

.sb-lf-hub-main-inner {
	padding: 72px 48px 96px;
}

.sb-lf-hub-header {
	margin-bottom: 56px;
	max-width: 720px;
}

.sb-lf-hub-eyebrow {
	color: #c9a227;
	font-family: var(--sb-font-serif);
	font-style: italic;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: var(--sb-hero-eyebrow-tracking);
	text-transform: uppercase;
	margin-bottom: 12px;
}

/* Page hero — matched to the homepage hero headline. */
.sb-lf-hub-heading {
	margin: 0;
	color: #ffffff;
	font-family: var(--sb-font-serif);
	text-transform: uppercase;
	font-weight: var(--sb-hero-title-weight);
	font-size: var(--sb-hero-title-size);
	line-height: var(--sb-hero-title-leading);
	letter-spacing: var(--sb-hero-title-tracking);
}

.sb-lf-hub-description {
	margin: 18px 0 0;
	max-width: 560px;
	color: rgba(255, 255, 255, 0.66);
	font-size: 16px;
	line-height: 1.75;
}

/* --- choice cards --- */

.sb-lf-hub-routes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.sb-lf-hub-route {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 32px 30px 26px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.04);
	color: inherit;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.3s ease,
		background-color 0.3s ease,
		box-shadow 0.4s ease;
}

.sb-lf-hub-route:hover,
.sb-lf-hub-route:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(var(--sb-hub-accent-rgb, 201, 162, 39), 0.55);
	background-color: rgba(255, 255, 255, 0.06);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
	outline: none;
}

.sb-lf-hub-route-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 20px;
	border-radius: 50%;
	color: var(--sb-hub-accent, #c9a227);
	background-color: rgba(var(--sb-hub-accent-rgb, 201, 162, 39), 0.12);
}

.sb-lf-hub-glyph {
	width: 22px;
	height: 22px;
}

.sb-lf-hub-glyph-sm {
	width: 16px;
	height: 16px;
}

.sb-lf-hub-route-title {
	display: block;
	color: #ffffff;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
}

.sb-lf-hub-route-desc {
	display: block;
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 14.5px;
	line-height: 1.7;
}

.sb-lf-hub-route-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sb-lf-hub-route-count {
	color: rgba(255, 255, 255, 0.45);
	font-size: 12.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sb-lf-hub-route-arrow {
	display: inline-flex;
	color: var(--sb-hub-accent, #c9a227);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-lf-hub-route:hover .sb-lf-hub-route-arrow {
	transform: translateX(5px);
}

/* ------------------------------------------------------------------
   Grid band — filter tabs + post cards
   ------------------------------------------------------------------ */

.sb-lf-hub-main {
	background-color: #faf9f6;
}

.sb-lf-hub-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
}

.sb-lf-hub-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px solid rgba(21, 19, 18, 0.12);
	border-radius: 999px;
	background-color: #ffffff;
	color: #5c5852;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.28s ease, color 0.28s ease,
		border-color 0.28s ease, transform 0.28s ease;
}

.sb-lf-hub-tab:hover {
	border-color: rgba(var(--sb-hub-accent-rgb, 21, 19, 18), 0.45);
	color: #151312;
	transform: translateY(-1px);
}

.sb-lf-hub-tab:focus-visible {
	outline: 2px solid var(--sb-hub-accent, #c9a227);
	outline-offset: 2px;
}

.sb-lf-hub-tab.is-active {
	background-color: #0a1730;
	border-color: #0a1730;
	color: #ffffff;
}

.sb-lf-hub-tab-count {
	display: inline-block;
	min-width: 20px;
	padding: 1px 6px;
	border-radius: 999px;
	background-color: rgba(21, 19, 18, 0.07);
	color: inherit;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.sb-lf-hub-tab.is-active .sb-lf-hub-tab-count {
	background-color: rgba(255, 255, 255, 0.18);
}

/* --- cards --- */

/* `stretch` (not `start`) so every card in a row shares a height and the
   "Read in full" links line up — .sb-lf-hub-card-more is pushed down by
   margin-top:auto to make that work. */
.sb-lf-hub-grid {
	--sb-hub-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--sb-hub-cols), minmax(0, 1fr));
	gap: 36px;
	align-items: stretch;
}

.sb-lf-hub-card {
	position: relative;
	border-radius: 8px;
	background-color: #ffffff;
	box-shadow: 0 1px 2px rgba(21, 19, 18, 0.06),
		0 10px 26px rgba(21, 19, 18, 0.05);
	overflow: hidden;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.45s ease;
}

.sb-lf-hub-card[hidden] {
	display: none;
}

.sb-lf-hub-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 2px 4px rgba(21, 19, 18, 0.07),
		0 22px 48px rgba(21, 19, 18, 0.12);
}

.sb-lf-hub-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.sb-lf-hub-card-image {
	position: relative;
	display: block;
	height: 208px;
	background-color: #e9e6df;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* A soft foot-shadow keeps the category tag readable over pale photos. */
.sb-lf-hub-card-image::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 55%;
	background: linear-gradient(to top, rgba(10, 23, 48, 0.5), transparent);
	pointer-events: none;
}

.sb-lf-hub-tag {
	position: absolute;
	z-index: 1;
	left: 14px;
	bottom: 14px;
	padding: 5px 11px;
	border-radius: 3px;
	background-color: var(--sb-hub-accent, #c9a227);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.sb-lf-hub-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px 24px 26px;
}

.sb-lf-hub-card-date {
	display: block;
	margin-bottom: 10px;
	color: #8d8981;
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sb-lf-hub-card-title {
	display: block;
	color: #151312;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.38;
	transition: color 0.28s ease;
}

.sb-lf-hub-card:hover .sb-lf-hub-card-title {
	color: var(--sb-hub-accent, #c9a227);
}

.sb-lf-hub-card-excerpt {
	display: block;
	margin-top: 12px;
	color: #6b6863;
	font-size: 14.5px;
	line-height: 1.72;
}

.sb-lf-hub-card-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 20px;
	color: var(--sb-hub-accent, #c9a227);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sb-lf-hub-card-arrow {
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-lf-hub-card:hover .sb-lf-hub-card-arrow {
	transform: translateX(4px);
}

.sb-lf-hub-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 48px 0;
	color: #8d8981;
	font-size: 15px;
	text-align: center;
}

.sb-lf-hub-empty[hidden] {
	display: none;
}

/* ------------------------------------------------------------------
   Reveal-on-scroll — same contract as the sibling widgets:
   `.sb-lf-reveal` alone is always visible; JS adds `.sb-lf-pending` only to
   off-screen items, then flips them to `.sb-lf-visible`.
   ------------------------------------------------------------------ */

.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(32px);
}

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

/* Cards animate on filter change too — see filterHubGrid() in
   law-firm-insights.js, which re-applies this class. */
.sb-lf-hub-card.sb-lf-hub-enter {
	animation: sbHubEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sbHubEnter {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

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

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1000px) {
	.sb-lf-hub-routes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sb-lf-hub-grid {
		--sb-hub-cols: 2 !important;
	}
}

@media (max-width: 700px) {
	.sb-lf-hub-intro-inner {
		padding: 64px 24px;
	}

	.sb-lf-hub-main-inner {
		padding: 48px 24px 72px;
	}

	.sb-lf-hub-routes {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.sb-lf-hub-grid {
		--sb-hub-cols: 1 !important;
	}

	.sb-lf-hub-header {
		margin-bottom: 36px;
	}

	.sb-lf-hub-route {
		padding: 26px 24px 22px;
	}

	/* Let the tab row scroll sideways rather than wrap to three lines. */
	.sb-lf-hub-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		margin-left: -24px;
		margin-right: -24px;
		padding-left: 24px;
		padding-right: 24px;
		scrollbar-width: none;
	}

	.sb-lf-hub-tabs::-webkit-scrollbar {
		display: none;
	}

	.sb-lf-hub-tab {
		flex: 0 0 auto;
	}
}
