body {
	margin: 0;
	background: #fbf7f2;
	color: #2c2825;
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.45;
}

.site {
	max-width: 1080px;
	margin: 0 auto;
	background: #ffffff;
	min-height: 100vh;
}

.site-header {
	padding: 1.25rem 1.25rem 0.5rem;
}

.site-brand-wrap {
	margin: 0 0 0.2rem;
	font-size: 1.7rem;
	font-weight: 750;
	line-height: 1.1;
}

a.site-brand,
a.site-brand:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: #1b4336;
	font-weight: 750;
	font-size: 1.7rem;
	letter-spacing: -0.03em;
	text-decoration: none;
	background: transparent;
}

.site-logo {
	display: block;
	height: 148px;
	width: auto;
}

a.site-brand:hover {
	color: #2f9a72;
	background: transparent;
	text-decoration: none;
}

.site-title {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
	color: #6b625a;
}

.site-nav,
.site-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
	padding: 0;
}

.site-nav a,
.site-subnav a,
a.adv-toggle {
	color: #2f9a72;
	text-decoration: none;
	background: #e3f6ee;
	border-radius: 999px;
	padding: 0.28rem 0.7rem;
	font-size: 0.92rem;
}

a.adv-toggle {
	background: transparent;
	padding: 0;
	border-radius: 0;
	font-weight: 650;
}

.site-nav a.is-current,
.site-nav a.is-current:hover {
	background: #2f9a72;
	color: #fff;
}

.language-input {
	display: none;
}

.site-nav a:hover,
.site-subnav a:hover,
a.name-link:hover,
a.alpha-chip:hover,
.pager a:hover {
	background: #2f9a72;
	color: #fff;
	text-decoration: none;
}

.ad-slot {
	max-width: 100%;
	overflow-x: auto;
	margin: 0.5rem 0 1rem;
}

.site-main {
	padding: 0 1.25rem 1.5rem;
}

.listing-layout {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.listing-main {
	flex: 1 1 auto;
	min-width: 0;
}

.listing-ad {
	flex: 0 0 170px;
	max-width: 100%;
}

.listing-suggest {
	flex: 0 0 250px;
	max-width: 100%;
}

.listing-suggest input,
.listing-suggest select,
.listing-suggest textarea,
.listing-suggest button {
	max-width: 100%;
	box-sizing: border-box;
}

.listing-suggest table {
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	background: #f4fbf7;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	overflow: hidden;
}

.listing-suggest td {
	padding: 0.35rem 0.55rem;
	vertical-align: top;
}

.search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.25rem 0 1rem;
}

.search-row select,
.search-row input,
.search-row button,
.adv-panel select,
.adv-panel input,
.adv-panel button,
.listing-suggest input,
.listing-suggest select,
.listing-suggest textarea,
.listing-suggest button {
	font: inherit;
	padding: 0.45rem 0.65rem;
	border: 1px solid #e0d6cb;
	border-radius: 8px;
	background: #fff;
	color: #2c2825;
}

.search-row input[type="text"] {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.search-row button,
.adv-actions button,
.listing-suggest button {
	background: #2f9a72;
	color: #fff;
	border-color: #2f9a72;
	cursor: pointer;
}

a.adv-toggle {
	display: inline-block;
	margin-bottom: 0.6rem;
}

.adv-panel {
	background: #f4fbf7;
	border-radius: 12px;
	padding: 0.85rem;
	margin-bottom: 1rem;
}

.adv-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1rem;
	align-items: center;
}

.adv-fields label {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	font-size: 0.92rem;
}

.adv-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.alpha-block {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin-bottom: 1.1rem;
}

.gender-toggle {
	display: flex;
	gap: 0.4rem;
}

a.gender-choice,
a.gender-choice:visited {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	padding: 0.4rem 0.8rem;
	border-radius: 10px;
	background: #fbf7f2;
	color: #1b4336;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
}

a.gender-choice.is-current,
a.gender-choice.is-current:hover {
	background: #2f9a72;
	color: #fff;
}

a.gender-choice:hover {
	background: #e3f6ee;
	color: #1b4336;
	text-decoration: none;
}

.sex-input {
	display: none;
}

.alpha-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	align-items: center;
}

.alpha-label {
	flex: 0 0 2.6rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b625a;
}

a.alpha-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.7rem;
	height: 1.7rem;
	padding: 0 0.25rem;
	border-radius: 6px;
	background: #fbf7f2;
	color: #2c2825;
	text-decoration: none;
	font-size: 0.92rem;
}

a.alpha-chip.is-current,
a.alpha-chip.is-current:hover {
	background: #2f9a72;
	color: #fff;
}

.results-title {
	margin: 0.2rem 0 0.8rem;
	font-size: 1.2rem;
	font-weight: 650;
	color: #24362e;
}

.name-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.name-card {
	padding: 0.85rem 0;
	border-top: 1px solid #efe7de;
}

a.name-link,
a.name-link:visited {
	color: #24362e;
	font-size: 1.15rem;
	font-weight: 650;
	text-decoration: none;
	background: transparent;
	padding: 0;
	border-radius: 0;
}

a.name-link:hover {
	background: transparent;
	color: #2f9a72;
	text-decoration: underline;
}

.name-script {
	margin-top: 0.15rem;
	color: #6b625a;
	font-size: 0.95rem;
}

.name-meaning {
	margin: 0.25rem 0 0;
	color: #4a453f;
}

.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.4rem 0 0.8rem;
}

.pager a,
.pager a:visited,
.pager .is-current,
.pager .pager-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.45rem;
	border-radius: 8px;
	background: #fbf7f2;
	color: #2c2825;
	text-decoration: none;
}

.pager a.is-current,
.pager .is-current,
.pager a.pager-step {
	font-weight: 650;
}

.pager .is-current {
	background: #2f9a72;
	color: #fff;
}

.pager .pager-step.is-disabled {
	color: #b5ada4;
}

.pager .pager-gap {
	display: inline-flex;
	align-items: center;
	color: #6b625a;
	padding: 0 0.1rem;
}

.name-detail {
	font-size: 1.15rem;
	line-height: 1.5;
}

.name-detail h2,
.name-detail h3,
.name-detail h4,
.name-detail h5 {
	margin: 0.95rem 0 0.5rem;
	color: #24362e;
	font-weight: 650;
	line-height: 1.3;
}

.name-detail h2 {
	font-size: 1.55rem;
}

.name-detail h3 {
	font-size: 1.4rem;
}

.name-detail h4,
.name-detail h5 {
	font-size: 1.25rem;
}

.detail-lead {
	margin: 0.2rem 0 0.9rem;
	color: #4a453f;
	font-size: 1.2rem;
}

.detail-name {
	display: block;
	font-size: 2.6rem;
	font-weight: 700;
	color: #24362e;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 0.25rem;
}

.name-detail .name-script {
	font-size: 1.35rem;
	margin: 0.2rem 0 0.6rem;
}

.fact-list {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 0.55rem 1rem;
	margin: 0.7rem 0 1.1rem;
	font-size: 1.15rem;
}

.fact-list div {
	display: contents;
}

.fact-list dt {
	color: #6b625a;
	font-size: 1.05rem;
}

.fact-list dd {
	margin: 0;
	font-size: 1.2rem;
}

.related-links {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.related-links br {
	display: none;
}

a.related-link,
a.related-link:visited {
	display: inline-flex;
	align-items: center;
	color: #2f9a72;
	text-decoration: none;
	background: #e3f6ee;
	border-radius: 999px;
	padding: 0.38rem 0.85rem;
	font-size: 1.05rem;
	line-height: 1.3;
	white-space: nowrap;
}

a.related-link:hover {
	background: #2f9a72;
	color: #fff;
	text-decoration: none;
}

.home-intro {
	margin: 0.2rem 0 1.2rem;
	max-width: 42rem;
	color: #4a453f;
	font-size: 1.08rem;
	line-height: 1.55;
}

.home-intro p {
	margin: 0;
}

.site-footer {
	padding: 1rem 1.25rem 1.5rem;
	color: #6b625a;
	font-size: 0.9rem;
	border-top: 1px solid #efe7de;
}

.site-footer a {
	color: #2f9a72;
	text-decoration: none;
	margin-left: 0.8rem;
}

@media (max-width: 700px) {
	.site-header,
	.site-main {
		padding-left: 0.9rem;
		padding-right: 0.9rem;
	}

	.listing-layout {
		flex-direction: column;
		align-items: stretch;
	}

	.listing-main,
	.listing-suggest,
	.listing-ad {
		width: 100%;
		max-width: 100%;
		flex: 1 1 auto;
	}

	.listing-main {
		order: 1;
	}

	.listing-suggest {
		order: 2;
		width: 100%;
	}

	.listing-ad {
		order: 3;
		width: 100%;
	}

	.site-brand,
	.site-brand-wrap {
		font-size: 1.35rem;
	}

	a.site-brand {
		font-size: 1.35rem;
	}
}
