:root{
    --bg:#F8FAFC;
    --ink:#111827;
    --ink-soft:#4b5563;
    --ink-faint:#9ca3af;
    --blue:#2563EB;
    --blue-dark:#1d4ed8;
    --blue-tint:#EFF4FF;
    --border:#E5E9F0;
    --card:#ffffff;
    --shadow: 0 1px 2px rgba(17,24,39,0.04), 0 12px 32px -12px rgba(17,24,39,0.10);
    --shadow-hover: 0 4px 10px rgba(17,24,39,0.06), 0 24px 48px -16px rgba(37,99,235,0.20);
    --radius: 18px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Sora',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:
        radial-gradient(1000px 500px at 100% -10%, rgba(37,99,235,0.07), transparent 60%),
        var(--bg);
    color:var(--ink);
    min-height:100vh;
}

/* Header */

header{
    background:#111827;
    background-image: radial-gradient(600px 240px at 15% 0%, rgba(37,99,235,0.35), transparent 60%);
    color:white;
    padding:22px 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:50;
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.logo{
    font-size:26px;
    font-weight:700;
    letter-spacing:-0.02em;
    display:flex;
    align-items:center;
    gap:10px;
}

.logo::before{
    content:"";
    width:10px;
    height:10px;
    border-radius:3px;
    background:var(--blue);
    box-shadow:0 0 0 5px rgba(37,99,235,0.18);
    display:inline-block;
}

.logo span{
    color:#5B8DEF;
}

.header-tag{
    font-size:13px;
    color:rgba(255,255,255,0.55);
    letter-spacing:0.04em;
    text-transform:uppercase;
    border:1px solid rgba(255,255,255,0.14);
    padding:7px 14px;
    border-radius:999px;
}

@media(max-width:640px){
    .header-tag{ display:none; }
}

/* Container / Hero */

.container{
    max-width:1200px;
    margin:0 auto;
    padding:20px;
}

.hero{
    text-align:center;
    padding:64px 20px 40px;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    font-weight:600;
    color:var(--blue-dark);
    background:var(--blue-tint);
    border:1px solid #DCE7FF;
    padding:6px 14px;
    border-radius:999px;
    margin-bottom:18px;
    letter-spacing:0.01em;
}

.eyebrow::before{
    content:"";
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--blue);
}

h1{
    font-size:clamp(30px, 4.2vw, 46px);
    font-weight:800;
    letter-spacing:-0.03em;
    line-height:1.1;
    color:var(--ink);
    margin-bottom:14px;
}

h1 .accent{
    color:var(--blue);
}

.subhead{
    color:var(--ink-soft);
    font-size:16px;
    max-width:560px;
    margin:0 auto;
    font-weight:400;
}

/* Source toggle */

.source-toggle{
    display:flex;
    gap:8px;
    justify-content:center;
    flex-wrap:wrap;
    margin:26px auto 0;
    max-width:820px;
}

.source-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:12.5px;
    font-weight:600;
    padding:7px 14px;
    border-radius:999px;
    border:1.5px solid var(--border);
    background:#fff;
    color:var(--ink-soft);
    cursor:pointer;
    user-select:none;
    transition:.2s ease;
}

.source-chip:hover{ border-color:#c7d2e3; }

.source-chip.active{
    border-color:var(--blue);
    background:var(--blue-tint);
    color:var(--blue-dark);
}

.source-chip .dot{
    width:7px;height:7px;border-radius:50%;
    flex-shrink:0;
}

/* Filters */

.filters{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
    margin:20px 0 12px;
    background:var(--card);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    padding:14px;
    border-radius:20px;
    max-width:820px;
    margin-left:auto;
    margin-right:auto;
}

.select-wrap{
    position:relative;
}

.select-wrap::after{
    content:"";
    position:absolute;
    right:16px;
    top:50%;
    width:8px;
    height:8px;
    border-right:2px solid var(--ink-faint);
    border-bottom:2px solid var(--ink-faint);
    transform:translateY(-70%) rotate(45deg);
    pointer-events:none;
}

select,button{
    padding:13px 40px 13px 18px;
    border-radius:12px;
    border:1px solid var(--border);
    font-size:14.5px;
    font-weight:500;
    font-family:'Sora',sans-serif;
}

select{
    background:#fbfcfe;
    color:var(--ink);
    appearance:none;
    -webkit-appearance:none;
    cursor:pointer;
    min-width:170px;
    transition:border-color .2s ease, background .2s ease;
}

select:hover{
    border-color:#c7d2e3;
    background:#fff;
}

select:focus-visible, button:focus-visible{
    outline:2px solid var(--blue);
    outline-offset:2px;
}

button{
    background:var(--blue);
    background-image:linear-gradient(180deg, #3B78F6, var(--blue));
    color:white;
    cursor:pointer;
    border:1px solid var(--blue-dark);
    padding:13px 26px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    box-shadow:0 6px 16px -6px rgba(37,99,235,0.55);
    transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}

button:hover{
    background:var(--blue-dark);
    transform:translateY(-1px);
    box-shadow:0 10px 22px -8px rgba(37,99,235,0.6);
}

button:active{
    transform:translateY(0);
}

.results-bar{
    max-width:820px;
    margin:0 auto 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 6px;
    color:var(--ink-faint);
    font-size:13.5px;
    font-weight:500;
}

#resultCount b{
    color:var(--ink);
}

.source-warning{
    max-width:820px;
    margin:0 auto 20px;
    padding:10px 16px;
    background:#FFFBEB;
    border:1px solid #FDE68A;
    color:#92400E;
    font-size:12.5px;
    border-radius:12px;
    display:none;
}

.source-warning.show{ display:block; }

/* Jobs grid */

#jobs{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:22px;
    padding-bottom:60px;
}

.job-card{
    background:var(--card);
    padding:26px;
    border-radius:var(--radius);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display:flex;
    flex-direction:column;
    position:relative;
    overflow:hidden;
    animation:rise .45s ease both;
}

.job-card::before{
    content:"";
    position:absolute;
    left:0; top:0; bottom:0;
    width:4px;
    background:linear-gradient(180deg, var(--blue), #7FA8FF);
    opacity:0;
    transition:opacity .25s ease;
}

.job-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-hover);
    border-color:#D6E1FB;
}

.job-card:hover::before{
    opacity:1;
}

.card-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
}

.avatar{
    width:44px;
    height:44px;
    border-radius:12px;
    background:linear-gradient(135deg, var(--blue-tint), #E4ECFF);
    color:var(--blue-dark);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:16px;
    flex-shrink:0;
    border:1px solid #DCE7FF;
}

.pill-group{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
}

.type-pill{
    font-size:11.5px;
    font-weight:600;
    color:var(--blue-dark);
    background:var(--blue-tint);
    border:1px solid #DCE7FF;
    padding:5px 11px;
    border-radius:999px;
    white-space:nowrap;
    text-transform:capitalize;
}

.source-pill{
    font-size:10.5px;
    font-weight:700;
    padding:3px 10px;
    border-radius:999px;
    white-space:nowrap;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:#fff;
}

.job-card h2{
    color:var(--ink);
    font-size:18px;
    font-weight:700;
    letter-spacing:-0.01em;
    margin-bottom:4px;
    line-height:1.3;
}

.job-card h3{
    color:var(--ink-soft);
    font-size:14px;
    font-weight:500;
    margin-bottom:14px;
}

.meta-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px 14px;
    margin-bottom:14px;
}

.meta-item{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    color:var(--ink-soft);
    font-weight:500;
}

.meta-item svg{
    flex-shrink:0;
    color:var(--blue);
}

.job-card p.excerpt{
    font-size:13.5px;
    line-height:1.6;
    color:var(--ink-soft);
    margin-bottom:20px;
    flex-grow:1;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.job-card a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:var(--ink);
    color:white;
    padding:12px 18px;
    border-radius:11px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:background .2s ease, gap .2s ease;
    margin-top:auto;
}

.job-card a:hover{
    background:var(--blue-dark);
    gap:11px;
}

@keyframes rise{
    from{ opacity:0; transform:translateY(14px); }
    to{ opacity:1; transform:translateY(0); }
}

/* Loading skeleton */

.loading-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:22px;
}

.skeleton-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:26px;
    height:236px;
    position:relative;
    overflow:hidden;
}

.skeleton-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, transparent, rgba(37,99,235,0.06), transparent);
    animation:shimmer 1.4s infinite;
}

@keyframes shimmer{
    0%{ transform:translateX(-100%); }
    100%{ transform:translateX(100%); }
}

/* Empty state */

.empty-state{
    grid-column:1/-1;
    text-align:center;
    padding:70px 20px;
    color:var(--ink-soft);
}

.empty-state .icon{
    font-size:38px;
    margin-bottom:14px;
}

.empty-state h2{
    color:var(--ink);
    font-size:20px;
    margin-bottom:8px;
}

.empty-state p{
    font-size:14px;
    color:var(--ink-faint);
}

footer{
    text-align:center;
    padding:30px 20px 50px;
    color:var(--ink-faint);
    font-size:13px;
}

@media(max-width:600px){

header{
    padding:16px 20px;
}

.hero{
    padding:44px 16px 28px;
}

.filters{
    padding:12px;
}

select, button{
    width:100%;
    min-width:0;
}

.select-wrap{
    width:100%;
}

}


/* Unified Brand Logo & Header Nav Overrides for Jobs Page */
header .brand-logo::before {
    display: none !important;
}

.job-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.job-nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94A3B8;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.job-nav-links a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.job-nav-links a.active {
    color: #60A5FA;
    background: rgba(96, 165, 250, 0.12);
    font-weight: 600;
}

@media(max-width: 800px) {
    .job-nav-links {
        display: none;
    }
}
