/* Festival Flyer – shared dark style for the homepage, posts, archives, search and pages (v0.3.2) */

body.ff-dark {
	--ff-bg: #141019;
	--ff-card: #1c1522;
	--ff-ink: #f6f1ec;
	--ff-soft: #e6ded7;
	--ff-muted: #a99da6;
	--ff-faint: #8c8090;
	--ff-line: #2a2131;
	--ff-edge: #3a2f40;
	--ff-accent: #ff6a4d;
	--ff-accent-2: #ff8466;
	--ff-accent-ink: #1a0f0b;
	--ff-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--ff-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--bs-body-bg: var(--ff-bg);
	--bs-body-color: var(--ff-soft);
	--bs-emphasis-color: var(--ff-ink);
	--bs-heading-color: var(--ff-ink);
	--bs-secondary-color: var(--ff-muted);
	--bs-border-color: var(--ff-line);
	--bs-light-rgb: 28, 21, 34;
	--bs-link-color: var(--ff-accent);
	--bs-link-hover-color: var(--ff-accent-2);
	--bs-link-color-rgb: 255, 106, 77;
	--bs-link-hover-color-rgb: 255, 132, 102;
	--bs-card-bg: var(--ff-card);

	background: var(--ff-bg) !important;
	color: var(--ff-soft);
	font-family: var(--ff-text);
	-webkit-font-smoothing: antialiased;
}
body.ff-dark .wp-site-blocks { background: var(--ff-bg); }

/* Type */
body.ff-dark main,
body.ff-dark .wp-block-post-content,
body.ff-dark .entry-content,
body.ff-dark .card,
body.ff-dark p,
body.ff-dark li { font-family: var(--ff-text); }
body.ff-dark :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):not(.navbar-brand) {
	color: var(--ff-ink);
	font-family: var(--ff-display);
	font-weight: 800;
	letter-spacing: -0.01em;
}
body.ff-dark :is(.text-dark, .text-body, .text-black, .has-gray-dark-color, .has-dark-color) { color: var(--ff-soft) !important; }
body.ff-dark .text-muted,
body.ff-dark .text-secondary { color: var(--ff-muted) !important; }
body.ff-dark :is(.bg-white, .bg-light, .has-white-background-color, .has-light-background-color):not(nav) { background-color: var(--ff-card) !important; }
body.ff-dark hr { border-color: var(--ff-line); opacity: 1; }

/* Page header (replaces the blue-purple gradient) */
body.ff-dark .bg-custom-gradient {
	background: var(--ff-bg) !important;
	border-bottom: 1px solid var(--ff-line);
	margin-bottom: 0 !important;
}
body.ff-dark .bg-custom-gradient .blockstrap-shape { display: none; }
body.ff-dark .bg-custom-gradient > .container { padding-top: 8px !important; padding-bottom: 0 !important; }
body.ff-dark .bg-custom-gradient .text-center { text-align: left !important; }
body.ff-dark .bg-custom-gradient .col.mt-5,
body.ff-dark .bg-custom-gradient .col.pt-5,
body.ff-dark .bg-custom-gradient .col.mb-5 { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 48px !important; padding-bottom: 32px !important; }
body.ff-dark .bg-custom-gradient h1 {
	margin: 0 0 12px !important;
	color: var(--ff-ink) !important;
	font-size: clamp(2.1rem, 5.2vw, 3.6rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
}
body.ff-dark .bg-custom-gradient h1 span { color: var(--ff-accent); }
body.ff-dark .bg-custom-gradient a { color: var(--ff-muted) !important; text-decoration: none; }
body.ff-dark .bg-custom-gradient a:hover { color: var(--ff-accent) !important; }
body.ff-dark .bg-custom-gradient :is(p, .text-white:not(h1)) { color: var(--ff-muted) !important; }

/* Buttons */
body.ff-dark .btn-primary,
body.ff-dark .wp-element-button,
body.ff-dark .wp-block-button__link,
body.ff-dark input[type="submit"],
body.ff-dark button[type="submit"]:not(.btn-link) {
	--bs-btn-bg: var(--ff-accent);
	--bs-btn-border-color: var(--ff-accent);
	--bs-btn-color: var(--ff-accent-ink);
	--bs-btn-hover-bg: var(--ff-accent-2);
	--bs-btn-hover-border-color: var(--ff-accent-2);
	--bs-btn-hover-color: var(--ff-accent-ink);
	--bs-btn-active-bg: var(--ff-accent-2);
	--bs-btn-active-border-color: var(--ff-accent-2);
	--bs-btn-active-color: var(--ff-accent-ink);
	background-color: var(--ff-accent);
	border-color: var(--ff-accent);
	color: var(--ff-accent-ink);
	font-weight: 700;
}
body.ff-dark .btn-primary:hover,
body.ff-dark .wp-block-button__link:hover { background-color: var(--ff-accent-2); border-color: var(--ff-accent-2); color: var(--ff-accent-ink); }
body.ff-dark :is(.btn-outline-primary, .btn-outline-secondary, .btn-secondary, .btn-light) {
	--bs-btn-color: var(--ff-soft);
	--bs-btn-bg: transparent;
	--bs-btn-border-color: var(--ff-edge);
	--bs-btn-hover-color: var(--ff-ink);
	--bs-btn-hover-bg: var(--ff-card);
	--bs-btn-hover-border-color: var(--ff-accent);
	--bs-btn-active-bg: var(--ff-card);
	--bs-btn-active-color: var(--ff-ink);
	--bs-btn-active-border-color: var(--ff-accent);
	color: var(--ff-soft);
	background: transparent;
	border-color: var(--ff-edge);
}

/* Fields */
body.ff-dark main :is(input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], select, textarea),
body.ff-dark :is(.form-control, .form-select),
body.ff-dark .entry-content :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
	background-color: var(--ff-bg);
	border-color: var(--ff-edge);
	color: var(--ff-ink);
}
body.ff-dark :is(.form-control, .form-select, input, textarea)::placeholder { color: var(--ff-faint); }
body.ff-dark :is(.form-control, .form-select):focus { border-color: var(--ff-accent); box-shadow: 0 0 0 2px rgba(255, 106, 77, 0.25); }
body.ff-dark .form-select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a99da6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
body.ff-dark .input-group-text { background: var(--ff-card); border-color: var(--ff-edge); color: var(--ff-muted); }

/* Cards (post archives and listings) */
body.ff-dark .card {
	--bs-card-bg: var(--ff-card);
	--bs-card-border-color: var(--ff-line);
	--bs-card-cap-bg: transparent;
	background-color: var(--ff-card) !important;
	border: 1px solid var(--ff-line) !important;
	box-shadow: none !important;
	color: var(--ff-soft);
}
body.ff-dark .card.hover-shadow:hover { border-color: var(--ff-edge) !important; }
body.ff-dark .card :is(h2, h3, .h5) a,
body.ff-dark .card .geodir-entry-title a { color: var(--ff-ink); text-decoration: none; }
body.ff-dark .card :is(h2, h3, .h5) a:hover,
body.ff-dark .card .geodir-entry-title a:hover { color: var(--ff-accent); }
body.ff-dark .card :is(h2, h3, .h5) { font-size: 1.15rem; line-height: 1.25; }
body.ff-dark .card p,
body.ff-dark .card .geodir-post-content-container { color: var(--ff-muted); font-size: 15px; line-height: 1.5; }
body.ff-dark .card-footer,
body.ff-dark .card-footer span { color: var(--ff-faint); font-size: 13px; }
body.ff-dark .badge.text-bg-danger,
body.ff-dark .badge.bg-danger,
body.ff-dark .badge.text-bg-primary,
body.ff-dark .badge.bg-primary {
	background-color: var(--ff-accent) !important;
	color: var(--ff-accent-ink) !important;
	font-weight: 700;
	letter-spacing: 0.02em;
}
body.ff-dark figure .ratio,
body.ff-dark .embed-has-action { background: var(--ff-card); }
body.ff-dark img.lazy-hidden { background-color: var(--ff-card) !important; }

/* Pagination */
body.ff-dark .pagination {
	--bs-pagination-bg: transparent;
	--bs-pagination-color: var(--ff-soft);
	--bs-pagination-border-color: var(--ff-edge);
	--bs-pagination-hover-bg: var(--ff-card);
	--bs-pagination-hover-color: var(--ff-ink);
	--bs-pagination-hover-border-color: var(--ff-accent);
	--bs-pagination-active-bg: var(--ff-accent);
	--bs-pagination-active-border-color: var(--ff-accent);
	--bs-pagination-active-color: var(--ff-accent-ink);
	--bs-pagination-disabled-bg: transparent;
	--bs-pagination-disabled-color: var(--ff-faint);
	--bs-pagination-disabled-border-color: var(--ff-line);
}
body.ff-dark .page-link { background: transparent; border-color: var(--ff-edge); color: var(--ff-soft); }
body.ff-dark .page-link.active,
body.ff-dark .page-link.current { background: var(--ff-accent); border-color: var(--ff-accent); color: var(--ff-accent-ink); }

/* Post and page text */
body.ff-dark .entry-content,
body.ff-dark .wp-block-post-content { color: var(--ff-soft); font-size: 17px; line-height: 1.7; }
body.ff-dark .entry-content :is(p, li) { font-size: inherit; line-height: inherit; }
body.ff-dark .entry-content a:not(.btn):not(.wp-block-button__link):not(.ffo-btn):not(.share-icon):not(.sd-button) {
	color: var(--ff-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
body.ff-dark .entry-content a:not(.btn):not(.wp-block-button__link):not(.ffo-btn):hover { color: var(--ff-accent-2); text-decoration-thickness: 2px; }
body.ff-dark .entry-content :is(h2, h3, h4) { margin: 1.6em 0 0.5em; line-height: 1.15; }
body.ff-dark .entry-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
body.ff-dark .entry-content h3 { font-size: 1.35rem; }
body.ff-dark .entry-content :is(strong, b) { color: var(--ff-ink); }
body.ff-dark .entry-content blockquote,
body.ff-dark .wp-block-quote {
	margin: 1.5em 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--ff-accent);
	color: var(--ff-ink);
}
body.ff-dark .entry-content figcaption,
body.ff-dark .wp-element-caption { color: var(--ff-faint); font-size: 14px; }
body.ff-dark .entry-content table { color: var(--ff-soft); border-color: var(--ff-line); }
body.ff-dark .entry-content :is(th, td) { border-color: var(--ff-line); }
body.ff-dark .entry-content code { background: var(--ff-card); color: var(--ff-ink); }

/* Single post extras */
body.ff-dark.single-post .rounded-lg.text-dark,
body.ff-dark.single-post .wp-block-post-author { background: transparent !important; color: var(--ff-soft) !important; }
body.ff-dark .wp-block-post-author__name,
body.ff-dark .wp-block-post-author__name a { color: var(--ff-ink); }
body.ff-dark .wp-block-avatar img { border: 2px solid var(--ff-edge); }
body.ff-dark .taxonomy-post_tag a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 12px;
	border: 1px solid var(--ff-edge);
	border-radius: 999px;
	color: var(--ff-soft);
	font-size: 14px;
	text-decoration: none;
}
body.ff-dark .taxonomy-post_tag a:hover { border-color: var(--ff-accent); color: var(--ff-ink); }
body.ff-dark .taxonomy-post_tag .wp-block-post-terms__separator { display: none; }
body.ff-dark .post-nav a { color: var(--ff-ink); text-decoration: none; }
body.ff-dark .post-nav a:hover { color: var(--ff-accent); }
body.ff-dark .uwp_widget_author_box .card,
body.ff-dark .uwp_widget_author_box { color: var(--ff-soft); }
body.ff-dark .uwp_widget_author_box a { color: var(--ff-ink); }

/* Jetpack share and like buttons */
body.ff-dark .sharedaddy h3.sd-title { color: var(--ff-faint); font-family: var(--ff-text); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
body.ff-dark .sharedaddy .sd-content ul li a.sd-button,
body.ff-dark .sharedaddy .sd-content ul li a.sd-button:not(.no-text) {
	background: var(--ff-card) !important;
	border: 1px solid var(--ff-edge) !important;
	box-shadow: none !important;
	color: var(--ff-soft) !important;
}
body.ff-dark .sharedaddy .sd-content ul li a.sd-button:hover { border-color: var(--ff-accent) !important; color: var(--ff-ink) !important; }

/* Comments */
body.ff-dark .wp-block-comments,
body.ff-dark .comment-respond { color: var(--ff-soft); }
body.ff-dark .comment-respond :is(input, textarea) { background: var(--ff-bg); border: 1px solid var(--ff-edge); color: var(--ff-ink); }

/* GeoDirectory listings and search */
body.ff-dark .geodir-search-container :is(.form-control, .form-select) { background-color: var(--ff-bg); border-color: var(--ff-edge); color: var(--ff-ink); }
body.ff-dark .geodir-search-container .btn-primary { background: var(--ff-accent); border-color: var(--ff-accent); color: var(--ff-accent-ink); }
body.ff-dark .geodir-loop-actions-container,
body.ff-dark .geodir-loop-actions-container .btn { color: var(--ff-soft); }
body.ff-dark .geodir-loop-container .card .geodir-field-post_title a { color: var(--ff-ink); }
body.ff-dark .geodir-post-meta-container,
body.ff-dark .geodir_post_meta { color: var(--ff-muted); }
body.ff-dark .geodir-filter-container .card { background: var(--ff-card) !important; }
body.ff-dark .geodir-filter-container label,
body.ff-dark .geodir-filter-container .form-label { color: var(--ff-soft); }
body.ff-dark .dropdown-menu {
	--bs-dropdown-bg: var(--ff-card);
	--bs-dropdown-color: var(--ff-soft);
	--bs-dropdown-border-color: var(--ff-edge);
	--bs-dropdown-link-color: var(--ff-soft);
	--bs-dropdown-link-hover-bg: var(--ff-bg);
	--bs-dropdown-link-hover-color: var(--ff-ink);
	--bs-dropdown-link-active-bg: var(--ff-accent);
	--bs-dropdown-link-active-color: var(--ff-accent-ink);
}
body.ff-dark .alert-info,
body.ff-dark .alert {
	--bs-alert-bg: var(--ff-card);
	--bs-alert-border-color: var(--ff-edge);
	--bs-alert-color: var(--ff-soft);
}

/* GeoDirectory archives without maps: give the listings the full width */
body.ff-dark.geodir-archive-locationless .row-cols-md-2:has(> .col > .wp-block-geodirectory-geodir-widget-loop) > .col:first-child { flex: 0 0 100%; max-width: 100%; }
body.ff-dark.geodir-archive-locationless .row-cols-md-2:has(> .col > .wp-block-geodirectory-geodir-widget-loop) > .col + .col:not(:has(.geodir-map-wrap, .geodir_map_container, .leaflet-container)) { display: none; }
body.ff-dark:not(:has(#ff-hsearch)) .bg-custom-gradient > .container { padding-top: 64px !important; }
body.ff-dark .geodir-post-content-container,
body.ff-dark .geodir-post-content-container * { text-align: left !important; }
body.ff-dark .bg-custom-gradient .wp-block-geodirectory-geodir-widget-search { max-width: 860px; }
body.ff-dark .bg-custom-gradient .wp-block-geodirectory-geodir-widget-search .geodir-search { justify-content: flex-start !important; margin-left: 0 !important; }
body.ff-dark .bg-custom-gradient .me-auto.ms-auto:has(.wp-block-geodirectory-geodir-widget-search) { margin-left: 0 !important; padding-bottom: 32px !important; }
body.ff-dark .geodir-loop-container .card .geodir-post-rating,
body.ff-dark .geodir-loop-container .card .gd-list-rating-stars { opacity: 0.55; }

/* Line archive listings up with the page header */
body.ff-dark .wp-site-blocks > .container-fluid:not(.bg-custom-gradient) { margin-left: auto; margin-right: auto; }
@media (min-width: 576px) { body.ff-dark .wp-site-blocks > .container-fluid:not(.bg-custom-gradient) { max-width: 540px; } }
@media (min-width: 768px) { body.ff-dark .wp-site-blocks > .container-fluid:not(.bg-custom-gradient) { max-width: 720px; } }
@media (min-width: 992px) { body.ff-dark .wp-site-blocks > .container-fluid:not(.bg-custom-gradient) { max-width: 960px; } }
@media (min-width: 1200px) { body.ff-dark .wp-site-blocks > .container-fluid:not(.bg-custom-gradient) { max-width: 1140px; } }
@media (min-width: 1400px) { body.ff-dark .wp-site-blocks > .container-fluid:not(.bg-custom-gradient) { max-width: 1320px; } }

/* WPForms file drop area */
body.ff-dark .wpforms-uploader,
body.ff-dark .wpforms-field-file-upload .wpforms-uploader {
	background: var(--ff-card) !important;
	border-color: var(--ff-edge) !important;
	color: var(--ff-muted) !important;
}

/* Get listed (organiser forms) */
body.ff-dark .ffo {
	--ffo-blue: var(--ff-accent);
	--ffo-blue-dark: var(--ff-accent-2);
	--ffo-ink: var(--ff-ink);
	--ffo-muted: var(--ff-muted);
	--ffo-line: var(--ff-line);
	--ffo-soft: var(--ff-card);
	color: var(--ff-soft);
}
body.ff-dark .ffo .ffo-box { background: var(--ff-card); border-color: var(--ff-line); }
body.ff-dark .ffo .ffo-box.is-soft { background: var(--ff-bg); }
body.ff-dark .ffo .ffo-btn { color: var(--ff-accent-ink); }
body.ff-dark .ffo .ffo-btn:hover,
body.ff-dark .ffo .ffo-btn:focus-visible { color: var(--ff-accent-ink); }
body.ff-dark .ffo .ffo-btn.is-quiet { background: transparent; border-color: var(--ff-edge); color: var(--ff-soft); }
body.ff-dark .ffo .ffo-btn.is-quiet:hover,
body.ff-dark .ffo .ffo-btn.is-quiet:focus-visible { background: var(--ff-bg); border-color: var(--ff-accent); color: var(--ff-ink); }
body.ff-dark .ffo :is(input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], select, textarea) {
	background: var(--ff-bg);
	border-color: var(--ff-edge);
	color: var(--ff-ink);
}
body.ff-dark .ffo .ffo-notice { background: var(--ff-card); border-color: var(--ff-edge); color: var(--ff-soft); }
body.ff-dark .ffo .ffo-notice.is-error { border-color: #7a2b2b; }
body.ff-dark .ffo a:not(.ffo-btn) { color: var(--ff-accent); }

/* WPForms */
body.ff-dark .wpforms-container :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
	background-color: var(--ff-bg) !important;
	border-color: var(--ff-edge) !important;
	color: var(--ff-ink) !important;
}
body.ff-dark .wpforms-container :is(.wpforms-field-label, .wpforms-field-sublabel, .wpforms-field-description, label) { color: var(--ff-soft) !important; }
body.ff-dark .wpforms-container button[type="submit"] { background: var(--ff-accent) !important; border-color: var(--ff-accent) !important; color: var(--ff-accent-ink) !important; }


/* ---------- Homepage ---------- */

body.ff-dark.home .wp-site-blocks > section,
body.ff-dark.home .wp-site-blocks > section.has-light-background-color,
body.ff-dark.home .wp-site-blocks > section.has-dark-black-background-color {
	background: var(--ff-bg) !important;
	color: var(--ff-soft) !important;
	padding-top: 44px !important;
	padding-bottom: 48px !important;
	border-top: 1px solid var(--ff-line);
}
/* Same side margins in every section (sections with a background colour had extra side padding) */
body.ff-dark.home .wp-site-blocks > section { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 575.98px) { body.ff-dark.home .wp-site-blocks > section:last-of-type { padding-left: 12px !important; padding-right: 12px !important; } }
body.ff-dark.home .wp-site-blocks > section .container > p { color: var(--ff-muted); font-size: 17px; }
body.ff-dark.home .wp-site-blocks > section h2.wp-block-heading {
	margin: 0 0 10px;
	font-size: clamp(1.8rem, 3.6vw, 2.5rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

/* Hero */
body.ff-dark.home .wp-site-blocks > section:first-of-type {
	padding-top: 104px !important;
	padding-bottom: 56px !important;
	border-top: 0;
	border-bottom: 1px solid var(--ff-line);
}
body.ff-dark.home .wp-site-blocks > section:first-of-type + section { border-top: 0; }
body.ff-dark.home .wp-site-blocks > section:first-of-type .has-orange-color {
	margin: 0 0 12px;
	color: var(--ff-accent) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
body.ff-dark.home .wp-site-blocks > section:first-of-type h1 {
	margin: 0 0 16px;
	font-size: clamp(2.8rem, 8vw, 5rem) !important;
	line-height: 0.98;
	letter-spacing: -0.03em;
}
body.ff-dark.home .wp-site-blocks > section:first-of-type h1 + p {
	max-width: 640px;
	margin: 0 0 24px;
	color: var(--ff-soft);
	font-size: clamp(1.05rem, 2vw, 1.2rem) !important;
	line-height: 1.5;
}

/* Buttons: filled ones in the accent colour, outline ones quiet */
body.ff-dark.home .wp-block-button__link {
	padding: 12px 20px;
	border: 1px solid var(--ff-accent);
	border-radius: 10px;
	background: var(--ff-accent) !important;
	color: var(--ff-accent-ink) !important;
	font-family: var(--ff-text);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
body.ff-dark.home .wp-block-button__link:hover { background: var(--ff-accent-2) !important; border-color: var(--ff-accent-2); }
body.ff-dark.home .is-style-outline > .wp-block-button__link {
	background: transparent !important;
	border-color: var(--ff-edge);
	color: var(--ff-ink) !important;
}
body.ff-dark.home .is-style-outline > .wp-block-button__link:hover { border-color: var(--ff-accent); color: var(--ff-ink) !important; }

/* Month buttons as pills, like the month pages */
body.ff-dark.home .wp-block-button__link.has-primary-background-color {
	padding: 8px 16px;
	border: 1px solid var(--ff-edge);
	border-radius: 999px;
	background: transparent !important;
	color: var(--ff-soft) !important;
	font-size: 14px;
	font-weight: 600;
}
body.ff-dark.home .wp-block-button__link.has-primary-background-color:hover {
	border-color: var(--ff-ink);
	background: var(--ff-ink) !important;
	color: var(--ff-bg) !important;
}

/* News and review grids */
body.ff-dark.home .wp-block-query > ul { box-shadow: none !important; }
body.ff-dark.home .wp-block-query li.wp-block-post { margin-bottom: 28px !important; }
body.ff-dark.home .wp-block-query .wp-block-post-featured-image { margin: 0 0 12px; overflow: hidden; border-radius: 12px; background: var(--ff-card); }
body.ff-dark.home .wp-block-query .wp-block-post-featured-image img { display: block; border-radius: 12px; transition: transform 0.3s ease; }
body.ff-dark.home .wp-block-query li:hover .wp-block-post-featured-image img { transform: scale(1.03); }
body.ff-dark.home .wp-block-query .wp-block-post-title { margin: 0; font-size: 1.12rem !important; line-height: 1.25; }
body.ff-dark.home .wp-block-query .wp-block-post-title a { color: var(--ff-ink); text-decoration: none; }
body.ff-dark.home .wp-block-query .wp-block-post-title a:hover { color: var(--ff-accent); }
body.ff-dark.home .wp-block-query + p a,
body.ff-dark.home .wp-block-query + p + p a {
	color: var(--ff-accent);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
body.ff-dark.home .wp-block-query + p a::after { content: " \2192"; }
body.ff-dark.home .wp-block-query + p a:hover { color: var(--ff-accent-2); }
body.ff-dark.home .wp-block-post-excerpt__excerpt { color: var(--ff-muted); font-size: 16px; line-height: 1.6; }
body.ff-dark.home hr.wp-block-separator { border: 0; border-top: 1px solid var(--ff-line); background: none; color: var(--ff-line); opacity: 1; margin: 36px 0 20px; }
body.ff-dark.home hr.wp-block-separator + h2 + hr.wp-block-separator { display: none; }

/* Keep wide and full-width blocks inside the page width */
body.ff-dark.home .wp-site-blocks > section .container > :is(.alignwide, .alignfull) {
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Blocks placed straight in a section (the Features heading and list) line up with the page width */
body.ff-dark.home .wp-site-blocks > section > :not(.container) {
	box-sizing: border-box;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 12px;
	padding-right: 12px;
}
@media (min-width: 576px) { body.ff-dark.home .wp-site-blocks > section > :not(.container) { max-width: 540px; } }
@media (min-width: 768px) { body.ff-dark.home .wp-site-blocks > section > :not(.container) { max-width: 720px; } }
@media (min-width: 992px) { body.ff-dark.home .wp-site-blocks > section > :not(.container) { max-width: 960px; } }
@media (min-width: 1200px) { body.ff-dark.home .wp-site-blocks > section > :not(.container) { max-width: 1140px; } }
@media (min-width: 1400px) { body.ff-dark.home .wp-site-blocks > section > :not(.container) { max-width: 1320px; } }
body.ff-dark.home .wp-site-blocks > section > h2.wp-block-heading { margin-top: 0; margin-bottom: 18px; text-transform: lowercase; }
body.ff-dark.home .wp-site-blocks > section > h2.wp-block-heading::first-letter { text-transform: uppercase; }
body.ff-dark.home .wp-site-blocks > section > h2 + hr.wp-block-separator { display: none; }

/* No empty space at the end of a section */
body.ff-dark.home .wp-site-blocks > section .container > p:empty { display: none; }
body.ff-dark.home .wp-site-blocks > section > .wp-block-query > ul { margin-bottom: 0 !important; }
body.ff-dark.home .wp-site-blocks > section > .wp-block-query li.wp-block-post:last-child { margin-bottom: 0 !important; }
body.ff-dark.home .wp-site-blocks > section > .wp-block-query li.wp-block-post:last-child .wp-block-columns { margin-bottom: 0 !important; }
body.ff-dark.home .wp-site-blocks > section:last-of-type { padding-top: 8px !important; }

/* Features: picture and story side by side, kept inside the page width */
body.ff-dark.home .wp-block-query .wp-block-columns.alignwide {
	width: 100%;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	gap: 28px;
	align-items: center;
}
@media (min-width: 782px) {
	body.ff-dark.home .wp-block-query .wp-block-columns.alignwide > .wp-block-column:first-child { flex-basis: 56% !important; }
	body.ff-dark.home .wp-block-query .wp-block-columns.alignwide > .wp-block-column:last-child { flex-basis: 44% !important; }
}
body.ff-dark.home .wp-block-query .wp-block-columns .wp-block-post-title {
	margin: 0 0 10px;
	font-size: clamp(1.4rem, 2.6vw, 2rem) !important;
	line-height: 1.12;
}
body.ff-dark.home .wp-block-query .wp-block-columns .wp-block-post-featured-image img { aspect-ratio: 16 / 9; width: 100%; height: auto; }

/* "Running a festival?" panel */
body.ff-dark.home .wp-site-blocks > section:last-of-type > .container {
	padding: 32px 28px;
	border: 1px solid var(--ff-line);
	border-radius: 16px;
	background: var(--ff-card);
}
body.ff-dark.home .wp-site-blocks > section:last-of-type { border-top: 0; }

@media (max-width: 781px) {
	body.ff-dark.home .wp-site-blocks > section:first-of-type { padding-top: 88px !important; }
	body.ff-dark.home .wp-block-query .wp-block-columns.alignwide { gap: 14px; }
	body.ff-dark.home .wp-site-blocks > section:last-of-type > .container { padding: 24px 18px; }
}

/* Listing cards: drop the empty star row (no reviews yet) */
body.ff-dark .geodir-post .card-footer:has(.geodir-post-rating-value-0) { display: none; }

/* Browser autofill keeps the dark field colours */
body.ff-dark :is(input, textarea, select):-webkit-autofill,
body.ff-dark :is(input, textarea, select):-webkit-autofill:hover,
body.ff-dark :is(input, textarea, select):-webkit-autofill:focus {
	-webkit-text-fill-color: var(--ff-ink);
	-webkit-box-shadow: 0 0 0 1000px var(--ff-card) inset !important;
	box-shadow: 0 0 0 1000px var(--ff-card) inset !important;
	caret-color: var(--ff-ink);
	transition: background-color 9999s ease-out 0s;
}

/* Search box block (404 page and elsewhere) */
body.ff-dark .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; gap: 8px; }
body.ff-dark .wp-block-search__input {
	background: var(--ff-card) !important;
	color: var(--ff-ink) !important;
	border: 1px solid var(--ff-edge) !important;
	border-radius: 10px !important;
	padding: 10px 14px !important;
}
body.ff-dark .wp-block-search__input::placeholder { color: var(--ff-faint); }
body.ff-dark .wp-block-search__button {
	margin: 0 !important;
	padding: 10px 18px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--ff-accent) !important;
	color: var(--ff-accent-ink) !important;
	font-weight: 700;
}
body.ff-dark .wp-block-search__button svg { fill: currentColor; }

/* Rich-text boxes in forms (WordPress editor inside WPForms) */
body.ff-dark .wp-editor-container { border: 1px solid var(--ff-edge) !important; border-radius: 10px; overflow: hidden; }
body.ff-dark .wp-editor-container :is(.mce-panel, .mce-toolbar-grp, .mce-statusbar, .quicktags-toolbar) {
	background: #241c2b !important;
	border-color: var(--ff-line) !important;
}
body.ff-dark .wp-editor-container .mce-btn,
body.ff-dark .wp-editor-container .mce-btn button {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	color: var(--ff-soft) !important;
}
body.ff-dark .wp-editor-container .mce-btn:hover,
body.ff-dark .wp-editor-container .mce-btn.mce-active { background: #2f2538 !important; }
body.ff-dark .wp-editor-container :is(.mce-ico, .mce-txt, .mce-path, .mce-path-item) { color: var(--ff-soft) !important; }
body.ff-dark .wp-editor-container .mce-caret { border-top-color: var(--ff-soft) !important; }
body.ff-dark .wp-editor-container .mce-listbox,
body.ff-dark .wp-editor-container .mce-listbox button { border-color: var(--ff-edge) !important; background: var(--ff-card) !important; }
body.ff-dark .wp-editor-container .mce-edit-area,
body.ff-dark .wp-editor-container .mce-edit-area iframe { background: var(--ff-card) !important; }
body.ff-dark .wp-editor-container textarea.wp-editor-area { background: var(--ff-card) !important; color: var(--ff-ink) !important; }
body.ff-dark .wp-editor-tabs .wp-switch-editor {
	background: #241c2b !important;
	border-color: var(--ff-line) !important;
	color: var(--ff-muted) !important;
}
body.ff-dark :is(.tmce-active .switch-tmce, .html-active .switch-html) { background: var(--ff-card) !important; color: var(--ff-ink) !important; }
body.ff-dark .mce-menu,
body.ff-dark .mce-floatpanel { background: var(--ff-card) !important; border-color: var(--ff-edge) !important; }
body.ff-dark .mce-menu .mce-menu-item :is(.mce-text, .mce-ico) { color: var(--ff-soft) !important; }
body.ff-dark .mce-menu .mce-menu-item:is(:hover, :focus, .mce-active) { background: #2f2538 !important; }

/* ---------- Shop pages (WooCommerce) ---------- */

body.ff-dark.woocommerce .wp-site-blocks > .woocommerce.product,
body.ff-dark.woocommerce .wp-site-blocks > main {
	box-sizing: border-box;
	max-width: 1164px;
	margin: 0 auto;
	padding: 76px 12px 56px;
}
body.ff-dark.woocommerce .wp-site-blocks > .woocommerce.product > main > .alignwide { max-width: 100%; margin-left: 0; margin-right: 0; }
body.ff-dark .woocommerce-breadcrumb { color: var(--ff-faint); font-size: 13.5px; }
body.ff-dark .woocommerce-breadcrumb a { color: var(--ff-muted); text-decoration: none; }
body.ff-dark .woocommerce-breadcrumb a:hover { color: var(--ff-accent); }
body.ff-dark.single-product .wp-block-columns { gap: 32px; }
body.ff-dark .woocommerce-product-gallery img { border-radius: 14px; }
body.ff-dark.single-product h1.wp-block-post-title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 4.4vw, 3rem) !important;
	line-height: 1.05;
	letter-spacing: -0.02em;
}
body.ff-dark .wp-block-woocommerce-product-price,
body.ff-dark .wc-block-components-product-price { color: var(--ff-ink); font-weight: 700; }
body.ff-dark.single-product .wp-block-post-excerpt__excerpt { color: var(--ff-soft); font-size: 17px; }
body.ff-dark :is(.single_add_to_cart_button, .wc-block-components-product-button__button, .woocommerce .button, .wp-block-button__link.add_to_cart_button) {
	padding: 12px 22px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--ff-accent) !important;
	color: var(--ff-accent-ink) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}
body.ff-dark :is(.single_add_to_cart_button, .wc-block-components-product-button__button, .woocommerce .button):hover { background: var(--ff-accent-2) !important; }
body.ff-dark .wp-block-woocommerce-product-meta,
body.ff-dark .product_meta { color: var(--ff-muted); font-size: 14px; }
body.ff-dark .wp-block-woocommerce-product-meta a { color: var(--ff-soft); }
body.ff-dark .woocommerce-tabs .wc-tabs { border-color: var(--ff-line) !important; }
body.ff-dark .woocommerce-tabs .wc-tabs li { background: transparent !important; border-color: var(--ff-line) !important; }
body.ff-dark .woocommerce-tabs .wc-tabs li a { color: var(--ff-muted) !important; }
body.ff-dark .woocommerce-tabs .wc-tabs li.active a { color: var(--ff-ink) !important; }
body.ff-dark .woocommerce-tabs .wc-tabs li::before,
body.ff-dark .woocommerce-tabs .wc-tabs li::after { display: none !important; }
body.ff-dark .woocommerce-Tabs-panel { color: var(--ff-soft); }
body.ff-dark .wp-block-woocommerce-product-collection h2 { margin-top: 40px; }
body.ff-dark .wc-block-product-template .wp-block-post-title a,
body.ff-dark .wc-block-grid__product-title { color: var(--ff-ink) !important; text-decoration: none; }
body.ff-dark .wc-block-product-template .wp-block-post-title a:hover { color: var(--ff-accent) !important; }
body.ff-dark .wc-block-product-template img,
body.ff-dark .wc-block-components-product-image img { border-radius: 12px; }
body.ff-dark .wc-block-components-notice-banner { background: var(--ff-card) !important; border-color: var(--ff-edge) !important; color: var(--ff-soft) !important; }
body.ff-dark .wc-block-components-notice-banner > svg { background: var(--ff-accent) !important; fill: var(--ff-accent-ink) !important; }

/* Never scroll sideways (clip, so the window stays the scroller) */
body.ff-dark .wp-site-blocks { overflow-x: clip; }
