:root {
    --ink: #0f172a;
    --muted: #5b6b82;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --line: #e6eaf2;
    --line-strong: #d5dbe7;
    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --accent-3: #2563eb;
    --accent-soft: rgba(79, 70, 229, 0.08);
    --success: #0f9f6e;
    --warning: #d97706;
    --danger: #dc2626;
    --white: #fff;
    --shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 18px 40px rgba(79, 70, 229, 0.14);
    --radius: 18px;
    --radius-sm: 12px;
    --header-h: 4.35rem;
    --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --grad-soft: linear-gradient(180deg, #eef2ff 0%, #f6f7fb 42%, #f6f7fb 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 1100;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.container,
.header-inner,
.footer-inner,
.hero > :where(h1, p, form, .hero-copy),
.filters,
.job-grid,
.pagination,
.home-columns,
.job-page,
.related-grid,
.empty {
    width: min(1160px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #eef2ff, #f5f3ff);
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 0.4rem 1rem;
}
.topbar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
    padding: 0.7rem 0;
}
.brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
    flex-shrink: 0;
}
.brand strong {
    display: block;
    font-size: 1.02rem;
    letter-spacing: -0.03em;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}
.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav a svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.nav a[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent);
}
.nav-cta {
    background: var(--grad) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.24);
    margin-left: 0.35rem;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 99px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
    position: relative;
    padding: 3.2rem 0 1.8rem;
}
.hero-home {
    padding: 3.6rem 0 2.4rem;
    background:
        radial-gradient(circle at 12% 12%, rgba(124, 58, 237, 0.12), transparent 32%),
        radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.14), transparent 36%),
        var(--grad-soft);
    overflow: hidden;
}
.hero-home .container { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    box-shadow: var(--shadow);
}
h1, h2, h3 {
    letter-spacing: -0.035em;
    line-height: 1.18;
    color: var(--ink);
}
.hero h1 {
    font-size: clamp(2.05rem, 4.4vw, 3.4rem);
    margin: 0.9rem 0 0.7rem;
    max-width: 16ch;
}
.hero-lead, .hero p {
    margin: 0;
    color: var(--muted);
    max-width: 42rem;
    font-size: 1.05rem;
}
.search-bar {
    display: flex;
    gap: 0.45rem;
    margin-top: 1.5rem;
    background: var(--white);
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    max-width: 680px;
}
.search-bar input {
    flex: 1;
    border: 0;
    padding: 0.85rem 1.05rem;
    font: inherit;
    background: transparent;
    min-width: 0;
}
.search-bar input:focus { outline: none; }
.search-bar button, .btn {
    background: var(--grad);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.3rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.search-bar button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    margin-top: 1.5rem;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
}
.hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-stats span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.category-strip { padding: 0 0 1.2rem; }
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #334155;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.chip:hover {
    border-color: #c7d2fe;
    color: var(--accent);
    transform: translateY(-1px);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: end;
    padding: 0 0 1.4rem;
}
.filter-row label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 600;
}
select, input, textarea {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.62rem 0.8rem;
    background: #fff;
    color: var(--ink);
}
.ghost {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.7rem 1.05rem;
    cursor: pointer;
    font-weight: 700;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.ghost:hover { border-color: var(--accent); color: var(--accent); }

.home-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.05rem;
    margin: 0 auto 2.8rem;
}
.home-col {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.15rem 0.7rem;
    box-shadow: var(--shadow);
}
.col-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
}
.col-head h2 { margin: 0; font-size: 1.15rem; }
.col-head a {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.86rem;
}
.mini-card { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.mini-card:last-child { border-bottom: 0; }
.mini-card h3 { margin: 0.18rem 0 0.28rem; font-size: 1rem; }
.mini-card h3 a { color: var(--ink); text-decoration: none; }
.mini-card h3 a:hover { color: var(--accent); }
.mini-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.empty-mini { color: var(--muted); padding: 0.8rem 0 1.1rem; }

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.05rem;
    padding-bottom: 2rem;
}
.job-card, .job-detail, .related, .empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.2rem 1.15rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #c7d2fe;
}
.job-card h2 { font-size: 1.12rem; margin: 0.25rem 0 0.55rem; }
.job-card a { color: var(--ink); text-decoration: none; }
.job-card h2 a:hover { color: var(--accent); }
.org {
    color: var(--accent-2);
    font-weight: 700;
    margin: 0;
    font-size: 0.82rem;
}
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0 0 0.7rem;
}
.meta li {
    background: #eef2ff;
    color: #3730a3;
    padding: 0.18rem 0.58rem;
    border-radius: 999px;
    font-weight: 600;
}
.dates { margin: 0; color: var(--muted); font-size: 0.9rem; }
.card-link, .job-card .card-link {
    display: inline-flex;
    margin-top: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 auto 2.4rem;
}
.pagination a {
    min-width: 2.3rem;
    text-align: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    font-weight: 600;
}
.pagination a.active, .pagination a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.crumbs {
    color: var(--muted);
    font-size: 0.88rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.job-grid .empty-state {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}
.empty-state, .job-detail {
    width: min(860px, calc(100% - 2rem));
    margin: 1.6rem auto 2.2rem;
}
.job-detail h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.3rem 0 0.6rem; }
.job-detail .lead { color: var(--muted); }
.cta-row { margin: 1rem 0 0; }
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.8rem;
    background: #eef2ff;
    padding: 1rem;
    border-radius: 14px;
    margin: 1.2rem 0;
}
.facts div { margin: 0; }
.facts dt {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
}
.facts dd { margin: 0.2rem 0 0; font-weight: 700; }
.job-page { margin: 1.3rem auto 0; }
.job-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
    gap: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.28), transparent 42%),
        linear-gradient(145deg, #312e81 0%, #4338ca 48%, #6d28d9 100%);
    color: #fff;
    border-radius: 24px;
    padding: 1.7rem 1.7rem;
    box-shadow: var(--shadow-hover);
}
.job-hero h1 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    margin: 0.5rem 0 0.55rem;
    color: #fff;
}
.result-hero {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.3), transparent 42%),
        linear-gradient(145deg, #1e3a8a 0%, #3730a3 46%, #0f766e 100%);
}
.job-hero .lead { margin: 0; color: #e0e7ff; max-width: 42rem; }
.job-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
}
.pill-org { background: #fff; color: #3730a3; border-color: transparent; }
.pill-open { background: #059669; border-color: transparent; }
.pill-urgent { background: #d97706; border-color: transparent; }
.pill-closed { background: #b91c1c; border-color: transparent; }
.apply-card {
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    padding: 1.15rem 1.15rem;
    display: grid;
    align-content: start;
    gap: 0.35rem;
}
.apply-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}
.apply-date { margin: 0; font-size: 1.45rem; letter-spacing: -0.03em; }
.apply-hint { margin: 0; color: var(--warning); font-weight: 700; }
.apply-note { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.82rem; }
.btn-apply { text-align: center; margin-top: 0.5rem; }
.snapshot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1.1rem 0 1.25rem;
}
.snapshot article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    box-shadow: var(--shadow);
}
.snapshot span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}
.snapshot strong { display: block; margin-top: 0.35rem; font-size: 1.02rem; line-height: 1.35; }
.job-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.9fr);
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.95rem;
}
.jump-nav a {
    background: #eef2ff;
    color: #3730a3;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
}
.job-block, .side-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 0.9rem;
}
.job-block h2, .side-card h2, .related h2 {
    margin: 0 0 0.7rem;
    font-size: 1.2rem;
}
.job-block p { margin: 0 0 0.8rem; color: #334155; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.timeline li {
    padding-left: 1rem;
    border-left: 3px solid #c7d2fe;
}
.timeline li.is-due { border-left-color: var(--accent); }
.timeline li.is-closed { border-left-color: var(--danger); }
.timeline span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.side-facts { margin: 0; display: grid; gap: 0.7rem; }
.side-facts div { margin: 0; }
.side-facts dt {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 700;
}
.side-facts dd { margin: 0.15rem 0 0; font-weight: 700; }
.related-grid {
    margin: 0 auto 2.4rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.related-card {
    display: grid;
    gap: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.related-card span { color: var(--muted); font-size: 0.88rem; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.4rem 0 1.6rem;
    color: var(--muted);
    font-size: 0.92rem;
    background: #fff;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 1.6rem;
}
.footer-grid h2 {
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-grid a { color: #334155; text-decoration: none; font-weight: 600; }
.footer-grid a:hover { color: var(--accent); }
.brand-footer { margin-bottom: 0.8rem; }
.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
}

@media (max-width: 900px) {
    .home-columns, .job-hero, .job-layout, .snapshot, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { max-width: none; }
}
@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        top: calc(100% + 0.55rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 0.7rem;
        box-shadow: var(--shadow-hover);
        z-index: 1001;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 0.8rem 0.9rem; }
    .nav-cta { margin: 0.35rem 0 0; justify-content: center; }
}
@media (max-width: 720px) {
    .search-bar { flex-direction: column; border-radius: 16px; }
    .hero { padding: 2.2rem 0 1.3rem; }
    .topbar { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
