/* 자격 진단 (check.js) — used by the WordPress plugin and copied into the mobile app.
   Inside WordPress the colors come from .lhn (frontend.css); the app wraps the screen in .lhn-root. */
.lhn-root {
	--lhn-accent: #2563eb;
	--lhn-accent-ink: #fff;
	--lhn-border: rgba(127, 127, 127, 0.28);
	--lhn-muted: #6b7280;
	--lhn-surface: #f8fafc;
}

.lhn,
.lhn-root {
	--lhn-ok: #15803d;
	--lhn-ok-bg: #dcfce7;
	--lhn-maybe: #b45309;
	--lhn-maybe-bg: #fef3c7;
	--lhn-no: #6b7280;
	--lhn-no-bg: #f3f4f6;
	/* Korean: wrap between words, not mid-word ("있을까?" never leaves "까?" alone on a line). */
	word-break: keep-all;
	overflow-wrap: break-word;
}

.lhn-elig-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}
.lhn-elig-ok { background: var(--lhn-ok-bg); color: var(--lhn-ok); }
.lhn-elig-maybe { background: var(--lhn-maybe-bg); color: var(--lhn-maybe); }
.lhn-elig-no { background: var(--lhn-no-bg); color: var(--lhn-no); }

.lhn-link-btn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--lhn-accent);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* Questionnaire */
.lhn-check-intro { margin-bottom: 16px; }
.lhn-check-heading { margin: 0 0 6px; font-size: 1.5em; }
.lhn-check-form {
	display: grid;
	/* minmax(0,1fr): long <option> labels must not widen the form past the screen. */
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	max-width: 560px;
	padding: 20px;
	border: 1px solid var(--lhn-border);
	border-radius: 14px;
	background: var(--lhn-surface);
}
.lhn-check-step {
	margin: 8px 0 0;
	font-size: 1em;
	color: var(--lhn-accent);
}
.lhn-check-step:first-child { margin-top: 0; }
.lhn-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.lhn-field-label { font-weight: 600; }
.lhn-field-hint { font-size: 0.85em; color: var(--lhn-muted); }
.lhn .lhn-field input[type="number"],
.lhn .lhn-field select,
.lhn-root .lhn-field input[type="number"],
.lhn-root .lhn-field select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--lhn-border);
	border-radius: 10px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 16px;
}
.lhn-check-option,
.lhn-choice-option {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}
.lhn-check-option input,
.lhn-choice-option input { width: 20px; height: 20px; margin: 0; }
.lhn-check-option[hidden] { display: none; }
.lhn-choice { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lhn-check-error { min-height: 1em; margin: 0; color: #dc2626; font-weight: 600; }
.lhn-check-error:empty { display: none; }
.lhn-check-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lhn-root .lhn-check-actions .lhn-btn.lhn-btn-lg,
.lhn .lhn-check-actions .lhn-btn.lhn-btn-lg {
	width: 100%;
	min-width: 0;
	min-height: 56px;
	margin: 0;
	border-radius: 14px;
	font-size: 18px;
	font-weight: 800;
}
.lhn-root .lhn-check-actions .lhn-btn.lhn-check-cancel,
.lhn .lhn-check-actions .lhn-btn.lhn-check-cancel {
	border-width: 2px;
	background: #fff;
	color: var(--lhn-accent);
	box-shadow: none;
}
.lhn-check-privacy { margin: 0; font-size: 0.85em; color: var(--lhn-muted); }

/* Results */
.lhn-check-summary {
	padding: 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, #eff6ff, #f0fdf4);
	color: #0f172a;
}
.lhn-check-big { margin: 0; font-size: 1.25em; font-weight: 600; }
.lhn-check-big strong { font-size: 1.6em; color: var(--lhn-ok); }
.lhn-check-sub { margin: 4px 0 12px; color: #475569; }
.lhn-check-profile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-size: 0.9em;
	color: #334155;
}
/* Theme paragraph margins must not open gaps inside the summary card. */
.lhn .lhn-check-summary p,
.lhn-root .lhn-check-summary p { margin: 0; padding: 0; }
.lhn .lhn-check-summary p.lhn-check-sub,
.lhn-root .lhn-check-summary p.lhn-check-sub { margin: 4px 0 12px; }

/* Three equal tabs in one row — label on top, count below — so nothing scrolls sideways. */
.lhn-check-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 16px 0 12px;
}
.lhn-root .lhn-check-tab,
.lhn .lhn-check-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	min-height: 64px;
	margin: 0;
	padding: 8px 4px;
	border: 1.5px solid var(--lhn-border);
	border-radius: 14px;
	background: #fff;
	color: #334155;
	font: inherit;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}
.lhn-check-tab-label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.lhn-check-tab-count { font-size: 20px; font-weight: 800; }
.lhn-check-tab-ok .lhn-check-tab-count { color: var(--lhn-ok); }
.lhn-check-tab-maybe .lhn-check-tab-count { color: var(--lhn-maybe); }
.lhn-check-tab-no .lhn-check-tab-count { color: var(--lhn-no); }
.lhn-root .lhn-check-tab.is-active,
.lhn .lhn-check-tab.is-active {
	border-color: var(--lhn-accent);
	background: var(--lhn-accent);
	color: var(--lhn-accent-ink);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.lhn-check-tab.is-active .lhn-check-tab-count { color: inherit; }
.lhn-check-results {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lhn-check-result {
	padding: 14px 16px;
	border: 1px solid var(--lhn-border);
	border-left: 4px solid var(--lhn-no);
	border-radius: 12px;
}
.lhn-check-result-ok { border-left-color: var(--lhn-ok); }
.lhn-check-result-maybe { border-left-color: var(--lhn-maybe); }
.lhn-check-result-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.lhn-check-result-title {
	display: block;
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1.4;
	color: inherit;
	text-decoration: none;
}
.lhn-check-result-title:hover { text-decoration: underline; }
.lhn-check-result-meta,
.lhn p.lhn-check-result-meta,
.lhn-root p.lhn-check-result-meta { margin: 4px 0 0; padding: 0; font-size: 0.9em; color: var(--lhn-muted); }
.lhn-check-why { margin-top: 8px; font-size: 0.92em; }
.lhn-check-why summary { cursor: pointer; color: var(--lhn-accent); font-weight: 600; }
.lhn-check-foot { margin-top: 16px; display: grid; gap: 8px; justify-items: start; }

/* Verdict box (notice page / app detail) */

/* Theme typography (paragraph/list margins, list indents) must not leak into the box. */
.lhn .lhn-verdict p,
.lhn .lhn-verdict h3,
.lhn .lhn-verdict ul,
.lhn .lhn-verdict li,
.lhn-root .lhn-verdict p,
.lhn-root .lhn-verdict h3,
.lhn-root .lhn-verdict ul,
.lhn-root .lhn-verdict li,
.lhn .lhn-check-why p,
.lhn-root .lhn-check-why p {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lhn-verdict {
	--v-color: var(--lhn-no);
	--v-bg: #f8fafc;
	--v-line: #e5e7eb;
	display: grid;
	gap: 14px;
	margin: 24px 0;
	padding: 20px;
	border: 1px solid var(--v-line);
	border-radius: 18px;
	background: var(--v-bg);
	color: #0f172a;
	line-height: 1.5;
}
.lhn-verdict-ok { --v-color: var(--lhn-ok); --v-bg: #f0fdf4; --v-line: #bbf7d0; }
.lhn-verdict-maybe { --v-color: var(--lhn-maybe); --v-bg: #fffbeb; --v-line: #fde68a; }
.lhn-verdict-no { --v-color: #64748b; }

.lhn-ico {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lhn-verdict-kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--v-color);
}
.lhn-verdict-top { display: grid; gap: 6px; }
.lhn-verdict-status { display: flex; align-items: center; gap: 10px; }
.lhn-verdict-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--v-color);
	color: #fff;
	font-size: 22px;
}
.lhn-verdict-label {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--v-color);
}
.lhn-verdict-summary {
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
}

.lhn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lhn-chip {
	padding: 4px 10px;
	border: 1px solid var(--v-line, #e5e7eb);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.lhn-verdict-body { display: grid; gap: 10px; }
.lhn-verdict-card {
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}
.lhn-verdict-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #e5e7eb;
}
.lhn-verdict-card-kicker {
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
}
.lhn-verdict-track { font-size: 16px; font-weight: 800; color: #0f172a; }
.lhn-verdict-card-ok .lhn-verdict-card-kicker { color: var(--lhn-ok); }
.lhn-verdict-card-maybe .lhn-verdict-card-kicker { color: var(--lhn-maybe); }

.lhn-reasons { display: grid; gap: 10px; }
.lhn-reason { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.lhn-reason-dot {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	color: #fff;
	font-size: 13px;
}
.lhn-reason-ok .lhn-reason-dot { background: var(--lhn-ok); }
.lhn-reason-maybe .lhn-reason-dot { background: #f59e0b; }
.lhn-reason-no .lhn-reason-dot { background: #ef4444; }
.lhn-reason-no .lhn-reason-text { color: #b91c1c; }
.lhn-verdict-note {
	margin-top: 10px !important;
	padding: 8px 10px !important;
	border-radius: 8px;
	background: #f8fafc;
	font-size: 13px;
	color: #475569;
}

.lhn-verdict-more { display: grid; gap: 10px; }
.lhn-verdict-more summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.6);
	font-weight: 700;
	color: #334155;
	cursor: pointer;
	list-style: none;
}
.lhn-verdict-more summary::-webkit-details-marker { display: none; }
.lhn-verdict-more summary::after { content: '▾'; font-size: 14px; }
.lhn-verdict-more[open] summary::after { content: '▴'; }
.lhn-verdict-more-count {
	min-width: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: #e2e8f0;
	font-size: 12px;
	line-height: 22px;
	text-align: center;
}
.lhn-verdict-more[open] { margin-bottom: 2px; }

.lhn-verdict-foot { display: grid; gap: 10px; }
.lhn-btn.lhn-verdict-edit {
	display: flex;
	gap: 8px;
	width: 100%;
	min-height: 56px;
	border-radius: 14px;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
}
.lhn-btn.lhn-verdict-edit .lhn-ico { font-size: 20px; }
.lhn-btn.lhn-btn-ghost.lhn-verdict-edit {
	border: 2px solid var(--lhn-accent);
	background: #fff;
	color: var(--lhn-accent);
}
.lhn-verdict-disclaimer { font-size: 12px; line-height: 1.5; color: #64748b; }

/* No profile yet: an invitation card. */
.lhn-verdict-empty {
	--v-color: var(--lhn-accent);
	--v-bg: linear-gradient(135deg, #eff6ff, #f0fdf4);
	--v-line: #dbeafe;
	text-align: center;
	background: linear-gradient(135deg, #eff6ff, #f0fdf4);
}
.lhn-verdict-title { font-size: 22px; font-weight: 800; line-height: 1.3; color: #0f172a; }
.lhn-verdict-lead { font-size: 15px; color: #475569; }

/* Inline questionnaire on a notice page: one card, no box inside a box. */
.lhn-verdict.lhn-verdict-form { background: #fff; gap: 12px; }
.lhn-verdict-form .lhn-check-form {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

/* "판정 근거" inside the check results list reuses the cards. */
.lhn-check-why .lhn-verdict-summary { margin: 10px 0 8px; font-size: 15px; }

@media (max-width: 480px) {
	.lhn-verdict { padding: 16px; border-radius: 16px; }
	.lhn-check-form { padding: 16px; }
	.lhn-verdict-label { font-size: 21px; }
	.lhn-verdict-icon { width: 36px; height: 36px; font-size: 20px; }
}
