.ma80-directory {
	--ma80-navy: #102f46;
	--ma80-teal: #086c78;
	--ma80-teal-dark: #07545f;
	--ma80-gold: #e6b94f;
	--ma80-ink: #183447;
	--ma80-muted: #5f7280;
	--ma80-line: #dce7eb;
	--ma80-soft: #f3f8f9;
	--ma80-surface: #ffffff;
	--ma80-danger: #a82a2a;
	position: relative;
	width: 100%;
	margin: 32px auto;
	color: var(--ma80-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.ma80-directory,
.ma80-directory * {
	box-sizing: border-box;
}

.ma80-directory button,
.ma80-directory input,
.ma80-directory select {
	font: inherit;
}

.ma80-directory [hidden] {
	display: none !important;
}

.ma80-directory__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 220px;
	padding: 42px 48px 66px;
	overflow: hidden;
	border-radius: 26px;
	background:
		radial-gradient(circle at 78% 14%, rgba(230, 185, 79, 0.2), transparent 28%),
		linear-gradient(125deg, var(--ma80-navy), var(--ma80-teal));
	box-shadow: 0 18px 48px rgba(16, 47, 70, 0.18);
	color: #fff;
}

.ma80-directory__header::before,
.ma80-directory__header::after {
	position: absolute;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
}

.ma80-directory__header::before {
	right: -105px;
	top: -185px;
	width: 430px;
	height: 430px;
}

.ma80-directory__header::after {
	right: 80px;
	top: -112px;
	width: 315px;
	height: 315px;
}

.ma80-directory__heading {
	position: relative;
	z-index: 1;
	max-width: 680px;
}

.ma80-directory__kicker {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 12px;
	border: 1px solid rgba(230, 185, 79, 0.55);
	border-radius: 999px;
	background: rgba(230, 185, 79, 0.12);
	color: #ffe19a;
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.11em;
	line-height: 1;
	text-transform: uppercase;
}

.ma80-directory__header h2 {
	margin: 14px 0 5px;
	padding: 0;
	border: 0;
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.1rem);
	font-weight: 780;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.ma80-directory__intro,
.ma80-directory__intro p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.02rem;
}

.ma80-directory__mark {
	position: relative;
	z-index: 1;
	display: grid;
	place-content: center;
	width: 130px;
	height: 130px;
	margin-left: 32px;
	flex: 0 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.09);
	box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.04);
	text-align: center;
	backdrop-filter: blur(8px);
}

.ma80-directory__mark span {
	display: block;
	color: var(--ma80-gold);
	font-size: 3.4rem;
	font-weight: 800;
	letter-spacing: -0.08em;
	line-height: 0.85;
}

.ma80-directory__mark small {
	display: block;
	margin-top: 8px;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.ma80-filters {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: end;
	margin: -38px 24px 0;
	padding: 22px;
	border: 1px solid rgba(220, 231, 235, 0.9);
	border-radius: 19px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 16px 42px rgba(22, 57, 76, 0.14);
}

.ma80-field {
	min-width: 0;
}

.ma80-field label {
	display: block;
	margin: 0 0 7px;
	color: var(--ma80-ink);
	font-size: 0.77rem;
	font-weight: 750;
	letter-spacing: 0.035em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ma80-field input,
.ma80-field select {
	display: block;
	width: 100%;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #cbdade;
	border-radius: 11px;
	background-color: #fff;
	box-shadow: none;
	color: var(--ma80-ink);
	font-size: 0.95rem;
	line-height: 1;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ma80-field select {
	padding-right: 34px;
	cursor: pointer;
}

.ma80-field select:disabled {
	cursor: wait;
	opacity: 0.62;
}

.ma80-field input::placeholder {
	color: #8797a1;
	opacity: 1;
}

.ma80-search-control {
	position: relative;
}

.ma80-search-control svg {
	position: absolute;
	z-index: 1;
	left: 14px;
	top: 50%;
	color: var(--ma80-teal);
	pointer-events: none;
	transform: translateY(-50%);
}

.ma80-search-control input {
	padding-left: 43px;
}

.ma80-field input:hover,
.ma80-field select:hover {
	border-color: #9bb8c0;
}

.ma80-field input:focus,
.ma80-field select:focus {
	border-color: var(--ma80-teal);
	box-shadow: 0 0 0 3px rgba(8, 108, 120, 0.15);
	outline: 0;
}

.ma80-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 17px;
	border: 1px solid #cbdade;
	border-radius: 11px;
	background: var(--ma80-soft);
	box-shadow: none;
	color: var(--ma80-teal-dark);
	cursor: pointer;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ma80-reset svg {
	margin-right: 7px;
}

.ma80-reset:hover {
	border-color: var(--ma80-teal);
	background: #e8f3f4;
	color: var(--ma80-teal);
	transform: translateY(-1px);
}

.ma80-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 54px;
	margin: 20px 2px 8px;
}

.ma80-status {
	margin: 0;
	color: var(--ma80-muted);
	font-size: 0.92rem;
	font-weight: 650;
}

.ma80-active-filter {
	max-width: 60%;
	padding: 6px 10px;
	overflow: hidden;
	border-radius: 999px;
	background: #e9f4f5;
	color: var(--ma80-teal-dark);
	font-size: 0.78rem;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ma80-table-shell {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--ma80-line);
	border-radius: 17px;
	background: var(--ma80-surface);
	box-shadow: 0 12px 34px rgba(28, 63, 80, 0.09);
}

.ma80-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	transition: opacity 160ms ease;
}

.ma80-directory.is-loading .ma80-table-scroll {
	opacity: 0.6;
}

.ma80-table {
	width: 100%;
	min-width: 780px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	font-size: 0.94rem;
}

.ma80-table thead th {
	position: sticky;
	z-index: 1;
	top: 0;
	padding: 15px 18px;
	border: 0;
	border-bottom: 1px solid #d4e2e6;
	background: #edf5f6;
	color: #294958;
	font-size: 0.75rem;
	font-weight: 780;
	letter-spacing: 0.055em;
	line-height: 1.25;
	text-align: left;
	text-transform: uppercase;
}

.ma80-table thead th:first-child {
	width: 22%;
}

.ma80-table thead th:nth-child(2) {
	width: 21%;
}

.ma80-table thead th:nth-child(3) {
	width: 20%;
}

.ma80-table tbody td {
	padding: 15px 18px;
	border: 0;
	border-bottom: 1px solid #e5edef;
	background: #fff;
	color: var(--ma80-ink);
	text-align: left;
	vertical-align: middle;
}

.ma80-table tbody tr:last-child td {
	border-bottom: 0;
}

.ma80-table tbody tr:not(.ma80-loading-row):not(.ma80-empty-row) td {
	transition: background-color 140ms ease;
}

.ma80-table tbody tr:not(.ma80-loading-row):not(.ma80-empty-row):hover td {
	background: #f8fbfb;
}

.ma80-surname {
	color: #102f46;
	font-weight: 780;
	letter-spacing: 0.008em;
}

.ma80-year {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 3px 9px;
}

.ma80-year strong {
	color: var(--ma80-teal-dark);
	font-size: 1.02rem;
	font-variant-numeric: tabular-nums;
}

.ma80-year small {
	color: #768891;
	font-size: 0.72rem;
	white-space: nowrap;
}

.ma80-school-type {
	display: inline-block;
	padding: 5px 9px;
	border: 1px solid #d6e7e9;
	border-radius: 999px;
	background: var(--ma80-soft);
	color: #315765;
	font-size: 0.75rem;
	font-weight: 650;
	line-height: 1.35;
}

.ma80-loading-row td,
.ma80-empty-row td {
	height: 150px;
	color: var(--ma80-muted);
	text-align: center !important;
}

.ma80-empty-row strong,
.ma80-empty-row span {
	display: block;
}

.ma80-empty-row strong {
	margin-bottom: 4px;
	color: var(--ma80-ink);
	font-size: 1.05rem;
}

.ma80-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 7px;
	border: 2px solid #c7dcdf;
	border-top-color: var(--ma80-teal);
	border-radius: 50%;
	vertical-align: -4px;
	animation: ma80-spin 700ms linear infinite;
}

.ma80-error,
.ma80-noscript {
	margin: 14px 0;
	padding: 15px 17px;
	border: 1px solid #ebc3c3;
	border-radius: 12px;
	background: #fff6f6;
	color: var(--ma80-danger);
}

.ma80-error {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ma80-error p {
	margin: 0;
}

.ma80-error button {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid currentColor;
	border-radius: 9px;
	background: #fff;
	color: inherit;
	cursor: pointer;
	font-weight: 700;
}

.ma80-pagination {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	margin-top: 18px;
}

.ma80-pagination button {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cbdade;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--ma80-ink);
	cursor: pointer;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1;
	transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.ma80-pagination button:hover:not(:disabled):not(.is-current) {
	border-color: var(--ma80-teal);
	background: #eef7f7;
	color: var(--ma80-teal-dark);
	transform: translateY(-1px);
}

.ma80-pagination button.is-current {
	border-color: var(--ma80-teal);
	background: var(--ma80-teal);
	color: #fff;
	cursor: default;
}

.ma80-pagination button:disabled {
	cursor: not-allowed;
	opacity: 0.42;
}

.ma80-pagination__ellipsis {
	min-width: 20px;
	color: var(--ma80-muted);
	text-align: center;
}

.ma80-directory button:focus-visible,
.ma80-directory input:focus-visible,
.ma80-directory select:focus-visible {
	outline: 3px solid rgba(230, 185, 79, 0.72);
	outline-offset: 2px;
}

.ma80-directory .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

@keyframes ma80-spin {
	to { transform: rotate(360deg); }
}

@media (min-width: 1100px) {
	.ma80-filters {
		grid-template-columns: minmax(200px, 1.35fr) minmax(145px, 0.72fr) minmax(220px, 1.15fr) minmax(210px, 1fr) auto;
	}
}

@media (max-width: 900px) {
	.ma80-directory__header {
		min-height: 205px;
		padding: 36px 34px 60px;
	}

	.ma80-directory__mark {
		width: 104px;
		height: 104px;
	}

	.ma80-directory__mark span {
		font-size: 2.8rem;
	}

	.ma80-reset {
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	.ma80-directory {
		margin: 22px auto;
		font-size: 15px;
	}

	.ma80-directory__header {
		min-height: 200px;
		padding: 27px 23px 52px;
		border-radius: 19px;
	}

	.ma80-directory__heading {
		max-width: calc(100% - 58px);
	}

	.ma80-directory__header h2 {
		font-size: clamp(1.85rem, 9vw, 2.5rem);
	}

	.ma80-directory__intro,
	.ma80-directory__intro p {
		font-size: 0.93rem;
	}

	.ma80-directory__mark {
		position: absolute;
		right: 16px;
		top: 18px;
		width: 70px;
		height: 70px;
		margin: 0;
	}

	.ma80-directory__mark span {
		font-size: 2rem;
	}

	.ma80-directory__mark small {
		display: none;
	}

	.ma80-filters {
		grid-template-columns: minmax(0, 1fr);
		gap: 13px;
		margin: -28px 11px 0;
		padding: 17px;
		border-radius: 15px;
	}

	.ma80-reset {
		grid-column: auto;
	}

	.ma80-results-bar {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
		margin: 19px 3px 10px;
	}

	.ma80-active-filter {
		max-width: 100%;
	}

	.ma80-table-shell {
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.ma80-table-scroll {
		overflow: visible;
	}

	.ma80-table {
		display: block;
		min-width: 0;
		background: transparent;
	}

	.ma80-table thead {
		position: absolute !important;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.ma80-table tbody {
		display: grid;
		gap: 12px;
	}

	.ma80-table tbody tr {
		display: block;
		overflow: hidden;
		border: 1px solid var(--ma80-line);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 7px 21px rgba(28, 63, 80, 0.075);
	}

	.ma80-table tbody td {
		display: grid;
		grid-template-columns: minmax(112px, 0.75fr) minmax(0, 1.35fr);
		gap: 12px;
		align-items: start;
		width: 100%;
		padding: 11px 14px;
		border-bottom: 1px solid #e9eff1;
		font-size: 0.92rem;
	}

	.ma80-table tbody td::before {
		content: attr(data-label);
		padding-top: 2px;
		color: #73848e;
		font-size: 0.68rem;
		font-weight: 760;
		letter-spacing: 0.05em;
		line-height: 1.35;
		text-transform: uppercase;
	}

	.ma80-table tbody td:last-child {
		border-bottom: 0;
	}

	.ma80-table tbody tr:not(.ma80-loading-row):not(.ma80-empty-row):hover td {
		background: #fff;
	}

	.ma80-loading-row td,
	.ma80-empty-row td {
		display: block !important;
		height: auto;
		min-height: 130px;
		padding: 48px 20px !important;
		text-align: center !important;
	}

	.ma80-loading-row td::before,
	.ma80-empty-row td::before {
		display: none;
	}

	.ma80-year {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
	}

	.ma80-school-type {
		width: fit-content;
		border-radius: 8px;
	}

	.ma80-error {
		align-items: stretch;
		flex-direction: column;
	}

	.ma80-pagination {
		justify-content: center;
		flex-wrap: wrap;
		gap: 6px;
	}

	.ma80-pagination button {
		min-width: 42px;
		height: 42px;
		padding: 0 10px;
	}
}

@media (max-width: 380px) {
	.ma80-directory__heading {
		max-width: 100%;
	}

	.ma80-directory__mark {
		display: none;
	}

	.ma80-table tbody td {
		grid-template-columns: 100px minmax(0, 1fr);
		padding-right: 11px;
		padding-left: 11px;
	}
}

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

@media print {
	.ma80-directory__header {
		min-height: 0;
		padding: 20px;
		background: #fff !important;
		box-shadow: none;
		color: #000;
	}

	.ma80-directory__header h2,
	.ma80-directory__intro,
	.ma80-directory__intro p {
		color: #000;
	}

	.ma80-directory__mark,
	.ma80-filters,
	.ma80-pagination,
	.ma80-active-filter {
		display: none !important;
	}

	.ma80-table-shell {
		border: 1px solid #bbb;
		box-shadow: none;
	}
}

