/* TF Salary Benchmark — public UI. Mobile-first, self-contained. */

.tfsb {
	--tfsb-primary: #0e7490;
	--tfsb-primary-dark: #155e75;
	--tfsb-accent: #f59e0b;
	--tfsb-ink: #0f172a;
	--tfsb-muted: #64748b;
	--tfsb-bg: #f8fafc;
	--tfsb-card: #ffffff;
	--tfsb-radius: 16px;
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.55;
	color: var(--tfsb-ink);
}

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

.tfsb-card {
	background: var(--tfsb-card);
	border: 1px solid #e6e9ef;
	border-radius: var(--tfsb-radius);
	box-shadow: 0 1px 2px rgba(2, 6, 23, .04), 0 8px 24px rgba(2, 6, 23, .05);
	padding: 28px 22px;
	margin: 18px 0;
}

.tfsb-hero { text-align: center; margin-bottom: 18px; }
.tfsb-title {
	font-size: clamp(24px, 4.5vw, 34px);
	font-weight: 800;
	margin: 0 0 8px;
	background: linear-gradient(90deg, var(--tfsb-primary-dark), var(--tfsb-primary), var(--tfsb-accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tfsb-sub { color: var(--tfsb-muted); margin: 0; }
.tfsb-h3 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }

.tfsb-label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.tfsb-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 16px;
	background: #fff;
	color: var(--tfsb-ink);
	transition: border-color .15s, box-shadow .15s;
}
.tfsb-input:focus {
	outline: none;
	border-color: var(--tfsb-primary);
	box-shadow: 0 0 0 3px rgba(14, 116, 144, .15);
}

.tfsb-row { display: grid; grid-template-columns: 1fr; gap: 4px 14px; }
@media (min-width: 560px) { .tfsb-row { grid-template-columns: 1fr 1fr 1fr; } }

.tfsb-typeahead { position: relative; }
.tfsb-suggest {
	position: absolute;
	z-index: 50;
	left: 0; right: 0; top: 100%;
	margin: 4px 0 0; padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(2, 6, 23, .14);
	max-height: 280px;
	overflow: auto;
}
.tfsb-suggest li { padding: 9px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.tfsb-suggest li:hover { background: #ecfeff; }
.tfsb-suggest small { color: var(--tfsb-muted); }

.tfsb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.tfsb-btn {
	display: inline-block;
	border: 0;
	border-radius: 12px;
	padding: 14px 26px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 18px;
	transition: transform .1s, box-shadow .15s, background .15s;
	text-decoration: none;
	text-align: center;
}
.tfsb-btn-primary {
	width: 100%;
	color: #fff;
	background: linear-gradient(90deg, var(--tfsb-primary), var(--tfsb-primary-dark));
	box-shadow: 0 6px 18px rgba(14, 116, 144, .35);
}
.tfsb-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(14, 116, 144, .42); }
.tfsb-btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.tfsb-btn-ghost { background: transparent; color: var(--tfsb-muted); font-weight: 600; padding: 10px 14px; }
.tfsb-btn-ghost:hover { color: var(--tfsb-ink); }
.tfsb-btn-wa { background: #25d366; color: #fff; width: 100%; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.tfsb-btn-wa:hover { background: #1ebe5b; color: #fff; }

.tfsb-trust { text-align: center; color: var(--tfsb-muted); font-size: 13px; margin: 12px 0 0; }

/* Teaser + lock */
.tfsb-teaser-line { font-size: 18px; text-align: center; margin: 0 0 10px; }
.tfsb-teaser-line strong { color: var(--tfsb-primary-dark); font-size: 22px; }
.tfsb-gauge-wrap { position: relative; text-align: center; margin: 8px auto 4px; max-width: 340px; }
.tfsb-locked .tfsb-gauge { filter: blur(7px); opacity: .55; }
.tfsb-lock-overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 6px; font-weight: 600; font-size: 14px; color: var(--tfsb-ink);
	padding: 0 24px;
}
.tfsb-lock-icon { font-size: 26px; }

/* Gauge */
.tfsb-gauge { width: 100%; height: auto; }
.tfsb-gauge-track, .tfsb-gauge-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.tfsb-gauge-track { stroke: #e2e8f0; }
.tfsb-gauge-fill { stroke: var(--tfsb-primary); }
.tfsb-gauge-num { font-size: 40px; font-weight: 800; fill: var(--tfsb-primary-dark); }
.tfsb-gauge-cap { font-size: 12px; fill: var(--tfsb-muted); letter-spacing: .12em; text-transform: uppercase; }
.tfsb-gauge-line { text-align: center; font-size: 17px; font-weight: 600; margin: 6px 0 0; }

/* Range bar */
.tfsb-range { margin: 26px 4px 8px; }
.tfsb-range-bar {
	position: relative; height: 14px; border-radius: 999px;
	background: linear-gradient(90deg, #fecaca, #fde68a, #bbf7d0);
}
.tfsb-range-band {
	position: absolute; top: 0; bottom: 0;
	background: rgba(14, 116, 144, .25);
	border: 1px solid rgba(14, 116, 144, .4);
	border-radius: 999px;
}
.tfsb-range-you {
	position: absolute; top: -8px;
	width: 4px; height: 30px;
	background: var(--tfsb-ink);
	border-radius: 2px;
	transform: translateX(-50%);
	transition: left 1.2s cubic-bezier(.22, 1, .36, 1);
}
.tfsb-range-you span {
	position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
	font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: var(--tfsb-ink); color: #fff; border-radius: 5px; padding: 1px 6px;
}
.tfsb-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--tfsb-muted); margin-top: 10px; }

/* Stat chips */
.tfsb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.tfsb-chip {
	background: var(--tfsb-bg);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	display: flex; flex-direction: column; gap: 2px;
}
.tfsb-chip span { font-size: 12px; color: var(--tfsb-muted); text-transform: uppercase; letter-spacing: .05em; }
.tfsb-chip b { font-size: 17px; }

/* AI box */
.tfsb-ai {
	background: linear-gradient(135deg, #ecfeff, #f0f9ff);
	border: 1px solid #a5f3fc;
	border-radius: 14px;
	padding: 18px 20px;
	margin: 18px 0;
}
.tfsb-ai-head { margin: 0 0 8px; font-size: 16px; }
.tfsb-ai p { margin: 0; }
.tfsb-ai-headline { font-size: 16px; margin: 0 0 10px !important; }
.tfsb-ai-points { margin: 0 0 4px; padding-left: 20px; }
.tfsb-ai-points li { margin-bottom: 7px; line-height: 1.5; }
.tfsb-ai-next { font-weight: 700; margin: 12px 0 6px !important; }
.tfsb-ai-actions li::marker { color: #0e7490; }
.tfsb-ai-loading p {
	color: var(--tfsb-muted);
	animation: tfsb-pulse 1.4s ease-in-out infinite;
}
@keyframes tfsb-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .45; }
}

/* Transferable fields */
.tfsb-transfer {
	background: linear-gradient(135deg, #f5f3ff, #eef2ff);
	border: 1px solid #c7d2fe;
	border-radius: 14px;
	padding: 18px 20px;
	margin: 18px 0;
}
.tfsb-transfer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tfsb-transfer-card {
	background: #fff;
	border: 1px solid #e0e7ff;
	border-radius: 12px;
	padding: 12px 14px;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "title delta" "median median";
	column-gap: 8px;
	row-gap: 2px;
	align-items: start;
}
.tfsb-transfer-card strong { grid-area: title; font-size: 15px; line-height: 1.3; }
.tfsb-transfer-card span { grid-area: median; color: var(--tfsb-muted); font-size: 13px; }
.tfsb-transfer-delta {
	grid-area: delta;
	color: #16a34a;
	font-size: 14px;
	white-space: nowrap;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 999px;
	padding: 1px 8px;
}
.tfsb-transfer-note { margin: 10px 0 0; font-size: 12px; color: var(--tfsb-muted); }

/* Resume upload + career analysis */
.tfsb-resume {
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	border: 1px solid #fcd34d;
	border-radius: 14px;
	padding: 20px 22px;
	margin: 22px 0;
}
.tfsb-resume-head { margin: 0 0 6px; font-size: 17px; }
.tfsb-resume-sub { margin: 0 0 12px; color: #78716c; font-size: 14px; }
.tfsb-file {
	display: block;
	border: 2px dashed #d6b35c;
	border-radius: 12px;
	background: #fffdf5;
	padding: 18px;
	text-align: center;
	cursor: pointer;
	font-weight: 600;
	color: #92700c;
	transition: border-color .15s, background .15s;
}
.tfsb-file:hover { border-color: var(--tfsb-accent); background: #fffaf0; }
.tfsb-file input { display: none; }
.tfsb-resume .tfsb-btn-primary { margin-top: 12px; }
.tfsb-recs { margin: 10px 0 6px; padding-left: 22px; }
.tfsb-recs li { margin-bottom: 6px; }
.tfsb-job-card {
	background: #fff;
	border: 1px solid #e6e9ef;
	border-radius: 14px;
	padding: 14px 16px;
	margin: 10px 0;
	transition: border-color .15s, box-shadow .15s, transform .1s;
}
.tfsb-job-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(2, 6, 23, .06); }
.tfsb-job-card strong { display: block; font-size: 16px; padding-right: 86px; }
.tfsb-job-card { position: relative; }
.tfsb-job-co { color: var(--tfsb-muted); font-size: 13px; display: block; margin-top: 3px; }
.tfsb-job-card p { margin: 8px 0; font-size: 14px; line-height: 1.5; }
.tfsb-job-apply { margin-top: 10px; padding: 12px 18px; font-size: 15px; width: 100%; }
.tfsb-job-badge {
	position: absolute; top: 14px; right: 16px;
	padding: 3px 10px; border-radius: 999px;
	background: #eafaf0; color: #15803d; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.tfsb-job-applied { background: #f6fdf9; border-color: #bbf7d0; }
.tfsb-btn-applied { background: #eafaf0; color: #15803d; width: 100%; cursor: default; box-shadow: none; }
.tfsb-job-done { color: #15803d; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tfsb-job-wa { margin-top: 8px; }
.tfsb-resume-pref { margin-bottom: 10px; }
.tfsb-relocate-wrap { display: flex; align-items: flex-end; }
.tfsb-relocate-row { margin: 4px 0 12px; }
.tfsb-area-wrap { display: flex; gap: 8px; align-items: stretch; }
.tfsb-area-wrap .tfsb-input { flex: 1; }
.tfsb-geo-btn { width: auto; padding: 0 14px; font-size: 18px; line-height: 1; border: 1px solid #cbd5e1; border-radius: 10px; }
.tfsb-geo-btn.tfsb-geo-on { border-color: #16a34a; }
.tfsb-geo-note { display: block; margin-top: 6px; color: var(--tfsb-muted); font-size: 12px; }
.tfsb-job-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.tfsb-job-dist, .tfsb-job-up {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.tfsb-job-dist { background: #e1f5ee; color: #0f6e56; }
.tfsb-job-dist.tfsb-job-near { background: #d4f3e5; color: #08574a; }
.tfsb-job-up { background: #faeeda; color: #92520b; }

/* CTA + share */
.tfsb-cta { text-align: center; margin: 22px 0; }
.tfsb-cta-text { font-weight: 600; margin: 0 0 4px; }
.tfsb-share { text-align: center; margin: 24px 0 8px; }
.tfsb-share-head { font-weight: 700; margin: 0 0 10px; }
.tfsb-share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tfsb-share-btn {
	border: 0; border-radius: 999px; cursor: pointer;
	padding: 9px 18px; font-size: 14px; font-weight: 700; color: #fff;
	text-decoration: none; transition: opacity .15s;
}
.tfsb-share-btn:hover { opacity: .85; color: #fff; }
.tfsb-share-wa { background: #25d366; }
.tfsb-share-fb { background: #1877f2; }
.tfsb-share-x { background: #0f1419; }
.tfsb-share-li { background: #0a66c2; }
.tfsb-share-copy { background: var(--tfsb-muted); }

.tfsb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--tfsb-muted); margin-top: 14px; }
.tfsb-consent input { margin-top: 3px; flex: none; }

.tfsb-attrib { font-size: 12px; color: var(--tfsb-muted); text-align: center; margin: 16px 0 0; }

.tfsb-toast {
	position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
	background: var(--tfsb-ink); color: #fff;
	border-radius: 10px; padding: 11px 20px;
	font-size: 14px; font-weight: 600;
	box-shadow: 0 10px 26px rgba(2, 6, 23, .3);
	z-index: 9999;
}

/* Account: result CTA + [tf_account] login/signup */
.tfsb-acct {
	background: #f6fdf9;
	border: 1px solid #bbf7d0;
	border-radius: 14px;
	padding: 18px 20px;
	margin: 18px 0;
}
.tfsb-acct-head { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.tfsb-acct-sub { margin: 0 0 12px; color: #4b5563; font-size: 14px; }
.tfsb-acct-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.tfsb-acct-form .tfsb-input { flex: 1; min-width: 200px; }
.tfsb-acct-form .tfsb-btn-primary { width: auto; margin-top: 0; white-space: nowrap; }
.tfsb-acct-done { color: #15803d; font-weight: 600; margin: 10px 0 0; }

.tfsb-auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tfsb-auth-tab {
	flex: 1; border: 0; background: var(--tfsb-bg); color: var(--tfsb-muted);
	border-radius: 10px; padding: 11px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.tfsb-auth-tab.is-active { background: var(--tfsb-primary); color: #fff; }
.tfsb-auth-panel .tfsb-btn-primary { margin-top: 18px; }
.tfsb-seg { display: flex; gap: 8px; margin-bottom: 6px; }
.tfsb-seg-opt {
	flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer;
	border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 12px;
	font-size: 14px; font-weight: 600; color: var(--tfsb-ink);
}
.tfsb-seg-opt.is-active { border-color: var(--tfsb-primary); background: #ecfeff; }
.tfsb-seg-opt input { accent-color: var(--tfsb-primary); }

/* Employer plans */
.tfsb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 16px 0; }
.tfsb-plan {
	position: relative; border: 1px solid #e6e9ef; border-radius: 14px;
	padding: 18px 16px; display: flex; flex-direction: column; gap: 6px;
}
.tfsb-plan-featured { border-color: var(--tfsb-primary); box-shadow: 0 6px 20px rgba(14, 116, 144, .12); }
.tfsb-plan-tag {
	position: absolute; top: -10px; left: 16px; background: var(--tfsb-primary); color: #fff;
	font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
}
.tfsb-plan-name { margin: 2px 0 0; font-size: 16px; font-weight: 700; }
.tfsb-plan-price { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--tfsb-primary-dark); }
.tfsb-plan-price span { font-size: 13px; font-weight: 600; color: var(--tfsb-muted); }
.tfsb-plan-feats { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; color: #475569; flex: 1; }
.tfsb-plan-feats li { padding: 3px 0 3px 18px; position: relative; }
.tfsb-plan-feats li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.tfsb-plan .tfsb-btn { width: 100%; margin-top: 6px; padding: 10px; font-size: 14px; }

/* Employer job manager */
.tfsb-jobs-mgr { border-top: 1px solid #e6e9ef; margin-top: 18px; padding-top: 16px; }
.tfsb-myjobs { margin: 8px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.tfsb-myjob {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	border: 1px solid #e6e9ef; border-radius: 10px; padding: 10px 14px;
}
.tfsb-myjob.is-closed { opacity: .6; }
.tfsb-myjob .tfsb-btn { width: auto; margin: 0; padding: 6px 14px; font-size: 13px; }
.tfsb-job-featured { border-color: var(--tfsb-primary); box-shadow: 0 4px 14px rgba(14, 116, 144, .10); }
.tfsb-job-verified { display: inline-block; margin: 4px 0 2px; padding: 2px 9px; border-radius: 999px; background: #e1f5ee; color: #0f6e56; font-size: 11px; font-weight: 700; }
.tfsb-claim { border: 1px solid #e6e9ef; border-radius: 12px; padding: 14px 16px; margin: 14px 0; background: #fafbfc; }
.tfsb-claim-ok { color: #15803d; font-weight: 600; margin: 0; }
.tfsb-claim-pending { color: #92520b; font-weight: 600; margin: 0; }
.tfsb-claim-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tfsb-claim-form .tfsb-input { flex: 1; min-width: 200px; }
.tfsb-claim-form .tfsb-btn-primary { width: auto; margin: 0; white-space: nowrap; }
.tfsb-myjob-wrap { display: flex; flex-direction: column; gap: 0; }
.tfsb-applicants { border: 1px solid #e6e9ef; border-top: 0; border-radius: 0 0 10px 10px; padding: 10px 14px; margin: -6px 0 0; background: #fafbfc; }
.tfsb-applicant { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #eef1f5; }
.tfsb-applicant:last-of-type { border-bottom: 0; }
.tfsb-applicant-meta { font-size: 13px; color: #475569; }
.tfsb-applicant-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tfsb-applicant-actions .tfsb-btn { width: auto; margin: 0; padding: 4px 12px; font-size: 12px; }
.tfsb-intro-done { font-size: 12px; font-weight: 600; color: #15803d; white-space: nowrap; }
.tfsb-applicants .description { margin: 8px 0 0; }
.tfsb-applicants-locked { margin: -2px 0 0; padding: 8px 14px; font-size: 13px; color: var(--tfsb-muted); background: #fafbfc; border: 1px solid #e6e9ef; border-top: 0; border-radius: 0 0 10px 10px; }
.tfsb-job-form { background: var(--tfsb-bg); border-radius: 12px; padding: 16px; margin-top: 8px; }
.tfsb-job-form .tfsb-btn-primary { margin-top: 14px; }

/* Candidate "my applications" */
.tfsb-myapps { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.tfsb-myapp {
	border: 1px solid #e6e9ef; border-radius: 10px; padding: 10px 14px;
}
.tfsb-myapp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tfsb-myapp strong { display: block; }
.tfsb-myapp-meta { display: block; color: var(--tfsb-muted); font-size: 12px; margin-top: 2px; }
.tfsb-myapp .tfsb-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
/* Application progress timeline */
.tfsb-timeline { list-style: none; margin: 12px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tfsb-tl { position: relative; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tfsb-muted); }
.tfsb-tl-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; flex: none; }
.tfsb-tl.is-done .tfsb-tl-dot { background: #16a34a; }
.tfsb-tl.is-current .tfsb-tl-dot { background: var(--tfsb-primary); box-shadow: 0 0 0 3px rgba(14, 116, 144, .18); }
.tfsb-tl.is-current .tfsb-tl-label { color: var(--tfsb-ink); font-weight: 600; }
.tfsb-tl-date { color: #94a3b8; }
/* Status pill colours (shared candidate/admin vocabulary) */
.tfsb-pill-new { background: #e6f1fb; color: #0c447c; }
.tfsb-pill-progress { background: #faeeda; color: #633806; }
.tfsb-pill-done { background: #e1f5ee; color: #085041; }
.tfsb-pill-dead { background: #f1f5f9; color: #475569; }

@media (prefers-reduced-motion: reduce) {
	.tfsb * { transition: none !important; animation: none !important; }
}
