/*
Theme Name:        Bellringing
Theme URI:         https://www.bellringing.london
Description:       Block theme for the Middlesex County Association & London Diocesan Guild of Church Bell Ringers. Colours, fonts and spacing are in theme.json; layouts are editable in Appearance → Editor.
Version:           1.0.0
Requires at least: 6.6
Requires PHP:      8.1
License:           GPL-2.0-or-later
Text Domain:       bellringing
*/

/* ==========================================================================
   Base
   ========================================================================== */

:root {
	--radius: 10px;
	--sally: repeating-linear-gradient(90deg,
		var(--wp--preset--color--primary) 0 28px,
		var(--wp--preset--color--white) 28px 36px,
		var(--wp--preset--color--sally-blue) 36px 64px,
		var(--wp--preset--color--white) 64px 72px);
}

html {
	scroll-padding-top: 1rem;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a) {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > .site-main,
.wp-site-blocks > main {
	flex: 1;
}

.site-main {
	padding-top: var(--wp--preset--spacing--60);
}

.site-main--flush {
	padding-top: 0;
}

.site-main--flush > .entry-content > .is-style-hero:first-child {
	margin-top: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: relative;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* A bell-rope "sally" stripe along the very top. */
.site-header::before {
	content: "";
	display: block;
	height: 6px;
	margin-inline: calc(var(--wp--style--root--padding-left) * -1) calc(var(--wp--style--root--padding-right) * -1);
	background: var(--sally);
}

.site-header__bar {
	padding-block: var(--wp--preset--spacing--40);
	gap: var(--wp--preset--spacing--40);
}

.site-brand {
	gap: 0.85rem;
	min-width: 0;
}

.site-mark {
	display: block;
	flex: none;
	line-height: 0;
}

.site-mark svg {
	width: clamp(40px, 6vw, 52px);
	height: auto;
}

.site-brand__text {
	min-width: 0;
}

.site-brand .wp-block-site-tagline {
	margin: 0;
}

.site-nav {
	border-top: 1px solid var(--wp--preset--color--border);
}

.site-nav .wp-block-navigation {
	margin-inline: -0.85rem;
}

.site-nav .wp-block-navigation-item__content {
	padding: 0.85rem;
	color: var(--wp--preset--color--contrast);
}

.site-nav .wp-block-navigation .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.site-nav .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

.site-nav .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--primary);
}

.site-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--radius);
	box-shadow: var(--wp--preset--shadow--card);
	padding: 0.4rem 0;
	min-width: 16rem !important;
}

.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1rem;
}

@media (max-width: 1099px) {
	/* Below laptop width the menu button sits in the top bar, beside the search icon. */
	.site-nav {
		position: absolute;
		top: 6px;
		bottom: 0;
		right: calc(var(--wp--style--root--padding-right) + 2.5rem);
		display: flex;
		align-items: center;
		margin: 0 !important;
		border: 0;
		width: auto;
		padding: 0 !important;
	}

	.site-nav .wp-block-navigation {
		margin: 0;
	}

	.site-header__bar {
		padding-right: 5.5rem;
	}

	.site-brand .wp-block-site-tagline {
		display: none;
	}

	.wp-block-navigation__responsive-container-open {
		padding: 0.55rem;
	}
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--base) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.125rem;
	padding: 0.35rem 0;
}

/*
 * Header search: a single pill that grows out of the magnifier icon.
 * WordPress toggles .wp-block-search__searchfield-hidden; we animate the
 * wrapper's width (a fixed length, so it can transition) and fade the text in.
 */
.site-header__bar {
	position: relative;
}

.site-search {
	--search-h: 40px;
	--search-open: 17rem;
	flex: none;
}

.site-search .wp-block-search__inside-wrapper {
	box-sizing: border-box;
	width: var(--search-open) !important;
	height: var(--search-h);
	padding: 0 !important;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	transition: width 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.site-search.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper {
	width: var(--search-h) !important;
	background: transparent;
	border-color: transparent !important;
}

.site-search .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100% !important;
	height: 100%;
	margin: 0;
	padding: 0 0 0 1rem !important;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	font-size: 0.9375rem;
	opacity: 1;
	transition: opacity 0.18s ease 0.1s;
}

.site-search .wp-block-search__input:focus {
	outline: none;
}

.site-search .wp-block-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.site-search:focus-within:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
	border-color: var(--wp--preset--color--accent) !important;
	box-shadow: 0 0 0 3px rgb(184 137 43 / 0.18);
}

.site-search.wp-block-search__searchfield-hidden .wp-block-search__input {
	opacity: 0;
	transition: opacity 0.1s ease;
}

.site-search .wp-block-search__button {
	flex: none;
	display: grid;
	place-items: center;
	width: calc(var(--search-h) - 2px);
	height: calc(var(--search-h) - 2px);
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--contrast);
}

.site-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
}

.site-search.wp-block-search__searchfield-hidden .wp-block-search__button:hover {
	background: var(--wp--preset--color--base-2);
}

/* Phones: the open search grows leftwards over the site name (which hides) and stops before the menu button. */
@media (max-width: 599px) {
	.site-search {
		position: relative;
		width: var(--search-h);
		height: var(--search-h);
	}

	.site-search .wp-block-search__inside-wrapper {
		position: absolute;
		z-index: 5;
		top: 0;
		right: 0;
		max-width: none; /* WordPress caps it at 100% of the 40px icon slot */
	}

	.site-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
		/* full bar width minus the gutters and the menu button area to the right of the search icon */
		width: calc(100vw - var(--wp--style--root--padding-left) - var(--wp--style--root--padding-right) - 5.5rem) !important;
	}

	.site-header__bar:has(.site-search:not(.wp-block-search__searchfield-hidden)) .site-brand {
		visibility: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-search .wp-block-search__inside-wrapper,
	.site-search .wp-block-search__input {
		transition: none;
	}
}

/* ==========================================================================
   Block styles
   ========================================================================== */

.is-style-hero {
	position: relative;
	padding-block: var(--wp--preset--spacing--70) !important;
	margin-block-end: var(--wp--preset--spacing--60);
	background:
		radial-gradient(circle at 85% 20%, rgb(184 137 43 / 0.16), transparent 45%),
		linear-gradient(180deg, var(--wp--preset--color--base-2), var(--wp--preset--color--base));
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.is-style-hero h1 {
	max-width: 18ch;
	margin-top: 0.5rem;
}

.hero__inner > * + * {
	margin-top: var(--wp--style--block-gap);
}

.is-style-hero p:not(.eyebrow) {
	max-width: 42rem;
	color: var(--wp--preset--color--contrast-2);
}

.eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--radius);
	padding: var(--wp--preset--spacing--50);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.is-style-card > :first-child {
	margin-top: 0;
}

.is-style-card h3 {
	font-size: 1.3rem;
}

.is-style-card h3 a {
	color: inherit;
	text-decoration: none;
}

/* Whole card is clickable via its heading link. */
.is-style-card:has(h3 a) {
	position: relative;
}

.is-style-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-card:has(h3 a):hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgb(31 26 23 / 0.06), 0 10px 28px rgb(31 26 23 / 0.1);
}

.is-style-card:has(h3 a):hover h3 a {
	color: var(--wp--preset--color--primary);
}

.is-style-card p {
	color: var(--wp--preset--color--contrast-2);
	font-size: 1rem;
}

.quick-links {
	margin-block-end: var(--wp--preset--spacing--70) !important;
}

.signature {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	color: var(--wp--preset--color--contrast-2);
}

.news-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.news-list > li {
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.news-list > li > * {
	margin: 0;
}

.news-list .wp-block-post-title {
	font-size: 1.125rem;
	margin-top: 0.15rem;
}

/* ==========================================================================
   Lists of posts (news, category archives, search)
   ========================================================================== */

.entry-list {
	list-style: none;
	padding: 0;
}

.entry-list > li {
	padding-block: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin: 0;
}

.entry-card {
	gap: var(--wp--preset--spacing--50);
}

.entry-card__image {
	flex: none;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
}

.entry-card__image img {
	object-fit: cover;
}

.entry-card__body {
	flex: 1;
	min-width: 0;
}

.entry-card .wp-block-post-title {
	margin: 0;
}

.entry-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--contrast-2);
	font-size: 1rem;
}

.entry-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

@media (max-width: 599px) {
	.entry-card__image {
		display: none;
	}
}

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--60);
}

/* ==========================================================================
   Single posts & pages
   ========================================================================== */

.entry-header {
	margin-bottom: var(--wp--preset--spacing--50);
}

.entry-header__terms {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.entry-header__terms a {
	text-decoration: none;
}

.entry-header .wp-block-post-title {
	margin: 0;
}

.is-tower .entry-header__date,
.is-tower .entry-header__terms {
	display: none;
}

/* Content written in the old classic editor. */
.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.entry-content .alignleft {
	float: left;
	margin: 0.35rem 1.5rem 1rem 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.35rem 0 1rem 1.5rem;
}

/* Classic-editor centring. Block images manage their own layout (WordPress centres them
   as a table so the caption matches the image width), so leave those alone. */
.entry-content .aligncenter:not(.wp-block-image) {
	display: block;
	margin-inline: auto;
}

.entry-content .wp-block-image figcaption {
	text-align: center;
}

@media (max-width: 599px) {
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		display: block;
		margin: 0 0 1rem;
	}
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2em;
}

.entry-content > :first-child,
.entry-content > :first-child h3 {
	margin-top: 0;
}

.entry-content hr:not(.wp-block-separator) {
	overflow: visible; /* browsers default hr to overflow:hidden, which pushes it past floated images */
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	margin-block: 1rem 1.25rem;
	clear: none;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .wp-caption-text {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	margin-top: 0.4rem;
}

.entry-content iframe,
.entry-content video,
.entry-content embed {
	max-width: 100%;
}

.entry-content iframe[src*="calendar"] {
	width: 100%;
	min-height: 600px;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--radius);
	background: var(--wp--preset--color--white);
}

/* Old tables (often used for layout) scroll sideways instead of breaking the page. */
.entry-content table {
	border-collapse: collapse;
	width: 100%;
	font-size: 1rem;
}

.entry-content table:not(.has-fixed-layout) {
	display: block;
	overflow-x: auto;
}

.entry-content td,
.entry-content th {
	padding: 0.5rem 0.75rem;
	vertical-align: top;
	text-align: left;
}

.entry-content table:has(th),
.is-style-lined table {
	border-top: 1px solid var(--wp--preset--color--border);
}

.entry-content table:has(th) td,
.entry-content table:has(th) th,
.is-style-lined td,
.is-style-lined th {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.entry-content blockquote:not(.wp-block-quote) {
	border-left: 3px solid var(--wp--preset--color--accent);
	margin-inline: 0;
	padding-left: 1.25rem;
}

/* Lists of towers / posts from the [catlist] shortcode. */
.post-list {
	padding-left: 0;
	list-style: none;
	margin: 0.5rem 0 0;
}

.post-list li {
	padding-block: 0.3rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 1rem;
}

.post-list a {
	text-decoration: none;
}

.post-list a:hover {
	text-decoration: underline;
}

.tower-index {
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60) !important;
	margin-bottom: var(--wp--preset--spacing--60);
}

.tower-index h3 {
	margin: 0;
	font-size: 1.15rem;
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Towers: location + contact sections (added by the Bellringing Core plugin)
   ========================================================================== */

.tower-section {
	clear: both;
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--border);
}

.tower-section h2 {
	font-size: var(--wp--preset--font-size--large);
	margin-top: 0;
}

/* ==========================================================================
   Forms (Contact Form 7)
   ========================================================================== */

.wpcf7-form {
	display: grid;
	gap: 1rem;
	max-width: 36rem;
	margin-top: 1rem;
}

.wpcf7-form p {
	margin: 0;
}

.wpcf7-form label {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
	font-size: 0.9375rem;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea,
.wpcf7-form select,
.wp-block-search__input {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-weight: 400;
	padding: 0.65rem 0.8rem;
	border: 1px solid #cfc4b4;
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
}

.wpcf7-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
	border-color: transparent;
}

.wpcf7-submit {
	justify-self: start;
	font: inherit;
	font-weight: 600;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 999px;
	padding: 0.75em 1.6em;
	cursor: pointer;
}

.wpcf7-submit:hover {
	background: var(--wp--preset--color--primary-dark);
}

.wpcf7-not-valid-tip {
	font-weight: 500;
	font-size: 0.875rem;
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 8px;
}

.wpcf7-spinner {
	margin: 0 0 0 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	position: relative;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: var(--sally);
	opacity: 0.9;
}

.site-footer h2 {
	color: inherit;
}

.site-footer a {
	color: inherit;
}

.footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-list li {
	padding-block: 0.3rem;
	margin: 0;
}

.footer-list a,
.footer-list .wp-block-post-title a {
	text-decoration: none;
	color: rgb(251 248 243 / 0.85);
}

.footer-list a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer .footer-list .wp-block-post-title {
	margin: 0;
	line-height: 1.4;
}

.site-footer .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: rgb(251 248 243 / 0.6);
	background: transparent;
}

.site-footer__legal {
	opacity: 0.7;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
	max-width: 100vw;
	max-height: 100vh;
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(15 12 10 / 0.92);
}

.lightbox::backdrop {
	background: transparent;
}

.lightbox[open] {
	display: grid;
	place-items: center;
}

.lightbox__figure {
	margin: 0;
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	padding: 3.5rem 1rem 1.5rem;
}

.lightbox__img {
	max-width: min(92vw, 1400px);
	max-height: calc(100vh - 8rem);
	object-fit: contain;
	border-radius: 4px;
}

.lightbox__caption {
	color: #eee;
	font-size: 0.9375rem;
	text-align: center;
	max-width: 60ch;
}

.lightbox__btn {
	position: absolute;
	border: 0;
	background: rgb(255 255 255 / 0.12);
	color: #fff;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.lightbox__btn:hover {
	background: rgb(255 255 255 / 0.25);
}

.lightbox__close {
	top: 1rem;
	right: 1rem;
}

.lightbox__prev {
	left: 1rem;
	top: 50%;
}

.lightbox__next {
	right: 1rem;
	top: 50%;
}

.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* ==========================================================================
   Refinements
   ========================================================================== */

/* Fill the row instead of leaving empty grid tracks. */
.quick-links.is-layout-grid,
.tower-index.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)) !important;
}

.footer-list li,
.site-footer .footer-list .wp-block-post-title {
	font-size: 0.9375rem !important;
}

/* Large faint bell on the right of the hero (wide screens only). */
@media (min-width: 900px) {
	.is-style-hero {
		overflow: hidden;
	}

	.is-style-hero::after {
		content: "";
		position: absolute;
		right: max(2rem, calc((100% - var(--wp--style--global--wide-size)) / 2));
		top: 50%;
		width: clamp(220px, 26vw, 360px);
		aspect-ratio: 1;
		transform: translateY(-50%) rotate(-12deg);
		opacity: 0.1;
		background: var(--wp--preset--color--primary);
		-webkit-mask: url("assets/bell.svg") center / contain no-repeat;
		mask: url("assets/bell.svg") center / contain no-repeat;
		pointer-events: none;
	}
}

/* Mobile overlay menu: plain indented lists rather than dropdown cards. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 0 0.5rem 1rem !important;
	background: transparent !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.35rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.3rem 0 !important;
	font-size: 1rem;
	color: var(--wp--preset--color--contrast-2);
}

/* ==========================================================================
   Display fix-ups (October 2026 review)
   ========================================================================== */

/* Show the menu button instead of a wrapping menu between phone and laptop widths. */
@media (min-width: 600px) and (max-width: 1099px) {
	.site-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

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

/* Long URLs and email addresses wrap instead of pushing the page sideways on phones. */
.entry-content {
	overflow-wrap: break-word;
}

.entry-content a {
	overflow-wrap: anywhere;
}

/* Videos embedded with a fixed width shrink to fit. */
.entry-content .wp-video,
.entry-content .mejs-container {
	width: 100% !important;
	max-width: 100%;
}

.entry-content .wp-video video {
	width: 100% !important;
	height: auto !important;
}

/* Small images in media & text blocks (e.g. logos) are not stretched beyond their real size. */
.entry-content .wp-block-media-text__media {
	text-align: center;
}

.entry-content .wp-block-media-text__media img {
	width: auto;
	max-width: 100%;
}

/* Text colours hard-coded by the old editor give way to the site's own colours. */
.entry-content [style*="color"]:not(.has-text-color):not(.has-background):not(.has-link-color) {
	color: inherit !important;
}

/* Preformatted results tables scroll inside their own box on small screens. */
.entry-content pre {
	max-width: 100%;
	overflow-x: auto;
	font-size: 0.875rem;
}

/* Contact cards (e.g. Bell Restoration Committee, Keeping In Touch). */
.contact-cards {
	gap: var(--wp--preset--spacing--40) !important;
	overflow-wrap: normal;
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60) !important;
}

.contact-cards .is-style-card h2,
.contact-cards .is-style-card h4 {
	margin-top: 0;
	color: var(--wp--preset--color--primary);
}

.contact-cards .is-style-card p {
	color: var(--wp--preset--color--contrast);
}

.contact-cards a[href^="mailto:"] {
	font-size: 0.9375rem;
	overflow-wrap: normal;
	word-break: break-all; /* only if an address can't fit at all */
}

.contact-cards .wp-block-buttons {
	margin-block: 1rem;
}

/* Bank details (200 Club). */
.bank-details-card {
	margin-block: var(--wp--preset--spacing--50) !important;
}

.bank-details-card h3 {
	margin-top: 0;
}

.bank-details-card p {
	color: var(--wp--preset--color--contrast) !important;
}

.wp-block-table.bank-details {
	margin: 0.75rem 0 1.25rem;
}

.wp-block-table.bank-details table {
	display: table;
	border: 0;
	font-size: 1rem;
}

.wp-block-table.bank-details th,
.wp-block-table.bank-details td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.6rem 0.75rem 0.6rem 0;
}

.wp-block-table.bank-details tr:last-child th,
.wp-block-table.bank-details tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.bank-details th {
	width: 9.5rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-table.bank-details td {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

@media (max-width: 499px) {
	.wp-block-table.bank-details th,
	.wp-block-table.bank-details td {
		display: block;
		width: auto;
		padding: 0;
		border: 0;
	}

	.wp-block-table.bank-details td {
		padding-bottom: 0.6rem;
		margin-bottom: 0.6rem;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}
}
