/**
 * Locations dropdown panel + /locations/ hub grid. Prefix: sln-
 *
 * The dropdown is a progressive enhancement of the Kadence "Locations"
 * nav item: locations.js promotes the footer <nav data-sln-src> list into
 * .sln-panel and adds .sln-toggle. All selectors are sln-scoped except
 * the three rules that neutralise Kadence's own submenu chrome for the
 * enhanced item.
 */

/* Kadence font convention, with a hardcoded fallback stack. */
.sln-src,
.sln-panel,
.sln-toggle,
.sln-hub-grid {
	font-family: var(--font-body), 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ------------------------------------------------------------------ *
 * Footer source list (no-JS fallback; removed by JS on success)
 * ------------------------------------------------------------------ */
.sln-src {
	max-width: 640px;
	margin: 24px auto 0;
	padding: 0 16px;
	color: rgba(255, 255, 255, 0.82);
}

.sln-src-heading {
	margin: 0 0 10px !important;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9) !important;
}

.sln-src-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 20px;
	margin: 0;
	padding: 0 0 0.1px;
	list-style: none;
}

.sln-src-list a {
	display: block;
	padding: 4px 0;
	font-size: 0.92rem;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.82) !important;
	background-color: transparent !important;
}

.sln-src-list a:hover,
.sln-src-list a:focus-visible {
	color: #ffffff !important;
	text-decoration: underline;
}

.sln-src-all {
	display: inline-block;
	margin-top: 12px;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	color: #ffffff !important;
	background-color: transparent !important;
}

.sln-src-all:hover,
.sln-src-all:focus-visible {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ *
 * Shared utilities
 * ------------------------------------------------------------------ */
.sln-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ *
 * Enhanced nav item: neutralise Kadence's own submenu chrome
 * ------------------------------------------------------------------ */
.sln-enh .sub-menu,
.sln-enh .dropdown-nav-toggle,
.sln-enh .drawer-sub-toggle {
	display: none !important;
}

.sln-enh--desktop {
	position: relative;
}

/* ------------------------------------------------------------------ *
 * The toggle caret button (added by JS)
 * ------------------------------------------------------------------ */
.sln-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	min-width: 32px;
	height: 32px;
	padding: 0;
	margin: 0 0 0 2px;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	vertical-align: middle;
	color: inherit;
	background-color: transparent !important;
	-webkit-tap-highlight-color: transparent;
}

.sln-toggle svg {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.sln-enh.sln-open .sln-toggle svg {
	transform: rotate(180deg);
}

/* Mobile: the label and the caret sit on one row (like the native
   Services / Guides drawer items), and the panel wraps to full width
   below them. The <a> and .sln-toggle are direct children of the <li>
   added by locations.js; making the <li> a flex row does this with no
   JS change. */
.sln-enh--mobile {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sln-enh--mobile > a {
	/* flex-basis 0 + width:auto so Kadence's ".mobile-navigation a
	   { width: 100% }" does not push the caret onto its own line. */
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	border: 0 !important;
	align-self: center;
}

.sln-enh--mobile > .sln-toggle {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 44px;
	padding: 0 0.9em;
	border-radius: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	align-self: stretch;
}

.sln-enh--mobile > .sln-panel {
	flex: 1 1 100%;
}

/* ------------------------------------------------------------------ *
 * The panel (base = desktop dropdown)
 * ------------------------------------------------------------------ */
.sln-panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 999;
	width: min(560px, 92vw);
	max-height: min(70vh, 520px);
	overflow-y: auto;
	padding: 16px;
	background: #ffffff;
	border: 1px solid rgba(8, 80, 65, 0.08);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(8, 80, 65, 0.16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.sln-panel--right {
	left: auto;
	right: 0;
}

.sln-enh--desktop.sln-open .sln-panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.sln-search {
	position: sticky;
	top: 0;
	z-index: 1;
	padding-bottom: 10px;
	background: #ffffff;
}

.sln-q {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	font: inherit;
	font-size: 0.95rem;
	color: #0a2b22;
	border: 1px solid rgba(8, 80, 65, 0.2);
	border-radius: 8px;
	background: #ffffff;
}

.sln-q:focus {
	outline: 2px solid #1D9E75;
	outline-offset: 1px;
	border-color: #1D9E75;
}

.sln-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 16px;
	margin: 0;
	padding: 0 0 0.1px;
	list-style: none;
}

.sln-list li {
	margin: 0;
}

.sln-list li[hidden] {
	display: none;
}

.sln-list a {
	display: block;
	padding: 8px 10px;
	font-size: 0.95rem;
	line-height: 1.3;
	text-decoration: none;
	border-radius: 6px;
	color: #0a2b22 !important;
	background-color: transparent !important;
	transition: transform 0.15s ease;
}

.sln-list a:hover,
.sln-list a:focus-visible {
	color: #0a2b22 !important;
	background-color: #E1F5EE !important;
	transform: translateX(2px);
}

.sln-empty {
	margin: 8px 4px 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #6b7c76;
}

.sln-all {
	display: block;
	margin-top: 10px;
	padding-top: 10px;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	border-top: 1px solid rgba(8, 80, 65, 0.12);
	color: #17845f !important;
	background-color: transparent !important;
}

.sln-all:hover,
.sln-all:focus-visible {
	color: #085041 !important;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ *
 * Mobile: inline accordion inside the Kadence drawer. The drawer is
 * dark navy (Kadence --global-palette3, #0f2a43) with white text, so
 * the panel is transparent and its controls are re-themed for dark.
 * ------------------------------------------------------------------ */
.sln-enh--mobile .sln-panel {
	position: static;
	width: 100%;
	max-height: min(62vh, 440px);
	margin-top: 0;
	padding: 4px 0 12px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
	transition: none;
	display: none;
}

.sln-enh--mobile.sln-open .sln-panel {
	display: block;
}

.sln-enh--mobile .sln-search {
	background: #0f2a43;
	padding: 4px 0 12px;
}

.sln-enh--mobile .sln-q {
	/* -webkit-text-fill-color + !important: the Kadence drawer applies a
	   dark input text colour that otherwise wins here, making typed text
	   invisible against the dark panel. */
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	caret-color: #6de8b8;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.25);
}

.sln-enh--mobile .sln-q::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.sln-enh--mobile .sln-q:focus {
	outline-color: #6de8b8;
	border-color: #6de8b8;
}

.sln-enh--mobile .sln-list {
	grid-template-columns: 1fr;
	gap: 0;
}

.sln-enh--mobile .sln-list a {
	padding: 13px 8px;
	border-radius: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #ffffff !important;
}

.sln-enh--mobile .sln-list a:hover,
.sln-enh--mobile .sln-list a:focus-visible {
	background-color: rgba(255, 255, 255, 0.1) !important;
	color: #ffffff !important;
	transform: none;
}

.sln-enh--mobile .sln-empty {
	margin: 12px 8px 0;
	color: rgba(255, 255, 255, 0.72);
}

.sln-enh--mobile .sln-all {
	margin: 4px 8px 0;
	padding-top: 12px;
	border-top-color: rgba(255, 255, 255, 0.18);
	color: #6de8b8 !important;
}

.sln-enh--mobile .sln-all:hover,
.sln-enh--mobile .sln-all:focus-visible {
	color: #a8f5d3 !important;
}

/* Narrow desktop safety: single column if the panel is ever shown small. */
@media (max-width: 600px) {
	.sln-enh--desktop .sln-list {
		grid-template-columns: 1fr;
	}
}

/* ================================================================== *
 * /locations/ hub page. Mirrors the /guides/ hub (sgh-) design system
 * one-to-one so the two hubs read as the same site. Scoped under
 * .sln-hub; the page body wraps everything in <div class="sln-hub">.
 * ================================================================== */
.sln-hub {
	--teal: #1D9E75;
	--teal-dark: #17845f;
	--green: #085041;
	--mint: #E1F5EE;
	--bg: #F7FAF8;
	--grey: #f4f6f5;
	--text: #1a1a1a;
	--muted: #555f6b;
	--border: #e4e8ee;
	--font-disp: 'Fraunces', Georgia, serif;
	--font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	font-family: var(--font-body);
}

.sln-hub * {
	box-sizing: border-box;
}

.sln-hub h1,
.sln-hub h2,
.sln-hub h3 {
	font-family: var(--font-disp);
	margin-top: 0 !important;
}

.sln-hub-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 64px 24px;
}

/* buttons */
.sln-hub-btn-primary,
.sln-hub-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 700;
	padding: 14px 26px;
	border-radius: 6px;
	text-decoration: none;
	line-height: 1;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sln-hub-btn-primary {
	background: var(--teal) !important;
	color: #ffffff !important;
	border: none;
	box-shadow: 0 4px 18px rgba(29, 158, 117, 0.35);
}

.sln-hub-btn-primary:hover,
.sln-hub-btn-primary:focus-visible {
	background: var(--teal-dark) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	text-decoration: none;
}

.sln-hub-btn-secondary {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #ffffff !important;
	font-weight: 600;
	padding: 13px 24px;
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.sln-hub-btn-secondary:hover,
.sln-hub-btn-secondary:focus-visible {
	background: rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	text-decoration: none;
}

/* hero */
.sln-hub-hero {
	background: var(--green);
	background-image: radial-gradient(circle at 15% 20%, rgba(29, 158, 117, 0.35), transparent 55%);
	color: #ffffff;
}

.sln-hub-hero .sln-hub-inner {
	max-width: 820px;
}

.sln-hub-h1 {
	font-size: clamp(2rem, 3.6vw, 3rem);
	font-weight: 800;
	line-height: 1.12;
	color: #ffffff !important;
	margin-bottom: 18px;
}

.sln-hub-byline {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 22px;
}

.sln-hub-byline a {
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: underline;
}

.sln-hub-byline-sep {
	margin: 0 8px;
	opacity: 0.6;
}

.sln-hub-intro {
	font-size: 1.08rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	max-width: 640px;
	margin-bottom: 26px;
}

.sln-hub-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-bottom: 30px;
}

.sln-hub-trust-item {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	gap: 6px;
}

.sln-hub-trust-item svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: #6de8b8;
}

.sln-hub-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* .sln-hub prefix on the selector so it beats Kadence's
   ".single-content p { margin-top: 0 }" (specificity 0,0,1,1). */
.sln-hub .sln-hub-subtext {
	margin-top: 28px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
}

/* card section + section header pattern */
.sln-hub-section {
	background: var(--grey);
}

.sln-hub-section-header {
	margin-bottom: 34px;
	max-width: 760px;
}

.sln-hub-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(29, 158, 117, 0.12);
	border: 1px solid rgba(29, 158, 117, 0.35);
	border-radius: 100px;
	padding: 6px 14px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--teal-dark);
	margin-bottom: 14px;
}

.sln-hub-eyebrow-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal);
	flex-shrink: 0;
}

.sln-hub-section-heading {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 800;
	color: var(--green) !important;
	margin-bottom: 12px;
}

.sln-hub-section-intro {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--muted);
}

/* borough card grid (matches .sgh-card) */
.sln-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding-bottom: 0.1px;
}

.sln-hub-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 12px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sln-hub-card:hover,
.sln-hub-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(10, 43, 34, 0.14);
	text-decoration: none;
}

.sln-hub-card-title {
	margin: 0 !important;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--green) !important;
}

.sln-hub-card:hover .sln-hub-card-title {
	color: var(--teal-dark) !important;
}

.sln-hub-card-blurb {
	flex: 1;
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--muted);
}

.sln-hub-card-meta {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
	padding-top: 8px;
	border-top: 1px solid var(--border);
	margin-top: 4px;
}

/* bottom CTA */
.sln-hub-cta {
	background: var(--green);
	background-image: radial-gradient(circle at 85% 30%, rgba(29, 158, 117, 0.35), transparent 55%);
	color: #ffffff;
	text-align: center;
}

.sln-hub-cta .sln-hub-inner {
	max-width: 680px;
}

.sln-hub-cta-title {
	font-size: clamp(1.5rem, 2.8vw, 2.1rem);
	font-weight: 800;
	color: #ffffff !important;
	margin-bottom: 14px;
}

.sln-hub-cta-sub {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 26px;
}

.sln-hub-cta-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: 18px;
}

.sln-hub-cta-trust {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.65);
}

.sln-hub-cta-trust a {
	color: #ffffff !important;
	text-decoration: underline;
}

@media (max-width: 900px) {
	.sln-hub-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.sln-hub-inner {
		padding: 44px 20px;
	}
	.sln-hub-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ *
 * Reduced motion
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.sln-panel,
	.sln-list a,
	.sln-toggle svg,
	.sln-hub-card,
	.sln-hub-btn-primary,
	.sln-hub-btn-secondary {
		transition: none !important;
	}
	/* Kill decorative motion transforms, but NOT the toggle caret's
	   open/closed rotation, which is a state indicator, not animation. */
	.sln-panel,
	.sln-list a,
	.sln-hub-card,
	.sln-hub-btn-primary,
	.sln-hub-btn-secondary {
		transform: none !important;
	}
}
