/*
Theme Name: BRRA
Theme URI: https://www.buryrefs.org.uk
Description: Theme for the Bury & Rochdale Referees' Association. Navy and gold, Montserrat and Open Sans.
Author: Bury & Rochdale RA
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: brra
*/

/* Small label above headings, e.g. "NEXT UP". */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
	margin-bottom: 0;
}
.has-navy-background-color .is-style-eyebrow,
.has-navy-soft-background-color .is-style-eyebrow,
.brra-on-dark .is-style-eyebrow {
	color: var(--wp--preset--color--gold);
}

/* Header */
.brra-header {
	border-bottom: 3px solid var(--wp--preset--color--gold);
	position: relative;
	z-index: 50; /* keeps the More dropdown above the page */
}
.brra-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #fff;
}
.brra-brand img { width: 44px; height: 54px; object-fit: contain; }
.brra-brand__name {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.04em;
	line-height: 1.15;
}
.brra-brand__sub {
	display: block;
	font-size: 11px;
	letter-spacing: 0.18em;
	color: var(--wp--preset--color--gold);
	line-height: 1.4;
}
.brra-header .wp-block-navigation a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.brra-header .wp-block-navigation .current-menu-item > a,
.brra-header .wp-block-navigation a[aria-current="page"] { border-bottom-color: var(--wp--preset--color--gold); }
.brra-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }
/* "More" dropdown */
.brra-header .wp-block-navigation .wp-block-navigation__submenu-container { background: var(--wp--preset--color--navy-soft) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.12); border-top: 2px solid var(--wp--preset--color--gold); border-radius: 0 0 8px 8px; padding: 8px 0; min-width: 210px; }
.brra-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 9px 18px; border-bottom: 0; }
.brra-header .wp-block-navigation .wp-block-navigation__submenu-container a[aria-current="page"] { color: var(--wp--preset--color--gold); }
.brra-header .wp-block-navigation-submenu__toggle { color: inherit; padding: 0; margin-left: 4px; align-self: center; }
.brra-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0; padding: 0 !important; margin: 0 !important; min-width: 0; align-items: flex-end; width: 100%; }
.brra-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { font-size: .9em; opacity: .85; padding: 6px 0 !important; }
.brra-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--navy) !important; color: #fff !important; padding: 24px; }
.brra-header .wp-block-button__link { padding: 12px 20px; font-size: 14px; }

/* Buttons */
.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
	padding: 14px 26px;
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--wp--preset--color--navy); color: #fff; padding: 13px 22px; font-size: 14px; }
.wp-block-button.is-style-dark .wp-block-button__link:hover { background: var(--wp--preset--color--navy-soft); }
.wp-block-button.is-style-text-link .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); padding: 12px 0; text-decoration: underline; }

/* Cards */
.is-style-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	overflow: hidden;
}
.is-style-card-mist { background: var(--wp--preset--color--mist); border-radius: 8px; }
.is-style-raised {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 40px rgba(5, 15, 28, 0.16);
	overflow: hidden;
}
a.brra-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
a.brra-card-link:hover .brra-card-title { text-decoration: underline; }

/* Overlap the hero with the next card. */
.brra-overlap { margin-top: -70px !important; position: relative; z-index: 2; }

/* Pills (values) */
.brra-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.brra-pills span {
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 4px;
}

/* Icons in feature tiles */
.brra-icon { width: 36px; height: 36px; color: var(--wp--preset--color--navy); }

/* Events list */
.brra-events { border-top: 1px solid var(--wp--preset--color--line); }
.brra-event-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	padding: 20px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.brra-event-year {
	padding: 26px 0 10px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 900;
	font-size: 22px;
	color: var(--wp--preset--color--gold-text);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.brra-datebox {
	width: 76px;
	flex: none;
	text-align: center;
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-radius: 6px;
	padding: 10px 0;
}
.brra-datebox b { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 26px; line-height: 1; }
.brra-datebox span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--wp--preset--color--gold); margin-top: 4px; }
.brra-event-row img { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.brra-event-row__text { flex: 1 1 280px; min-width: 0; }
.brra-event-row__title { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 19px; color: var(--wp--preset--color--ink); text-decoration: none; }
.brra-event-row__title:hover { text-decoration: underline; }
.brra-event-row__line { display: block; font-size: 15px; color: var(--wp--preset--color--slate); }
.brra-tag { background: #F6EFD6; color: #6B530C; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 12px; margin-left: 10px; vertical-align: middle; }
.brra-event-row__more { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 14px; padding: 12px 0; }

/* Event cards and next-up */
.brra-event-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.brra-event-card { display: flex; flex-direction: column; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--wp--preset--color--ink); }
.brra-event-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.brra-event-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.brra-event-card__date { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 12px; letter-spacing: 0.16em; color: var(--wp--preset--color--gold-text); text-transform: uppercase; }
.brra-event-card__title { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 20px; }
.brra-event-card__line { font-size: 15px; color: var(--wp--preset--color--slate); }
.brra-event-card:hover .brra-event-card__title { text-decoration: underline; }

.brra-next { display: flex; flex-wrap: wrap; background: #fff; border-radius: 10px; border: 1px solid var(--wp--preset--color--line); }
.brra-next__img { border-radius: 10px 0 0 10px; }
.brra-next.is-raised { border: 0; box-shadow: 0 18px 40px rgba(5, 15, 28, 0.18); }
.brra-next__img { flex: 1 1 420px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.brra-next.is-compact .brra-next__img { flex: 1 1 260px; min-width: 0; aspect-ratio: auto; height: auto; min-height: 220px; align-self: stretch; contain: size; }
.brra-next__body { flex: 1 1 360px; min-width: 0; padding: 30px 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.brra-next__date { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; color: var(--wp--preset--color--gold-text); text-transform: uppercase; }
.brra-next__title { margin: 0; font-size: 28px; }
.brra-next__line { margin: 0; color: var(--wp--preset--color--slate); }
.brra-next__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.brra-btn { display: inline-block; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 14px; text-decoration: none; padding: 13px 22px; border-radius: 4px; background: var(--wp--preset--color--navy); color: #fff; border: 2px solid var(--wp--preset--color--navy); cursor: pointer; }
.brra-btn:hover { background: var(--wp--preset--color--navy-soft); color: #fff; }
.brra-btn.is-ghost { background: transparent; color: var(--wp--preset--color--navy); }
.brra-btn.is-ghost:hover { background: var(--wp--preset--color--mist); }
.brra-btn.is-gold { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); }

/* Fact boxes on the Events hero */
.brra-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 840px; }
.brra-facts div { border: 1px solid #22344A; border-radius: 6px; padding: 16px 18px; font-weight: 700; }
.brra-facts small { display: block; font-size: 12px; letter-spacing: 0.16em; color: var(--wp--preset--color--gold); }

/* RSVP */
.brra-rsvp { background: var(--wp--preset--color--mist); border-radius: 8px; padding: 24px; display: grid; gap: 14px; }
.brra-rsvp label, .brra-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.brra-rsvp input, .brra-form input, .brra-form select, .brra-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #B8C2CE; border-radius: 6px; background: #fff; }
.brra-notice { background: #E7F3EA; color: #1E6B3A; padding: 14px 18px; border-radius: 6px; font-weight: 600; }

/* Committee */
.brra-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.brra-person { background: #fff; border-radius: 8px; padding: 22px; display: flex; align-items: center; gap: 16px; }
.brra-person__avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--gold); display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 20px; overflow: hidden; }
.brra-person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.brra-person__name { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 17px; }
.brra-person__role { display: block; font-size: 14px; color: var(--wp--preset--color--slate); line-height: 1.4; }

/* News */
.brra-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.brra-filter a { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 22px; border: 1px solid var(--wp--preset--color--navy); text-decoration: none; color: var(--wp--preset--color--navy); }
.brra-filter a.is-active, .brra-filter a:hover { background: var(--wp--preset--color--navy); color: #fff; }
.brra-post-card { height: 100%; }
.brra-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.brra-post-card .wp-block-post-title a { text-decoration: none; }
.brra-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.brra-typo-cover { aspect-ratio: 16 / 9; background: var(--wp--preset--color--navy); display: flex; flex-direction: column; justify-content: center; padding: 0 26px; gap: 8px; }
.brra-typo-cover b { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 28px; letter-spacing: 0.06em; color: #fff; line-height: 1.1; }
.brra-typo-cover span { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; color: var(--wp--preset--color--gold); }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; text-decoration: none; padding: 0 12px; }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--navy); color: #fff; border-color: var(--wp--preset--color--navy); }

/* Map placeholder until a real map is embedded */
.brra-map { min-height: 380px; border-radius: 8px; overflow: hidden; border: 0; width: 100%; }

/* Footer */
.brra-footer a { color: #C9D2DE; }
.brra-footer a:hover { color: var(--wp--preset--color--gold); }
.brra-footer .brra-footer__head { font-family: var(--wp--preset--font-family--heading); font-weight: 800; color: #fff; font-size: 14px; letter-spacing: 0.12em; margin: 0 0 8px; }

/* Article body */
.single .wp-block-post-content img { border-radius: 6px; }
.single .wp-block-post-content > * + * { margin-top: 1.1em; }

/* Membership checkout (Paid Memberships Pro) */
.pmpro { font-size: 16px; }
.pmpro .pmpro_card { border: 1px solid var(--wp--preset--color--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(5, 15, 28, 0.10); }
.pmpro .pmpro_btn, .pmpro input[type="submit"].pmpro_btn {
	background: var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--navy) !important;
	border: 0 !important;
	border-radius: 6px !important;
	font-family: var(--wp--preset--font-family--heading) !important;
	font-weight: 800 !important;
	font-size: 17px !important;
	padding: 16px 26px !important;
}
.pmpro input[type="text"], .pmpro input[type="email"], .pmpro input[type="password"], .pmpro input[type="tel"], .pmpro select {
	font-size: 16px; padding: 12px 14px; border: 1px solid #B8C2CE; border-radius: 6px;
}
.brra-price-box { background: var(--wp--preset--color--mist); border-radius: 8px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.brra-price-box__label { display: block; font-size: 14px; font-weight: 700; }
.brra-price-box__note { display: block; font-size: 14px; color: var(--wp--preset--color--slate); }
.brra-price-box__note.is-new { color: #1E6B3A; }
.brra-price-box__price { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 34px; }
.brra-price-box__was { font-size: 18px; color: #56657A; text-decoration: line-through; margin-right: 8px; }

/* Perks list */
.brra-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.brra-ticks li { position: relative; padding-left: 34px; }
.brra-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6D12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 18px 0; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 17px; cursor: pointer; }

@media (max-width: 781px) {
	.brra-overlap { margin-top: -40px !important; }
	.brra-event-row img { display: none; }
	.brra-next__body { padding: 24px; }
	.brra-next.is-compact .brra-next__img { flex-basis: 100%; contain: none; aspect-ratio: 16 / 9; min-height: 0; }
}

/* Layout fixes: no gap between header, page and footer; hero lines up with the sections below. */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-cover.alignfull { padding-left: var(--wp--style--root--padding-left, 24px); padding-right: var(--wp--style--root--padding-right, 24px); }
.wp-block-cover.alignfull > .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size, 1200px); margin-inline: auto; }

/* PMPro "Show password" toggle is a small text link, not a main button. */
.pmpro .pmpro_btn.pmpro_btn-password-toggle { background: none; border: 0; box-shadow: none; color: var(--wp--preset--color--slate); padding: 0; font-size: 14px; font-weight: 600; }
.pmpro .pmpro_btn.pmpro_btn-password-toggle:hover { color: var(--wp--preset--color--ink); background: none; }

/* Full-width split with a diagonal (Become a Referee: Book your course) */
.brra-split { position: relative; height: clamp(480px, 34vw, 600px); overflow: hidden; background: var(--wp--preset--color--navy); color: #fff; margin-top: 0; }
.brra-split__half { position: absolute; top: 0; bottom: 0; width: 55%; background-size: cover; background-repeat: no-repeat; display: flex; align-items: flex-end; }
.brra-split__half::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,15,28,.35) 0%, rgba(5,15,28,.85) 100%); }
.brra-split__half--left { left: 0; clip-path: polygon(0 0, 100% 0, 81.82% 100%, 0 100%); background-position: center; justify-content: flex-start; }
.brra-split__half--right { right: 0; clip-path: polygon(18.18% 0, 100% 0, 100% 100%, 0 100%); background-position: 25% 0%; justify-content: flex-end; }
.brra-split__text { position: relative; max-width: 380px; padding: 40px clamp(24px, 4vw, 64px); }
.brra-split__half--right .brra-split__text { text-align: right; max-width: 330px; }
.brra-split__text h3 { color: #fff; font-size: 30px; margin: 4px 0 8px; }
.brra-split__text p { margin: 0 0 18px; color: var(--wp--preset--color--cloud); font-size: 15px; }
.brra-split__text .brra-split__eyebrow { color: var(--wp--preset--color--gold); font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.brra-split__btn { display: inline-block; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy) !important; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 14px; padding: 13px 22px; border-radius: 4px; text-decoration: none; }
.brra-split__btn:hover { background: #fff; }
.brra-split::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--wp--preset--color--gold); clip-path: polygon(calc(55% - 2px) 0, calc(55% + 2px) 0, calc(45% + 2px) 100%, calc(45% - 2px) 100%); }
@media (max-width: 781px) {
	.brra-split { height: auto; }
	.brra-split__half { position: relative; width: 100%; min-height: 340px; clip-path: none; }
	.brra-split__half--right { border-top: 3px solid var(--wp--preset--color--gold); justify-content: flex-start; }
	.brra-split__half--right .brra-split__text { text-align: left; }
	.brra-split::after { display: none; }
}

/* Venue map (Contact us) */
.brra-map { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--mist); }
.brra-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.brra-map__link { font-size: 14px; margin-top: 8px; }

/* Add to calendar menu. */
.brra-cal { position: relative; display: inline-block; }
.brra-cal > summary { list-style: none; }
.brra-cal > summary::-webkit-details-marker { display: none; }
.brra-cal > summary::after { content: " \25BE"; }
.brra-cal__menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: 8px; box-shadow: 0 14px 34px rgba(5, 15, 28, 0.22); padding: 6px; display: flex; flex-direction: column; }
.brra-cal__menu a { padding: 11px 12px; color: var(--wp--preset--color--navy) !important; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 5px; }
.brra-cal__menu a:hover { background: var(--wp--preset--color--mist); }
.brra-event-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.brra-event-actions > * { margin: 0 !important; }

/* Event check-in page (opened from the QR codes). */
.brra-checkin { max-width: 560px; display: grid; gap: 14px; }
.brra-checkin p { margin: 0; }
.brra-checkin__event { font-size: 18px; line-height: 1.5; }
.brra-btn.is-big { font-size: 18px; padding: 16px 40px; }
.brra-form label.brra-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; }
.brra-form label.brra-check input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; flex: none; }

/* Newsletter sign-up box. */
.brra-newsletter { background: var(--wp--preset--color--navy); color: #fff; border-radius: 10px; border-top: 4px solid var(--wp--preset--color--gold); padding: 32px 36px; display: grid; grid-template-columns: 1fr; gap: 20px; }
.brra-newsletter h2 { color: #fff; margin: 0 0 8px; font-size: 26px; }
.brra-newsletter p { margin: 0; color: #CFD8E3; max-width: 720px; }
.brra-newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.brra-newsletter__form input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 0; border-radius: 6px; }
.brra-newsletter__form small { flex-basis: 100%; color: #CFD8E3; font-size: 13px; }
.brra-newsletter__form small a { color: var(--wp--preset--color--gold); }
@media (max-width: 781px) {
	.brra-newsletter { grid-template-columns: 1fr; padding: 26px 22px; }
	.brra-newsletter__form .brra-btn { width: 100%; }
}

/* Light newsletter box (About Us). */
.brra-newsletter.is-light { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--navy); }
.brra-newsletter.is-light h2 { color: var(--wp--preset--color--navy); }
.brra-newsletter.is-light p, .brra-newsletter.is-light .brra-newsletter__form small { color: var(--wp--preset--color--slate); }
.brra-newsletter.is-light .brra-newsletter__form small a { color: var(--wp--preset--color--navy); }
.brra-newsletter.is-light .brra-newsletter__form input { border: 1px solid #B8C2CE; }

/* Info tables (getting to St Mary's): keep the labels on one line. */
.wp-block-table.is-style-regular td:first-child { width: 30%; min-width: 110px; padding-right: 20px; }
.wp-block-table.is-style-regular td { vertical-align: top; }
@media (max-width: 600px) {
	.wp-block-table.is-style-regular td:first-child { width: 36%; }
}
@media (max-width: 781px) {
	.brra-next__img { border-radius: 10px 10px 0 0; }
}

/* Visiting St Mary's: tabbed box ([brra_venue]) */
.brra-venue { border: 1px solid var(--wp--preset--color--line); border-top: 3px solid var(--wp--preset--color--gold); border-radius: 10px; background: #fff; overflow: hidden; margin: 0 0 24px; }
.brra-venue__tabs { position: relative; display: flex; gap: 6px; padding: 10px; background: var(--wp--preset--color--mist); border-bottom: 1px solid var(--wp--preset--color--line); flex-wrap: wrap; }
.brra-venue__tabs[hidden] { display: none; }
.brra-venue__tabs button { flex: 1 1 0; min-width: 0; font: inherit; font-weight: 700; font-size: 14px; padding: 11px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--wp--preset--color--navy); cursor: pointer; line-height: 1.25; position: relative; z-index: 1; transition: color .25s ease; }
.brra-venue__tabs button:hover { background: rgba(255,255,255,.7); }
.brra-venue__tabs button[aria-selected="true"] { color: #fff; }
.brra-venue__tabs button[aria-selected="true"]:hover { background: transparent; }
.brra-venue__pill { position: absolute; top: 0; left: 0; border-radius: 7px; background: var(--wp--preset--color--navy); pointer-events: none; }
.brra-venue.is-ready .brra-venue__pill { transition: transform .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1), height .3s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { .brra-venue.is-ready .brra-venue__pill, .brra-venue__tabs button { transition: none; } }
.brra-venue__tabs button:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.brra-venue__panel { padding: 22px 24px 8px; font-size: 15px; }
.brra-venue__panel[hidden] { display: none; }
.brra-venue.is-js .brra-venue__nojs { display: none; }
.brra-venue__nojs { font-size: 17px; margin: 0 0 8px; }
.brra-venue dl { margin: 0; }
.brra-venue dt { font-weight: 700; color: var(--wp--preset--color--navy); margin: 0 0 4px; }
.brra-venue dd { margin: 0 0 16px; line-height: 1.6; }
@media (max-width: 600px) {
	.brra-venue__tabs button { font-size: 13px; padding: 10px 6px; }
	.brra-venue__panel { padding: 18px 16px 4px; }
}

/* Smooth page changes: the browser cross-fades between pages and keeps the header still,
   instead of blanking the screen. Each page keeps its own URL. Browsers that don't support
   this simply load pages as normal. */
@view-transition { navigation: auto; }
.brra-header { view-transition-name: brra-header; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}

/* Membership closed before the AGM, and the Renew box in My Account. */
.brra-notice.brra-closed-notice { background: #FFF6DB; color: #5C4A0E; max-width: 620px; }
.brra-closed, .brra-renew-box { background: #FFF; border: 1px solid #DDE2EA; border-left: 4px solid var(--wp--preset--color--gold); border-radius: 8px; padding: 22px 24px; margin: 0 0 28px; }
.brra-closed h2, .brra-renew-box h2 { margin: 0 0 8px; font-size: 24px; }
.brra-closed p:last-child, .brra-renew-box p:last-child { margin-bottom: 0; }

/* Signup: keep "Show password" a small text link, not a big gold button. */
button.pmpro_btn.pmpro_btn-password-toggle { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--wp--preset--color--slate) !important; padding: 4px 0 !important; width: auto !important; height: auto !important; min-height: 0 !important; font-size: 14px !important; font-weight: 600 !important; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
button.pmpro_btn.pmpro_btn-password-toggle:hover { color: var(--wp--preset--color--ink) !important; background: none !important; }
button.pmpro_btn.pmpro_btn-password-toggle svg { width: 18px; height: 18px; }
.brra-pw-line { margin: -6px 0 18px; }
.brra-pw-toggle { background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--slate); display: inline-flex; align-items: center; gap: 6px; }
.brra-pw-toggle:hover { color: var(--wp--preset--color--ink); }
.brra-pw-toggle svg { width: 18px; height: 18px; }
.pmpro_form_input-password { font-family: inherit; }
