/* Careers — job description modal (formal job-advert document style) */
a.ers-job-open-trigger {
    cursor: pointer;
    text-decoration: none;
}

.ers-job-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem 2rem;
    overflow-y: auto;
    box-sizing: border-box;
    font-family: inherit;
}

.ers-job-modal[hidden] {
    display: none !important;
}

body.ers-job-modal-open {
    overflow: hidden;
}

.ers-job-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.ers-job-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 35, 74, 0.28);
    max-height: calc(100vh - 5rem);
    display: flex;
    flex-direction: column;
}

.ers-job-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.ers-job-modal__close:hover {
    color: #00234a;
}

.ers-job-modal__body {
    padding: 2.25rem 2rem 1.75rem;
    overflow-y: auto;
    color: #1f2937;
}

@media (min-width: 640px) {
    .ers-job-modal__body {
        padding: 2.75rem 2.75rem 2rem;
    }
}

.ers-job-modal__advert {
    margin: 0 0 0.75rem;
    padding-right: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ers-job-modal__date {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    color: #374151;
}

.ers-job-modal__meta {
    margin: 0 0 1.5rem;
    padding-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.ers-job-doc,
.ers-job-modal__description {
    font-size: 1rem;
    line-height: 1.7;
    color: #1f2937;
}

.ers-job-doc p,
.ers-job-modal__description p {
    margin: 0 0 1rem;
}

.ers-job-doc h3,
.ers-job-modal__description h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
}

.ers-job-doc h4,
.ers-job-modal__description h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.ers-job-doc ul,
.ers-job-modal__description ul {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
    list-style-type: disc;
}

.ers-job-doc ol,
.ers-job-modal__description ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.ers-job-doc li,
.ers-job-modal__description li {
    margin-bottom: 0.5rem;
    padding-left: 0.15rem;
}

.ers-job-doc strong,
.ers-job-modal__description strong {
    font-weight: 700;
    color: #111827;
}

.ers-job-doc a.ers-job-doc-email,
.ers-job-modal__description a.ers-job-doc-email {
    color: #1b5e20;
    font-weight: 600;
    text-decoration: underline;
}

.ers-job-doc a.ers-job-doc-email:hover,
.ers-job-modal__description a.ers-job-doc-email:hover {
    color: #2e7d32;
}

.ers-job-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.ers-job-modal__actions .ers-job-modal__btn--primary {
    flex: 1 1 auto;
    min-width: 12rem;
}

.ers-job-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    font-family: inherit;
}

.ers-job-modal__btn--primary {
    background: #6346fe;
    color: #fff;
    border-color: #6346fe;
}

.ers-job-modal__btn--primary:hover {
    background: #5229e8;
    border-color: #5229e8;
}

.ers-job-modal__btn--outline {
    background: transparent;
    color: #6346fe;
    border-color: #6346fe;
}

.ers-job-modal__btn--outline:hover {
    background: rgba(99, 70, 254, 0.06);
}
