/**
 * Layout and type for the "Community Arts Directory page" pattern
 * (patterns/directory-page.php). The pattern is built from core blocks with
 * the class names below, so editors can still restyle any of them.
 * Styles for the aea/directory-* blocks themselves live with each block.
 */

.aea-directory-page {
	background: #ffffff;
	color: #111111;
}

.aea-directory-page .entry-content > * {
	margin-block-start: 0;
}

/* Hero */
.aea-directory-hero {
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: 40px;
}

.aea-directory-hero__columns {
	gap: 32px 48px;
}

.aea-directory-hero__columns > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.aea-directory-hero__columns > .wp-block-column > * {
	margin-block: 0;
}

.aea-directory-eyebrow {
	font-family: var(--wp--preset--font-family--dm-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64676d;
}

.aea-directory-headline {
	font-size: clamp(40px, 5.4vw, 68px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.aea-directory-lede {
	max-width: 560px;
	font-size: 16px;
	line-height: 1.6;
	color: #3b3c40;
	text-wrap: pretty;
}

/* Pill buttons (also available as block styles on any Button). */
.wp-block-button.is-style-aea-pill > .wp-block-button__link,
.wp-block-button.is-style-aea-pill-outline > .wp-block-button__link {
	padding: 14px 22px;
	border: 1.5px solid #111111;
	border-radius: 999px;
	background: #111111;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.wp-block-button.is-style-aea-pill-outline > .wp-block-button__link {
	background: transparent;
	color: #111111;
}

.wp-block-button.is-style-aea-pill > .wp-block-button__link:hover,
.wp-block-button.is-style-aea-pill > .wp-block-button__link:focus-visible {
	background: #3b3c40;
	border-color: #3b3c40;
	color: #ffffff;
}

.wp-block-button.is-style-aea-pill-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-aea-pill-outline > .wp-block-button__link:focus-visible {
	background: #111111;
	color: #ffffff;
}

/* Grey band holding the charts. */
.aea-directory-band {
	padding-top: 56px;
	padding-bottom: 56px;
	background: #f1f2f1;
}

.aea-directory-band > * + * {
	margin-block-start: 32px;
}

.aea-directory-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.aea-directory-section-head > * {
	margin: 0;
}

.aea-directory-section-head p {
	font-size: 14px;
	color: #54565b;
}

.aea-directory-band h2,
.aea-directory-main > h2 {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

/* Search + results. */
.aea-directory-main {
	padding-top: 56px;
	padding-bottom: 96px;
	scroll-margin-top: 24px;
}

.aea-directory-main > * + * {
	margin-block-start: 20px;
}

.aea-directory-main > h2 + .wp-block-aea-directory-search {
	margin-block-start: 6px;
}

.aea-directory-note {
	max-width: 720px;
	font-size: 13px;
	line-height: 1.5;
	color: #64676d;
}
