/* ==========================================================================
   MSSA theme styles
   Colors, fonts and sizes come from theme.json presets. The --mssa-* names
   below are short aliases for those presets so this file stays readable.
   ========================================================================== */

:root {
	--mssa-navy: var(--wp--preset--color--navy, #1C3041);
	--mssa-teal: var(--wp--preset--color--teal, #2B8B9A);
	--mssa-link: var(--wp--preset--color--link, #205564);
	--mssa-accent: var(--wp--preset--color--mfn-blue, #34C1D0);
	--mssa-light: var(--wp--preset--color--light-blue, #DCF1F8);
	--mssa-brown: var(--wp--preset--color--brown, #95684D);
	--mssa-purple: var(--wp--preset--color--purple, #773A96);
	--mssa-gray: var(--wp--preset--color--gray-bg, #F3F7F8);
	--mssa-gray-2: #E9F0F2;
	--mssa-line: var(--wp--preset--color--line, #E3E8EC);
	--mssa-muted: var(--wp--preset--color--muted, #4A5866);
	--mssa-head: var(--wp--preset--font-family--heading, Quicksand, sans-serif);
	--mssa-body: var(--wp--preset--font-family--body, "Source Sans 3", sans-serif);
	--mssa-radius-card: 12px;
	--mssa-radius-btn: 3px;
	--mssa-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48 Q720 -48 1440 48 Z' fill='black'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.wp-site-blocks {
	padding-top: 0;
	padding-bottom: 0;
}
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
main.wp-block-group,
.wp-block-group.mssa-main {
	margin-top: 0;
}

/* ==========================================================================
   Accessibility (WCAG 2.2 AA). Replaces the MFN Accessibility plugin's
   stylesheet under this theme; that plugin's markup fixes still run.
   ========================================================================== */

/* Focus outline: 3px MFN blue, 2px offset, on every link, button and input.
   MFN blue alone is 2.2:1 on white, below the 3:1 that WCAG 1.4.11 asks of a
   focus indicator, so the ring gets a thin navy edge (and a white gap) that
   keeps it visible on white, gray and navy backgrounds alike. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--mssa-accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 6px var(--mssa-navy);
}
*:focus-visible { outline-style: solid; }

/* Keep a focused element clear of the header when scrolled to. */
:target,
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
	scroll-margin-top: 120px;
	scroll-margin-bottom: 40px;
}

/* 2.5.8 Target size: at least 24 x 24px. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
select,
summary,
[role="button"],
.wp-block-button__link,
.wp-element-button {
	min-height: 24px;
	min-width: 24px;
}
input[type="checkbox"],
input[type="radio"] {
	min-height: 20px;
	min-width: 20px;
	margin: 2px;
}
.wp-block-social-link-anchor,
.wp-block-query-pagination a,
.wp-block-comments-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	min-width: 24px;
}
.wp-block-query-pagination.wp-block-query-pagination {
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 44px;
	min-width: 44px;
	margin: 0;
	padding: 0 16px;
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current {
	background-color: var(--mssa-navy);
	color: #fff;
}
.wp-block-query-pagination a:hover,
.wp-block-query-pagination a:focus {
	background-color: var(--mssa-gray);
	color: var(--mssa-link);
}

/* 1.4.10 Reflow: wide tables scroll inside their own box. */
.mfn-table-scroll,
.mssa-table-wrap,
.wp-block-table {
	overflow-x: auto;
	max-width: 100%;
}
.wp-block-button__link,
.wp-element-button {
	height: auto;
	overflow-wrap: break-word;
}

/* 2.3.3 Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.animated,
	.animated-fadeInUp {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Placeholder text at a readable contrast. */
::placeholder {
	color: #5f6b78;
	opacity: 1;
}

/* Markup added by the MFN Accessibility plugin. */
.mfn-sr-only {
	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;
}
.mfn-external-indicator { margin-left: 0.25em; }
p.mfn-saf-caption { font-weight: bold; }
.wp-block-post-excerpt__more-link { color: var(--mssa-link); }

/* Submit buttons from MemberPress and the comment form use the navy button. */
#wp-submit,
.wp-block-post-comments-form input[type="submit"],
.comment-form input[type="submit"],
input[type="submit"].mepr-submit,
input[type="submit"].mepr-share-button,
.mp-form-submit input[type="submit"],
input[type="submit"].button-primary {
	background-color: var(--mssa-navy);
	border: 2px solid var(--mssa-navy);
	color: #fff;
	cursor: pointer;
}
#wp-submit:hover,
.wp-block-post-comments-form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover,
input[type="submit"].mepr-submit:hover,
.mp-form-submit input[type="submit"]:hover,
input[type="submit"].button-primary:hover {
	background-color: var(--mssa-link);
	border-color: var(--mssa-link);
}

.screen-reader-text,
.mssa-sr {
	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;
}
.skip-link.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100000;
	background: #fff;
	color: var(--mssa-navy);
	padding: 12px 18px;
	top: 6px;
	left: 6px;
}

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-element-button {
	text-decoration: none;
}
.wp-block-button.is-style-mssa-join .wp-block-button__link {
	background: var(--mssa-purple);
	border-color: var(--mssa-purple);
	color: #fff;
}
.wp-block-button.is-style-mssa-join .wp-block-button__link:hover {
	filter: brightness(1.15);
	background: var(--mssa-purple);
	border-color: var(--mssa-purple);
}
.wp-block-button.is-style-mssa-outline .wp-block-button__link {
	background: transparent;
	color: var(--mssa-navy);
	border-color: var(--mssa-navy);
}
.wp-block-button.is-style-mssa-outline .wp-block-button__link:hover {
	background: var(--mssa-gray);
	color: var(--mssa-navy);
}
.has-navy-background-color .wp-block-button.is-style-mssa-outline .wp-block-button__link {
	color: #fff;
	border-color: #fff;
}
.has-navy-background-color .wp-block-button.is-style-mssa-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--mssa-navy);
}
.wp-block-button.is-style-mssa-accent .wp-block-button__link {
	background: var(--mssa-accent);
	border-color: var(--mssa-accent);
	color: var(--mssa-navy);
}
.wp-block-button.is-style-mssa-accent .wp-block-button__link:hover {
	background: var(--mssa-navy);
	border-color: var(--mssa-navy);
	color: #fff;
}

/* ---------- Links on dark backgrounds ---------- */
.has-navy-background-color a:where(:not(.wp-element-button)),
.has-teal-background-color a:where(:not(.wp-element-button)) {
	color: #fff;
}
.has-navy-background-color :where(h1, h2, h3, h4, h5, h6),
.has-teal-background-color :where(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

/* ---------- Block style: curved bottom edge on a Group ---------- */
.wp-block-group.is-style-mssa-curve-bottom {
	position: relative;
	padding-bottom: calc(var(--wp--preset--spacing--70) + 24px);
}
.wp-block-group.is-style-mssa-curve-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 24px;
	background: #fff;
	-webkit-mask: var(--mssa-curve) no-repeat center bottom / 100% 100%;
	mask: var(--mssa-curve) no-repeat center bottom / 100% 100%;
	pointer-events: none;
}

/* ---------- Block style: card panel ---------- */
.wp-block-group.is-style-mssa-card-panel {
	background: #fff;
	border: 1px solid var(--mssa-line);
	border-radius: var(--mssa-radius-card);
	padding: 28px 26px;
	box-shadow: 0 1px 2px rgba(28, 48, 65, .04);
}

/* ---------- Block style: testimonial ---------- */
.wp-block-quote.is-style-mssa-testimonial {
	margin: 0 auto;
	max-width: 860px;
	padding: 40px 44px;
	border: 0;
	border-radius: var(--mssa-radius-card);
	background: var(--mssa-gray);
	text-align: center;
}
.wp-block-quote.is-style-mssa-testimonial p {
	font-family: var(--mssa-head);
	font-weight: 500;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	line-height: 1.4;
	color: var(--mssa-navy);
	margin: 0 0 18px;
}
.wp-block-quote.is-style-mssa-testimonial p:first-of-type::before { content: "\201C"; }
.wp-block-quote.is-style-mssa-testimonial p:last-of-type::after { content: "\201D"; }
.wp-block-quote.is-style-mssa-testimonial cite {
	font-style: normal;
	font-size: 1.05rem;
	color: var(--mssa-muted);
}
.has-navy-background-color .wp-block-quote.is-style-mssa-testimonial {
	background: rgba(255, 255, 255, .06);
}
.has-navy-background-color .wp-block-quote.is-style-mssa-testimonial p { color: #fff; }
.has-navy-background-color .wp-block-quote.is-style-mssa-testimonial cite { color: #D5E6EA; }

/* Testimonial over a navy-dimmed photo cover (home "Feedback from our members"). */
.wp-block-cover.mssa-quote-cover {
	min-height: 0;
	padding: 96px 24px;
}
.mssa-quote-cover > .wp-block-cover__inner-container {
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
	color: #fff;
}
.mssa-quote-cover .mssa-kicker { color: #9FE3EA; }
.mssa-quote-cover .wp-block-quote.is-style-mssa-testimonial {
	max-width: none;
	padding: 0;
	background: transparent;
}
.mssa-quote-cover .wp-block-quote.is-style-mssa-testimonial p {
	margin-bottom: 20px;
	font-size: clamp(1.45rem, 2.6vw, 1.875rem);
	color: #fff;
}
.mssa-quote-cover .wp-block-quote.is-style-mssa-testimonial cite {
	font-size: 1.125rem;
	color: #D5E6EA;
}

/* ---------- Block style: tier comparison table ---------- */
.wp-block-table.is-style-mssa-tiers,
.wp-block-table.mssa-tiers {
	margin: 36px auto;
	max-width: 960px;
	overflow-x: auto;
}
.wp-block-table.is-style-mssa-tiers table,
.wp-block-table.mssa-tiers table {
	width: 100%;
	min-width: 560px;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(28, 48, 65, .08);
	font-size: 17px;
	line-height: 1.45;
}
.wp-block-table.is-style-mssa-tiers :is(th, td),
.wp-block-table.mssa-tiers :is(th, td) {
	padding: 16px 18px;
	border: 0;
	border-bottom: 1px solid var(--mssa-line);
	vertical-align: middle;
	text-align: center;
	color: var(--mssa-muted);
}
.wp-block-table.is-style-mssa-tiers thead,
.wp-block-table.mssa-tiers thead { border: 0; }
.wp-block-table.is-style-mssa-tiers thead th,
.wp-block-table.mssa-tiers thead th {
	background: var(--mssa-navy);
	color: #fff;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 20px;
	border-bottom: 0;
	border-right: 1px solid rgba(255, 255, 255, .15);
}
.wp-block-table.is-style-mssa-tiers thead th:last-child,
.wp-block-table.mssa-tiers thead th:last-child { border-right: 0; }
.wp-block-table.is-style-mssa-tiers :is(thead th, tbody td):first-child,
.wp-block-table.mssa-tiers :is(thead th, tbody td):first-child {
	width: 30%;
	text-align: left;
	font-weight: 700;
	color: var(--mssa-navy);
}
.wp-block-table.is-style-mssa-tiers thead th:first-child,
.wp-block-table.mssa-tiers thead th:first-child { color: #fff; }
.wp-block-table.is-style-mssa-tiers tbody tr:last-child td,
.wp-block-table.mssa-tiers tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-mssa-tiers tbody tr:nth-child(even) td,
.wp-block-table.mssa-tiers tbody tr:nth-child(even) td { background: #FAFCFD; }
.mssa-tier-tag {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--mssa-light);
	color: var(--mssa-navy);
	font-size: 14px;
	font-weight: 700;
}
.mssa-tier-tag-full { background: var(--mssa-accent); }
.mssa-yes,
.mssa-no {
	position: relative;
	display: inline-block;
	width: 1.6em;
	height: 1.6em;
	overflow: hidden;
	text-indent: 200%;
	white-space: nowrap;
	vertical-align: middle;
}
.mssa-yes::before,
.mssa-no::before {
	position: absolute;
	inset: 0;
	text-indent: 0;
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
}
.mssa-yes::before { content: "\2713"; color: #4C8A1F; }
.mssa-no::before { content: "\2014"; color: #9AA8B3; }
@media (max-width: 781px) {
	.wp-block-table.is-style-mssa-tiers table,
	.wp-block-table.mssa-tiers table { min-width: 0; font-size: 15px; }
	.wp-block-table.is-style-mssa-tiers :is(th, td),
	.wp-block-table.mssa-tiers :is(th, td) { padding: 12px 10px; }
	.wp-block-table.is-style-mssa-tiers thead th,
	.wp-block-table.mssa-tiers thead th { font-size: 17px; }
}

/* ---------- Block style: FAQ (Details) ---------- */
.wp-block-details.is-style-mssa-faq {
	border: 1px solid var(--mssa-line);
	border-radius: 10px;
	background: #fff;
	padding: 0;
	margin-block: 0 12px;
}
.wp-block-details.is-style-mssa-faq summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--mssa-navy);
	cursor: pointer;
	list-style: none;
}
.wp-block-details.is-style-mssa-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-mssa-faq summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem;
	line-height: 1;
	color: var(--mssa-teal);
}
.wp-block-details.is-style-mssa-faq[open] summary::after { content: "\2212"; }
.wp-block-details.is-style-mssa-faq[open] summary { border-bottom: 1px solid var(--mssa-line); }
.wp-block-details.is-style-mssa-faq > :not(summary) {
	margin: 0;
	padding: 16px 22px 18px;
	color: var(--mssa-muted);
}

/* ---------- Block style: partner logos (Gallery) ---------- */
.wp-block-gallery.is-style-mssa-logos {
	justify-content: center;
	align-items: center;
	gap: 32px 56px !important;
}
.wp-block-gallery.is-style-mssa-logos .wp-block-image {
	flex: 0 0 auto !important;
	width: auto !important;
	margin: 0 !important;
}
.wp-block-gallery.has-nested-images.is-style-mssa-logos figure.wp-block-image img {
	width: auto !important;
	max-width: 200px !important; /* beats core's figure.wp-block-image img { max-width: 100% !important } */
	max-height: 110px;
	height: auto !important;
	object-fit: contain !important;
}
@media (max-width: 781px) {
	.wp-block-gallery.is-style-mssa-logos { gap: 24px 32px !important; }
	.wp-block-gallery.has-nested-images.is-style-mssa-logos figure.wp-block-image img { max-width: 140px !important; max-height: 80px; }
}

/* ---------- Section pattern helpers ---------- */
.mssa-section {
	padding-top: var(--wp--preset--spacing--80);
	padding-bottom: var(--wp--preset--spacing--80);
}
.mssa-section-intro {
	max-width: 720px;
	color: var(--mssa-muted);
	font-size: 1.2rem;
}
.has-text-align-center.mssa-section-intro,
.mssa-section-intro.has-text-align-center { margin-left: auto; margin-right: auto; }
.has-navy-background-color .mssa-section-intro { color: #D5E6EA; }
.mssa-kicker {
	margin-bottom: 8px;
	font-family: var(--mssa-head);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mssa-link);
}
.has-navy-background-color .mssa-kicker { color: #9FE3EA; }

/* Card grid (core Group, grid layout): 4 > 2 > 1 columns, 3 > 2 > 1. */
.mssa-card-grid.is-layout-grid {
	gap: 24px;
}
@media (max-width: 980px) {
	.mssa-card-grid.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
	.mssa-card-grid.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.mssa-header,
.mssa-footer,
.mssa-landing,
.mssa-home {
	font-family: var(--mssa-body);
	color: var(--mssa-navy);
	line-height: 1.5;
}
.mssa-header *,
.mssa-header *::before,
.mssa-footer *,
.mssa-footer *::before {
	box-sizing: border-box;
}
.mssa-header :where(p, ul, ol, li, figure),
.mssa-footer :where(p, ul, ol, li, figure) {
	margin: 0;
}
.mssa-header > *,
.mssa-header .wp-block-group > *,
.mssa-footer > *,
.mssa-footer .wp-block-group > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

header.wp-block-template-part,
footer.wp-block-template-part {
	margin: 0;
}
.mssa-header {
	position: relative;
	z-index: 100;
	background: #fff;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

/* Utility bar */
.mssa-header .mssa-utility { background: var(--mssa-navy); }
.mssa-header .mssa-utility-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 26px;
	font-family: var(--mssa-head);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
}
.mssa-header .mssa-utility a {
	color: #fff;
	text-decoration: none;
}
.mssa-header .mssa-utility a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Language switcher (Polylang) */
.mssa-header .mssa-lang ul,
.mssa-header .mssa-lang .wp-block-polylang-language-switcher {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.mssa-header .mssa-lang li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}
.mssa-header .mssa-lang a {
	display: inline;
	padding: 0 !important;
	margin: 0;
}
.mssa-header .mssa-lang li + li::before {
	content: "|";
	color: #C9D6DC;
	opacity: .6;
	margin-right: 6px;
}
.mssa-header .mssa-lang .current-lang a {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.mssa-header .mssa-lang img { display: none; }

/* External link icon (header and footer) */
.mssa-header a[target="_blank"]::after,
.mssa-footer .mssa-footer-list a[target="_blank"]::after {
	content: "";
	display: inline-block;
	width: .72em;
	height: .72em;
	margin-left: .35em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.mssa-header .wp-block-button a[target="_blank"]::after { display: none; }
/* Keep the icon on the link's line so it doesn't push the text to a second line. */
.mssa-footer .mssa-footer-list a[target="_blank"] { white-space: nowrap; }

/* Main bar */
.mssa-header .mssa-mainbar {
	background: #fff;
	border-bottom: 1px solid var(--mssa-line);
}
.mssa-header .mssa-mainbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.mssa-header .mssa-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 auto;
	min-width: 0;
}
.mssa-header .mssa-logo,
.mssa-header .wp-block-site-logo {
	flex: none;
	margin: 0;
}
.mssa-header .wp-block-site-logo img {
	height: 58px;
	width: auto !important;
	max-width: none;
	display: block;
}
.mssa-header .mssa-site-name {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	text-wrap: balance;
}
.mssa-header .mssa-site-name::before {
	content: "";
	width: 1px;
	height: 50px;
	background: var(--mssa-navy);
	opacity: .4;
	flex: none;
}
.mssa-header .mssa-site-name a {
	color: var(--mssa-navy);
	text-decoration: none;
	white-space: nowrap;
}

/* Main menu */
.mssa-header .mssa-nav,
.mssa-header .mssa-mainbar-inner > .mssa-actions { flex: none; }
.mssa-header .mssa-nav-item > a { white-space: nowrap; }
.mssa-header .mssa-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 30px;
	font-family: var(--mssa-head);
	font-weight: 600;
	font-size: 17px;
}
.mssa-header .mssa-nav-item {
	display: flex;
	align-items: center;
	gap: 2px;
}
.mssa-header .mssa-nav-item > a {
	color: var(--mssa-navy);
	text-decoration: none;
	padding: 8px 0;
	border-bottom: 3px solid transparent;
}
.mssa-header .mssa-nav-item > a:hover,
.mssa-header .mssa-nav-item > a[aria-current="page"],
.mssa-header.mssa-mega-open .mssa-has-mega > a {
	color: var(--mssa-link);
	border-bottom-color: var(--mssa-accent);
}
.mssa-header .mssa-chev {
	background: none;
	border: 0;
	color: var(--mssa-navy);
	padding: 6px;
	margin: 0;
	cursor: pointer;
	display: flex;
	border-radius: 4px;
	line-height: 0;
}
.mssa-header .mssa-chev svg { transition: transform .2s; }
.mssa-header .mssa-chev[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Header and footer buttons */
.mssa-header .mssa-actions,
.mssa-footer .mssa-footer-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	margin: 0;
}
.mssa-header .mssa-actions .wp-block-button .wp-block-button__link,
.mssa-footer .mssa-footer-actions .wp-block-button .wp-block-button__link {
	display: inline-block;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 13px 22px;
	border-radius: var(--mssa-radius-btn);
	border: 2px solid transparent;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
}
.mssa-header .mssa-actions .wp-block-button .wp-block-button__link:hover,
.mssa-footer .mssa-footer-actions .wp-block-button .wp-block-button__link:hover {
	filter: brightness(1.15);
}
.mssa-header .mssa-actions .mssa-btn-login .wp-block-button__link {
	background: var(--mssa-navy);
	border-color: var(--mssa-navy);
	color: #fff;
}
.mssa-header .mssa-actions .mssa-btn-logout .wp-block-button__link {
	background: transparent;
	color: var(--mssa-navy);
	border-color: var(--mssa-navy);
}
.mssa-header .mssa-actions .mssa-btn-logout .wp-block-button__link:hover {
	background: var(--mssa-gray);
	filter: none;
}
.mssa-header .mssa-actions .mssa-btn-join .wp-block-button__link,
.mssa-footer .mssa-footer-actions .mssa-btn-donate .wp-block-button__link {
	background: var(--mssa-purple);
	border-color: var(--mssa-purple);
	color: #fff;
}

/* ---------- Mega menu ---------- */
.mssa-header .mssa-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-top: 1px solid var(--mssa-line);
	box-shadow: 0 18px 40px rgba(28, 48, 65, .14);
	display: none;
}
.mssa-header.mssa-mega-open .mssa-mega { display: block; }
.mssa-header .mssa-mega-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 24px 0;
}
.mssa-header .mssa-mega-cols {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 !important;
	margin: 0 !important;
}
.mssa-header .mssa-mega-col {
	flex-basis: auto !important;
	padding: 4px 26px 26px;
	border-left: 1px solid var(--mssa-line);
}
.mssa-header .mssa-mega-col:first-child {
	border-left: 0;
	padding-left: 0;
}
.mssa-header .mssa-mega-head {
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.2;
	margin-bottom: 6px;
}
.mssa-header .mssa-mega-head a {
	color: var(--mssa-navy);
	text-decoration: none;
}
.mssa-header .mssa-mega-head a::after {
	content: " \2192";
	color: var(--mssa-teal);
}
.mssa-header .mssa-mega-head a:hover { color: var(--mssa-link); }
.mssa-header .mssa-mega-desc {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--mssa-muted);
}
.mssa-header .mssa-mega-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.mssa-header .mssa-mega-links a {
	display: inline-flex;
	align-items: center;
	padding: 7px 10px;
	margin-left: -10px;
	border-radius: 6px;
	color: var(--mssa-navy);
	text-decoration: none;
	font-size: 17px;
}
.mssa-header .mssa-mega-links a:hover {
	background: var(--mssa-gray);
	color: var(--mssa-link);
}
.mssa-header .mssa-mega-links a[target="_blank"]::after { color: var(--mssa-teal); }
.mssa-header .mssa-mega-foot {
	background: var(--mssa-gray);
	margin-top: 4px;
}
.mssa-header .mssa-mega-foot-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 15px;
	color: var(--mssa-muted);
}
.mssa-header .mssa-mega-overview a {
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 16px;
	color: var(--mssa-link);
	text-decoration: none;
}
.mssa-header .mssa-mega-overview a::after { content: " \2192"; }
.mssa-header .mssa-mega-foot a:hover { text-decoration: underline; }
.mssa-header .mssa-mega-note a { color: var(--mssa-link); }

/* ---------- Mobile menu ---------- */
.mssa-header .mssa-burger {
	display: none;
	margin-left: auto;
	background: none;
	border: 2px solid var(--mssa-navy);
	border-radius: 4px;
	padding: 8px 10px;
	color: var(--mssa-navy);
	cursor: pointer;
	align-items: center;
	gap: 8px;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
}
.mssa-header .mssa-mobile-panel {
	border-top: 1px solid var(--mssa-line);
	background: #fff;
}
.mssa-header .mssa-mobile-panel[hidden] { display: none; }
.mssa-header .mssa-m-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mssa-header .mssa-m-list li { margin: 0; }
.mssa-header .mssa-m-row {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid var(--mssa-line);
}
.mssa-header .mssa-m-row > a {
	flex: 1;
	padding: 15px 24px;
	color: var(--mssa-navy);
	text-decoration: none;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 18px;
}
.mssa-header .mssa-m-toggle {
	flex: none;
	width: 58px;
	background: none;
	border: 0;
	border-left: 1px solid var(--mssa-line);
	color: var(--mssa-navy);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mssa-header .mssa-m-toggle svg { transition: transform .2s; }
.mssa-header .mssa-m-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mssa-header .mssa-m-sub {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--mssa-gray);
}
.mssa-header .mssa-m-sub[hidden] { display: none; }
.mssa-header .mssa-m-sub .mssa-m-row > a {
	padding-left: 40px;
	font-size: 17px;
}
.mssa-header .mssa-m-sub2 { background: var(--mssa-gray-2); }
.mssa-header .mssa-m-sub2 a {
	display: block;
	padding: 12px 24px 12px 58px;
	border-bottom: 1px solid var(--mssa-line);
	color: var(--mssa-navy);
	text-decoration: none;
	font-size: 17px;
}
.mssa-header .mssa-actions.mssa-m-actions {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 10px;
	padding: 20px 24px;
}
.mssa-header .mssa-m-actions .wp-block-button,
.mssa-header .mssa-m-actions .wp-block-button__link {
	width: 100%;
	text-align: center;
}
.mssa-header .mssa-m-utility {
	background: var(--mssa-navy);
	padding: 16px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 22px;
	font-family: var(--mssa-head);
	font-weight: 600;
	font-size: 15px;
}
.mssa-header .mssa-m-utility a {
	color: #fff;
	text-decoration: none;
}

@media (max-width: 1100px) {
	.mssa-header .mssa-site-name { font-size: 19px; }
	.mssa-header .mssa-nav { gap: 22px; }
	.mssa-header .mssa-actions .wp-block-button .wp-block-button__link {
		padding: 12px 16px;
		font-size: 15px;
	}
}

/* Mobile layout only once the script has built the mobile menu */
@media (max-width: 980px) {
	.mssa-header.mssa-js .mssa-utility,
	.mssa-header.mssa-js .mssa-mainbar-inner > .mssa-nav,
	.mssa-header.mssa-js .mssa-mainbar-inner > .mssa-actions,
	.mssa-header.mssa-js .mssa-mega { display: none !important; }
	.mssa-header.mssa-js .mssa-burger { display: inline-flex; }
	.mssa-header .wp-block-site-logo img { height: 48px; }
	.mssa-header .mssa-site-name::before { height: 40px; }
	.mssa-header .mssa-mainbar-inner { padding: 12px 16px; }
}
@media (min-width: 981px) {
	.mssa-header .mssa-mobile-panel { display: none !important; }
}
/* Spanish labels are longer: use the mobile menu up to 1180px */
@media (min-width: 981px) and (max-width: 1180px) {
	html[lang^="es"] .mssa-header.mssa-js .mssa-utility,
	html[lang^="es"] .mssa-header.mssa-js .mssa-mainbar-inner > .mssa-nav,
	html[lang^="es"] .mssa-header.mssa-js .mssa-mainbar-inner > .mssa-actions,
	html[lang^="es"] .mssa-header.mssa-js .mssa-mega { display: none !important; }
	html[lang^="es"] .mssa-header.mssa-js .mssa-burger { display: inline-flex; }
	html[lang^="es"] .mssa-header .mssa-mobile-panel:not([hidden]) { display: block !important; }
}
@media (max-width: 600px) {
	.mssa-header .mssa-mainbar-inner { gap: 10px; }
	.mssa-header .mssa-brand { gap: 8px; }
	.mssa-header .wp-block-site-logo img { height: 36px; }
	.mssa-header .mssa-site-name {
		font-size: 15px;
		gap: 8px;
	}
	.mssa-header .mssa-site-name a { white-space: normal; }
	.mssa-header .mssa-site-name::before { height: 32px; }
	.mssa-header .mssa-burger { padding: 8px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mssa-footer {
	background: var(--mssa-navy);
	color: #fff;
	margin-top: 0 !important;
	padding: 0 !important;
}
.mssa-footer .mssa-footer-band {
	position: relative;
	height: 56px;
	background: var(--mssa-brown);
}
.mssa-footer .mssa-footer-band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 26px;
	background: var(--mssa-navy);
	-webkit-mask: var(--mssa-curve) no-repeat center bottom / 100% 100%;
	mask: var(--mssa-curve) no-repeat center bottom / 100% 100%;
}
.mssa-footer .mssa-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}
.mssa-footer .mssa-seal {
	flex: 0 1 220px;
	margin: 0;
}
.mssa-footer .mssa-seal img {
	width: 220px;
	max-width: 100%;
	height: auto;
	display: block;
}
.mssa-footer .mssa-footer-about { flex: 2 1 280px; }
.mssa-footer .mssa-footer-links { flex: 1 1 180px; }
.mssa-footer .mssa-footer-contact { flex: 1.7 1 290px; }
.mssa-footer .mssa-footer-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 18px;
	line-height: 1.55;
}
.mssa-footer .mssa-footer-about p:not(.mssa-footer-title) {
	font-family: var(--mssa-head);
	font-weight: 500;
}
.mssa-footer .mssa-footer-title {
	font-family: var(--mssa-head);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.15;
	margin: 0 0 6px;
	color: #fff;
}
.mssa-footer a {
	color: #fff;
	text-decoration: none;
}
.mssa-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.mssa-footer .mssa-footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.mssa-footer .mssa-social {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin-top: 10px;
	gap: 22px;
}
.mssa-footer .mssa-social .wp-social-link {
	color: #fff;
	background: none;
}
.mssa-footer .mssa-social .wp-social-link svg {
	width: 24px;
	height: 24px;
}
.mssa-footer .mssa-ico {
	display: flex;
	gap: 12px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.mssa-footer .mssa-ico::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 3px;
	background: var(--mssa-accent);
	-webkit-mask: var(--mssa-ico) no-repeat center / contain;
	mask: var(--mssa-ico) no-repeat center / contain;
}
.mssa-footer .mssa-ico-pin { --mssa-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.mssa-footer .mssa-ico-phone { --mssa-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.6 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.mssa-footer .mssa-ico-mail { --mssa-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v.4l-10 6.2L2 6.4V6a1 1 0 0 1 1-1zm-1 3.7V18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.7l-10 6.2z'/%3E%3C/svg%3E"); }
.mssa-footer .mssa-footer-actions { margin-top: 14px; }
.mssa-footer .mssa-footer-actions .mssa-btn-donate .wp-block-button__link {
	font-size: 20px;
	padding: 12px 30px;
}
.mssa-footer .mssa-funder {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 28px;
	font-size: 16px;
	color: #D5E6EA;
}
.mssa-footer .mssa-copyright-bar {
	background: var(--mssa-accent);
	color: var(--mssa-navy);
}
.mssa-footer .mssa-copyright {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
	text-align: center;
	font-size: 17px;
}
.mssa-footer .mssa-copyright a {
	color: var(--mssa-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.mssa-footer .mssa-sep {
	margin: 0 8px;
	opacity: .7;
}
@media (max-width: 600px) {
	.mssa-footer .mssa-footer-inner { padding: 44px 16px 32px; }
	.mssa-footer .mssa-seal { flex-basis: 100%; }
	.mssa-footer .mssa-seal img { width: 180px; }
	.mssa-footer .mssa-copyright { font-size: 15px; padding: 14px 16px; }
	.mssa-footer .mssa-funder { padding: 0 16px 24px; }
}

/* ==========================================================================
   Page title band (navy-to-teal with a white arc), used by templates.
   ========================================================================== */
.mssa-title-band {
	--mssa-band-side: max(24px, calc((100% - 1200px) / 2));
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	min-height: 186px !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 46px var(--mssa-band-side) 83px !important;
	background: var(--mssa-navy) !important;
	color: #fff !important;
}
.mssa-title-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, var(--mssa-navy) 31%, var(--mssa-teal) 100%);
	pointer-events: none;
}
.mssa-title-band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 36px;
	z-index: -1;
	background: #fff;
	-webkit-mask: var(--mssa-curve) no-repeat center bottom / 100% 100%;
	mask: var(--mssa-curve) no-repeat center bottom / 100% 100%;
	pointer-events: none;
}
.wp-block-cover.mssa-title-band {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.wp-block-cover.mssa-title-band > .wp-block-cover__background,
.wp-block-cover.mssa-title-band > .wp-block-cover__image-background,
.wp-block-cover.mssa-title-band > .wp-block-cover__video-background {
	display: none !important;
}
.wp-block-cover.mssa-title-band > .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1200px;
	margin: 0;
	color: #fff;
}
.wp-block-cover.mssa-title-band > .wp-block-cover__inner-container > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
h1.mssa-title-band,
.wp-block-post-title.mssa-title-band,
.mssa-title-band .wp-block-post-title,
.mssa-title-band .wp-block-query-title {
	font-family: var(--mssa-head) !important;
	font-weight: 700 !important;
	font-size: clamp(2.25rem, 4.5vw, 3.25rem) !important;
	line-height: 1.2 !important;
	letter-spacing: 0;
	text-align: left !important;
	color: #fff !important;
	text-wrap: balance;
}
.mssa-title-band .wp-block-post-title,
.mssa-title-band .wp-block-query-title {
	max-width: none !important;
	margin: 0 !important;
}
.mssa-title-band .wp-block-post-title a { color: inherit !important; }
.wp-block-group.mssa-title-band {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.wp-block-group.mssa-title-band > * {
	max-width: 1200px;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
/* The Events Calendar: the band is the page heading. */
body:has(.mssa-title-band) .tribe-events-single-event-title,
body:has(.mssa-title-band) .tec-a11y-title-hidden {
	display: none !important;
}
@media (max-width: 781px) {
	.mssa-title-band {
		min-height: 140px !important;
		padding: 32px 20px 62px !important;
	}
	.mssa-title-band::after { height: 24px; }
}

/* Full-width sections and dividers stack edge to edge. */
.wp-block-post-content > .alignfull + .alignfull,
.wp-block-post-content > .alignfull + .wp-block-mssa-visibility,
.wp-block-mssa-visibility > .alignfull + .alignfull {
	margin-block-start: 0;
}
.wp-block-mssa-visibility.alignfull > :first-child { margin-block-start: 0; }
/* A full-width Visibility block keeps the page gutter for its normal content;
   full-width blocks inside it (hero, sections) still run edge to edge. */
.wp-block-mssa-visibility.alignfull {
	padding-left: var(--wp--style--root--padding-left, 24px);
	padding-right: var(--wp--style--root--padding-right, 24px);
}
.wp-block-mssa-visibility.alignfull > :not(.alignfull) {
	max-width: var(--wp--style--global--content-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}
.wp-block-mssa-visibility.alignfull > .alignfull {
	margin-left: calc(-1 * var(--wp--style--root--padding-left, 24px)) !important;
	margin-right: calc(-1 * var(--wp--style--root--padding-right, 24px)) !important;
	max-width: none;
	width: auto;
}
.mssa-help {
	margin-top: var(--wp--preset--spacing--60);
	color: var(--mssa-muted);
}
.mssa-help a { font-weight: 600; }
.mssa-lead-strong {
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.4;
}

/* Main content area under the title band */
.mssa-content {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--80);
}
.mssa-content > .wp-block-post-content > :first-child { margin-top: 0; }
/* Pages that start with a Page Hero: the hero sits flush under the header. */
.mssa-content:has(> .wp-block-post-content > .wp-block-mssa-page-hero:first-child) { padding-top: 0; }
.mssa-content > .wp-block-post-content > .alignfull:last-child { margin-bottom: calc(-1 * var(--wp--preset--spacing--80)); }

/* Shared Services Wizard: the wizard list ([shared_services_wizards]) and the
   single wizards fill the full-width content area. The plugin caps the list
   at the wide size, left-aligned, and repeats the "Wizards" heading that the
   Page Hero already shows. */
.mssa-content--full .ssw-wizards-wrapper { max-width: none; }
.wp-block-post-content:has(> .wp-block-mssa-page-hero) .ssw_wizards_header { display: none; }
.mssa-content--wizard .wizard-container { width: 100%; }

/* ==========================================================================
   Landing layouts carried over from the October 2026 redesign (.mssa-landing).
   Kept so pages built with them keep their look.
   ========================================================================== */
.mssa-landing {
	box-sizing: border-box;
	width: 100%;
	max-width: 1040px !important;
	margin: 8px auto 32px !important;
}
.mssa-landing *,
.mssa-landing *::before,
.mssa-landing *::after { box-sizing: border-box; }
.mssa-landing .mssa-lede {
	max-width: 720px;
	margin: 0 0 32px !important;
	font-size: 21px;
	line-height: 1.55;
	color: var(--mssa-muted);
}
.mssa-landing .mssa-cards {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 24px;
	margin: 0 !important;
	max-width: none !important;
}
@media (min-width: 700px) {
	.mssa-landing .mssa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
	.mssa-landing .mssa-cards.mssa-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mssa-landing .mssa-card {
	position: relative;
	display: flex !important;
	flex-direction: column;
	gap: 0;
	margin: 0 !important;
	max-width: none !important;
	padding: 28px 26px 26px !important;
	background: #fff;
	border: 1px solid var(--mssa-line);
	border-top: 5px solid var(--mssa-accent);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(28, 48, 65, .04);
	transition: box-shadow .2s, transform .2s;
}
.mssa-landing .mssa-card:nth-child(4n+2) { border-top-color: var(--mssa-teal); }
.mssa-landing .mssa-card:nth-child(4n+3) { border-top-color: var(--mssa-purple); }
.mssa-landing .mssa-card:nth-child(4n+4) { border-top-color: var(--mssa-brown); }
.mssa-landing .mssa-card:hover,
.mssa-landing .mssa-card:focus-within {
	box-shadow: 0 10px 28px rgba(28, 48, 65, .12);
	transform: translateY(-2px);
}
.mssa-landing .mssa-card-title {
	margin: 0 0 10px !important;
	font-family: var(--mssa-head) !important;
	font-weight: 700 !important;
	font-size: 24px !important;
	line-height: 1.25 !important;
	color: var(--mssa-navy) !important;
}
.mssa-landing .mssa-card-text {
	margin: 0 0 24px !important;
	font-size: 17px;
	line-height: 1.55;
	color: var(--mssa-muted);
}
.mssa-landing .mssa-card-actions {
	margin: auto 0 0 !important;
	padding-top: 4px;
	gap: 10px;
}
.mssa-landing .mssa-card-actions .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: 2px solid var(--mssa-navy);
	border-radius: 999px;
	background: var(--mssa-navy) !important;
	color: #fff !important;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.mssa-landing .mssa-card-actions .wp-block-button__link::after {
	content: "\2192";
	font-family: var(--mssa-body);
	transition: transform .15s;
}
.mssa-landing .mssa-card-actions .wp-block-button__link[target="_blank"]::after { content: "\2197"; }
.mssa-landing .mssa-card-actions .wp-block-button__link:hover,
.mssa-landing .mssa-card-actions .wp-block-button__link:focus-visible {
	background: #fff !important;
	color: var(--mssa-navy) !important;
}
.mssa-landing .mssa-card-actions .wp-block-button__link:hover::after { transform: translateX(3px); }
.mssa-landing .mssa-landing-help {
	margin: 36px 0 0 !important;
	font-size: 17px;
	color: var(--mssa-muted);
}
.mssa-landing .mssa-landing-help a { color: var(--mssa-link); font-weight: 600; }
@media (max-width: 781px) {
	.mssa-landing { margin-top: 0 !important; }
	.mssa-landing .mssa-lede { font-size: 19px; margin-bottom: 24px !important; }
	.mssa-landing .mssa-card { padding: 24px 20px 22px !important; }
	.mssa-landing .mssa-card-title { font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.mssa-landing .mssa-card,
	.mssa-landing .mssa-card-actions .wp-block-button__link,
	.mssa-landing .mssa-card-actions .wp-block-button__link::after { transition: none; }
	.mssa-landing .mssa-card:hover,
	.mssa-landing .mssa-card:focus-within { transform: none; }
}

/* Member Services area cards (round photo over the top edge) */
.mssa-landing .mssa-greeting {
	margin: 0 0 6px !important;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 26px;
	line-height: 1.3;
}
.mssa-landing .mssa-greeting .mssa-greeting-name { color: var(--mssa-teal); }
.mssa-landing .mssa-areas,
.mssa-areas {
	display: grid !important;
	grid-template-columns: 1fr;
	column-gap: 28px;
	row-gap: 104px;
	margin: 112px 0 0 !important;
	max-width: none !important;
}
@media (min-width: 700px) {
	.mssa-landing .mssa-areas,
	.mssa-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mssa-area {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	margin: 0 !important;
	max-width: none !important;
	padding: 0 30px 32px !important;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 7px 18px rgba(28, 48, 65, .16);
	text-align: center;
}
.mssa-area .mssa-area-photo {
	width: 168px;
	height: 168px;
	margin: -84px auto 20px !important;
	flex: none;
}
.mssa-area .mssa-area-photo img {
	width: 168px !important;
	height: 168px !important;
	object-fit: cover;
	border-radius: 50%;
	border: 7px solid #fff;
	box-shadow: 0 3px 10px rgba(28, 48, 65, .15);
}
.mssa-area .mssa-area-title {
	margin: 0 0 10px !important;
	font-family: var(--mssa-head) !important;
	font-weight: 700 !important;
	font-size: 28px !important;
	line-height: 1.2 !important;
	color: var(--mssa-navy) !important;
	text-align: center !important;
}
.mssa-area .mssa-area-text {
	margin: 0 0 16px !important;
	font-size: 17px;
	line-height: 1.55;
	color: var(--mssa-muted);
}
.mssa-area .mssa-area-links {
	list-style: none;
	margin: 0 0 24px !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 10px;
}
.mssa-area .mssa-area-links li { margin: 0; padding: 0; }
.mssa-area .mssa-area-links a {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--mssa-light);
	color: var(--mssa-link);
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
}
.mssa-area .mssa-area-links a:hover,
.mssa-area .mssa-area-links a:focus-visible {
	background: var(--mssa-navy);
	color: #fff;
}
.mssa-area .mssa-area-actions {
	margin: auto 0 0 !important;
	justify-content: center;
}
.mssa-area .mssa-area-actions .wp-block-button__link {
	display: inline-block;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--mssa-radius-btn);
	background: var(--mssa-accent) !important;
	color: var(--mssa-navy) !important;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 17px;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.mssa-area .mssa-area-actions .wp-block-button__link:hover,
.mssa-area .mssa-area-actions .wp-block-button__link:focus-visible {
	background: var(--mssa-navy) !important;
	color: #fff !important;
}

/* Member panels */
.mssa-panels {
	display: flex !important;
	flex-wrap: wrap;
	gap: 24px;
	margin: 56px 0 0 !important;
	max-width: none !important;
}
.mssa-panels:first-child { margin-top: 8px !important; }
.mssa-panel {
	flex: 1 1 320px;
	margin: 0 !important;
	max-width: none !important;
	padding: 28px 30px !important;
	background: var(--mssa-gray);
	border-radius: 12px;
}
.mssa-panel-navy {
	background: var(--mssa-navy);
	color: #fff;
}
.mssa-panel-login { background: #fff; border: 1px solid var(--mssa-line); }
.mssa-panel .mssa-panel-eyebrow {
	margin: 0 0 6px !important;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mssa-link);
}
.mssa-panel-navy .mssa-panel-eyebrow { color: #9FE3EA; }
.mssa-panel .mssa-panel-title {
	margin: 0 0 8px !important;
	font-family: var(--mssa-head) !important;
	font-weight: 700 !important;
	font-size: 24px !important;
	line-height: 1.25 !important;
	color: var(--mssa-navy) !important;
}
.mssa-panel-navy .mssa-panel-title { color: #fff !important; }
.mssa-panel .mssa-panel-text {
	margin: 0 0 18px !important;
	font-size: 17px;
	color: var(--mssa-muted);
}
.mssa-panel-navy .mssa-panel-text,
.mssa-panel-navy p { color: #D5E6EA; }
.mssa-panel-navy a:where(:not(.wp-block-button__link)) { color: #fff; }
.mssa-panel .mssa-card-actions .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: 2px solid var(--mssa-navy);
	border-radius: 999px;
	background: var(--mssa-navy) !important;
	color: #fff !important;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
}
.mssa-panel .mssa-card-actions .wp-block-button__link::after { content: "\2192"; }
.mssa-panel .mssa-card-actions .wp-block-button__link[target="_blank"]::after { content: "\2197"; }
.mssa-panel .mssa-card-actions .wp-block-button__link:hover,
.mssa-panel .mssa-card-actions .wp-block-button__link:focus-visible {
	background: #fff !important;
	color: var(--mssa-navy) !important;
}
.mssa-panel-navy .mssa-card-actions .wp-block-button__link {
	background: var(--mssa-purple) !important;
	border-color: var(--mssa-purple);
}
.mssa-section-title {
	margin: 64px 0 0 !important;
	font-family: var(--mssa-head) !important;
	font-weight: 700 !important;
	font-size: 32px !important;
	line-height: 1.2 !important;
	color: var(--mssa-navy) !important;
}
.mssa-section-title + .mssa-areas { margin-top: 104px !important; }
.mssa-link-list,
.mssa-link-list .wp-block-post-template {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.mssa-link-list .wp-block-post-template li {
	margin: 0 !important;
	padding: 12px 0 !important;
	border-top: 1px solid var(--mssa-line);
}
.mssa-link-list .wp-block-post-title {
	margin: 0 !important;
	font-family: var(--mssa-head) !important;
	font-weight: 700 !important;
	font-size: 17px !important;
	line-height: 1.35 !important;
}
.mssa-link-list .wp-block-post-title a {
	color: var(--mssa-link) !important;
	text-decoration: none;
}
.mssa-link-list .wp-block-post-title a::after { content: " \2192"; }

/* MemberPress login form inside a panel */
.mssa-panel .mp_wrapper { margin: 0; }
.mssa-panel .mp-form-row { margin: 0 0 14px; }
.mssa-panel .mp_wrapper label {
	display: block;
	margin: 0 0 4px;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 15px;
	color: var(--mssa-navy);
}
.mssa-panel .mp_wrapper input[type="text"],
.mssa-panel .mp_wrapper input[type="password"],
.mssa-panel .mp_wrapper input[type="email"] {
	box-sizing: border-box;
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #C9D3DA;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 17px;
	color: var(--mssa-navy);
}
.mssa-panel .mp_wrapper .mp-hide-pw { position: relative; display: block; }
.mssa-panel .mp_wrapper .mp-hide-pw button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	padding: 4px 6px;
	border: 0;
	background: none;
	color: var(--mssa-muted);
	cursor: pointer;
}
.mssa-panel .mp_wrapper .mp-spacer { display: none; }
.mssa-panel .mp_wrapper input[type="submit"] {
	padding: 12px 28px;
	border: 2px solid var(--mssa-navy);
	border-radius: 999px;
	background: var(--mssa-navy);
	color: #fff;
	font-family: var(--mssa-head);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.mssa-panel .mp_wrapper input[type="submit"]:hover {
	background: #fff;
	color: var(--mssa-navy);
}
.mssa-panel .mepr-login-actions { margin-top: 14px; font-size: 15px; }
.mssa-panel .mepr-login-actions a { color: var(--mssa-link); font-weight: 600; }

@media (max-width: 781px) {
	.mssa-landing .mssa-greeting { font-size: 22px; }
	.mssa-area { padding: 0 20px 26px !important; }
	.mssa-area .mssa-area-title { font-size: 24px !important; }
	.mssa-panel { padding: 24px 22px !important; }
}

/* ==========================================================================
   Home page sections (oval photo split, navy band)
   ========================================================================== */
.mssa-home-split {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
	padding: 48px 40px !important;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(28, 48, 65, .14);
}
@media (min-width: 900px) {
	.mssa-home-split { grid-template-columns: 5fr 7fr; gap: 56px; padding: 56px !important; }
}
.mssa-home-split.mssa-overlap { margin-top: -70px !important; position: relative; z-index: 2; }
.mssa-home-oval { margin: 0 !important; }
.mssa-home-oval img {
	display: block;
	width: 100% !important;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 50%;
}
@media (max-width: 781px) {
	.mssa-home-split { padding: 32px 22px !important; }
	.mssa-home-split.mssa-overlap { margin-top: -40px !important; }
	.mssa-home-oval { max-width: 300px; margin: 0 auto !important; }
}

/* Front page rhythm: 1072px content column, 88px section padding, larger
   kickers and body copy, as on the original home page. */
body.home .mssa-section,
body.home .mssa-quote-cover {
	--wp--style--global--content-size: 1072px;
	--wp--style--global--wide-size: 1072px;
}
body.home .mssa-section { padding-top: 88px; padding-bottom: 88px; }
body.home .mssa-section h2 { margin-bottom: 20px; line-height: 1.15; }
body.home .mssa-kicker {
	margin-bottom: 10px;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.5;
}
body.home .mssa-section:not(.has-navy-background-color) .mssa-kicker { color: var(--mssa-teal); }
body.home .mssa-kicker + * { margin-top: 0; }
body.home .mssa-home-split > * { margin-top: 0; }
body.home .mssa-home-split p:not(.mssa-kicker):not(.mssa-lead-strong) {
	margin: 0 0 16px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--mssa-muted);
}
body.home .mssa-home-split .mssa-lead-strong {
	margin-top: 0;
	margin-bottom: 28px;
	font-size: 21px;
}
body.home .mssa-section .wp-block-button__link {
	padding: 14px 28px;
	font-size: 17px;
	line-height: 1.2;
	letter-spacing: .04em;
}
body.home .mssa-section:has(.mssa-home-split) { padding-bottom: 48px; }
/* Navy band under the half-ellipse divider: 64px curve + 56px = 120px. */
body.home .mssa-section.has-navy-background-color { padding-top: 56px; padding-bottom: 96px; }
body.home .mssa-section.has-navy-background-color .mssa-card-grid { margin-top: 44px; }
body.home .mssa-service-card__title { font-size: 24px; line-height: 1.25; }
body.home .mssa-service-card__link { padding: 11px 22px; letter-spacing: .04em; }
body.home .mssa-quote-cover .wp-block-quote.is-style-mssa-testimonial p { margin-bottom: 0; }
body.home .mssa-quote-cover .wp-block-quote.is-style-mssa-testimonial cite {
	display: block;
	margin-top: 32px;
	line-height: 1.5;
}
body.home .is-style-mssa-logos { margin-top: 40px; }
@media (max-width: 781px) {
	body.home .mssa-section { padding-top: 64px; padding-bottom: 64px; }
	body.home .mssa-section.has-navy-background-color { padding-top: 60px; padding-bottom: 64px; }
	body.home .mssa-kicker { font-size: 15px; letter-spacing: .1em; }
	body.home .mssa-home-split p:not(.mssa-kicker):not(.mssa-lead-strong) { font-size: 17px; }
	/* On phones the card sits just below the hero rather than overlapping it. */
	body.home .mssa-home-split.mssa-overlap { margin-top: 4px !important; }
	body.home .mssa-section .wp-block-button__link { padding: 12px 20px; font-size: 15px; }
}

/* Full-width groups nested in a column (Resource Library grid) can't bleed,
   so the root padding only insets the grid from the column edge. */
.wp-block-column .alignfull.has-global-padding {
	padding-left: 0;
	padding-right: 0;
}

/* ==========================================================================
   Third-party plugin output in the new tokens
   ========================================================================== */
/* Search & Filter (Resource Library, Vendor Library sidebars) */
.searchandfilter {
	margin: 0 20px 8px;
}
.searchandfilter ul,
.searchandfilter li {
	display: block; /* the plugin's style.css sets inline-block, which runs fields together in the sidebar */
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
}
.searchandfilter h4 {
	font-family: var(--mssa-head);
	font-size: 1.1rem;
	margin: 12px 0 6px;
}
.searchandfilter input[type="text"],
.searchandfilter input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #C9D3DA;
	border-radius: 6px;
	font: inherit;
}
.searchandfilter input[type="submit"] {
	background-color: var(--mssa-navy);
	color: #fff;
	border: 0;
	border-radius: var(--mssa-radius-btn);
	padding: 10px 20px;
	font-family: var(--mssa-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	cursor: pointer;
}
.searchandfilter li:last-child { text-align: center; }

/* The Events Calendar */
:root {
	--tec-color-accent-primary: var(--mssa-teal);
	--tec-color-accent-primary-hover: var(--mssa-link);
	--tec-color-accent-primary-active: var(--mssa-link);
	--tec-color-button-primary: var(--mssa-navy);
	--tec-color-button-primary-hover: var(--mssa-link);
	--tec-color-link-accent: var(--mssa-link);
	--tec-color-text-primary: var(--mssa-navy);
	--tec-color-text-secondary: var(--mssa-muted);
	--tec-color-border-default: var(--mssa-line);
	--tec-color-background-events: var(--mssa-gray);
	--tec-font-family-sans-serif: var(--mssa-body);
}
.tribe-common .tribe-common-h1,
.tribe-common .tribe-common-h2,
.tribe-common .tribe-common-h3,
.tribe-common .tribe-common-h4,
.tribe-common .tribe-common-h5,
.tribe-common .tribe-common-h6 {
	font-family: var(--mssa-head);
	color: var(--mssa-navy);
}
.tribe-common .tribe-common-c-btn,
.tribe-common a.tribe-common-c-btn {
	border-radius: var(--mssa-radius-btn);
	font-family: var(--mssa-head);
	text-transform: uppercase;
	letter-spacing: .03em;
}
.tribe-events-single,
.tribe-events-pg-template,
.tribe-events-view {
	font-family: var(--mssa-body);
}

/* MemberPress Courses (classroom inside the site header and footer) */
body .mssa-footer a { color: #fff; }
body .mssa-footer .mssa-copyright a { color: var(--mssa-navy); }
.mssa-courses {
	overflow-x: clip;
	font-family: var(--mssa-body);
}
.mssa-courses .entry,
.mssa-courses .entry-content {
	box-sizing: border-box;
	width: auto;
	max-width: 1280px;
	margin-left: auto !important;
	margin-right: auto !important;
}
.mssa-courses .entry-content { padding: 40px 24px 64px; }
.mssa-courses .container {
	box-sizing: border-box;
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}
.post-type-archive-mpcs-course .mssa-courses .container {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px !important;
	padding-right: 24px !important;
}
.mssa-courses :is(h1, h2, h3, h4) { font-family: var(--mssa-head); color: var(--mssa-navy); }
.mssa-courses a:where(:not(.btn):not(.wp-block-button__link)) { color: var(--mssa-link); }
/* Classroom header: the MemberPress Classroom Logo (see functions.php). */
.readylaunch-headerContainer .mssa-classroom-logo { display: block; line-height: 0; }
.readylaunch-headerContainer .mssa-classroom-logo img { display: block; width: auto; height: 30px; }

/* MemberPress account and login pages */
.mp_wrapper input[type="text"],
.mp_wrapper input[type="email"],
.mp_wrapper input[type="password"],
.mp_wrapper select,
.mp_wrapper textarea {
	border: 1.5px solid #C9D3DA;
	border-radius: 6px;
	font: inherit;
}
.mp_wrapper input[type="submit"],
.mepr-submit {
	background: var(--mssa-navy);
	color: #fff;
	border: 2px solid var(--mssa-navy);
	border-radius: var(--mssa-radius-btn);
	font-family: var(--mssa-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	cursor: pointer;
}

/* ---------- Home: navy dome that rises into the hero photo (moved from Site Editor > Styles > CSS) ---------- */
.wp-block-mssa-section-divider.mssa-divider-overlap {
	position: relative;
	z-index: 2;
	margin-top: -64px !important;
	background: transparent !important;
}
/* Extra room at the bottom of the hero so the dome doesn't cover the buttons */
.mssa-hero:has(+ .mssa-divider-overlap) .mssa-hero__inner {
	padding-bottom: clamp(110px, 12vw, 150px);
}
@media (max-width: 781px) {
	.wp-block-mssa-section-divider.mssa-divider-overlap {
		margin-top: -36px !important;
	}
}

/* ---------- About: "Join the Alliance" card (moved from Site Editor > Styles > CSS and Additional CSS) ---------- */
.mssa-join-card {
	max-width: 960px;
	margin: 0 auto !important;
	padding: 56px 48px 52px !important;
	background: var(--wp--preset--color--light-blue);
	border-radius: 14px;
	border-top: 6px solid var(--wp--preset--color--purple);
	text-align: center;
}
.mssa-join-card .mssa-kicker { color: var(--wp--preset--color--purple); }
.mssa-join-card .mssa-section-intro {
	max-width: 640px;
	margin: 0 auto 28px;
	color: var(--wp--preset--color--navy);
}
.mssa-join-card .wp-block-buttons { justify-content: center; }
@media (max-width: 781px) {
	.mssa-join-card { padding: 40px 22px 36px !important; }
}
