/*
Theme Name: WPSA West Point
Description: West Point Society of Atlanta theme. A child of Twenty Twenty-Five using West Point black, gold and gray.
Template: twentytwentyfive
Version: 1.0.3
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: wpsa-westpoint
*/

/* ---------- Header ---------- */
.wpsa-stripe {
	height: 4px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent-1) 0%, #b89c62 100%);
}
.wpsa-header .wp-block-site-title a {
	text-decoration: none;
}
.wpsa-header .wp-block-navigation a:hover,
.wpsa-header .wp-block-navigation a:focus {
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}
.wpsa-header .wp-block-navigation .current-menu-item > a,
.wpsa-header .wp-block-navigation a[aria-current="page"] {
	color: var(--wp--preset--color--accent-1);
}
.wpsa-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem;
}
.wpsa-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	font-size: 1.25rem;
	gap: 1.1rem;
}

/* Keep the hamburger menu up to tablet width so the 7 links never wrap awkwardly. */
@media (min-width: 600px) and (max-width: 1279px) {
	.wpsa-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.wpsa-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}
@media (max-width: 1279px) {
	.wpsa-header .wpsa-header-cta {
		display: none;
	}
}
@media (max-width: 599px) {
	.wpsa-header .wpsa-motto {
		display: none;
	}
}

/* ---------- Hero ---------- */
.wpsa-hero {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(circle at 85% 20%, rgba(211, 188, 141, 0.18), transparent 45%),
		linear-gradient(135deg, #111111 0%, #1f1f1f 100%);
}
.wpsa-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: var(--wp--preset--color--accent-1);
}
/* Only show the hero and the get-involved band on the first page of the news list. */
body.paged .wpsa-hero,
body.paged .wpsa-involved {
	display: none;
}

/* ---------- Cards ---------- */
.wpsa-card {
	height: 100%;
	border-top: 4px solid var(--wp--preset--color--accent-1);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wpsa-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ---------- News list ---------- */
.wpsa-news .wp-block-post-template > li {
	border-bottom: 1px solid #e4dfd3;
}
.wpsa-news .wp-block-post-template > li:last-child {
	border-bottom: 0;
}
.wpsa-news .wp-block-post-title a {
	text-decoration: none;
}
.wpsa-news .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-2);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.wpsa-news .wp-block-post-excerpt__more-link {
	font-weight: 600;
}

/* ---------- Footer ---------- */
.wpsa-footer a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}
.wpsa-footer a:hover,
.wpsa-footer a:focus {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}
.wpsa-footer .wp-block-search__input {
	border-radius: 4px 0 0 4px;
	border: 1px solid #555;
	background: #1c1c1c;
	color: #fff;
}
.wpsa-footer .wp-block-archives-dropdown select {
	width: 100%;
	padding: 0.6rem;
	border-radius: 4px;
	border: 1px solid #555;
	background: #1c1c1c;
	color: #fff;
}
.wpsa-footer .wp-block-archives-dropdown label {
	color: var(--wp--preset--color--accent-1);
}

/* ---------- General ---------- */
:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 2px;
}
.wp-block-post-content img {
	height: auto;
	max-width: 100%;
}

/* ---------- Spacing between header, content and footer ---------- */
.wp-site-blocks > footer {
	margin-block-start: var(--wp--preset--spacing--70);
}
body.blog .wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ---------- Pinned (sticky) posts in the news list ---------- */
.wpsa-news .wp-block-post-template > li.sticky {
	border-left: 4px solid var(--wp--preset--color--accent-1);
	padding-left: var(--wp--preset--spacing--30);
	background: linear-gradient(90deg, var(--wp--preset--color--accent-5), transparent 70%);
}
.wpsa-news .wp-block-post-template > li.sticky > .wp-block-group::before {
	content: "Pinned";
	display: inline-block;
	margin-bottom: 0.35rem;
	padding: 0.15rem 0.6rem;
	border-radius: 3px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ---------- The Events Calendar: West Point colors and site fonts ---------- */
body {
	--tec-color-accent-primary: #7A5C1E;
	--tec-color-accent-primary-hover: #5f4717;
	--tec-color-accent-primary-active: #5f4717;
	--tec-color-accent-primary-background: rgba(211, 188, 141, 0.18);
	--tec-color-accent-primary-background-datepicker: #7A5C1E;
	--tec-color-accent-primary-multiday: rgba(211, 188, 141, 0.45);
	--tec-color-accent-primary-multiday-hover: rgba(211, 188, 141, 0.7);
	--tec-color-button-primary: #111111;
	--tec-color-button-primary-hover: #2b2b2b;
	--tec-color-button-primary-active: #2b2b2b;
	--tec-color-button-primary-background: rgba(17, 17, 17, 0.07);
	--tec-color-link-accent: #7A5C1E;
	--tec-color-link-accent-hover: #111111;
	--tec-color-day-marker-current-month: #111111;
	--tec-color-icon-active: #7A5C1E;
	--tec-color-icon-focus: #7A5C1E;
	--tec-color-border-active: #7A5C1E;
	--tec-font-family-sans-serif: var(--wp--preset--font-family--fira-sans);
	--tec-font-family-base: var(--wp--preset--font-family--fira-sans);
}
.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,
.tribe-events-single-event-title, .tribe-events-single-section-title,
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-month__calendar-event-title {
	font-family: var(--wp--preset--font-family--roboto-slab);
}
.tribe-common .tribe-common-c-btn,
.tribe-common a.tribe-common-c-btn,
.tribe-events .tribe-events-c-search__button {
	background-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	border-radius: 4px;
}
.tribe-common .tribe-common-c-btn:hover,
.tribe-common .tribe-common-c-btn:focus,
.tribe-events .tribe-events-c-search__button:hover,
.tribe-events .tribe-events-c-search__button:focus {
	background-color: #E4D3AE;
	color: var(--wp--preset--color--contrast);
}
.wpsa-events-title {
	margin: 0 0 0.5rem;
	font-weight: 700;
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: var(--wp--preset--font-size--xx-large);
}
.wpsa-events-intro {
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--accent-4);
}
.tribe-events-event-meta a, .tribe-events-single a { word-break: break-word; }

/* ---------- Homepage: upcoming events strip ---------- */
.wpsa-upcoming:not(:has(.tribe-events-widget-events-list__event-row)) {
	display: none;
}
.wpsa-upcoming .tribe-events-widget-events-list__header,
.wpsa-upcoming .tribe-events-widget-events-list__view-more {
	display: none;
}
.wpsa-upcoming .tribe-events-widget-events-list__events {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: var(--wp--preset--spacing--40);
}
.wpsa-upcoming .tribe-events-widget-events-list__event-row {
	margin: 0;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--base);
	border-top: 4px solid var(--wp--preset--color--accent-1);
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.wpsa-upcoming .tribe-events-widget-events-list__event-title-link {
	font-family: var(--wp--preset--font-family--roboto-slab);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.wpsa-upcoming .tribe-events-widget-events-list__event-title-link:hover {
	text-decoration: underline;
}

.tribe-common .tribe-common-c-btn.tribe-events-c-search__button,
.tribe-common button.tribe-events-c-search__button {
	background-color: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--contrast) !important;
}
.tribe-common .tribe-common-c-btn.tribe-events-c-search__button:hover,
.tribe-common .tribe-common-c-btn.tribe-events-c-search__button:focus {
	background-color: #E4D3AE !important;
}
.wpsa-upcoming .tribe-events-widget-events-list__event-title {
	font-size: 1.2rem;
	line-height: 1.3;
}
