.cmg-gh {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    background: var(--color-white, var(--color-white));
    padding: 64px var(--padding-x, 64px);
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: var(--color-forge);
}

.cmg-gh-filters {
    margin-bottom: 48px;
}

.cmg-gh-filters > form,
.cmg-gh-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
}

.cmg-gh-filters > form > div,
.cmg-gh-filters-form > div {
    box-sizing: border-box;
    flex: 1 1 200px;
    min-width: 200px;
    width: auto;
    float: none;
}

.cmg-gh-filters h3 {
    margin: 0 0 8px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-forge);
}

.cmg-gh-filter-keyword__field {
    position: relative;
    line-height: 1;
}

.cmg-gh-keyword-input {
    box-sizing: border-box;
    width: 100%;
    min-height: unset;
    height: auto;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1.25px solid var(--color-disabled);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-forge);
    appearance: none;
}

.cmg-gh-keyword-input:focus {
    outline: none;
    border-bottom-color: var(--color-forge);
}

.cmg-gh-keyword-input::placeholder {
    color: var(--color-disabled);
}

.cmg-gh-filters input[type="text"],
.cmg-gh-filters input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    min-height: unset;
    height: auto;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1.25px solid var(--color-disabled);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-forge);
}

.cmg-gh-filters input[type="text"]:focus {
    outline: none;
    border-bottom-color: var(--color-forge);
}

.cmg-gh-filters input[type="text"]::placeholder {
    color: var(--color-disabled);
}

.cmg-gh-filters button {
    display: none;
}

.cmg-gh-clear-search {
    display: none;
}

.cmg-gh-filters .select2-container {
    width: 100% !important;
}

.cmg-gh-filters .select2-container--default .select2-selection--single {
    box-sizing: border-box;
    height: auto;
    min-height: 36px;
    border: 0;
    border-bottom: 1.25px solid var(--color-disabled);
    border-radius: 0;
    background: transparent;
}

.cmg-gh-filters .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 8px 24px 8px 0;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-forge);
}

.cmg-gh-filters .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 0;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
}

.cmg-gh-filters .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--color-forge) transparent transparent transparent;
}

.cmg-gh-filters .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--color-forge) transparent;
}

.cmg-gh-filter-department {
    display: block;
}

.cmg-gh-department-filter .cmg-gh-filter-department {
    display: none;
}

.cmg-gh-wrapper {
    margin: 0;
    padding: 0;
}

.cmg-gh-departments {
    display: none;
}

.cmg-gh-jobs {
    position: relative;
    width: 100%;
    float: none;
}

.cmg-gh-jobs::after {
    display: none;
}

.cmg-gh-jobs > h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cmg-gh-jobs ul,
.cmg-gh-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    max-height: none;
}

.cmg-gh-jobs ul li,
.cmg-gh-wrapper ul li {
    box-sizing: border-box;
    width: 100%;
    position: relative;
    border-top: 0;
    border-bottom: 1px solid var(--color-ash, var(--color-ash));
    padding: 24px 0;
}

.cmg-gh-jobs ul li:last-child,
.cmg-gh-wrapper ul li:last-child {
    border-bottom: 1px solid var(--color-ash, var(--color-ash));
}

.cmg-gh-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    font-weight: 400;
}

.cmg-gh-job a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 0;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-forge);
    text-decoration: none;
}

.cmg-gh-job a:hover,
.cmg-gh-job a:focus-visible {
    color: var(--color-forge);
    text-decoration: none;
}

.cmg-gh-job a::after {
    content: "View job";
    box-sizing: border-box;
    flex-shrink: 0;
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    border: 1.25px solid var(--color-flare, var(--color-flare));
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-flare, var(--color-flare));
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.cmg-gh-job a:hover::after,
.cmg-gh-job a:focus-visible::after {
    background: var(--color-flare, var(--color-flare));
    color: var(--color-white, var(--color-white));
}

.cmg-gh-job span {
    flex-shrink: 0;
    order: 2;
    margin-left: auto;
    display: block;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-muted);
}

.cmg-gh-no-jobs,
.cmg-gh-empty,
.cmg-gh-wrapper > p {
    margin: 0;
    padding: 48px 0;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-muted);
    text-align: center;
}

.cmg-gh-no-jobs {
    display: none;
    border-bottom: 0;
    padding: 48px 0;
}

.cmg-gh-job-last {
    margin-bottom: 0 !important;
}

.cmg-gh-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 32px;
}

.cmg-gh-results-bar[hidden] {
    display: none;
}

.cmg-gh-results-count {
    margin: 0;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-forge);
}

.cmg-gh-all-jobs {
    float: none;
    margin: 0 0 40px;
}

.cmg-gh-all-jobs a {
    display: inline-block;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-flare, var(--color-flare));
    text-decoration: none;
}

.cmg-gh-all-jobs a::before {
    content: "\2190 ";
}

.cmg-gh-all-jobs a:hover,
.cmg-gh-all-jobs a:focus-visible {
    color: var(--color-flare, var(--color-flare));
    text-decoration: none;
}

.cmg-gh-job-title {
    margin: 0 0 8px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-forge);
}

.cmg-gh:has(.cmg-gh-job-title) > p > em {
    display: block;
    margin: 0 0 48px;
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 28px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-forge);
}

.cmg-gh:has(.cmg-gh-job-title) > p:not(.cmg-gh-all-jobs) {
    margin: 0;
}

.cmg-gh:has(.cmg-gh-job-title) p,
.cmg-gh:has(.cmg-gh-job-title) ul,
.cmg-gh:has(.cmg-gh-job-title) ol {
    margin: 0 0 24px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 500;
    line-height: 32px;
    color: var(--color-forge);
}

.cmg-gh:has(.cmg-gh-job-title) h2:not(.cmg-gh-job-title),
.cmg-gh:has(.cmg-gh-job-title) h3,
.cmg-gh:has(.cmg-gh-job-title) p:has(> strong:only-child) > strong,
.cmg-gh:has(.cmg-gh-job-title) p:has(> b:only-child) > b {
    color: var(--color-black);
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 28px;
    font-style: italic;
    font-weight: 400;
    line-height: 32px;
}

.cmg-gh:has(.cmg-gh-job-title) h2:not(.cmg-gh-job-title),
.cmg-gh:has(.cmg-gh-job-title) h3,
.cmg-gh:has(.cmg-gh-job-title) p:has(> strong:only-child),
.cmg-gh:has(.cmg-gh-job-title) p:has(> b:only-child) {
    margin: 40px 0 24px;
}

.cmg-gh:has(.cmg-gh-job-title) p:has(> strong:only-child) > strong,
.cmg-gh:has(.cmg-gh-job-title) p:has(> b:only-child) > b {
    display: block;
}

.cmg-gh:has(.cmg-gh-job-title) li {
    margin-bottom: 8px;
}

.cmg-gh:has(.cmg-gh-job-title) li:last-child {
    margin-bottom: 0;
}

.cmg-gh:has(.cmg-gh-job-title) a {
    color: var(--color-forge);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cmg-gh:has(.cmg-gh-job-title) a:hover,
.cmg-gh:has(.cmg-gh-job-title) a:focus-visible {
    color: var(--color-flare, var(--color-flare));
}

.cmg-gh #grnhse_app {
    width: 100%;
    margin-top: 48px;
}

.cmg-gh #grnhse_app iframe {
    display: block;
    width: 100% !important;
    min-height: 600px;
    margin: 0 !important;
    border: 0;
}

@media (max-width: 768px) {
    .cmg-gh {
        padding: 40px 24px;
    }

    .cmg-gh-filters > form,
    .cmg-gh-filters-form {
        flex-direction: column;
    }

    .cmg-gh-filters > form > div,
    .cmg-gh-filters-form > div {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .cmg-gh-job {
        flex-direction: column;
        align-items: flex-start;
    }

    .cmg-gh-job a {
        flex-direction: column;
        align-items: flex-start;
    }

    .cmg-gh-job span {
        margin-left: 0;
    }

    .cmg-gh-job a::after {
        align-self: flex-start;
    }

    .cmg-gh-job-title {
        font-size: 32px;
    }

    .cmg-gh:has(.cmg-gh-job-title) > p > em {
        font-size: 22px;
        margin-bottom: 32px;
    }
}
