:root {
	--ma-primary: var(--wp--preset--color--primary, #123f67);
	--ma-accent: var(--wp--preset--color--secondary, #1976a8);
	--ma-surface: #fff;
	--ma-muted: #5a6773;
	--ma-border: #d4e0e9;
	--ma-soft: #f2f7fb;
	--ma-radius: 16px;
}

.ma-directory,
.ma-detail {
	color: inherit;
}

.ma-directory__intro {
	max-width: 75ch;
	margin: 0 auto 2rem;
	text-align: center;
}

.ma-directory__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .65rem;
	margin: 0 auto 2rem;
}

.ma-directory__filters[hidden] {
	display: none;
}

.ma-filter {
	min-height: 44px;
	padding: .65rem 1rem;
	color: var(--ma-primary);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	background: var(--ma-surface);
	border: 2px solid var(--ma-primary);
	border-radius: 999px;
}

.ma-filter:hover,
.ma-filter[aria-pressed="true"] {
	color: #fff;
	background: var(--ma-primary);
}

.ma-filter:focus-visible {
	outline: 3px solid var(--ma-accent);
	outline-offset: 3px;
}

.ma-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 320px));
	gap: 1.25rem;
	justify-content: center;
}

.ma-card {
	display: flex;
	flex-direction: column;
	height: 420px;
	overflow: hidden;
	background: var(--ma-surface);
	border: 1px solid var(--ma-border);
	border-radius: var(--ma-radius);
	box-shadow: 0 8px 24px rgb(18 63 103 / 8%);
}

.ma-card[hidden] {
	display: none;
}

.ma-card__visual {
	flex: 0 0 140px;
	height: 140px;
	overflow: hidden;
	background: var(--ma-soft);
}

.ma-card__visual--default {
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #f2f7fb, #e5eef5);
}

.ma-card__visual > .ma-card__image {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 140px;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
	padding: .75rem;
}

.ma-card__visual > .ma-card__image--default {
	width: min(58%, 150px);
	height: 140px;
	padding: .4rem;
}

.ma-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

.ma-card__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0 0 .75rem;
	font-size: 1.2rem;
	line-height: 1.25;
}

.ma-card__title a {
	color: var(--ma-primary);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

.ma-card__activity,
.ma-card__president {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	margin: 0 0 .75rem;
}

.ma-card__activity {
	-webkit-line-clamp: 3;
}

.ma-card__president {
	-webkit-line-clamp: 2;
	color: var(--ma-muted);
}

.ma-card__link {
	margin: auto 0 0;
	padding-top: .5rem;
	font-weight: 700;
}

.ma-card a:focus-visible,
.ma-detail a:focus-visible {
	outline: 3px solid var(--ma-accent);
	outline-offset: 4px;
}

.ma-detail {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 1.5rem;
	max-width: 1100px;
	margin-inline: auto;
}

.ma-detail__visual,
.ma-detail__video,
.ma-detail__facts,
.ma-detail__presentation,
.ma-detail__contact {
	background: var(--ma-surface);
	border: 1px solid var(--ma-border);
	border-radius: var(--ma-radius);
}

.ma-detail__visual {
	grid-column: 1 / -1;
	padding: 1rem;
	text-align: center;
}

.ma-detail__video {
	grid-column: 1 / -1;
	padding: clamp(1.1rem, 3vw, 2rem);
}

.ma-video {
	display: grid;
	min-height: clamp(240px, 45vw, 560px);
	place-items: center;
	overflow: hidden;
	border-radius: 12px;
	background: linear-gradient(145deg, #123f67, #1d5a88);
}

.ma-video__button {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: 999px;
	background: rgb(255 255 255 / 10%);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ma-video__button:hover {
	background: rgb(255 255 255 / 18%);
}

.ma-video__button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

.ma-video__play {
	font-size: 1.5rem;
	line-height: 1;
}

.ma-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	border: 0;
}

.ma-detail__image {
	max-height: 360px;
	width: auto;
	object-fit: contain;
}

.ma-detail__facts,
.ma-detail__presentation,
.ma-detail__contact {
	padding: clamp(1.1rem, 3vw, 2rem);
}

.ma-detail__presentation {
	grid-column: 1;
	grid-row: span 2;
}

.ma-detail__facts,
.ma-detail__contact {
	grid-column: 2;
}

.ma-detail h2 {
	margin-top: 0;
	color: var(--ma-primary);
}

.ma-detail__facts dl,
.ma-detail__contact ul {
	margin: 0;
}

.ma-detail__facts dl > div + div {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ma-border);
}

.ma-detail__facts dt {
	font-weight: 700;
}

.ma-detail__facts dd {
	margin: .2rem 0 0;
}

.ma-detail__contact ul {
	padding-left: 1.15rem;
}

.ma-detail__contact li + li {
	margin-top: .65rem;
}

.ma-detail__footer {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: .25rem;
	font-size: .9rem;
	color: var(--ma-muted);
}

.ma-detail__reviewed,
.ma-detail__report {
	margin: 0;
}

.ma-detail__report {
	width: min(100%, 640px);
}

.ma-report {
	border: 1px solid var(--ma-border);
	border-radius: 10px;
	background: var(--ma-surface);
}

.ma-report summary {
	cursor: pointer;
	padding: .65rem .85rem;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

.ma-report summary:focus-visible,
.ma-report input:focus-visible,
.ma-report textarea:focus-visible,
.ma-report button:focus-visible {
	outline: 3px solid var(--ma-accent);
	outline-offset: 3px;
}

.ma-report form {
	padding: 0 .85rem .85rem;
}

.ma-report label,
.ma-report input,
.ma-report textarea {
	display: block;
	width: 100%;
}

.ma-report input,
.ma-report textarea {
	box-sizing: border-box;
	margin-top: .35rem;
	padding: .65rem;
	border: 1px solid var(--ma-border);
	border-radius: 6px;
	font: inherit;
}

.ma-report button {
	padding: .7rem 1rem;
	border: 0;
	border-radius: 6px;
	background: var(--ma-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ma-report__help,
.ma-report__privacy,
.ma-report__optional {
	font-size: .88rem;
	color: var(--ma-muted);
}

.ma-report__help {
	display: block;
	margin-top: .25rem;
}

.ma-report__status {
	margin: 0 0 .75rem;
	padding: .8rem 1rem;
	border-left: 4px solid var(--ma-accent);
	background: var(--ma-soft);
}

.ma-report__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ma-empty {
	padding: 1rem;
	background: var(--ma-soft);
	border-left: 4px solid var(--ma-primary);
}

@media (max-width: 760px) {
	.ma-detail {
		display: block;
	}

	.ma-detail > * + * {
		margin-top: 1rem;
	}

	.ma-detail__footer {
		display: block;
	}

	.ma-detail__report {
		margin-top: .75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ma-card,
	.ma-card a,
	.ma-detail a {
		scroll-behavior: auto;
		transition: none;
	}
}
