/* Shared visual language for the Foyer's custom components. */
:root {
	--frqf-gold: #d39800;
	--frqf-green: #16824b;
	--frqf-ink: #303030;
	--frqf-muted: #666;
	--frqf-line: #dedede;
	--frqf-light: #efefef;
	--frqf-font: Arial, Helvetica, sans-serif;
}

body,
button,
input,
select,
textarea {
	font-family: var(--frqf-font);
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-site-title {
	font-family: var(--frqf-font);
}

/* Keep the shared desktop header menu on one line instead of stacking links. */
@media (min-width: 782px) {
	.wp-block-navigation ul.wp-block-navigation__container {
		flex-direction: row !important;
		align-items: center;
		column-gap: clamp(.7rem, 1.25vw, 1.25rem);
	}

	.wp-block-navigation ul.wp-block-navigation__submenu-container {
		flex-direction: column !important;
		align-items: stretch;
		gap: 0;
	}
}

.wp-block-separator,
hr {
	border-color: var(--frqf-gold);
}

.frqf-focus__heading h2,
.frqf-homepage__sections h2,
.frqf-sections h2,
.frqf-agenda__title,
.frqf-photos-heading,
.frqf-activity-heading {
	color: var(--frqf-gold) !important;
	font-family: var(--frqf-font) !important;
	font-weight: 600 !important;
}

.frqf-activity-number {
	color: var(--frqf-gold) !important;
	font-family: var(--frqf-font) !important;
}

.frqf-focus__heading,
.frqf-homepage__sections h2,
.frqf-sections h2 {
	border-bottom-color: var(--frqf-line) !important;
}

.frqf-photos__filter.is-active {
	background: var(--frqf-gold) !important;
}

.frqf-photos__filter:not(.is-active):hover,
.frqf-photos__filter:not(.is-active):focus-visible {
	background: #e1d4a2;
}

/* Keep the homepage gallery to four square-thumbnail rows; scroll within it. */
body .frqf-photos .frqf-photos__grid {
	max-height: min(1200px, calc(100vw - 36px));
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

@media (max-width: 900px) {
	body .frqf-photos .frqf-photos__grid {
		max-height: min(1200px, calc((100vw - 36px) * 4 / 3));
	}
}

@media (max-width: 620px) {
	body .frqf-photos .frqf-photos__grid {
		max-height: min(1200px, calc((100vw - 20px) * 2));
	}
}

.frqf-agenda__day.is-today,
.frqf-agenda__day.is-today[aria-pressed="true"] {
	background: var(--frqf-gold) !important;
	color: #fff !important;
}

.frqf-agenda__day.has-event.is-today {
	box-shadow: inset 0 0 0 2px var(--frqf-green) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline-color: var(--frqf-green);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
