/*
Theme Name: GeneratePress Child
Description: NYLOC child theme for GeneratePress. Holds the site's fonts and custom CSS, so the design travels as files.
Author: PT
Template: generatepress
Version: 2.0.0
*/

/* ==========================================================================
   Fonts, stored in this theme so no visitor data goes to Google
   Archivo: one variable file for every weight and width, Latin characters.
   Figtree: the NYLOC wordmark only. The file holds just N Y L O C T U S
   (both cases), @ and #, so it is tiny; any other character falls back.
   Both are SIL Open Font Licence (licences in fonts/).
   ========================================================================== */
@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo-variable-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("fonts/figtree-nyloc-subset.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+23, U+40, U+43, U+4C, U+4E-4F, U+53-55, U+59, U+63, U+6C, U+6E-6F, U+73-75, U+79;
}

/* ==========================================================================
   Colours and sizes
   The colours match Appearance > Customize > Colors > Global Colors, with
   fallbacks so this file still works before those settings are in place.
   ========================================================================== */
:root {
	--nyl-green: var(--lotus-green, #0b3b2e);
	--nyl-green-deep: #082c22;
	--nyl-yellow: var(--lotus-yellow, #ffc423);
	--nyl-yellow-light: #ffd35c;
	--nyl-blue: var(--accent, #0a6fbf);
	--nyl-ink: var(--contrast, #1c2421);
	--nyl-ink-soft: var(--contrast-2, #56625d);
	--nyl-line: var(--base, #d5dbd8);
	--nyl-mist: var(--base-2, #eef1ef);
	--nyl-font: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--nyl-wordmark: "Figtree", var(--nyl-font);
	--nyl-wide: 125%;
	--nyl-gutter: clamp(1rem, 4vw, 3.5rem);
	--nyl-max: calc(1320px + 2 * var(--nyl-gutter));
	--nyl-logo: 100px; /* header and footer logo height, until the mobile layout */
	/* Curved bottom edge on the top photo of every page (see "Curved foot" below).
	   --nyl-hero-arc is how far the middle dips below the corners. */
	--nyl-hero-arc: clamp(1.25rem, 4.5vw, 5.25rem);
	--nyl-hero-mask:
		linear-gradient(#000 0 0) top / 100% calc(100% - var(--nyl-hero-arc) + 1px) no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100Q50 20 0 0Z'/%3E%3C/svg%3E") bottom / 100% var(--nyl-hero-arc) no-repeat;
}

/* Curved foot: the home page hero and each page's featured-image band end in a
   shallow arc, lowest in the middle. Two mask layers: a plain block down to where
   the curve starts, then an SVG arc stretched across the full width. */
.entry-content .wp-block-cover.nyl-hero,
.page .featured-image.page-header-image img {
	-webkit-mask: var(--nyl-hero-mask);
	mask: var(--nyl-hero-mask);
}
@media (max-width: 768px) {
	:root {
		--nyl-logo: 72px;
	}
}

/* ==========================================================================
   Type
   ========================================================================== */
body,
button,
input,
select,
textarea {
	font-family: var(--nyl-font);
}
body {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--nyl-ink);
	background: #fff;
}
h1, h2, h3, h4, h5, h6,
.entry-title {
	font-family: var(--nyl-font);
	font-stretch: var(--nyl-wide);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: inherit;
	text-transform: none;
	text-wrap: balance;
}
h1, .entry-title { font-size: clamp(2.25rem, 4.4vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.875rem); margin-bottom: 0.5em; }
h3 { font-size: 1.1875rem; line-height: 1.25; margin-bottom: 0.35em; }
h4 { font-size: 1.125rem; }
/* Several older pages use h5 as an introductory paragraph */
h5 {
	font-stretch: 100%;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
}
h6 { font-size: 1rem; }

.entry-content {
	letter-spacing: normal;
}
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5 {
	max-width: 44rem;
}

a {
	color: var(--nyl-blue);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}
a:hover {
	color: var(--nyl-ink);
	text-decoration-thickness: 2px;
}
:focus-visible {
	outline: 3px solid var(--nyl-blue);
	outline-offset: 2px;
}

/* The club's name and social tag are set in Figtree: NYLOC bold, LOTUS regular */
.main-title,
.nyl-tag {
	font-family: var(--nyl-wordmark);
	font-stretch: 100%;
	letter-spacing: 0.01em;
}
.nyl-tag {
	font-weight: 400;
}
.nyl-tag strong {
	font-weight: 700;
}

/* ==========================================================================
   Header and navigation
   The logo is 100px high at every width until the mobile menu takes over.
   ========================================================================== */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--nyl-line);
}
.inside-header.grid-container {
	padding: 0.875rem var(--nyl-gutter);
}
.site-logo img,
.site-logo .header-image,
.page-hero-logo img {
	width: auto;
	height: var(--nyl-logo);
}
.site-branding-container .site-logo {
	margin-right: 1rem;
}
.main-title {
	font-size: 2.125rem;
	font-weight: 700;
	line-height: 1;
	margin: 0;
}
.main-title a,
.main-title a:hover {
	color: var(--nyl-ink);
	text-decoration: none;
}
.main-navigation,
.main-navigation ul ul {
	background: transparent;
}
.main-navigation .main-nav ul li a,
.main-navigation .menu-bar-item > a {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 44px;
	padding: 0 0.875rem;
	color: var(--nyl-ink);
}
.main-navigation .main-nav ul li:not([class*="current"]) > a:hover {
	color: inherit;
	background: transparent;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.45em;
}
/* The page you're on: ink on yellow. WordPress and WooCommerce mark it with a
   "current…" class, including Blog on a post and Shop on a product. The ID beats
   GP's own current-item colour. */
#site-navigation .main-nav ul li[class*="current"] > a,
#site-navigation .main-nav ul li[class*="current"] > a:focus {
	color: var(--nyl-ink);
	background: var(--nyl-yellow);
	font-weight: 600;
	font-stretch: 112%;
	text-decoration: none;
}
#site-navigation .main-nav ul li[class*="current"] > a:hover {
	color: var(--nyl-ink);
	background: var(--nyl-yellow-light);
	text-decoration: none;
}
/* Over the home page photo, GP's header Element turns menu text white and clears
   backgrounds; a current item keeps its ink on yellow */
.header-wrap #site-navigation:not(.toggled) .main-nav > ul > li[class*="current"] > a,
.header-wrap #site-navigation:not(.toggled) .main-nav > ul > li[class*="current"] > a:focus {
	color: var(--nyl-ink);
	background: var(--nyl-yellow);
}
.header-wrap #site-navigation:not(.toggled) .main-nav > ul > li[class*="current"]:hover > a {
	color: var(--nyl-ink);
	background: var(--nyl-yellow-light);
}

/* Basket icon, from GP Premium's WooCommerce module */
.main-navigation .menu-bar-items {
	align-items: center;
}
.main-navigation .menu-bar-item.wc-menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding-right: 0;
}
.main-navigation .wc-menu-item .gp-icon svg {
	width: 1.375rem;
	height: 1.375rem;
	top: 0;
	fill: currentColor;
}
.main-navigation .wc-menu-item .number-of-items {
	display: inline-grid;
	place-items: center;
	min-width: 1.375rem;
	height: 1.375rem;
	padding: 0 0.3rem;
	border-radius: 0;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--nyl-ink);
	background: var(--nyl-yellow);
}
.main-navigation .wc-menu-item .number-of-items.no-items {
	display: none;
}
.main-navigation .wc-menu-item .amount {
	display: none;
}

.main-navigation .menu-toggle,
.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus,
.main-navigation.toggled .menu-toggle {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--nyl-ink);
	background: transparent;
}
.main-navigation .menu-toggle .gp-icon svg {
	fill: currentColor;
}
@media (min-width: 769px) {
	.main-navigation .main-nav > ul {
		margin-right: 0;
	}
}

/* Home page: the header sits over the photo (Appearance > Elements > "Home page
   header over the photo" sets this up and swaps in the white logo) */
@media (min-width: 769px) {
	.header-wrap .site-header {
		border-bottom: 0;
	}
	.header-wrap .main-navigation .main-nav ul li:not([class*="current"]) > a,
	.header-wrap .main-navigation .menu-bar-item > a,
	.header-wrap .main-title a {
		color: #fff;
	}
	.header-wrap :focus-visible {
		outline-color: var(--nyl-yellow);
	}
	.header-wrap .main-navigation .menu-toggle,
	.header-wrap .main-navigation .menu-toggle:hover,
	.header-wrap .main-navigation .menu-toggle:focus {
		color: #fff;
	}
}

/* The menu folds into a "Menu" button below 1060px wide (Appearance >
   Customize > Layout > Menu Plus > Mobile Menu Breakpoint). The open menu
   drops down on white, also when the header is over the photo. */
@media (max-width: 1060px) {
	.main-navigation.toggled .main-nav {
		background: #fff;
		box-shadow: 0 12px 24px rgb(0 0 0 / 0.12);
	}
	.main-navigation.toggled .main-nav ul li a,
	.header-wrap .main-navigation.toggled .main-nav ul li:not([class*="current"]) > a {
		color: var(--nyl-ink);
		padding-inline: var(--nyl-gutter);
		border-bottom: 1px solid var(--nyl-line);
	}
}

/* ==========================================================================
   Page layout
   ========================================================================== */
.one-container .site-content,
.one-container .container {
	background: #fff;
}
body .grid-container {
	max-width: var(--nyl-max);
}
.entry-header {
	margin-bottom: 1.5rem;
}
.separate-containers .inside-article,
.one-container .site-content {
	padding: clamp(2rem, 5vw, 4rem) var(--nyl-gutter);
}

/* Headings that open a new part of a page need room above them */
.entry-content > h2:not(:first-child) {
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

/* Blog and archive lists: quieter titles than a single post */
.blog .entry-title,
.archive .entry-title,
.search .entry-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.entry-title a {
	color: var(--nyl-ink);
	text-decoration: none;
}
.entry-title a:hover {
	color: var(--nyl-blue);
}
.entry-meta,
.entry-meta a,
.cat-links a,
.comments-link a {
	color: var(--nyl-ink-soft);
}
.blog .site-main article,
.archive .site-main article {
	max-width: 52rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--nyl-line);
	margin-bottom: 2.5rem;
}

/* Pages set to full width in the editor hand all spacing to their blocks */
.full-width-content.one-container .site-content,
.full-width-content .site-content {
	padding: 0;
}
.full-width-content .site-main,
.full-width-content .inside-article {
	margin: 0;
	padding: 0;
}
.full-width-content .entry-content {
	margin: 0;
}
.entry-content .wp-block-image {
	margin-bottom: 0;
}
.entry-content .wp-block-image img {
	display: block;
	width: 100%;
}

/* A page's featured image runs edge to edge as a band above the title */
.page .featured-image.page-header-image {
	max-width: none;
	margin: 0;
	text-align: left;
}
.page .featured-image.page-header-image img {
	display: block;
	width: 100%;
	height: clamp(14rem, 34vw, 30rem);
	object-fit: cover;
	object-position: center 55%;
}

/* Small pictures beside a page's text: a Gallery block with the class "nyl-album".
   On wide screens each pair sits in the empty margin to the right of the text,
   level with the paragraph after it; on narrower ones it drops into the text column. */
.entry-content .wp-block-gallery.nyl-album {
	--wp--style--unstable-gallery-gap: 1rem;
	gap: 1rem;
	max-width: 27rem;
	margin-block: 0.375rem 2rem;
	align-items: flex-start;
}
/* Keep the page's height round a floated album that runs past the text */
.entry-content:has(> .nyl-album)::after {
	content: "";
	display: table;
	clear: both;
}
.entry-content .wp-block-gallery.nyl-album figure.wp-block-image {
	flex-direction: column;
	margin: 0;
}
.entry-content .wp-block-gallery.nyl-album figure.wp-block-image img {
	aspect-ratio: 1;
	width: 100%;
	height: auto;
	object-fit: cover;
}
/* Captions under the picture, not over it as core does */
.entry-content .wp-block-gallery.nyl-album figure.wp-block-image::before {
	content: none;
}
.entry-content .wp-block-gallery.nyl-album figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	overflow: visible;
	margin: 0;
	padding: 0.5rem 0 0;
	background: none;
	color: var(--nyl-ink-soft);
	font-size: 0.8125rem;
	line-height: 1.45;
	text-align: left;
	text-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
@media (min-width: 1200px) {
	.entry-content .wp-block-gallery.nyl-album {
		float: right;
		clear: right;
		width: min(27rem, calc(100% - 47rem));
		margin: 0.375rem 0 2rem 3rem;
	}
}

/* ==========================================================================
   Buttons: square, firm, one main colour
   ========================================================================== */
button,
input[type="submit"],
input[type="button"],
a.button,
.button,
.wp-block-button__link,
.nyl-btn,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	font-family: var(--nyl-font);
	font-size: 0.9375rem;
	font-weight: 600;
	font-stretch: 112%;
	letter-spacing: 0.01em;
	line-height: 1.2;
	padding: 0.95rem 1.75rem;
	color: var(--nyl-ink);
	background: var(--nyl-yellow);
	border: 1.5px solid var(--nyl-yellow);
	border-radius: 0;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.button:hover,
.button:hover,
.wp-block-button__link:hover,
.nyl-btn:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	color: var(--nyl-ink);
	background: var(--nyl-yellow-light);
	border-color: var(--nyl-yellow-light);
}
/* Outline buttons: white on photos and green, dark on white */
.nyl-btn--ghost-light,
.nyl-btn--ghost-dark {
	background: transparent;
	border-color: currentColor;
}
.nyl-btn--ghost-light {
	color: #fff;
}
.nyl-btn--ghost-light:hover {
	color: var(--nyl-ink);
	background: #fff;
	border-color: #fff;
}
.nyl-btn--ghost-dark {
	color: var(--nyl-ink);
}
.nyl-btn--ghost-dark:hover {
	color: #fff;
	background: var(--nyl-ink);
	border-color: var(--nyl-ink);
}
/* Kept for older content that used the dark button */
.nyl-btn--ink {
	color: #fff;
	background: var(--nyl-green);
	border-color: var(--nyl-green);
}
.nyl-btn--ink:hover {
	color: #fff;
	background: #14553f;
	border-color: #14553f;
}
/* Woo's own highlighted button is the main action on basket and checkout */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	color: var(--nyl-ink);
	background: var(--nyl-yellow);
	border-color: var(--nyl-yellow);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--nyl-yellow-light);
	border-color: var(--nyl-yellow-light);
}

/* An underlined text link, used for "Read the club's history" */
.nyl-text-link {
	display: inline-block;
	font-weight: 600;
	font-stretch: 112%;
	font-size: 0.9375rem;
	color: var(--nyl-ink);
	text-decoration: none;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 2px;
}
.nyl-text-link:hover {
	color: var(--nyl-ink);
	border-bottom-color: var(--nyl-yellow);
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	color: var(--nyl-ink);
	background: #fff;
	border: 1px solid #7c8a82;
	border-radius: 0;
	padding: 0.65em 0.8em;
	font-size: 1.0625rem;
	max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
	color: var(--nyl-ink);
	background: #fff;
	border-color: var(--nyl-blue);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	max-width: 44rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	color: rgb(255 255 255 / 0.82);
	background: var(--nyl-green-deep);
	font-size: 0.9375rem;
}
.site-footer .footer-widgets,
.site-footer .site-info {
	color: inherit;
	background: transparent;
}
.site-footer .footer-widgets-container.grid-container,
.site-footer .inside-site-info.grid-container {
	padding-inline: var(--nyl-gutter);
}
.site-footer .footer-widgets-container.grid-container {
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
@media (min-width: 769px) {
	.inside-footer-widgets > div:first-child {
		flex-grow: 1.4;
	}
}
.site-footer .site-info,
.site-footer .inside-site-info {
	justify-content: flex-start;
	text-align: left;
}
.site-footer .copyright-bar {
	margin-inline: 0;
	padding-inline: 0;
	flex: 1;
	text-align: left;
}
.footer-widgets h2,
.footer-widgets .widget-title {
	font-size: 1rem;
	line-height: 1.3;
	color: #fff;
	margin-bottom: 1rem;
}
.footer-widgets p {
	margin-bottom: 0.75em;
}
.footer-widgets a,
.site-info a {
	color: inherit;
	text-decoration: none;
}
.footer-widgets a:hover,
.site-info a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.footer-widgets ul {
	margin: 0 0 1.5rem;
	list-style: none;
}
.footer-widgets li {
	margin-bottom: 0.5em;
}
.footer-widgets .nyl-footer-logo {
	margin-bottom: 1.5rem;
}
.footer-widgets .nyl-footer-logo img {
	width: auto !important; /* the Image block sets its own size; the theme decides it here */
	height: var(--nyl-logo) !important;
}
.footer-widgets .nyl-tag-intro {
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.65);
}
.footer-widgets .nyl-tag {
	font-size: 1.5rem;
	line-height: 1.2;
	color: #fff;
}
.site-footer .site-info {
	padding-inline: 0;
	border-top: 1px solid rgb(255 255 255 / 0.15);
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.65);
}
/* Footer Bar widget (the Privacy link, right of the copyright): no extra spacing,
   so it lines up with the copyright text */
.site-footer .footer-bar .widget,
.site-footer .footer-bar p {
	margin: 0;
	padding: 0;
}
.site-footer :focus-visible {
	outline-color: var(--nyl-yellow);
}

/* ==========================================================================
   Home page
   Each section is a GenerateBlocks element carrying one of these classes.
   ========================================================================== */
.nyl-wrap {
	width: 100%;
	max-width: var(--nyl-max);
	margin-inline: auto;
	padding-inline: var(--nyl-gutter);
}
.nyl-section {
	padding-block: clamp(4rem, 10vw, 8.5rem);
}
.nyl-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.nyl-section-head h2 {
	margin: 0;
}
.nyl-section-head p {
	max-width: 34rem;
	margin: 0;
	color: var(--nyl-ink-soft);
}
.entry-content [id] {
	scroll-margin-top: 1.5rem;
}

/* Hero: the photo fills the screen, the words sit at the bottom left */
.entry-content .wp-block-cover.nyl-hero {
	margin: 0 !important; /* GeneratePress spaces every block in the content area */
	padding: 0;
	overflow: hidden;
	background: var(--nyl-green-deep);
}
.nyl-hero .wp-block-cover__image-background {
	animation: nyl-settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.entry-content .wp-block-cover.nyl-hero.has-custom-content-position .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--nyl-max);
	margin-inline: auto;
	/* Bottom space allows for the curve (the first, deeper version), so the corners
	   never clip the buttons. Kept fixed so changing the curve leaves the words put. */
	padding: 0 var(--nyl-gutter) calc(clamp(3rem, 9vh, 6.5rem) + clamp(3rem, 10vw, 11rem));
	color: #fff;
}
.nyl-hero-title {
	max-width: 20ch;
	margin: 0;
	color: #fff;
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.02em;
	animation: nyl-rise 1.2s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.nyl-hero-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-top: clamp(1.5rem, 3vh, 2.5rem);
	animation: nyl-rise 1.2s 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.nyl-hero-foot p {
	max-width: 36rem;
	margin: 0;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	color: rgb(255 255 255 / 0.9);
}
.nyl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
@keyframes nyl-settle {
	from { transform: scale(1.07); }
	to { transform: scale(1); }
}
@keyframes nyl-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

/* Intro statement */
.nyl-intro {
	padding-top: clamp(4rem, 9vw, 7.5rem);
}
.nyl-lead {
	max-width: 30ch;
	margin: 0;
	font-size: clamp(1.375rem, 2.6vw, 2.25rem);
	font-stretch: 112%;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

/* Next meetings: a timetable of two. The Custom HTML block writes the entries. */
.nyl-meetings {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1.5px solid var(--nyl-ink);
}
.nyl-meeting {
	display: grid;
	grid-template-columns: 13rem 1fr; /* fixed, so both venues line up */
	align-content: start;
	gap: 0.25rem 2rem;
	padding: 2rem 2.5rem 2.25rem 0;
}
.nyl-meeting + .nyl-meeting {
	padding-left: 2.5rem;
	border-left: 1px solid var(--nyl-line);
}
.nyl-meeting time {
	grid-row: span 3;
	font-stretch: var(--nyl-wide);
	line-height: 0.9;
}
.nyl-meeting time b {
	display: block;
	font-size: clamp(3.5rem, 6vw, 5.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
}
.nyl-meeting time span {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--nyl-ink-soft);
}
.nyl-meeting h3 {
	align-self: end;
	margin: 0;
}
.nyl-meeting p {
	margin: 0;
}
.nyl-meeting-when {
	font-weight: 600;
}
.nyl-meeting-detail {
	max-width: 30rem;
	font-size: 0.9375rem;
	color: var(--nyl-ink-soft);
}
.nyl-meeting-detail a {
	color: inherit;
}

/* What the club gets up to: the line-up. All five in a row on wide screens,
   a sideways-scrolling row on narrower ones. */
.nyl-band-mist {
	background: var(--nyl-mist);
}
.nyl-range {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.5rem;
}
.nyl-range .wp-block-image {
	overflow: hidden;
	background: var(--nyl-line);
}
.nyl-range .wp-block-image img {
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nyl-range-item:hover .wp-block-image img {
	transform: scale(1.04);
}
.nyl-range h3 {
	margin: 1.25rem 0 0;
}
.nyl-range p {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--nyl-ink-soft);
}
@media (max-width: 1100px) {
	.nyl-range {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(250px, 38%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 1rem;
		scrollbar-width: thin;
		scrollbar-color: var(--nyl-ink-soft) transparent;
	}
	.nyl-range-item {
		scroll-snap-align: start;
	}
}

/* Join: photo and green panel side by side */
.nyl-join {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	color: #fff;
	background: var(--nyl-green);
}
.entry-content .nyl-join-photo {
	margin: 0;
	min-height: 34rem;
}
.entry-content .nyl-join-photo img {
	height: 100%;
	object-fit: cover;
	object-position: 50% 60%;
}
.nyl-join-body {
	align-self: center;
	max-width: 40rem;
	padding: clamp(3rem, 7vw, 6.5rem) var(--nyl-gutter);
}
.nyl-join-body h2 {
	color: #fff;
}
.nyl-join-body p {
	margin: 1.25rem 0 0;
	color: rgb(255 255 255 / 0.85);
}
.nyl-join-body .nyl-price {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-top: 2rem;
	color: rgb(255 255 255 / 0.8);
}
.nyl-price strong {
	font-size: clamp(3rem, 5vw, 4.5rem);
	font-stretch: var(--nyl-wide);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #fff;
}
.nyl-ticks {
	margin: 2rem 0 2.5rem;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgb(255 255 255 / 0.2);
}
.nyl-ticks li {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0.9rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.2);
}
.nyl-ticks li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 0.3rem;
	background: var(--nyl-yellow);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='m2.5 8.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='m2.5 8.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* How it started: photo and words side by side */
.nyl-history {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}
.nyl-history p {
	max-width: 34rem;
	margin: 0 0 2rem;
	color: var(--nyl-ink-soft);
}
.nyl-history .nyl-big-date {
	margin: 1.25rem 0 1.75rem;
	font-size: clamp(2.25rem, 4.6vw, 4rem);
	font-stretch: var(--nyl-wide);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--nyl-ink);
}

/* Come and say hello: full-width photo with a white panel on it */
.entry-content .wp-block-cover.nyl-hello {
	margin: 0 !important;
	padding: clamp(2rem, 5vw, 4rem) 0;
}
.entry-content .wp-block-cover.nyl-hello.has-custom-content-position .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--nyl-max);
	margin-inline: auto;
	padding-inline: var(--nyl-gutter);
}
.nyl-hello-panel {
	max-width: 32rem;
	padding: clamp(2rem, 4vw, 3.5rem);
	color: #f3f5f4;
	background: rgba(0, 0, 0, 0.4);
}
.nyl-hello-panel h2,
.nyl-hello-panel p {
	color: #f3f5f4;
}
.nyl-hello-panel p {
	margin: 1.25rem 0 2rem;
}

/* Smaller screens */
@media (max-width: 1100px) {
	.nyl-meetings {
		grid-template-columns: 1fr;
	}
	.nyl-meeting {
		padding-right: 0;
	}
	.nyl-meeting + .nyl-meeting {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--nyl-line);
	}
}
@media (max-width: 960px) {
	.nyl-join,
	.nyl-history {
		grid-template-columns: 1fr;
	}
	.entry-content .nyl-join-photo {
		min-height: 0;
	}
	.entry-content .nyl-join-photo img {
		aspect-ratio: 3 / 2;
	}
	/* The breakfast photo sits above the panel instead of behind it */
	.entry-content .wp-block-cover.nyl-hello {
		display: block;
		min-height: 0 !important;
		padding: 0;
	}
	.nyl-hello .wp-block-cover__image-background {
		display: block;
		position: static;
		aspect-ratio: 3 / 2;
		height: auto;
	}
	.entry-content .wp-block-cover.nyl-hello.has-custom-content-position .wp-block-cover__inner-container {
		padding-inline: 0;
	}
	.nyl-hello-panel {
		max-width: none;
		/* Below the photo here, not over it, so the panel needs a solid colour */
		background: var(--nyl-ink);
	}
}
@media (max-width: 768px) {
	/* The header isn't over the photo here, so the hero needn't fill the screen */
	.entry-content .wp-block-cover.nyl-hero {
		min-height: 40rem !important;
	}
	.nyl-hero .wp-block-cover__image-background {
		object-position: 50% 20% !important;
	}
	/* Darker behind the words, which cover more of the photo on a phone */
	.nyl-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgb(8 44 34 / 0) 0%, rgb(8 44 34 / 0.55) 22%, rgb(8 44 34 / 0.9) 42%, rgb(8 44 34 / 0.97) 100%) !important;
	}
}
@media (max-width: 560px) {
	.nyl-actions .nyl-btn {
		flex: 1 1 100%;
		text-align: center;
	}
	.nyl-meeting {
		grid-template-columns: 1fr;
	}
	.nyl-meeting time {
		grid-row: auto;
		display: flex;
		align-items: baseline;
		gap: 0.75rem;
	}
	.nyl-range {
		grid-auto-columns: 82%;
	}
}

/* ==========================================================================
   WooCommerce
   Appearance only. Shop rules below are carried over from Additional CSS on the
   old theme, which is stored per theme and wouldn't follow the switch.
   ========================================================================== */
.woocommerce-store-notice,
p.demo_store {
	color: var(--nyl-ink);
	background: #e6e4cb;
}
.woocommerce-store-notice__dismiss-link {
	color: #222;
}
.woocommerce-store-notice__dismiss-link:hover {
	color: #777;
}
.woocommerce-ordering,
.woocommerce-result-count,
.woocommerce .onsale {
	display: none;
}
/* Products fill the width, however many there are */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: clamp(1.75rem, 3vw, 3rem) clamp(1.25rem, 2vw, 2rem);
	margin: 2rem 0 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}
.woocommerce ul.products li.product {
	float: none;
	width: auto !important;
	margin: 0 !important;
}
.woocommerce ul.products li.product a {
	color: var(--nyl-ink);
	text-decoration: none;
}
.woocommerce ul.products li.product a.button {
	margin-top: 0.75rem;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
	color: var(--nyl-blue);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
	font-family: var(--nyl-font);
	font-stretch: var(--nyl-wide);
	font-weight: 700;
	line-height: 1.1;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.1875rem;
	line-height: 1.25;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--nyl-ink);
	font-weight: 700;
}
.woocommerce-cart table.cart td.actions .coupon .input-text,
#coupon_code {
	width: 14em;
	max-width: 100%;
}
.woocommerce table.shop_table,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
	border-radius: 0;
}
#order_review_heading {
	margin-top: 2.5rem;
}
.woocommerce-checkout #payment,
.woocommerce-checkout #payment div.payment_box {
	background: var(--nyl-mist);
	border-radius: 0;
}
.woocommerce-MyAccount-navigation ul {
	margin: 0;
	list-style: none;
}
.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--nyl-line);
}
.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.5em 0;
	text-decoration: none;
}
.woocommerce-MyAccount-navigation .is-active a {
	font-weight: 700;
	color: var(--nyl-ink);
}
.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--nyl-blue);
}
.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--nyl-blue);
}
/* Links inside shop notices ("Continue shopping", "View basket"): WooCommerce gives
   them the button class, but they read better as plain underlined text on the notice */
.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-info a.button,
.woocommerce .woocommerce-error a.button {
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	font-stretch: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	color: #fff;
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.woocommerce .woocommerce-message a.button:hover,
.woocommerce .woocommerce-info a.button:hover,
.woocommerce .woocommerce-error a.button:hover {
	color: #fff;
	background: none;
	text-decoration: none;
}

/* Product Extras: border round the add-ons group */
#pewc_group_1962_1967 {
	border: 2px solid #eee;
	padding: 1.15em 1.1em;
}

/* Product Extras: move the quantity box to the top of the booking form */
.woocommerce div.product form.cart:has(.pewc-repeat-by-quantity) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
}
.woocommerce div.product form.cart:has(.pewc-repeat-by-quantity) .quantity {
	order: 1;
	width: 100%;
	margin: 0 0 0.5em;
}
.woocommerce div.product form.cart:has(.pewc-repeat-by-quantity) .quantity::before {
	content: "How many people are you booking for?";
	display: block;
	font-weight: 700;
	margin-bottom: 0.5em;
}
.woocommerce div.product form.cart:has(.pewc-repeat-by-quantity) .pewc-product-extra-groups-wrap {
	order: 2;
	width: 100%;
}
.woocommerce div.product form.cart:has(.pewc-repeat-by-quantity) .single_add_to_cart_button {
	order: 3;
}


/* ==========================================================================
   Block editor only: GeneratePress sets its own fonts in there, so these have
   to insist. They don't match anything on the public site.
   ========================================================================== */
.editor-styles-wrapper,
.editor-styles-wrapper p,
.editor-styles-wrapper li,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
	font-family: "Archivo", system-ui, Arial, sans-serif !important;
}
.editor-styles-wrapper .nyl-tag {
	font-family: "Figtree", "Archivo", sans-serif !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation: none !important;
		transition: none !important;
	}
}
