/* Talent marketplace + hiring hub
   Palette inspired by flat editorial data graphics:
   cream surface, charcoal ink, forest green, muted gold */
:root {
    --tm-bg: #f5f2eb;
    --tm-bg-deep: #ebe6db;
    --tm-surface: #fffcf7;
    --tm-ink: #1a1a1a;
    --tm-muted: #666666;
    --tm-line: #ddd7cb;
    --tm-green: #2e7d32;
    --tm-green-soft: rgba(46, 125, 50, 0.12);
    --tm-gold: #b8964d;
    --tm-red: #e53935;
    --tm-font: 'Source Sans 3', 'Segoe UI', sans-serif;
    --tm-font-display: 'Fraunces', Georgia, serif;
}

.landing-body--talent {
    background: var(--tm-bg);
    color: var(--tm-ink);
    font-family: var(--tm-font);
}

.landing-body--talent h1,
.landing-body--talent h2,
.landing-body--talent h3 {
    font-family: var(--tm-font-display);
    font-weight: 600;
}

.landing-body--talent .mkt-eyebrow {
    font-family: var(--tm-font);
}

.landing-body--talent .mkt-eyebrow {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border-radius: 0;
    background: var(--tm-green-soft);
    color: var(--tm-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-body--talent .btn-primary {
    background: var(--tm-green);
    border-color: var(--tm-green);
    color: #fff;
    border-radius: 2px;
    font-family: var(--tm-font);
    font-weight: 700;
}

.landing-body--talent .btn-primary:hover {
    background: #256628;
    border-color: #256628;
}

.landing-body--talent .btn-secondary {
    background: transparent;
    border: 1px solid var(--tm-ink);
    color: var(--tm-ink);
    border-radius: 2px;
    font-family: var(--tm-font);
    font-weight: 700;
}

.landing-body--talent .btn-secondary:hover {
    background: var(--tm-ink);
    color: #fff;
}

.landing-body--talent .form-control {
    border-color: var(--tm-line);
    border-radius: 2px;
    background: var(--surface-color, #fff);
    color: var(--tm-ink);
    font-family: var(--tm-font);
}

.landing-body--talent .form-control:focus {
    border-color: var(--tm-green);
    box-shadow: 0 0 0 3px var(--tm-green-soft);
}

.landing-body--talent label {
    color: var(--tm-ink);
    font-weight: 600;
    font-size: 0.88rem;
}

/* Talent marketplace + hiring hub */
.tm-hero {
    padding: 3.25rem 1.5rem 2.5rem;
    background: var(--tm-bg);
    border-bottom: 1px solid var(--tm-line);
    text-align: center;
}

.tm-hero-inner {
    max-width: 48rem;
    margin: 0 auto;
}

.tm-hero h1 {
    margin: 0.5rem 0 0.85rem;
    font-family: var(--tm-font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--tm-ink);
    line-height: 1.12;
}

.tm-hero-sub {
    margin: 0 auto 1.35rem;
    max-width: 38rem;
    color: var(--tm-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

.tm-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.tm-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tm-hero-stats strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tm-ink);
}

.tm-hero-stats span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tm-muted);
}

.tm-section {
    padding: 2rem 1.5rem 3.5rem;
}

.tm-section-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.tm-filters {
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
}

.tm-filters-row,
.hire-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.tm-grow { flex: 1 1 14rem; }
.tm-check,
.tm-actions { padding-bottom: 0.15rem; }

.tm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tm-card {
    display: flex;
    gap: 0.9rem;
    padding: 1.15rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: var(--surface-color, #fff);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}

.tm-card:hover {
    border-color: #2f8f9d;
    transform: translateY(-1px);
}

.tm-card-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: #1f3a5f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.tm-card-avatar--lg {
    width: 4.25rem;
    height: 4.25rem;
    font-size: 1.25rem;
}

.tm-card-body h2,
.tm-card-body h3 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}

.tm-card-headline {
    margin: 0 0 0.45rem;
    color: #475569;
    font-size: 0.92rem;
}

.tm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    color: #64748b;
}

.tm-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tm-skills span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
}

.tm-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
}

.tm-profile-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr;
    gap: 1.25rem;
    align-items: start;
}

.tm-profile-main,
.tm-interest-card {
    padding: 1.5rem;
}

.tm-profile-header {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

.tm-profile-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.65rem;
}

.tm-profile-block,
.tm-profile-bio {
    margin-top: 1.25rem;
}

.tm-profile-block h2,
.tm-profile-bio h2,
.tm-interest-card h2 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

.tm-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.tm-interest-sent {
    color: #16a34a;
    font-weight: 600;
}

.tm-form-wrap { max-width: 48rem; }
.tm-form { padding: 1.5rem; }
.tm-form-head { margin-bottom: 1.25rem; }
.tm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.tm-span-2 { grid-column: 1 / -1; }
.tm-checks {
    display: grid;
    gap: 0.45rem;
}

/* —— Open-to-work profile page —— */
.otw-hero {
    padding: 2.75rem 1.5rem 2rem;
    background: var(--tm-bg);
    border-bottom: 1px solid var(--tm-line);
}

.otw-hero-inner {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.otw-hero h1 {
    margin: 0.45rem 0 0.75rem;
    font-family: var(--tm-font-display);
    font-size: clamp(1.85rem, 3.6vw, 2.55rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--tm-ink);
    line-height: 1.12;
}

.otw-hero-sub {
    margin: 0 auto 1.15rem;
    max-width: 36rem;
    color: var(--tm-muted);
    line-height: 1.55;
    font-size: 1.05rem;
}

.otw-hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.25rem;
}

.otw-hero-links .btn-link {
    font-weight: 700;
    color: var(--tm-ink);
    text-decoration: none;
    border-bottom: 2px solid var(--tm-gold);
    padding-bottom: 0.1rem;
}

.otw-hero-links .btn-link:hover {
    color: var(--tm-green);
    border-bottom-color: var(--tm-green);
}

.otw-hero-links i {
    margin-right: 0.3rem;
    color: var(--tm-gold);
}

.otw-section {
    padding: 2rem 1.25rem 3.5rem;
    background: var(--tm-bg);
}

.otw-layout {
    max-width: 68rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.otw-aside-card {
    position: sticky;
    top: 1.25rem;
    padding: 1.35rem 1.4rem;
    border-radius: 0;
    background: var(--tm-ink);
    color: #fff;
    border-top: 3px solid var(--tm-gold);
}

.otw-aside-card h2 {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-family: var(--tm-font);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.otw-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.otw-benefits li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.otw-benefits i {
    width: 2rem;
    height: 2rem;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: var(--tm-green-soft);
    color: #81c784;
    font-size: 0.85rem;
}

.otw-benefits strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.otw-benefits span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.45;
}

.otw-aside-note {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    line-height: 1.45;
}

.otw-aside-note i {
    margin-right: 0.35rem;
    color: var(--tm-gold);
}

.otw-messages { margin-bottom: 1rem; }

.otw-form {
    background: var(--tm-surface);
    border: 1px solid var(--tm-line);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
}

.otw-fieldset {
    margin: 0;
    padding: 1.35rem 1.4rem 1.15rem;
    border: 0;
    border-bottom: 1px solid var(--tm-line);
}

.otw-fieldset legend {
    float: left;
    width: 100%;
    padding: 0;
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm-ink);
}

.otw-fieldset-hint {
    clear: both;
    margin: 0 0 1rem;
    color: var(--tm-muted);
    font-size: 0.9rem;
}

.otw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.otw-span-2 { grid-column: 1 / -1; }

.otw-optional {
    font-weight: 500;
    color: #999;
    font-size: 0.85em;
    text-transform: none;
    letter-spacing: 0;
}

.otw-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 1rem;
}

.otw-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--tm-line);
    border-radius: 0;
    background: var(--surface-color, #fff);
    font-weight: 600;
    color: var(--tm-ink);
    cursor: pointer;
}

.otw-check input {
    margin-top: 0.15rem;
    accent-color: var(--tm-green);
}

.otw-check em {
    font-style: normal;
    font-weight: 500;
    color: var(--tm-muted);
    font-size: 0.85em;
}

.otw-file-hint {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    color: var(--tm-muted);
}

.otw-submit-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.15rem 1.4rem 1.35rem;
    background: var(--tm-bg-deep);
    border-top: 1px solid var(--tm-line);
}

.otw-submit-copy {
    margin: 0;
    color: var(--tm-muted);
    font-size: 0.92rem;
    max-width: 22rem;
}

.otw-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .otw-layout {
        grid-template-columns: 1fr;
    }

    .otw-aside-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .otw-grid,
    .otw-checks {
        grid-template-columns: 1fr;
    }

    .otw-submit-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .otw-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

.hire-hub { max-width: 1100px; margin: 0 auto; padding: 0.5rem 0 2rem; }
.hire-hub-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.hire-hub-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hire-hub-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.hire-kpi {
    background: var(--surface-color, #fff);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}
.hire-kpi strong { display: block; font-size: 1.35rem; color: #1f3a5f; }
.hire-kpi span { font-size: 0.8rem; color: #64748b; }
.hire-hub-panel { margin-bottom: 1.25rem; }
.hire-grid { margin-top: 1rem; }
.hire-interest-list { list-style: none; margin: 0; padding: 0; }
.hire-interest-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.hire-interest-status {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2f8f9d;
}
.hire-hub-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hire-remote { display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }

.tm-tabs {
    border-bottom: 1px solid #e2e8f0;
    background: var(--surface-color, #fff);
    position: sticky;
    top: 0;
    z-index: 5;
}
.tm-tabs-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    gap: 0.25rem;
    padding: 0 1.5rem;
    overflow-x: auto;
}
.tm-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tm-tab:hover { color: #0f172a; }
.tm-tab.is-active {
    color: #1f3a5f;
    border-bottom-color: #c2410c;
}
.tm-section-head { margin-bottom: 1.25rem; }
.tm-section-head h2 {
    margin: 0 0 0.35rem;
    font-family: var(--tm-font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    color: #0f172a;
}
.tm-section-head p { margin: 0; color: #64748b; }

.tm-jobs { display: grid; gap: 0.85rem; }
.tm-job-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: var(--surface-color, #fff);
}
.tm-job-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.tm-job-card h3 a { color: #0f172a; text-decoration: none; }
.tm-job-card h3 a:hover { color: #2f8f9d; }
.tm-job-meta {
    margin: 0 0 0.45rem;
    color: #64748b;
    font-size: 0.86rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.tm-job-excerpt { margin: 0; color: #475569; font-size: 0.92rem; line-height: 1.5; }
.tm-job-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: flex-start; }
.tm-pill {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
}
.tm-pill--ok { background: #dcfce7; color: #166534; }
.tm-more { margin-top: 1.25rem; text-align: center; }

.tm-ai-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.15rem;
    align-items: start;
}
.tm-ai-form, .tm-ai-result { padding: 1.35rem; }
.tm-ai-result { min-height: 22rem; }
.tm-score-ring {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    border: 6px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}
.tm-score-ring strong { font-size: 1.75rem; line-height: 1; color: #0f172a; }
.tm-score-ring span { font-size: 0.75rem; color: #64748b; }
.tm-score--strong { border-color: #16a34a; }
.tm-score--good { border-color: #2f8f9d; }
.tm-score--fair { border-color: #d97706; }
.tm-score--weak { border-color: #dc2626; }
.tm-rec { font-size: 1.02rem; }
.tm-ai-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}
.tm-ai-result h3 { margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.tm-ai-result ul, .tm-q { margin: 0; padding-left: 1.1rem; color: #334155; }
.tm-skills--warn span { background: #fff7ed; color: #9a3412; }
.tm-ai-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: #475569;
}
.tm-ai-placeholder i { font-size: 2rem; color: #2f8f9d; margin-bottom: 0.75rem; }
.tm-feature-mini {
    text-align: left;
    display: inline-block;
    margin: 1rem auto 0;
    color: #334155;
}
.tm-hint { margin-top: 0.85rem; font-size: 0.82rem; color: #64748b; }

.tm-ats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}
.tm-ats-card {
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: var(--surface-color, #fff);
}
.tm-ats-card i {
    color: #2f8f9d;
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
}
.tm-ats-card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.tm-ats-card p { margin: 0; color: #64748b; font-size: 0.9rem; line-height: 1.5; }
.tm-ats-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.75rem;
}
.hire-pending-list { list-style: none; margin: 0; padding: 0; }
.hire-pending-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.hire-ai-score {
    font-weight: 700;
    color: #1f3a5f;
    margin-left: auto;
}

@media (max-width: 900px) {
    .tm-profile-layout,
    .tm-form-grid,
    .hire-hub-kpis,
    .tm-ai-layout,
    .tm-ai-cols,
    .tm-ats-grid {
        grid-template-columns: 1fr;
    }
}
