.hlng {
	color: inherit;
	font-family: inherit;
	line-height: 1.65;
}

.hlng *,
.hlng *::before,
.hlng *::after {
	box-sizing: border-box;
}

.hlng [hidden] {
	display: none !important;
}

.hlng h2,
.hlng h3,
.hlng h4,
.hlng p,
.hlng label,
.hlng input,
.hlng select,
.hlng button,
.hlng summary {
	color: inherit;
	font-family: inherit;
}

.hlng h2 {
	margin: 0 0 .55em;
	font-size: 1.65em;
}

.hlng h3 {
	margin: 0;
	font-size: 1.3em;
}

.hlng__intro {
	margin: 0 0 1.35em;
}

.hlng__intro p:last-child {
	margin-bottom: 0;
}

.hlng__eyebrow {
	margin: 0 0 .35em;
	font-size: .9em;
	font-weight: 700;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.hlng__form,
.hlng__card {
	min-width: 0;
	padding: clamp(1em, 2.3vw, 1.45em);
	border: 1px solid var(--ast-border-color, rgba(80, 60, 40, .24));
	border-radius: 12px;
	background: var(--ast-global-color-5, var(--wp--preset--color--base, transparent));
}

.hlng__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .95em;
}

.hlng__grid--filters {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 1em;
}

.hlng__grid--secondary {
	margin-top: clamp(2.4em, 4.6vw, 3.6em);
}

.hlng__form--personal .hlng__birth {
	margin-top: 1.25em;
}

.hlng__existing-name {
	margin: 1em 0;
}

.hlng__form:not(.hlng__form--personal) .hlng__grid--primary {
	grid-template-columns: minmax(0, 1fr);
}

.hlng__form:not(.hlng__form--personal) .hlng__grid--secondary {
	display: none;
}

.hlng__field {
	min-width: 0;
}

.hlng__field > label {
	display: block;
	margin-bottom: .35em;
	font-weight: 600;
}

.hlng__field input,
.hlng__field select,
.hlng__options select {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 46px;
	padding: .6em .75em;
	border: 1px solid var(--ast-border-color, #8c8278);
	border-radius: 6px;
	background: var(--ast-global-color-5, var(--wp--preset--color--base, transparent));
	font-size: 1em;
}

.hlng__field input:focus,
.hlng__field select:focus,
.hlng__options select:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.hlng__field small,
.hlng__hint,
.hlng__privacy,
.hlng__disclaimer,
.hlng__sort-note,
.hlng__formula-note {
	display: block;
	margin: .35em 0 0;
	font-size: .88em;
	opacity: .84;
}

.hlng__birth-option {
	margin: 1em 0 .4em;
}

.hlng__birth-option label,
.hlng__options label {
	display: inline-flex;
	align-items: flex-start;
	gap: .5em;
	cursor: pointer;
}

.hlng__birth-fields {
	margin: .8em 0 0;
	padding: 1em;
	border: 1px solid var(--ast-border-color, rgba(80, 60, 40, .24));
	border-radius: 8px;
}

.hlng__birth-fields legend {
	padding: 0 .35em;
	font-weight: 600;
}

.hlng__options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .8em 1.2em;
	margin-top: 1em;
}

.hlng__options label:first-child {
	margin-right: auto;
}

.hlng__options select {
	width: auto;
	min-width: 6em;
}

.hlng__button {
	display: inline-block;
	margin-top: 1.15em;
	padding: .75em 1.25em;
	border: 1px solid var(--ast-global-color-0, currentColor);
	border-radius: 7px;
	background: var(--ast-global-color-0, currentColor);
	color: var(--ast-global-color-5, #fff) !important;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.hlng__button:hover,
.hlng__button:focus {
	filter: brightness(.92);
}

.hlng__privacy,
.hlng__disclaimer {
	margin: .85em 0 0;
}

.hlng__message {
	margin: 1em 0;
	padding: .8em 1em;
	border-radius: 8px;
	background: rgba(190, 135, 40, .12);
}

.hlng__message--error {
	border-inline-start: 4px solid #a53628;
}

.hlng__results {
	margin-top: 2em;
}

.hlng__results-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: .7em;
}

.hlng__results-heading h2 {
	margin-bottom: 0;
}

.hlng__result-count {
	margin: 0 0 .2em;
	font-weight: 700;
}

.hlng__sort-note {
	margin-bottom: 1em;
}

.hlng__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1em;
}

.hlng__card {
	padding: 1.1em;
}

.hlng__card-top {
	display: flex;
	align-items: center;
	gap: .75em;
}

.hlng__rank {
	display: inline-grid;
	flex: 0 0 2em;
	width: 2em;
	height: 2em;
	place-items: center;
	border-radius: 50%;
	background: var(--ast-global-color-0, #7b5228);
	color: var(--ast-global-color-5, #fff);
	font-size: .9em;
	font-weight: 700;
}

.hlng__card-top h3 {
	font-size: 1.45em;
	line-height: 1.25;
}

.hlng__components {
	margin: .55em 0 .4em;
	font-size: .9em;
	opacity: .8;
}

.hlng__meaning {
	margin: .25em 0 .85em;
}

.hlng__metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .5em;
	margin: .8em 0;
}

.hlng__metric {
	min-width: 0;
	padding: .6em .65em;
	border-radius: 8px;
	background: rgba(127, 94, 55, .09);
}

.hlng__metric span,
.hlng__metric strong {
	display: block;
}

.hlng__metric span {
	font-size: .78em;
	line-height: 1.35;
}

.hlng__metric strong {
	margin-top: .2em;
	font-size: 1.2em;
}

.hlng__thaksa-check {
	margin: .7em 0;
}

.hlng__status {
	display: inline-flex;
	align-items: center;
	gap: .3em;
	font-size: .9em;
	font-weight: 600;
}

.hlng__status--good {
	color: #276b40;
}

.hlng__status--caution {
	color: #a54a1a;
}

.hlng__details {
	margin-top: .75em;
	padding-top: .65em;
	border-top: 1px solid var(--ast-border-color, rgba(80, 60, 40, .18));
}

.hlng__details summary {
	font-weight: 600;
	cursor: pointer;
}

.hlng__details p {
	margin: .6em 0 0;
}

.hlng--notice {
	padding: 1em;
	border: 1px solid var(--ast-border-color, rgba(80, 60, 40, .24));
	border-radius: 8px;
}

@media (max-width: 760px) {
	.hlng__grid--filters,
	.hlng__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.hlng__grid,
	.hlng__grid--filters,
	.hlng__cards {
		grid-template-columns: 1fr;
	}

	.hlng__metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hlng__results-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: .15em;
	}

	.hlng__grid--secondary {
		margin-top: 1em;
	}
}
