/* TalentGridX Core — component styles. Colours come from the theme's tokens, with fallbacks. */
.tgx-form, .tgx-rates, .tgx-finder, .tgx-sponsors, .tgx-tool-cards {
	--_brand: var(--tgx-brand, #2f5bff);
	--_ink: var(--tgx-ink, #0b1633);
	--_muted: var(--tgx-muted, #5b6785);
	--_line: var(--tgx-line, #e2e7f1);
	--_card: var(--tgx-card, #fff);
	--_soft: var(--tgx-soft, #f3f6fc);
	--_accent: var(--tgx-accent, #12c48b);
	--_radius: var(--tgx-radius, 14px);
	color: var(--_ink);
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Buttons */
.tgx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--_brand, #2f5bff); color: #fff !important; border: 0; border-radius: 999px; padding: .8em 1.4em; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.tgx-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--_brand, #2f5bff); }
.tgx-btn--ghost { background: transparent; color: var(--_brand, #2f5bff) !important; box-shadow: inset 0 0 0 2px currentColor; }
.tgx-btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; }

/* Forms */
.tgx-form fieldset { border: 1px solid var(--_line); border-radius: var(--_radius); padding: 20px 22px 8px; margin: 0 0 20px; background: var(--_card); }
.tgx-form legend { font-weight: 800; padding: 0 8px; }
.tgx-field { margin: 0 0 16px; }
.tgx-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.tgx-field--checkbox label { font-weight: 500; display: flex; gap: .6em; align-items: flex-start; }
.tgx-field--checkbox input { margin-top: .3em; }
.tgx-form input:not([type=checkbox]):not([type=file]), .tgx-form select, .tgx-form textarea,
.tgx-toolbar input, .tgx-toolbar select {
	width: 100%; box-sizing: border-box; border: 1.5px solid var(--_line); border-radius: 10px; padding: .75em .9em; font: inherit; background: #fff; color: var(--_ink);
}
.tgx-form input:focus, .tgx-form select:focus, .tgx-form textarea:focus, .tgx-toolbar input:focus, .tgx-toolbar select:focus { outline: none; border-color: var(--_brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--_brand) 18%, transparent); }
.tgx-req { color: #d6336c; }
.tgx-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 18px; }
.tgx-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.tgx-notice { border-radius: var(--tgx-radius, 14px); padding: 16px 18px; margin: 0 0 20px; }
.tgx-notice--success { background: #e7f8f0; color: #0b5b3a; border: 1px solid #b6e9d1; }
.tgx-notice--error { background: #fdecef; color: #8a1c33; border: 1px solid #f5c2cd; }

/* Rates */
.tgx-rates { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_radius); padding: 20px; }
.tgx-rates__converter { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tgx-rates__converter label { font-weight: 700; }
.tgx-rates__input { display: flex; align-items: center; border: 1.5px solid var(--_line); border-radius: 12px; overflow: hidden; background: #fff; }
.tgx-rates__input span { padding: 0 .6em 0 .9em; font-weight: 800; color: var(--_muted); }
.tgx-rates__input input { border: 0; padding: .6em .8em .6em 0; font: inherit; font-weight: 800; font-size: 1.2rem; width: 8ch; outline: none; color: var(--_ink); background: transparent; }
.tgx-rates__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.tgx-rates__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: var(--_soft); border-radius: 12px; padding: 12px 14px; }
.tgx-rates__flag { font-size: 1.5rem; line-height: 1; }
.tgx-rates__name small { display: block; color: var(--_muted); font-size: .78rem; }
.tgx-rates__value { text-align: right; }
.tgx-rates__value strong { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tgx-rates__unit { display: block; font-size: .75rem; color: var(--_muted); font-variant-numeric: tabular-nums; }
.tgx-rates__note { font-size: .8rem; color: var(--_muted); margin: 14px 0 0; line-height: 1.5; }
.tgx-rates__note a { color: inherit; }
.tgx-rates--compact .tgx-rates__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Toolbar (filters) */
.tgx-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.tgx-toolbar > label { flex: 1 1 160px; }
.tgx-toolbar__grow { flex: 3 1 260px !important; }
.tgx-muted { color: var(--_muted); font-size: .92rem; }

/* Sponsor table */
.tgx-table-wrap { overflow-x: auto; border: 1px solid var(--_line); border-radius: var(--_radius); background: var(--_card); }
.tgx-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tgx-table th, .tgx-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--_line); vertical-align: top; }
.tgx-table th { background: var(--_soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--_muted); }
.tgx-table tr:last-child td { border-bottom: 0; }
.tgx-pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.tgx-empty { background: var(--_soft); border-radius: var(--_radius); padding: 18px; }
.tgx-source { font-size: .8rem; color: var(--_muted); margin-top: 18px; }
@media (max-width: 640px) {
	.tgx-table thead { display: none; }
	.tgx-table, .tgx-table tbody, .tgx-table tr, .tgx-table td { display: block; width: 100%; box-sizing: border-box; }
	.tgx-table tr { border-bottom: 1px solid var(--_line); padding: 8px 0; }
	.tgx-table td { border: 0; padding: 4px 14px; }
	.tgx-table td::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--_muted); }
}

/* Visa finder */
.tgx-finder { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_radius); padding: 24px; }
.tgx-finder__progress { height: 6px; background: var(--_soft); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.tgx-finder__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--_brand), var(--_accent)); transition: width .3s ease; }
.tgx-finder__step { color: var(--_muted); font-size: .85rem; margin: 0 0 4px; font-weight: 600; }
.tgx-finder__title { margin: 0 0 16px; font-size: 1.35rem; }
.tgx-finder__options { display: grid; gap: 10px; }
.tgx-finder__opt { text-align: left; background: var(--_soft); border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--_ink); transition: border-color .15s, background .15s; }
.tgx-finder__opt:hover, .tgx-finder__opt:focus-visible { border-color: var(--_brand); background: #fff; outline: none; }
.tgx-finder__back { background: none; border: 0; color: var(--_muted); font: inherit; margin-top: 14px; cursor: pointer; padding: 0; }
.tgx-finder__results { padding: 0; margin: 0 0 18px; list-style: none; counter-reset: r; display: grid; gap: 12px; }
.tgx-finder__results li { counter-increment: r; background: var(--_soft); border-radius: 12px; padding: 16px 18px 16px 56px; position: relative; }
.tgx-finder__results li::before { content: counter(r); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--_brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.tgx-finder__results h4 { margin: 0 0 4px; font-size: 1.05rem; }
.tgx-finder__results p { margin: 0 0 8px; color: var(--_muted); }
.tgx-link { font-weight: 700; color: var(--_brand); text-decoration: none; }
.tgx-disclaimer { font-size: .8rem; color: var(--_muted); border-top: 1px solid var(--_line); margin: 20px 0 0; padding-top: 14px; }

/* Tool cards */
.tgx-tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.tgx-tool-card { position: relative; display: block; background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_radius); padding: 24px; text-decoration: none !important; color: var(--_ink) !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tgx-tool-card:hover { transform: translateY(-3px); border-color: var(--_brand); box-shadow: 0 18px 40px -24px rgba(15, 37, 87, .45); }
.tgx-tool-card__icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.tgx-tool-card__tag { position: absolute; top: 20px; right: 20px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--_accent) 18%, #fff); color: #0a6b4c; padding: 4px 10px; border-radius: 99px; }
.tgx-tool-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tgx-tool-card p { margin: 0 0 14px; color: var(--_muted); font-size: .95rem; }
.tgx-tool-card__cta { font-weight: 800; color: var(--_brand); }

/* Accounts */
.tgx-auth { max-width: 520px; margin: 0 auto; background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_radius); padding: 26px; }
.tgx-auth__alt { text-align: center; margin: 16px 0 0; font-size: .92rem; color: var(--_muted); }
.tgx-btn--block { display: flex; width: 100%; }
.tgx-btn--sm { padding: .45em .9em; font-size: .85rem; }
.tgx-perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; background: var(--_soft); border-radius: 12px; padding: 14px 16px; }
.tgx-perks li { padding-left: 24px; position: relative; font-weight: 600; font-size: .93rem; }
.tgx-perks li::before { content: "✓"; position: absolute; left: 0; color: #07684a; font-weight: 800; }
.tgx-account { display: grid; gap: 18px; }
.tgx-account__box { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_radius); padding: 22px; }
.tgx-account__box h2 { font-size: 1.2rem; margin: 0 0 12px; }
.tgx-list { list-style: none; margin: 0; padding: 0; }
.tgx-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--_line); flex-wrap: wrap; }
.tgx-list li:last-child { border-bottom: 0; }
.tgx-list li span { color: var(--_muted); font-size: .9rem; }
.tgx-signout { margin-left: 14px; color: var(--_muted); }
.tgx-save-form { display: inline; margin: 0; }
.tgx-save { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1.5px solid var(--_line); border-radius: 999px; padding: .5em 1em; font: inherit; font-weight: 700; font-size: .9rem; color: var(--_ink) !important; cursor: pointer; text-decoration: none !important; }
.tgx-save:hover { border-color: var(--_brand); color: var(--_brand) !important; }
.tgx-save.is-saved { background: #fff8e6; border-color: #f2c14e; }

/* Gate */
.tgx-gate { position: relative; margin-top: -60px; padding-top: 70px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 55px); text-align: center; }
.tgx-gate__box { border: 1px solid var(--_line); border-radius: var(--_radius); padding: 24px; background: var(--_soft); }
.tgx-gate__box h3 { margin: 0 0 6px; font-size: 1.2rem; }
.tgx-gate__box p { color: var(--_muted); margin: 0 0 14px; }
.tgx-gate__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Guide buy box */
.tgx-buy { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_radius); padding: 22px; margin: 0 0 24px; }
.tgx-buy__price { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.tgx-buy__meta { color: var(--_muted); margin: 2px 0 14px; font-size: .9rem; }
.tgx-buy__small { color: var(--_muted); font-size: .85rem; margin: 10px 0 0; text-align: center; }

/* Ads */
.tgx-ad { margin: 24px 0; text-align: center; min-height: 90px; grid-column: 1 / -1; }
.tgx-ad__label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--_muted, #6b7280); margin-bottom: 4px; }
