/*
Theme Name: Jubilee
Description: Child block theme of Twenty Twenty-Five for the community venue site The Jubilee (Balsall Common). Moves the site from Webflow to WordPress: colours, Roboto and PT Serif (self-hosted), header with a 13-item submenu, footer, home and club-page templates, patterns, one small script.
Author: Perf Agency
Template: twentytwentyfive
Version: 0.2.0
Requires at least: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jubilee
*/

/* Rules for the Webflow classes used by the pages are in assets/css/jubilee-pages.css (generated by tools/extract_css.py).
   This file holds what is written by hand: base element rules of Webflow, header menu, footer links, slider, video, small fixes.
   Specificity prefix ":root .wp-site-blocks" is the same as in the generated file, so the two can override each other on purpose:
   WordPress zeroes margins of the first and last child in "flow" groups with specificity 0,2,0.
   Rules that are only a default for "an element with no class of its own" are wrapped in :where(): they lose to every Webflow class rule. */

/* ------------------------------------------------------------------
   0. Base: element rules of the Webflow stylesheet that are not class rules (survey: Twenty Twenty-Five gives other values).
   Webflow: p margin 0 0 10px; a underlined (colour in theme.json, elements.link); strong/b bold; img inline-block, vertical-align middle;
   headings in the body font (Roboto); PT Serif only where a class asks for it.
   ------------------------------------------------------------------ */
:root .wp-site-blocks :where(p) {
	margin-top: 0;
	margin-bottom: 10px;
}

/* headings: Webflow margins of h1-h6 (CSS: h1/h3 20px above, h2 none, h4-h6 10px above, all 10px below except h2). theme.json has the same values
   (:root :where(hN), weight 0,1,0), but WordPress zeroes the margins of every child of a "flow" group with the same weight
   (:root :where(.is-layout-flow) > *), and the later rule wins: the test site showed h6 of "Use Our Equipment" with margin 0 instead of 10/10
   (acceptance round 2, N3: list rows 27 px instead of 36). Here the weight is 0,2,0 and, like for p, :where() keeps it below every class rule. */
:root .wp-site-blocks :where(h1, h3) {
	margin-top: 20px;
	margin-bottom: 10px;
}

:root .wp-site-blocks :where(h2) {
	margin-top: 0;
	margin-bottom: 0;
}

:root .wp-site-blocks :where(h4, h5, h6) {
	margin-top: 10px;
	margin-bottom: 10px;
}

/* text that was a div (or span, li) in Webflow: no margins (a div has none); marked by tools/webflow2blocks.py */
:root .wp-site-blocks :where(.jubilee-text) {
	margin-top: 0;
	margin-bottom: 0;
}

:root .wp-site-blocks :where(strong, b) {
	font-weight: 700;
}

:root .wp-site-blocks :where(h1, h2, h3, h4, h5, h6) {
	font-family: inherit;
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
}

/* Twenty Twenty-Five sets text-wrap: pretty (and balance for headings) on the text; Webflow wraps plainly: lines break as on the live site
   (acceptance, final of 05.12, F6). Zero specificity beyond the prefix, so a class rule that asks for text-wrap still wins. */
:root .wp-site-blocks :where(h1, h2, h3, h4, h5, h6, p, li) {
	text-wrap: wrap;
}

:root .wp-site-blocks :where(img) {
	display: inline-block;
	max-width: 100%;
	vertical-align: middle;
}

/* buttons: the Webflow base .w-button (the class of each button sets colour, padding, font where it differs): the font of the context,
   padding 9px 15px, no border or underline, instead of the parent theme button (own font, size, padding) */
:root .wp-site-blocks :where(.wp-block-button__link) {
	padding: 9px 15px;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-decoration: none;
	letter-spacing: normal;
	text-transform: none;
	border: 0;
}

/* a heading whose level changed in the survey (site.md section 14, rows 2-6) keeps the look of its old level
   (the generated converter adds jubilee-as-hN); the page classes still win over these defaults */
:root .wp-site-blocks :where(.jubilee-as-h1) { margin-top: 20px; margin-bottom: 10px; font-size: 38px; line-height: 44px; }
:root .wp-site-blocks :where(.jubilee-as-h2) { margin-top: 0; margin-bottom: 0; font-size: 3rem; line-height: 1.2rem; }
:root .wp-site-blocks :where(.jubilee-as-h3) { margin-top: 20px; margin-bottom: 10px; font-size: 24px; line-height: 30px; }

/* icon embeds (an <svg> inside a span or div with a Webflow class "icon-embed-…"): a block with its own width, as in Webflow;
   the classes decide width and height, display is only the default (a span ignores width) */
:root .wp-site-blocks :where([class*="icon-embed"]) {
	display: block;
}

/* no horizontal scroll (standard item 46). The live site has one at 768 px on seven club pages: the wrapper of a contact tile is
   "width: 60vw" at 991 px and below (461 px at 768 px), wider than its grid column, and runs past the screen.
   The wrapper may not be wider than its column; overflow-x on html is the second line of defence.
   The rules are narrow on purpose (acceptance round 2, N1 and N4): only the grids with tiles (not .alone-sothial, a row of three equal
   columns whose middle item the live site centres and lets be wider than its column), and only 480-991 px (at 479 px and below the grid is
   ".25fr" and the wrapper is 64vw: "max-width: 100%" on it made the grid shrink-to-fit collapse, the tiles were 16 px). */
html {
	overflow-x: hidden;
}

@media (min-width: 480px) and (max-width: 991px) {
	/* a grid item with min-width: 0 lets its "1fr" track shrink below the 461 px the tile wrapper asks for */
	:root .wp-site-blocks .contact_component:not(.alone-sothial) > .contact_item {
		min-width: 0;
	}

	:root .wp-site-blocks .contact_component:not(.alone-sothial) > .contact_item .margin-bottom {
		max-width: 100%;
	}
}

.wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ------------------------------------------------------------------
   1. Header (survey section 4, row "Menu")
   Structure: .topbar > .topbar_container > .topbar_content-left (Navigation block, logo) + .topbar_content-right (phone, a link of its own,
   outside the menu window). The Navigation block is the burger button plus the menu; "order" puts the burger left of the logo.
   Live site: panel with hover dropdown above 991 px, burger at 991 px and below. The block turns into the overlay below 600 px by default;
   the rules below move the switch to 991 px. They rely on core class names (checked against Gutenberg source, NOT yet in a browser).
   Spacing and colours come from the Webflow classes on the items (.topbar_link, .dropdown-link-event, .topbar_menu-dropdown):
   padding is defined there once, the link inside an item takes none.
   ------------------------------------------------------------------ */
.wp-block-template-part > .topbar,
.topbar {
	z-index: 999;
}

:root .wp-site-blocks .topbar_content-left {
	display: flex;
	flex: 1 1 auto;
	align-items: flex-end;
}

:root .wp-site-blocks .topbar_content-right {
	flex: 0 0 auto;
}

:root .wp-site-blocks .topbar_logo-link {
	position: relative;
	float: none;
	color: #333;
	text-decoration: none;
}

:root .wp-site-blocks .number-link {
	text-decoration: none;
}

.jubilee-nav {
	flex: 0 1 auto;
	margin-left: 1.5rem;
	color: var(--wp--preset--color--white);
}

/* menu text is 16 px as on the live site (body); the Navigation block takes the "medium" size (18 px) from the parent theme's styles */
:root .wp-site-blocks .jubilee-nav,
:root .wp-site-blocks .jubilee-nav .wp-block-navigation-item,
:root .wp-site-blocks .jubilee-nav .wp-block-navigation-item__content {
	font-size: 1rem;
}

/* items: colour and padding belong to the item (li); the link takes the colour of the item and no padding */
:root .wp-site-blocks .jubilee-nav .wp-block-navigation-item__content,
:root .wp-site-blocks .jubilee-nav .wp-block-navigation-item__content:hover,
:root .wp-site-blocks .jubilee-nav .wp-block-navigation-item__content:focus {
	padding: 0;
	color: inherit;
	text-decoration: none;
}

:root .wp-site-blocks .jubilee-nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
}

:root .wp-site-blocks .jubilee-nav .wp-block-navigation-item {
	color: var(--wp--preset--color--white);
}

/* current page: blue, as the live site (.w--current). functions.php marks the item (class current-menu-item, checked on the test site);
   the rule must be heavier than ".jubilee-nav .wp-block-navigation-item" above (white), otherwise the blue never shows */
:root .wp-site-blocks .jubilee-nav .wp-block-navigation-item.current-menu-item {
	color: #0082f3;
}

/* the dropdown toggle "Jubilee Events": white, own padding (the item class .topbar_menu-dropdown only sets z-index) */
:root .wp-site-blocks .jubilee-nav .topbar_menu-dropdown {
	display: flex;
	align-items: center;
}

:root .wp-site-blocks .jubilee-nav .topbar_menu-dropdown > .wp-block-navigation-item__content {
	padding: 0.5rem 0.5rem 0.5rem 1rem;
	color: var(--wp--preset--color--white);
	font: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

:root .wp-site-blocks .jubilee-nav .topbar_menu-dropdown > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--green);
}

/* chevron: the 1 rem arrow of the live site instead of the core icon */
:root .wp-site-blocks .jubilee-nav .wp-block-navigation__submenu-icon {
	display: block;
	width: 1rem;
	height: 1rem;
	margin: 0 1rem 0 0;
	padding: 0;
	color: var(--wp--preset--color--white);
	cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M2.558 6.295a.2.2 0 0 1 0-.353l.884-.884a.2.2 0 0 1 .353 0L8 9.263l4.205-4.205a.2.2 0 0 1 .353 0l.884.884a.2.2 0 0 1 0 .353L8.177 11.56a.2.2 0 0 1-.354 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

:root .wp-site-blocks .jubilee-nav .wp-block-navigation__submenu-icon svg {
	display: none;
}

:root .wp-site-blocks .jubilee-nav .topbar_menu-dropdown:hover .wp-block-navigation__submenu-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2326bca6' fill-rule='evenodd' d='M2.558 6.295a.2.2 0 0 1 0-.353l.884-.884a.2.2 0 0 1 .353 0L8 9.263l4.205-4.205a.2.2 0 0 1 .353 0l.884.884a.2.2 0 0 1 0 .353L8.177 11.56a.2.2 0 0 1-.354 0z'/%3E%3C/svg%3E");
}

/* the dropdown panel: violet, one dark pixel border (the live panel has the text colour as border), items from .dropdown-link-event */
:root .wp-site-blocks .jubilee-nav .wp-block-navigation__submenu-container {
	min-width: max-content;
	padding: 0.5rem;
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--violet);
	border: 1px solid var(--wp--preset--color--text);
}

:root .wp-site-blocks .jubilee-nav .wp-block-navigation__submenu-container .wp-block-navigation-item {
	background-color: var(--wp--preset--color--violet);
	white-space: nowrap;
}

/* >= 992 px: the panel is shown, the burger is not */
@media (min-width: 992px) {
	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container-open {
		display: none;
	}

	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: block;
		position: relative;
		z-index: auto;
		width: auto;
		background: none;
	}

	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
		display: none;
	}
}

/* <= 991 px: burger on the left of the logo, menu in the overlay */
@media (max-width: 991px) {
	:root .wp-site-blocks .topbar_content-left {
		flex: 0 0 auto;
		align-items: center;
	}

	.jubilee-nav {
		order: -1;
		display: flex;
		align-items: center;
		margin-left: 0;
	}

	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	/* overlay: violet, white text (also set by the block, repeated so that no parent rule can make it transparent) */
	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container.is-menu-open {
		color: var(--wp--preset--color--white);
		background-color: var(--wp--preset--color--violet);
	}

	/* overlay: items stacked, white on violet */
	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		border: 0;
		padding: 0 0 0 1rem;
		min-width: 0;
	}

	/* the "Jubilee Events" submenu is closed in the overlay and opens on a tap (assets/js/jubilee.js adds .jubilee-sub-open) */
	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation__submenu-container {
		display: none;
	}

	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container.is-menu-open .has-child.jubilee-sub-open > .wp-block-navigation__submenu-container {
		display: flex;
		flex-direction: column;
		position: static;
		width: 100%;
		height: auto;
		visibility: visible;
		opacity: 1;
		overflow: visible;
	}

	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container.is-menu-open .topbar_menu-dropdown {
		flex-wrap: wrap;
		width: 100%;
	}

	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container.is-menu-open .topbar_menu-dropdown > .wp-block-navigation-item__content {
		padding-left: 0;
	}
}

/* the burger as the Webflow icon (the core icon is hidden): a 48 px box; at 480-991 px two white lines 24 x 2 px (the live middle
   line has no colour there), at 479 px and below three lines at the bottom left of the box */
:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container-open {
	width: 48px;
	height: 48px;
	margin: 0 0 0 -0.5rem;
	padding: 0;
	color: var(--wp--preset--color--white);
	background: linear-gradient(#fff, #fff) 12px 15px / 24px 2px no-repeat, linear-gradient(#fff, #fff) 12px 31px / 24px 2px no-repeat;
	border: 0;
	border-radius: 0;
}

:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container-open svg {
	display: none;
}

:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--white);
}

/* <= 479 px: the burger sits at the bottom left of its box and is 5 rem away from the logo (Webflow .menu-icon.is-left) */
@media (max-width: 479px) {
	:root .wp-site-blocks .jubilee-nav .wp-block-navigation__responsive-container-open {
		margin: 0 5rem 0 0;
		background: linear-gradient(#fff, #fff) 0 30px / 24px 2px no-repeat, linear-gradient(#fff, #fff) 0 38px / 24px 2px no-repeat, linear-gradient(#fff, #fff) 0 46px / 24px 2px no-repeat;
	}

	/* on the home page the live logo link is current (.w--current): centred and 62 px to the left */
	body.home .topbar_logo-link {
		right: 62px;
		margin-right: auto;
		margin-left: auto;
	}
}

/* ------------------------------------------------------------------
   2. Footer: generated from the live markup by tools/build_content.py; the links are plain links (underlined, white)
   ------------------------------------------------------------------ */
:root .wp-site-blocks .footer_component {
	margin-bottom: 0;
}

:root .wp-site-blocks .footer_logo-link {
	position: relative;
	color: #333;
	text-decoration: none;
}

:root .wp-site-blocks .footer_credit-text a {
	color: inherit;
}

/* on the home page the live footer sits inside the wrapper .main-content (PT Serif); on the other pages it is outside (Roboto) */
body.home .footer_component {
	font-family: var(--wp--preset--font-family--pt-serif);
}

/* ------------------------------------------------------------------
   3. Slider on scroll-snap (script: assets/js/jubilee.js)
   Webflow: the mask is as wide as one slide (home: 300 px, 100 % at 991 px and below; film night: 33.33 / 50 / 80 / 100 %),
   the slider clips what is to the right of its box, so the strip shows several slides at desktop width and one at tablet and phone width.
   Here the track is as wide as the slider and scrolls, the slide width is what the Webflow mask width was.
   The dots of the live site are hidden by its CSS, so the script builds none; arrows are in the markup (classes of the live arrows).
   ------------------------------------------------------------------ */
:root .wp-site-blocks :where(.jubilee-slider) {
	height: 300px;
}

:root .wp-site-blocks .jubilee-slider {
	position: relative;
	max-width: 100%;
	overflow: hidden;
}

:root .wp-site-blocks .jubilee-slider .jubilee-slider__track {
	display: flex;
	width: 100%;
	max-width: none;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.jubilee-slider__track::-webkit-scrollbar {
	display: none;
}

:root .wp-site-blocks .jubilee-slider .jubilee-slider__slide {
	flex: 0 0 300px;
	box-sizing: border-box;
	height: 100%;
	scroll-snap-align: start;
}

/* the film night strip: slide = 1/3 of the slider (mask 33.33 %), 1/2, 80 %, whole */
:root .wp-site-blocks .jubilee-slider .jubilee-slider__track.event_mask > .jubilee-slider__slide {
	flex-basis: 33.333%;
}

@media (max-width: 991px) {
	:root .wp-site-blocks .jubilee-slider .jubilee-slider__track > .jubilee-slider__slide {
		flex-basis: 100%;
	}

	:root .wp-site-blocks .jubilee-slider .jubilee-slider__track.event_mask > .jubilee-slider__slide {
		flex-basis: 50%;
	}
}

@media (max-width: 767px) {
	:root .wp-site-blocks .jubilee-slider .jubilee-slider__track.event_mask > .jubilee-slider__slide {
		flex-basis: 80%;
	}
}

@media (max-width: 479px) {
	:root .wp-site-blocks .jubilee-slider .jubilee-slider__track.event_mask > .jubilee-slider__slide {
		flex-basis: 100%;
	}
}

/* arrows: size, circle and border come from the classes of the live arrows (.team_arrow, .event_arrow); here what a <button> needs */
.jubilee-slider__arrow {
	position: absolute;
	z-index: 3;
	bottom: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.jubilee-slider__arrow.team_arrow {
	color: var(--wp--preset--color--white);
	background: transparent;
	border-color: currentcolor;
}

.jubilee-slider__arrow.event_arrow {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--violet);
	border: 0;
}

.jubilee-slider__arrow.left {
	right: 4rem;
}

@media (max-width: 767px) {
	.jubilee-slider__arrow.left {
		right: 3.5rem;
	}
}

/* the live arrows are never dimmed (Webflow gives the arrow at the end of a non-looping slider no style): at the start both are bright */
.jubilee-slider__arrow:disabled {
	cursor: default;
}

.jubilee-slider__arrow:focus-visible {
	outline: 2px solid var(--wp--preset--color--green);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.jubilee-slider__track {
		scroll-behavior: auto;
	}
}

/* ------------------------------------------------------------------
   4. Video: the cover of the YouTube video (a local copy of i.ytimg.com/vi/<id>/maxresdefault.jpg) with a play button;
   the iframe appears on click (jubilee.js). Like Webflow's w-embed-youtubevideo: the box has no width of its own and gets its
   height from padding-top (16:9 as in the live markup), so it does not widen the grid column around it.
   ------------------------------------------------------------------ */
.jubilee-video {
	position: relative;
	width: 100%;
	padding-top: 56.17%;
	background-color: var(--wp--preset--color--grey);
}

.jubilee-video .jubilee-video__cover {
	position: absolute;
	inset: 0;
	margin: 0;
}

.jubilee-video .jubilee-video__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jubilee-video .wp-block-buttons {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

/* the play button: the red YouTube button, the words "Play video" stay for screen readers */
.jubilee-video .wp-block-button__link {
	position: relative;
	display: block;
	width: 68px;
	height: 48px;
	padding: 0;
	overflow: hidden;
	font-size: 0;
	color: transparent;
	background-color: #f00;
	border-radius: 12px;
}

.jubilee-video .wp-block-button__link::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	content: "";
	border-color: transparent transparent transparent #fff;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	transform: translate(-35%, -50%);
}

.jubilee-video .wp-block-button__link:hover,
.jubilee-video .wp-block-button__link:focus-visible {
	background-color: #c00;
}

.jubilee-video.is-playing .wp-block-buttons,
.jubilee-video.is-playing .jubilee-video__cover {
	display: none;
}

.jubilee-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* the lightbox preview (/country-market) keeps the layout of its Webflow classes */
.jubilee-video.is-preview {
	position: static;
	width: auto;
	padding-top: 0;
	background: none;
}

.jubilee-lightbox {
	width: min(90vw, 960px);
	padding: 0;
	border: 0;
	background: #000;
}

.jubilee-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.8);
}

.jubilee-lightbox__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: center / cover no-repeat;
}

.jubilee-lightbox__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.jubilee-lightbox__close {
	position: absolute;
	top: 0.25rem;
	right: 0.5rem;
	z-index: 1;
	padding: 0 0.5rem;
	font-size: 2rem;
	line-height: 1;
	color: #fff;
	background: transparent;
	border: 0;
	cursor: pointer;
}

/* the map of the home page (.contact_map.jubilee-map): before the click a plain panel with a picture and two controls, no request to Google;
   jubilee.js puts the Google iframe into the box on click. The box keeps the size of the old iframe (600 x 450, as in the Webflow markup). */
.jubilee-map {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	box-sizing: border-box;
	width: 600px;
	max-width: 100%;
	height: 450px;
	padding: 1rem;
	text-align: center;
	background: var(--wp--preset--color--white) url("assets/img/map-placeholder.svg") center / cover no-repeat;
}

.jubilee-map .jubilee-map__note {
	max-width: 22rem;
	margin: 0;
	padding: 0.5rem 0.75rem;
	font-size: 14px;
	color: var(--wp--preset--color--text);
	background: rgba(255, 255, 255, 0.9);
}

.jubilee-map .jubilee-map__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
}

.jubilee-map .jubilee-map__button {
	padding: 9px 20px;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background-color: var(--wp--preset--color--violet);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.jubilee-map .jubilee-map__button:hover,
.jubilee-map .jubilee-map__button:focus-visible {
	background-color: var(--wp--preset--color--violet-dark);
}

.jubilee-map .jubilee-map__link {
	padding: 0.25rem 0.5rem;
	color: var(--wp--preset--color--text);
	background: rgba(255, 255, 255, 0.9);
}

.jubilee-map.is-loaded {
	display: block;
	padding: 0;
	background: none;
}

.jubilee-map.is-loaded .jubilee-map__note,
.jubilee-map.is-loaded .jubilee-map__actions {
	display: none;
}

.jubilee-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ------------------------------------------------------------------
   5. Share and copy-link buttons: a <button> must look like the Webflow link tile (the class .copy-button gives padding and radius)
   ------------------------------------------------------------------ */
:root .wp-site-blocks button.copy-button {
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	background: none;
	border: 0;
	appearance: none;
}

:root .wp-site-blocks button.copy-button.is-copied {
	outline: 2px solid var(--wp--preset--color--green);
}

/* ------------------------------------------------------------------
   6. Rest state of Webflow interactions (survey section 4, table row 6): the timeline dot is "passed"
   ------------------------------------------------------------------ */
:root .wp-site-blocks .layout352_circle {
	background-color: var(--wp--preset--color--black);
	opacity: 1;
}

/* ------------------------------------------------------------------
   7. Small things
   ------------------------------------------------------------------ */
:root .wp-site-blocks .utility-page-wrap {
	display: flex;
	min-height: 60vh;
	align-items: center;
	justify-content: center;
}

:root .wp-site-blocks .utility-page-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 260px;
	text-align: center;
}

/* hidden H1 (/events, survey 14 row 1): visible to screen readers and search engines only */
.jubilee-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* resting state of the preview (Webflow had it as an inline style on the <img>, survey section 4 row 4 of the interaction table) */
.testimonial_video-placeholder {
	filter: grayscale(100%);
}
