/*
Theme Name:   SebastianTwo
Theme URI:    https://storypoint.org
Author:       Rural Media
Author URI:   https://www.ruralmedia.co.uk
Description:  Rural Media's block theme for StoryPoint (storypoint.org). The second Sebastian,
              not a second version of the first: SebastianOne 1.90.0 is bfiwm.film's theme and
              stays there. This one is generated from it by
              source/scripts/port-theme.sh and then diverges, which is why it carries its own
              name. Both descend from Automattic's Course 1.3.9 and share the Rural Media
              palette and type scale. Sensei LMS templates and block styles are retained -
              courses will run from this site.
              See the vault note "08 SebastianTwo Theme" for what is and is not carried over.
Version:      3.3.54
Requires at least: 6.3
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  sebastiantwo
Tags:         education, block-patterns, full-site-editing
*/

/* ---------------------------------------------------------------------------
 * Site-wide focus colour.
 *
 * --sp-ff-gold was originally declared on ".sp-formpanel, .fluentform" because it
 * started life as a forms token. It has since been used for focus rings outside that scope,
 * on .sp-route__action and on the footer social icons, where the variable does not resolve.
 * An unresolvable var() makes the whole declaration invalid, so those two focus rings were
 * quietly rendering as nothing at all.
 *
 * Hoisted here so it resolves everywhere. The scoped declaration further down is left alone:
 * it now simply restates the same value, and removing it would be a change with no benefit.
 * ------------------------------------------------------------------------ */
:root {
	--sp-ff-gold: var(--wp--preset--color--primary, #E1B15D);
}

/*
 * Font smoothing
 */
 body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/**
 * Currently table styles are only available with 'wp-block-styles' theme support (block css) thus the following needs to be included
 * since 'wp-block-styles' aren't used for this theme.
 */
.wp-block-table thead {
	border-bottom: 3px solid;
}

.wp-block-table tfoot {
	border-top: 3px solid;
}

.wp-block-table td,
.wp-block-table th {
	padding: var(--wp--preset--spacing--30);
	border: 1px solid;
	word-break: normal;
}

.wp-block-table figcaption {
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

 /* Background and text color, padding around for navbar, only for mobile view. Desktop view has separate color */
 .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.has-modal-open {
	background-color: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--background);
	padding: 1.5rem;
 }

 /* Distance between navigation menu items in mobile view, theme.json blockgap not working for navigation block */
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: var(--wp--custom--nav-mobile-gap);
 }

 /* Color of the cross button in navbar mobile view */
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--background);
 }

/* line height of the menu items in mobile view, to match design */
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container a.wp-block-navigation-item__content {
	line-height: 90%;
 }

 /* The navigation item that looks like a button in the design has a different front size and the button is rounded */
 .wp-block-navigation .wp-block-navigation__responsive-container .wp-block-navigation-link.is-style-navigation-link-button a {
	font-size: var(--wp--custom--typography--font-sizes--button);
	border-radius: 8px;
}

/* Background & text color, padding and border of the navbar button */
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-link.is-style-navigation-link-button a {
	background-color: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--background);
	padding: 15.5px 32px;
	border: 1px solid var(--wp--preset--color--foreground);
}

/* Navbar button color change on hover */
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-link.is-style-navigation-link-button a:hover {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
}

/* Set the font size of the menu items in mobile view, except for the button menu item */
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link:not(.is-style-navigation-link-button) a {
	font-size: var(--wp--preset--font-size--xx-large);
}

/* Design for the navbar button item, in case of mobile view. Has extra margin on top as per design */
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link.is-style-navigation-link-button a {
	color: var(--wp--preset--color--foreground);
	background-color: var(--wp--preset--color--background);
	width: calc(100vw - 3rem);
	text-align: center;
	padding: 17.5px 0px;
	margin-top: calc(7.5rem - var(--wp--custom--nav-mobile-gap));
}

/* Separate hover behavior for navbar button, applicable when in mobile view, as the colors are separate for mobile view */
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link.is-style-navigation-link-button a:hover {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
}

header {
	background-color: transparent;
}


.wp-site-blocks header ~ main {
	margin-block-start: 0;
}

header .navigation-wrapper {
	min-height: 116px;
}

h1, h2, h3, h4, h5, h6 {
	text-transform: revert;
} 
/*
 * Comments
 */
.wp-block-comments .wp-block-post-comments-form:not(last-child) {
	margin-bottom: var(--wp--custom--comment-gap);
}

.comment-reply-title a {
	font-size: var(--wp--preset--font-size--x-small);
}

.wp-block-comments .wp-block-comments-pagination {
	margin-top: calc( var(--wp--custom--comment-gap) / 2 * -1 );
	margin-bottom: var(--wp--custom--comment-gap);
}

.wp-block-comments hr,
.wp-block-comments .wp-block-comments-title {
	margin-bottom: clamp(2.5rem, 2.167rem + 1.111vw, 3rem);
}

.wp-block-post-comments-form .comment-form-cookies-consent input[type="checkbox"] {
	display: none;
}

.wp-block-post-comments-form .comment-form-cookies-consent input[type="checkbox"] + label:before {
	border: 1px solid var(--wp--preset--color--foreground);
	content: "\00a0";
	display: inline-block;
	font-size: 1rem;
	height: 16px;
	padding: 0;
	vertical-align: center;
	width: 16px;
	border-radius: 4px;
	margin-right: var(--wp--custom--comment-gap-small);
}

.wp-block-post-comments-form .comment-form-cookies-consent input[type="checkbox"]:checked + label:before {
	color: green;
	content: "\2713";
	text-align: center;
}


.wp-block-post-comments-form h3.comment-reply-title {
	margin-bottom: var(--wp--preset--spacing--60);
}

.wp-block-post-comments-form .comment-form-comment label {
	display: inline-block;
}

.wp-block-post-comments-form .comment-form-comment label,
.wp-block-post-comments-form .comment-form-author label,
.wp-block-post-comments-form .comment-form-url label,
.wp-block-post-comments-form .comment-form-email label
{
	margin-bottom: 5px;
}

.wp-block-post-comments-form form.comment-form .form-submit {
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-post-comments-form form.comment-form p input:not([type=submit]),
.wp-block-post-comments-form form.comment-form textarea {
	border: 1px solid var(--wp--preset--color--foreground);
	border-radius: 8px;
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	font-size: var(--wp--preset--font-size--x-small);
	padding: 11px;
}

.wp-block-post-comments-form .comment-form-cookies-consent label {
	margin: auto 0;
}

.wp-block-post-comments-form .comment-form-cookies-consent {
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.wp-block-post-comments-form .comment-form-cookies-consent input {
	transform: scale(1.3);
	background-color: transparent;
	accent-color: red;
}

.wp-block-post-comments-form .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: var(--wp--custom--reply-column-gap);
	grid-row-gap: var(--wp--custom--comment-gap-medium);
}

@media screen and (max-width: 480px) {
	.wp-block-post-comments-form .comment-form {
		display: flex;
		flex-direction: column;
		gap: calc(var(--wp--preset--spacing--60) - var(--wp--preset--spacing--40));
	}
}

.wp-block-post-comments-form .comment-form p,
.wp-block-post-comments-form h3 {
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-block-post-comments-form .comment-form .comment-notes {
	display: none;
}

.wp-block-post-comments-form .comment-form .comment-form-author {
	order: 1;
	grid-column: 1 / 3;
}

.wp-block-post-comments-form .comment-form .comment-form-email {
	order: 2;
	grid-column: 1 / 2;
}

.wp-block-post-comments-form .comment-form .comment-form-url {
	order: 3;
	grid-column: 2 / 3;
}

.wp-block-post-comments-form .comment-form .comment-form-comment {
	order: 4;
	grid-column: 1 / 3;
}

.wp-block-post-comments-form .comment-form .comment-form-cookies-consent {
	order: 5;
	grid-column: 1 / 3;
}

.wp-block-post-comments-form .comment-form .wp-block-button {
	order: 6;
	grid-column: 1 / 2;
}

.wp-block-comments .wp-block-comment-template .wp-block-comment-author-name {
	margin-bottom: var(--wp--custom--comment-gap-small);
}

.wp-block-comments .wp-block-comment-template .wp-block-comment-content p {
	margin-block-start: var(--wp--custom--comment-gap-medium);
	margin-block-end: var(--wp--custom--comment-gap-small);
}

.wp-block-comments .comment > .is-vertical > .wp-block-group {
	align-items: flex-start;
}

.wp-block-comments .comment > div > div > .is-vertical {
	gap: 0;
}

/*
 * Link styles
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em
}

/*
 * Search styles
 */
.wp-block-search__input {
	background-color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--foreground);
	padding: 1.063rem;
}

/*
 * Search Results Styles
 */
.search .wp-block-post-template .wp-block-post {
	margin: 0;
}

.search .wp-block-post.course {
	border-bottom: 0;
	margin: 0;
	padding: 0;
}

/* Buttons */
.wp-block-button__link:focus {
	outline: var(--wp--preset--color--foreground) dashed;
	outline-offset: 1px;
}

/*
* Control the hover stylings of outline block style.
* Unnecessary once block styles are configurable via theme.json
*/
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):active {
	background-color: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--button-border-active);
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--button-border-hover);
	color: var(--wp--preset--color--secondary);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):focus {
	border-color: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--foreground);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
	background-color: transparent;
	border-color: currentcolor;
	border-width: 1px;
	color: currentcolor;
	text-decoration: none;
}

/*
 * Pagination styles
 */
.wp-block-query-pagination .wp-block-query-pagination-numbers > *:not(:last-child) {
	margin-right: clamp(1.44rem, 1.91vw + 0.97rem, 2.5rem);
}

.wp-block-query-pagination .page-numbers.current {
	text-decoration: underline;
}

/* Add border around author image in Post Author block */
.wp-block-post-author__avatar img {
	border: 1px solid var(--wp--preset--color--tertiary);
	border-radius: 4px;
}

/* Design for search box in 404 page template sidebar */
.course-search-sidebar button {
	padding: clamp(12px, calc(0.75rem + ((1vw - 4.8px) * 0.5556)), 16px);
	color: var(--wp--preset--color--tertiary);
	vertical-align: center;
}

.course-search-sidebar button svg {
	height: 32px;
	width: 32px;
	vertical-align: bottom;
}

.course-search-sidebar input.wp-block-search__input {
	line-height: 100%;
}

/* Newsletter */
.course-newsletter-gap {
	height: clamp(0rem, -3.975rem + 8.134vw, calc(114px - var(--wp--style--block-gap) * 2));
}

.course-newsletter-sign-up {
	font-family: var(--wp--preset--font-family--system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.02em;
	line-height: 100%;
	text-decoration: underline;
}

@media screen and (min-width: 782px) {
	.course-newsletter-sidebar {
		position: sticky;
		top: 120px;
	}
}

/* Footer */
footer .wp-block-column .wp-block-spacer {
	height: 20px;
}

footer .wp-block-column a,
footer .wp-block-column p,
footer .wp-block-column h3 {
	white-space: nowrap;
}

@media screen and (max-width: 480px) {
	footer .wp-block-columns.course-footer-links-vertical-space {
		margin-bottom: 44px;
	}

	footer .wp-block-column, footer .wp-block-group.is-layout-flex {
		flex-direction: column;
		align-items: baseline;
		gap: 10px;
	}
}

footer.wp-block-template-part  {
	margin-block-start: 0;
}


/*
 * "Wide Width, No Title" page template
 */

/* Remove extra space from group blocks */
body.page-template-page-wide-width .wp-block-post-content .wp-block-group,
body.page-template-page-wide-width footer .wp-block-group {
	margin-block-end: 0;
}

/*
* Sensei-specific styles
*/
.wp-block-sensei-lms-course-overview a {
	text-decoration: underline;
}

.wp-block-sensei-lms-course-list .sensei-cta a:hover,
.wp-block-sensei-lms-course-list .sensei-cta a:focus {
	text-decoration: none;
}

/* The first 3 CSS selectors can be removed after allowing enough time (let's say 1 month)for sites
 * to update to the Sensei LMS plugin version containing the changes to the CSS class names.
 */
.course-list-featured-label__featured-image,
.course-list-featured-label__course-categories,
.sensei-lms-featured-badge,
.sensei-lms-course-list-featured-label__text {
	font-family: var(--wp--preset--font-family--system);
	text-transform: uppercase;
}

/*
 * Style Variations
 */

/* Workaround for https://github.com/WordPress/gutenberg/issues/35480. */
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor svg {
	color: var(--wp--preset--color--primary);
}


.footer-title{
	white-space: normal;
}

.footer-title a:hover {
	text-decoration: none;
}

@media screen and (max-width: 700px) {
	.footer-title{
		font-size: 86px;
		padding-left: 20px;
		padding-right: 20px;
	}
	.separator {
		 top: -25px;
	}
}

/* ---------------------------------------------------------------------------
   Sensei buttons
   ---------------------------------------------------------------------------
   Sensei renders "Take This Course" and friends as bare <input type="submit">
   and <button>, which pick up none of the theme's button styling and appear as
   grey browser defaults. Match them to .wp-element-button.
--------------------------------------------------------------------------- */
.sensei-course-meta input[type="submit"],
.course-signup-form input[type="submit"],
.sensei-course-actions button,
form.lesson_button_form input[type="submit"],
input.sensei-stop-double-submission,
.sensei-course-theme__button,
.wp-block-sensei-lms-button-take-course button,
.wp-block-sensei-lms-button-continue-course a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--secondary);
	background-color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	padding: .85rem 1.75rem;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.sensei-course-meta input[type="submit"]:hover,
.course-signup-form input[type="submit"]:hover,
.sensei-course-actions button:hover,
form.lesson_button_form input[type="submit"]:hover,
input.sensei-stop-double-submission:hover,
.wp-block-sensei-lms-button-take-course button:hover {
	background-color: var(--wp--preset--color--button-border-active);
	border-color: var(--wp--preset--color--button-border-active);
}

/* Module headings on the course outline sit too tight to their lesson lists. */
.sensei-course-theme .wp-block-sensei-lms-course-outline-module__name,
.course-outline-module__name { margin-bottom: .35rem; }

/* Belt and braces: Sensei markup is input.course-start.sensei-stop-double-submission */
body input.course-start,
body input[name="course_start"],
body .sensei-course-theme input[type="submit"] {
	font-family: var(--wp--preset--font-family--heading) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: var(--wp--preset--color--secondary) !important;
	background-color: var(--wp--preset--color--primary) !important;
	border: 2px solid var(--wp--preset--color--primary) !important;
	border-radius: 999px !important;
	padding: .85rem 1.75rem !important;
	text-transform: none !important;
	cursor: pointer;
}
body input.course-start:hover,
body input[name="course_start"]:hover {
	background-color: var(--wp--preset--color--button-border-active) !important;
	border-color: var(--wp--preset--color--button-border-active) !important;
}

/* ---------------------------------------------------------------------------
 * Header brand bar — BFI Film Academy West Midlands + Rural Media
 *
 * Sized by measured INK, not by canvas height. The two supplied files are built
 * very differently:
 *
 *   BFI          canvas 2509x792   ink 1879x673   ink fills 85% of height
 *                                                 padding 14px top, 105px bottom
 *   Rural Media  canvas 2075x625   ink 2075x625   ink fills 100% of height
 *                                                 padding 0px, trimmed tight
 *
 * Two consequences. Matching canvas heights makes the BFI mark render 15%
 * smaller than Rural Media, which is what made Rural Media look oversized. And
 * BFI's empty bottom band pushes its visible mark above the shared centre line,
 * so the pair never optically aligned.
 *
 * Rural Media is set to roughly two thirds of the BFI canvas height, which
 * equalises the two after allowing both for BFI's clear space and for Rural
 * Media's heavier, larger type. The translate puts the ink back on a shared
 * optical centre; it is a percentage so it scales with the clamp.
 * ------------------------------------------------------------------------ */
.sp-brandbar {
	gap: clamp(0.9rem, 2.4vw, 1.6rem);
	align-items: center;
}
.sp-brandbar figure {
	margin: 0;
	line-height: 0;
}
.sp-brandbar figure.wp-block-image img,
.sp-brandbar img {
	display: block;
	width: auto;
	/* Both marks are now trimmed to their ink, so clear space is supplied here
	   rather than baked into the artwork. Horizontal only: vertical padding would
	   add to the fixed height and break the optical match between them. */
	padding-inline: 0.35rem;
}

/* Sized from the INK, not the canvas. The supplied BFI file was a 2509x792
   canvas holding only 1879x674 of picture, so 15 per cent of any height set on it
   was empty space, and 610px of that sat to the RIGHT of the wordmark, which is
   what made the gap before the divider look so wide. Trimmed to its ink as
   attachment 336, the same visual size needs 85 per cent of the old value:
   clamp(44, 5.6vw, 72) becomes clamp(37, 4.8vw, 61). The old translateY nudge
   goes with it, since it only corrected the file's lopsided 14px top against
   104px bottom. */
.sp-brandbar figure.sp-brandbar__bfi img,
.sp-brandbar__bfi img {
	height: clamp(37px, 4.8vw, 61px);
}

/* Hairline between the two organisations. Set on the second mark so there is
   no stray rule if either image fails to load. */
.sp-brandbar__rm {
	border-left: 1px solid rgba(255, 255, 255, 0.28);
	padding-left: clamp(0.9rem, 2.4vw, 1.6rem);
}

/* Just under three fifths of the BFI height. Rural Media's type is set larger and heavier
   inside its box, on top of having no clear space at all. */
.sp-brandbar figure.sp-brandbar__rm img,
.sp-brandbar__rm img {
	height: clamp(25px, 3.2vw, 41px);
}


/* ---------------------------------------------------------------------------
 * Current page in the navigation.
 *
 * WordPress marks the active item with .current-menu-item and aria-current on
 * the link. Both are styled, because a custom-link nav item gets the class but
 * not always the attribute, and a post-type item gets both.
 *
 * Gold is the brand accent and already means "this one" elsewhere on the site
 * (eyebrows, section markers), so it carries the same meaning here. The
 * underline is there because colour alone is not an accessible way to signal
 * state.
 * ------------------------------------------------------------------------ */
.wp-block-navigation li.current-menu-item > a.wp-block-navigation-item__content,
.wp-block-navigation li.current_page_item > a.wp-block-navigation-item__content,
.wp-block-navigation a.wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 0.35em;
	text-decoration-thickness: 2px;
}

/* BFI's pack states a 120px minimum full-lockup height, but only for the
   small-use logos in social media; it gives no website figure. 72px is as large
   as this header carries without the navigation wrapping. At that size the
   "West Midlands" line renders about 10px tall — legible, but still well under
   their stated number. Two things follow, both outstanding with BFI:
     - request the small-use variant, which sets the region name proportionally
       larger and is designed for exactly this situation
     - ask them what the minimum is for a website header, since the pack
       addresses social media only
   Until then this is the best available compromise, and it is a deliberate one. */

/* ---------------------------------------------------------------------------
 * Home hero — title at the top of the image, tagline at the bottom.
 *
 * The cover's inner container is normally a centred flex item. Stretching it and
 * making it a space-between column pins the H1 to the top edge and the tagline
 * group to the bottom, with the photograph filling everything between.
 *
 * Specificity is .wp-block-cover.sp-hero rather than .sp-hero alone,
 * because core's .wp-block-cover align-items rule would otherwise tie and win
 * on load order.
 * ------------------------------------------------------------------------ */
.wp-block-cover.sp-hero {
	align-items: stretch;
}
.sp-hero .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	row-gap: 2rem;
	width: 100%;
}

/* ---------------------------------------------------------------------------
 * Strand cards on the Hub page — image flush to the top, then the text.
 *
 * The column carries the border and the rounding, so its padding is zero and
 * the inner group supplies the text inset. That lets the photograph sit edge to
 * edge against the card border instead of floating inside a margin.
 * ------------------------------------------------------------------------ */
.sp-strand {
	overflow: hidden;
	padding: 0 !important;
}
.sp-strand > figure.wp-block-image {
	margin: 0;
	line-height: 0;
}
.sp-strand > figure.wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.sp-strand__body {
	padding: 1.35rem 1.5rem 1.5rem;
}

/* ---------------------------------------------------------------------------
 * Overlay header — logos and navigation sitting over a full-bleed hero.
 *
 * The same approach ruralmedia.co.uk uses: the header is absolutely positioned
 * and transparent, and the hero below it starts at pixel zero. Deliberately
 * NOT sticky, matching Rural Media — it scrolls away and does not come back,
 * which avoids needing JavaScript to swap in a solid background once the header
 * is over body copy rather than over the photograph.
 *
 * Applied per template, not site-wide: templates whose first block is a
 * full-bleed hero pass className "sp-header--overlay" to the header template
 * part. Utility and LMS pages keep the normal in-flow header, because an
 * absolute header would sit on top of their body text.
 * ------------------------------------------------------------------------ */
.sp-header--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	background: transparent;
}

/* Scrim. White logos and white navigation need a dark ground behind them, and
   the hero underneath might be a bright photograph or a pale brand colour. The
   gradient lives on the header rather than on each hero, so any hero image or
   colour works without being tuned for legibility. */
.sp-header--overlay::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 260%;
	background: linear-gradient(
		180deg,
		rgba(16, 58, 77, 0.46) 0%,
		rgba(16, 58, 77, 0.18) 48%,
		rgba(16, 58, 77, 0) 100%
	);
	pointer-events: none;
}

/* Keep the actual content above the scrim. */
.sp-header--overlay > * {
	position: relative;
	z-index: 1;
}

/* ---------------------------------------------------------------------------
 * Full-bleed hero.
 *
 * Top padding has to clear the overlay header — roughly 72px of logo plus its
 * 1.75rem of vertical padding — so it is set from the same scale rather than a
 * magic number, and eases off on small screens where the header is shorter.
 * ------------------------------------------------------------------------ */
.sp-hero-full {
	margin-top: 0;
	border-radius: 0;
}

/* Top padding has to clear the overlay header, and the header now has two states rather than
   the three it used to have, because the menu no longer wraps in and out of the logo row.

   Measured against the rendered header rather than derived:

     below 740px   hamburger on the logo row      117px, flat
     740px and up  menu on its own row            160px at 740, 183px at 1440

   The upper band still drifts by 23px because the logos are clamp-sized on vw, so the padding
   tracks it with a clamp on the same slope instead of a step. That holds the clear space under
   the header at roughly 55px all the way across, where a flat 13.5rem would have squeezed it
   to 33px at 1440. The two endpoints are 13.5rem at 740px and 15rem at 1440px; the middle term
   is the line between them. */
.sp-hero-full {
	padding-top: 9.5rem !important;
}
@media (min-width: 740px) {
	.sp-hero-full { padding-top: clamp(13.5rem, 11.9rem + 3.43vw, 15rem) !important; }
}

/* Hero copy sits in the same column as the body copy below it. The cover is
   full-bleed, so without this its text starts 2.5rem from the screen edge while
   every paragraph further down starts at the centred content column - they never
   line up. */
.sp-hero-full .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--content-size, 765px);
	margin-inline: auto;
}
.sp-hero-full.wp-block-cover {
	align-items: stretch;
}
.sp-hero-full .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	row-gap: 2rem;
	width: 100%;
}

/* Two inherited-theme problems, fixed for the overlay header only so the
   standard header on utility pages is left exactly as it was.

   min-height: 116px was set for the theme's original 180px-wide logo. With a
   72px lock-up it makes the header 172px tall for no reason, and the hero has
   to pad past all of it.

   Default alignment also left the navigation about 10px below the logos'
   optical centre, because the wrapper was taller than either child. */
.sp-header--overlay .navigation-wrapper {
	align-items: center;
	min-height: 0;
}

/* ---------------------------------------------------------------------------
 * Navigation on its own row, beneath the logos.
 *
 * This is how the header was laid out before the 20 August launch, and it comes back for a
 * practical reason: the menu is growing. Four items fitted alongside the lock-up; six do not,
 * and squeezing them shrinks the gaps until the menu reads as one long string.
 *
 * There is a second benefit that matters more than it looks. The wrapper already wraps, so the
 * header height was a function of viewport width and did NOT change monotonically: one row
 * above 1000px, two rows between 600 and 1000, one row again below 600 with a hamburger. That
 * is why the hero's top padding below needs three separate values. Pinning the menu to its own
 * row makes the height predictable, which is also what the community portal relies on when it
 * measures the header to position itself underneath.
 *
 * Only above 740px. Below that the navigation is a hamburger, which belongs on the same row as
 * the logos; giving a single button its own row would waste a band of screen on exactly the
 * devices with least of it.
 *
 * 740 rather than WordPress's own 600, and the number is measured rather than chosen. The six
 * labels come to 570px of text at the header's 16px type. At a 600px viewport the content
 * column is 552px, so the menu cannot fit on one line at any readable size, gap or no gap: it
 * would wrap, making a three-row header on precisely the short landscape screens that can
 * least afford one. 740px is where 570px of text plus tightened gaps clears the column with
 * room to spare. See the hamburger override below, which moves core's gate to match.
 * ------------------------------------------------------------------------ */
@media (min-width: 740px) {
	header .navigation-wrapper {
		row-gap: 1.15rem;
	}

	/* flex-basis 100% forces the wrap; the logos then have the first row to themselves.
	   justify-content overrides the block's own "right" setting, which was there to push the
	   menu away from the lock-up when they shared a row. On its own row the menu should start
	   where the logos start. */
	header .navigation-wrapper > .wp-block-navigation {
		flex: 1 0 100%;
		justify-content: flex-start;
	}

	/* Descendant, not a child combinator. The list is not a child of the nav element: core
	   wraps it in .wp-block-navigation__responsive-container and a dialog div so the same
	   markup can become the mobile overlay. Targeting it as a child silently matches nothing,
	   which leaves the block's own items-justified-right in force and the menu floating under
	   the middle of the header while the nav element itself sits correctly at the left. */
	header .navigation-wrapper .wp-block-navigation .wp-block-navigation__container {
		justify-content: flex-start;
	}
}

/* Between 740 and 900px six items at the full 1.75rem gap need 710px against a column of
   680 to 836. Tightening the gap to 1.1rem brings the requirement to 658px, which fits from
   740 up. Above 900 there is room for the full gap. */
@media (min-width: 740px) and (max-width: 900px) {
	header .navigation-wrapper > .wp-block-navigation,
	header .navigation-wrapper .wp-block-navigation .wp-block-navigation__container {
		gap: 1.1rem;
	}
}

/* ---------------------------------------------------------------------------
 * Move the hamburger gate from 600px to 740px.
 *
 * Core switches the navigation from hamburger to inline at exactly 600px, in four rules inside
 * a (min-width: 600px) query. Two of those are the display switch, and they are the two
 * overridden here for the 600 to 740 band. Both overrides simply add "header" to core's own
 * selector, so they win on specificity rather than on order, and they stay correct if the
 * stylesheet is ever reordered or concatenated differently.
 *
 * The other two core rules are deliberately left alone. The close button and the open-overlay
 * positioning are both scoped to .is-menu-open, so they already behave correctly when someone
 * actually opens the menu at these widths.
 * ------------------------------------------------------------------------ */
@media (min-width: 600px) and (max-width: 739.98px) {
	header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * In-page anchor jumps.
 *
 * Smooth scrolling only where the reader has not asked for reduced motion — a
 * long animated jump is a vestibular trigger, and this site invites people with
 * access needs to tell us what they need.
 *
 * scroll-margin-top matters more than it looks: the overlay header is absolutely
 * positioned, so a plain anchor jump lands the target heading underneath it and
 * the reader arrives at what looks like the middle of a paragraph. This offsets
 * the landing point by more than the header's height at each breakpoint.
 * ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

h1[id], h2[id], h3[id], [id].wp-block-heading {
	scroll-margin-top: 8rem;
}
@media (min-width: 600px) {
	h1[id], h2[id], h3[id], [id].wp-block-heading { scroll-margin-top: 12rem; }
}
@media (min-width: 1000px) {
	h1[id], h2[id], h3[id], [id].wp-block-heading { scroll-margin-top: 10.5rem; }
}

/* ===========================================================================
 * BRAND DEVICES borrowed from ruralmedia.co.uk, which runs the same guidelines.
 *
 * The problem these solve: a navy ground with white body copy is very even in
 * value, so a long page reads as one continuous slab however well it is
 * structured. Rural Media break that with three things — very large display
 * type, solid gold blocks carrying a single number, and gold hairline rules with
 * a big corner radius acting as chapter breaks. All three are used here.
 * ======================================================================== */

/* ---------------------------------------------------------------------------
 * Chapter divider — a gold hairline.
 *
 * Was a heavy curved bracket copied from ruralmedia.co.uk. At 6px it read as
 * loud, and at 3px it read as dated; the shape itself was competing with the
 * content rather than separating it. A plain hairline at partial opacity does the
 * separating job and stays quiet. Used twice on a page, not at every heading.
 * ------------------------------------------------------------------------ */
.sp-rule {
	height: 0;
	margin: clamp(2.75rem, 6vw, 4rem) 0;
	border: 0;
	border-top: 1px solid rgba(225, 177, 93, 0.5);
	border-radius: 0;
}

/* ---------------------------------------------------------------------------
 * Statistic blocks — a solid gold panel carrying one number, with a white
 * callout card overlapping its lower edge to explain what the number is.
 *
 * The overlap is the point: it breaks the rectangle, which is what stops a row
 * of three panels reading as a table. Row-gap has to allow for the card hanging
 * below its panel, hence the generous vertical gap.
 * ------------------------------------------------------------------------ */
.sp-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.75rem 1.75rem;
	margin: 2.5rem 0 1rem;
}
@media (min-width: 700px) {
	.sp-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sp-stat {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--primary);
	border-radius: 16px;
	padding: 1.25rem 1.35rem 1.35rem;
	color: var(--wp--preset--color--secondary);
}

.sp-stat__figure {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(2.6rem, 5vw, 3.4rem);
	line-height: 0.92;
	letter-spacing: -0.02em;
}

.sp-stat__unit {
	display: block;
	font-weight: 700;
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	line-height: 1.15;
	margin-top: 0.35rem;
	margin-bottom: 1rem;
}

/* The white card.

   In FLOW, not absolutely positioned. The first version was absolute, which
   meant it sat on top of the unit label ("free places", "Academies") and hid it.
   A negative bottom margin gives the same layered overhang, but the panel now
   sizes to its own content, so the card can wrap to two lines on a narrow screen
   without covering anything. */
.sp-stat__note {
	margin: auto 0 -1.9rem;
	background: #fff;
	color: var(--wp--preset--color--secondary);
	border-radius: 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	padding: 0.65rem 0.85rem;
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}
/* No horizontal overhang. The cards previously hung 0.75rem past their panel
   edges, which brought the middle and right ones within a few pixels of each
   other across the grid gap. They now overhang downward only. */

/* ---------------------------------------------------------------------------
 * Chapter headings. Larger than the theme default so the page reads as four
 * or five chapters rather than nine same-sized headings in a column.
 * ------------------------------------------------------------------------ */
.sp-chapter {
	font-size: clamp(2.1rem, 5vw, 3.25rem) !important;
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

/* Quotes inside a card need air between them and the claim they evidence —
   at the card's blockGap they read as a continuation of the paragraph. */
.wp-block-column > .sp-quote {
	margin-top: 1.35rem;
}

/* ---------------------------------------------------------------------------
 * "What you'll gain" — icon cards.
 *
 * Replaces a bullet list. A list of seven outcomes reads as terms and
 * conditions; the same seven with a mark against each read as things you get.
 * Icons are inline SVG, gold disc with a navy glyph, matching the stat panels so
 * the page has one accent language rather than several.
 *
 * Three across on desktop, two on tablet, one on a phone. Cards stretch to equal
 * height within their row so the discs line up.
 * ------------------------------------------------------------------------ */
.sp-gains {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 2rem 0 1rem;
}
@media (min-width: 560px) {
	.sp-gains { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
	.sp-gains { grid-template-columns: repeat(3, 1fr); }
}

.sp-gain {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.10);
}

.sp-gain__icon {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	display: grid;
	place-items: center;
}
.sp-gain__icon svg {
	width: 25px;
	height: 25px;
	display: block;
}

.sp-gain__text {
	margin: 0;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.4;
	align-self: center;
}

/* Offer cards — the alumni "what membership gives you" grid.
   Same border, radius and icon treatment as .sp-gain so the two pages read
   as one system, but stacked rather than inline: these carry a heading and a
   paragraph, where a gain is a single label. Two rows of three on desktop. */
.sp-offers {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 2rem 0 1rem;
}
@media (min-width: 600px) {
	.sp-offers { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
	.sp-offers { grid-template-columns: repeat(3, 1fr); }
}

.sp-offer {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.5rem 1.5rem 1.6rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.10);
}

.sp-offer__icon {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	display: grid;
	place-items: center;
}
.sp-offer__icon svg {
	width: 25px;
	height: 25px;
	display: block;
}

/* Heading sizes are set here rather than left to the global h3 rule, which is
   scaled for running text and comes out too large inside a card. */
/* Card titles carry real weight now. Kept a clear step below .sp-route__label
   so the route heading still leads: the two are also separated by colour, font
   and weight, so the size gap does not have to do all the work. */
.sp-offer h3,
.sp-offer h4 {
	margin: 0;
	font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem);
	line-height: 1.25;
	font-weight: 700;
}

.sp-offer p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* Progression quotes sit in a row beneath the gains, not beside them — the two
   groups are different shapes and never balanced side by side. */
.sp-progression {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1.5rem 0 0;
}
@media (min-width: 800px) {
	.sp-progression { grid-template-columns: repeat(3, 1fr); }
}
.sp-progression .sp-quote {
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Hub hero, corrected 19 August.
 *
 * The rules further up this file were written for a two-part hero: H1 pinned to
 * the top edge, tagline group pinned to the bottom, with justify-content:
 * space-between doing the pushing. That design is gone — the H1, the statement
 * and the strapline are now one cluster — so space-between had a single child to
 * distribute and parked it at the top of a stretched container.
 *
 * Two corrections, scoped to .sp-hero.sp-hero-full so the other full-bleed
 * heroes on Introductory Courses, Alumni and the archive keep their own layout:
 *
 *   1. flex-end, so the cluster sits on the bottom edge. The gradient is
 *      strongest at the bottom (0.62 navy at 0%), so this also puts the text on
 *      the darkest part of the scrim rather than the lightest.
 *   2. An explicit 1000px centred column, matching theme.json's contentSize,
 *      which is what the body copy below is constrained to. The previous rule
 *      relied on var(--wp--style--global--content-size) and was not taking
 *      effect, which is why the hero text started at the screen edge while every
 *      paragraph below it started at the content column.
 * ------------------------------------------------------------------------ */
.sp-hero.sp-hero-full .wp-block-cover__inner-container {
	justify-content: flex-end;
	row-gap: 0.45rem;
	max-width: 1000px;
	margin-inline: auto;
}

/* ---------------------------------------------------------------------------
 * Image corners: photographs rounded, logos square.
 *
 * Until 3.3.45, theme.json set core/image border.radius to 16px, which WordPress
 * emitted as  :root :where(.wp-block-image img, ...) { border-radius: 16px }
 * so every image on the site was rounded, logos included. Logo artwork usually
 * runs to the edge of its file, so the curve cut into the ink: the BFI roundel
 * (BFI marketing, 19 August), the Rural Media mark (Elle), the Training Courses
 * section logos (Dan, 28 September) and the About page logos and funder row
 * (Dan, 25 November). Each fix added one more place to an exemption list, and
 * the next logo somewhere new was clipped again.
 *
 * Now the theme rounds nothing by default (the theme.json entry is gone), and
 * the corner is given only to photographs, recognised by file type: JPEG files
 * get 16px. PNG, WebP, SVG and GIF files, which is how logos arrive, stay square
 * wherever they are placed. A logo that only exists as a JPEG (the Clive
 * Richards Foundation mark on About) takes the "Logo" image style in the editor,
 * registered in functions.php, which squares it. A radius set on one image in
 * the editor's Border panel is inline and still wins.
 *
 * :where() keeps the photograph rule at the specificity of one class, so every
 * rule below, the Logo style and core's circular "Rounded" style all beat it.
 * ------------------------------------------------------------------------ */
.wp-block-image :where(img[src*=".jpg" i], img[src*=".jpeg" i]) {
	border-radius: 16px;
}

.wp-block-image.is-style-logo img,
.sp-brandbar img,
.sp-brandbar figure.wp-block-image img,
footer .wp-block-image img {
	border-radius: 0;
}

/* ---------------------------------------------------------------------------
 * Logo Grid (3.3.46, 25 November 2026).
 *
 * The "Logo Grid" style on a Group block, and the Logo Grid pattern that uses
 * it. Built because the About page's Funders and Partners were seven logos in
 * columns nested three deep, each sized by hand and top-aligned, so the gaps and
 * the logos' apparent sizes varied. Here the editor only adds Image blocks; the
 * theme does the rest:
 *
 *   spacing    every logo gets a 200 x 100 cell; cells wrap and centre, so a
 *              part-filled last row sits in the middle. Two per row on a phone.
 *   size       functions.php (sebastiantwo_logo_grid_sizes) gives each logo a
 *              width that makes every logo cover about the same area, so a tall
 *              crest and a long wordmark carry the same weight. Without it (in
 *              the editor, or a file with no recorded size) the logo is simply
 *              fitted inside its cell.
 *   overrides  any width set by dragging a logo's handles is ignored here, on
 *              purpose: hand-sizing is what made the old row uneven.
 *   corners    always square, whatever the file type.
 *
 * Child margins are zeroed: theme.json's blockGap would otherwise add a margin
 * on top of the flex gap and double the spacing.
 * ------------------------------------------------------------------------ */
.wp-block-group.is-style-logo-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2.5rem 3.5rem;
}

.wp-block-group.is-style-logo-grid > * {
	margin: 0;
}

.wp-block-group.is-style-logo-grid > .wp-block-image {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 200px;
	max-width: calc(50% - 1.75rem);
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-group.is-style-logo-grid > .wp-block-image > a,
.wp-block-group.is-style-logo-grid .wp-block-image .components-resizable-box__container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
}

.wp-block-group.is-style-logo-grid .wp-block-image img {
	width: var(--sp-logo-w, auto) !important;
	height: auto !important;
	aspect-ratio: auto !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 0;
}

@media (max-width: 600px) {
	.wp-block-group.is-style-logo-grid {
		gap: 2rem 1.5rem;
	}

	.wp-block-group.is-style-logo-grid > .wp-block-image {
		max-width: calc(50% - 0.75rem);
		height: 80px;
	}
}

/* ---------------------------------------------------------------------------
 * The phone menu (3.3.47, 1 December 2026), ported from the Hub's SebastianOne
 * fix of 8 October 2026.
 *
 * Dan: the phone menu "doesn't seem to be functioning fully... the branding
 * doesn't seem to have followed over". Measured at 375px before this: a white
 * panel with black text, every item pushed to the right edge, the room names at
 * 29px so they wrapped ("Meeting Room / 1"), and "Our Facilities" at 14px.
 *
 * Two core rules were beating the theme's own mobile rules at the top of this
 * file: core paints the overlay white with a five-class selector, and the
 * block's right justification arrives as variables set on the list itself.
 *
 * Now: StoryPoint navy with white text, everything from the left, one size for
 * the main items with a thin divider between them, the rooms smaller and grouped
 * under a gold rule, and gold for the page you are on. Every selector is scoped
 * to .is-menu-open, so the desktop menu is untouched.
 * ------------------------------------------------------------------------ */
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open.has-modal-open:not(.disable-default-overlay) {
	background-color: var(--wp--preset--color--secondary);
	color: #FFFFFF;
	padding: 1.25rem 1.5rem 2.5rem;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: #FFFFFF;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: 3.25rem;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}
/* The block's right justification arrives as these variables, set on the list itself, and
   core lines every item up by them. Reset them where they are set, on both lists. */
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .wp-block-navigation-item {
	display: block;
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .wp-block-navigation-item > a.wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.9rem 0;
	color: #FFFFFF;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin: 0 0 1rem 0.1rem;
	padding: 0 0 0 1rem;
	border: 0;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-radius: 0;
	background: transparent;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100%;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container a.wp-block-navigation-item__content {
	display: block;
	padding: 0.5rem 0;
	color: #FFFFFF;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container a.wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container a.wp-block-navigation-item__content:focus-visible,
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .current-menu-item > a.wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

/* ---------------------------------------------------------------------------
 * Course Cards (3.3.49, 1 December 2026).
 *
 * The "Course Cards" style on a Columns block, built for Training and Courses.
 * Each column is one course, top to bottom:
 *
 *   1  the logo box
 *   2  the course title
 *   3  the intro sentence
 *   4  a "Details" group holding everything else (paragraphs, lists, links)
 *   5  the Buttons block
 *
 * On a laptop or wider (782px up, where Columns sit side by side) each of those
 * five rows lines up across the cards: every title starts at the same height,
 * every intro, every Details box, and the buttons sit level along the bottom,
 * however long each course's text is. This is CSS subgrid: the Columns block
 * becomes a five-row grid and each column borrows those rows.
 *
 * On a phone the Columns stack as normal and nothing here applies.
 *
 * If a column ever has more than five blocks (a paragraph added outside the
 * Details group, say), that column quietly drops back to a plain stack rather
 * than overlapping, so a slip in editing can't break the page.
 * ------------------------------------------------------------------------ */
@media (min-width: 782px) {
	.wp-block-columns.is-style-course-cards {
		display: grid !important;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		grid-template-rows: repeat(5, auto);
		row-gap: 1.5rem;
		align-items: stretch;
	}

	.wp-block-columns.is-style-course-cards > .wp-block-column {
		/* !important: the older Cards of equal height rule makes any column holding a coloured
		   box a flex column, with a more specific selector than this one. */
		display: grid !important;
		grid-row: 1 / span 5;
		grid-template-rows: subgrid;
		align-self: stretch;
		margin: 0 !important;
		min-width: 0;
	}

	.wp-block-columns.is-style-course-cards > .wp-block-column > * {
		margin: 0 !important;
	}

	.wp-block-columns.is-style-course-cards > .wp-block-column > .wp-block-buttons {
		grid-row: 5;
		align-self: end;
	}

	/* More than five blocks in a column: plain stack, buttons still at the bottom. */
	.wp-block-columns.is-style-course-cards > .wp-block-column:has(> :nth-child(6)) {
		display: flex !important;
		flex-direction: column;
		gap: 1.5rem;
	}

	.wp-block-columns.is-style-course-cards > .wp-block-column:has(> :nth-child(6)) > .wp-block-buttons {
		margin-top: auto !important;
	}

	/* The logo box keeps its own height; the older equal-height rule would stretch it. */
	.wp-block-columns.is-style-course-cards > .wp-block-column > .wp-block-group.has-background {
		flex: 0 0 auto;
	}
}

/* ---------------------------------------------------------------------------
 * Navigation submenu.
 *
 * Nothing styled this, so it fell through to core's default: white panel, black
 * text, square corners, grey hairline. Against a navy site sitting over a
 * photograph it read as a browser artefact rather than part of the design.
 *
 * Brought into the brand: navy panel, gold hairline, 12px radius to match the
 * card language used on the Hub and Introductory Courses pages, and gold on
 * hover and for the current page, matching the top-level navigation highlight.
 *
 * Scoped to :not(.is-menu-open) on purpose. Below 600px the navigation collapses
 * into a full-screen overlay which is deliberately WHITE with navy text (see the
 * responsive rules at the top of this file), so a navy panel inside it would be
 * invisible. There, core's own inherited colours are correct.
 * ------------------------------------------------------------------------ */
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation .has-child .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-container {
	background-color: #103A4D;
	border: 1px solid rgba(225, 177, 93, 0.38);
	border-radius: 12px;
	padding: 0.4rem;
	min-width: 15rem;
	box-shadow: 0 18px 40px rgba(4, 20, 28, 0.45);
	/* Core offsets the panel by the parent's padding; pull it back under the
	   label and give it a little air beneath the header. */
	margin-top: 0.5rem;
	overflow: hidden;
}

.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #FFFFFF;
	padding: 0.62rem 0.85rem;
	border-radius: 8px;
	line-height: 1.35;
	width: 100%;
}

/* Hairline between items, in the same value as the card borders elsewhere.
   Not after the last one. */
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-container > .wp-block-navigation-item + .wp-block-navigation-item {
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	color: #E1B15D;
	background-color: rgba(225, 177, 93, 0.12);
}

/* Current page inside the submenu, matching the top-level rule. The element
   selector is needed because WordPress global styles load after this file. */
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-container li.current-menu-item > a.wp-block-navigation-item__content {
	color: #E1B15D;
	background-color: rgba(225, 177, 93, 0.16);
}

/* The parent item's chevron, so it reads as ours rather than default grey. */
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-icon {
	color: currentColor;
}


/* ---------------------------------------------------------------------------
 * Fluent Forms, in the Rural Media brand.
 *
 * The plugin ships two stylesheets: fluent-forms-public.css (structure, rooted
 * at .fluentform) and fluentform-public-default.css (the "default" skin, rooted
 * at .ff-default). Both land at (0,2,0) or (0,3,0). Every rule below is rooted
 * at .fluentform.ff-default, and that one element carries both classes, so this
 * buys a class of specificity without !important anywhere.
 *
 * Colour logic: the page is navy, so the panel is a lifted navy and all type on
 * it is white or gold. Inputs invert to white with navy ink, which is both the
 * strongest contrast available and a match for the signature pad, whose white
 * canvas, gold border and navy pen are set in the field's own settings.
 *
 * Single column is deliberate. It is the accessible pattern for a long form,
 * and it matches BFI's own template.
 * --------------------------------------------------------------------------- */

.sp-formpanel,
.fluentform {
	--sp-ff-gold: var(--wp--preset--color--primary, #E1B15D);
	--sp-ff-cream: var(--wp--preset--color--accent-cream, #EAC892);
	--sp-ff-navy: var(--wp--preset--color--secondary, #103A4D);
	--sp-ff-white: var(--wp--preset--color--foreground, #FFFFFF);
	--sp-ff-muted: var(--wp--preset--color--tertiary, #9ABAC0);
	--sp-ff-coral: var(--wp--preset--color--accent-coral, #E67675);
	--sp-ff-blush: var(--wp--preset--color--accent-blush, #F2BEBA);
	--sp-ff-panel: #15475C;
	--sp-ff-hairline: rgba(225, 177, 93, 0.38);
	--sp-ff-radius: 0.5rem;
}

/* ---- The panel ---------------------------------------------------------- */

/* The panel matches the site content column exactly, so its left edge lines up with the
   page title, the body copy and the footer. It was 800px, which looked deliberate in
   isolation but sat 100px inside everything else on the page and read as a mistake.

   Read from the theme rather than hardcoded, so it follows contentSize if that changes. */
.sp-formpanel {
	max-width: var(--wp--style--global--content-size, 1000px);
	margin-inline: auto;
	background-color: var(--sp-ff-panel);
	border: 1px solid var(--sp-ff-hairline);
	border-radius: 20px;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	box-shadow: 0 24px 60px rgba(4, 20, 28, 0.35);
}


/* The masthead label is normally a caption above a form that the page title has already
   introduced. On the sign-in page there is no separate title saying "sign in", so the
   label IS the heading and has to carry that weight. Tracking eases as it grows, for the
   same reason it does on the base rule. */
.sp-form-masthead--lead .sp-form-masthead__label {
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	letter-spacing: 0.02em;
	text-transform: none;
	/* Repeated from the base rule rather than inherited. On pages using the page-form template
	   this label is marked up as the h1, so it picks up .wp-block-heading, whose margins carry
	   the same single-class weight as .sp-form-masthead__label and would otherwise win or
	   lose on stylesheet order alone. Two classes settles it. */
	margin: 0;
	line-height: 1.15;
}

/* ---- Masthead ----------------------------------------------------------- */

.sp-formpanel .sp-form-masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem clamp(0.9rem, 2.4vw, 1.6rem);
	padding-bottom: 1.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--sp-ff-hairline);
}

/* ---------------------------------------------------------------------------
 * The gap around a form's opening paragraph.
 *
 * Three separate margins were stacking above and below the intro line, which left it floating
 * in the middle of a large empty band rather than reading as the first thing under the rule:
 *
 *   above  the masthead's own margin-bottom, plus the paragraph's inherited 1rem margin-top,
 *          came to 56px below the hairline
 *   below  the section break's 44px margin-top won the collapse against the intro block's
 *          own margin, so there was more space before "About You" than the heading needed
 *
 * The masthead margin above is now 1.25rem rather than 2rem, and the paragraph's own top
 * margin goes entirely: the masthead has already provided the space, and a first paragraph
 * adding its own to it is the definition of double spacing.
 *
 * The section break rule is scoped with an adjacent sibling so it only tightens the ONE break
 * that follows an intro block. Section breaks elsewhere in a form separate whole groups of
 * questions and still want their full 44px.
 * --------------------------------------------------------------------------- */
.sp-formpanel .ff-custom_html > p:first-child,
.sp-formpanel .ff-custom_html > *:first-child {
	margin-top: 0;
}

/* The gap above the intro is NOT the masthead's margin, which is why reducing that alone
   changed nothing. WordPress puts a 40px margin-block-start on every flow child of a block
   group, so the form wrapper sits 40px below the masthead and collapses the masthead's own
   20px into irrelevance. This targets the actual source. */
.sp-formpanel > .fluentform {
	margin-block-start: 1.5rem;
}

/* Both of the following have to out-specify rules further up THIS stylesheet, not Fluent
   Forms': .fluentform.ff-default .ff-el-group and .fluentform.ff-default .ff-el-section-break
   are three classes each, so a two-class selector loses however sensible it looks. Four
   classes settles it. */
.sp-formpanel .fluentform.ff-default .ff-custom_html {
	margin-bottom: 1rem;
}

.sp-formpanel .fluentform.ff-default .ff-custom_html + .ff-el-section-break {
	margin-top: 1.5rem;
}

.sp-form-masthead__marks {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2.4vw, 1.6rem);
}

.sp-form-masthead__marks figure {
	margin: 0;
	line-height: 0;
}

/* Both marks are trimmed to their ink, so clear space is supplied here, and the
   site-wide 16px image radius from theme.json is cancelled. Same cause as the
   brandbar, noted above. */
.sp-form-masthead__marks img {
	display: block;
	width: auto;
	border-radius: 0;
	padding-inline: 0.35rem;
}

.sp-form-masthead__marks .sp-form-masthead__bfi img {
	height: clamp(34px, 4.4vw, 54px);
}

/* Hairline on the second mark, so a failed image leaves no stray rule. */
.sp-form-masthead__marks .sp-form-masthead__rm {
	border-left: 1px solid rgba(255, 255, 255, 0.28);
	padding-left: clamp(0.9rem, 2.4vw, 1.6rem);
}

.sp-form-masthead__marks .sp-form-masthead__rm img {
	height: clamp(23px, 3vw, 36px);
}

.sp-form-masthead__label {
	margin: 0;
	font-family: var(--wp--preset--font-family--display, 'Jost', sans-serif);
	font-size: clamp(1.05rem, 2.2vw, 1.375rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sp-ff-gold);
}

/* ---- Typography inside the form ---------------------------------------- */

.fluentform.ff-default,
.fluentform.ff-default .ff-el-form-control,
.fluentform.ff-default .ff-btn,
.fluentform.ff-default .ff-el-input--label label {
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
}

.fluentform.ff-default .ff-el-input--label label {
	display: block;
	margin-bottom: 0.45rem;
	color: var(--sp-ff-white);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

/* Gold, not the plugin's red. A required marker is information, not an error. */
.fluentform.ff-default .ff-el-input--label.ff-el-is-required.asterisk-right label:after,
.fluentform.ff-default .ff-el-input--label.ff-el-is-required.asterisk-left label:before {
	color: var(--sp-ff-gold);
}

.fluentform.ff-default .ff-el-help-message,
.fluentform.ff-default .ff-section_break_desk,
.fluentform.ff-default .ff-el-signature__actions-hint {
	color: var(--sp-ff-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.fluentform.ff-default .ff-el-group {
	margin-bottom: 1.6rem;
}

/* ---- Section breaks ---------------------------------------------------- */

.fluentform.ff-default .ff-el-section-break {
	margin-top: 2.75rem;
	margin-bottom: 1.75rem;
}

.fluentform.ff-default .ff-el-group:first-child + .ff-el-section-break {
	margin-top: 0;
}

.fluentform.ff-default .ff-el-section-break .ff-el-section-title {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--display, 'Jost', sans-serif);
	font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sp-ff-gold);
}

/* The plugin closes every section with a bare <hr>. Recast it as a gold
   hairline rather than the browser's grey bevel. */
.fluentform.ff-default .ff-el-section-break hr {
	height: 0;
	margin: 1rem 0 0;
	border: 0;
	border-top: 1px solid var(--sp-ff-hairline);
	background: none;
}

/* ---- Prose blocks (the declaration and data protection notices) -------- */

.fluentform.ff-default .ff-custom_html {
	color: var(--sp-ff-white);
	font-size: 1rem;
	line-height: 1.6;
}

.fluentform.ff-default .ff-custom_html p:last-child,
.fluentform.ff-default .ff-custom_html ul:last-child {
	margin-bottom: 0;
}

.fluentform.ff-default .ff-custom_html ul {
	margin: 0.75rem 0 0;
	padding-left: 1.35rem;
	list-style: none;
}

.fluentform.ff-default .ff-custom_html li {
	position: relative;
	margin-bottom: 0.6rem;
	color: rgba(255, 255, 255, 0.88);
}

.fluentform.ff-default .ff-custom_html li:before {
	content: "";
	position: absolute;
	left: -1.35rem;
	top: 0.62em;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background-color: var(--sp-ff-gold);
}

.fluentform.ff-default a {
	color: var(--sp-ff-cream);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.fluentform.ff-default a:hover {
	color: var(--sp-ff-white);
}

/* ---- Text inputs, textareas, selects ----------------------------------- */

.fluentform.ff-default .ff-el-form-control {
	width: 100%;
	background-color: var(--sp-ff-white);
	color: var(--sp-ff-navy);
	border: 2px solid transparent;
	border-radius: var(--sp-ff-radius);
	padding: 0.8rem 1rem;
	font-size: 1rem;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fluentform.ff-default textarea.ff-el-form-control {
	min-height: 8.5rem;
	line-height: 1.6;
	resize: vertical;
}

.fluentform.ff-default .ff-el-form-control::placeholder {
	color: rgba(16, 58, 77, 0.5);
	opacity: 1;
}

.fluentform.ff-default .ff-el-form-control:focus,
.fluentform.ff-default .ff-el-form-control:focus-visible {
	background-color: var(--sp-ff-white);
	color: var(--sp-ff-navy);
	border-color: var(--sp-ff-gold);
	outline: none;
	box-shadow: 0 0 0 4px var(--sp-ff-gold);
}

.fluentform.ff-default select.ff-el-form-control {
	height: auto;
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.5rem;
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 1rem 1rem;
	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='%23103A4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6.5L8 10.5l4-4'/%3E%3C/svg%3E");
}

/* ---- Name and address sub-grids ---------------------------------------- */

.frm-fluent-form .ff-t-container {
	gap: 1rem;
	flex-wrap: wrap;
}

/* The plugin gives every cell width: 100%, which is harmless while the row is
   nowrap and shrinks them to fit. Once wrapping is allowed each cell claims a
   full line, so the basis has to be restated: share the row from 13rem up,
   and drop to one per line only when there is genuinely no space. */
.frm-fluent-form .ff-t-container > .ff-t-cell {
	flex: 1 1 13rem;
	width: auto;
	min-width: 0;
}

/* The address element repeats its own label above the sub-grid. Give it the
   weight of a sub-heading so it does not read as a field label. */
.fluentform.ff-default .fluent-address > .ff-el-input--label label {
	font-size: 1.0625rem;
	margin-bottom: 0.75rem;
}

/* ---- Radios and checkboxes --------------------------------------------- */

/* The default skin blanks the pseudo-elements it would otherwise draw
   (content: none), leaving the native control exposed. Native controls do not
   take a brand colour reliably, so they are redrawn here with appearance: none
   and a background image, not ::after, which is not dependable on inputs. */
.fluentform.ff-default .ff-el-form-check {
	margin-bottom: 0;
}

.fluentform.ff-default .ff-el-form-check label.ff-el-form-check-label {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 0.7rem;
	color: var(--sp-ff-white);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

.fluentform.ff-default .ff-el-form-check label.ff-el-form-check-label > span {
	margin-left: 0;
}

.fluentform.ff-default .ff-el-form-check-label .ff-el-form-check-input {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	position: relative;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0;
	top: 0.15em;
	vertical-align: baseline;
	background-color: var(--sp-ff-white);
	background-repeat: no-repeat;
	background-position: center;
	border: 2px solid rgba(16, 58, 77, 0.28);
	cursor: pointer;
	transition: background-color 0.12s ease-in-out, border-color 0.12s ease-in-out,
		box-shadow 0.12s ease-in-out;
}

.fluentform.ff-default .ff-el-form-check-label .ff-el-form-check-checkbox {
	border-radius: 5px;
}

.fluentform.ff-default .ff-el-form-check-label .ff-el-form-check-radio {
	border-radius: 50%;
}

.fluentform.ff-default .ff-el-form-check-label .ff-el-form-check-checkbox:checked {
	background-color: var(--sp-ff-gold);
	border-color: var(--sp-ff-gold);
	background-size: 82% 82%;
	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='%23103A4D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.4l3.1 3.1L12.5 5.1'/%3E%3C/svg%3E");
}

.fluentform.ff-default .ff-el-form-check-label .ff-el-form-check-radio:checked {
	border-color: var(--sp-ff-gold);
	background-image: radial-gradient(circle at center, var(--sp-ff-gold) 0 44%, transparent 46%);
}

.fluentform.ff-default .ff-el-form-check-label .ff-el-form-check-input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--sp-ff-gold);
}

.fluentform.ff-default .ff-el-form-check label.ff-el-form-check-label:hover
	.ff-el-form-check-input:not(:checked) {
	border-color: rgba(225, 177, 93, 0.75);
}

/* ---- Signature ---------------------------------------------------------- */

/* The canvas takes its white ground, gold border and navy pen from the field
   settings in the form definition, so only the surround is set here.

   The add-on gives the wrapper width: fit-content, which collapses it to the
   canvas's 300px intrinsic width even though the canvas asks for 100%. */
.fluentform.ff-default .fluentform-signature-pad-wrapper {
	width: 100%;
	max-width: 100%;
	border-radius: var(--sp-ff-radius);
}

/* The canvas carries height="200" but no width attribute, so its intrinsic
   ratio is 300x200. Stretched to the field width with height left auto, that
   ratio blows it up to well over twice the intended depth. Restating the
   height keeps it at the sign_pad_height set on the field. */
.fluentform.ff-default .fluentform-signature-pad-wrapper canvas {
	display: block;
	width: 100%;
	height: 200px;
	max-width: 100%;
	border-radius: var(--sp-ff-radius);
	cursor: crosshair;
	touch-action: none;
}

/* Hint to the left, the three controls to the right. The add-on floats the
   controls and puts them first in the DOM, so the float is dropped and order
   restated rather than left to wrap around each other. */
.fluentform.ff-default .ff-el-signature__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-top: 0.75rem;
}

.fluentform.ff-default .ff-el-signature__actions-hint {
	order: 1;
}

.fluentform.ff-default .fluentform-signature-pad-actions {
	order: 2;
	float: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0;
}

/* The add-on hard-codes fill: #c3c3c3 on the icons, which is off-palette and
   near-invisible on navy. currentColor makes them follow the button, so the
   hover inversion below comes for free. */
.fluentform.ff-default .fluentform-signature-pad-actions svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	display: block;
}

/* Icon-only, so square padding keeps them circular. */
.fluentform.ff-default .fluentform-signature-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: var(--sp-ff-cream);
	background-color: transparent;
	border: 1px solid var(--sp-ff-hairline);
	border-radius: 999px;
	padding: 0.45rem;
	margin-right: 0;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.fluentform.ff-default .fluentform-signature-button:hover,
.fluentform.ff-default .fluentform-signature-button:focus-visible {
	color: var(--sp-ff-navy);
	background-color: var(--sp-ff-gold);
	border-color: var(--sp-ff-gold);
	outline: none;
}

/* ---- Submit ------------------------------------------------------------- */

/* Matched to .wp-element-button and the Sensei buttons above: gold ground,
   navy ink, full pill. */
.fluentform.ff-default .ff-el-group.ff_submit_btn_wrapper {
	margin-top: 2.25rem;
	margin-bottom: 0;
}

.fluentform.ff-default .ff-btn-submit.ff_btn_style {
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sp-ff-navy);
	background-color: var(--sp-ff-gold);
	border: 2px solid var(--sp-ff-gold);
	border-radius: 999px;
	padding: 0.95rem 2.25rem;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.fluentform.ff-default .ff-btn-submit.ff_btn_style:hover,
.fluentform.ff-default .ff-btn-submit.ff_btn_style:focus-visible {
	opacity: 1;
	color: var(--sp-ff-navy);
	background-color: var(--sp-ff-cream);
	border-color: var(--sp-ff-cream);
	outline: none;
}

.fluentform.ff-default .ff-btn-submit.ff_btn_style:focus-visible {
	box-shadow: 0 0 0 4px var(--sp-ff-gold);
}

/* ---- Errors and messages ----------------------------------------------- */

/* Blush on navy, coral on white. The plugin's #f56c6c fails contrast against
   the panel and is off-palette. */
.fluentform.ff-default .text-danger,
.fluentform.ff-default .error.text-danger,
.fluentform.ff-default .ff-el-is-error .text-danger {
	color: var(--sp-ff-blush);
	font-size: 0.9375rem;
	margin-top: 0.35rem;
}

.fluentform.ff-default .ff-el-is-error .ff-el-form-control {
	border-color: var(--sp-ff-coral);
}

.fluentform.ff-default .ff-el-is-error .ff-el-form-check-label,
.fluentform.ff-default .ff-el-is-error .ff-el-form-check-label a {
	color: var(--sp-ff-blush);
}

.ff-errors-in-stack,
.ff-errors-in-stack .error {
	color: var(--wp--preset--color--accent-blush, #F2BEBA);
}

.sp-formpanel .ff-message-success,
.fluentform.ff-default .ff-message-success {
	margin-top: 0;
	padding: 1.5rem 1.75rem;
	color: var(--sp-ff-white);
	background-color: rgba(225, 177, 93, 0.12);
	border: 1px solid var(--sp-ff-hairline);
	border-radius: var(--sp-ff-radius);
	box-shadow: none;
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* ---- Date picker -------------------------------------------------------- */

/* flatpickr appends its calendar to <body>, outside .fluentform, so these
   cannot be scoped to the form. Nothing else on the site uses flatpickr. */
.flatpickr-calendar {
	background-color: #15475C;
	border: 1px solid rgba(225, 177, 93, 0.38);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(4, 20, 28, 0.45);
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
	display: none;
}

.flatpickr-months,
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays {
	background-color: transparent;
	color: #FFFFFF;
	fill: #FFFFFF;
}

span.flatpickr-weekday {
	background-color: transparent;
	color: #9ABAC0;
	font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
	color: #FFFFFF;
	background-color: transparent;
	font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
	color: #103A4D;
	background-color: #FFFFFF;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
	fill: #E1B15D;
}

.flatpickr-day {
	color: rgba(255, 255, 255, 0.92);
	border-radius: 8px;
	border-color: transparent;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
	color: #FFFFFF;
	background-color: rgba(225, 177, 93, 0.22);
	border-color: transparent;
}

.flatpickr-day.today {
	border-color: #E1B15D;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
	color: #103A4D;
	background-color: #E1B15D;
	border-color: #E1B15D;
	font-weight: 700;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
	color: rgba(255, 255, 255, 0.32);
}

.numInputWrapper span.arrowUp:after {
	border-bottom-color: #E1B15D;
}

.numInputWrapper span.arrowDown:after {
	border-top-color: #E1B15D;
}

/* ---- Motion ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.fluentform.ff-default .ff-el-form-control,
	.fluentform.ff-default .ff-el-form-check-label .ff-el-form-check-input,
	.fluentform.ff-default .ff-btn-submit.ff_btn_style,
	.fluentform.ff-default .fluentform-signature-button {
		transition: none;
	}
}


/* ---------------------------------------------------------------------------
 * Two routes into the Hub, on the lead page.
 *
 * Not four equal strands, which was the first reading and was wrong. There are
 * two routes, and the four cards are two pairs:
 *
 *   Apply   Introductory Courses, and the year-round activity they sit inside.
 *           Open to anyone coming to the Hub for the first time.
 *   Alumni  Membership, and the workshops, events and industry placements that
 *           run through the membership platform. For people who have already
 *           completed an Academy anywhere in the country.
 *
 * Colour separates the pairs, and each pair ALSO carries a text label. Colour
 * on its own would fail WCAG 1.4.1 and would tell a colour-blind reader nothing,
 * and which route applies to you is the single most important thing on the page.
 * --------------------------------------------------------------------------- */

.sp-routes {
	display: grid;
	gap: 2.25rem;
	margin: 1.75rem 0 0;
}

/* A real heading, not a styled paragraph. It names the group of cards beneath
   it, so a screen reader navigating by heading needs to hear it: without this
   the route distinction, which is the most important thing in the section, was
   visible but not announced.
   Mixed case rather than uppercase. Small tracked caps work as a label; at this
   size they shout, and Dan asked for clearer. */
.sp-route__label {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--display, 'Jost', sans-serif);
	font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}
.sp-route--apply .sp-route__label {
	color: var(--wp--preset--color--primary);
}
.sp-route--alumni .sp-route__label {
	color: var(--wp--preset--color--accent-mint);
}

/* Two cards to a row from tablet up. The base .sp-offers rule goes to three
   columns at 940px, which is wrong for a pair. */
.sp-offers.sp-offers--pair {
	margin: 0;
}
@media (min-width: 600px) {
	.sp-offers.sp-offers--pair { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
	.sp-offers.sp-offers--pair { grid-template-columns: repeat(2, 1fr); }
}

/* Route tints. Kept low-alpha so the cards still read as one family. */
.sp-offer--apply {
	background: rgba(225, 177, 93, 0.09);
	border-color: rgba(225, 177, 93, 0.30);
}
a.sp-offer--apply:hover,
a.sp-offer--apply:focus-visible {
	background: rgba(225, 177, 93, 0.16);
	border-color: rgba(225, 177, 93, 0.55);
}

.sp-offer--alumni {
	background: rgba(159, 210, 192, 0.09);
	border-color: rgba(159, 210, 192, 0.30);
}
a.sp-offer--alumni:hover,
a.sp-offer--alumni:focus-visible {
	background: rgba(159, 210, 192, 0.16);
	border-color: rgba(159, 210, 192, 0.55);
}
.sp-offer--alumni .sp-offer__icon {
	background: var(--wp--preset--color--accent-mint);
}
.sp-offer--alumni .sp-offer__more {
	color: var(--wp--preset--color--accent-mint);
}
a.sp-offer--alumni:hover .sp-offer__more,
a.sp-offer--alumni:focus-visible .sp-offer__more {
	color: var(--wp--preset--color--accent-mint);
}
a.sp-offer--alumni:focus-visible {
	outline-color: var(--wp--preset--color--accent-mint);
}

/* The whole card is the link.
 *
 * First attempt made only the h3 a link, which failed twice over: the heading
 * did not look clickable, and the one thing that did look clickable, the
 * "See what is on" prompt at the foot of the card, was not a link at all. An
 * anchor wrapping the card fixes both and gives a target the size of the card.
 * <a> may contain headings and paragraphs; it may not contain other
 * interactive elements, so nothing inside these cards may become a link. */
a.sp-offer {
	text-decoration: none;
	color: inherit;
}
a.sp-offer:hover,
a.sp-offer:focus-visible {
	background: rgba(225, 177, 93, 0.10);
	border-color: rgba(225, 177, 93, 0.38);
}
a.sp-offer:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}
a.sp-offer:hover .sp-offer__more,
a.sp-offer:focus-visible .sp-offer__more {
	color: var(--wp--preset--color--primary);
}

/* Pushed to the bottom of the card so the prompts line up across a row even
   when the descriptions differ in length. */
.sp-offer__more {
	margin-top: auto;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-cream);
}


/* ---------------------------------------------------------------------------
 * Registration panel on the lead page.
 *
 * Was a cover block on a photograph. Dan cut the image: the panel is the primary
 * action on the page and the picture was competing with it rather than helping.
 * Same lifted navy and gold hairline as the form panel, so the two read as the
 * same object in two places.
 * --------------------------------------------------------------------------- */

/* Sits at the body text width, not alignwide. A panel wider than the paragraphs
   above and below it reads as a different column rather than a step in the same
   argument. Padding kept modest for the same reason. */
.sp-ctapanel {
	background-color: #15475C;
	border: 1px solid rgba(225, 177, 93, 0.38);
	border-radius: 16px;
	padding: clamp(1.35rem, 2.6vw, 1.85rem);
	margin-block: 2.5rem;
}

.sp-ctapanel > :first-child { margin-top: 0; }
.sp-ctapanel > :last-child { margin-bottom: 0; }


/* ---------------------------------------------------------------------------
 * One action per route, beneath the pair.
 *
 * Replaces the "See what is on ->" line inside every card. Four link lines gave
 * the section four competing calls to action and made each card a click target
 * whose destination was not obvious; one button per route states the action once.
 *
 * Deliberately outline, not filled. "Register with the Hub" is the only filled
 * button on the page and needs to stay that way: these two are the secondary
 * route, and the launch priority is Hub registration.
 *
 * Colour follows the route, via currentColor on the border so text and border
 * can never drift apart.
 * --------------------------------------------------------------------------- */

.sp-route__action {
	margin: 1.35rem 0 0;
}

.sp-route__action a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	background-color: transparent;
	border: 2px solid currentColor;
	border-radius: 999px;
	padding: 0.85rem 1.75rem;
	transition: background-color 0.15s, color 0.15s;
}

.sp-route--apply .sp-route__action a {
	color: var(--wp--preset--color--primary);
}
.sp-route--apply .sp-route__action a:hover,
.sp-route--apply .sp-route__action a:focus-visible {
	color: var(--wp--preset--color--secondary);
	background-color: var(--wp--preset--color--primary);
	outline: none;
}

.sp-route--alumni .sp-route__action a {
	color: var(--wp--preset--color--accent-mint);
}
.sp-route--alumni .sp-route__action a:hover,
.sp-route--alumni .sp-route__action a:focus-visible {
	color: var(--wp--preset--color--secondary);
	background-color: var(--wp--preset--color--accent-mint);
	outline: none;
}

.sp-route__action a:focus-visible {
	box-shadow: 0 0 0 4px var(--sp-ff-gold);
}

/* Cards are no longer links, so the whole-card affordance goes: no pointer, no
   hover lift. The a.sp-offer rules above are left in place and simply stop
   matching. */
.sp-offer {
	cursor: auto;
}


/* ---------------------------------------------------------------------------
 * Support list.
 *
 * Reuses .sp-offer for the icon and type, but strips the card: six tinted
 * boxes directly under the two tinted route pairs would fight them for
 * attention, and these are statements of fact rather than things to click.
 * Six items so the three-column grid fills evenly; five would leave an orphan.
 * --------------------------------------------------------------------------- */

.sp-offers--support {
	margin: 1.75rem 0 2rem;
	gap: 1.6rem 1.5rem;
}

.sp-offer--plain {
	background: none;
	border: 0;
	padding: 0;
	gap: 0.6rem;
}

.sp-offer--plain .sp-offer__icon {
	width: 38px;
	height: 38px;
}
.sp-offer--plain .sp-offer__icon svg {
	width: 21px;
	height: 21px;
}

/* A step down from the route cards: these support the argument, they do not
   carry it. */
.sp-offer--plain h3,
.sp-offer--plain h4 {
	font-size: 1.0625rem;
}


/* ---------------------------------------------------------------------------
 * Stat cards and hero spacing, second pass.
 * --------------------------------------------------------------------------- */

/* Bottom-aligning the white cards was not enough: their own text runs to one or
   two lines, so their tops still sat at different heights. A min-height of two
   lines plus padding makes all three the same object. Measured before this:
   tops at 1418, 1418, 1435. */
.sp-stat__note {
	min-height: 4.5rem;
	box-sizing: border-box;
	display: flex;
	align-items: center;
}

/* The h1 in this hero is a direct child of the cover's inner container, unlike
   the Hub page where it sits inside a group. Its default block margins were
   adding 40px on top of the 0.45rem row-gap, so the title floated well clear of
   the display line beneath it. Scoped to the direct child so the Hub page hero,
   which Dan has already signed off, is untouched. */
.sp-hero.sp-hero-full .wp-block-cover__inner-container > h1.wp-block-heading {
	margin-block: 0;
}

/* Measured: the group holding the display line and buttons carries a 40px top
   margin, which was the whole of the gap under the h1 (40px + 7.2px row-gap =
   47px). Zeroing the h1's own margins made no difference because they were
   already 0. */
.sp-hero.sp-hero-full .wp-block-cover__inner-container > .wp-block-group {
	margin-top: 0;
}


/* Four-up variant of the support grid, for the courses page. Overrides the base
   three-column rule at the same 940px breakpoint, so there is no width band
   where four items fall to three and leave an orphan. */
@media (min-width: 600px) {
	.sp-offers.sp-offers--quad {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 940px) {
	.sp-offers.sp-offers--quad {
		grid-template-columns: repeat(4, 1fr);
	}
}


/* ---------------------------------------------------------------------------
 * Footer bottom bar: attribution left, social icons right.
 *
 * The socials were a "Social / Instagram / YouTube" text row at the top of the
 * footer. Icons carry it in less space and belong with the other end-of-page
 * furniture. Each link has an aria-label because an icon-only link has no
 * accessible name otherwise, and the svg is hidden from the accessibility tree
 * so the name is not announced twice.
 * --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
 * Footer pills.
 *
 * Every clickable thing in the footer that is not the attribution line or a social icon uses
 * this one style. Previously the footer carried a filled button next to two plain text links,
 * which read as though only the button was clickable and left the other two looking like
 * incidental prose.
 *
 * Small on purpose. The footer appears on every page of the site, so anything sized to compete
 * with a page's own call to action would be shouting on all of them. Gold outline rather than
 * gold fill for the same reason: filled gold is the Hub registration treatment, and it should
 * stay that way.
 *
 * 0.875rem at 1.4 is 19.6px of text; the padding takes the pill to 34px, comfortably clear of
 * the 24px minimum in WCAG 2.2 SC 2.5.8.
 * --------------------------------------------------------------------------- */
.sp-pill {
	display: inline-block;
	padding: 0.42rem 1.05rem;
	border: 1px solid var(--sp-ff-gold);
	border-radius: 999px;
	background-color: transparent;
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--body, "Plus Jakarta Sans", sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s;
}

.sp-pill:hover,
.sp-pill:focus-visible {
	background-color: var(--sp-ff-gold);
	color: var(--wp--preset--color--secondary);
}

/* White ring, not gold: on hover the pill itself is already gold, so a gold ring would vanish
   into it at exactly the moment a keyboard user needs to see where they are. */
.sp-pill:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--wp--preset--color--foreground);
}

/* ---------------------------------------------------------------------------
 * Footer call to action: one line, two pills.
 *
 * Rendered by [bfiwm_footer_cta] in bfiwm-core, which shows each pill only once its page is
 * live and drops the strip entirely if neither is.
 * --------------------------------------------------------------------------- */
.sp-footbar-cta {
	margin-block-end: 0.35rem;
}

.sp-footbar-cta__text {
	margin: 0 0 1.1rem;
	max-width: 42rem;
	font-family: var(--wp--preset--font-family--body, "Plus Jakarta Sans", sans-serif);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--foreground);
}

/* ---------------------------------------------------------------------------
 * Footer pill row.
 *
 * One row, spread edge to edge across the footer's content column, so the pills sit on a
 * single line at a single height rather than reading as a button plus some leftovers.
 *
 * space-between is what does the spreading, and it means the ORDER of the array in
 * bfiwm_footer_links_map() is the layout: first entry hard left, last entry hard right, the
 * rest spaced evenly between them.
 *
 * Only from 600px up. space-between on a wrapped row leaves the last line spread across the
 * full width with gaping holes between two or three items, which looks like a mistake rather
 * than a layout. Below that the pills pack left on their natural gap and wrap normally.
 * --------------------------------------------------------------------------- */
.sp-footpills ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.sp-footpills ul {
		justify-content: space-between;
	}
}

.sp-footpills li {
	margin: 0;
}


.sp-footbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.sp-footbar__legal {
	margin: 0;
	flex: 1 1 22rem;
	font-family: var(--wp--preset--font-family--body, "Plus Jakarta Sans", sans-serif);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--foreground);
}

.sp-social {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 0 0 auto;
}

.sp-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	color: var(--wp--preset--color--foreground);
	transition: background-color 0.15s, color 0.15s;
}

.sp-social svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	display: block;
}

.sp-social a:hover,
.sp-social a:focus-visible {
	color: var(--wp--preset--color--secondary);
	background-color: var(--wp--preset--color--primary);
	outline: none;
}

.sp-social a:focus-visible {
	box-shadow: 0 0 0 4px var(--sp-ff-gold);
}

/* On a narrow screen the bar stacks, so the icons sit under the attribution
   rather than being squeezed alongside it. */
@media (max-width: 600px) {
	.sp-footbar {
		justify-content: flex-start;
	}
}


/* ---------------------------------------------------------------------------
 * Who delivers the Hub: three organisations, logo then description.
 *
 * The photograph above this section is the StoryPoint building, so naming only
 * Rural Media and Rural Studios read oddly. Each of the three now identifies
 * itself with its own mark, which also means the prose does not have to open
 * by explaining what each name refers to.
 *
 * All three marks are the supplied white-on-transparent lockups, used as their
 * owners issued them. Nothing is recoloured. That works here because the page
 * background is navy: theme.json sets `background` to #103A4D, so white is the
 * page's own text colour, not a treatment invented for this section.
 *
 * The three lockups are within a whisker of the same proportion, which is why
 * one fixed column width lines all three up without per-logo nudging:
 *
 *   StoryPoint      1996 x 630   3.17 : 1
 *   Rural Media     2075 x 625   3.32 : 1
 *   Rural Studios   2178 x 623   3.50 : 1
 *
 * At 150px wide they stand 47, 45 and 43px tall. Matching the width rather than
 * the height is right here: these are wordmarks read left to right, so equal
 * width reads as equal weight. The stacked UK Gov lockup in the footer needed
 * the opposite treatment, because it is a dense block rather than a line.
 * --------------------------------------------------------------------------- */

.sp-delivery {
	margin-block: 1.75rem 2rem;
}

.sp-delivery__row {
	margin-block: 0;
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 1.75rem;
	align-items: start;
	padding-block: 1.5rem;
}

/* Separators between the three, not around them: a rule above the first and
   below the last would box the group in and read as a table. */
.sp-delivery__row + .sp-delivery__row {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sp-delivery__row > figure {
	margin: 0;
}

.sp-delivery__row img {
	display: block;
	width: 150px;
	max-width: 100%;
	height: auto;
	/* theme.json sets core/image border.radius to 16px, so every image on the
	   site carries a rounded-rectangle mask. All three lockups run to the edge
	   of their canvas, so the curve clips real ink. Same cause as the brandbar
	   and the footer, noted further up this file. */
	border-radius: 0;
}

.sp-delivery__row > :last-child {
	margin: 0;
}

/* The logo sits on its own line below 640px. Left-aligned rather than centred,
   so the mark still starts where its description starts. */
@media (max-width: 640px) {
	.sp-delivery__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
		padding-block: 1.35rem;
	}

	.sp-delivery__row img {
		width: 132px;
	}
}


/* ---------------------------------------------------------------------------
 * A button at the foot of an offer card.
 *
 * `.sp-offer` is a flex column, so a buttons block inside it sits directly
 * under the text and lands at a different height in each card whenever the two
 * descriptions run to different lengths. `margin-top: auto` pushes it to the
 * bottom of the card instead, so a row of cards has its buttons on one line.
 * --------------------------------------------------------------------------- */

.sp-offer > .wp-block-buttons {
	margin-top: auto;
	margin-bottom: 0;
}


/* ---------------------------------------------------------------------------
 * The two closing options on the Hub page.
 *
 * Scoped to its own class rather than changing `.sp-offer`, because the same
 * card class carries the route pairs higher up the page and those are settled.
 *
 * Two measured corrections:
 *
 * 1. The heading sat 21px above the cards. `.sp-offers` asks for 2rem, but
 *    `.sp-offers--pair` resets it to 0 (correct there: the route pairs sit
 *    inside wrappers that supply their own spacing). With no margin of its own
 *    the grid was left with only the h2's 21px bottom margin, which is too tight
 *    against the top edge of a card. Restored to 2rem, which collapses with the
 *    h2 margin to a 32px gap.
 *
 * 2. The cards were larger than their contents needed. Measured at 339 x 214
 *    around 136px of content: 49.6px of vertical padding and 27.2px of internal
 *    gaps. Padding and gap both come down, taking the card to roughly 195px with
 *    the text sitting closer to its edges. Nothing is cropped, because the box
 *    height was always padding plus gaps plus content and never contained slack.
 * --------------------------------------------------------------------------- */

.sp-offers.sp-nextstep {
	margin: 2rem 0 1rem;
}

.sp-nextstep .sp-offer {
	padding: 1.15rem 1.25rem 1.25rem;
	gap: 0.65rem;
}

/* ---- Audience badges -----------------------------------------------------
   Used on the Where We're At page to say who each thing is for. Navy text on a
   light chip, because a chip is small and small light-on-dark text is the first
   thing to become unreadable. Every combination measured against the navy page:

     BFI Hub               #E1B15D   6.14:1
     BFI FA Alumni         #EAC892   7.60:1
     BFI Intro Course      #9FD2C0   7.18:1
     BFI Year Round        #F2BEBA   7.41:1
     BFI Delivery Partners #CBBCCF   6.71:1

   Accent coral (#E67675) is deliberately absent: it measures 4.16:1, under the
   4.5 needed for text this size.

   To add one in the editor, copy an existing span and change the last class. */
.sp-badge {
	display: inline-block;
	padding: 0.15em 0.6em;
	margin: 0 0.25em 0.25em 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #E1B15D);
	color: var(--wp--preset--color--secondary, #103A4D);
	font-family: var(--wp--preset--font-family--display, 'Jost', sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	white-space: nowrap;
	vertical-align: middle;
}

.sp-badge--hub      { background: #E1B15D; }
.sp-badge--alumni   { background: #EAC892; }
.sp-badge--intro    { background: #9FD2C0; }
.sp-badge--yearround{ background: #F2BEBA; }
.sp-badge--partners { background: #CBBCCF; }


/* ---- Sign in -------------------------------------------------------------
   wp_login_form() emits WordPress's own markup, not Fluent Forms', so none of the
   .fluentform rules above reach it. These restate the same look against core's
   class names, so the sign-in panel and the registration form are siblings rather
   than cousins. Focus rings match the 6.14:1 solid gold used everywhere else. */
.sp-signin .login-username,
.sp-signin .login-password {
	margin-bottom: 1.1rem;
}

.sp-signin label {
	display: block;
	margin-bottom: 0.45rem;
	color: var(--sp-ff-white, #FFFFFF);
	font-size: 1rem;
	font-weight: 500;
}

.sp-signin input[type="text"],
.sp-signin input[type="password"] {
	width: 100%;
	background-color: #FFFFFF;
	color: #103A4D;
	border: 2px solid transparent;
	border-radius: 0.5rem;
	padding: 0.8rem 1rem;
	font-size: 1rem;
	line-height: 1.4;
	font-family: var(--wp--preset--font-family--body, 'Plus Jakarta Sans', sans-serif);
}

.sp-signin input[type="text"]:focus-visible,
.sp-signin input[type="password"]:focus-visible {
	outline: none;
	border-color: #E1B15D;
	box-shadow: 0 0 0 4px #E1B15D;
}

/* The remember box gets the same 24px target as every other control on the site. */
.sp-signin .login-remember label {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 400;
}

.sp-signin .login-remember input[type="checkbox"] {
	width: 1.5rem;
	height: 1.5rem;
	accent-color: #E1B15D;
	flex: 0 0 auto;
}

.sp-signin .login-remember input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px #E1B15D;
}

.sp-signin .login-submit input[type="submit"] {
	background-color: #E1B15D;
	color: #103A4D;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 2rem;
	font-family: var(--wp--preset--font-family--display, 'Jost', sans-serif);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	margin-top: 0.5rem;
}

.sp-signin .login-submit input[type="submit"]:hover { opacity: 0.92; }

.sp-signin .login-submit input[type="submit"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px #FFFFFF;
}

/* Errors are announced (role="alert" in the markup) as well as coloured, because
   colour alone carries nothing to a screen reader. */
.sp-signin__notice {
	background: rgba(230, 118, 117, 0.16);
	border-left: 4px solid #E67675;
	border-radius: 0.4rem;
	padding: 0.85rem 1rem;
	margin-bottom: 1.4rem;
	color: #FFFFFF;
}

.sp-signin__help {
	margin-top: 1rem;
	font-size: 0.95rem;
	color: var(--wp--preset--color--tertiary, #9ABAC0);
}

.sp-signin__help a { color: #E1B15D; }

.sp-signin--done p { color: #FFFFFF; }

/* The button sits in its own paragraph directly under the "signed in as" line, and the
   default paragraph gap left them touching. The action needs room to read as an action. */
.sp-signin--done p + p {
	margin-top: 1.6rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}

/* ---- Field measure -------------------------------------------------------
   The panel now matches the 1000px site column so it lines up with everything
   else, which leaves a single-line input around 900px wide. That was the original
   objection to widening it. Capping the single-line fields keeps them comfortable
   without the panel having to be narrow.

   Textareas, the address block and anything in columns are left alone: they use
   the width, and constraining them would reintroduce the ragged look. */
.fluentform.ff-default input[type="text"].ff-el-form-control,
.fluentform.ff-default input[type="email"].ff-el-form-control,
.fluentform.ff-default input[type="tel"].ff-el-form-control,
.fluentform.ff-default input[type="number"].ff-el-form-control,
.fluentform.ff-default input[type="date"].ff-el-form-control,
.fluentform.ff-default select.ff-el-form-control,
.sp-signin input[type="text"],
.sp-signin input[type="password"] {
	max-width: 34rem;
}

/* The address block lays its parts out in a grid, so its inputs stay full width. */
.fluentform.ff-default .ff-t-cell input.ff-el-form-control,
.fluentform.ff-default .ff-t-cell select.ff-el-form-control {
	max-width: 100%;
}

/* ---- Status list ---------------------------------------------------------
   Badges used to sit inline at the end of the sentence, which meant they broke
   across lines mid-group and the whole thing read as one grey block. They now get
   their own row under each item.

   No bullet markers: every item already opens with a bold title, so the marker was
   a second signal saying the same thing. A hairline separates entries instead, which
   also stops the badge row of one item reading as part of the next. */
.sp-status {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.sp-status li {
	line-height: 1.6;
	padding-bottom: 1.4rem;
	margin-bottom: 1.4rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.sp-status li:last-child {
	border-bottom: 0;
	margin-bottom: 0;
}

/* The badge row. gap does the spacing, so the per-badge margin is cleared or the
   two compound and the row looks loose. */
.sp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.sp-badges .sp-badge {
	margin: 0;
}

/* ---- Badge key -----------------------------------------------------------
   One badge per line with its meaning beside it. The badge column is fixed so the
   explanations start at the same place and the eye can run down them. Below 600px
   it stacks, because a fixed column plus a long badge leaves no room for the text. */
.sp-key {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.sp-key li {
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	margin-bottom: 0.65rem;
}

.sp-key li:last-child {
	margin-bottom: 0;
}

.sp-key .sp-badge {
	flex: 0 0 auto;
	min-width: 11.5rem;
	margin: 0;
	text-align: center;
}

@media (max-width: 600px) {
	.sp-key li {
		display: block;
	}
	.sp-key .sp-badge {
		min-width: 0;
		margin-bottom: 0.3rem;
	}
}
/* ---------------------------------------------------------------------------
 * What's On listing
 *
 * Deliberately the launch event card, extended. The first attempt used a
 * square image and a white card, which on this navy page produced tall cards
 * with invisible text: the body inherited white type onto a white panel. So
 * the card has NO background colour of its own, only a translucent wash, and
 * the coloured band carries the identity.
 *
 * Mobile first. auto-fit with a minimum width means one column on a phone and
 * as many as fit on a desktop, with no breakpoint to maintain.
 * ------------------------------------------------------------------------ */

.sp-wo__section { margin-block: 2.5rem; }
.sp-wo__head { margin: 0 0 .2rem; }
.sp-wo__sub { margin: 0 0 1.25rem; font-size: .9375rem; opacity: .8; }

/* Three per row on desktop, and the same width in every section.
 *
 * It was repeat(auto-fit, minmax(16rem, 1fr)), and auto-fit COLLAPSES empty tracks: a section
 * holding two cards stretched them across the space three would occupy, so the same listing
 * was a different width depending on how many others happened to sit beside it. Bookable
 * opportunities came out visibly wider than Coming up on the same page.
 *
 * Fixed counts rather than auto-fill, because auto-fill would still give four or more columns
 * on a wide screen and Dan's call is three. A short section now leaves a gap on the right,
 * which is the correct trade: consistency across the page beats filling the row.
 */
.sp-wo__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 34rem) {
	.sp-wo__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 58rem) {
	.sp-wo__grid { grid-template-columns: repeat(3, 1fr); }
}

.sp-wo__card {
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	/* A wash, not a fill, so the page's own text colour stays readable. */
	background: rgba(255, 255, 255, .05);
}
.sp-wo__card[data-state="closed"],
.sp-wo__card[data-state="past"] { opacity: .72; }

/* The coloured band: area, date, and the state flag. Text is always the dark
   brand navy because every band colour is a light brand pastel. */
/*
 * The band is a two-column grid, not a column with an absolutely positioned flag.
 *
 * It was the latter, and the flag overlapped the date on any card WITHOUT an area label. Cards
 * with one were fine, because the area took the top line and pushed the date clear, so it
 * looked correct on four cards out of five. Practical Magic 2 has no area and read
 * "Friday 11 September 2" with FULLY BOOKED sitting on top of the year.
 *
 * With a grid the flag has its own column and cannot overlap anything, whether or not there is
 * an area, however long the date, at any width.
 */
/* Every band the same height, so the cards line up as a set rather than stepping up and down
   with whatever length of date and number of badges each one happens to have.

   min-height rather than height: a listing that ever needs a fourth badge grows instead of
   clipping, which loses the alignment but never loses information. Sized to three badges plus
   a two-line date, which covers everything the Hub runs today. */
/* The band reads top to bottom: when, then what time, then who and what state.
 *
 * It was a two-column grid with the date fighting a stack of badges for width, which pushed
 * "Wednesday 28 October 2026" onto four lines. A single column gives the date the full width,
 * so it sits on one line, and puts the badges along the bottom where they read as a row of
 * labels rather than a column competing with the date.
 *
 * min-height keeps every band level so the cards line up as a set. A listing needing an extra
 * badge row grows rather than clipping: alignment lost, information kept. */
.sp-wo__band {
	position: relative;
	min-height: 7.75rem;
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .15rem;
	color: #103A4D;
}
.sp-wo__date {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
}
.sp-wo__time {
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.3;
	opacity: .8;
}

/* ---- the badges, on the right of the band ----
 *
 * Where, who it is for, any age limit and whether it is still open, all as rectangles in the
 * part of the card the eye reaches first. Replaced a faded uppercase text line plus a single
 * absolutely positioned flag, which could hold only one fact and overlapped the date whenever
 * a listing had no area.
 *
 * Right aligned and wrapping, so a card with four badges stacks them tidily rather than
 * squeezing the date.
 */
/* One badge per line, right aligned, so the stack reads as a list rather than a jumble that
   rewraps differently on every card. Sized to its content now rather than capped at 60%,
   because a single column of badges is narrower and gives the date room to breathe. */
/* Along the bottom of the band, left aligned with the date. margin-top:auto pins them to the
   floor of the band, so they sit on a line whatever height the date above them takes. */
.sp-wo__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: .3rem;
	margin-top: auto;
	padding-top: .7rem;
}
.sp-wo__badge {
	display: inline-block;
	padding: .2rem .5rem;
	border-radius: .25rem;
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1.35;
	background: rgba(16, 58, 77, .14);
	color: #103A4D;
}

/* Who it is for: solid, because it is the fact that decides whether the card is relevant. */
.sp-wo__badge--aud { background: #103A4D; color: #fff; }

/* Age and state share the red, because both are the reason somebody cannot book. */
.sp-wo__badge--age,
.sp-wo__badge--state { background: #7a2224; color: #fff; }

/* Not ready yet, which is not the same as refused. Amber on navy, distinct from both the
   neutral place badge and the red ones that mean you cannot book. */
.sp-wo__badge--soon { background: #8a5a12; color: #fff; }

@media (max-width: 480px) {
}

.sp-wo__flag {
	grid-column: 2;
	justify-self: end;
	align-self: start;
	white-space: nowrap;
	padding: .2rem .5rem;
	border-radius: .25rem;
	background: #7a2224;
	color: #fff;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

/* Optional, and modest. Never a square, which forced every card tall. */
.sp-wo__media { aspect-ratio: 16 / 9; overflow: hidden; }
.sp-wo__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sp-wo__body {
	padding: 1.15rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.sp-wo__title { margin: 0 0 .3rem; font-size: 1.0625rem; line-height: 1.25; }
.sp-wo__meta { margin: 0 0 .55rem; font-size: .8125rem; opacity: .75; }

/* Who it is for. An outline pill rather than a filled one, so it reads as a
   label and never competes with the button. */
.sp-wo__audience {
	margin: 0 0 .75rem;
	align-self: start;
	padding: .2rem .55rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	opacity: .85;
}

.sp-wo__desc p { margin: 0 0 .9rem; font-size: .9375rem; }
.sp-wo__desc p:last-child { margin-bottom: 0; }

.sp-wo__foot { margin-block-start: auto; padding-block-start: 1rem; }
/* A gold call to action, for the one button on a page that is the point of the page.
 *
 * Added as a variant rather than by changing .wp-element-button, which comes from theme.json
 * and would have turned every button on the site gold. Gold works because it is used sparingly:
 * make it the default and it stops meaning anything. */
.wp-element-button.sp-btn-gold,
a.sp-btn-gold {
	background-color: var(--sp-ff-gold, #EAC892);
	color: var(--sp-ff-navy, #103A4D);
	border-color: var(--sp-ff-gold, #EAC892);
}
.wp-element-button.sp-btn-gold:hover,
a.sp-btn-gold:hover {
	background-color: #f5e0b6;
	border-color: #f5e0b6;
	color: var(--sp-ff-navy, #103A4D);
}
.wp-element-button.sp-btn-gold:focus-visible,
a.sp-btn-gold:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* The secondary half of a two-route choice. Outline rather than filled, so the pair reads as
   a primary path and an alternative rather than two competing calls to action. */
.wp-element-button.sp-btn-outline,
a.sp-btn-outline {
	background-color: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px currentColor;
	border-color: transparent;
}
.wp-element-button.sp-btn-outline:hover,
a.sp-btn-outline:hover {
	background-color: transparent;
	color: var(--sp-ff-gold, #EAC892);
}

.sp-wo__btn { display: inline-block; font-size: .875rem; padding: .6rem 1.2rem; }
.sp-wo__btn--route { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.sp-wo__btn:focus-visible { outline: 3px solid var(--sp-ff-gold, #EAC892); outline-offset: 2px; }
.sp-wo__note { margin: .6rem 0 0; font-size: .75rem; opacity: .7; }

.sp-wo__empty { padding: 1.25rem 0; }

/* Impossible to mistake a preview for the real page. */
.sp-wo__preview {
	margin: 0 0 1.5rem;
	padding: .7rem 1rem;
	border-radius: .35rem;
	background: var(--sp-gold, #EAC892);
	color: #103A4D;
	font-size: .9375rem;
}
.sp-wo__preview a { color: inherit; }

/* ---- Sign In / Sign Out in the main navigation -------------------------- */

/* Styled as an action, not a destination. The other six items are places on the site; this one
   is about the person, so it reads as a control. Outline rather than filled, so it does not
   compete with the gold calls to action in page content. */
.sp-nav-account > a.wp-block-navigation-item__content {
	padding: .4rem 1rem;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
}
.sp-nav-account > a.wp-block-navigation-item__content:hover,
.sp-nav-account > a.wp-block-navigation-item__content:focus-visible {
	background: var(--sp-ff-gold, #EAC892);
	border-color: var(--sp-ff-gold, #EAC892);
	color: var(--sp-ff-navy, #103A4D);
}

/* In the collapsed mobile menu the pill would be an odd island in a stack of plain links, so
   it becomes a plain item there and keeps only its separation from the list above. */
@media (max-width: 600px) {
	.sp-nav-account > a.wp-block-navigation-item__content {
		padding: .4rem 0;
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, .25);
		border-radius: 0;
	}
}


/* ==========================================================================
   ONBOARDING
   The agreement and equal opportunities forms, run as one journey.

   WHY THIS EXISTS
   Fluent Forms ships its multi-step chrome unstyled: a black connector line, small white
   squares and step labels in a blue that all but vanishes on our navy. The Next and Back
   buttons arrive as small grey system buttons. The final submit had been branded and the
   step navigation had not, so the two halves of the same form did not match.

   Three things are being fixed, in this order of importance:
     1. Contrast. The inactive step labels were unreadable on the navy ground
     2. Target size. The nav buttons were well under the 44px WCAG 2.2 comfortably meets
     3. Brand. Gold on navy, matching the Register and Book buttons elsewhere

   The submit button is deliberately left alone. It is already correct.
   ====================================================================== */

/* ---------- the journey wrapper ---------- */

.sp-onboard-welcome,
.sp-onboard-aside {
	max-width: 40rem;
}

.sp-onboard-welcome h2 {
	margin: 0 0 .75rem;
	font-size: clamp(1.6rem, 4vw, 2.1rem);
	line-height: 1.15;
}

.sp-onboard-welcome h3,
.sp-onboard-aside h3 {
	margin: 1.75rem 0 .6rem;
	font-size: 1.05rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #EAC892;
}

/* The opening sentence carries the expectation setting, so it gets a size of its own. */
.sp-onboard-lead {
	font-size: 1.125rem;
	line-height: 1.55;
}

/* A numbered list of what is coming. Knowing the shape of a task before starting it is the
   single most useful thing for somebody who finds forms stressful. */
.sp-onboard-steps {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
}

.sp-onboard-steps li {
	margin-bottom: .6rem;
	line-height: 1.5;
}

/* Supporting context, distinct from the things being agreed to. A wash rather than a fill,
   the same device as the What's On cards, so text keeps inheriting its colour. */
.sp-onboard-aside {
	margin: 2rem 0 0;
	padding: 1.25rem 1.4rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, .06);
	border-left: 3px solid rgba(234, 200, 146, .55);
}

.sp-onboard-aside h3 {
	margin-top: 0;
}

.sp-onboard-aside p {
	margin: 0 0 .8rem;
}

.sp-onboard-aside p:last-child {
	margin-bottom: 0;
}

.sp-onboard-note {
	font-size: .9375rem;
	opacity: .85;
}

/* ---------- the progress bar ---------- */

.ff-step-header--progress,
.ff-step-progress-wrap {
	margin-bottom: 2rem;
}

.ff-el-progress {
	height: .5rem !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, .16) !important;
	overflow: hidden;
}

.ff-el-progress-bar {
	height: 100% !important;
	border-radius: 999px !important;
	background: #EAC892 !important;
	transition: width .25s ease;
}

/* The written position. This is the part that was invisible. */
.ff-el-progress-title,
.ff-el-progress-status {
	color: #ffffff !important;
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: .01em;
}

.ff-el-progress-status {
	opacity: .85;
}

/* The step-number variant, in case anyone switches the indicator back. Same contrast fix. */
.ff-el-progress-status-count .ff-el-progress-status-item,
.ff-step-titles li {
	color: rgba(255, 255, 255, .75) !important;
}

.ff-step-titles li.active {
	color: #ffffff !important;
	font-weight: 600;
}

/* ---------- Next and Back ---------- */

/* Fluent Forms floats these inline, which cannot make a reliable two-button row.
   Laying the container out as flex puts Back left and Next right at every width. */
.ff-step-t-container,
.ff-el-group.ff-text-right,
.ff_submit_btn_wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.ff-btn-next,
.ff-btn-prev {
	float: none !important;
	min-height: 2.75rem;          /* 44px, comfortably over the WCAG 2.2 target size */
	padding: .6rem 1.6rem !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* Next carries the journey, so it reads as the action: white on navy, gold on hover.
   The same behaviour Dan chose for Register with Our Hub. */
.ff-btn-next {
	margin-left: auto;            /* sits right even when Back is absent, as on step 1 */
	background: transparent !important;
	color: #ffffff !important;
	border: 2px solid #ffffff !important;
}

.ff-btn-next:hover,
.ff-btn-next:focus-visible {
	background: #EAC892 !important;
	color: #103A4D !important;
	border-color: #EAC892 !important;
}

/* Back is quieter, because going back should be available without competing. */
.ff-btn-prev {
	background: transparent !important;
	color: rgba(255, 255, 255, .85) !important;
	border: 2px solid rgba(255, 255, 255, .35) !important;
}

.ff-btn-prev:hover,
.ff-btn-prev:focus-visible {
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, .7) !important;
}

/* Keyboard users must be able to see where they are. */
.ff-btn-next:focus-visible,
.ff-btn-prev:focus-visible,
.frm-fluent-form input:focus-visible,
.frm-fluent-form textarea:focus-visible,
.frm-fluent-form select:focus-visible {
	outline: 3px solid #EAC892;
	outline-offset: 2px;
}

/* ---------- the acknowledgements themselves ---------- */

/* Long lines are hard to track back from, which matters most for the people this form is
   trying not to lose. Measure is capped rather than filling the page. */
.frm-fluent-form .ff-el-group,
.frm-fluent-form .ff-el-input--content {
	max-width: 46rem;
}

/* The whole line is the target, not just the box. */
.frm-fluent-form .ff-el-form-check label {
	cursor: pointer;
	line-height: 1.5;
	padding: .2rem 0;
}

.frm-fluent-form .ff-el-form-check {
	margin-bottom: .9rem;
}

@media (max-width: 600px) {
	.ff-step-t-container {
		gap: .75rem;
	}
	.ff-btn-next,
	.ff-btn-prev {
		flex: 1 1 auto;
		text-align: center;
	}
}


/* ==========================================================================
   ONBOARDING, REVISION 2
   Dan's notes from walking the built flow.
   ====================================================================== */

/* The numbered list showed a bullet AND a number, because the theme puts a marker on every
   list item and the ordered list adds its own count on top. Counters give one marker, and
   put the number where it belongs instead of jammed against the text. */
.sp-onboard-steps {
	list-style: none;
	counter-reset: sp-step;
	margin: 0 0 1.5rem;
	padding-left: 0;
}

.sp-onboard-steps > li {
	counter-increment: sp-step;
	position: relative;
	margin-bottom: .85rem;
	padding-left: 2.5rem;
	line-height: 1.5;
}

.sp-onboard-steps > li::before {
	content: counter(sp-step);
	position: absolute;
	left: 0;
	top: .05rem;
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(234, 200, 146, .18);
	border: 1px solid rgba(234, 200, 146, .55);
	color: #EAC892;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1;
}

/* The theme's own list marker, suppressed so it cannot double up with the counter. */
.sp-onboard-steps > li::marker {
	content: none;
}

/* The aside carried a gold bar on the left and nothing anywhere else, which read as unfinished
   rather than deliberate. One consistent edge all the way round instead. */
.sp-onboard-aside {
	margin: 2rem 0 0;
	padding: 1.4rem 1.5rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .18);
	border-left: 1px solid rgba(255, 255, 255, .18);
}

/* The parent countersignature block is a prompt to act, so it keeps a gold edge. Deliberate
   here, where it marks the one thing on the page that is conditional. */
.sp-onboard-aside--parent {
	background: rgba(234, 200, 146, .08);
	border-color: rgba(234, 200, 146, .45);
}

/* Report a Concern, as a real link now that the shortcode has been replaced. */
.sp-onboard-aside .sp-btn-outline {
	display: inline-block;
	margin-top: .35rem;
	padding: .55rem 1.3rem;
	border: 2px solid #ffffff;
	border-radius: 999px;
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.sp-onboard-aside .sp-btn-outline:hover,
.sp-onboard-aside .sp-btn-outline:focus-visible {
	background: #EAC892;
	color: #103A4D;
	border-color: #EAC892;
}

/* ---------- button row ---------- */

/* Back and Next were nearly touching, and on the final step Back sat higher than Agree and
   Continue because the two came from different containers with different line heights.
   One row, centred on a shared baseline, with room between them. */
.ff-step-t-container,
.ff_submit_btn_wrapper {
	display: flex !important;
	align-items: center !important;
	gap: 1.5rem !important;
	flex-wrap: wrap;
	margin-top: 2.25rem;
}

.ff-step-t-container > *,
.ff_submit_btn_wrapper > * {
	margin: 0 !important;
}

/* Fluent Forms lays the final step out as two columns, which is what threw the alignment. */
.ff-step-t-container.ff_columns_total_2 > .ff-t-column-1,
.ff-step-t-container.ff_columns_total_2 > .ff-t-column-2 {
	flex: 0 0 auto !important;
	width: auto !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
}

.ff-step-t-container.ff_columns_total_2 > .ff-t-column-2 {
	margin-left: auto !important;
}

/* Every button in the flow shares one height, so nothing can sit lower than its neighbour. */
.ff-btn-next,
.ff-btn-prev,
.ff-btn-submit {
	min-height: 2.75rem !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
}

@media (max-width: 600px) {
	.ff-step-t-container,
	.ff_submit_btn_wrapper {
		gap: .85rem !important;
	}
}


/* ==========================================================================
   ONBOARDING, REVISION 3
   Two fixes that failed the first time, both because of specificity.
   ====================================================================== */

/* THE MARKER.
   The theme already styles every list item inside a Fluent custom HTML block, drawing a small
   gold dot at left: -1.35rem:
       .fluentform.ff-default .ff-custom_html li:before      (0,3,2)
   My counter rule was .sp-onboard-steps > li::before     (0,1,2)
   and lost. The dot then sat outside the new 2.5rem padding, so the list rendered indented
   with no marker at all, which is what Dan saw.

   Matching the theme's own prefix takes this to (0,4,2), which wins cleanly rather than
   reaching for !important. */

.fluentform.ff-default .ff-custom_html .sp-onboard-steps > li::before {
	content: counter(sp-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(234, 200, 146, .16);
	border: 1px solid rgba(234, 200, 146, .6);
	color: #EAC892;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1;
}

.fluentform.ff-default .ff-custom_html .sp-onboard-steps {
	list-style: none;
	counter-reset: sp-step;
	margin: 0 0 1.5rem;
	padding-left: 0;
}

.fluentform.ff-default .ff-custom_html .sp-onboard-steps > li {
	counter-increment: sp-step;
	position: relative;
	margin-bottom: .9rem;
	padding-left: 2.75rem;
	min-height: 1.75rem;
	line-height: 1.5;
}

/* THE BUTTON ROW.
   Fluent Forms renders the navigation as a table-style grid:
       .ff-step-t-container > .ff-t-cell.ff-t-column-N > .step-nav > button
   The buttons are two levels down, so gap on the container was spacing the CELLS, and the
   cells were shrink-to-fit and sitting against each other. Spacing the buttons themselves is
   the reliable fix, and margin on the button cannot be undone by a container that changes. */

.ff-step-t-container .ff-t-cell {
	padding: 0 !important;
	width: auto !important;
	vertical-align: middle;
}

.ff-step-t-container .ff-t-cell:last-child {
	margin-left: auto;
}

.ff-step-t-container .step-nav {
	display: flex;
	align-items: center;
}

/* Belt and braces: whatever the container does, the buttons keep their own breathing room. */
.ff-btn-prev {
	margin-right: 1.5rem !important;
}

.ff-btn-next,
.ff-btn-submit {
	margin-left: 1.5rem !important;
}

/* On the first step there is no Back, so Next must not inherit a stray offset. */
.ff-step-t-container .ff-t-cell:first-child .ff-btn-next {
	margin-left: 0 !important;
}

@media (max-width: 600px) {
	.ff-btn-prev {
		margin-right: .75rem !important;
	}
	.ff-btn-next,
	.ff-btn-submit {
		margin-left: .75rem !important;
	}
}


/* ==========================================================================
   ONBOARDING, REVISION 4
   The final step's two buttons come from different places and did not line up.

   MEASURED, not guessed:
     Back    .ff-t-column-1 > .step-nav > button        padding 9.6px 25.6px   height 44px
     Submit  .ff-t-column-2 > .ff-el-group > button     padding 15.2px 36px    height 50px
   and the submit's wrapper is a standard field group, so it carried the field bottom margin
   that pushed it 15px lower than Back.

   Same height and no wrapper margin, so the row is level. The submit keeps its gold, which is
   where its prominence should come from rather than from being taller than its neighbour.
   ====================================================================== */

.ff-step-t-container .ff_submit_btn_wrapper,
.ff-step-t-container .ff-el-group {
	margin: 0 !important;
	padding: 0 !important;
}

.ff-step-t-container {
	align-items: center !important;
}

.ff-btn-submit {
	padding: .6rem 1.8rem !important;
	min-height: 2.75rem !important;
	height: 2.75rem;
	border-radius: 999px !important;
}


/* The closing line of the welcome. It is the one sentence that is an invitation rather than
   an instruction, so it is given room and a little weight instead of trailing off as body
   copy under three paragraphs of policy. */
.sp-onboard-signoff {
	margin-top: 1.75rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #EAC892;
}

/* The list is now plain phrases rather than sentences, so it can sit tighter. */
.fluentform.ff-default .ff-custom_html .sp-onboard-steps > li {
	margin-bottom: .65rem;
}





/* The safeguarding route in the footer.
   Small, right aligned, and quiet. The first version was a red button with a warning glyph
   and a line of setup, which made every page of the site look like it had a problem. What
   somebody in trouble needs is to know the route is there and where to find it, and a
   findable link does that without standing over the whole site like an alarm. */
.sp-foot-safeguarding {
	margin: 1.25rem 0 0;
	text-align: right;
	font-size: .875rem;
}

.sp-foot-safeguarding a {
	color: rgba(255, 255, 255, .72);
	text-decoration: underline;
	text-underline-offset: .2em;
	text-decoration-thickness: 1px;
}

.sp-foot-safeguarding a:hover,
.sp-foot-safeguarding a:focus-visible {
	color: #ffffff;
}

/* A quiet way through to the safeguarding page, under the acknowledgements it belongs with.
   This replaced a red panel with a warning glyph. Somebody who wants the detail can go and
   read it; everybody else is not made to feel they are being warned about the place before
   they have even joined it. */
.sp-onboard-findout {
	/* Measured, not guessed: the checkbox label text starts 34px in from the group edge,
	   so the link is indented to match and sits close under the sentence it belongs to.
	   It reads as the tail of the safeguarding acknowledgement rather than a new item. */
	margin: .4rem 0 0 2.125rem;
	font-size: .9375rem;
}

.sp-onboard-findout a {
	color: #EAC892;
	text-decoration: underline;
	text-underline-offset: .2em;
	text-decoration-thickness: 1px;
}

.sp-onboard-findout a:hover,
.sp-onboard-findout a:focus-visible {
	color: #ffffff;
}


/* ==========================================================================
   COURSE DATES ON THE APPLICATION FORM

   Four schedules, one shown at a time depending on the location chosen at the top. Somebody
   is deciding whether they can commit seven days across four weeks, so the dates carry their
   weekday names and the whole block is set apart from the questions around it.
   ====================================================================== */

.sp-course-dates {
	margin: 1rem 0 1.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .18);
	max-width: 44rem;
}

.sp-course-dates__venue {
	margin: 0 0 1.1rem;
	padding-bottom: .9rem;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.fluentform.ff-default .ff-custom_html .sp-course-dates h4 {
	margin: 1.3rem 0 .5rem;
	font-size: .9375rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #EAC892;
}

.fluentform.ff-default .ff-custom_html .sp-course-dates h4:first-of-type {
	margin-top: 0;
}

.fluentform.ff-default .ff-custom_html .sp-course-dates ul {
	margin: 0;
	padding-left: 1.1rem;
	list-style: none;
}

.fluentform.ff-default .ff-custom_html .sp-course-dates li {
	margin-bottom: .55rem;
	line-height: 1.45;
	position: relative;
}

/* The theme draws its own gold dot on list items inside a Fluent HTML block. Kept here,
   because a list of dates is exactly where a marker helps. */

.sp-course-dates__what {
	font-size: .9375rem;
	opacity: .8;
}

.sp-course-dates__note {
	margin: 1.3rem 0 0;
	padding-top: .9rem;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: .9375rem;
	font-weight: 600;
}

.sp-course-dates__prompt p {
	margin: 0 0 .5rem;
	font-size: .9375rem;
	opacity: .85;
}

@media (max-width: 600px) {
	.sp-course-dates {
		padding: 1rem 1.1rem;
	}
}




























































































/* SP-ADDITIONS-START — everything below is StoryPoint's, appended to SebastianOne's style.css. Do not edit in place; edit source/theme/sebastiantwo-additions.css and run deploy-css.sh. */
/* ===========================================================================
   SebastianTwo — style additions.

   WHY THIS FILE EXISTS
   SebastianTwo is produced by porting bfiwm.film's SebastianOne theme
   (source/scripts/port-theme.sh). That port replaces style.css wholesale,
   which is what you want for the 300-odd shared selectors — and is exactly how
   StoryPoint's own rules got silently deleted the first time the port was run on
   10 September 2026. Four selectors and one media-query fix went missing, among
   them .sp-placeholder, which 91 placeholders across 22 pages depend on. The
   page still rendered. It just rendered wrong, quietly.

   So: anything StoryPoint has that SebastianOne does not lives HERE, and the
   port script appends this file to the end of the ported style.css every time it
   runs. Appending at the end also means these rules win on specificity ties,
   which the table fix below relies on.

   RULE OF THUMB
   If a rule would be useful on bfiwm.film too, it belongs upstream in
   SebastianOne, not here. This file is only for what is genuinely StoryPoint's.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Build notes — internal, pre-launch only.

   These mark decisions taken, content still to write, and questions still open,
   so the site itself carries its own outstanding list rather than a separate
   document that drifts. Styled as an obvious annotation so nobody mistakes one
   for published copy.

   REMOVE THIS RULE AND THE .sp-note BLOCKS BEFORE LAUNCH.
   Find them with:
     wp post list --post_type=page --format=ids | xargs -n1 wp post get --field=content | grep -c sp-note
   --------------------------------------------------------------------------- */
.sp-note,
.sp-buildnote {
	border: 1px dashed var(--wp--preset--color--primary);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-block: 1.5rem;
	background-color: rgba(225, 177, 93, .07);
}
.sp-note p,
.sp-buildnote p {
	margin: 0;
	color: var(--wp--preset--color--tertiary);
}
.sp-note strong,
.sp-buildnote strong {
	color: var(--wp--preset--color--primary);
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: .78em;
}

/* ---------------------------------------------------------------------------
   Image placeholders — internal, pre-launch only.

   Flat colour Cover blocks standing in for photography that does not exist
   yet, so page rhythm reads before the shoot happens. The label names the
   image that belongs there.

   To replace one: select the block, set a background image, delete the label
   paragraph. The block stays; only its contents change.

   REMOVE THIS RULE ONCE EVERY PLACEHOLDER HAS A REAL IMAGE.
   --------------------------------------------------------------------------- */
.sp-placeholder {
	position: relative;
	overflow: hidden;
}
.sp-placeholder p {
	margin: 0;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: .68rem;
	line-height: 1.5;
	opacity: .62;
	max-width: 34ch;
	margin-inline: auto;
}
/* A hairline frame so an empty placeholder never reads as a rendering fault. */
.sp-placeholder::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid currentColor;
	border-radius: 8px;
	opacity: .22;
	pointer-events: none;
	color: var(--wp--preset--color--secondary);
}

/* ---------------------------------------------------------------------------
   Header call to action.

   Retained from the v2 staging variant. Not currently used: the standing
   "Book a free taster" header button went with the courses, which are hidden
   until the Sensei licence covers this domain. Kept because the button comes
   back with them, and because the responsive rules below are the part that
   took the time to get right — the button must never wrap under the logo on
   desktop or collide with the menu on mobile.
   --------------------------------------------------------------------------- */
.sp-nav-group {
	align-items: center;
}
.sp-header-cta .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 781px) {
	.sp-nav-group {
		gap: 1rem;
		width: 100%;
		justify-content: space-between;
	}
	.sp-header-cta {
		width: 100%;
	}
	.sp-header-cta .wp-block-button {
		width: 100%;
	}
	.sp-header-cta .wp-block-button__link {
		display: block;
		text-align: center;
	}
}

/* ---------------------------------------------------------------------------
   Tables on small screens.

   The pricing tables are the most important content on /courses/costs/ and
   they were scrolling sideways on a phone — which is where most of this
   audience is. Let them scroll inside their own container instead of pushing
   the page body sideways.

   This must load AFTER SebastianOne's own .wp-block-table td/th rules, which
   is why the port script appends this file rather than prepending it.
   --------------------------------------------------------------------------- */
.wp-block-table {
	overflow-x: auto;
	max-width: 100%;
}
.wp-block-table table {
	min-width: 34rem;
}
.wp-block-table td,
.wp-block-table th {
	white-space: nowrap;
}
.wp-block-table td:first-child,
.wp-block-table th:first-child {
	white-space: normal;
	min-width: 11rem;
}

/* ---------------------------------------------------------------------------
   Submenu hover bridge.

   THE BUG
   The submenu panel is positioned with `margin-top: 0.5rem` — a deliberate bit
   of "air beneath the header" inherited from SebastianOne. The panel is
   absolutely positioned, so that 8px is dead space: it belongs to neither the
   parent item nor the panel.

   Move the mouse down from "Facilities" towards the menu and, for 8px, it is
   over nothing. The parent loses :hover, the panel closes, and the item you
   were reaching for vanishes. Reported by Dan on 11 September 2026.

   Core ships a bridge for *nested* submenus (`.wp-block-navigation__submenu-container
   .wp-block-navigation__submenu-container:before`) but not for this one, because
   core's own default has no gap to bridge.

   THE FIX
   A transparent strip on the parent item, filling exactly the gap. It belongs to
   the parent `<li>`, so the pointer crossing it still counts as hovering the
   parent — the panel stays open and the gap stays visible.

   The gap and the bridge share one variable so they cannot drift apart. Change
   --sp-submenu-gap and both follow.

   The strip is at least as wide as the panel's min-width, so a diagonal move
   towards an item on the right-hand side of the panel does not fall off it.

   NOTE: bfiwm.film has the identical rule and therefore the identical bug. It is
   not fixed there — that site is not ours to change from here.
   --------------------------------------------------------------------------- */
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation .has-child {
	--sp-submenu-gap: 0.5rem;
	position: relative;
}

/* Restated here so the gap is defined by the same variable the bridge uses. */
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
	margin-top: var(--sp-submenu-gap);
}

.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation .has-child::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: max(100%, 15rem);
	height: var(--sp-submenu-gap);
	/* Invisible, but it must still receive the pointer — that is its whole job. */
	background: transparent;
	pointer-events: auto;
	/* Below the panel, above nothing. */
	z-index: 1;
}

/* The strip must not sit over the page on touch, where there is no hover and the
   navigation is a full-screen overlay anyway. */
@media (hover: none) {
	.wp-block-navigation__responsive-container:not(.is-menu-open)
		.wp-block-navigation .has-child::after {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
   Submenu alignment.

   THE BUG
   Core right-aligns submenus under a right-justified navigation, so the panel
   hangs LEFT from the parent item. That is correct when the menu sits at the
   right-hand end of a wide header. It is wrong the moment the header wraps and
   the menu moves to the left of its own row — which it does at every width
   measured on 11 September 2026:

     viewport 1440   panel left edge    38px   (just fits)
     viewport 1100   panel left edge  -133px   off screen
     viewport  820   panel left edge  -158px   off screen

   At 820px, 158px of the Facilities menu was outside the viewport and
   unreachable. The navigation does not collapse to a hamburger until 600px, so
   there is a wide band of laptop and tablet widths where half the menu cannot
   be clicked.

   THE FIX
   Hang the panel to the RIGHT of the parent, which is the conventional
   direction and the one that fits at every width here, and cap its width so it
   can never push past the opposite edge either.
   --------------------------------------------------------------------------- */
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
	left: 0;
	right: auto;
	max-width: calc(100vw - 2rem);
}

/* ---------------------------------------------------------------------------
   Date picker — white text on a white panel.

   THE BUG
   Fluent Forms uses flatpickr for date fields. The theme styles
   .flatpickr-calendar navy with white text, which is right for this site — but
   flatpickr's own .flatpickr-innerContainer keeps its default WHITE background,
   and that sits on top of the navy and underneath the white dates.

   Result: a calendar with a navy month header, then an apparently empty grid.
   All 42 day cells were present, visible and 39px square. They were white text
   on white. Reported by Dan with a screenshot, 11 September 2026.

   Nothing in the markup or the block structure was wrong, so no check in this
   project could have found it. Only looking at it could.

   THE FIX
   Let the calendar's own navy show through the inner containers. Then the white
   dates have something to be white against.

   Days from the neighbouring months stay dimmed, but at an opacity that reads
   as "less important" rather than "absent".
   --------------------------------------------------------------------------- */
.flatpickr-calendar .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-days,
.flatpickr-calendar .dayContainer {
	background: transparent;
}

.flatpickr-calendar .flatpickr-day {
	color: #FFFFFF;
	border-radius: 8px;
}

/* Days spilling in from the previous or next month: present, clearly secondary.
   0.32 opacity was effectively invisible even once the background was fixed. */
.flatpickr-calendar .flatpickr-day.prevMonthDay,
.flatpickr-calendar .flatpickr-day.nextMonthDay {
	color: rgba(255, 255, 255, 0.45);
}

.flatpickr-calendar .flatpickr-day:hover,
.flatpickr-calendar .flatpickr-day:focus {
	background: rgba(225, 177, 93, 0.18);
	border-color: transparent;
	color: #E1B15D;
}

.flatpickr-calendar .flatpickr-day.today {
	border-color: rgba(225, 177, 93, 0.75);
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.selected:hover {
	background: #E1B15D;
	border-color: #E1B15D;
	color: #103A4D;
}

/* A day that cannot be chosen must not look merely quiet. */
.flatpickr-calendar .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
	color: rgba(255, 255, 255, 0.25);
	background: transparent;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* ------------------------------------------------------------------------
   Fluent Forms: two fields on one row

   Added 11 September 2026, when the hire form's name/email and phone/organisation
   pairs were rendering as four full-width rows instead of two.

   Fluent Forms writes the column width inline as `flex-basis: 50%`, and its own
   stylesheet puts a 16px `gap` on the row. Two 50% columns plus a 16px gap is
   wider than the row, so the second column wrapped onto its own line - on every
   screen size, which is why it looked like the columns had simply not been built.

   Flex wraps on the basis size BEFORE it shrinks anything, so no amount of
   flex-shrink fixes it. Removing the gap and moving the gutter inside the cells
   as padding does: with border-box the padding comes out of the 50%, so two
   columns total exactly 100% and stay on one line. The negative margin keeps the
   inputs flush with the full-width fields above and below them.

   Below 600px the columns stack, which is correct on a phone.
   ------------------------------------------------------------------------ */

.frm-fluent-form .ff-t-container {
	gap: 0;
	margin-inline: -0.5rem;
}

.frm-fluent-form .ff-t-container > .ff-t-cell {
	box-sizing: border-box;
	padding-inline: 0.5rem;
	min-width: 0;
}

@media (max-width: 600px) {
	.frm-fluent-form .ff-t-container {
		margin-inline: 0;
	}

	.frm-fluent-form .ff-t-container > .ff-t-cell {
		flex-basis: 100%;
		padding-inline: 0;
	}
}

/* Help text under the label.

   The form is set to `after_label` placement so the hire times, the seven-days
   notice and the multi-date instructions are readable instead of being hidden in
   a hover tooltip. FF ships that variant unstyled, so it inherits body size and
   competes with the label. Sized down and lightened to read as guidance. */

/* Dan, 17 September 2026: "light blue text on a dark blue background, not super
   accessible or legible."

   He was right, and the culprit was the opacity below rather than the colour.
   #9ABAC0 on the navy is 5.86:1 and passes on its own — but at opacity .78 it
   composites to #7C9EA7, which is 4.21:1. At 0.85rem that is small text, so it
   needs 4.5:1 and was under it.

   Opacity is the wrong tool for "quieter text" on a coloured background: it
   changes the contrast by an amount nobody can see in the stylesheet. Set the
   colour outright instead, so what is written is what is measured. #C9DADE is
   8.40:1 — clearly secondary to the white labels, and comfortably legible. */

.frm-fluent-form .ff_ahm {
	display: block;
	margin: 0.15rem 0 0.5rem;
	font-size: 0.85rem;
	line-height: 1.45;
	opacity: 1;
}

/* ------------------------------------------------------------------------
   Cards of equal height

   Added 14 September 2026. Dan: "the three boxes here don't align at the bottom."

   A Columns block is a flex row, so the COLUMNS already stretch to match each
   other. The coloured Group inside each one does not — it is a block-level child
   sizing to its own content, so three cards with three different amounts of copy
   finish at three different heights and the row looks ragged along the bottom.

   Making the column a flex column and letting the card grow fixes it. Scoped with
   :has() to columns that hold a single coloured Group, which is exactly the card
   pattern: the homepage's Work / Create / Connect row, and the rate cards on the
   seven space pages. Columns holding ordinary content — the size-and-capacity
   pair, the About family panel — match nothing here and are untouched.
   ------------------------------------------------------------------------ */

.wp-block-columns > .wp-block-column:has(> .wp-block-group.has-background) {
	display: flex;
	flex-direction: column;
}

.wp-block-columns > .wp-block-column > .wp-block-group.has-background {
	flex: 1 1 auto;
}

/* ------------------------------------------------------------------------
   The hero media slot — PRE-LAUNCH ONLY

   The homepage hero is a Cover block with no background media yet. Photography
   is being scheduled, and an FVP drone video through the building is coming
   after it. Both go into this same block via Replace.

   Empty, a navy Cover on a navy page is invisible as a slot: it reads as a
   design choice rather than as something waiting to be filled. So while it is
   empty it gets the same hairline frame and label as every other placeholder on
   the site.

   THE POINT OF :has() HERE
   The treatment is keyed on the Cover containing no img and no video, so it
   removes ITSELF the moment media is added. There is no label block to find and
   delete, and no way to leave "HERO" written across the live homepage by
   forgetting. The unfinished state and the finished state are the same block.

   REMOVE THIS WHOLE SECTION once the hero has its final media.
   ------------------------------------------------------------------------ */

.sp-hero-media:not(:has(img)):not(:has(video))::after {
	content: "HERO · FULL WIDTH · FVP DRONE VIDEO THROUGH THE BUILDING, OR A STILL";
	position: absolute;
	left: 50%;
	bottom: 1.75rem;
	transform: translateX(-50%);
	z-index: 2;
	max-width: min(90%, 44ch);
	text-align: center;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: .68rem;
	line-height: 1.5;
	opacity: .55;
	pointer-events: none;
}

.sp-hero-media:not(:has(img)):not(:has(video))::before {
	content: "";
	position: absolute;
	inset: 14px;
	z-index: 2;
	border: 1px dashed currentColor;
	border-radius: 12px;
	opacity: .3;
	pointer-events: none;
}

/* ------------------------------------------------------------------------
   A video hero, when one arrives

   WordPress renders a Cover's video background as an autoplaying, muted, looping
   <video>. A flythrough of a building is a lot of motion for someone who has
   asked their operating system for less of it, and nothing in core honours that
   here — so this does.

   The poster frame stays, so the hero is still a picture rather than a blank
   panel. Text and overlay are unaffected either way.
   ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.wp-block-cover__video-background {
		display: none;
	}
}

/* Keep a video background covering the block rather than letterboxing inside it. */
.wp-block-cover__video-background {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* A 660px hero fills four fifths of a phone screen, which leaves nothing of the
   page showing beneath it — and a first screen with no hint of what follows is a
   first screen people do not scroll. Shorter on small screens; the media still
   reads, and the section below peeks. */

@media (max-width: 600px) {
	.sp-hero-media {
		min-height: 460px !important;
		padding-top: 3rem !important;
		padding-bottom: 3rem !important;
	}
}

/* On a phone the hero's content reaches the bottom of the shorter block, so the
   placeholder label lands on top of the "Talk to us" button. The dashed frame on
   its own still says "media goes here", and anyone acting on the label is working
   at a desk, so the words go and the frame stays. */

@media (max-width: 600px) {
	.sp-hero-media:not(:has(img)):not(:has(video))::after {
		display: none;
	}
}

/* ========================================================================
   FORMS — the enquiry form and the booking form

   Added 14 September 2026. Dan: "I want both forms to be fully embedded
   into the site, look beautiful, and be very accessible."

   Fluent Forms ships styling for a light background. These forms sit on
   brand navy, so most of what follows is making the defaults legible
   rather than decorating them. Contrast and focus visibility are checked
   by source/scripts/audit-form-a11y.php, not by eye.
   ======================================================================== */

/* Section headings ------------------------------------------------------
   The booking form is 24 questions on one page. Dan asked to keep it to
   one page rather than a multi-step wizard, so the sections are what stop
   it reading as an undifferentiated wall — and unlike a wizard they never
   hide how much is left, and never lose answers when a tab is closed. */

.frm-fluent-form .sp-form-section {
	margin: 3rem 0 0.35rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.frm-fluent-form .ff-el-group:first-of-type .sp-form-section,
.frm-fluent-form .sp-form-section:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.frm-fluent-form .sp-form-section__note {
	margin: 0 0 0.25rem;
	font-size: 0.85rem;
	/* Explicit, not opacity — see the .ff_ahm note above. At 0.7 this composited
	   to 3.71:1 if it inherited the muted colour, which is a fail nobody could
	   see in the stylesheet. */
	color: #C9DADE;
	opacity: 1;
}

/* Choice lists ----------------------------------------------------------
   Default radios and checkboxes on a dark ground are a small grey dot
   next to some text, with a click target the size of the dot. These give
   each option a full-width hit area and a visible hover, which matters
   most on a phone and for anyone whose pointing is imprecise. */

.frm-fluent-form .ff-el-form-check {
	margin: 0;
}

.frm-fluent-form .ff-el-form-check label.ff-el-form-check-label {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	margin: 0;
	padding: 0.6rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	line-height: 1.45;
	cursor: pointer;
	transition: background-color .12s, border-color .12s;
}

.frm-fluent-form .ff-el-form-check + .ff-el-form-check {
	margin-top: 0.4rem;
}

.frm-fluent-form .ff-el-form-check label.ff-el-form-check-label:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(225, 177, 93, 0.55);
}

.frm-fluent-form .ff-el-form-check input[type="checkbox"],
.frm-fluent-form .ff-el-form-check input[type="radio"] {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.12rem;
	accent-color: var(--wp--preset--color--primary);
}

/* A ticked option is visibly ticked without relying on the control alone. */
.frm-fluent-form .ff-el-form-check label.ff-el-form-check-label:has(input:checked) {
	background: rgba(225, 177, 93, 0.13);
	border-color: var(--wp--preset--color--primary);
}

/* Focus -----------------------------------------------------------------
   Never remove this. Keyboard users navigate the whole form by it, and on
   a 24-question form losing your place is the difference between
   finishing and giving up. Gold on navy, two pixels, offset so it reads
   as a ring rather than a border. */

.frm-fluent-form input:focus-visible,
.frm-fluent-form textarea:focus-visible,
.frm-fluent-form select:focus-visible,
.frm-fluent-form button:focus-visible,
.frm-fluent-form .ff-el-form-check label:focus-within {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* The signature pad -----------------------------------------------------
   Mel's form asked people to type their name "as your signature". The
   signature add-on is licensed, so this is a real one — drawn and stored
   as an image. It renders as a white canvas, which needs to sit in the
   dark page rather than glare out of it. */

.frm-fluent-form .ff-el-signature,
.frm-fluent-form .ff_signature_pad {
	border-radius: 12px;
	overflow: hidden;
	max-width: 100%;
}

.frm-fluent-form canvas {
	max-width: 100%;
	border-radius: 12px;
	touch-action: none; /* so drawing with a finger does not scroll the page */
}

/* Required marker, errors, and the submit button ------------------------ */

.frm-fluent-form .ff-el-is-required.asterisk-right label:after {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

.frm-fluent-form .error-text,
.frm-fluent-form .text-danger {
	color: #FFC9C9;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

.frm-fluent-form .ff-el-group.ff-el-is-error input,
.frm-fluent-form .ff-el-group.ff-el-is-error textarea {
	border-color: #FFC9C9;
}

.frm-fluent-form .ff-btn-submit {
	margin-top: 0.5rem;
	padding: 0.85rem 1.75rem;
	border-radius: 999px;
	font-weight: 700;
	border: 2px solid var(--wp--preset--color--primary);
}

/* Room to breathe between questions on a long form. */
.frm-fluent-form .ff-el-group {
	margin-bottom: 1.6rem;
}

/* The three-step explainer on the enquiry page. */
.sp-steps p:last-child {
	line-height: 1.7;
}

/* The link to the terms, sitting above the tick box that agrees to them.
   Fluent Forms escapes help text, so the link cannot live there — it is a
   small HTML block instead, and needs styling of its own. */

.frm-fluent-form .sp-form-terms-link {
	margin: 0 0 0.6rem;
	font-size: 0.9rem;
}

.frm-fluent-form .sp-form-terms-link a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* Paired fields line up their inputs, not their labels ------------------
   Added 14 September 2026. Dan: "email box is below the full name box."

   In a two-column row each cell stacks label, help text, input. When one
   field has help text and its neighbour does not — "Confirmation and
   invoice go here" under Email, nothing under Full name — the two inputs
   start at different heights and the row looks broken.

   Matching the help text up is not the fix: whether a field needs a note
   is a content decision and it will keep changing. Instead the cell
   becomes a flex column and the input is pushed to the bottom of it. The
   cells already stretch to equal height, so the inputs align however much
   text sits above them, on every row, for ever.

   Only for typed inputs. A radio or checkbox group pushed to the bottom
   of its cell would float away from its own question. */

.frm-fluent-form .ff-t-container > .ff-t-cell > .ff-el-group {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.frm-fluent-form .ff-t-container > .ff-t-cell > .ff-el-group
	> .ff-el-input--content:has(input:not([type="checkbox"]):not([type="radio"])) {
	margin-top: auto;
}

/* Dates and times, as repeating rows ------------------------------------
   Date / start time / end time on one line, with + and − at the end.

   Fluent Forms' repeater ships almost unstyled and its row controls are
   small icon spans, so the work here is making the rows read as rows and
   giving the buttons a real hit area. */

.sp-sessions .ff_repeater_cont_row {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.55rem 0;
}

.sp-sessions .ff_repeater_cont_row + .ff_repeater_cont_row {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* The child fields hide their labels — the placeholder is the column name —
   so their groups need no bottom margin inside a row. */
.sp-sessions .ff_repeater_cell .ff-el-group {
	margin-bottom: 0;
}

.sp-sessions .ff-el-repeat-buttons-list {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	padding-top: 0.15rem;
}

/* Icon spans with role="button" are a ~20px target by default. This gives
   them a 40px one, which is the minimum worth offering on a phone. */
.sp-sessions .repeat-plus,
.sp-sessions .repeat-minus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color .12s;
}

.sp-sessions .repeat-plus:hover,
.sp-sessions .repeat-minus:hover {
	background: rgba(255, 255, 255, 0.09);
}

.sp-sessions .repeat-plus svg,
.sp-sessions .repeat-minus svg {
	fill: currentColor;
}

.sp-sessions .repeat-plus:focus-within,
.sp-sessions .repeat-minus:focus-within {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.sp-sessions .ff_repeater_cont_row {
		flex-wrap: wrap;
	}

	/* Date takes the full width on a phone; the two times share the next line. */
	.sp-sessions .ff_repeater_cont_row > .ff_repeater_cell:first-child {
		flex: 1 1 100%;
	}
}

/* Repeater + and − , and the time picker ---------------------------------
   Added 14 September 2026. Dan: "the plus/minus buttons are black, they're
   hard to see, and on the date picker the buttons are little and grey."

   Both were worse than they looked.

   The +/− icons are a solid disc with the glyph knocked out of it, so
   whatever colour the fill is, the DISC takes it. Unstyled that is black
   on navy — a dark circle on a dark page.

   The time picker was the real fault. The calendar panel had been themed
   navy, but .flatpickr-time kept flatpickr's own white background, so a
   white box hung off a dark calendar. Worse, the up/down arrows draw as
   CSS triangles coloured by border-colour, which had been set to white
   for the dark calendar — white arrows on a white panel. They were not
   small and grey, they were very nearly invisible. */

/* + is the action, so it takes the brand gold. − is the undo, so it stays
   quiet: white at reduced opacity, coming up to full on hover. Two
   controls sitting side by side should not compete. */

.sp-sessions .repeat-plus svg {
	fill: var(--wp--preset--color--primary);
}

.sp-sessions .repeat-minus svg {
	fill: #FFFFFF;
	opacity: .55;
	transition: opacity .12s;
}

.sp-sessions .repeat-minus:hover svg {
	opacity: 1;
}

.sp-sessions .repeat-plus:hover svg {
	fill: #EAC892; /* the lighter gold used on the holding page's buttons */
}

/* The time panel, themed to match the calendar it hangs off. */

.flatpickr-calendar .flatpickr-time {
	background: transparent;
	border-top: 1px solid rgba(255, 255, 255, .18);
}

.flatpickr-calendar .flatpickr-time input,
.flatpickr-calendar .flatpickr-time .flatpickr-time-separator,
.flatpickr-calendar .flatpickr-time .flatpickr-am-pm {
	background: transparent;
	color: #FFFFFF;
	font-weight: 600;
}

.flatpickr-calendar .flatpickr-time input:hover,
.flatpickr-calendar .flatpickr-time input:focus,
.flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover {
	background: rgba(255, 255, 255, .1);
	color: #FFFFFF;
}

/* The stepper arrows: bigger target, gold, and visible against the panel. */

.flatpickr-calendar .numInputWrapper span {
	border-color: rgba(255, 255, 255, .2);
	width: 18px;
	opacity: 1;
}

.flatpickr-calendar .numInputWrapper span:hover {
	background: rgba(225, 177, 93, .22);
}

.flatpickr-calendar .numInputWrapper span.arrowUp:after {
	border-bottom-color: var(--wp--preset--color--primary);
	border-left-width: 5px;
	border-right-width: 5px;
	border-bottom-width: 6px;
}

.flatpickr-calendar .numInputWrapper span.arrowDown:after {
	border-top-color: var(--wp--preset--color--primary);
	border-left-width: 5px;
	border-right-width: 5px;
	border-top-width: 6px;
}

/* The per-space schedule: Space · Date · Start · End ---------------------
   Four columns is tight on a laptop and impossible on a phone, so the row
   breaks in a considered way rather than being left to wrap arbitrarily:
   the space takes a full line, then date, then the two times share one. */

.sp-sessions--space .ff_repeater_cont_row select {
	width: 100%;
}

@media (max-width: 900px) {
	.sp-sessions--space .ff_repeater_cont_row {
		flex-wrap: wrap;
	}

	.sp-sessions--space .ff_repeater_cont_row > .ff_repeater_cell:nth-child(1) {
		flex: 1 1 100%;
	}

	.sp-sessions--space .ff_repeater_cont_row > .ff_repeater_cell:nth-child(2) {
		flex: 1 1 100%;
	}
}

/* Each row is one bookable thing, so on the per-space list they are given
   a little more separation than the simple one — they are read as a list
   of diary entries, not as a grid of boxes. */
.sp-sessions--space .ff_repeater_cont_row {
	padding: 0.75rem 0;
}

/* ------------------------------------------------------------------------
   Form layout: what goes in columns, and what does not.

   THE MISTAKE THIS REPLACES
   A first attempt put every choice list into an auto-fit grid. It looked wrong
   immediately and Dan said so. The cause was not the columns — it was that
   .ff_ahm, the help message, is a DIRECT CHILD of .ff-el-input--content in
   every one of these groups. Making that element a grid container turned the
   help paragraph into cell one, so the first option started in column two and
   nothing lined up. "Workshop and Studio" sat opposite the help text instead of
   above "Conference Room".

   Verified rather than guessed: all five choice lists on the form have the help
   message as a sibling of the options, not outside them.

   WHAT DAN ASKED FOR, 17 September 2026
     Spaces          two columns, "but they must start at the same point, so
                     conference room would need to align with workshop and
                     studio"
     Charity radios  "revert to having the three buttons on the left-hand side"
     Are you human?  "a line on the right-hand side of the page"
     Submit          "align with the left side of the page"

   So columns are applied to ONE named list, not to choice lists in general, and
   the help message is told to span every column so the options start clean.
   --------------------------------------------------------------------- */

@media (min-width: 782px) {

	/* Only the spaces list. Named, not counted — a rule that keys off how many
	   options a list happens to have breaks the day somebody adds a room. */
	.frm-fluent-form .sp-spaces .ff-el-input--content {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem 0.75rem;
	}

	/* The fix for the alignment: the help text is a child of this container, so
	   it must be told to span both columns or it takes the first cell. */
	.frm-fluent-form .sp-spaces .ff-el-input--content > .ff_ahm {
		grid-column: 1 / -1;
		margin-bottom: 0.25rem;
	}

	.frm-fluent-form .sp-spaces .ff-el-form-check {
		margin: 0;
	}

	.frm-fluent-form .sp-spaces .ff-el-form-check-label {
		height: 100%;
	}

	/* ---- the captcha to the right, the button to the left ----------------

	   A float rather than flex: these two are adjacent siblings with no shared
	   wrapper, and adding one would mean patching Fluent Forms' own markup.
	   The clearfix sits on the submit wrapper so the form's height still
	   accounts for the floated widget and "Before You Book" cannot ride up
	   underneath it. */

	.frm-fluent-form .ff-el-group:has(.cf-turnstile) {
		float: right;
		margin-bottom: 0;
		text-align: right;
	}

	.frm-fluent-form .ff-el-group:has(.cf-turnstile) .ff-el-input--content,
	.frm-fluent-form .ff-el-group:has(.cf-turnstile) .cf-turnstile {
		display: inline-block;
	}

	.frm-fluent-form .ff_submit_btn_wrapper::after {
		content: "";
		display: table;
		clear: both;
	}
}

/* ------------------------------------------------------------------------
   Help text in white.

   Dan, 17 September 2026, twice: "light blue text on a dark blue background is
   not legible enough. Can you make that white?"

   It was #C9DADE at 8.40:1, which passes — but passing is a floor, not a
   target, and he is the one reading it on the actual screen. White is 12.11:1.

   The hierarchy that colour was carrying now rests on size and weight instead:
   help text stays at 0.85rem against a bolder, larger label. That is the more
   robust signal anyway, because it survives being read on a bad screen in
   daylight, which a four-shade colour difference does not.
   --------------------------------------------------------------------- */



/* ------------------------------------------------------------------------
   Help text in white — and why two earlier attempts did nothing.

   Dan, 17 September 2026, three times: "light blue text on a dark blue
   background is not easy to read."

   He kept being right and the colour kept not changing, because both earlier
   attempts were written as `.frm-fluent-form .ff_ahm` — two classes, 0-2-0.
   The rule actually in charge is:

       .fluentform.ff-default .ff-el-help-message      three classes, 0-3-0

   and it is anchored on the WRAPPER div, not on the form. Checking the <form>
   element's own classes suggested it could not match, which is what led me to
   blame load order twice. It is the form's parent that carries
   `fluentform ff-default`, so the rule matches by descent and wins on
   specificity no matter where it sits in the file.

   The lesson worth keeping: when a colour will not change, read the COMPUTED
   value and enumerate the rules that match the element. Reasoning about the
   cascade from the selector alone is how this took three goes.

   Matching the 0-3-0 anchor here, appended later, so it wins on the tie.

   Size is left alone deliberately: the rule above also sets 0.9375rem, which is
   15px — larger than the 0.85rem this file was asking for, and more legible.
   Hierarchy now rests on weight and italics against a bolder label.
   --------------------------------------------------------------------- */

.fluentform.ff-default .ff-el-help-message,
.fluentform.ff-default .ff_ahm,
.fluentform.ff-default .sp-form-section__note {
	color: #FFFFFF;
	opacity: 1;
}

/* ------------------------------------------------------------------------
   The Our Facilities dropdown was being painted over.

   Dan, 17 September 2026: "the background appears to be translucent, so that
   the border line that runs around the Work, Create and Connect image space is
   visible through the menu."

   IT IS NOT TRANSLUCENT. Measured on the open state, the panel computes to
   rgb(16, 58, 77) at opacity 1 — completely opaque. What is actually happening
   is that something further down the page is painting ON TOP of it, which looks
   identical to seeing through it.

   THE CAUSE
   The submenu carries core's `z-index: 2`, and **no ancestor establishes a
   stacking context** — the header is `position: static; z-index: auto`, and so
   is `.wp-site-blocks`. So a dropdown belonging to the header competes for
   stacking order against every block on the page, on equal terms, at a z-index
   of 2. A cover block or a positioned card only has to reach 2 to win.

   THE FIX
   Lift the whole header, rather than bidding the submenu higher. A header that
   sits above the page content is what was intended all along, and doing it here
   means any future dropdown, notice or sticky element inside the header
   inherits the same protection instead of needing its own number.

   100 rather than 2: high enough to clear ordinary content, low enough to stay
   under a modal or a cookie banner if one is ever added.
   --------------------------------------------------------------------- */

.wp-site-blocks > header.wp-block-template-part {
	position: relative;
	z-index: 100;
}

/* The panel itself, so it cannot be beaten inside the header either. */
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-container {
	z-index: 101;
}

/* The one genuinely translucent thing in that dropdown is its own border:
   rgba(225, 177, 93, 0.38). Over the panel it reads as a soft gold hairline;
   anywhere it overlaps something busy it shows that through, one pixel at a
   time, which is exactly the "translucent" impression. Same colour, solid.

   THE SELECTOR IS LONG ON PURPOSE. A first attempt used a shorter one and lost:
   the rule in charge is 0-5-0 and mine was 0-3-0, so order never came into it.
   Second time today (see the .ff_ahm note) — when a value will not change, read
   the COMPUTED value and match the winning selector, do not reason from the
   cascade. */

.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation .has-child .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container:not(.is-menu-open)
	.wp-block-navigation__submenu-container {
	border-color: #5F6753;
}

/* ------------------------------------------------------------------------
   The three-image header: two small images share the height of the big one.

   Dan, three times: "The images don't align on the bottom."

   Measured on the live page at 1280px, which is what I should have done the
   first time instead of reasoning about it:

       big image (left)       top 317   bottom 757   height 440
       small image (upper)    top 317   bottom 527   height 210
       small image (lower)    top 587   bottom 797   height 210

   The lower image carried margin-top: 40px — WordPress's 2.5rem blockGap,
   applied as a margin to every block after the first — ON TOP OF the 20px flex
   gap I added last time to replace it. So the right-hand stack measured
   210 + 40 + 20 + 210 = 480, the row grew to 480 to contain it, and the big
   image sat at its fixed 440 with 40px of slack beneath. One stray 40px,
   showing up twice: as the overhang below the purple box and as the gap under
   the green one.

   Adding the gap without removing the margin it was replacing is what made this
   recur. So the margins go, and neither column relies on its numbers adding up:
   the big image fills whatever height the row is, the small ones divide it. Set
   any heights you like in the editor and the bottoms still meet.

   Below 782px the columns stack and each image keeps its own height, which is
   what you want on a phone.
   --------------------------------------------------------------------- */

@media (min-width: 782px) {
	.sp-image-trio > .wp-block-column {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}

	/* The gap above does the spacing now. Leaving blockGap in place doubles it. */
	.sp-image-trio > .wp-block-column > * {
		margin-block: 0;
	}

	/* Grows to fill the row rather than stopping at the height set in the editor. */
	.sp-image-trio > .wp-block-column:first-child > .wp-block-cover {
		flex: 1 1 auto;
	}

	/* min-height: 0 lets these shrink below their editor height, so they divide
	   the row exactly instead of overflowing it. */
	.sp-image-trio > .wp-block-column:last-child > .wp-block-cover {
		flex: 1 1 0;
		min-height: 0;
	}
}


/* ------------------------------------------------------------------------
   SPACE CARDS ON /hire/  —  .sp-space-cards
   17 September 2026

   Dan: "Information lines and pill buttons should all align."

   They could not. Each card is its own column, so a one-line description and a
   three-line one push the price and the button to different heights. Nothing
   short of equal-length copy would have lined them up, and copy is Elle's.

   So the row becomes a grid and each card a SUBGRID of it. The five rows —
   image, heading, description, price, button — are then shared by every card in
   the row, and each row is as tall as the tallest card's content. Everything
   lines up because they are literally on the same grid line, not because any
   height was guessed. Rewrite a description to twice the length and it still
   holds.

   The column count is read off the markup with :has(), so adding or removing a
   card in the editor needs no CSS change.

   SPACING AND HEADING SIZE
   Dan: "the distance between the image and the heading feels a bit too much. Or
   the heading needs to be a little bigger. Make a call."

   Both, slightly. The gap was theme.json's global blockGap of 2.5rem — a figure
   meant for the space BETWEEN sections, doing duty inside a card, where it
   pulls the heading away from the image it belongs to. 1.25rem reads as one
   object. And the card heading was the `medium` preset, 1.125rem, against body
   text at 1rem: two points of difference, which is not a hierarchy, it is a
   rounding error. 1.3125rem is clearly a heading while staying below the
   1.5rem section headings above it.

   Below 782px the columns stack and each card keeps its own natural spacing.
   --------------------------------------------------------------------- */

.sp-space-cards > .wp-block-column > h4 {
	font-size: 1.3125rem;
}

@media (min-width: 782px) {
	.sp-space-cards.wp-block-columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		column-gap: 1.25rem;
		row-gap: 1.25rem;
	}

	/* Source order matters: the last matching rule wins, so the highest count applies. */
	.sp-space-cards.wp-block-columns:has(> .wp-block-column:nth-child(2)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sp-space-cards.wp-block-columns:has(> .wp-block-column:nth-child(3)) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sp-space-cards.wp-block-columns:has(> .wp-block-column:nth-child(4)) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.sp-space-cards > .wp-block-column {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 5;
	}

	/* The 2.5rem block margins would stack on top of the grid gap. The gap does the spacing now. */
	.sp-space-cards > .wp-block-column > * {
		margin-block: 0;
	}

	/*
	   Pin the button to the last track explicitly rather than trusting it to be
	   the fifth child. A card that ever gains or loses a line still puts its
	   button on the same line as every other card's.
	*/
	.sp-space-cards > .wp-block-column > .wp-block-buttons {
		grid-row: -2 / -1;
		align-self: end;
	}
}


/* ------------------------------------------------------------------------
   THE CLOSING SECTIONS ON /hire/  —  .sp-audience and .sp-reasons
   17 September 2026

   Dan: "We've got three sections here. They're a bit repetitive... the top
   section and the bottom section are slightly similar in format... have a think
   about how we rework that a little to make it visually more interesting. Which
   means more accessible, which means people might read it. Don't change the
   text."

   So: not a word of the copy moves. The change is entirely in how the last
   section is set, because the problem is not what it says, it is that it looks
   exactly like the section two screens above it and the eye files it as more of
   the same.

   .sp-audience — Who We're Here For
   Three columns whose middle heading runs to two lines, which pushed its
   paragraph a line below the other two. Subgrid gives the row shared tracks, so
   the headings occupy one band and the paragraphs another however long any
   heading grows.

   .sp-reasons — Why StoryPoint
   Still a core list block. Elle can edit any item, or add a sixth by pressing
   Return, and it keeps this treatment. Two columns of separate ruled statements
   reads as five distinct claims rather than one block of text, and it no longer
   rhymes with the bulleted list at the top of the page.

   The bullets are removed by emptying ::marker rather than by list-style:none.
   They look the same, but list-style:none makes Safari stop announcing the
   thing as a list, and five reasons that a screen reader runs together as prose
   is exactly the flattening this is meant to undo.
   --------------------------------------------------------------------- */

.sp-reasons.wp-block-list {
	padding-left: 0;
	margin-left: 0;
}

.sp-reasons.wp-block-list > li::marker {
	content: "";
}

.sp-reasons.wp-block-list > li {
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	margin: 0 0 1.5rem;
	padding-top: 0.85rem;
	font-size: 1.125rem;
	line-height: 1.4;
	/* Keep a statement whole rather than letting a column break split it. */
	break-inside: avoid;
}

@media (min-width: 782px) {
	.sp-reasons.wp-block-list {
		column-count: 2;
		column-gap: 3rem;
	}

	.sp-audience.wp-block-columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		column-gap: 2.5rem;
		row-gap: 1.5rem;
	}

	.sp-audience.wp-block-columns:has(> .wp-block-column:nth-child(2)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sp-audience.wp-block-columns:has(> .wp-block-column:nth-child(3)) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sp-audience.wp-block-columns:has(> .wp-block-column:nth-child(4)) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.sp-audience > .wp-block-column {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 2;
	}

	.sp-audience > .wp-block-column > * {
		margin-block: 0;
	}
}


/* On a phone the cards stack and keep their own block margins, so the 2.5rem
   gap Dan objected to between the image and the heading is still there. Same
   complaint, same answer. Scoped to the stacked case so it cannot fight the
   grid gap above 782px. */

@media (max-width: 781.98px) {
	.sp-space-cards > .wp-block-column > h4 {
		margin-block-start: 1.25rem;
	}
}

/* Stacked on a phone, the gap between the two small images fell back to the
   theme's 2.5rem while the gap above them was the block's own 1.25rem — 20px,
   then 40px, down a column of three. Same figure throughout. */

@media (max-width: 781.98px) {
	.sp-image-trio > .wp-block-column > * + * {
		margin-block-start: 1.25rem;
	}
}


/* ------------------------------------------------------------------------
   FOOTER CREDIT ROW  —  .sp-footcred
   17 September 2026

   Dan: "we use StoryPoint, the big word, as the start of two sentences… we
   move it down the page so it aligns with where the current white line of text
   is. As it's larger, it sits on the left-hand side."

   So the big word and the two sentences share one row, centred against each
   other, and the word reads as the subject of both lines.

   The group this sits on uses layout "default", not "constrained": a
   constrained group puts a max-width and auto margins on every child, which
   fights a flex row. The 1000px column is set here instead, matching the row
   below, so nothing has to out-specify anything.
   --------------------------------------------------------------------- */

.sp-footcred {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem 0.6rem;
	max-width: 1000px;
	margin-inline: auto;
}

/*
   The footer logo, which replaced the large "StoryPoint" wordmark on 28 September 2026 — set that
   big, type read as a brand element and the brand element is the logo.

   The height is the type's own sizing carried over exactly: the wordmark ran at
   clamp(1.6rem, 3.4vw, 2.5rem) on a 1.05 line-height, so the image tracks the same curve and the
   swap changes nothing about the row at any screen width. Measured before and after at 1280px:
   42px either way.

   line-height 0 on the wrapper because an inline image otherwise sits on a text baseline and
   inherits the descender gap, which would push the row a few pixels taller than the type was.
*/
.sp-footcred .footer-logo {
	margin: 0;
	flex: 0 0 auto;
	line-height: 0;
}

/* Core ships height:auto and a default width on .wp-block-site-logo img — both have to go, or the
   height set here is ignored and the logo renders at 120px wide. */
.sp-footcred .footer-logo img {
	height: calc(clamp(1.6rem, 3.4vw, 2.5rem) * 1.05);
	width: auto;
	max-width: none;
}

.sp-footcred .sp-footbar__legal {
	margin: 0;
	flex: 1 1 22rem;
}

/*
   Staff login, as a pill. Dan, 28 September 2026.

   border-color is currentColor so the outline always matches whatever colour the link is, rather
   than being a second value to keep in step — change the link colour and the ring follows.

   It fills on hover rather than merely brightening, because a bordered shape that only changes
   text colour reads as broken to anyone who cannot see the contrast shift.
*/
.sp-footbar__links a {
	display: inline-block;
	padding: 0.4rem 0.95rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.sp-footbar__links a:hover {
	border-color: var(--wp--preset--color--primary, #e1b15d);
	background: var(--wp--preset--color--primary, #e1b15d);
	color: var(--wp--preset--color--background, #103a4d);
}

.sp-footbar__links a:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #e1b15d);
	outline-offset: 2px;
}

/* The legal links, now sharing the bottom row with the social icons. */
.sp-footbar__links {
	margin: 0;
	flex: 1 1 22rem;
}

/*
   Visually hidden, still announced. The shared-subject device works by sight
   only: read aloud, the second line would begin "is part of…" with nothing to
   attach it to. This puts the subject back for a screen reader without putting
   it on screen twice.
*/
.sp-vh {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/*
   The row below is a constrained group, so WordPress gives its children the
   site's own side gutter. .sp-footcred sets its width itself and got none of
   that: at 1280px it lined up correctly by luck of the centring, but on a phone
   the credit text sat hard against both screen edges while the links below kept
   their 20px. Carrying the same root padding — and adding it to the max-width so
   the content box stays 1000px — makes the two rows line up at every width.
*/

.sp-footcred {
	box-sizing: border-box;
	padding-inline: var(--wp--style--root--padding-right, 20px);
	max-width: calc(1000px + 2 * var(--wp--style--root--padding-right, 20px));
}


/* ========================================================================
   STAFF ACCOUNTS — the header control, the sign-in page, the password form
   17 September 2026

   Three related screens, one set of rules, because they are one journey:
   sign in at /login/, land in Forms, change your password at /your-account/.

   Colour decisions are the ones already settled on wp-login.php in
   storypoint-login.php, so the branded sign-in page and the branded
   wp-login.php screens behind it do not disagree with each other:

     field border   #6B818D on white   4.08:1   passes 1.4.11
     focus ring     navy with a gold halo       12.11:1

   The faint #C9D3D8 border used elsewhere is 1.52:1 and fails, which is why
   it is not here.
   ===================================================================== */

/* ---- the account control in the header ---- */

.sp-account {
	position: relative;
	flex: 0 0 auto;
}

.sp-account__menu > summary {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 999px;
	/*
	   foreground, not background. In this palette the names read backwards from the
	   habit: `foreground` is #FFFFFF, the text colour, and `background` is #103A4D,
	   the navy. Reaching for `background` here painted navy text on a navy header,
	   so the name only appeared on hover, where the pair happened to be the right
	   way round. Dan, 18 September: "the admin button not displaying text until
	   roll over."
	*/
	color: var(--wp--preset--color--foreground, #fff);
	font-size: 0.9rem;
	line-height: 1;
	cursor: pointer;
	list-style: none;
	white-space: nowrap;
}

/* Safari draws its own triangle through ::-webkit-details-marker. */
.sp-account__menu > summary::-webkit-details-marker {
	display: none;
}

/* Cream fill, navy text on hover and while open: the same answer the Hub's pill gives, and
   what a gold button does in page content. It was a white fill until 1 December 2026. */
.sp-account__menu > summary:hover,
.sp-account__menu[open] > summary {
	background: var(--wp--preset--color--accent-cream, #eac892);
	border-color: var(--wp--preset--color--accent-cream, #eac892);
	color: var(--wp--preset--color--background, #103a4d);
}

.sp-account__menu > summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #e1b15d);
	outline-offset: 2px;
}

/* Section logos, Training Courses page. 28 September 2026: Dan moved them from beside the
   heading to ABOVE it, left aligned, so each section opens with its mark and then its title.

   The figure's own bottom margin is zeroed so the gap to the heading is set in one place, by
   the heading's margin-top, rather than being the sum of two values that drift apart.

   Both wordmarks are 3.17:1, so at a shared 150px width they render at an identical 47px tall
   and the two sections line up without either being nudged. */
.sp-sectionlogo {
	margin: 0;
	line-height: 0;
}

.sp-sectionlogo img {
	height: auto;
	/*
	   theme.json sets core/image border.radius to 16px, which WordPress emits as
	     :root :where(.wp-block-image img, ...) { border-radius: 16px }
	   a rounded mask on every image on the site. Right for a photograph, wrong for a
	   logo: both marks here have artwork running to the edge of the file, so the curve
	   removes ink rather than empty space. It clips the top of the BFI roundel and
	   slices both bottom corners of the StoryPoint mark.

	   The same fix already existed for .sp-brandbar and the footer funder row, under
	   "Logos are never rounded" in style.css. Those were the only two places a logo
	   appeared until these section logos went in, so the page logos sat outside both
	   selectors and kept the curve. Dan, 28 September: "the logos both have rounded
	   corners. There seems to be some sort of mat applied to them." Measured before
	   changing anything: border-radius 16px, background transparent, padding 0, no
	   border. So there is no mat. The curve alone reads as one on a white-on-navy mark.

	   Core's rule uses :where(), which adds no specificity, so a single class beats it.
	*/
	border-radius: 0;
}

/* ===========================================================================
   COURSE TICK BOXES — two columns instead of four stacked rows.
   Added 28 September 2026: four full-width rows made the training form twice
   as tall as it needed to be, and the options are two or three words each.

   Two columns, not four. At the form's width four across leaves about 180px
   per option, and "Production management" does not fit in that without
   wrapping — which would make the row taller than the stack it replaced.
   Two columns halves the height and every label still sits on one line.

   Fluent Forms puts a bottom margin on each .ff-el-form-check. Left alone
   that margin ADDS to the grid gap, the same doubling that WordPress's
   blockGap causes, so it is zeroed here and the gap does the spacing.
   ======================================================================== */

.sp-courses .ff-el-input--content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

/*
   Fluent Forms spaces stacked options with `.ff-el-form-check + .ff-el-form-check
   { margin-top: 0.4rem }`, from its own stylesheet, which loads after the theme's.
   A single-class rule here ties on specificity and loses on order, so the second,
   third and fourth boxes kept a 6.4px top margin while the first had none — the
   two boxes in the top row sat 6px out of line with each other.

   Three classes deep beats it. Measured after: all four boxes 56px, two rows, both
   tops identical.
*/
.sp-courses .ff-el-input--content .ff-el-form-check,
.sp-courses .ff-el-input--content .ff-el-form-check + .ff-el-form-check {
	margin: 0;
}

@media (max-width: 600px) {

	.sp-courses .ff-el-input--content {
		grid-template-columns: 1fr;
	}
}

/* The reply-time note in the enquiry form. Added 23 September 2026, replacing the "Is this
   urgent?" tickbox — which asked people to judge their own request and then did nothing
   mechanical with the answer. A stated time and a number to ring are honest about both. */
.sp-respond__note {
	margin: 0;
	padding: 0.85rem 1rem;
	border-left: 4px solid var(--wp--preset--color--primary, #e1b15d);
	border-radius: 8px;
	background: rgba(16, 58, 77, 0.05);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.sp-respond__note a {
	font-weight: 700;
	white-space: nowrap;
}

/* BOOK NOW, on the menu line. Added 23 September 2026, in the slot the Staff login pill held for
   five days. Sized to sit on the navigation baseline rather than at the theme's default button
   size, which is built for body copy and would tower over the menu.

   Margins are zeroed on the buttons wrapper because WordPress applies blockGap as margins, not
   gap — left alone, the header row's own gap and the block's margin stack and the button drifts
   off the baseline. */
.sp-booknow {
	flex: 0 0 auto;
	margin-block: 0;
}

.sp-booknow .wp-block-button__link {
	padding: 0.45rem 1.1rem;
	border-radius: 999px;
	font-size: 0.9rem;
	line-height: 1.2;
	white-space: nowrap;
}

/* Kept, though nothing renders it at the moment: the signed-out pill style from 18 September.
   If Staff login is ever wanted back beside the navigation, this is what dressed it. */
.sp-account__signin {
	display: flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 999px;
	color: var(--wp--preset--color--foreground, #fff);
	font-size: 0.9rem;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.sp-account__signin:hover {
	background: var(--wp--preset--color--foreground, #fff);
	color: var(--wp--preset--color--background, #103a4d);
}

.sp-account__signin:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #e1b15d);
	outline-offset: 2px;
}

.sp-account__chev {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

/* The panel. Branded 1 December 2026 (Dan: "the Dan menu is white and isn't branded"), ported
   from the Hub's account panel, which went through the same change in October: a white card
   reads as a browser control that has landed on the site rather than part of it.

   Navy, and LIGHTER than the header rather than darker: on a dark interface a raised surface
   is the lighter one. #17495E is the site navy with white mixed in, so it stays in the
   palette. Separation comes from the lift in tone, a cream hairline and a deep shadow. */
.sp-account__panel {
	position: absolute;
	right: 0;
	z-index: 40;
	min-width: 15rem;
	margin-top: 0.5rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(234, 200, 146, 0.4);
	border-radius: 14px;
	background: #17495e;
	color: #ffffff;
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);
	text-align: left;
}

/* Whose session is this, with the name in cream so it is what the eye lands on first. */
.sp-account__who {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
}

.sp-account__who strong {
	color: var(--wp--preset--color--accent-cream, #eac892);
	font-size: 0.9375rem;
}

.sp-account__links {
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(234, 200, 146, 0.28);
	padding-top: 0.6rem;
}

.sp-account__links li + li {
	margin-top: 0.15rem;
}

.sp-account__links a,
.sp-account__out {
	display: block;
	padding: 0.4rem 0.5rem;
	border-radius: 8px;
	color: #ffffff;
	text-decoration: none;
	font-size: 0.9375rem;
}

/* Cream fill, navy text: the whole site answers a pointer the same way. */
.sp-account__links a:hover,
.sp-account__links a:focus-visible,
.sp-account__out:hover,
.sp-account__out:focus-visible {
	background: var(--wp--preset--color--accent-cream, #eac892);
	color: var(--wp--preset--color--background, #103a4d);
	text-decoration: none;
}

.sp-account__out {
	border-top: 1px solid rgba(234, 200, 146, 0.28);
	border-radius: 0 0 8px 8px;
	padding-top: 0.7rem;
	font-weight: 700;
}

/* The Platform groups (storypoint-platform-menu.php prints their first styles inline, in the
   white-card colours). One class deeper here so these win wherever the inline block lands. */
.sp-account__panel .sp-account__group summary {
	color: #ffffff;
}

.sp-account__panel .sp-account__group summary:hover {
	background: rgba(234, 200, 146, 0.16);
}

.sp-account__panel .sp-account__sub {
	border-left-color: rgba(234, 200, 146, 0.35);
}

.sp-account__panel .sp-account__group--first {
	border-top-color: rgba(234, 200, 146, 0.28);
}

/* ---- the sign-in panel and the password form ---- */

.sp-signin,
.sp-password-form {
	max-width: 26rem;
}

.sp-signin label,
.sp-password-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.9375rem;
	font-weight: 700;
}

.sp-signin input[type="text"],
.sp-signin input[type="password"],
.sp-password-form input[type="text"],
.sp-password-form input[type="password"] {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid #6b818d;
	border-radius: 10px;
	background: #fff;
	color: #123040;
	font-size: 1rem;
	line-height: 1.4;
}

.sp-signin input:focus-visible,
.sp-password-form input:focus-visible {
	outline: 2px solid #123040;
	outline-offset: 0;
	box-shadow: 0 0 0 4px rgba(225, 177, 93, 0.55);
	border-color: #123040;
}

.sp-signin .login-remember label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
}

.sp-signin .login-remember input {
	width: auto;
}

.sp-signin__help {
	margin-top: 0.9rem;
	font-size: 0.9375rem;
}

/* Identical whether the username exists or not — see the module comment. */
.sp-signin__notice {
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border-radius: 10px;
	border-left: 4px solid var(--wp--preset--color--primary, #e1b15d);
	background: rgba(255, 255, 255, 0.1);
}

.sp-field {
	margin-bottom: 1.1rem;
}

.sp-help {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	/* Not the tertiary preset: it is the light blue on navy Dan has twice said he cannot read. */
	color: rgba(255, 255, 255, 0.82);
}

.sp-account-who {
	font-size: 0.9375rem;
}

.sp-account-who span {
	opacity: 0.85;
}

.sp-account-ok,
.sp-account-errors {
	margin: 0 0 1.25rem;
	padding: 0.9rem 1.1rem;
	border-radius: 12px;
	max-width: 34rem;
}

.sp-account-ok {
	border-left: 4px solid #7fc8a9;
	background: rgba(127, 200, 169, 0.14);
}

.sp-account-errors {
	border-left: 4px solid #e88b7d;
	background: rgba(232, 139, 125, 0.14);
}

.sp-account-errors p {
	margin: 0 0 0.4rem;
	font-weight: 700;
}

.sp-account-errors ul {
	margin: 0;
	padding-left: 1.2rem;
}

.sp-account-errors li + li {
	margin-top: 0.35rem;
}

@media (max-width: 781.98px) {
	/* Phones and small tablets. Until 1 December 2026 this anchored the panel to the LEFT of the
	   pill, from when the pill sat on the left of the phone header; it now sits on the right,
	   so the panel hung off the right edge and the page zoomed out to fit it. Anchored right,
	   as wide as the screen allows less a 20px margin, never wider than 22rem. */
	.sp-account__panel {
		left: auto;
		right: 0;
		box-sizing: border-box;
		width: min(22rem, calc(100vw - 2.5rem));
		min-width: 0;
	}
}

/* The fields are width:100% with 0.85rem of padding, and the theme does not set border-box on
   them, so each one came out 445px inside a 416px panel — overflowing by its own padding.
   Measured, not guessed: .sp-signin computed to 416px and the input to 445px. */

.sp-signin input[type="text"],
.sp-signin input[type="password"],
.sp-password-form input[type="text"],
.sp-password-form input[type="password"] {
	box-sizing: border-box;
}


/* ------------------------------------------------------------------------
   THE TWO-FACTOR STEP ON /login/
   18 September 2026

   Dan: "the 2FA window being just a white box and the button isn't formatted."

   Wordfence shows the code step by laying a panel over the sign-in form. Its own
   stylesheet opens with:

       #wfls-prompt-overlay { background-color: #fff; position: absolute; inset: 0 }

   On wp-login.php the box underneath is already white, so that sheet is invisible
   and nothing needs doing — which is why the restyled wp-login.php screens are
   fine and only this page needed work.

   On our dark page it is a white rectangle. And everything Wordfence puts inside
   the overlay is styled only through ".login form" or ".woocommerce-form-login",
   neither of which exists here, so the code field and the button arrive with no
   styling at all. That is both halves of what Dan saw.

   Ported from bfiwm.film, which hit exactly this on 15 September 2026.

   COLOUR ONLY FROM HERE. Wordfence's geometry ships as it is.

   bfiwm.film learned that the hard way: two rules there changed layout rather
   than appearance and broke Bitwarden's dropdown on the code field. Hiding the
   username and password rows plausibly stops a password manager recognising the
   thing as a login form at all, which takes the code suggestion with it. The
   layout Wordfence ships is the layout password managers are tested against.

   The overlay is created and removed by JavaScript, so none of this renders
   until somebody actually reaches the code step.
   --------------------------------------------------------------------- */

/*
   The page's own navy, not bfiwm.film's #15475C.

   Dan, 18 September: "It has a background box that is a slightly different colour
   to the background of the website." Correct — #15475C is that site's panel navy
   and StoryPoint's page is #103A4D, so the overlay read as a box sitting on the
   page rather than as part of it.

   Matching the page background exactly makes the panel invisible, which is the
   right answer for a second reason: the overlay is inset 0 on the form, so it is
   as tall as the username, password, remember-me and submit rows it covers. With
   a visible fill, that leaves a large empty rectangle below the button. Matched
   to the page, the code box and the button simply appear where the form was.

   The preset variable rather than a literal, so it follows if the palette moves.
*/
.sp-signin #wfls-prompt-overlay {
	background-color: var(--wp--preset--color--background, #103a4d);
	padding: 0;
	align-items: flex-start;
}

/*
   The gold sliver beside the code box, diagnosed on bfiwm.film.

   A password manager fills the hidden password field under this panel as well as
   the code box, and leaves focus there. The field is genuinely focused, so its
   focus ring paints and the 4px halo spreads outside the box. The panel is inset
   0 on the form, so the field edge and the panel edge line up exactly and that
   halo lands just outside, showing as a rounded gold bar.

   Suppressed only on rows the panel is covering, and only while it is there.
   Nothing is moved and nothing is hidden, so the dropdown keeps working. Those
   fields are behind an opaque panel, so the ring carried no information anyway.
*/
.sp-signin #loginform:has(#wfls-prompt-overlay) > p input:focus-visible {
	box-shadow: none;
	border-color: transparent;
}

.sp-signin #wfls-prompt-wrapper {
	width: 100%;
}

/* The code field, matching the username and password boxes above it. */
.sp-signin #wfls-prompt-overlay input[type="text"],
.sp-signin #wfls-prompt-overlay input[type="tel"],
.sp-signin #wfls-prompt-overlay input[type="number"],
.sp-signin #wfls-token {
	box-sizing: border-box;
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid #6b818d;
	border-radius: 10px;
	background: #fff;
	color: #123040;
	font-size: 1rem;
	line-height: 1.4;
	letter-spacing: 0.08em;
}

/*
   An outline, not a box-shadow — the same lesson as above. A dropdown painting
   over a shadow on an absolutely positioned element leaves a sliver behind when
   it closes. Gold rather than the navy ring used elsewhere, because navy on this
   navy panel would be invisible.
*/
.sp-signin #wfls-prompt-overlay input[type="text"]:focus-visible,
.sp-signin #wfls-token:focus-visible {
	outline: 3px solid #e1b15d;
	outline-offset: 0;
	border-color: #e1b15d;
	box-shadow: none;
}

.sp-signin #wfls-prompt-overlay label,
.sp-signin .wfls-remember-device-wrapper label {
	display: block;
	margin-bottom: 0.45rem;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
}

.sp-signin #wfls-token-submit,
.sp-signin .wfls-support-submit,
.sp-signin #wfls-prompt-overlay input[type="submit"],
.sp-signin #wfls-prompt-overlay button[type="submit"] {
	background-color: #e1b15d;
	color: #103a4d;
	border: 0;
	border-radius: 999px;
	padding: 0.8rem 2rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	margin-top: 1rem;
}

.sp-signin #wfls-token-submit:hover,
.sp-signin .wfls-support-submit:hover {
	opacity: 0.92;
}

.sp-signin #wfls-token-submit:focus-visible,
.sp-signin .wfls-support-submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px #fff;
}

/* The small question mark beside the code box, and any link in the panel. */
.sp-signin .wfls-2fa-code-help,
.sp-signin .wfls-registration-captcha-contact,
.sp-signin #wfls-prompt-overlay a {
	color: #e1b15d;
}

.sp-signin .wfls-remember-device-wrapper {
	float: none;
	margin: 1rem 0 0;
}

/* ===========================================================================
   NEWSLETTER SIGNUP — [storypoint_newsletter]
   Added 18 September 2026. Mel: the Contact page had a Newsletter heading and
   no way to subscribe.

   The input and button sit in a flex row and MUST have their block margins
   zeroed. WordPress applies blockGap as margins rather than gap, so a child
   that keeps its own margin gets that margin PLUS this row's gap, and the two
   controls stop lining up. That is the same fault that made the image trio
   drift, three times.
   ======================================================================== */

.sp-news {
	max-width: 34rem;
}

.sp-news__form {
	margin: 0;
}

.sp-news__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: stretch;
}

/* Visible only to screen readers: the row is self-explanatory to everyone else,
   but an input with no label is not usable without one. */
.sp-news__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.sp-news__input {
	flex: 1 1 14rem;
	min-width: 0;
	margin-block: 0;
	padding: 0.7rem 0.85rem;
	border: 1px solid #6b818d;
	border-radius: 10px;
	background: #fff;
	color: #123040;
	font-size: 1rem;
	line-height: 1.4;
}

.sp-news__input:focus-visible {
	outline: 2px solid #123040;
	outline-offset: 0;
	box-shadow: 0 0 0 4px rgba(225, 177, 93, 0.55);
	border-color: #123040;
}

.sp-news__button {
	flex: 0 0 auto;
	margin-block: 0;
	padding: 0.7rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.sp-news__button:hover {
	background: #123040;
}

.sp-news__button:focus-visible {
	outline: 2px solid #123040;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(225, 177, 93, 0.55);
}

.sp-news__terms {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
}

.sp-news__note {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	border-left: 4px solid;
	font-size: 0.9375rem;
}

/* Focus lands here after the redirect, so the outcome is announced. */
.sp-news__note:focus {
	outline: 2px solid #123040;
	outline-offset: 2px;
}

.sp-news__note--ok {
	border-left-color: #1d6b4f;
	background: #eaf5f0;
	color: #123040;
}

.sp-news__note--bad {
	border-left-color: #a6342c;
	background: #fbeceb;
	color: #123040;
}

/* The honeypot. Off-screen rather than display:none, because some bots skip
   anything hidden outright, and aria-hidden keeps it away from screen readers. */
.sp-news__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {

	.sp-news__button {
		flex: 1 1 100%;
	}
}

/* ===========================================================================
   FLUENT FORMS DESIGN-MODE PREVIEW — give it the site's background.

   Reported by Dan, 30 September 2026, editing form 9: "you can't read the form
   because the formatting for the website has not been applied to the form
   editing." Labels and radio option text were invisible; only the gold section
   headings and the muted help text could be read.

   The formatting IS applied. That is the problem.

   `app/Views/frameless/show_preview.php` is a FRONT-END page, not a wp-admin
   screen. It calls wp_head(), so the theme stylesheet loads and every rule in
   this file applies to the form. But the plugin's own preview.css then puts the
   form on a white card:

       .ff_form_preview_wrapper { background: #fff; ... }

   and our field labels are

       .fluentform.ff-default .ff-el-input--label label { color: var(--sp-ff-white); }

   which is #FFFFFF, correct on the navy site and invisible on that white card.
   Nothing is broken on the public site; the two sets of assumptions only meet
   here.

   So: paint the form area navy, which is the background these colours were
   written against. Scoped to body.ff-form-preview-body, a class that exists
   only on that preview page, so this can never reach a real page. The grey
   chrome bar above it (.ff_form_preview_header, #f8f9fa) is left alone, so the
   panel reads as the site inside the browser mock rather than a recolour of
   the plugin's UI.

   --sp-ff-navy is NOT usable here: this file defines it on .fluentform, which
   is a descendant of .ff_form_preview, not an ancestor. The theme.json preset
   is global, so that is what this uses.
   ======================================================================== */
body.ff-form-preview-body .ff_form_preview {
	background-color: var(--wp--preset--color--secondary, #103A4D);
	padding: 2rem;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

/* In Preview Only mode the chrome bar is hidden, so the panel is the whole card. */
body.ff-form-preview-body .ff_form_preview_header[style*="none"] + .ff_form_preview {
	border-radius: 10px;
}

/* ===========================================================================
   WORDFENCE'S LOGIN MESSAGE MODAL — make it readable on the branded sign-in page.

   Julie, 30 September 2026, could not sign in and was shown a white box with a
   Dismiss button and no visible text.

   Wordfence builds that box in JavaScript, at login.js:411, with the background
   set inline and the text colour not set at all:

       $('<div>').css({ 'background-color': '#FFF', 'border-radius': '4px',
                        padding: '16px', 'text-align': 'center' })

   It reaches for that modal only when it cannot find `#login > h1`, i.e. anywhere
   that is not wp-login.php. On /login/ the message therefore inherits the page's
   text colour, which is white, on a white panel. Measured before fixing, by
   rebuilding the exact node on the live page: colour rgb(255,255,255) on
   background rgb(255,255,255), contrast 1:1.

   Only `color` is needed, because that is the one thing the inline style does not
   set, and the id gives more than enough specificity. wp-login.php is unaffected:
   storypoint-login.php never sets white body text there, so the message inherits
   WordPress's own dark colour and has always been legible.

   Same family as the Fluent Forms preview fix above: a third-party white panel
   dropped into a page whose text is white because the site is navy.
   ======================================================================== */
#wfls-login-modal > div {
	color: var(--wp--preset--color--secondary, #103A4D);
	max-width: 34rem;
	line-height: 1.5;
	box-shadow: 0 18px 40px rgba(4, 20, 28, 0.45);
}

#wfls-login-modal p,
#wfls-login-modal li,
#wfls-login-modal strong,
#wfls-login-modal span {
	color: var(--wp--preset--color--secondary, #103A4D);
}

#wfls-login-modal a {
	color: #0B5D7A;
	text-decoration: underline;
}

/* The Dismiss button is an unstyled browser default otherwise. */
#wfls-login-modal button {
	margin-top: 0.5rem;
	padding: 0.55rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background-color: var(--wp--preset--color--primary, #E1B15D);
	color: var(--wp--preset--color--secondary, #103A4D);
	font-weight: 700;
	cursor: pointer;
}

