/**
 * TalentGrid front end.
 *
 * Palette comes from the brand logo: teal on a green-tinted near-black.
 * The greys are deliberately warm-green rather than neutral so the whole
 * surface belongs to the same family as the mark.
 *
 * The signature element is the signal ring: the same instrument shows
 * profile strength to a candidate and match quality to an employer.
 */

.tg {
	--_gap: 20px;
	--_r: var(--tg-radius, 14px);

	font-family: var(--tg-font-body);
	color: var(--tg-ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

.tg h1, .tg h2, .tg h3, .tg h4 {
	font-family: var(--tg-font-display);
	line-height: 1.2;
	margin: 0;
	color: var(--tg-ink);
	letter-spacing: -0.012em;
}

.tg p { margin: 0 0 10px; }
.tg a { color: var(--tg-primary-deep); }

.tg .mono,
.tg .tg-when,
.tg .tg-ring__num {
	font-family: var(--tg-font-mono);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------ *
 * Type scale
 * ------------------------------------------------------------------ */

.tg-h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.tg-h3 { font-size: 18px; font-weight: 700; }

.tg-eyebrow {
	font-family: var(--tg-font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tg-primary-deep);
	margin: 0 0 10px;
	font-weight: 500;
}

.tg-muted { color: var(--tg-slate); }
.tg-small { font-size: 13px; }
.tg-hint  { font-size: 12.5px; color: var(--tg-slate); margin: 6px 0 0; }
.tg-mt    { margin-top: 18px; }
.tg-hr    { border: 0; border-top: 1px solid var(--tg-line); margin: 18px 0; }

/* ------------------------------------------------------------------ *
 * Layout
 * ------------------------------------------------------------------ */

.tg-app { max-width: 1180px; margin: 0 auto; }

.tg-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--_gap);
	align-items: start;
}

.tg-layout.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
.tg-layout--messages { grid-template-columns: 300px minmax(0, 1fr); }

.tg-aside { display: grid; gap: var(--_gap); position: sticky; top: 24px; }

.tg-grid { display: grid; gap: var(--_gap); }
.tg-grid--3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.tg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tg-row--3 { grid-template-columns: repeat(3, 1fr); }
.tg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 900px) {
	.tg-layout.has-aside,
	.tg-layout--messages { grid-template-columns: 1fr; }
	.tg-aside { position: static; }
	.tg-row, .tg-row--3 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 * Cards
 * ------------------------------------------------------------------ */

.tg-card {
	background: var(--tg-card);
	border: 1px solid var(--tg-line);
	border-radius: var(--_r);
	padding: 22px;
	margin: 0 0 var(--_gap);
}

.tg-aside .tg-card { margin: 0; }

.tg-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.tg-card__head .tg-eyebrow { margin: 0; }

.tg-hero {
	display: flex;
	gap: 18px;
	align-items: center;
	background: linear-gradient(180deg, var(--tg-primary-wash), var(--tg-card) 70%);
}

.tg-hero__text { flex: 1; min-width: 0; }

.tg-stat-card { display: grid; gap: 2px; padding: 18px 20px; }
.tg-stat-card b { font-size: 26px; font-weight: 500; color: var(--tg-primary-deep); }
.tg-stat-card span { font-size: 13px; color: var(--tg-slate); }

.tg-bignum { font-size: 34px; font-weight: 500; color: var(--tg-primary-deep); margin: 0 0 2px; }

.tg-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--tg-line);
}
.tg-metrics b { display: block; font-size: 19px; color: var(--tg-ink); }
.tg-metrics span { font-size: 12px; color: var(--tg-slate); }

.tg-stats { display: flex; flex-wrap: wrap; gap: 32px; }
.tg-stats__item b { display: block; font-size: 34px; color: var(--tg-primary-deep); font-weight: 500; }
.tg-stats__item span { font-size: 13px; color: var(--tg-slate); }

/* ------------------------------------------------------------------ *
 * The signal ring — the one element carrying the boldness
 * ------------------------------------------------------------------ */

.tg-ring { display: grid; justify-items: center; gap: 4px; }
.tg-ring__svg { width: 100%; height: auto; display: block; overflow: visible; }

.tg-ring__track {
	fill: none;
	stroke: var(--tg-line);
	stroke-width: 7;
}

.tg-ring__bar {
	fill: none;
	stroke: var(--tg-primary);
	stroke-width: 7;
	stroke-linecap: round;
	transform: rotate(-90deg);
	transform-origin: 50% 50%;
	transition: stroke-dashoffset 900ms cubic-bezier(.22,.75,.3,1);
}

.tg-ring__num {
	fill: var(--tg-ink);
	font-size: 25px;
	font-weight: 600;
	text-anchor: middle;
	font-family: var(--tg-font-mono);
}

.tg-ring__cap {
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tg-slate);
	font-family: var(--tg-font-mono);
}

.tg-ring__legend { list-style: none; margin: 6px 0 0; padding: 0; font-size: 11.5px; color: var(--tg-slate); }
.tg-ring__legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tg-primary); margin-inline-end: 5px; }

@media (prefers-reduced-motion: reduce) {
	.tg-ring__bar { transition: none; }
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

.tg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--tg-primary);
	color: #fff;
	border: 1px solid var(--tg-primary);
	border-radius: 10px;
	padding: 10px 18px;
	font: 600 14.5px/1 var(--tg-font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
}

.tg-btn:hover { background: var(--tg-primary-deep); border-color: var(--tg-primary-deep); color: #fff; }
.tg-btn:active { transform: translateY(1px); }
.tg-btn:focus-visible { outline: 3px solid var(--tg-primary-wash); outline-offset: 2px; }

.tg-btn--ghost { background: transparent; color: var(--tg-primary-deep); border-color: var(--tg-line); }
.tg-btn--ghost:hover { background: var(--tg-primary-wash); color: var(--tg-primary-deep); border-color: var(--tg-primary); }

.tg-btn--sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.tg-btn--danger { color: var(--tg-rose); border-color: color-mix(in srgb, var(--tg-rose) 30%, white); background: transparent; }
.tg-btn--danger:hover { background: var(--tg-rose); color: #fff; border-color: var(--tg-rose); }

.tg-btn.is-disabled { opacity: .55; pointer-events: none; }

.tg-link { color: var(--tg-primary-deep); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tg-link:hover { text-decoration: underline; }

.tg-icon {
	background: none;
	border: 0;
	color: var(--tg-slate);
	font-size: 13px;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 6px;
}
.tg-icon:hover { background: var(--tg-paper); color: var(--tg-ink); }
.tg-icon--danger:hover { background: var(--tg-rose); color: #fff; }

.tg-x {
	background: none;
	border: 0;
	color: var(--tg-slate);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0 2px;
}
.tg-x:hover { color: var(--tg-rose); }

/* ------------------------------------------------------------------ *
 * Tabs
 * ------------------------------------------------------------------ */

.tg-tabs {
	display: flex;
	gap: 2px;
	overflow-x: auto;
	border-bottom: 1px solid var(--tg-line);
	margin-bottom: var(--_gap);
	scrollbar-width: thin;
}

.tg-tab {
	padding: 12px 15px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--tg-slate);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}

.tg-tab:hover { color: var(--tg-ink); }
.tg-tab.is-active { color: var(--tg-primary-deep); border-bottom-color: var(--tg-primary); }

/* ------------------------------------------------------------------ *
 * Forms
 * ------------------------------------------------------------------ */

.tg-field { display: block; margin-bottom: 14px; }

.tg-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--tg-ink);
	margin-bottom: 5px;
}

.tg-label--inline { display: inline; margin-inline-end: 6px; }

.tg input[type="text"],
.tg input[type="email"],
.tg input[type="url"],
.tg input[type="tel"],
.tg input[type="number"],
.tg input[type="month"],
.tg input[type="search"],
.tg input[type="password"],
.tg select,
.tg textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tg-line);
	border-radius: 10px;
	background: #fff;
	font: 400 14.5px/1.5 var(--tg-font-body);
	color: var(--tg-ink);
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.tg select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tg-slate) 50%), linear-gradient(135deg, var(--tg-slate) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-inline-end: 32px; }

.tg :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--tg-primary);
	box-shadow: 0 0 0 3px var(--tg-primary-wash);
}

.tg textarea { resize: vertical; min-height: 84px; }
.tg input[type="color"] { width: 52px; height: 38px; padding: 3px; border: 1px solid var(--tg-line); border-radius: 8px; background: #fff; }

.tg-checks { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 12px; }

.tg-check,
.tg-radio {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.tg-check input,
.tg-radio input { margin-top: 3px; accent-color: var(--tg-primary); }

.tg-radios { display: grid; gap: 10px; }
.tg-radio { padding: 12px 14px; border: 1px solid var(--tg-line); border-radius: 10px; }
.tg-radio:has(input:checked) { border-color: var(--tg-primary); background: var(--tg-primary-wash); }
.tg-radio.is-locked { opacity: .55; }

.tg-field--check { display: flex; align-items: flex-end; padding-bottom: 12px; }

.tg-form__foot {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--tg-line);
}

.tg-form__msg { font-size: 13.5px; color: var(--tg-primary-deep); }
.tg-form__msg.is-error { color: var(--tg-rose); }

.tg-inlineform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tg-inlineform input[type="text"] { flex: 1; min-width: 200px; }

.tg-slug { display: flex; align-items: center; border: 1px solid var(--tg-line); border-radius: 10px; overflow: hidden; }
.tg-slug span { padding: 10px 4px 10px 12px; font-size: 13px; color: var(--tg-slate); white-space: nowrap; }
.tg-slug input { border: 0 !important; border-radius: 0 !important; }
.tg-slug input:focus { box-shadow: none !important; }

.tg-photo-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.tg-file { font-size: 13px; }

/* Switches */
.tg-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 6px; }

.tg-switch { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.tg-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tg-switch span {
	width: 34px; height: 20px; border-radius: 20px;
	background: var(--tg-line); position: relative; flex: none;
	transition: background 140ms ease;
}
.tg-switch span::after {
	content: ""; position: absolute; inset-inline-start: 3px; top: 3px;
	width: 14px; height: 14px; border-radius: 50%; background: #fff;
	transition: transform 140ms ease;
}
.tg-switch input:checked + span { background: var(--tg-primary); }
.tg-switch input:checked + span::after { transform: translateX(14px); }
.tg-switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--tg-primary-wash); }

[dir="rtl"] .tg-switch input:checked + span::after { transform: translateX(-14px); }

/* ------------------------------------------------------------------ *
 * Repeating rows
 * ------------------------------------------------------------------ */

.tg-rows { display: grid; gap: 2px; }

.tg-rowitem {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--tg-line);
}
.tg-rowitem:last-child { border-bottom: 0; }

.tg-rowitem__main { display: grid; gap: 2px; min-width: 0; }
.tg-rowitem__main b { font-size: 15px; }
.tg-rowitem__main .tg-muted { font-size: 13.5px; }
.tg-rowitem__desc { font-size: 13px; color: var(--tg-slate); margin: 4px 0 0; }
.tg-rowitem__acts { display: flex; gap: 4px; flex: none; }

.tg-when { font-size: 12px; color: var(--tg-slate); }

.tg-timeline, .tg-simplelist, .tg-filelist, .tg-savedlist, .tg-todo, .tg-history {
	list-style: none; margin: 0; padding: 0;
}

.tg-timeline li { padding: 9px 0; border-bottom: 1px dotted var(--tg-line); font-size: 14px; }
.tg-timeline li:last-child { border-bottom: 0; }
.tg-timeline .tg-when { display: block; }

.tg-simplelist li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--tg-line); font-size: 14px; }
.tg-simplelist li:last-child { border-bottom: 0; }

.tg-filelist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dotted var(--tg-line); font-size: 14px; }
.tg-filelist li:last-child { border-bottom: 0; }
.tg-filelist .tg-btn { margin-inline-start: auto; }

.tg-savedlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--tg-line); }
.tg-savedlist li:last-child { border-bottom: 0; }
.tg-savedlist span { display: block; }

.tg-todo li { border-bottom: 1px dotted var(--tg-line); }
.tg-todo li:last-child { border-bottom: 0; }
.tg-todo a {
	display: flex; align-items: baseline; gap: 8px;
	padding: 9px 0; font-size: 13.2px; color: var(--tg-ink);
	text-decoration: none; line-height: 1.4;
}
.tg-todo a:hover { color: var(--tg-primary-deep); }
.tg-todo b { margin-inline-start: auto; color: var(--tg-primary); font-size: 12px; flex: none; }

.tg-history li { padding: 14px 0; border-bottom: 1px solid var(--tg-line); }
.tg-history li:last-child { border-bottom: 0; }
.tg-history__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

.tg-status { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.tg-status.is-live { color: var(--tg-primary-deep); }
.tg-status.is-draft { color: var(--tg-amber); }

.tg-empty { color: var(--tg-slate); font-size: 14px; margin: 6px 0 12px; }
.tg-empty-pane { text-align: center; padding: 44px 22px; }

/* ------------------------------------------------------------------ *
 * Skills
 * ------------------------------------------------------------------ */

.tg-skilladd { margin: 12px 0 18px; position: relative; }
.tg-skilladd__row { display: grid; grid-template-columns: 2fr 1.2fr .7fr auto; gap: 8px; }
@media (max-width: 700px) { .tg-skilladd__row { grid-template-columns: 1fr; } }

.tg-skills { display: flex; flex-wrap: wrap; gap: 8px; }

.tg-skill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px 7px 12px;
	border: 1px solid var(--tg-line);
	border-radius: 10px;
	background: #fff;
	font-size: 13.5px;
}
.tg-skill b { font-weight: 600; }
.tg-skill__bar { width: 34px; height: 4px; border-radius: 3px; background: var(--tg-line); display: block; }
.tg-skill__bar i { display: block; height: 4px; border-radius: 3px; background: var(--tg-primary); }
.tg-skill__lvl { font-size: 11.5px; color: var(--tg-slate); }

.tg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tg-chip {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	background: var(--tg-primary-wash);
	color: var(--tg-primary-deep);
	font-size: 12.5px;
	font-weight: 500;
}
.tg-chip--more { background: var(--tg-paper); color: var(--tg-slate); }

.tg-suggest {
	position: absolute;
	z-index: 20;
	left: 0; right: 0;
	background: #fff;
	border: 1px solid var(--tg-line);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(20, 32, 31, .12);
	max-height: 220px;
	overflow-y: auto;
	margin-top: 4px;
}
.tg-suggest button {
	display: flex; width: 100%; justify-content: space-between; gap: 10px;
	background: none; border: 0; padding: 9px 12px; text-align: start;
	font-size: 13.5px; cursor: pointer; color: var(--tg-ink);
}
.tg-suggest button:hover,
.tg-suggest button.is-active { background: var(--tg-primary-wash); }
.tg-suggest i { color: var(--tg-slate); font-style: normal; font-family: var(--tg-font-mono); font-size: 11.5px; }

/* ------------------------------------------------------------------ *
 * Resume builder
 * ------------------------------------------------------------------ */

.tg-resumes { display: grid; gap: 12px; }

.tg-resume {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--tg-line);
	border-radius: 12px;
	flex-wrap: wrap;
}

.tg-resume__body { display: grid; gap: 2px; flex: 1; min-width: 160px; }
.tg-resume__body .tg-muted { font-size: 12.5px; }
.tg-resume__acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* Little abstract page thumbnails, one per template. */
.tg-resume__thumb,
.tg-template__art {
	width: 44px; height: 58px;
	background: #fff;
	border: 1px solid var(--tg-line);
	border-radius: 4px;
	flex: none;
	padding: 5px;
	display: grid;
	gap: 3px;
	align-content: start;
	overflow: hidden;
	position: relative;
}
.tg-resume__thumb span,
.tg-template__art span { display: block; height: 3px; background: var(--tg-line); border-radius: 2px; }
.tg-resume__thumb span:first-child,
.tg-template__art span:first-child { background: var(--tg-primary); width: 70%; height: 5px; }

.tg-thumb--sanad::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 13px; background: var(--tg-primary-wash); border-inline-end: 2px solid var(--tg-primary); }
.tg-thumb--amman::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 16px; background: var(--tg-primary); }
.tg-thumb--signal::before { content: ""; position: absolute; inset-inline: 4px; top: 4px; height: 15px; background: var(--tg-ink); border-radius: 3px; }
.tg-thumb--atlas span:first-child { background: var(--tg-ink); }
.tg-thumb--muted span:first-child { background: var(--tg-ink); width: 55%; }
.tg-thumb--plain span { background: #cfd8d6; }
.tg-thumb--plain span:first-child { background: #9fb0ad; }

.tg-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }

.tg-template {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto auto;
	gap: 2px 12px;
	padding: 12px;
	border: 1px solid var(--tg-line);
	border-radius: 12px;
	cursor: pointer;
	position: relative;
}
.tg-template input { position: absolute; opacity: 0; }
.tg-template__art { grid-row: 1 / 4; }
.tg-template b { font-size: 14px; align-self: end; }
.tg-template i { font-size: 11.8px; color: var(--tg-slate); font-style: normal; line-height: 1.35; }
.tg-template u { font-size: 11px; color: var(--tg-amber); text-decoration: none; font-weight: 600; }
.tg-template:has(input:checked) { border-color: var(--tg-primary); background: var(--tg-primary-wash); }
.tg-template:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--tg-primary-wash); }
.tg-template.is-locked { opacity: .6; cursor: not-allowed; }

/* ------------------------------------------------------------------ *
 * Search
 * ------------------------------------------------------------------ */

.tg-search { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: var(--_gap); align-items: start; }
@media (max-width: 980px) { .tg-search { grid-template-columns: 1fr; } }

.tg-filters {
	background: var(--tg-card);
	border: 1px solid var(--tg-line);
	border-radius: var(--_r);
	padding: 18px;
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}
@media (max-width: 980px) { .tg-filters { position: static; max-height: none; } }

.tg-filter { margin-bottom: 16px; }
.tg-filter select + input { margin-top: 6px; }
.tg-filter--checks { display: grid; gap: 9px; }

.tg-facetlist { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tg-facet {
	display: inline-flex; gap: 5px; align-items: center;
	background: var(--tg-paper);
	border: 1px solid var(--tg-line);
	border-radius: 20px;
	padding: 4px 9px;
	font-size: 12px;
	cursor: pointer;
	color: var(--tg-ink);
}
.tg-facet:hover { border-color: var(--tg-primary); background: var(--tg-primary-wash); }
.tg-facet i { font-style: normal; color: var(--tg-slate); font-size: 10.5px; }

.tg-filterform__foot { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--tg-line); }
.tg-filterform__foot .tg-btn { flex: 1; }

.tg-skillpicker { position: relative; }
.tg-skillpicker__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.tg-skillpicker__chips .tg-chip { display: inline-flex; align-items: center; gap: 5px; }

.tg-results__head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.tg-results__count { margin: 0; font-size: 14px; color: var(--tg-slate); }
.tg-results__count b { font-size: 20px; color: var(--tg-ink); }
.tg-results__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tg-sort { display: flex; align-items: center; gap: 4px; }
.tg-sort select { width: auto; padding: 7px 30px 7px 10px; font-size: 13px; }

.tg-activechips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tg-activechip {
	display: inline-flex; gap: 6px; align-items: center;
	background: var(--tg-ink); color: #fff;
	border-radius: 20px; padding: 4px 11px; font-size: 12px;
	text-decoration: none;
}
.tg-activechip b { opacity: .6; }
.tg-activechip:hover { background: var(--tg-primary-deep); color: #fff; }

.tg-results { display: grid; gap: 12px; }

.tg-result {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px 16px;
	background: var(--tg-card);
	border: 1px solid var(--tg-line);
	border-radius: var(--_r);
	padding: 18px;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}
.tg-result:hover { border-color: color-mix(in srgb, var(--tg-primary) 45%, var(--tg-line)); box-shadow: 0 4px 18px rgba(20, 32, 31, .05); }
.tg-result.is-featured { border-inline-start: 3px solid var(--tg-primary); }

.tg-result__who { display: flex; gap: 13px; align-items: flex-start; min-width: 0; }
.tg-result__id { min-width: 0; }
.tg-result__id h3 { font-size: 16.5px; }
.tg-result__headline { font-size: 13.8px; color: var(--tg-ink); margin: 2px 0 3px; }
.tg-result__meta { font-size: 12.8px; color: var(--tg-slate); margin: 0; }
.tg-result__score { grid-row: 1 / 3; text-align: center; }
.tg-result__why { font-size: 11px; color: var(--tg-slate); margin: 4px 0 0; max-width: 110px; }
.tg-result__acts { grid-column: 1 / -1; display: flex; gap: 7px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--tg-line); }
.tg-result .tg-chips { grid-column: 1 / 2; }

.tg-results--compact .tg-result { padding: 13px 16px; }

.tg-verified { color: var(--tg-primary); font-style: normal; font-size: 13px; }

.tg-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.tg-pager__pos { font-size: 13px; color: var(--tg-slate); }

/* ------------------------------------------------------------------ *
 * Avatars
 * ------------------------------------------------------------------ */

.tg-avatar {
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tg-primary-wash);
	color: var(--tg-primary-deep);
	font-weight: 700;
	font-family: var(--tg-font-display);
}
.tg-avatar--anon { background: var(--tg-paper); color: #b3c2bf; }

/* ------------------------------------------------------------------ *
 * Public profile
 * ------------------------------------------------------------------ */

.tg-profile { max-width: 860px; margin: 0 auto; }

.tg-profile__head {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 24px;
	background: linear-gradient(180deg, var(--tg-primary-wash), var(--tg-card) 78%);
	border: 1px solid var(--tg-line);
	border-radius: var(--_r);
	margin-bottom: var(--_gap);
	flex-wrap: wrap;
}
.tg-profile__id { flex: 1; min-width: 200px; }
.tg-profile__id h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.tg-profile__headline { font-size: 15.5px; color: var(--tg-ink); margin: 4px 0; }
.tg-profile__meta { font-size: 13.5px; color: var(--tg-slate); margin: 0; }

.tg-contactcard { border-color: color-mix(in srgb, var(--tg-primary) 30%, var(--tg-line)); }
.tg-contact { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.tg-locked {
	background: var(--tg-paper);
	border: 1px dashed var(--tg-line);
	border-radius: 10px;
	padding: 14px;
	color: var(--tg-slate);
	font-size: 14px;
	margin-bottom: 12px;
}

/* ------------------------------------------------------------------ *
 * Pricing
 * ------------------------------------------------------------------ */

.tg-pricing { max-width: 1100px; margin: 0 auto; }
.tg-pricing__group { margin-bottom: 48px; }
.tg-pricing__group .tg-h2 { margin-bottom: 22px; max-width: 620px; }

.tg-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.tg-plan {
	background: var(--tg-card);
	border: 1px solid var(--tg-line);
	border-radius: var(--_r);
	padding: 24px;
	display: flex;
	flex-direction: column;
}
.tg-plan.is-current { border-color: var(--tg-primary); background: var(--tg-primary-wash); }
.tg-plan__name { font-size: 17px; font-weight: 700; }
.tg-plan__price { margin: 10px 0 8px; }
.tg-plan__amount { font-size: 28px; font-weight: 800; font-family: var(--tg-font-display); color: var(--tg-ink); }
.tg-plan__amount .amount { font-size: inherit; }
.tg-plan__term { font-size: 13px; color: var(--tg-slate); }
.tg-plan__blurb { font-size: 13.8px; color: var(--tg-slate); }
.tg-plan__list { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 7px; font-size: 13.8px; }
.tg-plan__list li { padding-inline-start: 20px; position: relative; }
.tg-plan__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0; top: 8px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--tg-primary);
}
.tg-plan .tg-btn { margin-top: auto; }

/* ------------------------------------------------------------------ *
 * Gate
 * ------------------------------------------------------------------ */

.tg-gate {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	padding: 34px 20px;
}
.tg-gate h2 { font-size: clamp(21px, 3vw, 28px); margin-bottom: 8px; }
.tg-gate > p { max-width: 540px; margin-inline: auto; }
.tg-gate .tg-plans { margin-top: 26px; text-align: start; }

.tg-notice {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	padding: 12px 15px;
	border-radius: 10px;
	font-size: 13.8px;
	margin-bottom: 14px;
	background: var(--tg-primary-wash);
	color: var(--tg-primary-deep);
}
.tg-notice--warn { background: #FDF3E3; color: #8A5D14; }
.tg-notice--error { background: #FCEDED; color: #922; }

/* ------------------------------------------------------------------ *
 * Tables
 * ------------------------------------------------------------------ */

.tg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tg-table th { text-align: start; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tg-slate); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--tg-line); font-family: var(--tg-font-mono); font-weight: 500; }
.tg-table td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--tg-line); vertical-align: middle; }
.tg-table tr:last-child td { border-bottom: 0; }
.tg-table select { width: auto; padding: 6px 28px 6px 9px; font-size: 13px; }

/* ------------------------------------------------------------------ *
 * Pipelines
 * ------------------------------------------------------------------ */

.tg-pooltabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tg-pooltab {
	padding: 7px 13px;
	border: 1px solid var(--tg-line);
	border-radius: 20px;
	font-size: 13px;
	text-decoration: none;
	color: var(--tg-ink);
}
.tg-pooltab.is-active { background: var(--tg-ink); color: #fff; border-color: var(--tg-ink); }
.tg-pooltab i { font-style: normal; opacity: .6; font-size: 11.5px; }

/* ------------------------------------------------------------------ *
 * Messages
 * ------------------------------------------------------------------ */

.tg-threads { display: grid; gap: 2px; background: var(--tg-card); border: 1px solid var(--tg-line); border-radius: var(--_r); padding: 8px; }

.tg-thread {
	display: flex; align-items: center; gap: 10px;
	padding: 10px; border-radius: 10px;
	text-decoration: none; color: var(--tg-ink);
}
.tg-thread:hover { background: var(--tg-paper); }
.tg-thread.is-active { background: var(--tg-primary-wash); }
.tg-thread__body { display: grid; min-width: 0; flex: 1; }
.tg-thread__body b { font-size: 14px; }
.tg-thread__snip { font-size: 12.3px; color: var(--tg-slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-dot { background: var(--tg-primary); color: #fff; border-radius: 20px; padding: 1px 7px; font-size: 11px; font-weight: 700; }

.tg-chat { display: grid; gap: 14px; }
.tg-chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--tg-line); }
.tg-chat__log { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; padding-inline-end: 4px; }

.tg-msg {
	background: var(--tg-paper);
	border-radius: 12px;
	padding: 11px 14px;
	font-size: 14px;
	max-width: 82%;
}
.tg-msg.is-mine { background: var(--tg-primary-wash); margin-inline-start: auto; }
.tg-msg p { margin: 0 0 6px; }
.tg-msg p:last-of-type { margin-bottom: 0; }
.tg-msg__subj { display: block; margin-bottom: 4px; font-size: 13px; }
.tg-msg time { display: block; font-size: 11px; color: var(--tg-slate); margin-top: 5px; }

.tg-chat__form { display: grid; gap: 8px; }
.tg-chat__form button { justify-self: start; }

/* ------------------------------------------------------------------ *
 * Jobs
 * ------------------------------------------------------------------ */

.tg-joblist { display: grid; gap: 12px; }
.tg-job { background: var(--tg-card); border: 1px solid var(--tg-line); border-radius: var(--_r); padding: 18px; }
.tg-job h3 { font-size: 17px; }
.tg-job h3 a { color: var(--tg-ink); text-decoration: none; }
.tg-job h3 a:hover { color: var(--tg-primary-deep); }
.tg-job__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--tg-slate); margin: 5px 0 0; }

/* ------------------------------------------------------------------ *
 * Modal
 * ------------------------------------------------------------------ */

.tg-modal {
	position: fixed;
	inset: 0;
	background: rgba(20, 32, 31, .5);
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 12px;
	overflow-y: auto;
}
.tg-modal[hidden] { display: none; }

.tg-modal__box {
	background: var(--tg-paper);
	border-radius: 16px;
	max-width: 820px;
	width: 100%;
	position: relative;
	padding: 22px;
	margin: auto;
}
.tg-modal__close {
	position: absolute;
	top: 10px; inset-inline-end: 12px;
	background: none; border: 0;
	font-size: 26px; line-height: 1;
	cursor: pointer; color: var(--tg-slate);
}
.tg-modal__close:hover { color: var(--tg-ink); }
.tg-modal__content .tg-profile { max-width: none; }

/* ------------------------------------------------------------------ *
 * RTL
 * ------------------------------------------------------------------ */

[dir="rtl"] .tg,
.tg[dir="rtl"] { text-align: right; }

[dir="rtl"] .tg select {
	background-position: 17px 50%, 12px 50%;
	padding-inline-end: 12px;
	padding-inline-start: 32px;
}

[dir="rtl"] .tg-slug span { padding: 10px 12px 10px 4px; }

/* ------------------------------------------------------------------ *
 * Print (the resume preview page brings its own CSS)
 * ------------------------------------------------------------------ */

@media print {
	.tg-tabs, .tg-aside, .tg-filters, .tg-result__acts { display: none !important; }
}
