/*
Theme Name: Rotary Coastal
Theme URI: https://example.org/rotary-coastal
Author: Graham Newman
Author URI: https://example.org
Description: A deliberately simple classic theme for a Rotary club. The theme supplies the masthead, navigation, footer and the colour and type presets; the pages themselves are ordinary blocks, so every heading, paragraph, photograph and section is edited in place in the block editor.
Version: 4.3.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rotary-coastal
Tags: one-column, custom-menu, custom-logo, featured-images, block-patterns, wide-blocks, translation-ready, accessibility-ready
*/

/*
 * TABLE OF CONTENTS
 * 1.  Design tokens
 * 2.  Base and accessibility
 * 3.  Layout
 * 4.  Masthead (top bar)
 * 5.  Primary navigation
 * 6.  Buttons
 * 7.  Block styles used by the patterns
 * 8.  Footer
 * 9.  Shared WordPress core classes
 * 10. Entries, archives and pagination
 * 11. Comments
 * 12. Front page
 * 13. Coming Up band
 * 14. Responsive
 *
 * Everything else — colours, type sizes, spacing, headings, button defaults —
 * lives in theme.json, where the block editor can read it and the club can see
 * the result while editing.
 */

/* --------------------------------------------------------------------------
 * 1. Design tokens
 * ------------------------------------------------------------------------ */
:root {
	--navy: #00376e;
	--deep: #073e90;
	--blue: #00549b;
	--gold: #ffb51d;
	--ink: #202939;
	--pale: #e8f4fc;
	--max: 1120px;
	--shell: 1240px;
}

/* --------------------------------------------------------------------------
 * 2. Base and accessibility
 * ------------------------------------------------------------------------ */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	-webkit-text-size-adjust: 100%;
}

button {
	font: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

/* Screen-reader text and the skip link. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--deep);
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 16px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
}

/* --------------------------------------------------------------------------
 * 3. Layout
 * ------------------------------------------------------------------------ */
.container {
	width: min(calc(100% - 104px), var(--max));
	margin-inline: auto;
}

/*
 * On a desktop screen the whole site is held in one centred column, so the
 * masthead, navigation, photographs and footer line up with the text instead
 * of running to the edges of a wide monitor. The column is set by --shell;
 * change that one number to make the site wider or narrower. Nothing changes
 * below 1280px, where the site fills the window as before.
 */
@media (min-width: 1280px) {
	body {
		background: #edf3f9;
	}

	.wp-site-blocks {
		max-width: var(--shell);
		margin-inline: auto;
		background: #fff;
		box-shadow: 0 0 0 1px rgba(7, 62, 144, 0.07), 0 18px 50px rgba(7, 62, 144, 0.08);
	}
}

.site-main {
	padding: 34px 24px 44px;
}

/* --------------------------------------------------------------------------
 * 4. Masthead (top bar)
 * ------------------------------------------------------------------------ */
.topbar {
	background: #fff;
	position: relative;
	overflow: hidden;
}

.topbar:after {
	content: "\2699";
	position: absolute;
	right: 12%;
	top: -108px;
	font-size: 255px;
	line-height: 1;
	color: #e3eefc;
	pointer-events: none;
}

.top-inner {
	max-width: none;
	margin: auto;
	padding: 12px 38px;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 1;
}

.brand {
	display: flex;
	align-items: center;
	gap: 20px;
	color: #064587;
}

.rotary-word {
	font-weight: 800;
	font-size: 40px;
	letter-spacing: -2px;
	white-space: nowrap;
}

.wheel {
	display: inline-grid;
	place-items: center;
	color: #f5a900;
	border: 6px dotted #f5a900;
	border-radius: 50%;
	width: 72px;
	height: 72px;
	font-size: 56px;
	line-height: 1;
	vertical-align: middle;
	margin-left: 4px;
}

.brand-rule {
	height: 66px;
	border-left: 1px solid #a3b3c9;
}

.club-name {
	display: block;
	font-size: 23px;
	line-height: 1.13;
	font-weight: 800;
}

.tagline {
	display: block;
	font-size: 10px;
	letter-spacing: 3px;
	margin-top: 8px;
	font-weight: 700;
	color: #2a4565;
}

.login {
	font-size: 12px;
	color: #003f86;
	white-space: nowrap;
}

/*
 * A custom logo takes the place of the built-in "Rotary" wordmark. The club
 * name and tagline stay beside it, so the masthead keeps its lockup and the
 * tagline does not disappear when a logo is uploaded.
 */
.custom-logo-link {
	display: block;
	flex: 0 0 auto;
}

.custom-logo {
	width: auto;
	max-height: 76px;
	max-width: 340px;
}

.brand-text {
	display: block;
}

/* --------------------------------------------------------------------------
 * 5. Primary navigation
 * ------------------------------------------------------------------------ */
.nav {
	/* The band's link size. Change it under Appearance -> Customise -> Additional
	   CSS with: .nav { --nav-size: 15px; } */
	--nav-size: 13px;
	background: linear-gradient(90deg, #075b9f, #003c7d);
	color: #fff;
}

.nav-menu {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	display: block;
	padding: 12px 14px;
	text-align: center;
	color: inherit;
	font-size: var(--nav-size, 14px);
	text-decoration: none;
	white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a {
	background: var(--gold);
	color: #003d7c;
	text-decoration: none;
}

.menu-toggle {
	display: none;
}

.menu-toggle::after {
	content: "\2630";
	float: right;
}

/* The per-item button that opens a sub-menu on a phone; added by the script. */
.submenu-toggle {
	display: none;
}

/*
 * Sub-menus drop below their parent. A menu assigned in Appearance -> Menus
 * can be nested, so the children are hidden until the parent is hovered or
 * something inside it takes focus (which is what makes it keyboard-reachable).
 */
.nav-menu li {
	position: relative;
}

/* Top-level items share the band's width evenly, so the last one does not drop
   onto a line of its own. */
.nav-menu > li {
	flex: 1 1 auto;
}

.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 225px;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	background: var(--deep);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	display: block;
}

.nav-menu .sub-menu a {
	display: block;
	text-align: left;
	white-space: normal;
}

/* A nested sub-menu opens to the side rather than down. */
.nav-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

/* --------------------------------------------------------------------------
 * 6. Buttons
 * ------------------------------------------------------------------------ */
/*
 * Core buttons get their colour, radius and padding from theme.json. These
 * rules only cover the arrow used beside some buttons and the older .btn class
 * still used by the 404 template.
 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	border-radius: 6px;
	padding: 12px 22px;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 3px 8px #002a5120;
}

.btn:hover,
.btn:focus {
	filter: brightness(1.1);
	color: #fff;
}

.btn.gold,
.wp-block-button.is-style-gold .wp-block-button__link {
	background: var(--gold);
	color: #003c80;
}

.wp-block-button.is-style-gold .wp-block-button__link:hover,
.wp-block-button.is-style-gold .wp-block-button__link:focus {
	background: var(--gold);
	color: #003c80;
	filter: brightness(1.06);
}

/* The design's chevron, drawn rather than typed so it never enters the text. */
.wp-block-button__link::after {
	content: "\203A";
	margin-left: 10px;
	font-size: 24px;
	font-weight: 400;
	line-height: 0.6;
}

.arrow {
	font-size: 26px;
	line-height: 0.6;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
 * 7. Block styles used by the patterns
 * ------------------------------------------------------------------------ */
/*
 * The front page uses core blocks and their own settings. These four optional
 * styles are the only layout the theme adds; each can be removed from a block
 * in the editor and the content still makes sense.
 */

/*
 * The three welcome points: a round icon on the left and the heading with its
 * paragraph on the right, so the text lines up down the page.
 */
.rc-point {
	align-items: flex-start;
}

.rc-point > .wp-block-group {
	min-width: 0;
}

.rc-point .wp-block-heading {
	margin-top: 4px;
}

.wp-block-image.rc-point-icon {
	flex: none;
	margin: 2px 0 16px;
}

.rc-point-icon img {
	width: 64px;
	height: 64px;
}

/* Thin rules between side-by-side columns. */
.is-style-divided > .wp-block-column + .wp-block-column {
	border-left: 1px solid #d9e3ec;
	padding-left: 24px;
}

/*
 * A white card that sits to the right of its background photograph. The two
 * !important rules outrank the layout rules WordPress prints for the group that
 * wraps the card, which would otherwise centre it.
 */
.wp-block-group.is-style-soft-panel {
	max-width: 820px !important;
	margin-left: auto !important;
	margin-right: 0 !important;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 31, 61, 0.18);
}

/*
 * The cover used as the page hero. The photograph, overlay and text colour are
 * block settings; this style only keeps the opening paragraph to a readable
 * measure and styles the gold rule beneath the heading.
 */
/*
 * The inner group of a cover spans the whole band; this keeps its contents on
 * the same 1120px column as the rest of the page.
 */
.is-style-coastal-hero .wp-block-cover__inner-container > .wp-block-group,
.is-style-coastal-join .wp-block-cover__inner-container > .wp-block-group {
	max-width: var(--max);
	margin-inline: auto;
}

.is-style-coastal-hero .hero-copy {
	max-width: 440px;
	margin-left: 0 !important;
}

/*
 * The photograph is taller than the band, so nudge the crop upwards: the
 * lantern and the sky read better behind the heading than the paving does.
 */
.is-style-coastal-hero .wp-block-cover__image-background {
	object-position: 50% 30%;
}

.is-style-coastal-hero .hero-copy h1 {
	margin-bottom: 16px;
}

.is-style-coastal-hero .wp-block-separator {
	width: 93px;
	height: 4px;
	border: 0;
	margin: 0 0 18px;
}

.is-style-coastal-hero .wp-block-buttons {
	margin-top: 6px;
}

/* Text inside a cover keeps the cover's own colour rather than theme.json's. */
:where(.wp-block-cover) :where(h1, h2, h3, h4, h5, h6, p) {
	color: inherit;
}

/* --------------------------------------------------------------------------
 * 8. Footer
 * ------------------------------------------------------------------------ */
.footer {
	background: linear-gradient(120deg, #00447f, #00346b);
	color: #fff;
	font-size: 12px;
	padding: 19px 0 25px;
}

.footer-main {
	display: grid;
	grid-template-columns: 29% 1fr auto;
	gap: 30px;
	align-items: start;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.footer-brand .rotary-word {
	font-size: 23px;
	color: #fff;
	letter-spacing: -1px;
}

.footer-brand .wheel {
	width: 43px;
	height: 43px;
	font-size: 30px;
	border-width: 4px;
}

.footer-brand small {
	font-size: 11px;
	line-height: 1.25;
	border-left: 1px solid #8da6c5;
	padding-left: 10px;
}

.footer-links {
	border-left: 1px solid #8da6c5;
	padding-left: 32px;
	line-height: 2;
}

.footer a {
	color: inherit;
}

.footer-links a:hover,
.footer-bottom a:hover {
	text-decoration: underline;
}

.footer-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.footer-links li:not(:last-child):after {
	content: " | ";
	padding: 0 5px;
	color: #b7cbe0;
}

.social {
	font-weight: 700;
	font-size: 27px;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 27px;
	font-size: 11px;
}

.footer-bottom a {
	margin-left: 12px;
}

/* --------------------------------------------------------------------------
 * 9. Shared WordPress core classes
 * ------------------------------------------------------------------------ */
.alignleft {
	float: left;
	margin: 0.5em 1.5em 1.5em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1.5em 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 0.5em auto 1.5em;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption img {
	display: block;
	margin: 0 auto;
}

.wp-caption-text,
.gallery-caption,
.wp-block-image figcaption {
	font-size: 0.86em;
	color: #5a6875;
	text-align: center;
	margin: 0.5em 0 0;
}

.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

.post-password-form {
	max-width: 560px;
}

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

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

.entry-content th,
.entry-content td {
	border: 1px solid #d9e3ec;
	padding: 8px 10px;
	text-align: left;
}

.entry-content blockquote {
	border-left: 4px solid var(--gold);
	margin: 0 0 1.5em;
	padding: 0.25em 0 0.25em 1.25em;
	color: #3d4a5c;
}

/* --------------------------------------------------------------------------
 * 10. Entries, archives and pagination
 * ------------------------------------------------------------------------ */
.page-header {
	margin-bottom: 24px;
}

.page-title {
	margin-bottom: 6px;
}

.archive-description {
	max-width: 780px;
	color: #46536a;
}

.entry {
	margin-bottom: 38px;
}

.entry-title {
	margin-bottom: 6px;
}

.entry-title a:hover {
	text-decoration: underline;
}

.entry-meta {
	font-size: 13px;
	color: #5a6875;
	margin-bottom: 14px;
}

.entry-thumbnail {
	display: block;
	margin-bottom: 18px;
	border-radius: 6px;
}

.entry-content {
	font-size: 16px;
	line-height: 1.6;
}

.entry-footer {
	font-size: 13px;
	color: #5a6875;
	margin-top: 16px;
}

.entry-footer a:hover {
	text-decoration: underline;
}

.read-more {
	display: inline-block;
	font-weight: 700;
	color: #004a98;
	margin-top: 4px;
}

.read-more:hover {
	text-decoration: underline;
}

.navigation.pagination {
	margin-top: 10px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	text-align: center;
	border: 1px solid #cfdbe6;
	border-radius: 4px;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.post-navigation .nav-links,
.comment-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation .nav-links > div,
.comment-navigation .nav-links > div {
	max-width: 48%;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
}

.search-form input[type="search"] {
	flex: 1 1 auto;
	padding: 10px 12px;
	border: 1px solid #cfdbe6;
	border-radius: 4px;
	font: inherit;
}

.search-form input[type="submit"],
.wp-block-search__button {
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.error-404 .page-content {
	max-width: 640px;
}

/* --------------------------------------------------------------------------
 * 11. Comments
 * ------------------------------------------------------------------------ */
.comments-area {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid #e2e8ef;
}

.comment-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 28px;
}

.comment-body {
	padding: 18px 0;
	border-bottom: 1px solid #e2e8ef;
}

.comment-author {
	font-weight: 700;
}

.comment-metadata {
	font-size: 12px;
	color: #5a6875;
	margin-bottom: 8px;
}

.comment-reply-link {
	font-size: 13px;
	font-weight: 700;
	color: #004a98;
}

.comment-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 640px;
	padding: 10px 12px;
	border: 1px solid #cfdbe6;
	border-radius: 4px;
	font: inherit;
}

.comment-form .submit {
	padding: 11px 22px;
	border: 0;
	border-radius: 4px;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
 * 12. Front page
 * ------------------------------------------------------------------------ */
/*
 * The front page is a stack of full-width bands. Aligning them edge to edge
 * and removing the gaps the editor inserts between blocks keeps the bands
 * together; the spacing inside each band is set on the block itself.
 */
.home > .alignfull,
.home .entry-content > .alignfull {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.home > .wp-block-group,
.home > .wp-block-cover,
.home > .wp-block-shortcode,
.home .entry-content > * {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
 * 13. Coming Up band
 * ------------------------------------------------------------------------ */
/*
 * Printed by the [rotary_coming_up] shortcode from the Events post type. The
 * band is pale blue, the three cards white, and the date sits in a small
 * calendar badge on the left of each card.
 */
.rc-coming-up {
	background: var(--pale);
	padding: 22px 0 26px;
}

.rc-coming-up__inner {
	width: min(calc(100% - 104px), var(--max));
	margin-inline: auto;
}

.rc-coming-up__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.rc-coming-up__title {
	margin: 0;
	font-size: 29px;
}

.rc-coming-up__more {
	font-size: 14px;
	font-weight: 700;
	color: #004a98;
	white-space: nowrap;
	text-decoration: none;
}

.rc-coming-up__more:hover,
.rc-coming-up__more:focus {
	text-decoration: underline;
}

.rc-events {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-event {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 87px;
	padding: 12px 16px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(11, 52, 83, 0.11);
}

.rc-event__date {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 58px;
	padding: 6px 4px 7px;
	border: 1px solid #0d55a0;
	border-radius: 4px;
	color: #1a2d45;
	line-height: 1;
}

.rc-event__icon {
	color: #0b4e9a;
}

.rc-event__day {
	font-size: 24px;
	font-weight: 700;
}

.rc-event__month {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.rc-event__title {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.3;
}

.rc-event__title a {
	color: var(--navy);
	text-decoration: none;
}

.rc-event__title a:hover,
.rc-event__title a:focus {
	text-decoration: underline;
}

.rc-event__meta {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 13px;
	line-height: 1.3;
}

.rc-event__pin {
	flex: none;
	color: #0054a0;
}

/* --------------------------------------------------------------------------
 * 14. Responsive
 * ------------------------------------------------------------------------ */
@media (max-width: 850px) {
	.container {
		width: min(calc(100% - 44px), var(--max));
	}

	.top-inner {
		padding: 12px 22px;
	}

	/*
	 * Height caps alone are not enough: a logo wider than the club's own
	 * artwork would push the club name over the login link, so cap the width
	 * against the viewport as well.
	 */
	.custom-logo {
		max-height: 56px;
		max-width: 36vw;
	}

	.rotary-word {
		font-size: 32px;
	}

	.wheel {
		width: 57px;
		height: 57px;
		font-size: 42px;
	}

	.club-name {
		font-size: 19px;
	}

	.nav-menu a {
		padding: 12px 10px;
		font-size: 12px;
	}

	.wp-block-group.is-style-soft-panel {
		max-width: none !important;
	}

	/*
	 * Below the 1120px column the bands have no margin to sit in, so they need
	 * the same breathing room as the masthead and footer.
	 */
	.home > .wp-block-group,
	.is-style-coastal-hero .wp-block-cover__inner-container > .wp-block-group,
	.is-style-coastal-join .wp-block-cover__inner-container > .wp-block-group {
		padding-inline: 22px;
	}
}

@media (max-width: 781px) {
	/*
	 * On a phone the hero copy spans the whole band, so the original overlay
	 * is too thin behind the end of each line to keep white text readable.
	 */
	.is-style-coastal-hero .wp-block-cover__background {
		background: linear-gradient(90deg, rgba(0, 43, 85, 0.94) 0%, rgba(0, 43, 85, 0.78) 55%, rgba(0, 43, 85, 0.62) 100%) !important;
	}

	.is-style-divided > .wp-block-column + .wp-block-column {
		border-left: 0;
		padding-left: 0;
	}

	.is-style-coastal-hero .hero-copy {
		max-width: none;
	}
}

@media (max-width: 650px) {
	.top-inner {
		min-height: 82px;
		gap: 10px;
	}

	.brand {
		gap: 10px;
	}

	.custom-logo {
		max-height: 42px;
		max-width: 36vw;
	}

	.rotary-word {
		font-size: 24px;
	}

	.wheel {
		width: 42px;
		height: 42px;
		font-size: 30px;
		border-width: 3px;
	}

	.brand-rule {
		height: 46px;
	}

	.club-name {
		font-size: 15px;
	}

	.tagline {
		font-size: 7px;
		letter-spacing: 1px;
	}

	/* On a phone the label gives way to just the padlock. */
	.login-text {
		display: none;
	}

	.login-icon {
		font-size: 18px;
	}

	.menu-toggle {
		display: block;
		width: 100%;
		border: 0;
		background: #005197;
		color: #fff;
		text-align: left;
		padding: 12px 22px;
		cursor: pointer;
	}

	.nav-menu {
		display: none;
		flex-direction: column;
	}

	.nav.open .nav-menu {
		display: flex;
	}

	/* Progressive enhancement, only where the toggle script is not running:
	   the menu then opens while the button has focus. */
	html:not(.js) .nav:focus-within .nav-menu {
		display: flex;
	}

	.nav-menu a {
		text-align: left;
		padding: 12px 22px;
		font-size: 15px;
	}

	/* A sub-menu cannot float on a phone; it simply sits in the list, indented. */
	.nav-menu .sub-menu {
		display: block;
		position: static;
		min-width: 0;
		padding: 0;
		background: rgba(0, 0, 0, 0.15);
		box-shadow: none;
	}

	.nav-menu .sub-menu a {
		padding-left: 36px;
	}

	.nav-menu .sub-menu .sub-menu a {
		padding-left: 50px;
	}

	.footer-main {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.footer-links {
		padding-left: 0;
		border-left: 0;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 10px;
		margin-top: 18px;
	}

	.footer-bottom a:first-child {
		margin-left: 0;
	}
}

@media (max-width: 900px) {
	.rc-events {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.rc-coming-up__inner {
		width: min(calc(100% - 44px), var(--max));
	}

	.rc-coming-up__title {
		font-size: 26px;
	}

	.rc-events {
		grid-template-columns: 1fr;
	}
}

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

/* Editor-only bar shown on the front end while the front page is still empty. */
.rc-home-preview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 18px;
	padding: 12px 22px;
	background: #fdf3d8;
	border-bottom: 1px solid #e8c766;
	color: #12304f;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

.rc-home-preview p {
	margin: 0;
}

.rc-home-preview__button {
	display: inline-block;
	padding: 9px 18px;
	background: #00356b;
	border-radius: 4px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.rc-home-preview__button:hover,
.rc-home-preview__button:focus {
	background: #001f40;
	color: #fff;
}

/* --------------------------------------------------------------------------
 * 15. Block theme chrome
 * ------------------------------------------------------------------------ */
/*
 * The masthead and footer are block template parts (parts/header.html and
 * parts/footer.html), edited in the Site Editor. Standard blocks print their
 * own markup, so these rules give them the look the design expects.
 */

/* Masthead: the site title and tagline stand in for the old theme settings. */
.topbar .wp-block-site-title {
	font-size: 23px;
	line-height: 1.13;
	font-weight: 800;
	margin: 0;
}

.topbar .wp-block-site-title a {
	color: #064587;
	text-decoration: none;
}

.topbar .wp-block-site-tagline {
	font-size: 10px;
	letter-spacing: 3px;
	margin: 8px 0 0;
	font-weight: 700;
	color: #2a4565;
}

.topbar .brand-text {
	max-width: 360px;
}

.topbar .login {
	margin: 0;
}

.topbar .login a {
	color: #003f86;
	text-decoration: none;
}

/* The Navigation block inside the blue band. */
.nav .wp-block-navigation {
	width: 100%;
}

.nav .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	justify-content: space-between;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.nav .wp-block-navigation-item {
	list-style: none;
}

.nav .wp-block-navigation-item__content {
	padding: 12px 20px;
	color: #fff;
	text-decoration: none;
}

.nav .wp-block-navigation-item__content:hover,
.nav .wp-block-navigation-item__content:focus,
.nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--gold);
	color: #003d7c;
}

.nav .wp-block-navigation__responsive-container-open,
.nav .wp-block-navigation__responsive-container-close {
	color: #fff;
	padding: 10px 16px;
}

.nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #00447f;
	color: #fff;
	padding: 12px 20px;
}

/* Footer blocks. */
.footer .wp-block-site-title {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	border-left: 1px solid #8da6c5;
	padding-left: 10px;
}

.footer .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.footer .footer-links .wp-block-navigation {
	font-size: 12px;
}

.footer .footer-links .wp-block-navigation__container {
	gap: 0;
}

.footer .footer-links .wp-block-navigation-item__content {
	padding: 0;
	color: inherit;
}

.footer .footer-links .wp-block-navigation-item:not(:last-child) .wp-block-navigation-item__content::after {
	content: " | ";
	color: #b7cbe0;
	padding: 0 5px;
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom a {
	color: inherit;
}

/* Listing templates built from the Query Loop block. */
.site-main .wp-block-post {
	margin-bottom: 34px;
}

.site-main .wp-block-post-title a:hover {
	text-decoration: underline;
}

.site-main .wp-block-query-pagination {
	margin-top: 24px;
}

/*
 * The bands print the club's menu from Appearance -> Menus, so the classic
 * .nav-menu markup above is what appears. These rules cover its wrapper.
 */
.nav > .wp-block-shortcode,
.footer-links > .wp-block-shortcode {
	width: 100%;
}

.footer-links .rc-menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 4px;
	padding: 0;
	font-size: 12px;
}

.footer-links .rc-menu a {
	padding: 0;
	color: inherit;
	text-decoration: none;
}

.footer-links .rc-menu a:hover,
.footer-links .rc-menu a:focus {
	text-decoration: none;
}

.footer-links .rc-menu > li:not(:last-child) > a::after {
	content: " | ";
	color: #b7cbe0;
	padding: 0 5px;
}

@media (max-width: 900px) {
	/* The band's list is opened by the Menu button; forcing flex here would
	   show every link all of the time. */
	.nav .rc-menu {
		flex-direction: column;
	}

	.footer-links .rc-menu {
		flex-direction: column;
	}

	.menu-toggle[aria-expanded="true"] {
		background: var(--gold);
		color: #003d7c;
	}

	/* Sub-menus are accordions on a phone: closed until their own button is
	   tapped, so opening the band does not reveal every page at once. */
	.nav-menu .sub-menu {
		display: none;
	}

	.nav-menu li.submenu-open > .sub-menu {
		display: block;
	}

	.nav-menu li.menu-item-has-children > a {
		padding-right: 54px;
	}

	.submenu-toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		width: 50px;
		height: 100%;
		margin: 0;
		border: 0;
		background: transparent;
		color: inherit;
		font-size: 18px;
		line-height: 1;
		cursor: pointer;
	}

	.submenu-toggle[aria-expanded="true"] {
		background: rgba(0, 0, 0, 0.18);
	}
}

/*
 * A header or footer saved as a list of links — an earlier copy of the part, or
 * a club building its own band — is laid out and coloured like the menu, so its
 * text is never navy on navy.
 */
.nav .wp-block-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav .wp-block-list li {
	margin: 0;
	list-style: none;
}

.nav .wp-block-list a {
	display: block;
	padding: 12px 20px;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}

.nav .wp-block-list a:hover,
.nav .wp-block-list a:focus {
	background: var(--gold);
	color: #003d7c;
}

.footer-links .wp-block-list a {
	color: inherit;
	text-decoration: none;
}

.footer-links .wp-block-list a:hover,
.footer-links .wp-block-list a:focus {
	text-decoration: underline;
}

/* Dropdowns, for menu items with sub-items. */
.nav .wp-block-navigation__submenu-container {
	background: #00447f;
	color: #fff;
	min-width: 230px;
	padding: 6px 0;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 9px 18px;
	font-size: 14px;
}

/* The external links under the footer menu. */
.footer-links .wp-block-list {
	display: flex;
	flex-wrap: wrap;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.footer-links .wp-block-list li:not(:last-child)::after {
	content: " | ";
	color: #b7cbe0;
	padding: 0 5px;
}

/*
 * The wordmark is ordinary blocks (a "Rotary" paragraph and a gear glyph), so
 * it renders as text in the Site Editor rather than as a box of HTML.
 */
.topbar .rotary-word,
.footer .rotary-word {
	margin: 0;
}

.topbar .wheel,
.footer .wheel {
	margin: 0;
}

.topbar .brand {
	gap: 0;
}

.topbar .brand .brand-rule {
	margin: 0 20px;
}

.topbar .brand-text > * + * {
	margin-block-start: 8px;
}

.brand-rule.wp-block-separator {
	width: 0;
	height: 66px;
	border: 0;
	border-left: 1px solid #a3b3c9;
	background: none;
	opacity: 1;
}

/*
 * Small screens: let the masthead wrap instead of running off the edge, and
 * give the full-width bands the same side margin as the rest of the page.
 */
@media (max-width: 900px) {
	.topbar .top-inner {
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px 18px;
	}

	.topbar .login {
		font-size: 11px;
	}

	.topbar:after {
		display: none;
	}

	.home .entry-content > .wp-block-group {
		padding-left: 22px;
		padding-right: 22px;
	}

	.home .wp-block-cover__inner-container {
		padding-left: 22px;
		padding-right: 22px;
	}

	.is-style-coastal-hero .hero-copy {
		max-width: none;
	}
}
