:root {
    --bg: #f6f5f0;
    --surface: #ffffff;
    --text: #1a1f1e;
    --muted: #586360;
    --line: #e2e0d8;
    --brand: #0f5f58;
    --brand-ink: #0a4640;
    --on-brand: #ffffff;
    --accent: #c77d08;
    --india-bg: #dff3ea;
    --india-text: #0a5a43;
    --world-bg: #e4ecfb;
    --world-text: #1c4a9c;
    --apac-bg: #fcefd6;
    --apac-text: #7d5200;
    --focus: #1c4a9c;
    --radius: 10px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1312;
        --surface: #161c1b;
        --text: #e8eeec;
        --muted: #9ba8a4;
        --line: #27312f;
        --brand: #3fb8a9;
        --brand-ink: #7ad6ca;
        --on-brand: #06211e;
        --accent: #f0b34a;
        --india-bg: #123a2e;
        --india-text: #8fe0c2;
        --world-bg: #17294d;
        --world-text: #a9c4f5;
        --apac-bg: #3d2d08;
        --apac-text: #f3cf85;
        --focus: #a9c4f5;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: var(--brand-ink);
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 16px;
    top: 8px;
    background: var(--surface);
    padding: 8px 12px;
    z-index: 10;
}

/* Header */
.top {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.top .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 750;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--brand);
    position: relative;
    flex: none;
}

.mark::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2.5px solid var(--on-brand);
    border-radius: 50%;
}

.mark::after {
    content: '';
    position: absolute;
    inset: 8.5px;
    background: var(--accent);
    border-radius: 50%;
}

.top nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
}

.top nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.top nav a:hover {
    background: var(--bg);
}

.top nav a[aria-current='page'] {
    color: var(--brand-ink);
    font-weight: 650;
    box-shadow: inset 0 -2px 0 var(--brand);
    border-radius: 8px 8px 0 0;
}

/* Hero */
.hero {
    padding: 34px 0 10px;
}

.hero-small {
    padding-top: 18px;
}

h1 {
    font-size: clamp(1.7rem, 4.6vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    max-width: 30ch;
    text-wrap: balance;
}

.hero-small h1 {
    font-size: clamp(1.45rem, 3.8vw, 1.95rem);
    max-width: 30ch;
}

h2 {
    font-size: 1.22rem;
    letter-spacing: -0.01em;
    margin: 30px 0 10px;
}

.lead {
    font-size: 1.07rem;
    color: var(--muted);
    max-width: 66ch;
    margin: 0 0 12px;
}

.stats {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.stats strong {
    color: var(--text);
}

.crumbs {
    padding-top: 16px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Pass box */
.probox {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 18px 0 6px;
}

.probox h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.probox p {
    margin: 4px 0;
    color: var(--muted);
    max-width: 75ch;
}

.button {
    display: inline-block;
    background: var(--brand);
    color: var(--on-brand);
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
}

.button:hover {
    filter: brightness(1.08);
}

.linkbutton {
    background: none;
    border: 0;
    padding: 10px 4px;
    font: inherit;
    color: var(--brand-ink);
    text-decoration: underline;
    cursor: pointer;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: end;
    margin: 20px 0 4px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--muted);
    min-width: 150px;
    flex: 1 1 150px;
}

.filters label.grow {
    flex: 2 1 240px;
}

/* The two tick boxes stay together: if they do not fit beside the other filters, both move to the next line. */
.filters .checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 18px;
    flex: 1 1 100%;
}

.filters label.check {
    flex: 0 0 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 0.95rem;
    color: var(--text);
}

.filters input[type='search'],
.filters select,
.unlock input {
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    min-height: 44px;
    width: 100%;
}

.filters input[type='checkbox'] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
}

.count {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 10px 2px 6px;
    min-height: 1.4em;
}

/* Job list */
.jobs {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.jobs:empty {
    display: none;
}

.job {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 16px;
    border-top: 1px solid var(--line);
}

.job:first-child {
    border-top: 0;
}

.job-main {
    min-width: 0;
    flex: 1;
}

.job h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.job h3 a {
    color: var(--text);
    text-decoration: none;
}

.job h3 a:hover {
    color: var(--brand-ink);
    text-decoration: underline;
}

.company {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.credit {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 8px;
    white-space: nowrap;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.pay {
    color: var(--text);
    font-weight: 600;
}

.emp {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 8px;
    font-size: 0.78rem;
}

.badge {
    font-size: 0.78rem;
    font-weight: 650;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-india {
    background: var(--india-bg);
    color: var(--india-text);
}

.badge-worldwide {
    background: var(--world-bg);
    color: var(--world-text);
}

.badge-apac {
    background: var(--apac-bg);
    color: var(--apac-text);
}

.evidence {
    margin: 8px 0 0;
    padding-left: 10px;
    border-left: 3px solid var(--line);
    font-size: 0.88rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.evidence span {
    font-weight: 600;
}

.chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 9px 0 0;
    padding: 0;
}

.chips a,
.chips span {
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
}

.chips a:hover {
    color: var(--brand-ink);
    border-color: var(--brand);
}

.apply {
    flex: none;
    align-self: center;
    border: 1px solid var(--brand);
    color: var(--brand-ink);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.apply:hover {
    background: var(--brand);
    color: var(--on-brand);
}

.job-locked h3 {
    color: var(--text);
}

.job-locked .company {
    font-style: italic;
}

.job-more-locked p {
    margin: 0;
    color: var(--muted);
}

.job-more-locked strong {
    color: var(--text);
}

.empty,
.note {
    color: var(--muted);
    padding: 6px 2px;
}

.more {
    text-align: center;
    margin: 14px 0 0;
}

.more button {
    font: inherit;
    font-weight: 650;
    color: var(--brand-ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 18px;
    min-height: 44px;
    cursor: pointer;
}

/* Text sections */
.explain {
    max-width: 78ch;
}

.explain li {
    margin: 6px 0;
}

.links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.links li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.92rem;
}

.links a {
    text-decoration: none;
}

.links span {
    color: var(--muted);
    font-size: 0.82rem;
}

.tablewrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    padding: 9px 12px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

thead th {
    border-top: 0;
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}

.explain table {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: block;
    overflow-x: auto;
}

.numbers th[scope='row'] {
    font-weight: 600;
}

.numbers th[scope='row'] span {
    display: block;
    font-weight: 400;
    font-size: 0.84rem;
    color: var(--muted);
}

.numbers td {
    white-space: nowrap;
    vertical-align: middle;
}

progress {
    width: clamp(70px, 22vw, 240px);
    height: 12px;
    accent-color: var(--brand);
    vertical-align: middle;
}

.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.plan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.plan h3 {
    margin: 0;
}

.price {
    font-size: 1.7rem;
    font-weight: 750;
    margin: 4px 0;
}

.unlock {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    max-width: 640px;
    margin: 16px 0 8px;
}

.unlock label {
    flex: 1 1 100%;
    font-size: 0.85rem;
    color: var(--muted);
}

.unlock input {
    flex: 1 1 280px;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 5px;
}

.foot {
    margin-top: 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
    padding: 16px 0 28px;
}

.foot p {
    margin: 6px 0;
    max-width: 90ch;
}

@media (max-width: 600px) {
    .job {
        flex-direction: column;
        gap: 10px;
    }

    .apply {
        align-self: flex-start;
    }

    .hero {
        padding-top: 20px;
    }

    /* The four header links stay on one line; if a phone is too narrow they scroll sideways. */
    .top .wrap {
        gap: 0 12px;
        padding-top: 8px;
        padding-bottom: 4px;
    }

    .top nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: calc(100% + 16px);
        margin: 0 -8px;
        scrollbar-width: none;
    }

    .top nav::-webkit-scrollbar {
        display: none;
    }

    .top nav a {
        padding: 8px;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    /* Jobs first on a phone: the filter boxes say what they are, so their captions are for screen readers only. */
    .filters {
        gap: 8px;
        padding: 10px;
        margin-top: 14px;
    }

    .filters label {
        min-width: 130px;
        flex-basis: 130px;
    }

    /* Both tick boxes on one line on a phone. */
    .filters .checks {
        gap: 0 12px;
    }

    .filters label.check {
        font-size: 0.9rem;
        gap: 6px;
        flex-basis: auto;
    }

    /* The share is already a number; the bar would push the table off a phone screen. */
    .numbers th:last-child,
    .numbers td:last-child {
        display: none;
    }

    .filters label:not(.check) > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .button,
    .apply,
    .chips a {
        transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    }
}
