:root {
    color-scheme: light;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-faint: #64748b; /* WCAG AA on white at small sizes */
    --accent: #4f46e5;
    --accent-dark: #4338ca;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --card: #ffffff;
    --line: #e2e8f0;
    --money: #059669;
    --hero-from: #eef2ff;
    --hero-to: #f8fafc;
    --radius: 10px;
    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: Sora, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.dark {
    color-scheme: dark;
        --ink: #e2e8f0;
        --ink-soft: #94a3b8;
        --ink-faint: #8494ab;
        --accent: #818cf8;
        --accent-dark: #a5b4fc;
        --bg: #0b1120;
        --bg-alt: #0f172a;
        --card: #111a2e;
        --line: #1e293b;
        --money: #34d399;
        --hero-from: #141d36;
        --hero-to: #0b1120;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.04em;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { display: inline-block; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero — previous-site photo backgrounds + soft read overlay */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    text-align: center;
    background-color: var(--bg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -3%;
    z-index: 0;
    background-image: url('../img/hero-bg-light.jpg');
    background-image: image-set(
        url('../img/hero-bg-light.webp') type('image/webp'),
        url('../img/hero-bg-light.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: hero-pan 22s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(62% 70% at 50% 45%, color-mix(in srgb, var(--bg) 78%, transparent), transparent 75%);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

html.dark .hero::before {
    background-image: url('../img/hero-bg-dark.jpg');
    background-image: image-set(
        url('../img/hero-bg-dark.webp') type('image/webp'),
        url('../img/hero-bg-dark.jpg') type('image/jpeg')
    );
}
html.dark .hero::after {
    background: radial-gradient(70% 75% at 50% 45%, color-mix(in srgb, var(--bg) 62%, transparent), color-mix(in srgb, var(--bg) 30%, transparent) 78%);
}

.hero-anim {
    animation: hero-rise .85s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--d, 0) * 110ms);
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-pan {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.4%, -0.7%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; inset: 0; }
    .hero-anim { animation: none; }
}

h1, h2, h3,
.hero h1,
.page-head h1,
.section-head h2 {
    font-family: var(--font-display);
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-sub {
    margin: 16px auto 0;
    max-width: 560px;
    color: var(--ink-soft);
    font-size: 18px;
}

.hero-search {
    margin: 32px auto 0;
    max-width: 560px;
    display: flex;
    gap: 8px;
}

.hero-search input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 16px;
    background: var(--card);
    color: var(--ink);
}

.hero-search button,
.filter-bar button {
    padding: 14px 26px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.hero-search button:hover, .filter-bar button:hover { background: var(--accent-dark); }

html.dark .hero-search button, html.dark .filter-bar button {
 color: #0b1120;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px 36px;
    margin-top: 36px;
    color: var(--ink-soft);
    font-size: 15px;
    flex-wrap: wrap;
}
.hero-stats > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.hero-stats strong { color: var(--ink); font-size: 17px; }

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--accent);
    flex-shrink: 0;
}
.stat-icon svg { width: 16px; height: 16px; }

html.dark .stat-icon {
 background: rgba(129, 140, 248, .15);
}

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.section-head h2 { margin-bottom: 6px; }
.section-sub { color: var(--ink-soft); font-size: 15px; margin: 0; max-width: 36rem; }
.see-all { font-weight: 600; font-size: 15px; white-space: nowrap; }

.section-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-kicker-projects { color: #047857; }
.section-kicker-jobs { color: #1d4ed8; }

.section-projects {
    background:
        linear-gradient(180deg, color-mix(in srgb, #059669 7%, var(--bg)) 0%, var(--bg-alt) 100%);
    border-top: 1px solid color-mix(in srgb, #059669 18%, var(--line));
    border-bottom: 1px solid color-mix(in srgb, #059669 12%, var(--line));
}
.section-jobs {
    background:
        linear-gradient(180deg, color-mix(in srgb, #2563eb 6%, var(--bg)) 0%, var(--bg) 100%);
    border-top: 1px solid color-mix(in srgb, #2563eb 16%, var(--line));
}

.see-all-projects { color: #047857; }
.see-all-projects:hover { color: #065f46; }
.see-all-jobs { color: #1d4ed8; }
.see-all-jobs:hover { color: #1e40af; }

html.dark .section-kicker-projects { color: #34d399; }
html.dark .section-kicker-jobs { color: #93c5fd; }
html.dark .section-projects {
    background: linear-gradient(180deg, rgba(16, 185, 129, .08) 0%, var(--bg-alt) 100%);
    border-top-color: rgba(16, 185, 129, .22);
    border-bottom-color: rgba(16, 185, 129, .14);
}
html.dark .section-jobs {
    background: linear-gradient(180deg, rgba(59, 130, 246, .08) 0%, var(--bg) 100%);
    border-top-color: rgba(59, 130, 246, .2);
}
html.dark .see-all-projects { color: #34d399; }
html.dark .see-all-projects:hover { color: #6ee7b7; }
html.dark .see-all-jobs { color: #93c5fd; }
html.dark .see-all-jobs:hover { color: #bfdbfe; }

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .06);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.category-card:hover {
    text-decoration: none;
    border-color: var(--accent);
    box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 10px 24px rgba(79, 70, 229, .12);
    transform: translateY(-2px);
}
html.dark .category-card {

        box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 16px rgba(0, 0, 0, .28);
}
html.dark .category-card:hover {

        box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 12px 28px rgba(99, 102, 241, .18);
}
.category-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.category-name { font-weight: 600; color: var(--ink); }
.category-count { font-size: 13.5px; color: var(--ink-faint); }

/* Category icon tiles */
.cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f3f4f6;
    color: #6b7280;
}
.cat-icon svg { width: 21px; height: 21px; }

.cat-icon-web-development,
a.job-side-cat.cat-icon-web-development     { background: #f5f7ff; color: #6366f1; }
.cat-icon-mobile-development,
a.job-side-cat.cat-icon-mobile-development  { background: #f0f9ff; color: #0ea5e9; }
.cat-icon-ai-data,
a.job-side-cat.cat-icon-ai-data             { background: #f8f5ff; color: #8b5cf6; }
.cat-icon-devops-sysadmin,
a.job-side-cat.cat-icon-devops-sysadmin     { background: #f8fafc; color: #64748b; }
.cat-icon-design,
a.job-side-cat.cat-icon-design              { background: #fdf2f8; color: #ec4899; }
.cat-icon-writing,
a.job-side-cat.cat-icon-writing             { background: #fffbeb; color: #d97706; }
.cat-icon-marketing,
a.job-side-cat.cat-icon-marketing           { background: #f0fdf4; color: #22c55e; }
.cat-icon-sales,
a.job-side-cat.cat-icon-sales               { background: #fff7ed; color: #f97316; }
.cat-icon-customer-support,
a.job-side-cat.cat-icon-customer-support    { background: #f0fdfa; color: #14b8a6; }
.cat-icon-finance-legal,
a.job-side-cat.cat-icon-finance-legal       { background: #ecfdf5; color: #10b981; }
.cat-icon-admin-support,
a.job-side-cat.cat-icon-admin-support       { background: #ecfeff; color: #06b6d4; }
.cat-icon-product-management,
a.job-side-cat.cat-icon-product-management  { background: #eff6ff; color: #3b82f6; }

html.dark .cat-icon {
 background: rgba(148, 163, 184, .12); color: #94a3b8;
}
html.dark .cat-icon-web-development,
html.dark a.job-side-cat.cat-icon-web-development {
 background: rgba(99, 102, 241, .12);  color: #a5b4fc;
}
html.dark .cat-icon-mobile-development,
html.dark a.job-side-cat.cat-icon-mobile-development {
 background: rgba(14, 165, 233, .12);  color: #7dd3fc;
}
html.dark .cat-icon-ai-data,
html.dark a.job-side-cat.cat-icon-ai-data {
 background: rgba(139, 92, 246, .12);  color: #c4b5fd;
}
html.dark .cat-icon-devops-sysadmin,
html.dark a.job-side-cat.cat-icon-devops-sysadmin {
 background: rgba(148, 163, 184, .12); color: #cbd5e1;
}
html.dark .cat-icon-design,
html.dark a.job-side-cat.cat-icon-design {
 background: rgba(236, 72, 153, .12);  color: #f9a8d4;
}
html.dark .cat-icon-writing,
html.dark a.job-side-cat.cat-icon-writing {
 background: rgba(245, 158, 11, .12);  color: #fcd34d;
}
html.dark .cat-icon-marketing,
html.dark a.job-side-cat.cat-icon-marketing {
 background: rgba(34, 197, 94, .12);   color: #86efac;
}
html.dark .cat-icon-sales,
html.dark a.job-side-cat.cat-icon-sales {
 background: rgba(249, 115, 22, .12);  color: #fdba74;
}
html.dark .cat-icon-customer-support,
html.dark a.job-side-cat.cat-icon-customer-support {
 background: rgba(20, 184, 166, .12);  color: #5eead4;
}
html.dark .cat-icon-finance-legal,
html.dark a.job-side-cat.cat-icon-finance-legal {
 background: rgba(16, 185, 129, .12);  color: #6ee7b7;
}
html.dark .cat-icon-admin-support,
html.dark a.job-side-cat.cat-icon-admin-support {
 background: rgba(6, 182, 212, .12);   color: #67e8f9;
}
html.dark .cat-icon-product-management,
html.dark a.job-side-cat.cat-icon-product-management {
 background: rgba(59, 130, 246, .12);  color: #93c5fd;
}

/* Job cards */
.job-list { display: flex; flex-direction: column; gap: 12px; }

.job-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: border-color .15s, box-shadow .15s;
}
.job-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(79, 70, 229, .08);
}

.job-card h3 { font-size: 17px; font-weight: 650; line-height: 1.35; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a:hover { color: var(--accent); text-decoration: none; }

.job-meta { font-size: 14px; color: var(--ink-faint); margin-top: 4px; }
.job-meta .company { color: var(--ink-soft); font-weight: 500; }
.meta-sep {
    display: inline-block;
    margin: 0 0.35em;
    color: var(--line);
    font-weight: 400;
}

.source-badge { color: var(--ink-soft); font-weight: 500; }

.job-excerpt { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; }

.job-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
    min-width: 7.5rem;
    max-width: 12rem;
    text-align: right;
    padding-left: 8px;
}

.job-side-facts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.job-side-type {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-faint);
    line-height: 1.25;
}

.budget {
    font-weight: 750;
    color: var(--ink);
    font-size: 16px;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    white-space: nowrap;
}

.job-side-cat {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    margin-top: 0;
}
.job-side-cat.cat-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f3f4f6;
    color: #6b7280;
}
.job-side-cat.cat-tag:hover {
    filter: brightness(0.97);
    text-decoration: none;
}
html.dark .job-side-cat.cat-tag:hover {
    filter: brightness(1.15);
}
html.dark .job-side-cat.cat-tag {
    background: rgba(148, 163, 184, .12);
    color: #94a3b8;
}

/* Legacy badge classes (detail pages / elsewhere) */
.type-badge, .cat-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 7px;
    white-space: nowrap;
    line-height: 1.2;
}
.type-badge {
    background: var(--bg-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}
.type-project, .type-freelance {
    background: #eef2ff;
    color: #4338ca;
    border-color: transparent;
}
.type-job, .type-full-time, .type-part-time {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: transparent;
}
.type-contract {
    background: #fff7ed;
    color: #c2410c;
    border-color: transparent;
}
.cat-badge {
    background: transparent;
    color: var(--ink-faint);
    border: 1px solid var(--line);
    text-decoration: none;
}
.cat-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

html.dark .type-badge {
    background: rgba(148, 163, 184, .1);
    color: #94a3b8;
    border-color: var(--line);
}
html.dark .type-project, html.dark .type-freelance {
    background: rgba(99, 102, 241, .14);
    color: #a5b4fc;
    border-color: transparent;
}
html.dark .type-job, html.dark .type-full-time, html.dark .type-part-time {
    background: rgba(59, 130, 246, .18);
    color: #93c5fd;
    border-color: transparent;
}
html.dark .type-contract {
    background: rgba(249, 115, 22, .15);
    color: #fdba74;
    border-color: transparent;
}

/* Page head */
.page-head {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
}
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.page-head p { color: var(--ink-soft); margin-top: 4px; }
.breadcrumb { font-size: 14px; margin-bottom: 8px; color: var(--ink-faint); }

.page-head-row { display: flex; align-items: center; gap: 16px; }
.page-head-row .cat-icon { width: 52px; height: 52px; border-radius: 12px; }
.page-head-row .cat-icon svg { width: 26px; height: 26px; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-bar input, .filter-bar select {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--card);
    color: var(--ink);
}
.filter-bar input { flex: 2; min-width: 200px; }
.filter-bar select { flex: 1; min-width: 140px; }
.filter-bar button { padding: 11px 22px; font-size: 15px; }

.empty-state {
    text-align: center;
    color: var(--ink-faint);
    padding: 60px 0;
}

/* Job detail */
.job-detail { display: flex; gap: 40px; }
.job-detail-main { flex: 1; min-width: 0; }
.job-detail-side { width: 280px; flex-shrink: 0; }
.job-detail-side h2 { font-size: 17px; margin-bottom: 14px; }

.notice-expired {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 15px;
}

html.dark .notice-expired {
 background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); color: #fca5a5;
}

.job-attributes {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.job-attributes > div { display: flex; align-items: center; gap: 10px; }
.job-attributes > div > span:last-child { display: flex; flex-direction: column; }
.attr-label { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

.attr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--accent);
    flex-shrink: 0;
}
.attr-icon svg { width: 17px; height: 17px; }

.job-description {
    font-size: 15.5px;
    color: var(--ink);
    white-space: normal;
    word-wrap: break-word;
    margin-bottom: 24px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
    font-size: 13px;
    padding: 4px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--ink-soft);
}

.apply-box {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.apply-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.apply-button:hover {
    background: var(--accent-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, .4);
}

html.dark .apply-button {
 color: #0b1120; box-shadow: 0 4px 14px rgba(129, 140, 248, .25);
}
html.dark .apply-button:hover {
 box-shadow: 0 6px 18px rgba(129, 140, 248, .3);
}

.attribution { font-size: 13.5px; color: var(--ink-faint); margin-top: 12px; }

.related-job {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
}
.related-job:hover { border-color: var(--accent); text-decoration: none; }
.related-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.related-meta { font-size: 13px; color: var(--ink-faint); }

/* Pagination */
.pagination { margin-top: 32px; display: flex; justify-content: center; }
.pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    flex-wrap: wrap;
}
.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--ink-soft);
    background: var(--card);
}
.pagination li a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination li.active span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination li.disabled span { opacity: .45; }

html.dark .pagination li.active span {
 color: #0b1120;
}

/* Flash + forms */
.flash-status {
    margin-top: 20px;
    padding: 12px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: var(--radius);
    font-size: 15px;
}

.form-error { font-size: 14px; color: #dc2626; margin-top: 6px; }

html.dark .flash-status {
 background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .35); color: #6ee7b7;
}
html.dark .form-error {
 color: #fca5a5;
}

/* Subscribe band */
.subscribe-band {
    background: linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 100%);
    border-top: 1px solid var(--line);
    padding: 44px 0;
    margin-top: 40px;
}

.subscribe-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.subscribe-inner h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.subscribe-inner p { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }

.subscribe-form { display: flex; gap: 8px; flex: 1; max-width: 440px; min-width: 280px; }

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--card);
    color: var(--ink);
}

.subscribe-form button {
    padding: 13px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.subscribe-form button:hover { background: var(--accent-dark); }

html.dark .subscribe-form button {
 color: #0b1120;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 32px 0;
    margin-top: 48px;
    font-size: 14px;
    color: var(--ink-soft);
}
.footer-sources { max-width: 720px; margin-bottom: 12px; }
.footer-links { margin-bottom: 14px; font-size: 14px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }

.footer-brandline {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brandline .logo-mark {
    width: 22px;
    height: 22px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink-soft);
    cursor: pointer;
}
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.theme-toggle svg { width: 18px; height: 18px; display: none; }
html[data-theme="light"] .theme-toggle [data-icon="sun"],
html[data-theme="dark"] .theme-toggle [data-icon="moon"],
html[data-theme="system"] .theme-toggle [data-icon="system"] {
    display: block;
}

/* Save search */
.save-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 28px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.save-search-copy { flex: 1; min-width: 200px; }
.save-search-copy strong { display: block; font-size: 14px; }
.save-search-copy span { font-size: 13px; color: var(--ink-soft); }
.save-search-bar input[type="email"] {
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--card, var(--bg));
    color: var(--ink);
}
.save-search-bar button {
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.save-search-bar button:hover { background: var(--accent-dark); }
.save-search-manage { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
html.dark .save-search-bar button { color: #0b1120; }

.saved-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.saved-label { font-weight: 700; font-size: 16px; color: var(--ink); }
.saved-label:hover { color: var(--accent); text-decoration: none; }
.saved-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
}
.btn-ghost:hover { border-color: #fca5a5; color: #b91c1c; }

.recover-alerts {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    max-width: 520px;
}
.recover-alerts h2 { font-size: 18px; margin-bottom: 6px; }
.recover-alerts p { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; line-height: 1.5; }
.recover-form { max-width: 100%; }

/* Reports */
.eyebrow { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.eyebrow a { color: var(--ink-soft); }
.report-month-list { list-style: none; max-width: 560px; }
.report-month-list li { border-bottom: 1px solid var(--line); }
.report-month-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    color: var(--ink);
    text-decoration: none;
}
.report-month-list a:hover .report-month-label { color: var(--accent); }
.report-month-label { font-weight: 700; }
.report-month-count { color: var(--ink-soft); font-size: 14px; }

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px 36px;
}
.report-block h2 { font-size: 18px; margin-bottom: 6px; }
.report-block-wide { grid-column: 1 / -1; }

.stat-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.stat-dl dt { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-dl dd { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; margin-top: 2px; }

/* Mix chart */
.mix-chart { margin-top: 16px; }
.mix-bar {
    display: flex;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--line);
}
.mix-seg { display: block; height: 100%; min-width: 0; }
.mix-projects { background: var(--money); }
.mix-jobs { background: var(--accent); }
.mix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--ink-soft);
}
.mix-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}
.swatch-projects { background: var(--money); }
.swatch-jobs { background: var(--accent); }

/* Budget range chart */
.budget-chart { margin-top: 22px; }
.budget-track {
    position: relative;
    height: 12px;
    margin: 28px 8px 12px;
    background: var(--line);
    border-radius: 999px;
}
.budget-iqr {
    position: absolute;
    top: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--money) 45%, transparent);
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--money) 70%, transparent);
}
.budget-mark {
    position: absolute;
    top: -6px;
    width: 3px;
    height: 24px;
    border-radius: 2px;
    transform: translateX(-50%);
}
.budget-mark-median { background: var(--money); }
.budget-mark-avg {
    background: var(--accent);
    width: 2px;
    height: 20px;
    top: -4px;
    opacity: .85;
}
.budget-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    font-size: 12px;
    color: var(--ink-soft);
    text-align: center;
}
.budget-labels strong {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* Horizontal bar charts */
.bar-chart {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bar-chart li {
    display: grid;
    grid-template-columns: minmax(90px, 140px) 1fr auto;
    align-items: center;
    gap: 10px 12px;
}
.bar-chart-wide li {
    grid-template-columns: minmax(110px, 180px) 1fr auto;
}
.bar-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bar-label:hover { color: var(--accent); text-decoration: none; }
.bar-track {
    height: 10px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    min-width: 2px;
    transform-origin: left center;
    animation: bar-grow .7s cubic-bezier(.22, 1, .36, 1) both;
}
.bar-fill-accent { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); }
.bar-fill-teal { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.bar-fill-money { background: linear-gradient(90deg, var(--money), color-mix(in srgb, var(--money) 65%, #fff)); }
.bar-value {
    font-size: 12.5px;
    color: var(--ink-soft);
    white-space: nowrap;
    text-align: right;
    min-width: 5.5rem;
}

@keyframes bar-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bar-fill { animation: none; }
}

@media (max-width: 560px) {
    .bar-chart li,
    .bar-chart-wide li {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label value"
            "track track";
    }
    .bar-label { grid-area: label; }
    .bar-value { grid-area: value; }
    .bar-track { grid-area: track; }
}

.rank-list { list-style: none; margin-top: 12px; counter-reset: rank; }
.rank-list li {
    counter-increment: rank;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.rank-list li::before {
    content: counter(rank) ".";
    color: var(--ink-faint);
    min-width: 1.5em;
}
.rank-list a { color: var(--ink); font-weight: 600; flex: 1; }
.rank-list a:hover { color: var(--accent); text-decoration: none; }
.rank-list span { color: var(--ink-soft); white-space: nowrap; }

.skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
}
.skill-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.skill-chip span { color: var(--ink-faint); font-size: 12px; }

.report-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

/* Static pages */
.prose {
    max-width: 640px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
}
.prose p { margin-bottom: 1em; }
.prose strong { color: var(--ink); font-weight: 650; }


/* Responsive */
@media (max-width: 760px) {
    .main-nav { display: none; }
    .job-card { flex-direction: column; }
    .job-card-side {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px 14px;
        min-width: 0;
        max-width: none;
        text-align: left;
        padding-left: 0;
    }
    .job-side-facts {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 10px;
    }
    .job-detail { flex-direction: column; }
    .job-detail-side { width: 100%; }
    .hero-search { flex-direction: column; }
    .hero-stats { gap: 20px; }
}
