.nn-find-chapter {
	--nn-blue: #176b8c;
	--nn-blue2: #0e536d;
	--nn-gold: #c59b3d;
	--nn-ink: #17313d;
	--nn-muted: #5b6b73;
	--nn-bg: #f5f8fa;
	--nn-card: #fff;
	--nn-line: #d8e2e7;
	box-sizing: border-box;
	max-width: 820px;
	margin: 0 auto;
	padding: 0;
	color: var(--nn-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.nn-find-chapter *,
.nn-find-chapter *::before,
.nn-find-chapter *::after {
	box-sizing: border-box;
}

.nn-find-chapter .nn-fac-card {
	background: var(--nn-card);
	border: 1px solid var(--nn-line);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 5px 20px rgba(23, 49, 61, 0.07);
}

.nn-find-chapter .nn-fac-title {
	margin: 0 0 5px;
	font-size: 30px;
	line-height: 1.2;
	color: var(--nn-blue2);
}

.nn-find-chapter .nn-fac-sub {
	margin: 0 0 24px;
	color: var(--nn-muted);
	font-size: 16px;
}

.nn-find-chapter .nn-fac-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nn-find-chapter .nn-fac-search {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	position: relative;
	margin: 0;
}

.nn-find-chapter .nn-fac-input {
	flex: 1;
	min-width: 220px;
	font-size: 22px;
	padding: 13px 15px;
	border: 2px solid #b9cbd4;
	border-radius: 10px;
	letter-spacing: 2px;
	background: #fff;
	color: var(--nn-ink);
}

.nn-find-chapter .nn-fac-button {
	font-size: 17px;
	font-weight: 700;
	padding: 13px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--nn-blue);
	color: #fff;
	cursor: pointer;
}

.nn-find-chapter .nn-fac-button:hover,
.nn-find-chapter .nn-fac-button:focus {
	background: var(--nn-blue2);
}

.nn-find-chapter .nn-fac-result {
	margin-top: 24px;
	border-top: 4px solid var(--nn-gold);
	background: #fbfcfd;
	border-radius: 10px;
	padding: 20px;
}

.nn-find-chapter .nn-fac-city {
	font-size: 21px;
	font-weight: 700;
	margin-bottom: 12px;
}

.nn-find-chapter .nn-fac-chapter {
	font-size: 25px;
	font-weight: 800;
	color: var(--nn-blue2);
	margin: 4px 0;
}

.nn-find-chapter .nn-fac-section {
	font-size: 18px;
	margin: 4px 0 14px;
}

.nn-find-chapter .nn-fac-badge {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: #e5f1f6;
	color: #145873;
}

.nn-find-chapter .nn-fac-badge.is-nearest {
	background: #fff2cc;
	color: #7a5a00;
}

.nn-find-chapter .nn-fac-note {
	margin-top: 12px;
	color: var(--nn-muted);
	font-size: 14px;
	line-height: 1.45;
}

.nn-find-chapter .nn-fac-note a {
	color: var(--nn-blue2);
}

.nn-find-chapter .nn-fac-error {
	margin-top: 18px;
	color: #9e2a2b;
	font-weight: 600;
}

.nn-find-chapter .nn-fac-spinner {
	margin-top: 16px;
	color: var(--nn-muted);
}

.nn-find-chapter .nn-fac-footer {
	margin-top: 18px;
	color: var(--nn-muted);
	font-size: 12px;
	line-height: 1.5;
}

.nn-find-chapter [hidden] {
	display: none !important;
}

@media (max-width: 550px) {
	.nn-find-chapter .nn-fac-card {
		padding: 20px;
	}

	.nn-find-chapter .nn-fac-title {
		font-size: 25px;
	}

	.nn-find-chapter .nn-fac-button {
		width: 100%;
	}
}
