/*
 * WCAS night-sky theme.
 *
 * Colours and fonts come from theme.json (var(--wp--preset--...)). The values in
 * :root below are the few in-between shades of the design that are not offered to
 * editors as palette colours.
 */

:root {
	--wcas-gutter: 24px;
	--wcas-wide: 1120px;
	--wcas-header-h: 122px;
	--wcas-navy-3: #1d3163;
	--wcas-gold-soft: #f7d27a;
	/* Deep gold darkened enough to read as small text on paper and white (5.4:1). */
	--wcas-gold-text: #86601a;
	--wcas-on-navy: #c9d2e6;
	--wcas-on-navy-soft: #9fabc6;
	--wcas-nav-link: #e6eaf3;
	--wcas-radius: 5.28px;
	--wcas-focus: 0 0 0 3px var(--wp--preset--color--gold);
}

@media (max-width: 781px) {
	:root {
		--wcas-gutter: 16px;
		--wcas-header-h: 92px;
	}
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

/* The template's top-level blocks sit flush against each other. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

.wcas-main > * {
	margin-block-start: 0;
}

/* Full width pages and the home page are a stack of sections in the page content, flush against each other. */
.wcas-sections > * {
	margin-block-start: 0;
}

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

/* ---------------------------------------------------------------------------
 * Focus and the skip link
 * ------------------------------------------------------------------------ */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
	box-shadow: 0 0 0 5px var(--wp--preset--color--gold);
	border-radius: 2px;
}

:where(.wcas-sky, .wcas-header, .wcas-footer, .is-style-navy, .wcas-panel--join, .wcas-benefit--lead, .wp-block-navigation__responsive-container.is-menu-open) :where(a, button, input, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--gold);
	box-shadow: none;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	font-weight: 600;
	clip-path: none;
	border-radius: var(--wcas-radius);
	z-index: 100000;
}

/* ---------------------------------------------------------------------------
 * Icons: an element with a wcas-icon-{name} class and wcas-icon-before or
 * wcas-icon-after draws that icon in its text colour.
 * ------------------------------------------------------------------------ */

.wcas-icon-before::before,
.wcas-icon-after::after,
.wp-block-button.wcas-icon-before > .wp-block-button__link::before,
.wp-block-button.wcas-icon-after > .wp-block-button__link::after,
.wp-block-navigation-item.wcas-icon-before > a::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--wcas-icon) center / contain no-repeat;
	mask: var(--wcas-icon) center / contain no-repeat;
}

/* The wrapper itself only lends the icon to the link inside it. */
.wp-block-button.wcas-icon-before::before,
.wp-block-button.wcas-icon-after::after,
.wp-block-navigation-item.wcas-icon-before::before {
	content: none;
}

/* ---------------------------------------------------------------------------
 * Type helpers
 * ------------------------------------------------------------------------ */

/*
 * The colours and type of the block styles (Eyebrow, Intro, White section, the
 * button styles) live in styles/blocks/*.json, so they can be changed under
 * Styles > Blocks. The :where() rules below repeat them at no specificity for
 * markup that uses the class outside those blocks (a plugin's own eyebrow line).
 */
:where(.is-style-eyebrow) {
	font-size: 13px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wcas-gold-text);
}

.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.is-style-eyebrow::before {
	content: "";
	flex: none;
	width: 28px;
	height: 1.5px;
	background: currentColor;
}

/* Higher than the block style's own rule, which the editor prints after this file. */
:is(.wcas-sky, .is-style-navy, .wcas-panel--join, .wcas-benefit--lead) .is-style-eyebrow {
	color: var(--wp--preset--color--gold);
}

:where(.is-style-lede) {
	font-size: 19px;
	line-height: 30px;
	color: var(--wp--preset--color--muted);
}

.wcas-sky .is-style-lede {
	color: var(--wcas-on-navy);
}

h1 em,
h2 em {
	font-style: italic;
	color: var(--wp--preset--color--gold);
}

.wcas-section-title,
h2.wcas-section-title {
	margin: 12px 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 48px;
	line-height: 54px;
	color: var(--wp--preset--color--navy);
}

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* The button styles keep their own hover (below). */
.wp-block-button__link:where(:not(:is(.is-style-gold, .is-style-ghost, .is-style-outline-navy, .is-style-dark, .is-style-text-link) > *)):hover {
	background-color: var(--wcas-navy-3);
}

.wp-block-buttons {
	gap: 14px;
}

.wp-block-buttons.is-style-small .wp-block-button__link,
.wp-block-button.is-size-small .wp-block-button__link {
	min-height: 42px;
	padding-inline: 18px;
	font-size: 14.4px;
}

.wp-block-button.is-style-gold .wp-block-button__link:hover {
	background: var(--wcas-gold-soft);
}

.wp-block-button.is-style-ghost .wp-block-button__link {
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
}

.wp-block-button.is-style-outline-navy .wp-block-button__link {
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline-navy .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-dark .wp-block-button__link {
	min-height: 42px;
	padding-inline: 18px;
}

.wp-block-button.is-style-dark .wp-block-button__link:hover {
	background-color: var(--wcas-navy-3);
}

/* A Dark, small button next to a full-size one takes the full height, so a
   row of buttons never has two heights (the row already centres them). */
.wp-block-buttons:has(> .wp-block-button:not(.is-style-dark, .is-style-text-link, .is-size-small)):not(.is-style-small) > .wp-block-button.is-style-dark .wp-block-button__link {
	min-height: 52px;
}

.wp-block-button.is-style-text-link .wp-block-button__link {
	min-height: 0;
	padding: 0 0 2px;
	gap: 6px;
	border-radius: 0;
	border-bottom: 1.5px solid var(--wp--preset--color--gold);
}

.wp-block-button.is-style-text-link .wp-block-button__link:hover {
	border-bottom-color: var(--wp--preset--color--navy);
}

/* ---------------------------------------------------------------------------
 * The night sky: dark navy with stars, behind the header and each page's hero
 * ------------------------------------------------------------------------ */

.wcas-sky {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: var(--wp--preset--color--white);
	background:
		radial-gradient(ellipse 70% 60% at 75% 40%, var(--wcas-navy-3) 0%, transparent 70%),
		linear-gradient(180deg, var(--wp--preset--color--night) 0%, var(--wp--preset--color--navy) 60%, var(--wp--preset--color--navy-soft) 100%);
}

.wcas-stars,
.wcas-sky,
.wcas-panel--join,
.wcas-benefit--lead {
	--wcas-stars:
		radial-gradient(1.5px 1.5px at 8% 22%, #fff 50%, transparent),
		radial-gradient(1px 1px at 18% 64%, #fff 50%, transparent),
		radial-gradient(1.5px 1.5px at 27% 38%, #f7d27a 50%, transparent),
		radial-gradient(1px 1px at 36% 82%, #fff 50%, transparent),
		radial-gradient(2px 2px at 44% 18%, #fff 50%, transparent),
		radial-gradient(1px 1px at 52% 56%, #cfd6e6 50%, transparent),
		radial-gradient(1.5px 1.5px at 61% 12%, #fff 50%, transparent),
		radial-gradient(1px 1px at 69% 74%, #fff 50%, transparent),
		radial-gradient(2px 2px at 88% 30%, #f7d27a 50%, transparent),
		radial-gradient(1px 1px at 94% 66%, #fff 50%, transparent),
		radial-gradient(1px 1px at 4% 88%, #fff 50%, transparent),
		radial-gradient(1.5px 1.5px at 80% 90%, #fff 50%, transparent),
		radial-gradient(1px 1px at 12% 44%, rgba(255, 255, 255, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 23% 12%, rgba(255, 255, 255, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 33% 58%, rgba(207, 214, 230, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 47% 92%, rgba(255, 255, 255, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 57% 32%, rgba(255, 255, 255, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 66% 48%, rgba(255, 255, 255, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 76% 8%, rgba(255, 255, 255, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 84% 52%, rgba(207, 214, 230, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 97% 14%, rgba(255, 255, 255, 0.7) 50%, transparent),
		radial-gradient(1px 1px at 41% 70%, rgba(255, 255, 255, 0.7) 50%, transparent);
}

.wcas-sky::before,
.wcas-sky::after,
.wcas-panel--join::before,
.wcas-panel--join::after,
.wcas-benefit--lead::before,
.wcas-benefit--lead::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.wcas-sky::before,
.wcas-panel--join::before,
.wcas-benefit--lead::before {
	background-image: var(--wcas-stars);
	opacity: 0.9;
}

.wcas-sky::after,
.wcas-panel--join::after,
.wcas-benefit--lead::after {
	background-image: radial-gradient(1px 1px, rgba(255, 255, 255, 0.35) 50%, transparent);
	background-size: 53px 47px;
	background-position: 11px 7px;
	opacity: 0.5;
}

.wcas-panel--join::before {
	opacity: 0.6;
}

.wcas-benefit--lead::before,
.wcas-benefit--lead::after {
	opacity: 0.5;
}

/* Room for the header, which sits over the top of the sky. */
.wcas-sky.wcas-has-header {
	padding-top: var(--wcas-header-h);
}

.wcas-sky :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--white);
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */

.wcas-site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
}

.wcas-header {
	color: var(--wcas-nav-link);
}

.wcas-header__bar {
	gap: 24px;
	padding-block: 20px;
}

.wcas-header .wp-block-site-logo,
.wcas-footer .wp-block-site-logo {
	flex: none;
	line-height: 0;
}

.wcas-header .wp-block-site-logo img,
.wcas-footer .wp-block-site-logo img {
	/* The logo is drawn in white on the night sky. */
	filter: brightness(0) invert(1);
}

.wcas-header .wp-block-navigation {
	font-size: 15px;
	font-weight: 500;
	gap: 24px;
}

.wcas-header .wp-block-navigation .wp-block-navigation__container {
	gap: 24px;
	align-items: center;
}

.wcas-header .wp-block-navigation-item__content {
	color: var(--wcas-nav-link);
	text-decoration: none;
	white-space: nowrap;
}

.wcas-header .wp-block-navigation-item__content:hover,
.wcas-header .current-menu-item > .wp-block-navigation-item__content,
.wcas-header .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--gold);
}

/* Sign In / My Membership */
.wcas-header .wp-block-navigation-item.is-style-ghost > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	margin-left: 4px;
	margin-right: -12px;
	border-radius: var(--wcas-radius);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
	color: var(--wp--preset--color--white);
	font-size: 14.4px;
}

.wcas-header .wp-block-navigation-item.is-style-ghost > a:hover {
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--gold);
}

/* Signed in, it becomes the account chip with the member's picture. */
.wcas-header .wp-block-navigation-item.is-account > a {
	padding: 0;
	margin-right: 6px;
	gap: 10px;
	box-shadow: none;
	color: var(--wcas-nav-link);
	font-size: 15px;
}

.wcas-header .wp-block-navigation-item.is-account > a[aria-current="page"] {
	color: var(--wp--preset--color--gold);
}

.wcas-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	box-shadow: 0 0 0 1.5px var(--wp--preset--color--gold);
}

/* Donate Today! */
.wp-block-navigation-item.is-style-cta > a,
.wcas-header .wp-block-navigation-item.is-style-cta > a[aria-current="page"] {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 18px;
	border-radius: var(--wcas-radius);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	font-size: 14.4px;
	font-weight: 500;
}

.wcas-header .wp-block-navigation-item.is-style-cta > a:hover {
	background: var(--wcas-gold-soft);
	color: var(--wp--preset--color--navy);
}

/* The menu button and the overlay it opens. */
.wcas-header .wp-block-navigation__responsive-container-open,
.wcas-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--white);
	padding: 8px;
	margin: -8px;
}

.wcas-header .wp-block-navigation__responsive-container-open svg,
.wcas-header .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}

.wcas-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--navy) !important;
	color: var(--wp--preset--color--white) !important;
	padding: 24px var(--wcas-gutter) 40px;
}

.wcas-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
	align-items: flex-start;
}

.wcas-header .is-menu-open .wp-block-navigation__container {
	gap: 4px;
	align-items: stretch !important;
	width: 100%;
}

.wcas-header .is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.wcas-header .is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 12px 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	line-height: 1.2;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wcas-header .is-menu-open .wp-block-navigation-item.is-style-ghost > a,
.wcas-header .is-menu-open .wp-block-navigation-item.is-style-cta > a {
	margin: 16px 0 0;
	justify-content: center;
	width: 100%;
	height: 52px;
	padding: 0 18px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16.8px;
	border-bottom: 0;
}

.wcas-header .is-menu-open .wp-block-navigation-item.is-account > a {
	justify-content: flex-start;
	padding: 0;
}

/*
 * Core folds the menu at 600px. Six links and two buttons need more room than
 * that, so fold it below 1100px too.
 */
@media (min-width: 600px) and (max-width: 1099px) {
	.wcas-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

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

	.wcas-header .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		display: flex;
		flex-direction: column;
		overflow: auto;
		z-index: 100000;
	}

	.wcas-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
		position: absolute;
		top: 24px;
		right: var(--wcas-gutter);
	}

	.wcas-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		flex-direction: column;
	}
}

@media (max-width: 781px) {
	.wcas-header .wp-block-site-logo img {
		width: 88px !important;
	}

	.wcas-header__bar {
		padding-block: 16px;
	}
}

/* ---------------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------------ */

.wcas-section {
	padding-top: 96px;
	padding-bottom: 96px;
}

:where(.is-style-white) {
	background: var(--wp--preset--color--white);
}

.wcas-section.has-top-line {
	border-top: 1px solid var(--wp--preset--color--line);
}

.wcas-section.has-lines {
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wcas-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 48px;
}

.wcas-sec-head > .wp-block-group {
	flex: none;
	margin: 0;
}

.wcas-sec-head > p {
	max-width: 360px;
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.wcas-sec-head > .wp-block-buttons {
	margin: 0;
}

.wcas-sec-head.is-ruled {
	margin-bottom: 0;
	padding-bottom: 20px;
	border-bottom: 3px solid var(--wp--preset--color--navy);
}

/* ---------------------------------------------------------------------------
 * Home: hero
 * ------------------------------------------------------------------------ */

.wcas-hero__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 500px;
	gap: 64px;
	align-items: center;
	padding: 64px 0 96px;
}

.wcas-hero__body > * {
	margin: 0;
}

.wcas-hero h1 {
	margin: 20px 0 22px;
	font-size: 66px;
	line-height: 70px;
	letter-spacing: -0.01em;
	font-weight: 400;
}

.wcas-hero .is-style-lede {
	max-width: 520px;
	margin: 0;
}

.wcas-hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin: 28px 0 36px;
	padding: 0;
	list-style: none;
	color: var(--wcas-nav-link);
	font-size: 15px;
}

.wcas-hero-facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.wcas-hero-facts li::before {
	width: 18px;
	height: 18px;
	color: var(--wp--preset--color--gold);
}

.wcas-hero__art {
	position: relative;
	margin: 0;
}

.wcas-hero__art::before {
	content: "";
	position: absolute;
	inset: -14px 14px 14px -14px;
	border: 1.5px solid rgba(242, 182, 50, 0.5);
	pointer-events: none;
}

.wcas-hero__art img {
	position: relative;
	display: block;
	width: 100%;
	box-shadow: 0 0 0 1px rgba(242, 182, 50, 0.35), 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* ---------------------------------------------------------------------------
 * Home: tours, observatories, announcements
 * ------------------------------------------------------------------------ */

.wcas-home-tours {
	padding-top: 88px;
	padding-bottom: 80px;
}

/* The block prints its own "Updated" time, rule and buttons under this heading. */
.wcas-home-tours .wcas-sec-head {
	margin-bottom: 0;
}

@media (min-width: 900px) {
	/* Lift the block's "Updated" time up beside the heading, as in the design. */
	.wcas-home-tours .wcas-sec-head {
		margin-bottom: -32px;
	}
}

/* The heading above already links to Latest News. */
.wcas-home-announcements .wcas-announcements__more {
	display: none;
}

.wcas-observatories {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.wcas-observatories > *,
.wcas-observatories > .wcas-observatory {
	margin: 0;
}

.wcas-observatory {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	padding: 32px;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
}

.wcas-observatory > * {
	margin: 0;
}

.wcas-observatory__badge {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 18px;
	margin: 0;
	background: var(--wp--preset--color--navy);
}

.wcas-observatory__badge img {
	display: block;
	width: 100%;
}

.wcas-observatory h3 {
	margin: 0;
	font-size: 26px;
	line-height: 30px;
	font-weight: 700;
}

.wcas-where {
	display: flex;
	gap: 6px;
	margin: 8px 0 14px;
	font-size: 14px;
	line-height: 22px;
	color: var(--wp--preset--color--muted);
}

.wcas-where::before {
	margin-top: 3px;
	color: var(--wp--preset--color--gold-deep);
}

.wcas-observatory p.wcas-desc {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 25px;
}

.wcas-observatory .wp-block-buttons {
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Home: about and the numbers
 * ------------------------------------------------------------------------ */

.wcas-about {
	padding-top: 88px;
	padding-bottom: 88px;
}

.wcas-about__grid {
	display: grid;
	grid-template-columns: 420px minmax(0, 1fr);
	gap: 80px;
}

.wcas-about__grid > * {
	margin: 0;
}

.wcas-about h2.wcas-section-title {
	font-size: 56px;
	line-height: 60px;
}

.wcas-about__quote {
	margin: 24px 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 24px;
	line-height: 34px;
	color: var(--wp--preset--color--navy);
}

.wcas-about__body > p {
	margin: 0;
}

.wcas-about__body > p + p {
	margin-top: 16px;
}

/* Text links only: a button in the body keeps its own colours. */
.wcas-about__body a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.wcas-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 36px !important;
	border-top: 2px solid var(--wp--preset--color--navy);
}

.wcas-fact,
.wcas-facts > .wcas-fact {
	margin: 0;
	padding: 18px 20px 0 0;
}

.wcas-fact > *,
.wcas-fact > .wcas-fact__number,
.wcas-fact > .wcas-fact__label {
	margin: 0;
}

.wcas-fact__number {
	font-family: var(--wp--preset--font-family--display);
	font-size: 36px;
	line-height: 42px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
}

.wcas-fact__label {
	font-size: 14px;
	line-height: 21px;
	color: var(--wp--preset--color--muted);
}

/* ---------------------------------------------------------------------------
 * Home: join and donate
 * ------------------------------------------------------------------------ */

.wcas-support {
	padding-bottom: 96px;
}

.wcas-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	gap: 32px;
}

/* Two classes, so the editor's block gap (printed after this file) can't push the second panel down. */
.wcas-panels > .wcas-panel,
.wcas-panels > * {
	margin: 0;
}

.wcas-panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 300px;
	padding: 48px;
}

.wcas-panel > * {
	margin: 0;
}

.wcas-panel h3 {
	margin: 14px 0 12px;
	font-size: 38px;
	line-height: 44px;
	font-weight: 700;
}

.wcas-panel p:not(.is-style-eyebrow) {
	max-width: 440px;
	margin-top: 0;
	margin-bottom: 28px;
}

.wcas-panel .wp-block-buttons {
	margin-top: auto;
}

.wcas-panel--join {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	/* The same borders as the donate panel, unseen, so both panels' insides line up. */
	border: 1px solid transparent;
	border-top-width: 4px;
}

.wcas-panel--join h3 {
	color: var(--wp--preset--color--white);
}

.wcas-panel--join p:not(.is-style-eyebrow) {
	color: var(--wcas-on-navy);
}

.wcas-panel--donate {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--wp--preset--color--gold);
}

.wcas-panel--donate p:not(.is-style-eyebrow) {
	color: var(--wp--preset--color--muted);
}

/* ---------------------------------------------------------------------------
 * Home: partners
 * ------------------------------------------------------------------------ */

.wcas-partners {
	padding-top: 72px;
	padding-bottom: 72px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.wcas-partners__grid {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.wcas-partners__grid > * {
	margin: 0;
}

.wcas-partners h2 {
	margin: 0;
	font-size: 28px;
	line-height: 34px;
	font-weight: 700;
}

.wcas-partners h2 + p {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 21px;
	color: var(--wp--preset--color--muted);
}

.wcas-logos {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.wcas-logos > .wp-block-image {
	display: grid;
	place-items: center;
	height: 110px;
	margin: 0;
	padding: 14px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
}

.wcas-logos > .wp-block-image a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.wcas-logos img {
	width: auto;
	max-width: 100%;
	max-height: 80px;
	object-fit: contain;
}

/* ---------------------------------------------------------------------------
 * Page heroes (Become a Member, My Membership and the rest)
 * ------------------------------------------------------------------------ */

.wcas-page-hero__body {
	padding: 56px 0 88px;
}

.wcas-page-hero__body > * {
	max-width: 760px;
	margin: 0;
}

.wcas-page-hero h1 {
	margin: 20px 0;
	font-size: 66px;
	line-height: 70px;
	font-weight: 400;
}

.wcas-page-hero .is-style-lede {
	max-width: 620px;
	margin: 0;
}

.wcas-page-hero .wp-block-buttons {
	margin-top: 32px;
}

/* The when / where / cost line some page heroes carry under the intro. */
.wcas-page-hero__body > .wcas-hero-facts {
	margin-top: 24px;
}

.wcas-page-hero.is-compact .wcas-page-hero__body {
	padding: 36px 0 56px;
}

.wcas-page-hero.is-compact h1 {
	margin: 16px 0 10px;
	font-size: 56px;
	line-height: 60px;
}

.wcas-page-hero.is-compact .is-style-lede {
	font-size: 18px;
	line-height: 28px;
}

.wcas-page-hero .wp-block-post-date,
.wcas-page-hero .wcas-meta {
	color: var(--wp--preset--color--gold);
}

/* ---------------------------------------------------------------------------
 * Become a Member: benefits, levels and questions
 * ------------------------------------------------------------------------ */

.wcas-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

/* A row of exactly two cards splits the width in half instead of leaving a gap (phones stack them). */
@media (min-width: 782px) {
	.wcas-benefits:has(> :nth-child(2):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* No card is left alone on the last row. Three with a wide lead card go two
	   across (the lead over a pair; three plain cards already fill a row), and four
	   make two pairs. Five (Become a Member) already fill three columns with the
	   lead card spanning two. */
	.wcas-benefits:has(> .wcas-benefit--lead):has(> :nth-child(3):last-child),
	.wcas-benefits:has(> :nth-child(4):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wcas-benefits:has(> :nth-child(4):last-child) > .wcas-benefit--lead {
		grid-column: auto;
	}
}

.wcas-benefits > * {
	margin: 0;
}

.wcas-benefit {
	padding: 32px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
}

.wcas-benefit > * {
	margin: 0;
}

.wcas-benefit__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 20px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--gold);
	font-size: 0;
}

.wcas-benefit__icon::before {
	width: 22px;
	height: 22px;
}

.wcas-benefit h3 {
	margin-bottom: 10px;
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
}

.wcas-benefit p:not(.wcas-benefit__icon) {
	font-size: 16px;
	line-height: 25px;
	color: var(--wp--preset--color--muted);
}

.wcas-benefit--lead {
	grid-column: span 2;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.wcas-benefit--lead .wcas-benefit__icon {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
}

.wcas-benefit--lead h3 {
	max-width: 520px;
	font-size: 32px;
	line-height: 38px;
	color: var(--wp--preset--color--white);
}

.wcas-benefit--lead p:not(.wcas-benefit__icon) {
	max-width: 560px;
	color: var(--wcas-on-navy);
}

.wcas-welcome {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 64px;
	margin-top: 56px !important;
	padding-top: 40px;
	border-top: 2px solid var(--wp--preset--color--navy);
}

.wcas-welcome > * {
	margin: 0;
}

.wcas-welcome h3 {
	font-size: 30px;
	line-height: 38px;
	font-weight: 400;
}

.wcas-stripe-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 36px !important;
	font-size: 14px;
	line-height: 21px;
	color: var(--wp--preset--color--muted);
	text-align: center;
}

.wcas-stripe-note::before {
	color: var(--wp--preset--color--navy);
}

.wcas-faq {
	padding-top: 88px;
	padding-bottom: 88px;
}

.wcas-faq__grid {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 80px;
}

.wcas-faq__grid > * {
	margin: 0;
}

.wcas-faq__grid .wp-block-buttons {
	margin-top: 28px;
}

.wcas-faq__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px 48px;
}

.wcas-faq__list > * {
	margin: 0;
}

.wcas-faq__list h3 {
	margin: 0 0 6px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16.8px;
	line-height: 26px;
	font-weight: 600;
}

.wcas-faq__list p {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: var(--wp--preset--color--muted);
}

/* ---------------------------------------------------------------------------
 * My Membership
 * ------------------------------------------------------------------------ */

.wcas-account-section {
	padding-top: 44px;
	padding-bottom: 72px;
}

/* ---------------------------------------------------------------------------
 * Posts, pages, archives
 * ------------------------------------------------------------------------ */

.wcas-content {
	padding-top: 64px;
	padding-bottom: 96px;
}

/*
 * The content under a hero starts at the same left edge as the hero's title (the section is 1120px like
 * the hero) and uses the full width, on pages, posts and announcements alike.
 */
.wcas-content > .wp-block-post-content > :not(.alignfull):not(.alignleft):not(.alignright) {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}


.wcas-content .wp-block-post-content > * + * {
	margin-block-start: 1.1em;
}

/*
 * Pictures floated left or right in older posts (the classic editor's alignleft / alignright, often
 * inside a paragraph or heading) sit beside the text with room around them, and the post's end clears
 * them. On phones they stand on their own line instead.
 */
.wp-block-post-content .alignleft {
	float: left;
	margin-inline: 0 24px;
	margin-bottom: 16px;
}

.wp-block-post-content .alignright {
	float: right;
	margin-inline: 24px 0;
	margin-bottom: 16px;
}

.wp-block-post-content img.alignleft,
.wp-block-post-content img.alignright {
	max-width: 50%;
	height: auto;
}

.wp-block-post-content::after {
	content: "";
	display: table;
	clear: both;
}

@media (max-width: 599px) {
	.wp-block-post-content .alignleft,
	.wp-block-post-content .alignright {
		float: none;
		display: block;
		margin-inline: auto;
	}

	.wp-block-post-content img.alignleft,
	.wp-block-post-content img.alignright {
		max-width: 100%;
	}
}

.wcas-content :where(.wp-block-post-content) :where(h2, h3, h4) {
	margin-block-start: 1.6em;
}

/* A card's title sits right under its icon (Member Resources puts benefit cards in the page text). */
.wcas-content .wp-block-post-content .wcas-benefit > :where(h2, h3, h4) {
	margin-block-start: 0;
}

.wcas-content .wp-block-post-content a:not(.wp-block-button__link) {
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.wcas-content .wp-block-image img {
	height: auto;
}

.wcas-featured {
	margin-bottom: 40px !important;
}

.wcas-post-list .wp-block-post-template {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--wp--preset--color--navy);
}

.wcas-post-list .wp-block-post {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 8px 24px;
	align-items: baseline;
	margin: 0;
	padding: 22px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wcas-post-list .wp-block-post > * {
	margin: 0;
}

.wcas-post-list .wp-block-post-title {
	margin: 0;
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
}

.wcas-post-list .wp-block-post-excerpt {
	grid-column: 2;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	line-height: 24px;
}

.wcas-post-list .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.wcas-post-list .wp-block-query-pagination {
	margin-top: 32px;
	gap: 16px;
	font-weight: 600;
}

.wcas-post-list .wp-block-query-no-results p {
	color: var(--wp--preset--color--muted);
}

.wcas-post-nav {
	margin-top: 56px !important;
	padding-top: 24px;
	border-top: 2px solid var(--wp--preset--color--navy);
	gap: 24px;
}

.wcas-post-nav a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

/* Wide screens: previous on the left, next on the right, each taking half and wrapping its title. */
@media (min-width: 600px) {
	.wcas-post-nav.is-layout-flex {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.wcas-post-nav .post-navigation-link-next {
		grid-column: 2;
		text-align: right;
	}
}

/* The previous / next post titles are display type; a Text link button here
   (Latest News →) keeps the sans type, size and weight of its block style,
   like the sidebar's All the news →. */
.wcas-post-nav a:not(.wp-block-button__link) {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 20px;
}

.wcas-search .wp-block-search__inside-wrapper {
	max-width: 560px;
	gap: 8px;
}

.wcas-search .wp-block-search__input {
	min-height: 52px;
	padding: 0 16px;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: var(--wcas-radius);
	font: inherit;
	background: var(--wp--preset--color--white);
}

.wcas-search .wp-block-search__button {
	margin: 0;
	padding: 0 24px;
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */

.wcas-footer {
	padding-top: 64px;
	padding-bottom: 40px;
	background: var(--wp--preset--color--navy);
	color: #cfd6e6;
}

.wcas-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wcas-footer__grid > *,
.wcas-footer__grid > * > * {
	margin: 0;
}

.wcas-footer__about {
	max-width: 280px;
	margin-top: 18px !important;
	font-size: 14px;
	line-height: 22px;
	color: var(--wcas-on-navy-soft);
}

.wcas-footer h2 {
	margin: 0 0 16px !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	line-height: 18px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.wcas-footer .wp-block-navigation {
	font-size: 14.4px;
	line-height: 22px;
}

.wcas-footer .wp-block-navigation__container {
	gap: 10px;
}

.wcas-footer .wp-block-navigation-item__content {
	color: #dbe1ee;
	text-decoration: none;
}

.wcas-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--gold);
	text-decoration: underline;
}

.wcas-footer__address {
	font-size: 14px;
	line-height: 22px;
	color: var(--wcas-on-navy-soft);
}

.wcas-footer__address strong {
	display: block;
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.wcas-footer__address + .wcas-footer__address {
	margin-top: 14px !important;
}

/* The pin shows on phones only (below). */
.wcas-footer__address.wcas-icon-before::before {
	content: none;
}

/* The Friends sign-up row between the footer columns and the copyright line. */
.wcas-footer__signup {
	padding: 32px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wcas-footer__signup > * {
	margin: 0;
}

.wcas-footer__base {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	font-size: 13px;
	line-height: 20px;
	color: #8e9bbb;
}

.wcas-footer__base > * {
	margin: 0;
}

/* Social links under the club description in the footer: gold icons, quiet labels. */
.wcas-social.wp-block-social-links {
	gap: 18px;
	margin: 22px 0 0;
	padding: 0;
}

.wcas-social .wp-social-link {
	background: transparent !important;
	color: #c3cbe0 !important;
	border-radius: 0;
	transition: none;
}

.wcas-social .wp-social-link:hover {
	transform: none;
}

.wcas-social .wp-social-link a {
	gap: 10px;
	padding: 0 !important;
	font-size: 14px;
	color: inherit;
}

/* WordPress's own social icon styles load after the theme's, hence the extra weight here. */
.wcas-footer .wcas-social .wp-social-link svg {
	width: 22px !important;
	height: 22px !important;
	color: var(--wp--preset--color--gold) !important;
	fill: currentColor !important;
}

.wcas-footer .wcas-social .wp-block-social-link-label {
	font-size: 14px !important;
	line-height: 22px;
}

.wcas-social .wp-social-link a:hover,
.wcas-social .wp-social-link a:focus-visible {
	color: var(--wp--preset--color--white);
}

.wcas-credit a {
	color: #c3cbe0;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.wcas-credit a:hover,
.wcas-credit a:focus-visible {
	color: var(--wp--preset--color--white);
	border-bottom-color: var(--wp--preset--color--gold);
}

/* ---------------------------------------------------------------------------
 * Narrower screens
 * ------------------------------------------------------------------------ */

@media (max-width: 1099px) {
	.wcas-hero__body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
		gap: 48px;
	}

	.wcas-about__grid,
	.wcas-faq__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.wcas-partners__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.wcas-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 899px) {
	.wcas-hero__body {
		grid-template-columns: minmax(0, 1fr);
		padding: 40px 0 72px;
	}

	.wcas-hero__art {
		max-width: 460px;
		margin-left: 14px;
	}

	.wcas-observatories,
	.wcas-panels {
		grid-template-columns: minmax(0, 1fr);
	}

	.wcas-benefits {
		grid-template-columns: 1fr 1fr;
	}

	.wcas-logos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wcas-sec-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

@media (max-width: 781px) {
	.wcas-section,
	.wcas-home-tours,
	.wcas-about,
	.wcas-faq {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.wcas-support {
		padding-top: 0;
		padding-bottom: 64px;
	}

	.wcas-partners {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.wcas-sec-head {
		margin-bottom: 32px;
	}

	.wcas-section-title,
	h2.wcas-section-title,
	.wcas-about h2.wcas-section-title {
		font-size: 38px;
		line-height: 44px;
	}

	.wcas-hero h1,
	.wcas-page-hero h1 {
		font-size: 44px;
		line-height: 50px;
	}

	.wcas-page-hero.is-compact h1 {
		font-size: 42px;
		line-height: 48px;
	}

	.wcas-page-hero__body {
		padding: 32px 0 64px;
	}

	:is(p, div).is-style-lede,
	.wcas-hero .is-style-lede {
		font-size: 17px;
		line-height: 27px;
	}

	.wcas-observatory {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 20px;
		padding: 24px;
	}

	.wcas-observatory__badge {
		padding: 10px;
	}

	.wcas-panel {
		padding: 32px 24px;
		min-height: 0;
	}

	.wcas-panel h3 {
		font-size: 32px;
		line-height: 38px;
	}

	.wcas-benefits,
	.wcas-welcome,
	.wcas-faq__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.wcas-benefit--lead {
		grid-column: auto;
	}

	.wcas-welcome {
		gap: 16px;
	}

	.wcas-benefit--lead h3 {
		font-size: 28px;
		line-height: 34px;
	}

	.wcas-about__quote {
		font-size: 21px;
		line-height: 30px;
	}

	.wcas-fact__number {
		font-size: 28px;
		line-height: 36px;
	}

	.wcas-fact {
		padding-right: 12px;
	}

	.wcas-logos {
		gap: 10px;
	}

	.wcas-logos > .wp-block-image {
		height: 92px;
		padding: 10px;
	}

	.wcas-post-list .wp-block-post {
		grid-template-columns: minmax(0, 1fr);
	}

	.wcas-post-list .wp-block-post-excerpt {
		grid-column: auto;
	}

	.wcas-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.wcas-footer__base {
		flex-direction: column;
		gap: 6px;
	}

	.wp-block-buttons.is-style-stack {
		flex-direction: column;
		align-items: stretch;
	}

	.wp-block-buttons.is-style-stack .wp-block-button,
	.wp-block-buttons.is-style-stack .wp-block-button__link {
		width: 100%;
	}
}

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

/* People cards (the people starter): the observatory card with a photo instead of a badge. */
.wcas-team-card__photo {
	padding: 0;
	overflow: hidden;
}

.wcas-team-card > .wp-block-group:only-child {
	grid-column: 1 / -1;
}

.wcas-team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Image beside text on the content pages. */
.wcas-split {
	gap: 56px;
	align-items: center;
}

.wcas-split .wp-block-image img {
	width: 100%;
	height: auto;
}

/* Section heads and card rows stacked inside one section (Member Resources). */
.wcas-resources > .wcas-sec-head:not(:first-child) {
	margin-top: 72px;
}

/* The class archive on Night Sky Classes. */
.wcas-classes {
	display: grid;
	gap: 28px;
}

.wcas-class {
	padding: 32px;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
}

.wcas-class h3 {
	margin: 8px 0 16px;
	font-size: 28px;
	line-height: 32px;
}

.wcas-class .wp-block-columns {
	align-items: start;
}

/* Folded notes (core Details block). */
.wp-block-details {
	margin-top: 20px;
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 14px;
}

.wp-block-details > summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.wp-block-details[open] > summary {
	margin-bottom: 12px;
}

.wp-block-details > :not(summary) + * {
	margin-top: 0.9em;
}

/* The Donate page's gift section: the form on the left, what a gift does on the right. */
.wcas-give {
	gap: 64px;
	align-items: flex-start;
}

.wcas-give__aside {
	position: sticky;
	top: 32px;
	padding: 36px;
}

.wcas-give__aside h3 {
	margin: 18px 0 14px;
}

.wcas-give__aside h4 {
	margin: 26px 0 6px;
	color: var(--wp--preset--color--gold);
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wcas-give__aside p {
	margin: 0;
}

.wcas-give__list {
	margin: 0;
	padding-left: 1.1em;
}

.wcas-give__list li + li {
	margin-top: 8px;
}

@media (max-width: 781px) {
	.wcas-give__aside {
		position: static;
	}
}

/* A small label that starts a new group inside a column (Contact's "Other ways to reach us"). */
.wp-block-column > .is-style-eyebrow:not(:first-child) {
	margin-top: 28px;
}

.wp-block-column > .is-style-eyebrow + p {
	margin-top: 6px;
}

/* A free-text section on a full width page: the same rhythm as an ordinary page. */
.wcas-prose > * + * {
	margin-block-start: 1.1em;
}

.wcas-prose :where(h2, h3, h4) {
	margin-block-start: 1.6em;
}

.wcas-prose > :first-child {
	margin-block-start: 0;
}

/* The band the sky strip block sits in, right under the home hero. */
.wcas-sky-strip-band {
	background: var(--wp--preset--color--navy-soft);
	border-top: 1px solid rgba(242, 182, 50, 0.35);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-text-link .wp-block-button__link {
	white-space: normal;
	text-align: left;
}

.wp-block-button.is-style-text-link .wp-block-button__link {
	justify-content: flex-start;
}

@media (max-width: 520px) {
	.wcas-observatory {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.wcas-observatory__badge {
		width: 88px;
	}
}

.wcas-fact__number {
	white-space: nowrap;
}

@media (max-width: 781px) {
	.wcas-facts {
		grid-template-columns: repeat(3, auto);
		justify-content: space-between;
		gap: 12px;
	}

	.wcas-fact {
		padding-right: 0;
	}

	.wcas-fact__number {
		font-size: 26px;
		line-height: 34px;
	}

	.wcas-footer__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 32px 24px;
	}

	.wcas-footer__grid > :first-child,
	.wcas-footer__grid > :last-child {
		grid-column: 1 / -1;
	}
}

/* The open menu: links down the left, both buttons full width under them. */
.wcas-header .is-menu-open .wp-block-navigation__responsive-container-content,
.wcas-header .is-menu-open .wp-block-navigation__container,
.wcas-header .is-menu-open .wp-block-navigation-item {
	align-items: stretch !important;
	justify-content: flex-start !important;
	text-align: left;
}

.wcas-header .is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	max-width: 560px;
}

.wcas-header .is-menu-open .wp-block-navigation-item__content {
	box-sizing: border-box;
	width: 100%;
}

/* Core zeroes the padding of links in the open menu; give each text link room
   above its divider line (the two buttons keep their own sizes). */
.wcas-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item:not(.is-style-ghost, .is-style-cta) > .wp-block-navigation-item__content {
	padding: 6px 0 12px;
}

.wcas-header .is-menu-open .wp-block-navigation-item.is-style-ghost > a,
.wcas-header .is-menu-open .wp-block-navigation-item.is-style-cta > a {
	display: flex;
	align-items: center;
}

.wcas-header .is-menu-open .wp-block-navigation-item.is-style-ghost > a {
	color: var(--wp--preset--color--white);
}

.wcas-header .is-menu-open .wp-block-navigation-item.is-style-cta > a {
	color: var(--wp--preset--color--navy);
}

.wcas-header .is-menu-open .wp-block-navigation-item.is-account > a {
	height: auto;
	padding: 12px 0;
	box-shadow: none;
	justify-content: flex-start;
}

.wcas-header .wp-block-navigation .wp-block-navigation-item.is-style-cta > a,
.wcas-header .wp-block-navigation .wp-block-navigation-item.is-style-cta > a:hover {
	color: var(--wp--preset--color--navy);
}

/* Signed in, the account chip is wider than "Sign In", so the links sit a little closer. */
@media (min-width: 1100px) {
	.logged-in .wcas-header .wp-block-navigation,
	.logged-in .wcas-header .wp-block-navigation .wp-block-navigation__container {
		gap: 15px;
	}

	.logged-in .wcas-header .wp-block-navigation-item__content {
		font-size: 14.5px;
	}
}

.wcas-post-list .wp-block-query-pagination-numbers .page-numbers {
	display: inline-block;
	min-width: 28px;
	padding: 2px 6px;
	text-align: center;
}

.wcas-post-list .wp-block-query-pagination-numbers .current {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	border-radius: var(--wcas-radius);
}

/* ---------------------------------------------------------------------------
 * News posts and announcements: the article beside a sidebar
 * ------------------------------------------------------------------------ */

.wcas-article {
	gap: 64px;
	align-items: flex-start;
}

.wcas-article__main > * + * {
	margin-block-start: 0;
}

/* The sidebar runs the full height of the article, so its last card can stay in view while reading. */
.wcas-article__aside {
	align-self: stretch;
}

.wcas-sidebar {
	display: flex;
	flex-direction: column;
	gap: 40px;
	height: 100%;
}

.wcas-sidebar > * {
	margin: 0;
}

.wcas-sidebar__block {
	padding-top: 20px;
	border-top: 2px solid var(--wp--preset--color--navy);
}

.wcas-sidebar__block > * + * {
	margin-block-start: 14px;
}

.wcas-sidebar__news .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcas-sidebar__news .wp-block-post-template > li {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wcas-sidebar__news .wp-block-post-template > li:first-child {
	padding-top: 0;
}

.wcas-sidebar__news .wp-block-post-title {
	margin: 0;
	font-size: 19px;
	line-height: 1.25;
	font-weight: 700;
}

.wcas-sidebar__news .wp-block-post-title a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.wcas-sidebar__news .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
}

.wcas-sidebar__news .wp-block-post-date {
	margin: 4px 0 0;
	color: var(--wp--preset--color--gold-deep);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wcas-sidebar__events p:not(.is-style-eyebrow) {
	color: var(--wp--preset--color--muted);
}

.wcas-sidebar__join {
	position: sticky;
	top: 32px;
	min-height: 0;
	padding: 32px;
}

/* The sidebar column is narrow: "Join WCAS Today" fits on one line. */
.wcas-sidebar__join h3 {
	font-size: 30px;
	line-height: 36px;
}

@media (max-width: 781px) {
	.wcas-article {
		gap: 48px;
	}

	.wcas-sidebar__join {
		position: static;
	}
}

/* ---------------------------------------------------------------------------
 * Popular places (404, and searches and archives with nothing to show)
 * ------------------------------------------------------------------------ */

.wcas-places {
	margin-top: 0;
}

.wcas-places > * {
	margin: 0;
}

.wcas-places h2.wcas-places__title,
.wcas-no-results__title {
	margin: 0 0 24px;
	font-size: 32px;
	line-height: 38px;
}

.wcas-places__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.wcas-places__grid > .wcas-place {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 22px 20px 24px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	transition: box-shadow 0.15s ease;
}

.wcas-place::before {
	width: 24px;
	height: 24px;
	margin-bottom: 8px;
	color: var(--wp--preset--color--gold-deep);
}

.wcas-place > * {
	margin: 0;
}

/* Display type like the site's other card titles. */
.wcas-place h3.wcas-place__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 21px;
	line-height: 26px;
	font-weight: 700;
}

.wcas-place__title a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

/* The whole card is the link. */
.wcas-place__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wcas-place p.wcas-place__desc {
	font-size: 14.4px;
	line-height: 21px;
	color: var(--wp--preset--color--muted);
}

.wcas-places__grid > .wcas-place:hover,
.wcas-places__grid > .wcas-place:focus-within {
	box-shadow: inset 0 3px 0 var(--wp--preset--color--gold), 0 10px 24px rgba(11, 23, 51, 0.08);
}

.wcas-place:hover .wcas-place__title a,
.wcas-place:focus-within .wcas-place__title a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
	text-underline-offset: 3px;
}

/* The focus ring goes round the card, not the title. */
.wcas-place__title a:focus-visible {
	outline: none;
	box-shadow: none;
}

.wcas-places__grid > .wcas-place:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
}

.wcas-places h3.wcas-places__search-title {
	margin: 40px 0 12px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 17px;
	line-height: 24px;
	font-weight: 600;
}

.wp-block-query-no-results h2.wcas-places__title {
	margin: 32px 0 14px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 17px;
	line-height: 24px;
	font-weight: 600;
}

/* With nothing found, the search box sits with the cards, not above them. */
.wcas-content:has(.wp-block-query-no-results) > .wcas-search {
	display: none;
}

@media (max-width: 1099px) {
	.wcas-places__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.wcas-places__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.wcas-places__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.wcas-places__grid > .wcas-place {
		display: grid;
		grid-template-columns: 24px minmax(0, 1fr);
		column-gap: 14px;
		row-gap: 2px;
		padding: 16px 18px;
	}

	.wcas-place::before {
		grid-row: 1 / span 2;
		margin: 0;
	}

	.wcas-places h2.wcas-places__title,
	.wcas-no-results__title {
		font-size: 28px;
		line-height: 34px;
	}
}

/* ---------------------------------------------------------------------------
 * Phones
 * ------------------------------------------------------------------------ */

@media (max-width: 600px) {
	/* Footer: compact, one deliberate block. */
	.wcas-footer {
		padding-top: 40px;
		padding-bottom: 24px;
	}

	.wcas-footer .wp-block-site-logo img {
		width: 96px;
		height: auto;
	}

	.wcas-footer__about {
		margin-top: 12px !important;
	}

	.wcas-social.wp-block-social-links {
		margin-top: 14px;
	}

	.wcas-social .wp-social-link a {
		gap: 8px;
	}

	.wcas-footer .wcas-social .wp-block-social-link-label {
		margin: 0 !important;
	}

	.wcas-footer__grid {
		gap: 24px 20px;
		padding-bottom: 24px;
	}

	.wcas-footer__signup {
		padding: 24px 0;
	}

	.wcas-footer h2 {
		margin-bottom: 10px !important;
	}

	.wcas-footer .wp-block-navigation__container {
		gap: 8px;
	}

	.wcas-footer__address.wcas-icon-before {
		position: relative;
		padding-left: 24px;
	}

	.wcas-footer__address.wcas-icon-before::before {
		content: "";
		position: absolute;
		top: 3px;
		left: 0;
		color: var(--wp--preset--color--gold);
	}

	.wcas-footer__address + .wcas-footer__address {
		margin-top: 12px !important;
	}

	.wcas-footer > .wcas-footer__base {
		margin-top: 0;
	}

	.wcas-footer__base {
		padding-top: 16px;
		gap: 2px;
		font-size: 12.5px;
		line-height: 19px;
	}

	/* Observatory and people cards: the badge beside the title, then the rest full width. */
	.wcas-observatory {
		gap: 0;
		padding: 20px;
	}

	.wcas-observatory:has(> .wcas-observatory__badge + .wp-block-group) {
		grid-template-columns: 72px minmax(0, 1fr);
		column-gap: 16px;
		align-items: center;
	}

	.wcas-observatory__badge {
		box-sizing: border-box;
		width: 72px;
		padding: 8px;
	}

	.wcas-observatory__badge + .wp-block-group {
		display: contents;
	}

	.wcas-observatory__badge + .wp-block-group > :not(h3) {
		grid-column: 1 / -1;
		align-self: start;
	}

	.wcas-observatory__badge + .wp-block-group > h3 {
		font-size: 24px;
		line-height: 28px;
	}

	.wcas-observatory__badge + .wp-block-group > .wcas-where {
		margin-top: 14px;
	}

	/* Hero quick facts: one even column. */
	.wcas-hero-facts {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}
