:root {
    --jm-ink: #17191e;
    --jm-muted: #5c636e;
    --jm-faint: #8a909b;
    --jm-line: #e8e3d8;
    --jm-line-strong: #d8d2c4;
    --jm-surface: #ffffff;
    --jm-accent: #1d5b43;
    --jm-accent-strong: #143f30;
    --jm-accent-soft: #e9f1ec;
    --jm-amber: #9a6a10;
    --jm-amber-soft: #f8f0dd;
    --jm-amber-line: #e4d2a5;
    --jm-danger: #b3261e;
    --jm-danger-soft: #fbeceb;
    --jm-success: #1e6b3c;
    --jm-success-soft: #e9f4ee;
    --jm-font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --jm-font-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    --jm-radius: 12px;
}

.jm-archive,
.jm-single {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    color: var(--jm-ink);
    font-family: var(--jm-font-sans);
    line-height: 1.6;
}

.jm-eyebrow {
    margin: 0 0 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--jm-accent);
}

.jm-eyebrow a {
    color: inherit;
    text-decoration: none;
}

.jm-eyebrow a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jm-archive-title {
    margin: 0 0 10px;
    font-family: var(--jm-font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.12;
}

.jm-archive-intro {
    margin: 0 0 28px;
    max-width: 56ch;
    color: var(--jm-muted);
    font-size: 1.05rem;
}

.jm-filters {
    margin: 0 0 26px;
}

.jm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: var(--jm-surface);
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
}

.jm-filter-row input[type="text"],
.jm-filter-row select {
    min-width: 210px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--jm-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--jm-ink);
    font: inherit;
    font-size: .92rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.jm-filter-row input[type="text"]:focus,
.jm-filter-row select:focus {
    border-color: var(--jm-accent);
    box-shadow: 0 0 0 3px rgba(29, 91, 67, .15);
}

.jm-filter-submit {
    height: 44px;
}

.jm-filter-submit,
.jm-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--jm-ink);
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.jm-filter-submit:hover,
.jm-view:hover {
    background: #000;
    color: #fff;
}

.jm-filter-clear {
    color: var(--jm-accent);
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jm-filter-clear:hover {
    color: var(--jm-accent-strong);
}

.jm-job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 16px;
}

.jm-job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 32px;
    align-items: start;
    padding: 22px 24px;
    background: var(--jm-surface);
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.jm-job-card:hover {
    border-color: var(--jm-line-strong);
    box-shadow: 0 10px 24px rgba(23, 25, 30, .06);
    transform: translateY(-1px);
}

.jm-job-card.jm-featured {
    background: #fffdf7;
    border-color: var(--jm-amber-line);
    box-shadow: inset 3px 0 0 var(--jm-amber-line);
}

.jm-job-title {
    margin: 0;
}

.jm-job-title a {
    font-family: var(--jm-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--jm-ink);
    text-decoration: underline transparent;
    text-underline-offset: 4px;
    transition: color .15s, text-decoration-color .15s;
}

.jm-job-title a:hover {
    color: var(--jm-accent);
    text-decoration-color: currentColor;
}

.jm-job-company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    color: var(--jm-muted);
    font-size: .95rem;
}

.jm-company-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: #efe9dd;
    color: #6d6553;
    font-size: .82rem;
    font-weight: 700;
}

.jm-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.jm-job-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 1px solid var(--jm-line);
    border-radius: 999px;
    background: var(--jm-surface);
    color: var(--jm-muted);
    font-size: .78rem;
    font-weight: 500;
}

.jm-job-meta li.jm-meta-type {
    border-color: #d5e4db;
    background: var(--jm-accent-soft);
    color: var(--jm-accent-strong);
}

.jm-meta-dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--jm-accent);
}

.jm-job-categories {
    margin: 0;
}

.jm-job-meta li a {
    color: inherit;
    text-decoration: none;
}

.jm-job-meta li a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jm-job-excerpt {
    margin: 12px 0 0;
    color: var(--jm-muted);
    font-size: .93rem;
    line-height: 1.65;
}

.jm-job-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 2px;
}

.jm-meta-salary {
    margin: 0;
    font-size: .98rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.jm-meta-deadline {
    margin: 0;
    color: var(--jm-faint);
    font-size: .82rem;
}

.jm-job-card .jm-view {
    margin-top: 6px;
}

.jm-arrow {
    transition: transform .15s;
}

.jm-view:hover .jm-arrow,
.jm-job-card:hover .jm-arrow {
    transform: translateX(3px);
}

.jm-closed {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #f0cfcc;
    border-radius: 999px;
    background: var(--jm-danger-soft);
    color: var(--jm-danger);
    font-size: .78rem;
    font-weight: 600;
}

.jm-featured-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border: 1px solid var(--jm-amber-line);
    border-radius: 999px;
    background: var(--jm-amber-soft);
    color: var(--jm-amber);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: 4px;
}

.jm-archive .navigation.pagination {
    margin-top: 32px;
}

.jm-archive .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.jm-archive .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--jm-line);
    border-radius: 8px;
    background: var(--jm-surface);
    color: var(--jm-ink);
    font-size: .9rem;
    text-decoration: none;
    transition: border-color .15s;
}

.jm-archive .page-numbers:hover {
    border-color: var(--jm-line-strong);
}

.jm-archive .page-numbers.current {
    border-color: var(--jm-ink);
    background: var(--jm-ink);
    color: #fff;
}

.jm-none {
    margin: 48px 0;
    padding: 48px 24px;
    border: 1px dashed var(--jm-line-strong);
    border-radius: var(--jm-radius);
    color: var(--jm-muted);
    text-align: center;
}

.jm-none p {
    margin: 0 0 10px;
}

.jm-single .jm-job-header {
    margin-bottom: 32px;
}

.jm-header-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

.jm-company-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
}

.jm-single .jm-job-title {
    margin: 0;
    font-family: var(--jm-font-serif);
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.jm-single .jm-job-company {
    margin-top: 8px;
    font-size: 1rem;
}

.jm-header-cats a {
    color: var(--jm-accent);
    text-decoration: none;
}

.jm-header-cats a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jm-job-meta-lg li {
    padding: 5px 13px;
    font-size: .8rem;
}

.jm-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
}

.jm-job-content {
    font-size: 1.02rem;
    line-height: 1.7;
}

.jm-job-content p {
    margin: 0 0 1.15em;
}

.jm-job-content h2,
.jm-job-content h3,
.jm-job-content h4 {
    margin: 1.8em 0 .6em;
    font-family: var(--jm-font-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.jm-job-content h2 {
    font-size: 1.45rem;
}

.jm-job-content h3 {
    font-size: 1.2rem;
}

.jm-job-content ul,
.jm-job-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.3em;
}

.jm-job-content li {
    margin: .3em 0;
}

.jm-job-content a {
    color: var(--jm-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jm-job-content img {
    max-width: 100%;
    height: auto;
    margin: 1.2em 0;
    border-radius: 10px;
}

.jm-job-content blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--jm-line-strong);
    color: var(--jm-muted);
    font-style: italic;
}

.jm-job-side {
    position: sticky;
    top: 24px;
}

.jm-side-card {
    padding: 22px;
    background: var(--jm-surface);
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
}

.jm-side-title {
    margin: 0 0 14px;
    font-family: var(--jm-font-serif);
    font-size: 1.1rem;
    font-weight: 600;
}

.jm-dl {
    margin: 0;
}

.jm-dl dt {
    margin-top: 14px;
    color: var(--jm-faint);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jm-dl dd {
    margin: 3px 0 0;
    font-size: .95rem;
}

.jm-view-block {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}

.jm-apply-section {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--jm-line);
    scroll-margin-top: 20px;
}

.jm-apply-title {
    margin: 0 0 18px;
    font-family: var(--jm-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
}

.jm-application-form {
    max-width: 640px;
    padding: 26px;
    background: var(--jm-surface);
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
}

.jm-field {
    margin-bottom: 18px;
}

.jm-label {
    display: block;
    margin-bottom: 7px;
    font-size: .92rem;
    font-weight: 600;
}

.jm-required {
    color: var(--jm-danger);
}

.jm-field input[type="text"],
.jm-field input[type="email"],
.jm-field input[type="tel"],
.jm-field select,
.jm-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid var(--jm-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--jm-ink);
    font: inherit;
    font-size: .95rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.jm-field input[type="text"]:focus,
.jm-field input[type="email"]:focus,
.jm-field input[type="tel"]:focus,
.jm-field select:focus,
.jm-field textarea:focus {
    border-color: var(--jm-accent);
    box-shadow: 0 0 0 3px rgba(29, 91, 67, .15);
}

.jm-field input.jm-invalid {
    border-color: var(--jm-danger);
    box-shadow: 0 0 0 3px rgba(179, 38, 30, .12);
}

.jm-choice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 6px 0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .94rem;
    font-weight: 400;
}

.jm-choice:hover {
    background: #f7f5f0;
}

.jm-choice input {
    margin-top: 4px;
    accent-color: var(--jm-accent);
}

.jm-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border: 0;
    border-radius: 8px;
    background: var(--jm-ink);
    color: #fff;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.jm-submit:hover {
    background: #000;
}

.jm-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.jm-field-consent {
    margin-top: 2px;
    padding-top: 16px;
    border-top: 1px dashed var(--jm-line-strong);
}

.jm-status {
    color: var(--jm-muted);
    font-style: italic;
}

.jm-error-global {
    padding: 10px 14px;
    border-left: 3px solid var(--jm-danger);
    border-radius: 6px;
    background: var(--jm-danger-soft);
    color: var(--jm-danger);
    font-size: .92rem;
}

.jm-error {
    display: block;
    margin-top: 5px;
    color: var(--jm-danger);
    font-size: .82rem;
}

.jm-success {
    padding: 12px 14px;
    border-left: 3px solid var(--jm-success);
    border-radius: 6px;
    background: var(--jm-success-soft);
    color: var(--jm-success);
    font-weight: 600;
}

.jm-form-result p {
    margin: 14px 0 0;
}

.jm-hint {
    display: block;
    margin-top: 5px;
    color: var(--jm-faint);
    font-size: .8rem;
}

.jm-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px dashed var(--jm-line-strong);
    border-radius: 8px;
    background: #fbfaf6;
    color: var(--jm-muted);
    font: inherit;
    font-size: .9rem;
}

.jm-hidden {
    display: none !important;
}

.jm-submit-page {
    max-width: 760px;
}

.jm-submit-page .jm-submit-title {
    margin: 0 0 6px;
    font-family: var(--jm-font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.jm-submit-form {
    margin-top: 22px;
}

.jm-submit-form .jm-submit {
    margin-top: 4px;
}

.jm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.jm-divider {
    margin: 22px 0;
    border: 0;
    border-top: 1px solid var(--jm-line);
}

.jm-submit-note {
    margin: 0 0 16px;
    color: var(--jm-muted);
    font-size: .88rem;
}

.jm-login-required {
    max-width: 640px;
    padding: 20px;
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
    background: var(--jm-surface);
}

.jm-login-required a {
    color: var(--jm-accent);
}

.jm-preview-job {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
    background: var(--jm-surface);
}

.jm-preview-content {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.7;
}

.jm-preview-content p {
    margin: 0 0 1.1em;
}

.jm-submit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
}

.jm-view-ghost {
    background: transparent;
    color: var(--jm-ink);
    border: 1px solid var(--jm-line-strong);
}

.jm-view-ghost:hover {
    background: #f6f4ee;
    color: var(--jm-ink);
}

.jm-submit-confirm {
    max-width: 640px;
    padding: 30px;
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
    background: var(--jm-surface);
}

.jm-submit-confirm .jm-submit-title {
    margin: 0 0 10px;
    font-family: var(--jm-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
}

.jm-submit-confirm p {
    margin: 0 0 14px;
    color: var(--jm-muted);
}

.jm-submit-pending {
    border-color: #f0d9a8;
    background: var(--jm-amber-soft);
}

.jm-submit-done {
    border-color: #cfe6d8;
    background: var(--jm-success-soft);
}

.jm-job-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--jm-line);
}

.jm-tags-label {
    color: var(--jm-faint);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jm-job-tags a {
    padding: 3px 11px;
    border: 1px solid var(--jm-line);
    border-radius: 999px;
    color: var(--jm-muted);
    font-size: .8rem;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}

.jm-job-tags a:hover {
    border-color: var(--jm-accent);
    color: var(--jm-accent);
}

.jm-block {
    max-width: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 640px) {
    .jm-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 900px) {
    .jm-single-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .jm-job-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .jm-archive,
    .jm-single {
        padding: 32px 18px 56px;
    }

    .jm-job-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .jm-job-card-side {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 16px;
    }

    .jm-job-card-side .jm-view {
        margin-top: 0;
    }

    .jm-filter-row input[type="text"],
    .jm-filter-row select {
        flex: 1 1 100%;
        min-width: 0;
    }

    .jm-application-form {
        padding: 20px;
    }
}
