.lhn {
	--lhn-accent: #2563eb;
	--lhn-accent-ink: #fff;
	--lhn-border: rgba(127, 127, 127, 0.28);
	--lhn-muted: rgba(127, 127, 127, 0.95);
	--lhn-surface: rgba(127, 127, 127, 0.06);
	--lhn-radius: 10px;
	box-sizing: border-box;
	margin: 1.5em 0;
}

.lhn *,
.lhn *::before,
.lhn *::after {
	box-sizing: inherit;
}

/* Filters */
.lhn-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.lhn-filters select {
	flex: 1 1 140px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--lhn-border);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.lhn-filters select option {
	color: #111;
}

/* Buttons */
.lhn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border: 1px solid var(--lhn-accent);
	border-radius: 8px;
	background: var(--lhn-accent);
	color: var(--lhn-accent-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.lhn-btn:hover,
.lhn-btn:focus-visible {
	filter: brightness(1.08);
	color: var(--lhn-accent-ink);
}

.lhn-btn-ghost {
	background: transparent;
	color: var(--lhn-accent);
}

.lhn-btn-ghost:hover,
.lhn-btn-ghost:focus-visible {
	color: var(--lhn-accent);
	background: var(--lhn-surface);
}

/* Badges */
.lhn-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.lhn-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

.lhn-badge-type {
	background: #eef2ff;
	color: #3730a3;
}

.lhn-status-open {
	background: #dcfce7;
	color: #166534;
}

.lhn-status-upcoming {
	background: #dbeafe;
	color: #1e40af;
}

.lhn-status-closed {
	background: #f3f4f6;
	color: #4b5563;
}

/* Map */
.lhn-map {
	width: 100%;
	background: #aad3df;
	border: 1px solid var(--lhn-border);
	border-radius: var(--lhn-radius);
	overflow: hidden;
	z-index: 0;
}

.lhn-map-error {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	color: var(--lhn-muted);
}

/* Wide screens: a short, wide map can only show Korea together with China and Japan,
   so the map keeps a near-square shape centered on the page. */
@media (min-width: 760px) {
	.lhn-map-wrap .lhn-map {
		max-width: 680px;
		min-height: 620px;
		margin-inline: auto;
	}
	.lhn-map-wrap .lhn-legend {
		justify-content: center;
	}
	.lhn-map-wrap .lhn-map-count {
		text-align: center;
	}
}

.lhn-map-count {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--lhn-muted);
}

.lhn-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 10px;
	font-size: 13px;
}

.lhn-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lhn-legend-item i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.lhn-popup {
	min-width: 200px;
	max-width: 260px;
	padding: 4px 2px;
	font-size: 13px;
	line-height: 1.5;
	color: #111;
}

.lhn-popup-title {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #1d4ed8;
	text-decoration: none;
}

.lhn-popup-title:hover {
	text-decoration: underline;
}

.lhn-popup-row {
	color: #4b5563;
}

.lhn-popup-note {
	margin-top: 4px;
	font-size: 12px;
	color: #9ca3af;
}

.lhn-kakao-dot {
	width: 18px;
	height: 18px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

/* List */
.lhn-result-count {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--lhn-muted);
}

.lhn-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lhn-card {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--lhn-border);
	border-radius: var(--lhn-radius);
}

.lhn-card-title {
	margin: 0 0 10px;
	font-size: 1.05em;
	line-height: 1.4;
}

.lhn-card-title a {
	color: inherit;
	text-decoration: none;
}

.lhn-card-title a:hover {
	text-decoration: underline;
}

.lhn-card-meta {
	margin: 0;
	font-size: 14px;
}

.lhn-card-meta div {
	display: flex;
	gap: 10px;
	padding: 2px 0;
}

.lhn-card-meta dt {
	flex: 0 0 36px;
	margin: 0;
	color: var(--lhn-muted);
	font-weight: 400;
}

.lhn-card-meta dd {
	margin: 0;
}

.lhn-empty {
	padding: 24px;
	border: 1px dashed var(--lhn-border);
	border-radius: var(--lhn-radius);
	text-align: center;
	color: var(--lhn-muted);
}

.lhn-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin-top: 16px;
}

.lhn-pagination .page-numbers {
	min-width: 36px;
	padding: 6px 10px;
	border: 1px solid var(--lhn-border);
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
}

.lhn-pagination .page-numbers.current {
	background: var(--lhn-accent);
	border-color: var(--lhn-accent);
	color: var(--lhn-accent-ink);
}

.lhn-pagination .page-numbers.dots {
	border-color: transparent;
}

/* Details (single notice) */
.lhn-details-table {
	width: 100%;
	margin: 0 0 12px;
	border-collapse: collapse;
}

.lhn-details-table th,
.lhn-details-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--lhn-border);
	text-align: left;
	vertical-align: top;
}

.lhn-details-table th {
	width: 30%;
	white-space: nowrap;
	font-weight: 600;
	color: var(--lhn-muted);
}

.lhn-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lhn-help {
	font-size: 0.85em;
	color: var(--lhn-muted);
}

/* Subscribe */
.lhn-subscribe form {
	display: grid;
	gap: 14px;
	padding: 20px;
	border: 1px solid var(--lhn-border);
	border-radius: var(--lhn-radius);
}

.lhn-field {
	display: grid;
	gap: 6px;
	font-weight: 600;
}

.lhn-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--lhn-border);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 400;
}

.lhn-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	border: 0;
}

.lhn-checks legend {
	width: 100%;
	margin-bottom: 6px;
	padding: 0;
	font-weight: 600;
}

.lhn-checks label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.95em;
}

.lhn-subscribe .lhn-help {
	margin: 0;
}

.lhn-subscribe .lhn-btn {
	justify-self: start;
}

/* "알림 신청하기": full width and big, like the app's main buttons */
.lhn-subscribe .lhn-btn.lhn-subscribe-submit {
	justify-self: stretch;
	width: 100%;
	min-width: 0;
	min-height: 60px;
	margin-top: 4px;
	border-radius: 14px;
	font-size: 20px;
	font-weight: 800;
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

.lhn-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lhn-alert {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.lhn-alert-ok {
	background: #dcfce7;
	color: #166534;
}

.lhn-alert-info {
	background: #dbeafe;
	color: #1e40af;
}

.lhn-alert-error {
	background: #fee2e2;
	color: #991b1b;
}

/* FAQ */
.lhn-faq details {
	border-bottom: 1px solid var(--lhn-border);
}

.lhn-faq summary {
	padding: 14px 4px;
	font-weight: 600;
	cursor: pointer;
}

.lhn-faq-a {
	padding: 0 4px 14px;
	color: var(--lhn-muted);
	line-height: 1.7;
}

/* Links */
.lhn-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.lhn-link-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 16px;
	border: 1px solid var(--lhn-border);
	border-radius: var(--lhn-radius);
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.lhn-link-card:hover,
.lhn-link-card:focus-visible {
	border-color: var(--lhn-accent);
	color: var(--lhn-accent);
}

.lhn-list-wrap.lhn-loading .lhn-cards,
.lhn-list-wrap.lhn-loading .lhn-pagination {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s;
}

/* Large call-to-action buttons on the notice detail page, centered */
.lhn-details .lhn-actions {
	justify-content: center;
	margin: 24px 0 8px;
	gap: 10px;
}

.lhn-details .lhn-help {
	text-align: center;
}

.lhn-btn.lhn-btn-lg {
	gap: 8px;
	min-width: 260px;
	min-height: 56px;
	padding: 14px 32px;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.lhn-btn.lhn-btn-ghost.lhn-btn-lg {
	box-shadow: none;
}

@media (max-width: 600px) {
	.lhn-actions .lhn-btn.lhn-btn-lg {
		flex: 1 1 100%;
		min-width: 0;
	}
}

/* "공고 원문 보기": the biggest thing on the detail page — full width, tall, large text */
.lhn-details .lhn-actions .lhn-btn.lhn-btn-lg:not(.lhn-btn-ghost) {
	flex: 1 1 100%;
	min-height: 76px;
	padding: 18px 24px;
	border-radius: 14px;
	font-size: 24px;
	font-weight: 800;
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3);
}

.lhn-details .lhn-actions .lhn-btn.lhn-btn-ghost.lhn-btn-lg {
	flex: 1 1 100%;
}

@media (max-width: 600px) {
	.lhn-details .lhn-actions .lhn-btn.lhn-btn-lg:not(.lhn-btn-ghost) {
		min-height: 64px;
		font-size: 20px;
	}
}

/* Map and list on one page share the map's filter bar (see list.js) */
.lhn-list-wrap.lhn-list-linked .lhn-filters {
	display: none;
}


/* Themes indent lists inside post content (e.g. Kadence: .single-content ul { padding-left: 2em }).
   Higher specificity keeps the plugin's card grids centered. */
.lhn ul.lhn-cards,
.lhn ul.lhn-check-results,
.lhn ul.lhn-reasons {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	list-style: none;
}

/* ===== 하단 메뉴 (nav.php) ===== */
.lhn-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	padding: 0 0 env(safe-area-inset-bottom);
	background: #fff;
	border-top: 1px solid #e5e8ee;
	box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
	font-family: inherit;
}

.lhn-bottom-nav-inner {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	max-width: 640px;
	margin: 0 auto;
}

.lhn-bottom-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 60px;
	padding: 6px 2px;
	color: #8a94a6;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.lhn-bottom-nav-item svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lhn-bottom-nav-item:hover,
.lhn-bottom-nav-item:focus-visible {
	color: #2563eb;
	text-decoration: none;
}

.lhn-bottom-nav-item.is-active {
	color: #2563eb;
}

/* Keep the page footer and content clear of the fixed menu. */
body.lhn-has-bottom-nav {
	padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

/* On wide screens it floats as a centered pill instead of a full-width bar. */
@media (min-width: 900px) {
	.lhn-bottom-nav {
		left: 50%;
		right: auto;
		bottom: 16px;
		width: 560px;
		transform: translateX(-50%);
		border: 1px solid #e5e8ee;
		border-radius: 18px;
		box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
		padding: 0;
	}

	body.lhn-has-bottom-nav {
		padding-bottom: 96px;
	}
}

@media print {
	.lhn-bottom-nav { display: none; }
}

@media (max-width: 600px) {
	.lhn-details-table th { width: 88px; padding-left: 4px; }
	.lhn-details-table td { padding-right: 4px; }
}
