/* Shop Local directory. Brand: red #CB333B, navy #003162, text #161616, body #505050, Fira Sans. */
.ct-sl { --sl-red: #CB333B; --sl-navy: #003162; --sl-text: #161616; --sl-body: #505050; --sl-line: #dfe3e8; --sl-tint: #f5f7fa; font-family: "Fira Sans", Arial, sans-serif; color: var(--sl-text); }
.ct-sl__filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; background: var(--sl-tint); border: 1px solid var(--sl-line); border-radius: 6px; }
.ct-sl__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-sl__field label { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--sl-navy); }
.ct-sl__field input, .ct-sl__field select { width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; font-size: 16px; border: 1px solid #b8c0ca; border-radius: 4px; background: #fff; color: var(--sl-text); }
.ct-sl__actions { display: flex; gap: 12px; align-items: center; }
.ct-sl__actions button { min-height: 44px; padding: 0 22px; font: inherit; font-weight: 600; font-size: 16px; color: #fff; background: var(--sl-red); border: 0; border-radius: 4px; cursor: pointer; }
.ct-sl__actions button:hover, .ct-sl__actions button:focus-visible { background: #a8282f; }
.ct-sl__reset { color: var(--sl-navy); font-weight: 600; }
.ct-sl :focus-visible { outline: 3px solid var(--sl-navy); outline-offset: 2px; }
.ct-sl__count { margin: 16px 0 8px; font-size: 14px; color: var(--sl-body); }
.ct-sl__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ct-sl__card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--sl-line); border-top: 3px solid var(--sl-red); border-radius: 4px; background: #fff; }
.ct-sl__name { margin: 0; font-size: 20px; line-height: 1.25; color: var(--sl-navy); }
.ct-sl__meta { margin: 0; font-size: 13px; font-weight: 600; color: var(--sl-red); }
.ct-sl__desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sl-body); }
.ct-sl__addr { margin: 0; font-style: normal; font-size: 15px; line-height: 1.45; color: var(--sl-text); }
.ct-sl__links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; font-weight: 600; }
.ct-sl__links a { color: var(--sl-navy); text-decoration: underline; text-underline-offset: 2px; padding: 6px 0; }
.ct-sl__empty { padding: 24px; text-align: center; background: var(--sl-tint); border-radius: 4px; }
@media (max-width: 760px) {
	.ct-sl__filters { grid-template-columns: 1fr 1fr; }
	.ct-sl__filters .ct-sl__field:first-child, .ct-sl__actions { grid-column: 1 / -1; }
	.ct-sl__actions button { flex: 1; }
}
@media (max-width: 480px) {
	.ct-sl__filters { grid-template-columns: 1fr; padding: 12px; }
	.ct-sl__list { grid-template-columns: 1fr; }
}

/* ---------- Page templates (form + directory) ---------- */
.ct-sl-page { --sl-red: #CB333B; --sl-navy: #003162; --sl-text: #161616; --sl-body: #505050; --sl-line: #dfe3e8; --sl-tint: #f5f7fa;
	max-width: 1200px; margin: 0 auto; padding: 24px 16px 56px; color: var(--sl-text); box-sizing: border-box; }
.ct-sl-page *, .ct-sl-page *::before, .ct-sl-page *::after { box-sizing: border-box; }
.ct-sl-page .ct-sl { font-family: inherit; }
.ct-sl-page :focus-visible { outline: 3px solid var(--sl-navy); outline-offset: 2px; }

body .ct-sl-page .ct-sl-hero { position: relative; overflow: hidden; margin: 0 0 24px; padding: 30px 28px 34px; border-radius: 6px; color: #fff;
	background: var(--sl-navy) linear-gradient(135deg, #003162 0%, #0b2546 100%); }
body .ct-sl-page .ct-sl-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--sl-red); }
body .ct-sl-page .ct-sl-hero__kicker { margin: 0 0 8px !important; font-size: 13px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #f3c5c8 !important; }
body .ct-sl-page .ct-sl-hero__title { margin: 0 0 10px !important; font-size: clamp(28px, 5vw, 44px) !important; line-height: 1.1 !important; color: #fff !important; text-wrap: balance; }
body .ct-sl-page .ct-sl-hero__intro, body .ct-sl-page .ct-sl-hero__intro p { max-width: 62ch; margin: 0 0 8px !important; font-size: 18px !important; line-height: 1.5 !important; color: #e6ecf3 !important; }
body .ct-sl-page .ct-sl-hero__intro p:last-child { margin-bottom: 0 !important; }
body .ct-sl-page .ct-sl-hero__intro a { color: #fff !important; }

body .ct-sl-page .ct-sl-h2 { margin: 0 0 8px !important; font-size: 22px !important; line-height: 1.25 !important; color: var(--sl-navy) !important; }
.ct-sl-form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ct-sl-formcard { padding: 24px 24px 8px; background: #fff; border: 1px solid var(--sl-line); border-top: 4px solid var(--sl-red); border-radius: 6px; }
body .ct-sl-page .ct-sl-formcard__note { margin: 0 0 16px !important; font-size: 14px !important; color: var(--sl-body) !important; }
.ct-sl-req { color: var(--sl-red); font-weight: 700; }
.ct-sl-side { position: sticky; top: 16px; padding: 20px; background: var(--sl-tint); border-radius: 6px; }
.ct-sl-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.ct-sl-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--sl-body); }
.ct-sl-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sl-navy); color: #fff; font-weight: 700; font-size: 15px; }
.ct-sl-steps strong { color: var(--sl-text); }
body .ct-sl-page .ct-sl-side__private { margin: 0 0 12px !important; padding-top: 12px; border-top: 1px solid var(--sl-line); font-size: 14px !important; color: var(--sl-body) !important; }
.ct-sl-textlink { font-weight: 700; color: var(--sl-navy) !important; }

/* Ninja Forms inside the card */
.ct-sl-formcard .nf-form-title, .ct-sl-formcard .nf-before-form-content .nf-form-fields-required { display: none; }
.ct-sl-formcard .nf-field-container { margin-bottom: 16px !important; }
.ct-sl-formcard .nf-field-label label { font-size: 14px !important; font-weight: 600 !important; color: var(--sl-navy) !important; margin-bottom: 4px !important; }
.ct-sl-formcard .ninja-forms-req-symbol { color: var(--sl-red) !important; }
body .ct-sl-formcard .nf-field-element input:not([type=button]):not([type=submit]), body .ct-sl-formcard .nf-field-element select, body .ct-sl-formcard .nf-field-element textarea {
	width: 100% !important; min-height: 46px !important; padding: 8px 12px !important; font: inherit !important; font-size: 16px !important; color: var(--sl-text) !important;
	background: #fff !important; border: 1px solid #a9b2bd !important; border-radius: 4px !important; box-shadow: none !important; }
body .ct-sl-formcard .nf-field-element textarea { min-height: 110px !important; height: 110px !important; }
body .ct-sl-formcard .nf-field-element input:focus, body .ct-sl-formcard .nf-field-element select:focus, body .ct-sl-formcard .nf-field-element textarea:focus { border-color: var(--sl-navy) !important; outline: 2px solid rgba(0, 49, 98, .25); }
.ct-sl-formcard .nf-input-limit { font-size: 13px; color: var(--sl-body); margin-top: 4px; }
.ct-sl-formcard .html-container { margin: 8px 0 4px; padding: 14px 16px; background: var(--sl-tint); border-left: 4px solid var(--sl-navy); border-radius: 0 4px 4px 0; font-size: 15px; line-height: 1.5; }
.ct-sl-formcard .html-container p { margin: 0 !important; font-size: 15px !important; }
body .ct-sl-formcard .submit-wrap input[type=button], body .ct-sl-formcard .submit-wrap input[type=submit] {
	width: 100% !important; min-height: 52px !important; padding: 0 20px !important; font: inherit !important; font-size: 18px !important; font-weight: 700 !important;
	color: #fff !important; background: var(--sl-red) !important; border: 0 !important; border-radius: 4px !important; cursor: pointer; }
body .ct-sl-formcard .submit-wrap input:hover, body .ct-sl-formcard .submit-wrap input:focus-visible { background: #a8282f !important; }
.ct-sl-formcard .nf-error-msg, .ct-sl-formcard .nf-error .nf-error-msg { color: #8c1d24 !important; font-size: 14px; }
.ct-sl-formcard .nf-response-msg { padding: 16px; background: #e3efe8; color: #14482c; border-radius: 4px; font-size: 17px; }

/* Directory bottom call to action */
.ct-sl-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 32px; padding: 24px 28px; background: var(--sl-tint); border: 2px solid var(--sl-navy); border-radius: 6px; }
body .ct-sl-page .ct-sl-cta__title { margin: 0 0 4px !important; font-size: 24px !important; line-height: 1.2 !important; color: var(--sl-navy) !important; }
body .ct-sl-page .ct-sl-cta__text { margin: 0 !important; font-size: 16px !important; color: var(--sl-body) !important; max-width: 60ch; }
body .ct-sl-page .ct-sl-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; font-size: 17px; font-weight: 700; color: #fff !important; background: var(--sl-red); border-radius: 4px; text-decoration: none !important; }
body .ct-sl-page .ct-sl-btn:hover { background: #a8282f; }

@media (max-width: 860px) {
	.ct-sl-form-layout { grid-template-columns: 1fr; gap: 20px; }
	.ct-sl-side { position: static; }
	.ct-sl-cta { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
	.ct-sl-page { padding: 16px 16px 40px; }
	body .ct-sl-page .ct-sl-hero { padding: 22px 18px 26px; }
	body .ct-sl-page .ct-sl-hero__intro, body .ct-sl-page .ct-sl-hero__intro p { font-size: 16px !important; }
	.ct-sl-formcard { padding: 18px 16px 4px; }
	/* On phones the steps would push the form down; keep them short. */
	.ct-sl-steps li { font-size: 15px; }
}
.ct-sl-steps li > span { min-width: 0; padding-top: 4px; }
/* Theme restyles search inputs and buttons; restate the directory filter controls. */
body .ct-sl .ct-sl__field input, body .ct-sl .ct-sl__field select { min-height: 46px !important; height: 46px !important; margin: 0 !important; padding: 8px 12px !important; font-size: 16px !important; line-height: 1.3 !important; color: #161616 !important; background: #fff !important; border: 1px solid #a9b2bd !important; border-radius: 4px !important; box-shadow: none !important; }
body .ct-sl .ct-sl__field label { margin: 0 !important; line-height: 1.3 !important; }
body .ct-sl .ct-sl__actions button { display: inline-flex !important; align-items: center; justify-content: center; height: 46px !important; min-height: 46px !important; padding: 0 24px !important; line-height: 1 !important; font-size: 16px !important; }

/* Ad units (fluid, like the rest of LN1: width follows the column, ratio is kept) */
.ct-sl-ad { margin: 0 0 24px; }
.ct-sl-ad::before { content: "Advertisement"; display: block; margin: 0 0 6px; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; }
.ct-sl-ad img { display: block; width: 100% !important; height: auto !important; }
.ct-sl-ad--billboard { max-width: 970px; margin-left: auto; margin-right: auto; }
.ct-sl-ad--mobile { display: none; max-width: 480px; }
.ct-sl-ad--rects { margin-top: 32px; }
.ct-sl-ad--rects > * { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ct-sl-ad--rects > * > * { flex: 0 1 300px; max-width: 300px; margin: 0 !important; float: none !important; }
@media (max-width: 727px) {
	.ct-sl-ad--desktop { display: none; }
	.ct-sl-ad--mobile { display: block; }
}
/* Advanced Ads wraps the 3 ads one level deeper (placement > entity > ad); lay out that level. */
.ct-sl-ad--rects > * { display: block !important; }
.ct-sl-ad--rects [class*="entity-placement"] { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ct-sl-ad--rects [class*="entity-placement"] > * { flex: 0 1 300px; max-width: 300px; margin: 0 !important; float: none !important; }
.ct-sl-ad--rects [class*="entity-placement"] { max-width: none !important; width: 100% !important; flex: none !important; }

/* Directory with the same ad sidebar as article pages: Slider, then the 3-up stack. */
.ct-sl-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.ct-sl-with-sidebar__ads { display: flex; flex-direction: column; gap: 24px; }
.ct-sl-with-sidebar__ads .ct-sl-ad { margin: 0; }
.ct-sl-with-sidebar__ads .ct-sl-ad::before { content: none; }
.ct-sl-ad--stack [class*="entity-placement"] { display: flex !important; flex-direction: column; gap: 16px; align-items: center; }
.ct-sl-ad--stack [class*="entity-placement"] > * { width: 100%; max-width: 300px; margin: 0 !important; float: none !important; }
.ct-sl-with-sidebar .ct-sl__filters { grid-template-columns: 1fr 1fr; }
.ct-sl-with-sidebar .ct-sl__filters .ct-sl__field:first-child, .ct-sl-with-sidebar .ct-sl__actions { grid-column: 1 / -1; }
@media (max-width: 960px) {
	.ct-sl-with-sidebar { grid-template-columns: 1fr; }
	.ct-sl-with-sidebar__ads { align-items: center; }
	.ct-sl-with-sidebar__ads .ct-sl-ad { width: 100%; max-width: 300px; }
}
@media (max-width: 480px) { .ct-sl-with-sidebar .ct-sl__filters { grid-template-columns: 1fr; } }

/* v1.4: the article sidebar itself (general-sidebar) sits beside the whole directory, header included. */
.ct-sl-with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.ct-sl-with-sidebar__main .ct-sl-hero { margin-top: 0; }
.ct-sl-with-sidebar__side { min-width: 0; }
.ct-sl-with-sidebar__side .widget { margin: 0 0 20px; }
.ct-sl-with-sidebar__side img { max-width: 100%; height: auto; }
/* Same "ADVERTISEMENT" markers the child theme draws on article sidebars (it scopes them to .single-post). */
.ct-sl-page .widget.local-widget > .local-target::before,
.ct-sl-page .widget.local-widget > .local-highlight-wrapper > .local-target::before,
.ct-sl-page .widget.local-widget .unslider::before {
	content: "ADVERTISEMENT"; display: block; font-size: 10px; line-height: 1; letter-spacing: 0.14em;
	text-transform: uppercase; color: #767676; text-align: center; margin-bottom: 6px;
}
@media (max-width: 960px) {
	.ct-sl-with-sidebar__side { width: 100%; max-width: 300px; margin: 0 auto; }
}
@media (max-width: 960px) { .ct-sl-page .ct-sl-with-sidebar { grid-template-columns: minmax(0, 1fr); } }
/* 3-up rectangles: one marker and real space per ad. Matches the innermost element holding the ad's linked image,
   so it works both logged out and logged in (Advanced Ads adds highlight wrappers for logged-in staff). */
.ct-sl-page .widget.local-widget:not(:has(.unslider)) div:has(> a > img),
.ct-sl-page .widget.local-widget:not(:has(.unslider)) div:has(> img) { margin: 0 0 28px !important; }
.ct-sl-page .widget.local-widget:not(:has(.unslider)) div:has(> a > img)::before,
.ct-sl-page .widget.local-widget:not(:has(.unslider)) div:has(> img)::before {
	content: "ADVERTISEMENT"; display: block; font-size: 10px; line-height: 1; letter-spacing: 0.14em;
	text-transform: uppercase; color: #767676; text-align: center; margin: 0 0 6px;
}
