/*
Theme Name:   Sandbach Flashes
Description:  A lightweight starter theme for the Classic Editor with ACF Flexible Content "content blocks". Requires ACF PRO for the blocks; everything else works without it.
Version:      1.45.2
Requires at least: 6.0
Requires PHP: 7.4
Author:       Paul Longshaw
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  sandbach-flashes
Tags:         classic-editor, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--sc-text: #1f2328;
	--sc-muted: #5b636e;
	--sc-bg: #ffffff;
	--sc-surface: #f5f6f7;
	--sc-border: #dfe2e5;
	--sc-accent: #2f6f4e;
	--sc-accent-text: #ffffff;
	--sc-max: 1140px;
	--sc-narrow: 760px;
	--sc-gap: 1.5rem;
	--sc-radius: 6px;
	--sc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sc-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--sc-text);
	background: var(--sc-bg);
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--sc-accent); }
a:hover, a:focus { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-size: 2.25rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.375rem; }
p, ul, ol, blockquote, table, figure { margin: 0 0 1.25em; }
blockquote { border-left: 4px solid var(--sc-accent); padding: .25em 0 .25em 1.25em; color: var(--sc-muted); font-style: italic; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--sc-border); padding: .5em .75em; text-align: left; }
hr { border: 0; border-top: 1px solid var(--sc-border); margin: 2em 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--sc-surface); padding: 1em; overflow-x: auto; border-radius: var(--sc-radius); }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; height: auto; width: auto;
	display: block; left: 5px; top: 5px; padding: 12px 20px; z-index: 100000;
	background: var(--sc-bg); color: var(--sc-text); box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--sc-max); margin: 0 auto; padding: 0 1rem; }
.container--narrow { max-width: var(--sc-narrow); }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; padding: 2.5rem 0; }
.content-area.has-sidebar { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
	.content-area.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 100; border-bottom: 1px solid var(--sc-border); background: var(--sc-bg); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: var(--sf-header-h, 72px); padding-top: var(--sf-header-pad, 0px); padding-bottom: var(--sf-header-pad, 0px); }
.site-branding { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.site-title { font-size: 1.375rem; font-weight: 700; margin: 0; }
.site-title a { color: var(--sc-text); text-decoration: none; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { display: block; max-height: var(--sf-logo-h, 56px); max-width: 100%; width: auto; height: auto; }
@media (max-width: 1023px) {
	.custom-logo { max-height: var(--sf-logo-h-mobile, 44px); max-width: 60vw; }
}
.wp-custom-logo .site-title { position: absolute !important; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }

/* ---------- Top bar (above the header) ---------- */
.top-bar { --tb-bg: var(--sc-accent); --tb-text: #fff; --tb-muted: rgba(255, 255, 255, .85); --tb-btn-bg: #fff; --tb-btn-text: var(--sc-accent); position: relative; z-index: 101; background: var(--tb-bg); color: var(--tb-text); font-size: .85rem; line-height: 1.4; }
.top-bar--dark { --tb-bg: #1f2328; --tb-btn-bg: var(--sc-accent); --tb-btn-text: #fff; }
.top-bar--light { --tb-bg: var(--sc-surface, #f5f6f7); --tb-text: var(--sc-text); --tb-muted: var(--sc-muted, #5b636e); --tb-btn-bg: var(--sc-accent); --tb-btn-text: #fff; border-bottom: 1px solid var(--sc-border); }
.top-bar__inner { display: flex; align-items: center; gap: .5rem 1.5rem; min-height: 38px; padding-top: .3rem; padding-bottom: .3rem; }
.top-bar__text { margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--tb-muted); }
.top-bar__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.top-bar__text a:hover { color: var(--tb-text); }
.top-bar__nav { margin-left: auto; min-width: 0; }
.top-bar__menu { display: flex; flex-wrap: nowrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.top-bar__menu a { display: inline-block; padding: .2rem 0; color: var(--tb-text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.top-bar__menu a:hover, .top-bar__menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 3px; }
.top-bar__cta { flex: 0 0 auto; display: inline-flex; align-items: center; padding: .3rem .85rem; border-radius: 999px; background: var(--tb-btn-bg); color: var(--tb-btn-text); font-weight: 700; font-size: .8rem; text-decoration: none; white-space: nowrap; transition: filter .15s ease; }
.top-bar__text + .top-bar__cta { margin-left: auto; }
.top-bar__cta:hover { filter: brightness(1.08); color: var(--tb-btn-text); }
.top-bar a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.top-bar__cta:focus-visible { outline-color: var(--tb-text); }
.top-bar__inner > .top-bar__cta:only-child, .top-bar__inner > .top-bar__nav:only-child { margin-left: auto; }
@media (max-width: 720px) {
	.top-bar--no-phones { display: none; }
	.top-bar__text { display: none; }
	.top-bar__inner { gap: 1rem; min-height: 36px; }
	.top-bar__nav { margin-left: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
	.top-bar__nav::-webkit-scrollbar { display: none; }
	.top-bar__menu { gap: 1rem; padding-right: 1.5rem; }
	.top-bar__cta { margin-left: auto; }
}
@media print { .top-bar { display: none; } }

/* ---------- Navigation ---------- */
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a { text-decoration: none; color: var(--sc-text); }
.main-navigation .icon-chevron { display: block; transition: transform .2s ease; }
.main-navigation .is-open > .menu-item__toggle .icon-chevron { transform: rotate(180deg); }

.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; color: var(--sc-text); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); cursor: pointer; }
.menu-toggle:hover { filter: none; background: var(--sc-surface); }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, background .2s ease; }
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }
.toggled .menu-toggle__icon { background: transparent; }
.toggled .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.toggled .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Submenu toggles (chevrons and "#" labels) look like links, not buttons. */
.menu-item__toggle { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem; margin: 0; border: 0; border-radius: var(--sc-radius); background: none; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; }
.menu-item__toggle:hover { filter: none; color: var(--sc-accent); }

/* Text inside submenu links. */
.menu-item__title { display: block; }
.menu-item__desc { display: block; font-size: .8125rem; line-height: 1.4; color: var(--sc-muted); margin-top: .15rem; }

/* Mega menu columns. */
.mega-col__title { display: block; font-size: .875rem; font-weight: 600; color: var(--sc-text); padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid var(--sc-border); }
.main-navigation a.mega-col__title:hover { color: var(--sc-accent); }
.mega-col__links { display: grid; gap: .25rem; }
.mega-col__links a { display: block; padding: .5rem .5rem; margin: 0 -.5rem; border-radius: var(--sc-radius); }
.mega-col__links .menu-item__title { font-size: .9375rem; font-weight: 500; }
.mega-col__links a:hover { background: var(--sc-surface); }
.mega-col__links a:hover .menu-item__title, .mega-col__links .current-menu-item > a .menu-item__title { color: var(--sc-accent); }

/* Mega menu feature card. */
.mega-feature { font-size: .875rem; }
.mega-feature__media { position: relative; display: block; margin-bottom: 1rem; border-radius: var(--sc-radius); overflow: hidden; background: var(--sc-border); }
.mega-feature__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mega-feature__play { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.mega-feature__play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -7px 0 0 -4px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--sc-accent); }
.mega-feature__title { font-weight: 600; margin: 0 0 .35rem; }
.mega-feature__text { color: var(--sc-muted); line-height: 1.5; margin: 0 0 .75rem; }
.main-navigation .mega-feature__link { font-weight: 600; color: var(--sc-text); }
.main-navigation .mega-feature__link:hover { color: var(--sc-accent); }

/* Header buttons: outlined, with the last one solid. */
.header-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.main-navigation .header-buttons a { display: inline-block; font-size: .875rem; font-weight: 600; line-height: 1.2; padding: .6rem 1rem; border-radius: var(--sc-radius); color: var(--sc-text); box-shadow: inset 0 0 0 1px var(--sc-border); }
.main-navigation .header-buttons a:hover { box-shadow: inset 0 0 0 1px var(--sc-text); }
.main-navigation .header-buttons li:last-child a { background: var(--sc-accent); color: var(--sc-accent-text); box-shadow: none; }
.main-navigation .header-buttons li:last-child a:hover { filter: brightness(1.1); }

/* Desktop */
@media (min-width: 1024px) {
	.site-header__bar { align-items: stretch; }
	.main-navigation { display: flex; flex: 1; }
	.main-navigation__panel { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; }
	.primary-menu { display: flex; align-self: stretch; }
	.primary-menu > li { position: relative; display: flex; align-items: center; }
	.primary-menu > li > a, .primary-menu > li > .menu-item__toggle--label { padding: .5rem var(--sf-menu-pad, .75rem); font-size: .9375rem; font-weight: 500; color: var(--sc-text); }
	.primary-menu > li > a + .menu-item__toggle { margin-left: -.6rem; padding: .5rem .5rem .5rem .25rem; }
	.primary-menu > li:hover > a, .primary-menu > li:hover > .menu-item__toggle, .primary-menu > li.is-open > .menu-item__toggle,
	.primary-menu > .current-menu-item > a, .primary-menu > .current-menu-ancestor > a, .primary-menu > .current-menu-ancestor > .menu-item__toggle { color: var(--sc-accent); }

	/* Regular dropdowns. */
	.primary-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; padding: .5rem; background: var(--sc-bg); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); box-shadow: 0 12px 24px rgba(16,24,40,.08); z-index: 10; }
	.primary-menu > li > .sub-menu { top: calc(100% - .5rem); }
	.primary-menu .sub-menu li { position: relative; display: flex; align-items: center; }
	.primary-menu .sub-menu a { flex: 1; display: block; padding: .5rem .75rem; border-radius: var(--sc-radius); font-size: .9375rem; }
	.primary-menu .sub-menu a:hover { background: var(--sc-surface); color: var(--sc-accent); }
	.primary-menu .sub-menu .sub-menu { top: -.5rem; left: 100%; }
	.primary-menu .sub-menu .icon-chevron { transform: rotate(-90deg); }

	/* Mega panels span the whole header. */
	.primary-menu > li.has-mega-menu { position: static; }
	.mega-panel { position: absolute; top: 100%; left: 0; right: 0; margin-top: 1px; background: var(--sc-bg); border-bottom: 1px solid var(--sc-border); box-shadow: 0 16px 24px rgba(16,24,40,.06); overflow: hidden; }
	.mega-panel__inner { display: flex; }
	.main-navigation .mega-panel__cols { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2.5rem; padding: 2rem 2.5rem 2rem 0; }
	.mega-feature { flex: 0 0 300px; padding: 2rem 0 2rem 2rem; background: var(--sc-surface); box-shadow: 0 0 0 100vmax var(--sc-surface); clip-path: inset(0 -100vmax 0 0); }

	/* Open on hover, keyboard focus or click; hidden otherwise. */
	.primary-menu .sub-menu, .mega-panel { visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
	.primary-menu li:hover > .sub-menu, .primary-menu li:hover > .mega-panel,
	.primary-menu li.is-open > .sub-menu, .primary-menu li.is-open > .mega-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.primary-menu li.is-closed > .sub-menu, .primary-menu li.is-closed > .mega-panel { visibility: hidden; opacity: 0; }
}

/* Mobile */
@media (max-width: 1023px) {
	.site-header__bar { flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; min-height: 0; }
	.menu-toggle { display: inline-flex; }
	.main-navigation { display: contents; }
	.main-navigation__panel { display: none; width: 100%; padding: .5rem 0 1rem; border-top: 1px solid var(--sc-border); }
	.main-navigation.toggled .main-navigation__panel { display: block; }
	.primary-menu li { display: flex; flex-wrap: wrap; align-items: center; }
	.primary-menu li > a { flex: 1; padding: .75rem 0; }
	.primary-menu > li { border-bottom: 1px solid var(--sc-border); }
	.primary-menu > li > a, .primary-menu > li > .menu-item__toggle--label { font-weight: 500; }
	.primary-menu > li > .menu-item__toggle--label { flex: 1; justify-content: space-between; padding: .75rem 0; }
	.menu-item__toggle { padding: .75rem; margin-right: -.75rem; }
	.primary-menu .sub-menu, .mega-panel { display: none; flex-basis: 100%; }
	.primary-menu li.is-open > .sub-menu, .primary-menu li.is-open > .mega-panel { display: block; }
	.primary-menu .sub-menu { padding: 0 0 .5rem 1rem; }
	/* Without JavaScript the menu can't be toggled, so show it all. */
	.no-js .menu-toggle, .no-js .menu-item__toggle { display: none; }
	.no-js .main-navigation__panel, .no-js .primary-menu .sub-menu, .no-js .mega-panel { display: block; }
	.primary-menu .sub-menu li > a { padding: .5rem 0; }
	.mega-panel .container { padding: 0; }
	.main-navigation .mega-panel__cols { display: grid; gap: 1.25rem; padding: .25rem 0 1rem; }
	.primary-menu li.mega-col { display: block; }
	.mega-col__title { margin-bottom: .25rem; padding-bottom: .5rem; }
	.mega-col__links a { margin: 0; padding: .5rem 0; }
	.mega-col__links a:hover { background: none; }
	.mega-feature { margin-bottom: 1rem; padding: 1rem; background: var(--sc-surface); border-radius: var(--sc-radius); }
	.header-buttons { margin-top: 1rem; }
	.header-buttons li { flex: 1; }
	.main-navigation .header-buttons a { display: block; text-align: center; }
}
@media (min-width: 600px) and (max-width: 1023px) {
	.main-navigation .mega-panel__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Posts ---------- */
.entry { margin-bottom: 3rem; }
.entry-title { margin-top: 0; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta, .entry-footer { color: var(--sc-muted); font-size: .9rem; }
.post-thumbnail { display: block; margin-bottom: 1.25rem; }
.post-thumbnail img { border-radius: var(--sc-radius); }
.page-header { margin-bottom: 2rem; }
.page-title { margin-top: 0; }
.nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; }
.pagination .nav-links { justify-content: center; }
.page-numbers { padding: .3rem .7rem; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); text-decoration: none; }
.page-numbers.current { background: var(--sc-accent); color: var(--sc-accent-text); border-color: var(--sc-accent); }

/* ---------- Classic editor (WordPress core classes) ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { margin: .3em 0 1em; }
.wp-caption { max-width: 100%; margin-bottom: 1.25em; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--sc-muted); margin-top: .4em; }
.gallery { display: grid; gap: .75rem; margin-bottom: 1.25em; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-item { margin: 0; }
.sticky .entry-title::before { content: "\2605  "; color: var(--sc-accent); }
.bypostauthor { display: block; }
.entry-content::after, .comment-content::after { content: ""; display: table; clear: both; }

/* ---------- Sidebar & widgets ---------- */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1.1rem; margin-top: 0; }
.widget ul { padding-left: 1.1rem; }

/* ---------- Forms & buttons ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	font: inherit; padding: .55rem .75rem; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); width: 100%; max-width: 100%;
}
.button, button, input[type="submit"] {
	display: inline-block; font: inherit; font-weight: 600; padding: .65rem 1.25rem; border: 0; border-radius: var(--sc-radius);
	background: var(--sc-accent); color: var(--sc-accent-text); text-decoration: none; cursor: pointer;
}
.button:hover, button:hover, input[type="submit"]:hover { filter: brightness(1.1); }
.button--outline { background: transparent; color: var(--sc-accent); box-shadow: inset 0 0 0 2px var(--sc-accent); }
.search-form { display: flex; gap: .5rem; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 3rem; border-top: 1px solid var(--sc-border); padding-top: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { margin-bottom: 1.5rem; }
.comment-meta { font-size: .9rem; color: var(--sc-muted); }
.comment-author .avatar { float: left; margin-right: .75rem; border-radius: 50%; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--sc-border); background: var(--sc-bg); padding: 3.5rem 0 2rem; font-size: .875rem; line-height: 1.5; color: var(--sc-muted); }
.site-footer a { color: var(--sc-muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible, .site-footer a[aria-current="page"] { color: var(--sc-accent); }
.site-footer__top { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__brand { max-width: 300px; }
.site-footer .site-footer__logo { display: inline-block; font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--sc-text); }
.site-footer__logo img { display: block; max-height: 36px; width: auto; }
.site-footer__text { margin: 1rem 0 0; }
.site-footer__text p { margin: 0 0 .6em; }
.site-footer__text p:last-child { margin-bottom: 0; }
.site-footer__text a { color: inherit; }
.site-footer__columns { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__columns--menus { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; align-items: start; }
.footer-col__title, .footer-col .widget-title { margin: 0 0 1rem; font-size: .875rem; font-weight: 600; color: var(--sc-text); }
.footer-col__links, .footer-col .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-col__links li + li, .footer-col .widget li + li { margin-top: .6rem; }
.footer-col .widget { margin-bottom: 1.5rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.site-footer .social-links a { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--sc-text); }
.site-footer .social-links a:hover { color: var(--sc-accent); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--sc-border); }
.site-footer .site-info { margin: 0; }
.footer-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.site-footer .footer-navigation a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) {
	.site-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.site-footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
	.site-footer__columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
	.site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- ACF content blocks ---------- */
.content-blocks { margin-top: 2rem; }
.cb { padding: 2.5rem 0; }
.cb--bg-light { background: var(--sc-surface); }
.cb--bg-accent { background: var(--sc-accent); color: var(--sc-accent-text); }
.cb--bg-accent a:not(.button) { color: inherit; }
.cb--bg-accent .button { background: var(--sc-accent-text); color: var(--sc-accent); }
.cb__title { margin-top: 0; }

.cb-image-text__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
	.cb-image-text__inner { grid-template-columns: 1fr 1fr; }
	.cb-image-text--right .cb-image-text__media { order: 2; }
}
.cb-image-text__media img { border-radius: var(--sc-radius); display: block; }

.cb-columns__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) {
	.cb-columns__grid--2 { grid-template-columns: repeat(2, 1fr); }
	.cb-columns__grid--3 { grid-template-columns: repeat(3, 1fr); }
	.cb-columns__grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.cb-columns__col > :last-child { margin-bottom: 0; }

.cb-gallery__grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) {
	.cb-gallery__grid--3 { grid-template-columns: repeat(3, 1fr); }
	.cb-gallery__grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.cb-gallery__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sc-radius); }
.cb-gallery__grid figcaption { font-size: .85rem; color: var(--sc-muted); margin-top: .3rem; }

.cb-cta { text-align: center; }
.cb-cta__text { max-width: 640px; margin: 0 auto 1.5rem; }
.cb-cta__buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.cb-quote blockquote { font-size: 1.35rem; margin: 0; }
.cb-quote cite { display: block; margin-top: .75rem; font-style: normal; font-size: 1rem; color: var(--sc-muted); }

.cb-embed__frame { position: relative; aspect-ratio: 16 / 9; }
.cb-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lead { font-size: 1.25rem; color: var(--sc-muted); }
.cb-text__content--narrow { max-width: var(--sc-narrow); }
.cb-quote .container { max-width: var(--sc-narrow); }
.site-main--blocks .content-blocks { margin-top: -2.5rem; } .site-main--blocks .cb:last-child { margin-bottom: -2.5rem; }

/* ---------- Hero block ---------- */
.cb-hero { padding: 2.5rem 0; }
.cb-hero--full { padding: 0; }
.cb-hero__slider { position: relative; overflow: hidden; display: grid; min-height: max(var(--hero-h, 260px), 160px); background: #55585d; color: #fff; isolation: isolate; }
.cb-hero--contained .cb-hero__slider { border-radius: var(--sc-radius); }
.cb-hero--shadow .cb-hero__slider { box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .28), 0 3px 8px rgba(15, 23, 42, .10); }
.cb-hero--full.cb-hero--shadow { position: relative; z-index: 1; }
.cb-hero--small { --hero-h: 190px; }
.cb-hero--medium { --hero-h: 260px; }
.cb-hero--large { --hero-h: 340px; }
.cb-hero--screen { --hero-h: calc((100vh - var(--sf-header-h, 72px)) / 2); --hero-h: calc((100svh - var(--sf-header-h, 72px)) / 2); }
.cb-hero__slide { position: relative; grid-area: 1 / 1; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.cb-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.cb-hero__media, .cb-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cb-hero__media img { object-fit: cover; object-position: center; display: block; }
.cb-hero__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(20, 30, 45, .45); }
.cb-hero__placeholder svg { width: 96px; height: 96px; }
.cb-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,var(--hero-shade, .45)) 0%, rgba(0,0,0,calc(var(--hero-shade, .45) * .55)) 60%, rgba(0,0,0,calc(var(--hero-shade, .45) * .35)) 100%); }
.cb-hero--centre .cb-hero__slide::after { background: rgba(0,0,0,var(--hero-shade, .45)); }
.cb-hero--shade-none { --hero-shade: 0; }
.cb-hero--shade-light { --hero-shade: .25; }
.cb-hero--shade-medium { --hero-shade: .45; }
.cb-hero--shade-dark { --hero-shade: .65; }
.cb-hero__content { position: relative; z-index: 1; width: 100%; padding: 2rem clamp(1.25rem, 4vw, 2.5rem); }
.cb-hero__slider:has(.cb-hero__controls) .cb-hero__content { padding-bottom: 4rem; }
.cb-hero--full .cb-hero__content { max-width: var(--sc-max); margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.cb-hero__inner { max-width: 34rem; }
.cb-hero--centre .cb-hero__inner { margin: 0 auto; text-align: center; }
.cb-hero__headline { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; margin: 0 0 .6rem; }
.cb-hero__text { font-size: clamp(.95rem, 1.4vw, 1.1rem); line-height: 1.55; margin: 0 0 1.75rem; color: rgba(255,255,255,.92); }
.cb-hero__text:last-child { margin-bottom: 0; }
.cb-hero__text p { margin: 0 0 .75em; }
.cb-hero__text p:last-child { margin-bottom: 0; }
.cb-hero__text a { color: #fff; }
.cb-hero__text ul, .cb-hero__text ol { margin: 0 0 .75em; padding-left: 1.25em; }
.cb-hero__buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.cb-hero--centre .cb-hero__buttons { justify-content: center; }
.button--light-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.button--light-outline:hover { background: rgba(255,255,255,.12); filter: none; }
.cb-hero__controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 clamp(1.25rem, 4vw, 2.5rem); pointer-events: none; }
.cb-hero--full .cb-hero__controls { max-width: var(--sc-max); margin: 0 auto; padding: 0 1rem; }
.cb-hero__controls > * { pointer-events: auto; }
.cb-hero__dots { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.cb-hero__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cb-hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .2s, transform .2s; }
.cb-hero__dot[aria-current="true"]::before { background: #fff; transform: scale(1.15); }
.cb-hero__dot:hover { filter: none; }
.cb-hero__arrows { display: flex; gap: .5rem; }
.cb-hero__arrow { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.15); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cb-hero__arrow:hover { background: rgba(255,255,255,.18); filter: none; }
.cb-hero__arrow svg { width: 18px; height: 18px; }
.cb-hero__dot:focus-visible, .cb-hero__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cb-hero__pause [data-icon="play"], .cb-hero__pause.is-paused [data-icon="pause"] { display: none; }
.cb-hero__pause.is-paused [data-icon="play"] { display: block; }
@media (max-width: 600px) {
	/* Phones: a compact hero. Smaller type, tighter padding, text kept to three lines. */
	.cb-hero { padding: 1rem 0; }
	.cb-hero.cb-hero--small, .cb-hero.cb-hero--medium, .cb-hero.cb-hero--large, .cb-hero.cb-hero--screen { --hero-h: 140px; }
	.cb-hero__slider { min-height: 120px; }
	.cb-hero__content { padding: 1rem 1.1rem; }
	.cb-hero__inner { max-width: none; }
	.cb-hero__headline { font-size: 1.35rem; margin-bottom: .35rem; }
	.cb-hero__text { font-size: .85rem; line-height: 1.45; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.cb-hero__text:last-child { margin-bottom: 0; }
	.cb-hero__text p { margin-bottom: .3em; }
	.cb-hero__buttons { gap: .5rem; }
	.cb-hero__buttons .button { padding: .4rem .85rem; font-size: .85rem; }
	.cb-hero__slider:has(.cb-hero__controls) .cb-hero__content { padding-bottom: 3rem; }
	.cb-hero__controls { bottom: .5rem; }
	.cb-hero__arrow { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	.cb-hero__slide, .cb-hero__slide.is-active { transition: none; }
}
/* A hero at the top of a page sits right under the header. */
.sf-hero-first .site-content { padding-top: 0; }
.sf-hero-first .site-main .content-blocks { margin-top: 0; }

/* ---------- Stats block ---------- */
.cb-stats .cb__title { max-width: 32ch; }
.cb-stats__intro { max-width: var(--sc-narrow); margin-bottom: 1.5rem; color: var(--sc-muted); }
.cb-stats__grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.cb-stats__grid--2, .cb-stats__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cb-stats__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	/* Computers: every stat on one row, however many there are. */
	.cb-stats__grid { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none !important; gap: 1rem; }
}
.cb-stats__item { background: var(--sc-bg); color: var(--sc-text); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; }
.cb-stats__grid--shadow .cb-stats__item { box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .28), 0 3px 8px rgba(15, 23, 42, .10); }
.cb-stats__number { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; font-weight: 600; letter-spacing: -.02em; margin: 0 0 1.5rem; font-variant-numeric: tabular-nums; }
.cb-stats__label { font-size: 1rem; margin: 0 0 .35rem; }
.cb-stats__text { font-size: .9rem; color: var(--sc-muted); }
.cb-stats__text p { margin: 0 0 .5em; }
.cb-stats__text p:last-child { margin-bottom: 0; }
.cb-stats__link { margin: auto 0 0; padding-top: .75rem; font-size: .9rem; font-weight: 600; }
.cb-stats__link a { text-decoration: none; }

/* ---------- Contact block ---------- */
.cb-contact__card { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem; background: var(--sc-bg); color: var(--sc-text); border: 1px solid var(--sc-border); border-radius: calc(var(--sc-radius) * 2); }
.cb-contact__card--shadow { box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .28), 0 3px 8px rgba(15, 23, 42, .10); }
@media (min-width: 900px) {
	.cb-contact__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.5rem; padding: 1.25rem 2.5rem 1.25rem 1.25rem; }
}
.cb-contact__info { background: var(--sc-surface); border-radius: var(--sc-radius); padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.cb-contact__tagline { margin: 0 0 .75rem; font-weight: 600; font-size: .95rem; }
.cb-contact__title { margin: 0 0 1rem; font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1.1; letter-spacing: -.02em; }
.cb-contact__text { color: var(--sc-muted); }
.cb-contact__text p { margin: 0 0 .75em; }
.cb-contact__text p:last-child { margin-bottom: 0; }
.cb-contact__details { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cb-contact__details li { display: flex; align-items: flex-start; gap: .75rem; overflow-wrap: anywhere; }
.cb-contact__details svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: .1em; }
.cb-contact__details a { color: inherit; text-decoration: none; }
.cb-contact__details a:hover, .cb-contact__details a:focus { text-decoration: underline; }
.cb-contact__form { padding: 1rem .75rem 1.25rem; align-self: center; }
@media (min-width: 900px) { .cb-contact__form { padding: 1.5rem 0; } }
.cb-contact__fields { display: grid; grid-template-columns: 1fr; gap: 1.25rem 1.5rem; }
@media (min-width: 600px) { .cb-contact__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cb-contact__fields .cb-contact__status, .cb-contact__field--wide { grid-column: 1 / -1; }
.cb-contact__field { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.cb-contact__field label { font-size: .95rem; }
.cb-contact__req { color: #b42318; }
.cb-contact__field input:not([type="checkbox"]), .cb-contact__field textarea, .cb-contact__field select { width: 100%; box-sizing: border-box; font: inherit; color: var(--sc-text); background: var(--sc-bg); border: 1px solid var(--sc-border); border-radius: calc(var(--sc-radius) * .75); padding: .7rem .85rem; }
.cb-contact__field textarea { min-height: 10rem; resize: vertical; }
.cb-contact__field select { -webkit-appearance: none; appearance: none; padding-right: 2.5rem; cursor: pointer; background: var(--sc-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%235b636e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .85rem center / 16px; }
.cb-contact__field input:focus, .cb-contact__field textarea:focus, .cb-contact__field select:focus { outline: 2px solid var(--sc-accent); outline-offset: 1px; border-color: var(--sc-accent); }
.cb-contact__field [aria-invalid="true"] { border-color: #b42318; }
.cb-contact__error { font-size: .85rem; color: #b42318; }
.cb-contact__error:empty { display: none; }
.cb-contact__terms { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem; }
.cb-contact__terms input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--sc-accent); }
.cb-contact__terms .cb-contact__error { flex-basis: 100%; }
.cb-contact__submit { width: 100%; justify-content: center; padding: .85rem 1.25rem; font-size: 1rem; cursor: pointer; }
.cb-contact__submit[disabled] { opacity: .65; cursor: progress; }
.cb-contact__captcha { gap: .5rem; }
.cb-contact__captcha-box:empty { display: none; }
.cb-contact__captcha-note { margin: 0; font-size: .8rem; color: var(--sc-muted); }
.cb-contact__captcha-note a { color: inherit; }
/* reCAPTCHA v3's floating badge would sit over the back-to-top button. Google allows hiding it when the form shows its notice, as ours does. */
.grecaptcha-badge { visibility: hidden !important; }
.cb-contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-contact__status:empty { display: none; }
.cb-contact__notice { margin: 0; padding: .8rem 1rem; border-radius: calc(var(--sc-radius) * .75); border: 1px solid; }
.cb-contact__notice--ok { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.cb-contact__notice--error { background: #fef3f2; border-color: #fecdca; color: #912018; }

/* ---------- Back to top button ---------- */
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 999; width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sc-accent); color: #fff; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .28), 0 3px 8px rgba(15, 23, 42, .10); transition: opacity .2s, transform .2s, visibility .2s, background-color .15s; }
.back-to-top:hover { filter: brightness(1.1); color: #fff; }
.back-to-top:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 3px; }
.back-to-top.is-ready:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(.75rem); pointer-events: none; }
@media (max-width: 600px) { .back-to-top { right: 1rem; bottom: 1rem; width: 2.75rem; height: 2.75rem; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
@media print { .back-to-top { display: none; } }
#page:focus { outline: none; }
.cb-contact__address p { margin: 0 0 .5em; }
.cb-contact__address p:last-child { margin-bottom: 0; }
.cb-contact__text img, .cb-stats__text img, .cb-birding-links__intro img, .cb-hero__text img, .sfbrb-records__intro img { max-width: 100%; height: auto; }

/* ---------- Sticky header ---------- */
.sf-sticky-header .site-header { position: sticky; top: 0; transition: box-shadow .2s ease; }
.sf-sticky-header .site-header.is-stuck { box-shadow: 0 6px 20px -8px rgba(15, 23, 42, .25); }
.admin-bar.sf-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.sf-sticky-header .site-header { top: 46px; } }
/* Below 600px the admin bar scrolls away, so the header goes right to the top. */
@media (max-width: 600px) { .admin-bar.sf-sticky-header .site-header { top: 0; } }
/* Links to #anchors stop below the header rather than under it. */
html:has(body.sf-sticky-header) { scroll-padding-top: calc(var(--sf-sticky-h, 72px) + 1rem); }
@media (max-width: 1023px) {
	/* A long open menu scrolls inside the header instead of running off the screen. */
	.sf-sticky-header .main-navigation.toggled .main-navigation__panel { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
}
@media print { .sf-sticky-header .site-header { position: static; box-shadow: none; } }

/* Block Style tab: padding, alignment, width, visibility, line above. */
.cb.cb--pt-none { padding-top: 0; }
.cb.cb--pt-small { padding-top: 1.25rem; }
.cb.cb--pt-medium { padding-top: 2.5rem; }
.cb.cb--pt-large { padding-top: 4rem; }
.cb.cb--pt-xlarge { padding-top: 6rem; }
.cb.cb--pb-none { padding-bottom: 0; }
.cb.cb--pb-small { padding-bottom: 1.25rem; }
.cb.cb--pb-medium { padding-bottom: 2.5rem; }
.cb.cb--pb-large { padding-bottom: 4rem; }
.cb.cb--pb-xlarge { padding-bottom: 6rem; }
.cb--align-left { text-align: left; }
.cb--align-center { text-align: center; }
.cb--align-right { text-align: right; }
.cb--w-narrow > .container { max-width: 760px; }
.cb--w-wide > .container { max-width: 1400px; }
.cb--w-full > .container { max-width: none; }
.cb--line { border-top: 1px solid var(--sc-border, rgba(0, 0, 0, .12)); }
@media (max-width: 781px) { .cb--only-desktop { display: none !important; } }
@media (min-width: 782px) { .cb--only-mobile { display: none !important; } }

/* Our patch in numbers, phones. */
@media (max-width: 639px) {
	/* Phones: compact, two to a row. */
	.cb-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
	.cb-stats__item { padding: .85rem .85rem 1rem; }
	.cb-stats__number { font-size: 1.85rem; margin-bottom: .5rem; }
	.cb-stats__label { font-size: .85rem; }
	.cb-stats__text { display: none; }
	.cb-stats__link { font-size: .8rem; padding-top: .5rem; }
	.cb-stats__intro { margin-bottom: 1rem; }
}

/* Our patch in numbers, computers: compact. */
@media (min-width: 640px) {
	.cb-stats__item { padding: 1rem 1.15rem 1.1rem; }
	.cb-stats__number { font-size: 2.25rem; margin-bottom: .5rem; }
	.cb-stats__label { font-size: .95rem; margin-bottom: .2rem; }
	.cb-stats__text { font-size: .85rem; }
	.cb-stats__link { font-size: .85rem; padding-top: .5rem; }
}

/* ---------- Birding links block (the list itself is styled by the plugin) ---------- */
.cb-birding-links__intro { max-width: var(--sc-narrow); margin-bottom: 1.25rem; color: var(--sc-muted); }

/* ---------- Locations block ---------- */
.cb-locations__intro { max-width: var(--sc-narrow); margin-bottom: 1.5rem; color: var(--sc-muted); }
.cb-locations__group + .cb-locations__group { margin-top: 2.75rem; }
.cb-locations__area { margin: 0 0 1.1rem; font-size: 1.4rem; }
.cb-locations__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-gap); grid-template-columns: 1fr; }
/* Every card in an area is the same height: the tallest one sets it. */
@media (min-width: 720px) { .cb-locations__list { grid-auto-rows: 1fr; } }
@media (min-width: 720px) { .cb-locations__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cb-locations__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cb-locations__item { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--sc-bg); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .25); }
.cb-locations__photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cb-locations__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.35rem 1.35rem; }
.cb-locations__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .5rem; }
.cb-locations__meta:empty { display: none; }
.cb-locations__chip { padding: .1rem .5rem; border-radius: 3px; background: color-mix(in srgb, var(--sc-accent) 12%, transparent); color: var(--sc-accent); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cb-locations__grid { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.cb-locations__grid::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .35em; border: 2px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translateY(1px); }
.cb-locations__name { margin: 0 0 .45rem; font-size: 1.2rem; line-height: 1.3; }
.cb-locations__summary { margin: 0 0 1rem; color: var(--sc-muted); }
.cb-locations__area-desc { max-width: var(--sc-narrow); margin: -.6rem 0 1.1rem; color: var(--sc-muted); }
.cb-locations__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 0 0 .75rem; font-size: .9rem; color: var(--sc-muted); }
.cb-locations__stat strong { font-size: 1.05rem; color: var(--sc-text); font-variant-numeric: tabular-nums; }
.cb-locations__latest a, .cb-locations__top a { color: var(--sc-accent); font-weight: 600; text-decoration: none; }
.cb-locations__latest a:hover, .cb-locations__top a:hover { text-decoration: underline; }
.cb-locations__top { margin: 0 0 1rem; font-size: .9rem; color: var(--sc-muted); }
.cb-locations__top-label { display: block; margin-bottom: .1rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cb-locations__access { margin: 0 0 1rem; padding: .75rem .9rem; background: var(--sc-surface); border-radius: calc(var(--sc-radius) * .75); font-size: .925rem; }
.cb-locations__access h4 { margin: 0 0 .2rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-muted); }
.cb-locations__access p { margin: 0; }
.cb-locations__look { position: relative; z-index: 2; margin: 0 0 1.1rem; border-top: 1px solid var(--sc-border); border-bottom: 1px solid var(--sc-border); }
.cb-locations__look summary { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; font-weight: 600; color: var(--sc-accent); cursor: pointer; list-style: none; }
.cb-locations__look summary::-webkit-details-marker { display: none; }
.cb-locations__look summary::after { content: "+"; font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.cb-locations__look[open] summary::after { transform: rotate(45deg); }
.cb-locations__look dl { margin: 0 0 .85rem; font-size: .925rem; }
/* On wider screens the list opens as a panel over the buttons and map below it,
   so opening it doesn't stretch every card in the row. */
@media (min-width: 720px) {
	.cb-locations__look dl { position: absolute; top: calc(100% + 1px); left: -.75rem; right: -.75rem; margin: 0; max-height: 17rem; overflow-y: auto; padding: .75rem; background: var(--sc-bg); border: 1px solid var(--sc-border); border-radius: calc(var(--sc-radius) * .75); box-shadow: 0 14px 28px -12px rgba(15, 23, 42, .35); }
}
.cb-locations__look dt { font-weight: 600; margin-top: .45rem; }
.cb-locations__look dt:first-child { margin-top: 0; }
.cb-locations__look dd { margin: 0; color: var(--sc-muted); }
.cb-locations__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin: auto 0 0; padding-top: .25rem; }
.cb-locations__map { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; white-space: nowrap; }
.cb-locations__map::before { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s-7-6.6-7-12a7 7 0 0 1 14 0c0 5.4-7 12-7 12zm0-9.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s-7-6.6-7-12a7 7 0 0 1 14 0c0 5.4-7 12-7 12zm0-9.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
.cb-locations__map::after { content: "\2197"; display: inline-block; transition: transform .2s ease; }
.cb-locations__map:hover::after, .cb-locations__map:focus-visible::after { transform: translate(2px, -2px); }
.cb-locations__link { font-weight: 600; color: var(--sc-accent); text-decoration: none; }
.cb-locations__link:hover, .cb-locations__link:focus-visible { text-decoration: underline; }
.cb-locations__source { font-weight: 400; font-size: .875rem; color: var(--sc-muted); }
.cb-locations__minimap { position: relative; height: 170px; margin-top: 1.1rem; overflow: hidden; border: 1px solid var(--sc-border); border-radius: calc(var(--sc-radius) * .75); background: #e8eef0; isolation: isolate; }
.cb-locations__minimap-link { position: absolute; inset: 0; display: block; overflow: hidden; }
.cb-locations__tiles { position: absolute; left: 50%; top: 50%; width: 768px; height: 768px; }
.cb-locations__tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.cb-locations__item:hover .cb-locations__minimap { border-color: var(--sc-accent); }
/* The pin: a marker in the site green with its point on the place. */
.cb-locations__pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -26px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sc-accent); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.cb-locations__pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.cb-locations__osm { position: absolute; right: 0; bottom: 0; z-index: 1; padding: .1rem .4rem; background: rgba(255, 255, 255, .85); border-top-left-radius: 4px; font-size: .68rem; color: #333; text-decoration: none; }
.cb-locations__osm:hover, .cb-locations__osm:focus-visible { text-decoration: underline; }
@media (max-width: 639px) { .cb-locations__minimap { height: 150px; } }
.cb-locations__credit { margin: 1.75rem 0 0; font-size: .875rem; color: var(--sc-muted); }
@media (max-width: 639px) { .cb-locations__map { flex: 1 1 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cb-locations__map::after, .cb-locations__look summary::after { transition: none; } }

/* ---------- Logo slider block ---------- */
.cb-logo-slider__intro { max-width: var(--sc-narrow); margin-bottom: 1.5rem; color: var(--sc-muted); }
.cb-logo-slider__frame { position: relative; padding-bottom: 2.25rem; }
.cb-logo-slider__viewport { overflow: hidden; padding: .5rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cb-logo-slider__track { display: flex; width: max-content; animation: cb-logo-scroll var(--cb-logo-duration, 40s) linear infinite; }
.cb-logo-slider__frame:hover .cb-logo-slider__track, .cb-logo-slider__frame:focus-within .cb-logo-slider__track, .cb-logo-slider__frame.is-paused .cb-logo-slider__track { animation-play-state: paused; }
@keyframes cb-logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cb-logo-slider__set { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.cb-logo-slider__item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: var(--cb-logo-h, 56px); padding: 0 clamp(1.5rem, 3vw, 2.75rem); }
.cb-logo-slider--small { --cb-logo-h: 40px; }
.cb-logo-slider--large { --cb-logo-h: 76px; }
.cb-logo-slider__item a { display: flex; align-items: center; height: 100%; color: inherit; text-decoration: none; border-radius: 4px; }
.cb-logo-slider__item a:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 4px; }
.cb-logo-slider__img { display: block; width: auto; height: auto; max-height: 100%; max-width: 180px; object-fit: contain; }
.cb-logo-slider--small .cb-logo-slider__img { max-width: 140px; }
.cb-logo-slider--large .cb-logo-slider__img { max-width: 220px; }
/* Name shown until a logo is added: a plain, even wordmark that doesn't imitate any brand. */
.cb-logo-slider__name { display: inline-flex; align-items: center; gap: .55em; font-size: calc(var(--cb-logo-h, 56px) * .36); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--sc-text); }
.cb-logo-slider__icon { flex: none; width: 1.35em; height: 1.35em; color: var(--sc-accent); }
i.cb-logo-slider__icon { width: auto; height: auto; font-size: 1.2em; line-height: 1; }
/* Kit icons used in text with [icon]. */
.sf-inline-icon { display: inline-block; vertical-align: -.125em; }
svg.sf-inline-icon { width: 1em; height: 1em; }
.cb-logo-slider--grey .cb-logo-slider__img, .cb-logo-slider--grey .cb-logo-slider__name { filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s; }
.cb-logo-slider--grey .cb-logo-slider__item:hover .cb-logo-slider__img, .cb-logo-slider--grey .cb-logo-slider__item:hover .cb-logo-slider__name,
.cb-logo-slider--grey .cb-logo-slider__item a:focus-visible .cb-logo-slider__img, .cb-logo-slider--grey .cb-logo-slider__item a:focus-visible .cb-logo-slider__name { filter: none; opacity: 1; }
.cb-logo-slider__item a:hover .cb-logo-slider__name { color: var(--sc-accent); }
.cb-logo-slider__pause { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--sc-border); border-radius: 50%; background: var(--sc-bg); color: var(--sc-muted); cursor: pointer; opacity: .55; transition: opacity .2s; }
.cb-logo-slider__frame:hover .cb-logo-slider__pause, .cb-logo-slider__pause:focus-visible { opacity: 1; }
.cb-logo-slider__pause:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 2px; }
.cb-logo-slider__pause svg { width: 14px; height: 14px; }
.cb-logo-slider__icon-play, .cb-logo-slider__frame.is-paused .cb-logo-slider__icon-pause { display: none; }
.cb-logo-slider__frame.is-paused .cb-logo-slider__icon-play { display: inline; }
@media (max-width: 639px) {
	.cb-logo-slider__item { height: calc(var(--cb-logo-h, 56px) * .8); padding: 0 1.1rem; }
	.cb-logo-slider__img { max-width: 130px; }
	.cb-logo-slider__name { font-size: calc(var(--cb-logo-h, 56px) * .3); letter-spacing: .06em; }
}
/* Less motion: a still, centred row that wraps; the repeats and button aren't needed. */
@media (prefers-reduced-motion: reduce) {
	.cb-logo-slider__frame { padding-bottom: 0; }
	.cb-logo-slider__viewport { -webkit-mask-image: none; mask-image: none; }
	.cb-logo-slider__track { animation: none; width: auto; }
	.cb-logo-slider__set { flex-wrap: wrap; justify-content: center; row-gap: 1.25rem; }
	.cb-logo-slider__set[aria-hidden], .cb-logo-slider__item[aria-hidden], .cb-logo-slider__pause { display: none; }
}

/* ---------- Blog ---------- */
.blog-header { margin-bottom: 2rem; }
.blog-header__label { margin: 0 0 .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-accent); }
.blog-header__intro { max-width: var(--sc-narrow); color: var(--sc-muted); font-size: 1.125rem; }
.blog-header__intro > :last-child { margin-bottom: 0; }
.blog-filters { margin-top: 1.5rem; }
.blog-filters ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.blog-filter { display: inline-block; padding: .3rem .9rem; border: 2px solid var(--sc-accent); border-radius: 999px; font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--sc-accent); }
.blog-filter:hover, .blog-filter:focus { background: var(--sc-surface); }
.blog-filter.is-active { background: var(--sc-accent); color: var(--sc-accent-text); }

.post-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
	.post-grid--2, .post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.post-card { display: flex; flex-direction: column; margin: 0; background: var(--sc-bg); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); overflow: hidden; box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .25); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 14px 30px -12px rgba(15, 23, 42, .35); transform: translateY(-2px); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--sc-surface); overflow: hidden; }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__media--empty { background: linear-gradient(135deg, var(--sc-accent), color-mix(in srgb, var(--sc-accent) 55%, #a7d3b5)); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }
.post-card__title { margin: 0 0 .4rem; font-size: 1.2rem; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover, .post-card__title a:focus { color: var(--sc-accent); }
.post-card .post-meta { margin-bottom: .6rem; }
.post-card__excerpt { color: var(--sc-muted); font-size: .975rem; }
.post-card__excerpt p { margin: 0 0 1rem; }
.post-card__more { margin-top: auto; align-self: flex-start; font-weight: 600; text-decoration: none; }
.post-card__more::after { content: "\2192"; display: inline-block; margin-left: .3em; transition: transform .2s ease; } /* 1.43.2: arrow slides on hover */
.post-card:hover .post-card__more::after, .post-card__more:hover::after, .post-card__more:focus-visible::after { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .post-card__more::after { transition: none; } }
.post-card__more:hover, .post-card__more:focus { text-decoration: underline; }
@media (min-width: 640px) {
	.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
	.post-card--featured .post-card__media { aspect-ratio: 16 / 10; min-height: 0; } /* 1.43.1: same shape as the other cards, so tall photos don't make it huge */
	.post-card--featured .post-card__body { padding: 2rem; justify-content: center; }
	.post-card--featured .post-card__title { font-size: 1.75rem; }
	.post-card--featured .post-card__excerpt { font-size: 1.05rem; }
	.post-card--featured .post-card__more { margin-top: .5rem; }
}

.post-chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 .6rem; padding: 0; }
.post-chip { display: inline-block; padding: .1rem .5rem; border-radius: 3px; background: color-mix(in srgb, var(--sc-accent) 12%, transparent); color: var(--sc-accent); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.post-chip:hover, .post-chip:focus { background: var(--sc-accent); color: var(--sc-accent-text); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; color: var(--sc-muted); font-size: .9rem; }
.post-meta a { color: inherit; }
.post-meta__sep { opacity: .6; }

.post-single { padding-bottom: 0; }
.post-single__header { margin-bottom: 2rem; }
.post-single__back { display: inline-block; margin-bottom: 1.25rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
.post-single__back:hover, .post-single__back:focus { text-decoration: underline; }
.post-single__title { font-size: clamp(2rem, 4.5vw, 2.75rem); margin: 0 0 .75rem; }
.post-single__standfirst { font-size: 1.25rem; color: var(--sc-muted); margin-bottom: 1.25rem; }
.post-single__byline { display: flex; align-items: center; gap: .75rem; }
.post-single__avatar { border-radius: 50%; flex: none; }
.post-single__image { margin: 0 auto 2.5rem; }
.post-single__image img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--sc-radius); }
.post-single__image figcaption { max-width: var(--sc-narrow); margin: .5rem auto 0; font-size: .85rem; color: var(--sc-muted); }
.post-single .entry-content { font-size: 1.125rem; }


.related-posts { margin-top: 3rem; margin-bottom: -2.5rem; padding: 3rem 0; background: var(--sc-surface); }
.related-posts__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.related-posts__title { margin: 0; }
.related-posts__all { font-weight: 600; text-decoration: none; }
.related-posts__all:hover, .related-posts__all:focus { text-decoration: underline; }

/* ---------- Blog posts block ---------- */
.bp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.bp-head__title { margin: 0; font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 600; letter-spacing: -.01em; }
.bp-head__crumbs { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sc-muted); }
.bp-head__crumbs a { color: var(--sc-text); text-decoration: none; }
.bp-head__crumbs a:hover, .bp-head__crumbs a:focus { color: var(--sc-accent); }
.bp-head__crumbs [aria-current] { color: var(--sc-accent); }
.bp-head__link { font-weight: 600; text-decoration: none; }
.bp-head__link:hover, .bp-head__link:focus { text-decoration: underline; }
.bp-intro { max-width: var(--sc-narrow); margin: -.75rem 0 1.5rem; color: var(--sc-muted); }

.bp-filters { margin-bottom: 1.75rem; }
.bp-filters ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.bp-filter { display: inline-block; padding: .35rem 1rem; border-radius: 999px; background: var(--sc-bg); box-shadow: inset 0 0 0 1px var(--sc-border); color: var(--sc-text); font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s; }
.bp-filter:hover, .bp-filter:focus { box-shadow: inset 0 0 0 1px var(--sc-accent); color: var(--sc-accent); }
.bp-filter.is-active { background: var(--sc-accent); box-shadow: none; color: var(--sc-accent-text); }

.bp-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } }

.bp-card { display: flex; flex-direction: column; background: var(--sc-bg); color: var(--sc-text); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12); transition: box-shadow .2s, transform .2s; }
.bp-card:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(15, 23, 42, .08), 0 18px 36px -14px rgba(15, 23, 42, .25); }
.bp-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--sc-surface); }
.bp-card__media > a:first-child { position: absolute; inset: 0; display: block; overflow: hidden; }
.bp-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bp-card:hover .bp-card__media img { transform: scale(1.04); }
.bp-card__media--empty > a:first-child { background: linear-gradient(135deg, var(--sc-accent), color-mix(in srgb, var(--sc-accent) 50%, #b9dcc5)); }
.bp-card__avatar { position: absolute; left: 1rem; bottom: 0; transform: translateY(50%); z-index: 1; display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--sc-bg); background: var(--sc-bg); overflow: hidden; box-shadow: 0 2px 6px rgba(15, 23, 42, .15); }
.bp-card__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.75rem 1.25rem 1.25rem; }
.bp-card__cat { display: inline-block; margin-bottom: .75rem; padding: .2rem .6rem; border-radius: 6px; background: var(--sc-surface); color: var(--sc-text); font-size: .75rem; font-weight: 600; text-decoration: none; }
.bp-card__cat:hover, .bp-card__cat:focus { background: var(--sc-accent); color: var(--sc-accent-text); }
.bp-card__title { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.bp-card__title a { color: inherit; text-decoration: none; }
.bp-card__title a:hover, .bp-card__title a:focus { color: var(--sc-accent); }
.bp-card__excerpt { color: var(--sc-muted); font-size: .95rem; }
.bp-card__excerpt p { margin: 0 0 1.25rem; }
.bp-card__meta { display: flex; align-items: center; gap: 1.1rem; width: 100%; margin-top: auto; color: var(--sc-muted); font-size: .85rem; }
.bp-card__stat { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
a.bp-card__stat:hover, a.bp-card__stat:focus { color: var(--sc-accent); }
.bp-icon { flex: none; }
.bp-card__date { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; font-size: .8rem; }
.bp-card__date::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }

@media (min-width: 640px) {
	.bp-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.bp-card--featured .bp-card__media { order: 2; aspect-ratio: auto; min-height: 300px; }
	.bp-card--featured .bp-card__avatar { top: 1rem; bottom: auto; transform: none; }
	.bp-card--featured .bp-card__body { order: 1; justify-content: center; padding: 2.5rem 2rem; }
	.bp-card--featured .bp-card__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; margin-bottom: .9rem; }
	.bp-card--featured .bp-card__meta { margin-top: 0; }
}
@media (min-width: 1000px) {
	.bp-card--featured { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
	.bp-card--featured .bp-card__body { padding: 3rem 2.5rem; }
}
.bp-pagination .nav-links { margin-bottom: 0; }
.bp-empty { color: var(--sc-muted); }

/* ---------- Image slider block ---------- */
.is-slider { --is-gap: 1.5rem; --is-per-view: 3; position: relative; }
.is-slider__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.is-slider__heading > :last-child { margin-bottom: 0; }
.is-slider__title { margin-bottom: .35rem; }
.is-slider__intro { max-width: var(--sc-narrow); margin: 0; color: var(--sc-muted); }
.cb--bg-accent .is-slider__intro { color: inherit; opacity: .85; }
.is-slider__arrows { display: flex; gap: .5rem; margin-left: auto; }
.is-slider__btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--sc-bg); color: var(--sc-accent); box-shadow: inset 0 0 0 2px var(--sc-accent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.is-slider__btn:hover, .is-slider__btn:focus-visible { background: var(--sc-accent); color: var(--sc-accent-text); filter: none; }
.is-slider__btn:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 2px; }
.is-slider__btn svg { width: 18px; height: 18px; }
.cb--bg-accent .is-slider__btn { background: transparent; color: var(--sc-accent-text); box-shadow: inset 0 0 0 2px var(--sc-accent-text); }
.cb--bg-accent .is-slider__btn:hover { background: var(--sc-accent-text); color: var(--sc-accent); }
.is-slider__pause .is-slider__icon-play, .is-slider__pause.is-paused .is-slider__icon-pause { display: none; }
.is-slider__pause.is-paused .is-slider__icon-play, .is-slider__pause span { display: inline-flex; }
.is-slider.is-static .is-slider__arrows, .is-slider.is-static .is-slider__dots { display: none; }

.is-slider__track { display: flex; gap: var(--is-gap); margin: 0 -1rem; padding: .5rem 1rem 1.5rem; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 1rem; scrollbar-width: none; }
.is-slider__track::-webkit-scrollbar { display: none; }
.is-slider__track:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: -3px; border-radius: 12px; }
.is-slider__slide { position: relative; flex: 0 0 85%; scroll-snap-align: start; }
@media (min-width: 640px) {
	.is-slider__slide { flex-basis: calc((100% - var(--is-gap)) / 2); }
	.is-slider--per-1 .is-slider__slide { flex-basis: 100%; }
}
@media (min-width: 1000px) {
	.is-slider__slide { flex-basis: calc((100% - (var(--is-per-view) - 1) * var(--is-gap)) / var(--is-per-view)); }
}
.is-slider__figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--sc-surface); box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18); }
.is-slider__figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.is-slider__track--wide .is-slider__figure img { aspect-ratio: 16 / 9; }
.is-slider__track--square .is-slider__figure img { aspect-ratio: 1; }
.is-slider__track--portrait .is-slider__figure img { aspect-ratio: 3 / 4; }
.is-slider__link { display: block; }
.is-slider__link:hover img, .is-slider__link:focus img { transform: scale(1.04); }
.is-slider__link:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: -3px; }
.is-slider__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .85rem; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); color: #fff; font-size: .9rem; font-weight: 500; line-height: 1.4; pointer-events: none; }

.is-slider__dots { display: flex; justify-content: center; gap: .15rem; margin-top: -.5rem; }
.is-slider__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.is-slider__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--sc-border); transition: width .25s, background .2s; }
.is-slider__dot[aria-current="true"]::before { width: 22px; background: var(--sc-accent); }
.is-slider__dot:hover { filter: none; }
.is-slider__dot:hover::before { background: var(--sc-muted); }
.is-slider__dot[aria-current="true"]:hover::before { background: var(--sc-accent); }
.is-slider__dot:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; border-radius: 4px; }
.cb--bg-accent .is-slider__dot::before { background: rgba(255, 255, 255, .4); }
.cb--bg-accent .is-slider__dot[aria-current="true"]::before { background: var(--sc-accent-text); }
@media (prefers-reduced-motion: reduce) {
	.is-slider__track { scroll-behavior: auto; }
	.is-slider__figure img, .is-slider__dot::before { transition: none; }
}
@media (max-width: 639px) {
	.is-slider__prev, .is-slider__next { display: none; }
	.is-slider__btn { width: 36px; height: 36px; }
}

/* Image slider lightbox (matches the Galleries plugin's viewer). */
.is-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f1f1f1; overflow: hidden; }
.is-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.is-lightbox::backdrop { background: rgba(10, 12, 14, .92); }
html.is-lightbox-open { overflow: hidden; }
.is-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 3.75rem 4.5rem 1.5rem; }
.is-lightbox__img { display: block; max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; border-radius: 6px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .6); transition: opacity .2s; }
.is-lightbox.is-loading .is-lightbox__img { opacity: .35; }
.is-lightbox__caption { margin: .85rem auto 0; max-width: 70ch; text-align: center; font-size: .95rem; line-height: 1.45; }
.is-lightbox__caption:empty { display: none; }
.is-lightbox__counter { position: fixed; top: 1.1rem; left: 1.25rem; margin: 0; font-size: .9rem; font-weight: 600; opacity: .85; }
.is-lightbox button { position: fixed; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0 0 .15em; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; font-weight: 400; line-height: 1; cursor: pointer; transition: background-color .15s; }
.is-lightbox button:hover { background: var(--sc-accent); filter: none; }
.is-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.is-lightbox button[hidden] { display: none; }
.is-lightbox__close { top: .75rem; right: .75rem; }
.is-lightbox__prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.is-lightbox__next { right: .75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.is-lightbox__figure { padding: 3.5rem .5rem 5rem; }
	.is-lightbox__img { max-height: calc(100vh - 11rem); }
	.is-lightbox__prev, .is-lightbox__next { top: auto; bottom: 1rem; transform: none; }
	.is-lightbox__prev { left: calc(50% - 56px); }
	.is-lightbox__next { right: calc(50% - 56px); }
}

/* ---------- Latest posts slider block (uses the Image slider controls) ---------- */
.is-slider__tools { display: flex; align-items: center; gap: 1rem 1.25rem; margin-left: auto; }
.is-slider__tools .is-slider__arrows { margin-left: 0; }
.is-slider__all { white-space: nowrap; padding: .5rem 1.1rem; font-size: .9rem; }
.cb--bg-accent .is-slider__all { background: #fff; color: var(--sc-accent); }
.is-slider--posts .is-slider__slide { display: flex; position: relative; }
.is-slider--posts .bp-card { flex: 1; min-width: 0; }
.is-slider--posts .bp-card:hover { transform: none; }
.cb--bg-accent .bp-card { color: var(--sc-text); }
.cb--bg-accent .bp-card a:not(.button) { color: inherit; }
.cb--bg-accent .bp-card .bp-card__more { color: var(--sc-accent); }
.bp-card__more { display: inline-block; margin: 0 0 1rem; font-weight: 600; text-decoration: none; }
.bp-card__more::after { content: "\2192"; display: inline-block; margin-left: .3em; transition: transform .2s ease; } /* 1.43.2: arrow slides on hover */
.bp-card:hover .bp-card__more::after, .bp-card__more:hover::after, .bp-card__more:focus-visible::after { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .bp-card__more::after { transition: none; } }
.bp-card__more:hover, .bp-card__more:focus { text-decoration: underline; }
.bp-card--no-image .bp-card__body { padding-top: 1.5rem; }
.bp-card__excerpt { width: 100%; }
@media (max-width: 639px) {
	.is-slider__tools { width: 100%; justify-content: space-between; margin-left: 0; }
}
/* On a white background give the cards an edge so they don't disappear. */
.cb:not(.cb--bg-light):not(.cb--bg-accent) .is-slider--posts .bp-card { box-shadow: 0 0 0 1px var(--sc-border), 0 8px 24px -14px rgba(15, 23, 42, .18); }

/* Latest posts slider: compact cards. */
.is-slider--posts { --is-gap: 1rem; }
.is-slider--posts .is-slider__head { margin-bottom: 1rem; align-items: center; }
.is-slider--posts .is-slider__title { font-size: 1.5rem; margin-bottom: .2rem; }
.is-slider--posts .is-slider__intro { font-size: .95rem; }
.is-slider--posts .is-slider__btn { width: 36px; height: 36px; box-shadow: inset 0 0 0 1.5px var(--sc-accent); }
.is-slider--posts .is-slider__btn svg { width: 16px; height: 16px; }
.is-slider--posts .is-slider__all { font-size: .85rem; }
.is-slider--posts .is-slider__track { padding-top: .25rem; padding-bottom: 1rem; }
.is-slider--posts .is-slider__dots { margin-top: -.25rem; }
.is-slider--posts .bp-card { border-radius: 10px; }
.is-slider--posts .bp-card__media { aspect-ratio: 16 / 9; }
.is-slider--posts .bp-card__avatar { width: 30px; height: 30px; left: .75rem; border-width: 2px; }
.is-slider--posts .bp-card__body { padding: 1.1rem .9rem .85rem; }
.is-slider--posts .bp-card--no-image .bp-card__body { padding-top: .9rem; }
.is-slider--posts .bp-card__cat { margin-bottom: .4rem; padding: .1rem .45rem; font-size: .7rem; }
.is-slider--posts .bp-card__title { margin-bottom: .4rem; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-slider--posts .bp-card__excerpt { font-size: .85rem; line-height: 1.5; }
.is-slider--posts .bp-card__excerpt p { margin: 0 0 .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-slider--posts .bp-card__more { margin-bottom: .5rem; font-size: .85rem; }
.is-slider--posts .bp-card__meta { gap: .8rem; font-size: .78rem; }
.is-slider--posts .bp-card__date { font-size: .75rem; }
.is-slider--posts .bp-icon { width: 15px; height: 15px; }
@media (min-width: 640px) {
	.is-slider--posts .is-slider__slide { flex-basis: calc((100% - 2 * var(--is-gap)) / 3); }
	.is-slider--posts.is-slider--per-1 .is-slider__slide { flex-basis: 100%; }
	.is-slider--posts.is-slider--per-2 .is-slider__slide { flex-basis: calc((100% - var(--is-gap)) / 2); }
}
@media (min-width: 1000px) {
	.is-slider--posts .is-slider__slide { flex-basis: calc((100% - (var(--is-per-view) - 1) * var(--is-gap)) / var(--is-per-view)); }
}
@media (max-width: 639px) {
	.is-slider--posts .is-slider__slide { flex-basis: 72%; }
}
