/* Careers site styles. Extracted from the internal app's stylesheet: rules naming only
   internal components (candidate cards, AI summary cards, chat, pipeline) are excluded,
   because a stylesheet is served as plain text and its class names describe the app. */

:root {
    --tp-primary: #6355e0;
    --tp-primary-dark: #4f42c9;
    --tp-text: #1c1c28;
    --tp-text-muted: #4a4f5c;
    --tp-border: #dfe1e6;
    --tp-sidebar-bg: #eef0f2;
    --tp-sidebar-border: #e2e4e8;
    --mud-typography-default-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--tp-text);
    background: #ffffff;
}
*, *::before, *::after {
    box-sizing: border-box;
}
a {
    color: var(--tp-primary);
    text-decoration: none;
}
a:hover {
    color: var(--tp-primary-dark);
}
h1:focus {
    outline: none;
}
/* ---------- Layout ---------- */

.tp-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #ffffff;
}
.tp-main {
    flex: 1;
    min-width: 0;
    padding: 26px 34px 60px 34px;
}
/* ---------- Sidebar ---------- */

.tp-sidebar {
    width: 232px;
    flex: 0 0 232px;
    background: var(--tp-sidebar-bg);
    border-right: 1px solid var(--tp-sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 20px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.tp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px 26px 2px;
}
.tp-brand-logo {
    max-width: 100%;
    height: auto;
    display: block;
}
.tp-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tp-nav-btn {
    width: 100%;
    text-align: center;
    padding: 11px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .12s;
    background: var(--tp-primary);
    color: #fff;
}
.tp-nav-btn:hover {
    background: var(--tp-primary-dark);
}
.tp-nav-btn.active {
    background: #fff;
    color: var(--tp-primary);
    border: 1px solid #d9dbe2;
}
.tp-nav-btn.active:hover {
    background: #fff;
}
/* ---------- Public careers page ---------- */

.tp-public-title {
    margin: 0 0 60px 0;
    font-size: 26px;
    font-weight: 600;
    color: #3a3f4c;
}
.tp-public-table {
    width: auto;
    margin-bottom: 0;
}
.tp-job-name {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tp-job-name:hover {
    color: var(--tp-primary);
}
.tp-action-cell {
    padding: 10px 16px;
    text-align: center;
}
.tp-row-apply {
    background: var(--tp-primary);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(99, 85, 224, 0.3);
}
.tp-row-apply:hover {
    background: var(--tp-primary-dark);
}
/* ---------- Apply Job modal ---------- */

.tp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 40, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    z-index: 50;
}
.tp-modal {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.tp-modal-wide {
    width: 920px;
    max-width: 100%;
}
.tp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #dbeafe;
    padding: 14px 22px;
}
.tp-modal-title {
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    color: #3f4fc9;
}
.tp-modal-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #1c1c28;
    display: flex;
}
.tp-modal-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    height: calc(90vh - 54px);
    max-height: 760px;
}
.tp-modal-about {
    padding: 26px 28px 34px 28px;
    border-right: 1px solid var(--tp-sidebar-border);
    overflow-y: auto;
}
.tp-modal-about h2 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--tp-text);
}
.tp-about-job-title {
    font-style: italic;
    font-weight: 700;
    font-size: 16px;
    color: var(--tp-primary);
    margin-bottom: 18px;
}
.tp-about-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 28px;
    margin-bottom: 22px;
    font-size: 14px;
}
.tp-about-key {
    font-weight: 700;
    color: var(--tp-text);
}
.tp-about-val {
    color: #3a3a48;
}
.tp-about-section {
    margin-bottom: 18px;
}
.tp-about-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-text);
}
.tp-about-description {
    font-size: 13px;
    line-height: 1.55;
    color: var(--tp-text-muted);
    white-space: pre-line;
}
.tp-modal-form {
    padding: 24px 26px 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}
.tp-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2b2b38;
    margin-bottom: 6px;
}
.tp-field-help {
    font-size: 13px;
    line-height: 1.5;
    color: #5a5a68;
    margin: 0 0 10px;
}
.tp-field-help a {
    color: #4a3aff;
    font-weight: 600;
    text-decoration: underline;
}
.tp-field-input {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #9aa0ad;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
}
select.tp-field-input {
    background: #fff;
    color: var(--tp-text);
    height: 39px;
}
.tp-field-input:focus {
    outline: none;
    border-color: var(--tp-primary);
}
/* Country picker (flag + dial code) + number, side by side. */
.tp-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.tp-country-trigger {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    width: auto;
    background: #fff;
    cursor: pointer;
}
.tp-country-trigger .fi {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.tp-country-dial {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-text);
}
.tp-country-caret {
    color: #9aa0ad;
}
.tp-phone-row .tp-field-input[type="tel"] {
    flex: 1 1 auto;
    min-width: 0;
}
.tp-country-pop {
    margin-top: 6px;
    background: #fff;
    border: 1px solid #cfd3db;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(20, 20, 40, .16);
    padding: 8px;
}
.tp-country-search {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #9aa0ad;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    margin-bottom: 6px;
}
.tp-country-search:focus {
    outline: none;
    border-color: var(--tp-primary);
}
.tp-country-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.tp-country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.tp-country-item:hover {
    background: #f0eefc;
}
.tp-country-item .fi {
    flex: 0 0 auto;
    width: 22px;
    height: 16px;
    border-radius: 2px;
}
.tp-country-item-name {
    flex: 1 1 auto;
    font-size: 13px;
    color: var(--tp-text);
}
.tp-country-item-dial {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--tp-text-muted);
}
/* Salary expectation ($ prefix). */
.tp-salary-row {
    position: relative;
}
.tp-salary-prefix {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-text-muted);
    pointer-events: none;
}
.tp-salary-input {
    padding-left: 22px;
}
/* Inline validation feedback. */
.tp-field-input-invalid,
.tp-field-input-invalid:focus {
    border-color: #d64545;
}
.tp-field-error {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #d64545;
}
.tp-upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #9aa0ad;
    border-radius: 4px;
    padding: 30px 12px;
    cursor: pointer;
    margin-top: 6px;
    color: #2b2b38;
    transition: border-color .15s, background .15s;
}
.tp-upload-box.tp-dragover {
    border-color: var(--tp-primary);
    background: #f3f1fe;
}
.tp-upload-box span {
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
}
/* Overlay the native file input so files can be dropped onto the box directly. */
.tp-upload-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.tp-modal-apply {
    width: 100%;
    margin-top: 6px;
    background: var(--tp-primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.tp-modal-apply:hover {
    background: var(--tp-primary-dark);
}
.tp-section-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-text);
}
/* ---------- Chips ---------- */

.tp-chip {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.tp-chip-role {
    background: #7a7f8c;
    padding: 5px 12px;
    margin-bottom: 0;
}
/* ---------- Jobs table ---------- */

.tp-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--tp-border);
    margin-bottom: 26px;
}
.tp-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #2b2b38;
    border-bottom: 1px solid var(--tp-border);
    border-right: 1px solid var(--tp-border);
}
.tp-table th:last-child {
    border-right: none;
}
.tp-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #3a3a48;
    border-bottom: 1px solid var(--tp-border);
    border-right: 1px solid var(--tp-border);
}
.tp-table td:last-child {
    border-right: none;
}
.tp-table tr:last-child td {
    border-bottom: none;
}
/* ---------- Auth / boot loading ---------- */

.tp-auth-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-size: 15px;
    font-weight: 500;
    color: var(--tp-text-muted);
}
/* ---------- Error UI (template default) ---------- */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
